/* cro.css — Madsen's Outdoor Supply CRO Enhancement Layer
   Layered on top of main.css — no existing rules overridden destructively.
   ======================================================================= */

/* ───────────────────────────────────────────────────────
   ANNOUNCEMENT BAR — upgraded sale/promo version
─────────────────────────────────────────────────────── */
.announcement-bar.ann-upgraded {
  background: var(--dark);
  color: #fff;
  padding: 0;
  overflow: hidden;
}
.ann-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 10px 24px;
  font-size: 13.5px;
  flex-wrap: wrap;
}
.ann-item { display: flex; align-items: center; gap: 6px; }
.ann-emoji { font-size: 15px; }
.ann-code {
  display: inline-block;
  font-family: ui-monospace, "Courier New", monospace;
  font-weight: 700;
  letter-spacing: .06em;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 4px;
  padding: 2px 8px;
  color: var(--accent-2);
}
.ann-sep { color: rgba(255,255,255,.3); }

/* ───────────────────────────────────────────────────────
   PROMO BANNER — sale event strip above product
─────────────────────────────────────────────────────── */
.cro-promo-banner {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
  border-radius: var(--radius-lg);
  margin: 24px auto;
  overflow: hidden;
  position: relative;
  width: min(1280px, 100% - 48px);
}
.cro-promo-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 20px,
    rgba(255,255,255,.018) 20px,
    rgba(255,255,255,.018) 40px
  );
  pointer-events: none;
}
.cro-promo-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 28px;
  padding: 22px 32px;
  position: relative;
  z-index: 1;
}
@media (max-width: 768px) {
  .cro-promo-inner {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px 20px;
  }
}
.cro-promo-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 6px;
}
.cro-promo-tagline {
  color: rgba(255,255,255,.75);
  font-size: 14px;
  margin: 0;
}
.cro-promo-coupon { text-align: center; }
.cro-promo-coupon-label {
  font-size: 12px;
  color: rgba(255,255,255,.55);
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.cro-coupon-box {
  display: inline-flex;
  align-items: center;
  border: 2px dashed var(--accent-2);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 6px;
}
.cro-coupon-code {
  font-family: ui-monospace, "Courier New", monospace;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .1em;
  padding: 10px 18px;
  color: var(--accent-2);
  background: rgba(255,255,255,.06);
}
.cro-copy-btn {
  background: var(--accent-2);
  color: var(--dark);
  font-weight: 700;
  font-size: 13px;
  padding: 0 16px;
  height: 100%;
  min-height: 44px;
  border: 0;
  cursor: pointer;
  transition: background .2s ease, transform .1s ease;
  white-space: nowrap;
}
.cro-copy-btn:hover { background: #e8930a; }
.cro-copy-btn.copied { background: var(--green); color: #fff; }
.cro-promo-savings {
  font-size: 12px;
  color: rgba(255,255,255,.5);
  margin: 0;
}
/* Timer */
.cro-promo-timer { text-align: center; }
.cro-timer-label {
  font-size: 12px;
  color: rgba(255,255,255,.55);
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.cro-timer-digits {
  display: flex;
  gap: 8px;
  justify-content: center;
}
.cro-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  min-width: 48px;
}
.cro-unit b {
  font-family: var(--font-display);
  font-size: 20px;
  color: #fff;
  line-height: 1;
}
.cro-unit small {
  font-size: 10px;
  color: rgba(255,255,255,.5);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-top: 2px;
}

/* ───────────────────────────────────────────────────────
   RATING ROW — below product title
─────────────────────────────────────────────────────── */
.cro-rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.cro-stars {
  display: flex;
  gap: 2px;
  color: var(--accent-2);
}
.cro-stars svg { width: 18px; height: 18px; }
.cro-rating-score {
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
}
.cro-rating-sep { color: var(--faint); }
.cro-rating-link {
  font-size: 13.5px;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ───────────────────────────────────────────────────────
   BENEFITS STRIP — above trust list
─────────────────────────────────────────────────────── */
.cro-benefits-strip {
  display: flex;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 16px;
}
.cro-benefit {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  font-size: 13px;
  background: var(--bg-alt);
  border-right: 1px solid var(--line);
}
.cro-benefit:last-child { border-right: 0; }
.cro-benefit svg { width: 18px; height: 18px; color: var(--green); flex-shrink: 0; }
@media (max-width: 600px) {
  .cro-benefits-strip { flex-direction: column; }
  .cro-benefit { border-right: 0; border-bottom: 1px solid var(--line); }
  .cro-benefit:last-child { border-bottom: 0; }
}

/* ───────────────────────────────────────────────────────
   PAYMENT ICONS
─────────────────────────────────────────────────────── */
.cro-payment-icons {
  margin: 14px 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.cro-payment-label {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.cro-payment-label::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  background: var(--green);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2'%3E%3Crect x='5' y='10' width='14' height='10' rx='2'/%3E%3Cpath d='M8 10V7a4 4 0 018 0v3'/%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2'%3E%3Crect x='5' y='10' width='14' height='10' rx='2'/%3E%3Cpath d='M8 10V7a4 4 0 018 0v3'/%3E%3C/svg%3E") center/contain no-repeat;
}
.cro-payment-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pay-icon {
  width: 50px;
  height: 32px;
  border-radius: 4px;
  display: block;
  box-shadow: 0 1px 3px rgba(0,0,0,.12);
}

/* ───────────────────────────────────────────────────────
   SECURE CHECKOUT CARD — above accordions
─────────────────────────────────────────────────────── */
.cro-secure-card {
  background: var(--green-soft);
  border: 1px solid rgba(31,122,68,.2);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cro-secure-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.cro-secure-row svg { width: 20px; height: 20px; color: var(--green); flex-shrink: 0; margin-top: 2px; }
.cro-secure-row strong { display: block; font-size: 14px; color: var(--ink); margin-bottom: 2px; }
.cro-secure-row p { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.5; }
.cro-secure-coupon-reminder {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,.65);
  border-radius: calc(var(--radius-md) * .6);
  padding: 10px 14px;
  font-size: 13px;
  color: var(--ink-2);
}
.cro-secure-coupon-reminder svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }
.cro-inline-code {
  font-family: ui-monospace, "Courier New", monospace;
  font-size: 13px;
  background: rgba(0,0,0,.06);
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: .04em;
}

/* ───────────────────────────────────────────────────────
   STICKY ATC — coupon sub-line
─────────────────────────────────────────────────────── */
.sticky-coupon {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 2px;
}
.sticky-coupon strong {
  font-family: ui-monospace, "Courier New", monospace;
  color: var(--accent);
}

/* ───────────────────────────────────────────────────────
   PURCHASE TOAST NOTIFICATIONS
─────────────────────────────────────────────────────── */
.cro-toast {
  position: fixed;
  bottom: 90px;
  left: 20px;
  z-index: 1000;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  max-width: 320px;
  transform: translateX(calc(-100% - 30px));
  opacity: 0;
  transition: transform .4s cubic-bezier(.34,1.56,.64,1), opacity .3s ease;
}
.cro-toast.show { transform: translateX(0); opacity: 1; }
.cro-toast-icon {
  width: 38px; height: 38px;
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cro-toast-icon svg { width: 20px; height: 20px; color: var(--accent); }
.cro-toast-body { flex: 1; min-width: 0; }
.cro-toast-prod {
  font-size: 13.5px;
  font-weight: 600;
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cro-toast-meta {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.cro-toast-close {
  font-size: 18px;
  color: var(--faint);
  line-height: 1;
  flex-shrink: 0;
  transition: color .15s ease;
  padding: 2px 4px;
}
.cro-toast-close:hover { color: var(--ink); }
@media (max-width: 480px) {
  .cro-toast { max-width: calc(100vw - 32px); left: 16px; }
}

/* ───────────────────────────────────────────────────────
   REVIEWS SECTION
─────────────────────────────────────────────────────── */
.cro-reviews-section { background: var(--bg-alt); }
.cro-review-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 28px;
}
@media (max-width: 900px) { .cro-review-cards { grid-template-columns: 1fr; } }
@media (min-width: 601px) and (max-width: 900px) { .cro-review-cards { grid-template-columns: repeat(2, 1fr); } }
.cro-review-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cro-review-stars {
  display: flex;
  gap: 3px;
}
.cro-review-stars .star-on { color: var(--accent-2); width: 18px; height: 18px; }
.cro-review-stars .star-off { color: var(--line-strong); width: 18px; height: 18px; }
.cro-review-body {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-2);
  flex: 1;
  font-style: italic;
}
.cro-review-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.cro-reviewer-avatar {
  width: 36px; height: 36px;
  background: var(--dark);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px;
  flex-shrink: 0;
}
.cro-reviewer-name { font-size: 14px; font-weight: 600; display: block; }
.cro-reviewer-loc { font-size: 12.5px; color: var(--muted); display: block; }
.cro-verified-badge {
  margin-left: auto;
  display: flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 600; color: var(--green);
  background: var(--green-soft);
  padding: 4px 10px; border-radius: 999px;
  flex-shrink: 0;
}
.cro-verified-badge svg { width: 13px; height: 13px; }
.cro-review-cta {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}
.cro-review-cta a { color: var(--accent); text-decoration: underline; }

/* ───────────────────────────────────────────────────────
   PRODUCT PAGE POLISH — supplemental premium tweaks
─────────────────────────────────────────────────────── */

/* Bigger, bolder price */
.price-now { font-size: 2rem !important; }

/* Premium ATC button */
#atc-btn {
  flex: 1;
  padding: 17px 28px !important;
  font-size: 16.5px !important;
  letter-spacing: .015em;
  position: relative;
  overflow: hidden;
}
#atc-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(255,255,255,.12) 100%);
  pointer-events: none;
}

/* Buy Now button */
#buy-now-btn {
  padding: 15px 28px !important;
  font-size: 15.5px !important;
  background: var(--dark) !important;
  color: #fff !important;
  border-color: var(--dark) !important;
}
#buy-now-btn:hover {
  background: var(--dark-2) !important;
  border-color: var(--dark-2) !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Gallery main — premium shadow */
.gallery-main {
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
}

/* Vendor label — brand pill */
.vendor {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent-ink);
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 10px !important;
}

/* H1 product title */
.product-info h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem) !important;
  line-height: 1.18;
  margin-bottom: 10px !important;
}

