/*
 * Scentotheque — theme.css
 * Base styles: CSS vars, animations, component classes.
 * Tailwind handles utilities. This file handles what Tailwind can't.
 */

/* ------------------------------------------------------------------ */
/* PROMO BANNER — slide-by-slide presentation                          */
/* ------------------------------------------------------------------ */
.promo-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.promo-slide.active {
  opacity: 1;
  pointer-events: auto;
}
/* Desktop defaults */
#promo-banner { height: 40px; }
#promo-track  { overflow: hidden; margin: 0 40px; height: 100%; }

/* Mobile: auto height, full-width track, text wraps to 2 lines, instant swap */
@media (max-width: 639px) {
  #promo-banner { height: auto; min-height: 40px; }
  #promo-track  { margin: 0; height: auto; overflow: visible; }
  .promo-arrow  { display: none; }
  .promo-slide  { position: static; display: none; padding: 10px 12px; opacity: 1; pointer-events: none; }
  .promo-slide.active { display: flex; pointer-events: auto; }
  .promo-slide-text   { white-space: normal !important; text-align: center; }
}

.promo-arrow {
  position: absolute;
  top: 0;
  height: 100%;
  width: 40px;
  z-index: 2;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(249,248,246,0.5);
  transition: color 0.2s ease;
}
.promo-arrow:hover { color: rgba(249,248,246,0.9); }

.promo-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.promo-link:hover { opacity: 0.75; }

/* ------------------------------------------------------------------ */
/* CSS VARIABLES                                                        */
/* ------------------------------------------------------------------ */
:root {
  --gold:       #A09890;
  --gold-muted: #887F78;
  --gold-dim:   rgba(160,152,144,0.55);
}

*,
*::before,
*::after { box-sizing: border-box; }

body {
  font-family: 'Jost', system-ui, sans-serif;
  background: #F9F8F6;
  color: #1C1C1C;
  -webkit-font-smoothing: antialiased;
}

/* ------------------------------------------------------------------ */
/* TYPOGRAPHY HELPERS                                                   */
/* ------------------------------------------------------------------ */
.font-display { font-family: 'Playfair Display', Georgia, serif; }

/* ------------------------------------------------------------------ */
/* SHADOWS                                                              */
/* ------------------------------------------------------------------ */
.shadow-luxury {
  box-shadow: 0 1px 2px rgba(28,28,28,0.04), 0 4px 14px rgba(28,28,28,0.07);
}
.shadow-luxury-hover {
  box-shadow: 0 2px 5px rgba(28,28,28,0.06), 0 12px 30px rgba(28,28,28,0.10);
}
.shadow-champagne {
  box-shadow: 0 2px 8px rgba(160,152,144,0.15), 0 1px 2px rgba(28,28,28,0.05);
}

/* ------------------------------------------------------------------ */
/* GRAIN TEXTURE                                                        */
/* ------------------------------------------------------------------ */
.grain-layer { position: relative; }
.grain-layer::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}

