/* LiteCart — Sticky Add to Cart + Slide Cart */
#sticky-atc-bar {
  position: fixed;
  left: 0;
  right: 0;
  z-index: var(--sa-z, 999999);
  background: var(--sa-bg, #fff);
  color: var(--sa-text, #333);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
  contain: layout style;
  will-change: transform, opacity;
  opacity: 0;
  pointer-events: none;
  transition: transform 300ms ease-out, opacity 300ms ease-out;
}
#sticky-atc-bar.sticky-atc--bottom {
  bottom: 0;
  padding-bottom: env(safe-area-inset-bottom);
  transform: translateY(100%);
}
#sticky-atc-bar.sticky-atc--top {
  top: 0;
  transform: translateY(-100%);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}
#sticky-atc-bar.sticky-atc--visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
#sticky-atc-bar.sticky-atc--anim-fade {
  transform: none;
}
#sticky-atc-bar.sticky-atc--anim-none {
  transform: none;
  transition: none;
}

.sticky-atc__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 16px;
}
.sticky-atc__product-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.sticky-atc__image {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}
.sticky-atc__details {
  min-width: 0;
  flex: 1;
}
.sticky-atc__title {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}
.sticky-atc__price {
  font-size: 13px;
  margin-top: 2px;
}
.sticky-atc__compare-price {
  text-decoration: line-through;
  opacity: 0.6;
  margin-right: 6px;
}
.sticky-atc__current-price {
  font-weight: 700;
}