/* Availability — pulse animation */
.dot.in {
  animation: pulse-green 2s ease-in-out infinite;
}
@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 0 3px rgba(31,122,68,.18); }
  50% { box-shadow: 0 0 0 6px rgba(31,122,68,.08); }
}

/* Trust list — better spacing */
.trust-list { gap: 12px !important; margin-top: 0 !important; }

/* Accordion polish */
.accordion summary {
  font-size: 15px !important;
  padding: 16px 0 !important;
}
.accordion summary::after {
  content: "+";
  font-size: 20px;
  color: var(--muted);
  transition: transform .2s ease;
  flex-shrink: 0;
}
.accordion[open] summary::after { content: "−"; }

/* Sticky ATC — premium */
.sticky-atc {
  box-shadow: 0 -4px 24px rgba(0,0,0,.14) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(255,255,255,.95) !important;
}

/* Related section */
.related h2 { font-size: 1.7rem !important; }

/* ───────────────────────────────────────────────────────
   MOBILE PRODUCT PAGE
─────────────────────────────────────────────────────── */
@media (max-width: 700px) {
  .product-layout {
    grid-template-columns: 1fr !important;
    padding: 16px 0 48px !important;
  }
  .gallery { position: static !important; }
  .cro-promo-inner { grid-template-columns: 1fr !important; }
  #atc-btn { font-size: 15px !important; padding: 15px 20px !important; }
  .cro-benefits-strip { font-size: 12px; }
  .cro-review-cards { grid-template-columns: 1fr !important; }
  .cro-toast { bottom: 72px; }
}
@media (max-width: 480px) {
  .cro-promo-inner { padding: 16px !important; }
  .cro-coupon-code { font-size: 16px !important; }
  .sticky-atc-info strong { font-size: 12.5px !important; }
}

