/* ================================================================
   TrueKatana — On Sale / Offers
   Design System: --one-* tokens (from layout.css :root)
   ================================================================ */


/* ── On Sale ── */
.one-onsale { background-color: var(--one-bg-primary) !important; color: var(--one-text-secondary); }
.one-onsale-header { background-color: var(--one-bg-hero) !important; padding: 50px 15px; text-align: center; width: 100%; }
.one-onsale-title { color: var(--one-text-primary); font-family: var(--one-font-body); font-size: 3em; font-weight: 800; letter-spacing: -0.01em; margin: auto; max-width: 1024px; }
.one-onsale-subtitle { max-width: 980px; margin: auto; font-weight: normal; color: var(--one-text-primary); line-height: 1.25; padding-bottom: 15px; }
.one-onsale-subtitle-toggle { position: absolute; opacity: 0; pointer-events: none; }
.one-onsale-subtitle-more { display: none; }

.one-onsale-catalog { max-width: 980px; text-align: center; margin: auto; }
.one-onsale-catalog-pill { background-color: #343a40; border: 1px solid #343a40; border-radius: var(--one-radius-full); color: #fff !important; display: inline-block; font-size: 14px; line-height: 1.5; margin: .25rem; min-width: 100px; padding: .375rem 1.5rem; text-align: center; vertical-align: middle; }
.one-onsale-catalog-pill:hover { background-color: #23272b; border-color: #1d2124; color: #fff !important; }
.one-onsale-catalog-active { background-color: var(--one-red); border-color: var(--one-red); }
.one-onsale-mobile-catalog { display: none; }

.one-onsale-logo { margin-bottom: .5rem; max-width: 200px; }
.one-onsale-container { margin-bottom: 100px; margin-left: auto; margin-right: auto; max-width: 1560px; min-height: 800px; padding-left: 3px; padding-right: 3px; width: 100%; }
.one-onsale-items-container { margin-top: 1.5rem; width: 100%; }
.one-catalog-review-star { color: var(--one-red); }
.one-onsale-count { color: var(--one-text-primary); font-size: 1em; font-weight: 800; margin: .5rem 0;  text-align: center; }
.one-onsale-mobile-loader { padding: 12px 0 26px; text-align: center; }
.one-onsale-loader-pulse { color: var(--one-text-secondary); display: inline-flex; font-size: 13px; font-weight: 700; opacity: 0.75; }
.one-onsale-mobile-pagination-wrap { display: block; margin-bottom: 1rem; text-align: center; }
.one-onsale-desktop-pagination-wrap { display: none; margin-bottom: 1rem; }
.one-onsale-mobile-pagination { margin: 14px auto 34px; padding: 20px 40px; width: 100%; }
.one-onsale-mobile-page-count { color: var(--one-text-secondary); font-size: 13px; font-weight: 800; margin-bottom: 12px; opacity: .78; }
.one-onsale-mobile-next { align-items: center; background-color: #dc3545; border: 1px solid #c92532; border-radius: 50rem; box-shadow: 0 2px 0 rgba(0,0,0,.28); color: #fff !important; display: flex; font-size: 18px; font-weight: 800; justify-content: center; min-height: 54px; position: relative; width: 100%; }
.one-onsale-mobile-next:hover { background-color: #c82333; border-color: #bd2130; color: #fff !important; }
.one-onsale-mobile-next.disabled { opacity: .65; pointer-events: none; }
.one-onsale-mobile-next-icon { height: 24px; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 24px; }
.one-onsale-mobile-page-tools { align-items: center; display: grid; grid-template-columns: minmax(0, 1fr) 1px minmax(160px, 1.75fr) 1px minmax(0, 1fr); margin-top: 14px; padding:5px 40px;}
.one-onsale-mobile-page-link { color: var(--one-text-secondary); font-size: 13px; font-weight: 800; opacity: .86; }
.one-onsale-mobile-page-link:hover { color: var(--one-text-primary); }
.one-onsale-mobile-page-link:first-child { justify-self: start; }
.one-onsale-mobile-page-link:last-child { justify-self: end; }
.one-onsale-mobile-page-separator { background-color: rgba(224,224,224,.48); display: block; height: 18px; width: 1px; }
.one-onsale-mobile-page-form { justify-self: center; margin: 0; }
.one-onsale-mobile-page-select { appearance: auto; background: transparent; border: 0; color: var(--one-text-secondary); display: block; font-size: 13px; font-weight: 800; line-height: 1.5; padding: 0 18px 0 0; text-align: center; width: auto; }


@media (min-width: 768px) {
  .one-onsale-mobile-pagination-wrap { display: none; }
  .one-onsale-desktop-pagination-wrap { display: block; }
}

@media (max-width: 991.98px) {
  .one-onsale-header { padding:15px; }
  .one-onsale-logo { max-width: 160px; }
  .one-onsale-title { color: var(--one-text-primary); font-size: 2em; max-width: 70%; margin: auto; }
  .one-onsale-subtitle-wrap { max-width: 88%; margin: auto; }
  .one-onsale-subtitle { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; max-width: 100%; margin: auto; overflow: hidden; font-weight: normal; padding-bottom: 0; }
  .one-onsale-subtitle-toggle:checked + .one-onsale-subtitle { display: block; overflow: visible; }
  .one-onsale-subtitle-more { color: var(--one-link); cursor: pointer; display: inline-flex; font-size: 0; font-weight: 800; margin-top: 6px; }
  .one-onsale-subtitle-more:after { content: "Read more"; font-size: 12px; }
  .one-onsale-subtitle-toggle:checked ~ .one-onsale-subtitle-more:after { content: "Show less"; }
  .one-onsale-catalog-pill { min-width: 150px; }
  .one-onsale-mobile-catalog { display: flex; gap: 10px; margin: 14px 10px 0; overflow-x: auto; scrollbar-width: none; }
  .one-onsale-mobile-catalog::-webkit-scrollbar { display: none; }
  .one-onsale-mobile-catalog-pill { background: var(--one-bg-card); border: 1px solid var(--one-border-hover); border-radius: var(--one-radius-full); color: var(--one-text-primary); flex: 0 0 auto; font-size: 14px; font-weight: 800; line-height: 1; min-height: 30px; padding: 12px 18px; white-space: nowrap; }
  .one-onsale-mobile-catalog-pill.one-onsale-catalog-active { background: var(--one-red); border-color: var(--one-red); color: #fff !important; }
  .one-onsale-container { margin-top: 20px; margin-bottom: 150px; max-width: 1500px; }
  .one-onsale-items-container { padding: 10px 2px; }
  .one-onsale-catalog-active { color: #fff !important; }
}


/* ── Flipdown Clock ── */
.flipdown.flipdown__theme-dark .rotor-group-heading:before { color: var(--one-text-secondary); }
.flipdown.flipdown__theme-dark .rotor-group:nth-child(n+2):nth-child(-n+3):before,
.flipdown.flipdown__theme-dark .rotor-group:nth-child(n+2):nth-child(-n+3):after { background-color: var(--one-text-secondary); }
.flipdown.c .rotor,
.flipdown.flipdown__theme-dark .rotor-top,
.flipdown.flipdown__theme-dark .rotor-leaf-front { color: #fff; background-color: var(--one-red); }
.flipdown.flipdown__theme-dark .rotor-bottom,
.flipdown.flipdown__theme-dark .rotor-leaf-rear { color: #fff; background-color: var(--one-red); }
.flipdown.flipdown__theme-dark .rotor:after { border-top: solid 1px #111; }


/* ── Offers (coupon listing) ── */
.one-offers { background-color: var(--one-bg-primary) !important; color: var(--one-text-secondary); }
.one-offers-header { background-color: var(--one-bg-recessed) !important; padding: 50px 0; }
.one-offers-title { margin: auto; font-family: var(--one-font-body); font-weight: 800; letter-spacing: -0.01em; color: var(--one-text-primary); font-size: 2.65em; max-width: 900px; }
.one-offers-subtitle { max-width: 980px; margin: auto; font-weight: normal; color: var(--one-text-primary); line-height: 1.4; }

.one-offers-list-container { margin-bottom: 100px; max-width: 1280px; min-height: 800px; }
.one-offers-list { padding-top: 40px; }
.one-offers-list-right { text-align: center; padding-top: 20px; }
.one-offers-list-card-active { background-color: var(--one-bg-void) !important; color: var(--one-text-primary); padding: 15px; border: 2px dashed var(--one-success); }
.one-offers-list-card-inactive { background-color: var(--one-bg-card) !important; color: var(--one-text-secondary); padding: 15px; }
.one-offers-list-off { font-family: var(--one-font-body); font-size: 3em; color: var(--one-success); font-weight: 800; letter-spacing: -0.01em; }
.one-offers-list-off-inactive { font-family: var(--one-font-body); font-size: 3em; color: var(--one-text-secondary); font-weight: 800; letter-spacing: -0.01em; }
.one-offers-list-title { margin-bottom: 8px; font-size: 1.5em; }
.one-offers-list-subtitle { font-weight: normal; font-size: 0.9em; line-height: 1.35; max-width: 600px; }
.one-offers-list-code { border: 1px dashed var(--one-text-primary); border-radius: var(--one-radius-xs); text-align: center; padding: 5px; font-size: 1em; font-weight: 700; }
.one-offers-list-date { margin-top: 15px; }
.one-offers-list-btn { padding: 8px 40px; }

@media (max-width: 991.98px) {
  .one-offers-list-off { font-size: 5em; }
  .one-offers-list-left { text-align: center; }
  .one-offers-header { padding: 20px 0; }
}


/* ── Offers Product Grid ── */
.one-offers-container { margin-bottom: 100px; max-width: 1560px; min-height: 800px; }
.one-offers-card-title { text-align: center; font-weight: 800; font-family: var(--one-font-body); letter-spacing: -0.01em; color: var(--one-text-primary); font-size: 2.5em; }
.one-offers-block-title-container { min-height: 40px; }
.one-offers-block-title { color: #333; line-height: 1.15em; font-weight: normal; }
.one-offers-block-title:hover { color: var(--one-red); }
.one-offers-block-price { color: #222; font-size: 12px; text-decoration: line-through; }
.one-offers-block-btn { min-width: 65%; }
.one-offers-sales-price { color: var(--one-red); font-size: 20px; }
.one-offers-block-save { text-align: center; color: var(--one-red); font-size: 11px; }
.one-offers-block-del { color: #222; font-size: 11px; }
.one-offers-block figure span { position: absolute; top: 15px; left: 15px; background-color: var(--one-red-active); padding: 2px 8px; border-radius: var(--one-radius-xs); color: #fff; font-size: 12px; }
.one-offers-shipping-tips { color: var(--one-success); font-size: 11px; }

@media (max-width: 991.98px) {
  .one-offers-container { margin-top: 20px; margin-bottom: 150px; max-width: 1500px; }
  .one-offers-items-container { padding: 10px; }
  .one-offers-block-h6 { margin-bottom: 8px; }
  .one-offers-title { font-size: 2em; max-width: 85%; margin: auto; }
  .one-offers-subtitle { max-width: 85%; margin: auto; font-weight: normal; }
  .one-offers-block-title-container { min-height: 40px; }
  .one-offers-block-title { font-size: 13px; }
  .one-offers-col { padding: 2px !important; }
}


/* ── Catalog Reviews (on onsale page) ── */
.one-catalog-review-h3 { margin-top: 30px !important; color: var(--one-text-primary); font-weight: 800; font-family: var(--one-font-body); letter-spacing: -0.01em; font-size: 2em; }
.one-catalog-review-card { background-color: var(--one-bg-card) !important; }
.one-catalog-review-left { border-right: 1px solid var(--one-border); min-height: 230px; }
.one-catalog-review-left small { color: var(--one-text-secondary); font-size: 0.9em; }
.one-catalog-review-item { margin-top: 35px; max-width: 45%; }
.one-catalog-review-item img { margin-right: 10px; border-radius: var(--one-radius-xs); }
.one-catalog-review-item { color: var(--one-text-secondary); font-weight: normal; }
.one-catalog-review-body { color: var(--one-text-primary); font-weight: 600; max-width: 90%; }
.one-catalog-review-item a { color: var(--one-text-secondary); }
.one-catalog-review-item a:hover { text-decoration: underline; }
.one-catalog-review-date { color: var(--one-text-secondary); }
.one-catalog-review-title { color: var(--one-text-primary); }
.one-catalog-review-count { color: #333; font-weight:800; }
.one-catalog-review-reply { border: 1px dashed var(--one-border-hover); padding: 10px 15px; color: var(--one-text-primary); border-radius: var(--one-radius-sm); max-width: 500px; }

@media (max-width: 991.98px) {
  .one-catalog-review-left { border-right: 0; border-bottom: 1px solid var(--one-border); min-height: 50px; margin-bottom: 10px; }
  .one-catalog-review-item { margin-top: 35px; max-width: 100%; }
  .one-catalog-review-body { max-width: 100%; }
}