/* ------------------------------------------------------------------ */
/* TRANSITIONS                                                          */
/* ------------------------------------------------------------------ */
.t-spring {
  transition-property: transform, opacity;
  transition-duration: 300ms;
  transition-timing-function: cubic-bezier(0.34, 1.4, 0.64, 1);
}
.t-color {
  transition-property: color, background-color, border-color, box-shadow;
  transition-duration: 220ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ------------------------------------------------------------------ */
/* PRODUCT CARD                                                         */
/* ------------------------------------------------------------------ */
.product-card .card-img {
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-card:hover .card-img { transform: scale(1.05); }
.product-card:hover .shadow-luxury { box-shadow: 0 2px 5px rgba(28,28,28,0.06), 0 12px 30px rgba(28,28,28,0.10); }
.product-card {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}
/* Product card text — mobile only; desktop uses template Tailwind defaults */
@media (max-width: 1023px) {
  .sc-card-title  { font-size: 18px !important; }
  .sc-card-brand  { font-size: 14px !important; }
  .sc-price-label { font-size: 14px !important; }
  .sc-price-num   { font-size: 22px !important; }
}

/* Product card badge */
.sc-card-badge { font-size: 11px; }
@media (max-width: 1023px) {
  .sc-card-badge {
    letter-spacing: 0.05em !important;
    padding-left: 6px !important;
    padding-right: 6px !important;
    max-width: calc(100% - 44px); /* never reach the heart button */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
/* Badge color variants */
.sc-card-badge--green { background: #2D6A4F !important; color: #fff !important; }
.sc-card-badge--amber { background: #B07D26 !important; color: #fff !important; }

/* Gender / vibe badge — colored dot + label, inline beside brand name */
.sc-gender-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  vertical-align: middle;
  margin-left: 6px;
  line-height: 1;
}
.sc-gender-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}

/* Wishlist heart button — no background, white outline, red fill when active */
.sc-wishlist-btn { transition: transform 0.15s ease; }
.sc-wishlist-btn:hover { transform: scale(1.15); }
.sc-wishlist-btn.sc-wishlisted .sc-wishlist-icon { fill: #e00 !important; stroke: #e00 !important; }

/* ------------------------------------------------------------------ */
/* WISHLIST TOAST — Shopee-style fixed bottom notification             */
/* ------------------------------------------------------------------ */
#sc-wl-toast {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 20px);
  transform: translateX(-50%) translateY(calc(100% + 24px));
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 14px;
  background: #1C1C1C;
  color: rgba(249,248,246,0.92);
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  letter-spacing: 0.03em;
  padding: 13px 18px;
  white-space: nowrap;
  box-shadow: 0 8px 32px rgba(0,0,0,0.28);
  transition: transform 260ms cubic-bezier(0.22,1,0.36,1), opacity 260ms ease;
  opacity: 0;
  pointer-events: none;
  max-width: calc(100vw - 32px);
}
#sc-wl-toast.sc-wl-toast--visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}
#sc-wl-toast-view {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #C8B49A;
  cursor: pointer;
  text-decoration: none;
  flex-shrink: 0;
}
#sc-wl-toast-view:hover { color: #fff; }

/* PDP image overlay — badges + heart fade to full opacity on hover/touch */
.pdp-img-wrap .pdp-overlay-fade {
  opacity: 0.25;
  transition: opacity 0.3s ease;
}
.pdp-img-wrap:hover .pdp-overlay-fade,
.pdp-img-wrap.is-touched .pdp-overlay-fade {
  opacity: 1;
}

/* Quick View hover overlay — desktop only */
.qv-hover-overlay {
  display: none;
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 300ms ease;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 1.1rem;
  background: linear-gradient(to top, rgba(18,18,18,0.52) 0%, rgba(18,18,18,0.08) 55%, transparent 100%);
}
@media (min-width: 1024px) {
  .qv-hover-overlay { display: flex; }
  .product-card:hover .qv-hover-overlay { opacity: 1; }
}
.qv-hover-btn {
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: rgba(249,248,246,0.92);
  border: 1px solid rgba(249,248,246,0.5);
  padding: 0.65rem 1.6rem;
  background: transparent;
  cursor: pointer;
  min-height: 40px;
  transition: background 200ms ease, color 200ms ease;
}
.qv-hover-btn:hover { background: rgba(249,248,246,0.14); }

/* ------------------------------------------------------------------ */
/* FAQ ACCORDION                                                        */
/* ------------------------------------------------------------------ */
.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.42s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-item.open .faq-body { max-height: 600px; }
.faq-chevron { transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.faq-item.open .faq-chevron { transform: rotate(180deg); }

/* ------------------------------------------------------------------ */
/* CART DRAWER                                                          */
/* ------------------------------------------------------------------ */
#cart-drawer {
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}
#cart-drawer.open { transform: translateX(0); }
#cart-backdrop {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.38s ease;
}
#cart-backdrop.open { opacity: 1; pointer-events: auto; }

/* ------------------------------------------------------------------ */
/* NAV DRAWER                                                           */
/* ------------------------------------------------------------------ */
#nav-drawer {
  transform: translateX(-100%);
  transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}
#nav-drawer.open { transform: translateX(0); }
#nav-backdrop {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.38s ease;
}
#nav-backdrop.open { opacity: 1; pointer-events: auto; }

/* ------------------------------------------------------------------ */
/* QUICK VIEW MODAL                                                     */
/* ------------------------------------------------------------------ */
#qv-backdrop {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
#qv-backdrop.open { opacity: 1; pointer-events: auto; }
/* QV image column */
.qv-img-col {
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #EDE9E1;
  min-height: 220px;
}
.qv-img-col img {
  width: 100%;
  height: auto;
  max-height: 340px;
  object-fit: contain;
  object-position: center;
  display: block;
}
@media (min-width: 640px) {
  .qv-img-col {
    min-height: unset;
    align-self: stretch;
  }
  .qv-img-col img {
    height: 100%;
    max-height: none;
  }
}