/* ───────────────────────────────────────────────────────
   KEY SELLING POINTS LIST
─────────────────────────────────────────────────────── */
.cro-key-points {
  list-style: none;
  margin: 16px 0 20px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.cro-key-points li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.45;
}
.cro-key-points li svg {
  width: 17px;
  height: 17px;
  color: var(--green);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ───────────────────────────────────────────────────────
   FREE SHIP TAG (inline, next to price)
─────────────────────────────────────────────────────── */
.cro-free-ship-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--green);
  background: var(--green-soft);
  border-radius: 999px;
  padding: 4px 10px;
  margin-left: 4px;
  vertical-align: middle;
}
.cro-free-ship-tag svg {
  width: 15px;
  height: 15px;
}

/* ───────────────────────────────────────────────────────
   CATEGORY TAG (next to SKU)
─────────────────────────────────────────────────────── */
.cro-category-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: var(--bg-alt);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  padding: 2px 8px;
  margin-left: 8px;
  letter-spacing: .02em;
}

/* ───────────────────────────────────────────────────────
   ATC BUTTON — icon support
─────────────────────────────────────────────────────── */
#atc-btn { display: flex; align-items: center; gap: 10px; }
#buy-now-btn { display: flex; align-items: center; justify-content: center; gap: 9px; }

