/* ================================================================
   TrueKatana — On Sale
   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 { cursor: pointer; display: block; 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-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: 1600px; 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-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; }

@media (max-width: 991.98px) {
  .one-onsale-header {padding:30px 10px;}
  .one-onsale-logo { max-width: 160px; }
  .one-onsale-title { color: var(--one-text-primary); font-size: 2em; max-width:75%; margin: auto; line-height: 1.15}
  .one-onsale-subtitle-wrap { max-width: 88%; margin: auto; position: relative; }
  .one-onsale-subtitle { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; max-width: 100%; margin: 10px auto; overflow: hidden; padding-bottom: 0; font-weight: normal; }
  .one-onsale-subtitle-toggle:checked + .one-onsale-subtitle { -webkit-box-orient: initial; -webkit-line-clamp: initial; animation: oneFadeDown .22s ease-out both; display: block; overflow: visible; }
  .one-onsale-catalog-pill { min-width: 150px; }
  .one-onsale-mobile-catalog { display: flex; gap: 10px; margin: 20px 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: 80px; 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; }


/* ── 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 { color: var(--one-link-hover); text-decoration: none; }
.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%; }
}