/* Edition / pill horizontal scroll wrapper + arrow hint */
.sc-edition-wrap {
  position: relative;
}
.sc-scroll-arrow {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 44px;
  background: linear-gradient(to right, transparent 0%, #F9F8F6 65%);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 4px;
  cursor: pointer;
  font-family: 'Jost', sans-serif;
  font-size: 18px;
  color: #6B6A68;
  transition: opacity 180ms ease;
  border: none;
  -webkit-tap-highlight-color: transparent;
}
.sc-scroll-arrow:hover { color: #1C1C1C; }
.sc-edition-wrap.at-end .sc-scroll-arrow {
  opacity: 0;
  pointer-events: none;
}
/* Desktop drag cursor on scrollable pill rows */
.sc-hscroll { cursor: grab; }
.sc-hscroll.is-dragging { cursor: grabbing; user-select: none; }

#qv-modal { pointer-events: none; }
#qv-modal.open { pointer-events: auto; }
#qv-panel {
  transform: translateY(14px) scale(0.985);
  opacity: 0;
  transition: transform 0.38s cubic-bezier(0.34, 1.2, 0.64, 1), opacity 0.28s ease;
}
#qv-modal.open #qv-panel { transform: translateY(0) scale(1); opacity: 1; }
.qv-size-pill { transition: border-color 180ms ease; border-radius: 0; }
.qv-variant-pill { transition: background 200ms ease, color 200ms ease, border-color 200ms ease; cursor: pointer; border-radius: 0; }

/* ------------------------------------------------------------------ */
/* HOUSE LOGOS BAR                                                      */
/* ------------------------------------------------------------------ */
.house-logo {
  opacity: 0.5;
  transition: opacity 0.28s ease;
  cursor: pointer;
  text-decoration: none;
}
.house-logo:hover { opacity: 1; }

/* ------------------------------------------------------------------ */
/* REVIEWS SCROLL                                                       */
/* ------------------------------------------------------------------ */
.reviews-scroll {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 0.5rem;
}
.reviews-scroll::-webkit-scrollbar { display: none; }
.review-card { scroll-snap-align: start; }

/* ------------------------------------------------------------------ */
/* MARQUEE ANIMATION                                                    */
/* ------------------------------------------------------------------ */
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-33.333%); }
}

/* ------------------------------------------------------------------ */
/* WooCommerce search form reset                                        */
/* ------------------------------------------------------------------ */
.search-form { display: flex; flex: 1; }
.search-form input[type="search"] {
  flex: 1;
  background: transparent;
  border: none;
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  color: #1C1C1C;
  outline: none;
}
.search-form input[type="search"]::placeholder { color: #6B6A68; }
.search-form button[type="submit"] { display: none; }

/* ------------------------------------------------------------------ */
/* WooCommerce notices                                                  */
/* ------------------------------------------------------------------ */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  padding: 12px 20px;
  margin-bottom: 20px;
  border-left: 3px solid var(--gold);
  background: #F4F1EC;
}