/* ───────────────────────────────────────────────────────
   SPEC TABLE INSIDE ACCORDION — zebra rows
─────────────────────────────────────────────────────── */
.accordion-body table { width: 100%; border-collapse: collapse; }
.accordion-body th, .accordion-body td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.accordion-body th { font-weight: 600; color: var(--ink); width: 36%; }
.accordion-body td { color: var(--ink-2); }
.accordion-body tr:nth-child(even) td,
.accordion-body tr:nth-child(even) th { background: var(--bg-alt); }

/* ───────────────────────────────────────────────────────
   SECTION SPACER — reviews before related
─────────────────────────────────────────────────────── */
.cro-reviews-section + .related { padding-top: 0; }

/* ───────────────────────────────────────────────────────
   GLOBAL PAGE HEADER — elevated shadow on scroll
─────────────────────────────────────────────────────── */
.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,.14) !important;
}

/* ═══════════════════════════════════════════════════════════════
   BUG-FIX PATCH — applied after browser QA on 2026-11-27
   Fixes: (1) sticky ATC coupon line wraps  (2) toast overlaps sticky
          (3) announcement bar wraps on mobile  (4) mobile header cart clip
════════════════════════════════════════════════════════════════ */

/* ── Fix 1: Sticky ATC coupon text — no-wrap, single line ── */
.sticky-atc-info {
  min-width: 0;
  overflow: hidden;
}
.sticky-atc-info strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sticky-coupon {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 11px !important;
  color: var(--accent-ink) !important;
}

/* ── Fix 2: Toast sits ABOVE sticky ATC bar ── */
/* Default bottom (no sticky) */
.cro-toast {
  bottom: 20px;
  transition: bottom 0s, transform .4s cubic-bezier(.34,1.56,.64,1), opacity .3s ease;
}
/* When sticky-atc is visible, body gets .sticky-atc-open class (set by cro.js) */
body.sticky-atc-open .cro-toast {
  bottom: 86px;  /* ~sticky bar height 72px + 14px gap */
}
@media (max-width: 480px) {
  .cro-toast { bottom: 16px; }
  body.sticky-atc-open .cro-toast { bottom: 80px; }
}