.sticky-atc__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.sticky-atc__variant {
  height: 44px;
  padding: 0 30px 0 12px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: var(--sa-radius, 4px);
  background: #fff;
  color: inherit;
  font-size: 14px;
  max-width: 160px;
}
.sticky-atc__quantity {
  display: flex;
  align-items: center;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: var(--sa-radius, 4px);
  overflow: hidden;
  height: 44px;
}
.sticky-atc__qty-btn {
  width: 36px;
  height: 44px;
  border: 0;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
  color: inherit;
}
.sticky-atc__qty-input {
  width: 40px;
  height: 44px;
  border: 0;
  border-left: 1px solid rgba(0, 0, 0, 0.1);
  border-right: 1px solid rgba(0, 0, 0, 0.1);
  text-align: center;
  font-size: 14px;
  background: transparent;
  color: inherit;
  -moz-appearance: textfield;
}
.sticky-atc__qty-input::-webkit-inner-spin-button,
.sticky-atc__qty-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.sticky-atc__btn {
  min-height: 44px;
  padding: 0 24px;
  /* Longhand background-color (NOT shorthand) so pattern modifiers
     (--dots, --diamond, --waves, etc.) preserve their background-image,
     background-size, background-position. */
  background-color: var(--sa-btn-bg, #000);
  background-repeat: repeat;
  background-position: 0 0;
  color: var(--sa-btn-text, #fff);
  border: 0;
  border-radius: var(--sa-radius, 4px);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 100ms ease, background-color 200ms ease;
}
.sticky-atc__btn:hover { opacity: 0.92; }
.sticky-atc__btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* View-cart icon button — sits next to ATC. Outline-style so it stays
   visually secondary to the primary ATC. Square shape (44x44 to match
   ATC min-height). Cart count badge in the corner. */
.sticky-atc__viewcart {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: transparent;
  border: 1.5px solid var(--sa-btn-bg, #000);
  /* Follow the merchant's radius slider, but CAP at 10px so the icon
     never clips to a full circle. A 44x44 square with radius >= 22px
     (half the side) collapses to perfectly circular — that read as a
     styling bug on the storefront ('tròn vo') when the merchant had a
     high radius set for the main button. Matching the button tone
     without matching the shape extreme is the right middle ground. */
  border-radius: min(var(--sa-radius, 4px), 10px);
  color: var(--sa-btn-bg, #000);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background-color 150ms, color 150ms, transform 100ms;
}
.sticky-atc__viewcart:hover {
  background-color: var(--sa-btn-bg, #000);
  color: var(--sa-btn-text, #fff);
}
.sticky-atc__viewcart:active { transform: scale(0.95); }
.sticky-atc__viewcart-count {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--sa-btn-bg, #000);
  color: var(--sa-btn-text, #fff);
  font-size: 11px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
  box-shadow: 0 0 0 2px var(--sa-bg, #fff);
  pointer-events: none;
  z-index: 1;
}
/* The [hidden] attribute hides the badge entirely when cart is empty.
   Use !important because we have a min-width that would otherwise override
   the user-agent display:none for [hidden]. */
.sticky-atc__viewcart-count[hidden] { display: none !important; }
/* Success: keep the merchant's chosen button style (color, gradient,
   outline, pattern, radius). Tint the button green via a huge inset
   box-shadow — works over any background, text stays on top — and
   pulse twice in a gentle sine so the state is obvious without
   slamming a hard-coded green that ruins custom styles. */
/* Success pulse strategy:
   - ::after paints a green layer INSIDE the button (z-index:-1 + isolation
     = between the button's own background and its text), so glow/pulse/
     gradient/outline/pattern presets cannot suppress it.
   - A separate scale animation on the button itself marked !important
     beats the glow/pulse infinite animations.
   - opacity:1 !important cancels the :disabled dim that the JS triggers
     when it sets btn.disabled=true to block double-clicks. */
/* Run both the scale/halo pulse AND the border-color sync in one shot.
   Border-color animates so outline / stripes / diamond / pattern styles
   (which render a visible border) don't look mismatched — bright red
   border around a green interior was the 'broken styling' the merchant
   spotted. Buttons without a visible border (solid, gradient) are
   unaffected since there's nothing to tint. */
.sticky-atc__btn--success {
  animation:
    stickyAtcSuccessScale 700ms ease-in-out 2,
    stickyAtcSuccessBorder 700ms ease-in-out 2 !important;
  position: relative !important;
  isolation: isolate;
  opacity: 1 !important;
}
.sticky-atc__btn--success:disabled { opacity: 1 !important; }
.sticky-atc__btn--success::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--sa-success, #00FFA6);
  border-radius: inherit;
  opacity: 0;
  animation: stickyAtcSuccessTint 700ms ease-in-out 2;
  pointer-events: none;
  z-index: -1;
}
@keyframes stickyAtcSuccessBorder {
  0%, 100% { border-color: var(--sa-btn-bg, #000); }
  50%      { border-color: var(--sa-success, #00FFA6); }
}
@keyframes stickyAtcSuccessScale {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 transparent; }
  50%      { transform: scale(1.05); box-shadow: 0 0 0 14px color-mix(in srgb, var(--sa-success, #00FFA6) 30%, transparent); }
}
@keyframes stickyAtcSuccessTint {
  0%, 100% { opacity: 0; }
  50%      { opacity: 0.85; }
}
.sticky-atc__btn--shake { animation: stickyAtcShake 0.5s; }

/* Button style presets */
/* Pill: double-line border inside the button. Distinct from Solid (which
   has no border) and from Outline (which uses a single border with
   transparent fill). border-style:double needs >=3px to render both lines
   with a gap between them. Radius now follows the merchant's slider via
   the base rule on .sticky-atc__btn — no !important here so Pill reacts
   to customization instead of being permanently locked at 50px. */
.sticky-atc__btn--pill {
  /* 5px double-border: with border-style:double the stroke is split into
     two parallel lines plus a gap. At 3px (the legacy minimum) each line
     was ~1px and aliased to a grey rim instead of a clean white outline.
     5px gives ~1.7px per line + ~1.6px gap — readable + crisp at any
     button size, no pixel jitter on hi-DPI screens. */
  border: 5px double var(--sa-btn-text, #fff) !important;
  padding: 0 28px;
}
.sticky-atc__btn--gradient {
  background: linear-gradient(135deg, var(--sa-btn-bg) 0%, color-mix(in srgb, var(--sa-btn-bg) 70%, #fff) 100%) !important;
  border: 0;
}
.sticky-atc__btn--outline {
  background: transparent !important;
  border: 2px solid var(--sa-btn-bg) !important;
  color: var(--sa-btn-bg) !important;
}
.sticky-atc__btn--outline:hover { background: var(--sa-btn-bg) !important; color: var(--sa-btn-text) !important; }
.sticky-atc__btn--glow {
  box-shadow: 0 0 16px color-mix(in srgb, var(--sa-btn-bg) 50%, transparent), 0 0 32px color-mix(in srgb, var(--sa-btn-bg) 25%, transparent);
  animation: stickyAtcGlow 2s ease-in-out infinite;
}
.sticky-atc__btn--pulse { animation: stickyAtcPulse 2s ease-in-out infinite; }
.sticky-atc__btn--shadow3d {
  box-shadow: 0 4px 0 color-mix(in srgb, var(--sa-btn-bg) 70%, #000);
  transform: translateY(-2px);
}
.sticky-atc__btn--shadow3d:active { transform: translateY(0); box-shadow: 0 1px 0 color-mix(in srgb, var(--sa-btn-bg) 70%, #000); }

/* Pattern styles — unique textured buttons */
.sticky-atc__btn--diamond {
  /* Two crossing diagonal grids = lozenge / diamond lattice */
  background-image:
    repeating-linear-gradient( 45deg, rgba(255,255,255,0.12) 0 1px, transparent 1px 10px),
    repeating-linear-gradient(-45deg, rgba(255,255,255,0.12) 0 1px, transparent 1px 10px) !important;
}
.sticky-atc__btn--hexagon {
  /* Self-contained honeycomb tile. The 2-layer offset approach was
     mathematically correct on paper but the SVG viewBox clipped layer-2's
     edge-hexes mid-stroke, leaving visible gap-rows where two tiles met.
     This single SVG instead draws FIVE hexagons inside a 14x24 tile:
       - 1 centred at (7, 8) — fully visible
       - 2 partially visible at the top edges (0, -4) and (14, -4),
         continuing rows from the tile above
       - 2 partially visible at the bottom edges (0, 20) and (14, 20),
         continuing into the tile below
     When the browser repeat-tiles, the bottom-clipped hex of tile A and
     the top-clipped hex of tile B occupy the SAME absolute coordinates,
     drawing the same logical cell twice — net effect: a perfect
     staggered honeycomb mesh with no gap rows on any tile boundary.
     Stroke 1.8 + opacity 0.4 — clear contrast on any merchant btn_color. */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='24' viewBox='0 0 14 24'%3E%3Cg fill='none' stroke='white' stroke-opacity='0.2' stroke-width='1.4' stroke-linejoin='round'%3E%3Cpolygon points='7,0 14,4 14,12 7,16 0,12 0,4'/%3E%3Cpolygon points='0,12 7,16 7,24 0,28 -7,24 -7,16'/%3E%3Cpolygon points='14,12 21,16 21,24 14,28 7,24 7,16'/%3E%3Cpolygon points='0,-12 7,-8 7,0 0,4 -7,0 -7,-8'/%3E%3Cpolygon points='14,-12 21,-8 21,0 14,4 7,0 7,-8'/%3E%3C/g%3E%3C/svg%3E") !important;
  background-size: 14px 24px !important;
  background-position: 0 0 !important;
  background-repeat: repeat !important;
}
.sticky-atc__btn--waves {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='12' viewBox='0 0 40 12'%3E%3Cpath fill='none' stroke='rgba(255,255,255,0.12)' stroke-width='1.5' d='M0 6c5 0 5-4 10-4s5 4 10 4 5-4 10-4 5 4 10 4'/%3E%3C/svg%3E") !important;
  background-size: 32px 10px !important;
}
.sticky-atc__btn--dots {
  /* Hexagonal stagger: two dot layers offset by (50%, 50%) so the eye
     reads a tessellated honeycomb pattern instead of strict rows.
     Together they fill the button uniformly with no visible row gaps. */
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.14) 1.2px, transparent 1.2px),
    radial-gradient(circle, rgba(255,255,255,0.14) 1.2px, transparent 1.2px) !important;
  background-size: 10px 10px, 10px 10px !important;
  background-position: 0 0, 5px 5px !important;
  background-repeat: repeat, repeat !important;
}
.sticky-atc__btn--stripes {
  background-image: repeating-linear-gradient(-45deg, transparent 0, transparent 3px, rgba(255,255,255,0.10) 3px, rgba(255,255,255,0.10) 6px) !important;
  background-position: 0 0 !important;
  background-repeat: repeat !important;
}
.sticky-atc__btn--zigzag {
  /* True up-down zigzag via SVG path. The previous linear-gradient(135deg)
     just produced diagonal parallel stripes — identical to .stripes — so
     merchants couldn't tell them apart in the picker. */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='8' viewBox='0 0 16 8'%3E%3Cpath d='M0 6 L4 2 L8 6 L12 2 L16 6' fill='none' stroke='rgba(255,255,255,0.22)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-size: 16px 8px !important;
  background-position: 0 0 !important;
  background-repeat: repeat !important;
}
.sticky-atc__btn--diamond {
  background-position: 0 0 !important;
  background-repeat: repeat !important;
}
.sticky-atc__btn--hexagon { background-position: 0 0 !important; background-repeat: repeat !important; }
.sticky-atc__btn--waves   { background-position: 0 0 !important; background-repeat: repeat !important; }

@keyframes stickyAtcGlow {
  0%, 100% { box-shadow: 0 0 12px color-mix(in srgb, var(--sa-btn-bg) 40%, transparent); }
  50% { box-shadow: 0 0 24px color-mix(in srgb, var(--sa-btn-bg) 60%, transparent), 0 0 48px color-mix(in srgb, var(--sa-btn-bg) 30%, transparent); }
}
@keyframes stickyAtcPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes stickyAtcShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.sticky-atc__branding {
  position: absolute;
  top: -18px;
  right: 8px;
  font-size: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 2px 6px;
  border-radius: 3px;
}

.sticky-atc__toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(0, 0, 0, 0.9);
  color: #fff;
  padding: 12px 20px;
  border-radius: 6px;
  font-size: 14px;
  z-index: 9999999;
  opacity: 0;
  transition: opacity 300ms, transform 300ms;
  pointer-events: none;
}
.sticky-atc__toast--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 767px) {
  .sticky-atc__inner {
    padding: 8px 12px;
    gap: 8px;
  }
  .sticky-atc__image { width: 44px; height: 44px; }
  .sticky-atc__title { font-size: 13px; }
  .sticky-atc__variant { max-width: 100px; font-size: 13px; }
  .sticky-atc__quantity { display: none; }
  .sticky-atc__btn { padding: 0 16px; }
}

/* =========================================================================
   SLIDE CART DRAWER
   ========================================================================= */

/* Reserve scrollbar gutter at the html-element level. Without this, when
   we toggle body.overflow: hidden ↔ '' on drawer open/close, the scrollbar
   appearing/disappearing shifts the page (and our fixed-positioned drawer)
   by ~15px horizontally — visible as the drawer "jumping left" on close. */
html { scrollbar-gutter: stable; }

/* !important on the hide rule so themes can't accidentally override it
   with a [class] or descendant selector and leave the drawer permanently
   visible after closeDrawer removes the --open class. */
.sc-drawer { display: none !important; }
.sc-drawer--open { display: block !important; }

.sc-drawer__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  z-index: 9999998;
  transition: background 300ms ease;
}
.sc-drawer--open .sc-drawer__overlay {
  background: rgba(0, 0, 0, 0.4);
}

.sc-drawer__panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 400px;
  max-width: 90vw;
  background: #fff;
  z-index: 9999999;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
  transform: translateX(100%);
  transition: transform 300ms ease;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  color: #333;
}
.sc-drawer--open .sc-drawer__panel {
  transform: translateX(0);
}

.sc-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
  flex-shrink: 0;
}
.sc-drawer__title {
  font-size: 16px;
  font-weight: 700;
}
.sc-drawer__close {
  background: none;
  border: 0;
  font-size: 28px;
  cursor: pointer;
  color: #666;
  line-height: 1;
  padding: 0 4px;
}
.sc-drawer__close:hover { color: #000; }

.sc-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  -webkit-overflow-scrolling: touch;
}

.sc-drawer__empty {
  text-align: center;
  padding: 40px 0;
  color: #999;
  font-size: 15px;
}

.sc-drawer__item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #f2f2f2;
}
.sc-drawer__item:last-child { border-bottom: 0; }

.sc-drawer__item-img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  background: #f5f5f5;
}
.sc-drawer__item-info {
  flex: 1;
  min-width: 0;
}
.sc-drawer__item-title {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 2px;
}
.sc-drawer__item-variant {
  font-size: 12px;
  color: #888;
  margin-bottom: 4px;
}
.sc-drawer__item-price {
  font-weight: 700;
  margin-bottom: 8px;
}
.sc-drawer__item-qty {
  display: flex;
  align-items: center;
  gap: 6px;
}
.sc-drawer__qty-btn {
  width: 28px;
  height: 28px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
}
.sc-drawer__qty-btn:hover { background: #f5f5f5; }
.sc-drawer__qty-val {
  min-width: 24px;
  text-align: center;
  font-weight: 600;
}
.sc-drawer__item-remove {
  margin-left: auto;
  background: none;
  border: 0;
  color: #999;
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
}
.sc-drawer__item-remove:hover { color: #c00; }

.sc-drawer__footer {
  border-top: 1px solid #eee;
  padding: 16px 20px;
  flex-shrink: 0;
}
.sc-drawer__subtotal {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}
/* Checkout button mirrors the ATC button — same brand color, text color,
   and border-radius so the drawer feels like one continuous brand surface.
   Merchants style once in the admin and both buttons update together. */
.sc-drawer__checkout-btn {
  display: block;
  width: 100%;
  padding: 14px;
  /* Use background-color (longhand) NOT shorthand background: — the
     pattern style modifiers below (--dots, --stripes, --diamond, etc.)
     set background-image, and the shorthand would override their
     background-position/repeat each cascade. */
  background-color: var(--sa-btn-bg, #000);
  background-repeat: repeat;
  background-position: 0 0;
  color: var(--sa-btn-text, #fff);
  text-align: center;
  text-decoration: none;
  border-radius: var(--sa-radius, 6px);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .2px;
  transition: filter 150ms, transform 150ms, box-shadow 150ms;
  box-shadow: 0 1px 2px rgba(0,0,0,.08);
}
.sc-drawer__checkout-btn:hover {
  filter: brightness(0.92);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
}
.sc-drawer__checkout-btn:active { transform: translateY(0); filter: brightness(0.88); }
.sc-drawer__viewcart-link {
  display: block;
  text-align: center;
  margin-top: 10px;
  color: #555;
  font-size: 13px;
}
.sc-drawer__branding {
  text-align: center;
  margin-top: 10px;
  font-size: 10px;
  color: #aaa;
}

@media (max-width: 480px) {
  .sc-drawer__panel { width: 100vw; max-width: 100vw; }
}

/* =========================================================================
 *  NEW FEATURES — free shipping bar, discount code, countdown timer
 * ========================================================================= */

/* Free shipping progress bar (inside drawer, under header) */
.sc-drawer__ship {
  padding: 12px 18px 10px;
  background: #fafafa;
  border-bottom: 1px solid #f0f0f0;
}
.sc-drawer__ship-msg {
  font-size: 13px;
  margin-bottom: 6px;
  color: #444;
  text-align: center;
}
.sc-drawer__ship-track {
  height: 6px;
  background: #e8e8e8;
  border-radius: 3px;
  overflow: hidden;
}
.sc-drawer__ship-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #10b981, #34d399);
  border-radius: 3px;
  transition: width 300ms ease-out;
}
.sc-drawer__ship--met .sc-drawer__ship-msg { color: #065f46; font-weight: 600; }
.sc-drawer__ship--met .sc-drawer__ship-fill { background: #10b981; }

/* Discount code input (inside drawer footer, above subtotal) */
.sc-drawer__discount {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px dashed #e3e3e3;
}
.sc-drawer__discount-input {
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  width: 100%;
  outline: none;
}
.sc-drawer__discount-input:focus { border-color: #000; }
.sc-drawer__discount-apply {
  padding: 10px 16px;
  background: #000;
  color: #fff;
  border: 0;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.sc-drawer__discount-apply:hover { background: #1f1f1f; }
.sc-drawer__discount-msg {
  grid-column: 1 / -1;
  font-size: 12px;
  color: #888;
  min-height: 16px;
}
.sc-drawer__discount-msg--ok { color: #065f46; }
.sc-drawer__discount-msg--err { color: #b91c1c; }

/* Countdown bar on sticky (renders above main row) */
.sticky-atc__countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 12px;
  background: linear-gradient(90deg, #dc2626, #ef4444);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  animation: stickyAtcCountdownPulse 2s ease-in-out infinite;
}
.sticky-atc__countdown-time {
  font-variant-numeric: tabular-nums;
  background: rgba(255,255,255,0.18);
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}
@keyframes stickyAtcCountdownPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.92; }
}

/* Upsell / Recently viewed recommendations (inside drawer) */
.sc-drawer__recs {
  padding: 14px 18px;
  border-top: 1px solid #f0f0f0;
  background: #fafafa;
}
.sc-drawer__recs-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #666;
  margin-bottom: 10px;
}
.sc-drawer__recs-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sc-drawer__rec {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #eee;
}
.sc-drawer__rec-img {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}
.sc-drawer__rec-info { flex: 1; min-width: 0; }
.sc-drawer__rec-title {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #1a1a1a;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sc-drawer__rec-title:hover { color: #000; text-decoration: underline; }
.sc-drawer__rec-price {
  font-size: 13px;
  font-weight: 600;
  color: #444;
  margin-top: 2px;
}
.sc-drawer__rec-add {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #000;
  background: #fff;
  color: #000;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 150ms;
}
.sc-drawer__rec-add:hover { background: #000; color: #fff; }
.sc-drawer__rec-add:disabled { opacity: 0.5; cursor: not-allowed; }