/* ------------------------------------------------------------------ */
/* VARIATION PILL SELECTORS                                            */
/* ------------------------------------------------------------------ */
.sc-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.sc-pill {
  position: relative;
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: #1C1C1C;
  background: transparent;
  border: 2px solid #E8E4DC;
  border-radius: 0;
  padding: 8px 16px;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
  white-space: nowrap;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  user-select: none;
}
.sc-pill-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #1C1C1C;
  opacity: 0;
  transition: opacity 180ms ease;
  pointer-events: none;
}
.sc-pill.selected .sc-pill-dot,
.qv-ed-btn.selected .sc-pill-dot {
  opacity: 1;
}
.sc-pill:focus:not(:focus-visible) { outline: none; }
@media (hover: hover) {
  .sc-pill:hover { border-color: #1C1C1C; }
}
.sc-pill.selected {
  border-color: #1C1C1C;
  background: rgba(28,28,28,0.04);
  color: #1C1C1C;
}
.sc-pill.out-of-stock {
  opacity: 0.5;
  cursor: pointer;
}
.sc-pill-select {
  display: none !important;
}

/* ------------------------------------------------------------------ */
/* EDITION PILL TOOLTIP                                                 */
/* ------------------------------------------------------------------ */
.sc-pill-wrap {
  position: relative;
  display: inline-block;
}
/* Shared base for dark tooltip bubbles */
.sc-pill-tooltip,
.sc-hiw-tooltip {
  display: none;
  background: #1C1C1C;
  color: rgba(249,248,246,0.9);
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  pointer-events: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.sc-pill-tooltip::after,
.sc-hiw-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: var(--caret-left, 50%);
  transform: var(--caret-transform, translateX(-50%));
  border: 6px solid transparent;
  border-top-color: #1C1C1C;
}

/* Pill tooltip: portalled to <body> with position:fixed so overflow:auto on .sc-hscroll doesn't clip it */
.sc-pill-tooltip {
  position: fixed;
  line-height: 1.6;
  letter-spacing: 0.02em;
  padding: 10px 14px;
  width: 220px;
  z-index: 9999;
}
/* Visibility toggled on the tip element directly (it's no longer inside .sc-pill-wrap) */
.sc-pill-tooltip.tooltip-visible { display: block; }

/* hiw tooltip stays absolute (not in a scroll container) */
.sc-hiw-tooltip {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

/* ------------------------------------------------------------------ */
/* OOS CART BUTTON STATE                                               */
/* ------------------------------------------------------------------ */
.sc-notify-btn,
.sc-notify-btn[disabled] {
  background: #A09890 !important;
  color: #1C1C1C !important;
  border-color: #A09890 !important;
  box-shadow: 0 2px 18px rgba(160,152,144,0.18);
  cursor: pointer !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}
.sc-notify-btn:hover {
  background: #887F78 !important;
  border-color: #887F78 !important;
  box-shadow: 0 4px 26px rgba(160,152,144,0.25);
}

/* ------------------------------------------------------------------ */
/* PRODUCT PAGE — VARIATION ATTRIBUTE LAYOUT                            */
/* ------------------------------------------------------------------ */

/* Convert WC table to stacked blocks — label above pills              */
.variations,
.variations tbody { display: block; width: 100%; border: none; }

.variations tr { display: block; margin-bottom: 26px; }
.variations tr:last-child { margin-bottom: 0; }
.variations th,
.variations td { display: block; }

/* Attribute label (EDITION / SIZE) */
.variations th.label {
  padding: 0 0 10px 0;
  text-align: left;
}
.variations th.label label {
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6B6A68;
  cursor: default;
}

/* Pills container */
.variations td.value { padding: 0; }

/* Clear selection link — hidden entirely; users don't need to clear */
.reset_variations { display: none !important; }

/* Variation price / availability shown after selection */
.single_variation_wrap { margin-top: 28px; }
.woocommerce-variation.single_variation { margin-bottom: 14px; }
.woocommerce-variation .price {
  font-family: 'Jost', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #1C1C1C;
}
/* Stock text is visually redundant — button communicates OOS — keep for screen readers */
.woocommerce-variation .stock {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
}

/* ------------------------------------------------------------------ */
/* WC ADD TO CART BUTTON — brand override                              */
/* ------------------------------------------------------------------ */
.single_add_to_cart_button,
.single_add_to_cart_button.button {
  background: #1C1C1C !important;
  color: #F9F8F6 !important;
  border: none !important;
  border-radius: 0 !important;
  font-family: 'Jost', sans-serif !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase !important;
  padding: 1rem 1.5rem !important;
  width: 100% !important;
  min-height: 52px !important;
  cursor: pointer !important;
  transition: opacity 220ms ease !important;
}
.single_add_to_cart_button:hover { opacity: 0.85 !important; }
.single_add_to_cart_button:active { opacity: 0.7 !important; }
/* OOS variation selected — plugin's form takes over; hide our button */
.woocommerce-variation-add-to-cart-disabled .single_add_to_cart_button { display: none !important; }

/* ------------------------------------------------------------------ */
/* SIZE ROW SELECTOR                                                    */
/* ------------------------------------------------------------------ */
/* ── Size card header row (label + Size Guide button) */
.sc-size-cards-wrap { margin-bottom: 8px; }
.sc-size-cards-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}
.sc-size-cards-label {
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6B6A68;
}
.sc-size-guide-btn {
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  color: #6B6A68;
  background: none;
  border: none;
  padding: 0;
  margin-left: auto;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  -webkit-user-select: none;
  user-select: none;
}

/* ── Horizontal scroll row (editions, pills) ────────────────────── */
.sc-hscroll {
  overflow-x: auto;
  flex-wrap: nowrap;
  -webkit-overflow-scrolling: touch;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.sc-hscroll::-webkit-scrollbar { display: none; }
.sc-hscroll > * { flex-shrink: 0; }

/* ── QV size cards — square, no image ───────────────────────────── */
.qv-size-cards .sc-size-card {
  aspect-ratio: 1;
}
.qv-size-cards .sc-size-card__body {
  flex: 1;
  justify-content: center;
  padding: 8px 4px 10px;
}

/* ── Vertical size cards ─────────────────────────────────────────── */
.sc-size-cards {
  display: flex;
  gap: 8px;
  padding-top: 14px; /* room for Most Popular badge to bump above card top */
}
.sc-size-card {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  border: 2px solid #E8E4DC;
  background: transparent;
  cursor: pointer;
  text-align: center;
  padding: 0;
  transition: border-color 180ms ease, background 180ms ease;
  -webkit-user-select: none;
  user-select: none;
}
.sc-size-card:focus:not(:focus-visible) { outline: none; }
@media (hover: hover) {
  .sc-size-card:hover { border-color: #1C1C1C; }
}
.sc-size-card.selected {
  border-color: #1C1C1C;
  background: rgba(28,28,28,0.04);
}
.sc-size-card.out-of-stock { opacity: 0.42; }

/* Badge — straddles the top border of its card */
.sc-size-card__badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Jost', sans-serif;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: #A09890;
  color: #121212;
  padding: 3px 10px;
  white-space: nowrap;
}
.sc-size-card__badge--bestseller {
  background: #2D6A4F;
  color: #fff;
}
.sc-size-card__badge--value {
  background: #C94040;
  color: #fff;
}

/* Bottle image — dark gradient placeholder, replaced by <img> when available */
.sc-size-card__img {
  width: 100%;
  aspect-ratio: 3/5;
  background: linear-gradient(165deg, #3A3532 0%, #1E1C1A 40%, #111010 100%);
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sc-size-card__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}
.sc-size-disclaimer {
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #A09890;
  text-align: right;
  margin-top: 6px;
}

/* Text body below image */
.sc-size-card__body {
  padding: 10px 6px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  flex: 1;
}
.sc-size-card__name {
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #1C1C1C;
  letter-spacing: 0.03em;
}
.sc-size-card__vol {
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  color: #6B6A68;
}
.sc-size-card__price {
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #1C1C1C;
  margin-top: 5px;
}
.sc-size-card__oos {
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6B6A68;
}

/* Hidden select WC variation JS reads */
.sc-size-select { display: none !important; }

/* ------------------------------------------------------------------ */
/* PDP — PRODUCT DETAIL PAGE LAYOUT                                    */
/* ------------------------------------------------------------------ */
.sc-pdp-buy-zone { max-width: 80rem; margin: 0 auto; padding: 0 1.25rem 0; }
@media (min-width: 1024px) { .sc-pdp-buy-zone { padding: 0 3rem; } }

/* Notes pyramid left border */
.sc-notes-layer { border-left: 2px solid #A09890; }

/* Performance bars */
.sc-perf-fill {
  height: 1px;
  position: absolute;
  left: 0;
  top: 0;
  background: #A09890;
  width: 0%;
  transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Sticky ATC — PDP mobile */
#pdp-sticky-atc {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.28s ease;
}
#pdp-sticky-atc.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Suppress WC meta and tabs on PDP */
.woocommerce-product-details__short-description { display: none; }
.product_meta,
.woocommerce-tabs { display: none !important; }
.woocommerce-breadcrumb { display: none !important; }
.product_title.entry-title { display: none !important; }

/* Rec card hover */
.sc-rec-card .sc-rec-img {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.sc-rec-card:hover .sc-rec-img { transform: scale(1.035); }

/* ------------------------------------------------------------------ */
/* SEARCH — drops below header, frosted backdrop behind                 */
/* ------------------------------------------------------------------ */

/* Frosted backdrop — starts BELOW the header so header stays visible */
#search-overlay {
  position: fixed;
  top: calc(40px + 72px);   /* promo + mobile header */
  left: 0; right: 0; bottom: 0;
  z-index: 55;
  background: rgba(18, 18, 18, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
}
@media (min-width: 1024px) {
  #search-overlay { top: calc(40px + 152px); }  /* promo + desktop header */
}
#search-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* Solid ivory panel — sits flush at the top of the backdrop */
.search-overlay-panel {
  background: #F9F8F6;
  padding: 2rem 5%;
  box-shadow: 0 6px 24px rgba(28, 28, 28, 0.10);
  transform: translateY(-6px);
  transition: transform 260ms cubic-bezier(0.4, 0, 0.2, 1);
}
#search-overlay.open .search-overlay-panel {
  transform: translateY(0);
}

/* Inner layout — single column on mobile, two columns on desktop */
.search-overlay-inner {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: stretch;
}
@media (min-width: 1024px) {
  .search-overlay-inner {
    flex-direction: row;
    gap: 3.5rem;
    align-items: flex-start;
  }
}
.search-overlay-main { flex: 1; min-width: 0; }

/* Gatekeeping editorial — stacked on mobile, sidebar on desktop */
.search-overlay-gatekeep {
  padding-top: 1.5rem;
  margin-top: 1.25rem;
  border-top: 1px solid #E8E4DC;
  width: 100%;
}
@media (min-width: 1024px) {
  .search-overlay-gatekeep {
    padding-top: 0;
    margin-top: 0;
    border-top: none;
    padding-left: 2.5rem;
    border-left: 1px solid #E8E4DC;
    width: 220px;
    flex-shrink: 0;
  }
  .search-overlay-inner {
    flex-direction: row;
  }
}
.search-gk-label {
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  letter-spacing: 0.24em;
  color: #A09890;
  margin-bottom: 0.75rem;
}
.search-gk-body {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 14px;
  line-height: 1.7;
  color: #1C1C1C;
  margin-bottom: 1.25rem;
}
.search-gk-cta {
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #1C1C1C;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: opacity 200ms ease;
}
.search-gk-cta:hover { opacity: 0.6; }
.search-overlay-field {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1.5px solid #1C1C1C;
  padding-bottom: 0.75rem;
}
.search-overlay-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #6B6A68;
}
#search-overlay-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 400;
  color: #1C1C1C;
  letter-spacing: -0.01em;
  caret-color: #A09890;
}
#search-overlay-input::placeholder {
  color: rgba(107, 106, 104, 0.45);
}
.search-overlay-popular {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.search-overlay-popular-label {
  font-family: 'Jost', sans-serif;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #6B6A68;
  margin-right: 0.25rem;
}
.search-overlay-chip {
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  color: #6B6A68;
  border: 1px solid #E8E4DC;
  padding: 0.5rem 1.1rem;
  text-decoration: none;
  transition: color 180ms ease, border-color 180ms ease;
}
.search-overlay-chip:hover {
  color: #1C1C1C;
  border-color: #1C1C1C;
}

/* Search no-results suggestion rows */
.sc-search-suggest-row {
  transition: background 180ms ease;
  text-decoration: none;
}
.sc-search-suggest-row:hover {
  background: rgba(28, 28, 28, 0.03);
}
.sc-search-suggest-row:hover svg {
  color: #1C1C1C;
}

/* ------------------------------------------------------------------ */
/* HEADER LOGO — lock height so WooCommerce img resets can't override  */
/* ------------------------------------------------------------------ */
header .sc-logo { height: 52px; width: auto; display: block; }
@media (min-width: 1024px) { header .sc-logo { height: 90px; } }
.sc-logo-wordmark { font-size: 52px; }
@media (min-width: 1024px) { .sc-logo-wordmark { font-size: 80px; } }

/* ------------------------------------------------------------------ */
/* HOW IT WORKS — size name tooltip                                    */
/* ------------------------------------------------------------------ */
.sc-hiw-size {
  font-style: italic;
  color: #787370;
  text-decoration: underline;
  text-decoration-color: rgba(160,152,144,0.45);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  cursor: help;
  -webkit-user-select: none;
  user-select: none;
}
.sc-hiw-size:hover {
  text-decoration-color: #A09890;
  color: #A09890;
}
.sc-hiw-wrap {
  position: relative;
  display: inline-block;
}
.sc-hiw-tooltip {
  bottom: calc(100% + 8px);
  font-style: normal;
  letter-spacing: 0.03em;
  padding: 8px 14px;
  white-space: nowrap;
  z-index: 20;
}
.sc-hiw-wrap.hiw-tip-visible .sc-hiw-tooltip { display: block; }

/* Size Guide tooltip — same positioning as hiw-tooltip, but allows wrap */
.sc-sg-tooltip {
  white-space: pre-line !important;
  min-width: 170px;
  text-align: left;
}

/* ------------------------------------------------------------------ */
/* FEATURED HOUSES BAR                                                 */
/* ------------------------------------------------------------------ */
.house-logo {
  opacity: 0.42;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 280ms ease;
}
.house-logo:hover { opacity: 1; }

/* ------------------------------------------------------------------ */
/* QUANTITY STEPPER                                                     */
/* ------------------------------------------------------------------ */
.sc-qty-wrap {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid #E8E4DC;
  -webkit-user-select: none;
  user-select: none;
}
.sc-qty-btn {
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Jost', sans-serif;
  font-size: 20px;
  line-height: 1;
  color: #1C1C1C;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 150ms ease;
  padding: 0;
}
.sc-qty-btn:hover  { background: rgba(28,28,28,0.05); }
.sc-qty-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.sc-qty-display {
  min-width: 36px;
  text-align: center;
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #1C1C1C;
  border-left: 1px solid #E8E4DC;
  border-right: 1px solid #E8E4DC;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
}
/* Hide WC native qty input — custom stepper handles it */
.woocommerce-variation-add-to-cart .quantity,
form.cart:not(.variations_form) .quantity { display: none !important; }

/* ------------------------------------------------------------------ */
/* QUICK VIEW — edition pills + size buttons + wishlist                */
/* ------------------------------------------------------------------ */
.qv-ed-btn {
  position: relative;
  background: transparent;
  border-width: 2px;
  border-color: #E8E4DC;
  color: #6B6A68;
  cursor: pointer;
  transition: border-color 150ms ease, color 150ms ease;
}
.qv-ed-btn:focus:not(:focus-visible) { outline: none; }
.qv-ed-btn.selected {
  border-color: #1C1C1C;
  color: #1C1C1C;
}
.sc-accord-chip {
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6B6A68;
  background: rgba(28,28,28,0.05);
  padding: 3px 8px;
  display: inline-block;
}
.sc-qv-notes-trigger {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  cursor: default;
}

.qv-wl {
  background: transparent;
  cursor: pointer;
  color: #6B6A68;
  transition: color 180ms ease, border-color 180ms ease;
}
.qv-wl:hover {
  color: #A09890;
  border-color: #A09890;
}

/* ------------------------------------------------------------------ */
/* PDP DETAILS ACCORDION                                               */
/* ------------------------------------------------------------------ */
.pdp-accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.48s cubic-bezier(0.4, 0, 0.2, 1);
}
.pdp-accordion-item.open .pdp-accordion-body {
  max-height: 1400px;
}
.pdp-accordion-trigger {
  transition: color 200ms ease;
}
.pdp-accordion-icon {
  font-size: 20px;
  line-height: 1;
  color: #6B6A68;
  user-select: none;
  transition: color 200ms ease;
}
.pdp-accordion-item.open .pdp-accordion-icon {
  color: #1C1C1C;
}

/* ------------------------------------------------------------------ */
/* ⓘ TOOLTIP                                                           */
/* ------------------------------------------------------------------ */
.sc-info-icon {
  font-size: 10px;
  color: #6B6A68;
  cursor: help;
  position: relative;
  display: inline-block;
  -webkit-user-select: none;
  user-select: none;
}
.sc-info-icon::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #1C1C1C;
  color: rgba(249, 248, 246, 0.9);
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  letter-spacing: 0.03em;
  padding: 8px 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
  z-index: 30;
}
.sc-info-icon:hover::after,
.sc-info-icon:focus::after {
  opacity: 1;
}