/* ── Fix 3: Announcement bar on mobile — single scrolling line ── */
@media (max-width: 768px) {
  .announcement-bar.ann-upgraded { overflow: hidden; }
  .ann-track {
    flex-wrap: nowrap;
    justify-content: flex-start;
    animation: ann-scroll 22s linear infinite;
    width: max-content;
    padding: 10px 0;
    gap: 32px;
    white-space: nowrap;
  }
  .ann-track:hover { animation-play-state: paused; }
  @keyframes ann-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
  }
  /* Duplicate items for seamless loop — added by JS, see cro.js patch */
  .ann-sep { display: none; }
}

/* ── Fix 4: Mobile header — keep cart button always reachable ── */
@media (max-width: 768px) {
  .header-inner {
    gap: 10px !important;
  }
  /* Brand name: shrink text so it doesn't crowd the action buttons */
  .brand-word {
    font-size: 1.08rem !important;
    white-space: nowrap;
  }
  /* Logo mark: slightly smaller on small screens */
  .logo-mark { width: 34px !important; height: 34px !important; }
  /* header-actions: make sure it doesn't overflow */
  .header-actions {
    margin-left: auto;
    flex-shrink: 0;
    gap: 4px !important;
  }
  /* Reduce icon-btn touch target width a touch */
  .header-actions .icon-btn { width: 40px !important; height: 40px !important; }
}
@media (max-width: 400px) {
  /* On very small phones hide the logo-mark icon, keep brand text */
  .logo-mark { display: none !important; }
  .brand { gap: 6px !important; }
  .brand-word { font-size: 1rem !important; }
}

/* ═══════════════════════════════════════════════════════════════
   BUG-FIX PATCH 2 — applied after second browser QA on 2026-11-27
   Fixes: (1) desktop ann-bar shows both copies  (2) sticky coupon wraps
          (3) toast overlaps sticky ATC (now handled fully in JS)
════════════════════════════════════════════════════════════════ */

/* ── Fix 1: Hide the marquee-duplicate on desktop, show on mobile ── */
.ann-dup { display: none; }  /* hidden on desktop */

@media (max-width: 768px) {
  /* On mobile: show the duplicate so the marquee loops seamlessly */
  .ann-dup { display: inline-flex; }

  /* Restore the ann-track as a flex row (single line) with animation */
  .ann-track {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    width: max-content !important;
    animation: ann-scroll 24s linear infinite !important;
    white-space: nowrap;
    gap: 32px !important;
    padding: 10px 20px !important;
  }
  .announcement-bar.ann-upgraded {
    overflow: hidden !important;
    height: auto;        /* let it be one line tall */
    max-height: 52px;    /* guard against double-row edge cases */
  }
}

/* On desktop: single non-animated row, centred, wrapping allowed */
@media (min-width: 769px) {
  .ann-track {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;   /* single line; content fits at 1280px */
    justify-content: center;
    align-items: center;
    animation: none !important;
    width: auto !important;
    gap: 20px !important;
    white-space: nowrap;
  }
  .announcement-bar.ann-upgraded {
    overflow: hidden;   /* clip anything that overflows */
  }
}

/* ── Fix 2: Remove old body.sticky-atc-open CSS approach (now JS-driven) ── */
body.sticky-atc-open .cro-toast { bottom: unset; }  /* JS sets it directly */

/* ── Toast: remove hard-coded bottom so JS inline style wins cleanly ── */
.cro-toast {
  bottom: 20px;  /* JS overrides this for product pages with sticky ATC */
}

/* ───────────────────────────────────────────────────────
   SHOP BY CATEGORY / DEPARTMENTS CARDS
─────────────────────────────────────────────────────── */
.collection-card {
  background: #ffffff !important;
  border: 1px solid var(--line) !important;
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.collection-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent) !important;
}
.collection-card-media {
  background: #ffffff !important;
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.collection-card-media img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  padding: 18px 18px 42px !important;
  transition: transform .4s ease;
}
.collection-card:hover .collection-card-media img {
  transform: scale(1.07);
}
.collection-card-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(18, 33, 26, 0.95) 0%, rgba(18, 33, 26, 0.72) 65%, transparent 100%) !important;
  padding: 40px 20px 18px !important;
  color: #fff !important;
  pointer-events: none;
}
.collection-card-body h3 {
  color: #ffffff !important;
  font-size: 1.25rem !important;
  margin-bottom: 2px !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
.collection-card-body p {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 13.5px !important;
  margin-bottom: 4px !important;
}
.collection-card-body .link-arrow {
  color: var(--accent-2) !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
}


/* ═══════════════════════════════════════════════════════════════
   CRO v2 ADDITIONS — appended 2026-11-27
   New: Seasonal hero · Viewer count · Low-stock · Savings hint
        Rating summary · Rating bars · Upsell micro · Popular label
        Sticky Buy Now · Apple Pay icon · Review date
════════════════════════════════════════════════════════════════ */

/* ── Seasonal Hero Banner (Christmas / 11.11) ──────────────── */
.cro-seasonal-hero {
  margin: 20px auto;
  width: min(1280px, 100% - 48px);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}
.cro-seasonal-xmas {
  background: linear-gradient(135deg, #0D3B1F 0%, #1F7A44 60%, #0D3B1F 100%);
}
.cro-seasonal-1111 {
  background: linear-gradient(135deg, #12211A 0%, #D96C00 80%, #12211A 100%);
}
.cro-seasonal-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(-45deg, transparent, transparent 24px, rgba(255,255,255,.025) 24px, rgba(255,255,255,.025) 48px);
  pointer-events: none;
}
.cro-sh-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 36px;
  position: relative;
  z-index: 1;
}
.cro-sh-left {
  display: flex;
  align-items: center;
  gap: 20px;
}
.cro-sh-icon { font-size: 2.5rem; line-height: 1; flex-shrink: 0; }
.cro-sh-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  margin: 0 0 4px;
}
.cro-sh-title {
  font-family: "Oswald", sans-serif;
  font-size: clamp(1.2rem, 2.5vw, 1.65rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px;
  line-height: 1.2;
}
.cro-sh-sub {
  font-size: 14px;
  color: rgba(255,255,255,.75);
  margin: 0;
}
.cro-sh-code {
  font-family: ui-monospace, "Courier New", monospace;
  letter-spacing: .07em;
  background: rgba(255,255,255,.18);
  border-radius: 4px;
  padding: 2px 8px;
  color: #fff;
}
.cro-sh-right { text-align: center; flex-shrink: 0; }
.cro-sh-timer-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin: 0 0 8px;
}
@media (max-width: 700px) {
  .cro-sh-inner { flex-direction: column; align-items: flex-start; padding: 22px 20px; gap: 16px; }
  .cro-sh-right { width: 100%; }
  .cro-sh-right .cro-timer-digits { justify-content: flex-start; }
}

/* ── Savings hint (below price) ────────────────────────────── */
.cro-savings-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 16px;
  padding: 10px 14px;
  background: rgba(217,108,0,.08);
  border: 1px solid rgba(217,108,0,.22);
  border-radius: 10px;
  font-size: 13.5px;
  color: #7A3900;
  line-height: 1.4;
}
.cro-savings-hint svg { width: 16px; height: 16px; color: #D96C00; flex-shrink: 0; }
.cro-savings-hint strong { color: #D96C00; }

/* ── Viewer count ──────────────────────────────────────────── */
.cro-viewer-count {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin: 10px 0;
}
.cro-viewer-pulse {
  width: 8px; height: 8px;
  background: #EF4444;
  border-radius: 50%;
  flex-shrink: 0;
  animation: viewer-pulse 1.6s ease-in-out infinite;
}
@keyframes viewer-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,.5); }
  50% { box-shadow: 0 0 0 5px rgba(239,68,68,0); }
}
#cro-viewer-num { font-weight: 700; color: var(--ink); }