/* ------------------------------------------------------------------ */
/* BACK IN STOCK NOTIFIER PLUGIN — brand override                      */
/* ------------------------------------------------------------------ */
.cwginstock-subscribe-form { margin-top: 0; }

.cwginstock-subscribe-form .panel.cwginstock-panel-primary {
  border: 1px solid rgba(160,152,144,0.35) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: #F9F8F6 !important;
  overflow: hidden;
}

.cwginstock-subscribe-form .panel-heading.cwginstock-panel-heading {
  background: #1C1C1C !important;
  border: none !important;
  padding: 14px 20px !important;
}

.cwginstock-subscribe-form .panel-heading h4 {
  font-family: 'Jost', sans-serif !important;
  font-size: 10px !important;
  font-weight: 400 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  color: #A09890 !important;
  margin: 0 !important;
}

.cwginstock-subscribe-form .panel-body.cwginstock-panel-body {
  background: #F9F8F6 !important;
  padding: 16px 20px 20px !important;
}

.cwginstock-subscribe-form input[type="text"],
.cwginstock-subscribe-form input[type="email"] {
  font-family: 'Jost', sans-serif !important;
  font-size: 11px !important;
  letter-spacing: 0.06em !important;
  color: #1C1C1C !important;
  background: #FFFFFF !important;
  border: 1px solid #E8E4DC !important;
  border-radius: 0 !important;
  padding: 10px 14px !important;
  margin-bottom: 8px !important;
  box-shadow: none !important;
  outline: none !important;
}