/* ── Low-stock badge ───────────────────────────────────────── */
.cro-low-stock {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 14px;
  padding: 9px 14px;
  background: rgba(239,68,68,.07);
  border: 1px solid rgba(239,68,68,.2);
  border-radius: 10px;
  font-size: 13px;
  color: #991B1B;
  font-weight: 500;
}
.cro-low-stock svg { width: 16px; height: 16px; color: #EF4444; flex-shrink: 0; }
.cro-low-stock strong { color: #DC2626; }

/* ── Popular label (inline in rating row) ──────────────────── */
.cro-popular-label {
  font-size: 12.5px;
  font-weight: 700;
  color: #D96C00;
  background: rgba(217,108,0,.1);
  border-radius: 999px;
  padding: 3px 10px;
}

/* ── Rating summary (above reviews section) ────────────────── */
.cro-rating-summary {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px 28px;
  margin-bottom: 32px;
}
.cro-rating-big {
  font-family: "Oswald", sans-serif;
  font-size: 4rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  flex-shrink: 0;
}
.cro-rating-detail { flex: 1; }
.cro-stars-lg svg { width: 22px; height: 22px; }
.cro-rating-count {
  font-size: 13px;
  color: var(--muted);
  margin: 4px 0 12px;
}
.cro-rating-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 5px;
}
.cro-rating-bar span:first-child { width: 22px; text-align: right; flex-shrink: 0; }
.cro-rating-bar span:last-child { width: 32px; flex-shrink: 0; }
.cro-rbar-track {
  flex: 1;
  height: 7px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.cro-rbar-fill {
  height: 100%;
  background: var(--accent-2);
  border-radius: 999px;
  transition: width .6s ease;
}
@media (max-width: 600px) {
  .cro-rating-summary { flex-direction: column; gap: 16px; padding: 18px; }
  .cro-rating-big { font-size: 3rem; }
}

/* ── Upsell micro-copy ─────────────────────────────────────── */
.cro-upsell-micro {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin: 10px 0 14px;
  padding: 10px 14px;
  background: var(--bg-alt);
  border-radius: 10px;
  border: 1px solid var(--line);
}
.cro-upsell-micro svg { width: 16px; height: 16px; color: var(--green); flex-shrink: 0; margin-top: 1px; }
.cro-upsell-micro strong { color: var(--ink); }

/* ── Sticky "Buy Now" button ───────────────────────────────── */
.sticky-buy-now {
  margin-left: 8px;
  background: var(--accent) !important;
  color: #fff !important;
  border-color: var(--accent) !important;
  font-size: 13px !important;
  padding: 8px 16px !important;
  transition: background .2s, transform .15s;
}
.sticky-buy-now:hover {
  background: #bf5f00 !important;
  transform: translateY(-1px);
}


/* ═══════════════════════════════════════════════════════════════
   BUG-FIX PATCH v3 — 2026-11-27 (post CRO v2 QA)
   Fixes:
     1. Review-card star SVGs oversized (no class → no size rule hit)
     2. Mobile product-info column overflows right edge
     3. Mobile sticky ATC — Buy Now button crushes product text
     4. Desktop ann-bar text clipped at 1280px
════════════════════════════════════════════════════════════════ */

/* ── Fix 1: Review card star SVGs — size ALL svgs inside strip ── */
.cro-review-stars svg {
  width: 18px !important;
  height: 18px !important;
  flex-shrink: 0;
}
/* Rating-row stars and large summary stars keep their own sizes */
.cro-stars svg { width: 18px !important; height: 18px !important; }
.cro-stars-lg svg { width: 22px !important; height: 22px !important; }
/* Colour: filled star (true) → amber; empty (false) → light grey */
.cro-review-stars svg { color: #F59E0B; }
/* SVGs built by star(false) pass fill="#ddd" inline — no class override needed */

/* ── Fix 2: Mobile product-info overflow ── */
@media (max-width: 768px) {
  /* Ensure the whole product layout respects the viewport */
  .product-layout {
    overflow-x: hidden !important;
  }
  /* product-info fills its grid cell without escaping */
  .product-info {
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  /* Any child that might bust out gets clamped */
  .product-info > * {
    max-width: 100%;
    box-sizing: border-box;
  }
  /* Rating row: allow wrapping so the Popular pill doesn't push off-screen */
  .cro-rating-row {
    flex-wrap: wrap;
    gap: 6px;
  }
  /* Viewer count and low-stock: keep text from overflowing */
  .cro-viewer-count,
  .cro-low-stock,
  .cro-savings-hint,
  .cro-upsell-micro {
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
  }
  /* Buy row: stack qty + button full-width */
  .buy-row {
    flex-wrap: wrap !important;
  }
  /* Buy Now row full-width */
  .buy-now-row { width: 100%; box-sizing: border-box; }
  #buy-now-btn { width: 100% !important; box-sizing: border-box; }
  /* Payment badges wrap */
  .cro-payment-badges { flex-wrap: wrap; }
}

/* ── Fix 3: Mobile sticky ATC — hide Buy Now, keep text readable ── */
@media (max-width: 600px) {
  .sticky-buy-now { display: none !important; }
  /* Give the info column breathing room again */
  .sticky-atc-info {
    flex: 1 !important;
    min-width: 0 !important;
  }
  .sticky-atc-inner {
    gap: 10px !important;
  }
}

/* ── Fix 4: Desktop ann-bar — tighter gap so it doesn't clip at 1280px ── */
@media (min-width: 769px) {
  .ann-track {
    gap: 14px !important;
    font-size: 13px !important;
  }
  .ann-sep { margin: 0 !important; }
}


/* ═══════════════════════════════════════════════════════════════
   BUG-FIX PATCH v4 — 2026-11-27
   Fix 1: Desktop ann-bar track (1417px) clips at 1280px viewport
           → enable seamless marquee on ALL viewports.
   Fix 2: Mobile sticky coupon "10% OFF" gets cut off
           → handled in cro.js (shorter text); CSS safety below.
════════════════════════════════════════════════════════════════ */

/* ── Fix 1: Enable marquee on desktop — overrides the "animation:none" rule ── */
@media (min-width: 769px) {
  .ann-track {
    /* Re-enable the scroll — content is too wide to fit statically */
    animation: ann-scroll 36s linear infinite !important;
    width: max-content !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    gap: 32px !important;
    padding: 10px 24px !important;
  }
  /* Show the duplicate items so the loop is seamless on desktop too */
  .ann-dup { display: inline-flex !important; }
  .announcement-bar.ann-upgraded {
    overflow: hidden !important;
  }
}

/* ── Fix 2: Sticky coupon — safety truncation for very narrow viewports ── */
@media (max-width: 480px) {
  .sticky-coupon {
    font-size: 10px !important;
    letter-spacing: 0 !important;
  }
}


/* ═══════════════════════════════════════════════════════════════
   BUG-FIX PATCH v5 — 2026-11-27
   Fix: @keyframes ann-scroll was scoped inside @media (max-width:768px)
        so desktop animation rule had no keyframe to run.
        Declare it globally (outside any media query) so both
        desktop and mobile can reference it.
════════════════════════════════════════════════════════════════ */
@keyframes ann-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}


/* ═══════════════════════════════════════════════════════════════
   BUG-FIX PATCH v6 — 2026-11-27
   Fix: ann-track starts at x=-807px (centered) instead of x=0,
        causing a ~346px empty gap at loop seam.
        Force the bar to left-align the track so translateX(0)=0
        and translateX(-50%) lands exactly at the halfway point.
════════════════════════════════════════════════════════════════ */
.announcement-bar.ann-upgraded {
  display: block !important;   /* remove flex centering on the bar */
  overflow: hidden !important;
  white-space: nowrap;
}
/* The track is already width:max-content and animates from 0 to -50% */
.ann-track {
  display: inline-flex !important;  /* inline so it starts at x=0 */
  vertical-align: top;
}