.cwginstock-subscribe-form input[type="text"]::placeholder,
.cwginstock-subscribe-form input[type="email"]::placeholder {
  color: #9E9D9A !important;
}

.cwginstock-subscribe-form input[type="text"]:focus,
.cwginstock-subscribe-form input[type="email"]:focus {
  border-color: #A09890 !important;
}

.cwginstock-subscribe-form input[type="submit"].cwgstock_button {
  font-family: 'Jost', sans-serif !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  color: #F9F8F6 !important;
  background: #1C1C1C !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 14px 20px !important;
  width: 100% !important;
  cursor: pointer !important;
  transition: opacity 200ms ease !important;
  box-shadow: none !important;
  margin-top: 4px !important;
}

.cwginstock-subscribe-form input[type="submit"].cwgstock_button:hover {
  opacity: 0.85 !important;
}

/* ------------------------------------------------------------------ */
/* MY ACCOUNT — login / register page                                  */
/* ------------------------------------------------------------------ */
.sc-auth-wrap {
  max-width: 420px;
  margin: 4rem auto 6rem;
  padding: 0 1.25rem;
}
.sc-auth-brand {
  text-align: center;
  margin-bottom: 2.5rem;
}
.sc-auth-logo {
  text-decoration: none;
  display: inline-block;
}
.sc-auth-tabs {
  display: flex;
  border-bottom: 1px solid #E8E4DC;
  margin-bottom: 1.75rem;
}
.sc-auth-tab {
  flex: 1;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #A8A39A;
  padding: 0.75rem 0;
  border-bottom: 1.5px solid transparent;
  margin-bottom: -1px;
  transition: color 180ms ease, border-color 180ms ease;
}
.sc-auth-tab.active {
  color: #1C1C1C;
  border-bottom-color: #1C1C1C;
}
.sc-auth-field {
  margin-bottom: 1.25rem;
}
.sc-auth-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6B6A68;
  margin-bottom: 0.5rem;
}
.sc-auth-forgot {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: #A8A39A;
  text-decoration: none;
  transition: color 180ms ease;
}
.sc-auth-forgot:hover { color: #1C1C1C; }
.sc-auth-input {
  display: block;
  width: 100%;
  background: #F9F8F6;
  border: 1px solid #E8E4DC;
  border-radius: 0;
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  color: #1C1C1C;
  padding: 0.75rem 1rem;
  outline: none;
  transition: border-color 180ms ease;
  box-sizing: border-box;
}
.sc-auth-input:focus { border-color: #A09890; }
.sc-auth-remember {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  color: #6B6A68;
  margin-bottom: 1.5rem;
  cursor: pointer;
}
.sc-auth-btn {
  display: block;
  width: 100%;
  background: #1C1C1C;
  color: #F9F8F6;
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 1rem;
  border: none;
  cursor: pointer;
  transition: opacity 180ms ease;
  margin-bottom: 1.25rem;
}
.sc-auth-btn:hover { opacity: 0.85; }
.sc-auth-switch {
  text-align: center;
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  color: #A8A39A;
  margin-top: 0.5rem;
}
.sc-auth-switch-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  color: #1C1C1C;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0;
}
.sc-auth-hint {
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  color: #A8A39A;
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

/* OR divider */
.sc-login-or {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.25rem 0;
  color: #C8C3BB;
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.sc-login-or::before,
.sc-login-or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #E8E4DC;
}

/* Social buttons — Nextend Social Login overrides */
.sc-social-btns .nsl-container { display: flex; flex-direction: column; gap: 0.75rem; }
.sc-social-btns .nsl-button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.75rem !important;
  width: 100% !important;
  padding: 0.8rem 1rem !important;
  border-radius: 0 !important;
  font-family: 'Jost', sans-serif !important;
  font-size: 12px !important;
  letter-spacing: 0.12em !important;
  font-weight: 400 !important;
  text-decoration: none !important;
  transition: opacity 180ms ease !important;
  box-sizing: border-box !important;
}
.sc-social-btns .nsl-button:hover { opacity: 0.88 !important; }
.sc-social-btns .nsl-button-google {
  background: #fff !important;
  color: #1C1C1C !important;
  border: 1px solid #E8E4DC !important;
}
.sc-social-btns .nsl-button-facebook {
  background: #1877F2 !important;
  color: #fff !important;
  border: none !important;
}
.sc-social-btns .nsl-button-icon { display: flex; align-items: center; flex-shrink: 0; }
.sc-social-btns .nsl-button-label-container { font-size: inherit !important; }
