/*
Theme Name: Whats Down
Theme URI: https://whatsdown.in
Author: Whats Down
Description: Custom WooCommerce storefront theme for Whats Down — comfy, quirky, cool innerwear — envisioned, designed and made in India.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: whatsdown
*/

/* ============================================================
   DESIGN TOKENS — ported 1:1 from the Whats Down design system
   ============================================================ */
:root {
  /* colors.css */
  --color-ink: #141414;
  --color-ink-soft: #3A3A3A;
  --color-paper: #FFFFFF;
  --color-cream: #F7F2E9;
  --color-grey-100: #F2F1EF;
  --color-grey-200: #E4E2DE;
  --color-grey-300: #CFCCC6;
  --color-grey-400: #A9A59D;
  --color-grey-500: #807C74;
  --color-grey-600: #5C594F;
  --color-accent: #FF2E93;
  --color-accent-dark: #C81574;
  --color-accent-darker: #970F58;
  --color-accent-tint: #FFE3F0;
  --color-sale: #E8412C;
  --color-sale-tint: #FCE3DF;
  --color-success: #2F7D4F;
  --color-success-tint: #E1F0E6;
  --surface-page: var(--color-paper);
  --surface-page-alt: var(--color-cream);
  --surface-card: var(--color-paper);
  --surface-sunken: var(--color-grey-100);
  --surface-inverse: var(--color-ink);
  --text-primary: var(--color-ink);
  --text-secondary: var(--color-grey-600);
  --text-muted: var(--color-grey-500);
  --text-inverse: var(--color-paper);
  --text-accent: var(--color-accent-dark);
  --border-default: var(--color-grey-200);
  --border-strong: var(--color-ink);
  --link: var(--color-accent-dark);
  --link-hover: var(--color-accent-darker);

  /* typography.css */
  --font-display: "Poppins", ui-sans-serif, system-ui, sans-serif;
  --font-body: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --fs-display-xl: clamp(44px, 7vw, 96px);
  --fs-display-lg: clamp(32px, 4.5vw, 52px);
  --fs-display-md: clamp(26px, 3.2vw, 36px);
  --fs-heading-lg: 28px;
  --fs-heading-md: 22px;
  --fs-heading-sm: 18px;
  --fs-body-lg: 18px;
  --fs-body-md: 16px;
  --fs-body-sm: 14px;
  --fs-caption: 12px;
  --lh-tight: 1.08;
  --lh-heading: 1.2;
  --lh-body: 1.55;
  --ls-tight: -0.01em;
  --ls-display: -0.03em;
  --ls-wide: 0.08em;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  /* spacing.css */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --container-max: 1280px;
  --container-pad: 24px;

  /* effects.css */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;
  --shadow-card: 0 1px 2px rgba(20,20,20,0.05), 0 10px 24px rgba(20,20,20,0.06);
  --shadow-card-hover: 0 4px 10px rgba(20,20,20,0.08), 0 16px 32px rgba(20,20,20,0.10);
  --shadow-popover: 0 12px 32px rgba(20,20,20,0.16);
  --blur-glass: saturate(1.4) blur(14px);
  --border-w: 1.5px;
  --ease-out: cubic-bezier(.16,1,.3,1);
  --ease-in-out: cubic-bezier(.65,0,.35,1);
  --duration-fast: 120ms;
  --duration-base: 200ms;
  --duration-slow: 340ms;
}

/* ============================================================
   BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--color-paper); }
body {
  font-family: var(--font-body);
  font-size: var(--fs-body-md);
  line-height: var(--lh-body);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; color: inherit; }
input::placeholder, textarea::placeholder { color: var(--color-grey-400); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: var(--lh-heading); margin: 0; }

.wd-container { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.wd-visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@keyframes wd-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes wd-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes wd-sheet { from { transform: translateY(28px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes wd-slide { from { transform: translateX(40px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes wd-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ============================================================
   COMPONENTS — Button
   ============================================================ */
.wd-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: var(--radius-pill);
  border: var(--border-w) solid transparent;
  font-family: var(--font-display); font-weight: 600; font-size: 14px;
  padding: 12px 22px; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background var(--duration-fast), color var(--duration-fast), border-color var(--duration-fast), transform var(--duration-fast);
  line-height: 1;
}
.wd-btn:active { transform: scale(0.97); }
.wd-btn:disabled, .wd-btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; }
.wd-btn--sm { padding: 8px 16px; font-size: 13px; }
.wd-btn--lg { padding: 15px 26px; font-size: 15px; }
.wd-btn--full { width: 100%; }
.wd-btn--primary { background: var(--color-accent); color: #fff; }
.wd-btn--primary:hover { background: var(--color-accent-dark); color: #fff; }
.wd-btn--dark { background: var(--color-ink); color: #fff; }
.wd-btn--dark:hover { background: var(--color-ink-soft); color: #fff; }
.wd-btn--secondary { background: transparent; color: var(--color-ink); border-color: var(--border-strong); }
.wd-btn--secondary:hover { background: var(--color-grey-100); color: var(--color-ink); }
.wd-btn--ghost { background: transparent; color: var(--color-ink); }
.wd-btn--ghost:hover { background: var(--color-grey-100); }
/* Outline pill used on cards ("+ Drawer") — inverts on hover */
.wd-btn--outline { background: #fff; color: var(--color-ink); border-color: var(--color-ink); font-size: 12px; padding: 7px 12px; }
.wd-btn--outline:hover { background: var(--color-ink); color: #fff; }

/* ============================================================
   COMPONENTS — Badge / PriceTag
   ============================================================ */
.wd-badge {
  display: inline-block; border-radius: var(--radius-pill);
  font-family: var(--font-display); font-weight: 700; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.04em; padding: 4px 10px; line-height: 1.2;
}
.wd-badge--sale { background: var(--color-sale); color: #fff; }
.wd-badge--new { background: var(--color-ink); color: #fff; }
.wd-badge--soldout { background: var(--color-grey-200); color: var(--text-secondary); }
.wd-badge--outline { background: transparent; border: var(--border-w) solid var(--border-strong); color: var(--color-ink); }

.wd-price { display: inline-flex; align-items: baseline; gap: 8px; white-space: nowrap; font-weight: 700; }
.wd-price__compare { color: var(--text-muted); text-decoration: line-through; font-weight: 400; }
.wd-price__now { color: var(--text-primary); }
.wd-price--sale .wd-price__now { color: var(--color-sale); }
.wd-price--sm { font-size: 14px; } .wd-price--sm .wd-price__compare { font-size: 12px; }
.wd-price--md { font-size: 17px; } .wd-price--md .wd-price__compare { font-size: 14px; }
.wd-price--lg { font-size: 22px; } .wd-price--lg .wd-price__compare { font-size: 17px; }

/* ============================================================
   COMPONENTS — Section label / eyebrow / rack tag
   ============================================================ */
.wd-eyebrow { font-family: var(--font-display); font-weight: 600; font-size: 11px; letter-spacing: 0.26em; color: var(--color-ink-soft); text-transform: uppercase; }
.wd-rack-tag { background: #FFF9EE; border: var(--border-w) solid rgba(20,20,20,0.15); border-radius: var(--radius-md); box-shadow: var(--shadow-card); padding: 12px 18px; }
.wd-rack-tag__title { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: 0.1em; text-transform: uppercase; }
.wd-rack-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 30px 0 20px; }
.wd-rack-head__blurb { font-size: 13px; color: var(--text-secondary); }

/* ============================================================
   COMPONENTS — Product card
   ============================================================ */
.wd-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px 14px; }
@media (max-width: 900px) { .wd-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .wd-grid { grid-template-columns: repeat(2, 1fr); gap: 22px 12px; } }

.wd-card { display: flex; flex-direction: column; align-items: center; gap: 9px; text-align: center; }
.wd-card__media {
  position: relative; display: block; width: 100%; aspect-ratio: 4/5;
  border-radius: var(--radius-lg); overflow: hidden; background: var(--color-grey-100);
  box-shadow: var(--shadow-card);
  transition: transform var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out);
}
.wd-card__media:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.wd-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--duration-slow) var(--ease-out); }
.wd-card__media:hover img { transform: scale(1.03); }
.wd-card__badge { position: absolute; top: 10px; left: 10px; z-index: 2; }
.wd-card__title { font-family: var(--font-display); font-weight: 600; font-size: 13px; color: var(--text-primary); }
.wd-card__title a { color: inherit; }
.wd-card__sizes { display: flex; gap: 5px; justify-content: center; flex-wrap: wrap; font-size: 10.5px; font-weight: 600; }
.wd-card__sizes .is-out { color: var(--text-muted); text-decoration: line-through; }
.wd-card__sizes .is-in { color: var(--color-ink); }
/* CSS "print" swatch fallback (no photo) — mimics the design's flat boxer illustration */
.wd-print-swatch { width: 68%; margin: auto; filter: drop-shadow(0 8px 10px rgba(20,20,20,0.16)); }
.wd-print-swatch__band { height: 20px; background: #23211E; border-radius: 8px 8px 0 0; }
.wd-print-swatch__body { height: 84px; clip-path: polygon(0 0,100% 0,97% 100%,55% 100%,50% 64%,45% 100%,3% 100%); }
.wd-card__media--swatch { display: flex; align-items: center; justify-content: center; background: #fff; }

/* ============================================================
   ANNOUNCEMENT BAR
   ============================================================ */
.wd-announce { background: var(--color-ink); color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 12px; text-align: center; padding: 9px 16px; min-height: 36px; display: flex; align-items: center; justify-content: center; letter-spacing: 0.02em; }
@media (max-width: 480px) { .wd-announce { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; line-height: 36px; padding: 0 12px; } }

/* ============================================================
   HEADER
   ============================================================ */
.wd-header {
  position: sticky; top: 0; z-index: 60; height: 56px;
  background: rgba(255,255,255,0.92); backdrop-filter: var(--blur-glass); -webkit-backdrop-filter: var(--blur-glass);
  border-bottom: var(--border-w) solid var(--color-grey-200);
  display: flex; align-items: center; gap: 12px; padding: 0 16px;
}
.wd-header__logo img { height: 22px; width: auto; }
.wd-header__spacer { flex: 1; }
.wd-header__nav { display: flex; gap: 4px; }
.wd-header__nav a { font-family: var(--font-display); font-weight: 600; font-size: 12.5px; color: var(--color-ink); padding: 7px 12px; border-radius: var(--radius-pill); transition: background var(--duration-fast); }
.wd-header__nav a:hover, .wd-header__nav .current-menu-item a { background: var(--color-grey-100); color: var(--color-ink); }
.wd-header__search {
  border: var(--border-w) solid var(--color-grey-200); background: #fff; border-radius: var(--radius-pill);
  height: 36px; width: min(260px, 30vw); min-width: 36px; display: flex; align-items: center; gap: 8px; padding: 0 12px;
  cursor: pointer; color: var(--text-muted); font-size: 13px; transition: border-color var(--duration-fast);
}
.wd-header__search:hover { border-color: var(--color-ink); }
.wd-header__search svg { flex: 0 0 auto; color: var(--color-ink); }
.wd-header__search span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wd-header__drawer {
  position: relative; cursor: pointer; border: var(--border-w) solid var(--color-ink); background: #fff;
  border-radius: var(--radius-pill); height: 36px; padding: 0 14px; display: flex; align-items: center; gap: 7px;
  font-family: var(--font-display); font-weight: 600; font-size: 12px; color: var(--color-ink);
  transition: all var(--duration-fast);
}
.wd-header__drawer:hover { background: var(--color-ink); color: #fff; }
.wd-header__count {
  position: absolute; top: -7px; right: -7px; background: var(--color-sale); color: #fff; border-radius: var(--radius-pill);
  min-width: 19px; height: 19px; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 10.5px; padding: 0 5px;
}
.wd-header__count[data-count="0"] { display: none; }
@media (max-width: 720px) {
  .wd-header__nav { display: none; }
  .wd-header__search span { display: none; }
  .wd-header__search { width: 36px; padding: 0; justify-content: center; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.wd-footer { background: var(--color-ink); color: rgba(255,255,255,0.85); margin-top: 44px; padding: 44px 20px 72px; }
@media (max-width: 860px) { .wd-footer { padding-bottom: 128px; } }
.wd-footer__grid { max-width: 1080px; margin: 0 auto; display: flex; gap: 40px; flex-wrap: wrap; }
.wd-footer__brand { flex: 2; min-width: 220px; display: flex; flex-direction: column; gap: 14px; }
.wd-footer__brand img { height: 28px; width: auto; margin-left: -4px; }
.wd-footer__tagline { font-size: 13px; color: rgba(255,255,255,0.65); max-width: 280px; line-height: 1.55; }
.wd-footer__col { flex: 1; min-width: 150px; display: flex; flex-direction: column; gap: 9px; font-size: 13px; }
.wd-footer__head { font-family: var(--font-display); font-weight: 600; font-size: 12px; letter-spacing: 0.14em; color: rgba(255,255,255,0.5); text-transform: uppercase; }
.wd-footer__col a { color: rgba(255,255,255,0.85); }
.wd-footer__col a:hover { color: #fff; }
.wd-footer__note { color: rgba(255,255,255,0.55); font-size: 12px; margin-top: 6px; }
.wd-footer__legal { max-width: 1080px; margin: 26px auto 0; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.14); font-size: 11.5px; color: rgba(255,255,255,0.45); display: flex; gap: 14px; flex-wrap: wrap; }
.wd-footer__legal a { color: rgba(255,255,255,0.6); }
.wd-newsletter { display: flex; gap: 6px; max-width: 320px; }
.wd-newsletter input { flex: 1; min-width: 0; border: var(--border-w) solid rgba(255,255,255,0.25); background: rgba(255,255,255,0.06); color: #fff; border-radius: var(--radius-pill); padding: 9px 14px; font-size: 13px; outline: none; }
.wd-newsletter input:focus { border-color: #fff; }
.wd-newsletter button { border: none; background: #fff; color: var(--color-ink); border-radius: var(--radius-pill); padding: 9px 14px; font-family: var(--font-display); font-weight: 600; font-size: 12px; cursor: pointer; }

/* ============================================================
   HOMEPAGE — Hero
   ============================================================ */
/* Entrance parallax: the section is ~1.7 viewports tall (the scroll runway); the sticky wrapper pins
   the scene for that distance while JS drives scale/opacity/translate from scroll progress. */
.wd-hero { position: relative; height: 170vh; min-height: 900px; background: var(--color-paper); }
.wd-hero__sticky { position: sticky; top: 56px; height: calc(100vh - 56px); min-height: 520px; overflow: hidden; background: var(--color-paper); }
.wd-hero__scene { position: absolute; inset: 0; transform-origin: 50% 58%; will-change: transform, opacity; }
.wd-hero__media { position: absolute; inset: 0; }
.wd-hero__media video, .wd-hero__media img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; }
.wd-hero__vignette { position: absolute; inset: 0; background: radial-gradient(120% 100% at 50% 45%, rgba(0,0,0,0) 62%, rgba(20,20,20,0.28) 100%); pointer-events: none; }
.wd-hero__text {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; padding: 0 20px; text-align: center; animation: wd-rise 0.6s var(--ease-out); will-change: transform, opacity;
}
/* Reduced motion / no-JS: no runway, just a normal hero. */
.wd-hero.is-static, .wd-hero.is-static .wd-hero__sticky { height: calc(100vh - 56px); min-height: 520px; position: relative; top: auto; }
@media (prefers-reduced-motion: reduce) { .wd-hero, .wd-hero .wd-hero__sticky { height: calc(100vh - 56px); min-height: 520px; position: relative; top: auto; } }
.wd-hero__eyebrow { font-family: var(--font-display); font-weight: 600; font-size: 11px; letter-spacing: 0.26em; color: var(--color-ink-soft); white-space: nowrap; }
@media (max-width: 480px) { .wd-hero__eyebrow { font-size: 9.5px; letter-spacing: 0.18em; } .wd-hero--has-media .wd-hero__plate { padding: 18px 16px; } }
.wd-hero__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 4.6vw, 44px); line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; max-width: 680px; }
.wd-hero__sub { font-size: 15px; color: var(--color-ink-soft); }
.wd-hero__scroll { margin-top: 8px; background: rgba(255,255,255,0.92); border: var(--border-w) solid rgba(20,20,20,0.22); border-radius: var(--radius-pill); padding: 8px 18px; font-family: var(--font-display); font-weight: 600; font-size: 12.5px; color: var(--color-ink); animation: wd-bob 2.2s var(--ease-out) infinite; }
/* When a photo/video sits behind the copy, give the text a soft glass plate so it stays legible on light or dark footage. */
.wd-hero--has-media .wd-hero__text > * { position: relative; }
.wd-hero--has-media .wd-hero__plate {
  background: rgba(255,255,255,0.72); backdrop-filter: var(--blur-glass); -webkit-backdrop-filter: var(--blur-glass);
  border-radius: 22px; padding: 22px 28px; display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 760px;
  box-shadow: 0 8px 30px rgba(20,20,20,0.10);
}
.wd-hero--has-media .wd-hero__title { color: var(--color-ink); }
.wd-hero--has-media .wd-hero__eyebrow, .wd-hero--has-media .wd-hero__sub { color: var(--color-ink-soft); }

/* ============================================================
   HOMEPAGE — Racks
   ============================================================ */
.wd-racks { padding: 44px 16px 8px; }
.wd-racks__intro { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.wd-racks__cards { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; width: 100%; }
.wd-rack-card {
  cursor: pointer; flex: 1; min-width: 280px; padding: 22px 22px 24px;
  border: var(--border-w) solid rgba(20,20,20,0.18); border-radius: 20px;
  background: linear-gradient(180deg, #FFF9EE 0%, #F3E1C1 100%);
  display: flex; flex-direction: column; align-items: center; gap: 14px; color: inherit; text-decoration: none;
  transition: transform var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out);
}
.wd-rack-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); color: inherit; }
.wd-rack-card:active { transform: scale(0.97); }
.wd-rack-card__img { width: 100%; aspect-ratio: 1080/1350; border-radius: 14px; overflow: hidden; background: rgba(255,255,255,0.5); }
.wd-rack-card__img img { width: 100%; height: 100%; object-fit: cover; }
.wd-rack-card__title { font-family: var(--font-display); font-weight: 600; font-size: 18px; }
.wd-rack-card__sub { font-size: 13px; color: var(--text-secondary); }
.wd-racks__perks { font-size: 12.5px; color: var(--color-ink-soft); display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

.wd-feel { margin: 40px 0; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.wd-feel__title { font-family: var(--font-display); font-weight: 600; font-size: 18px; }
.wd-feel__grid { display: flex; gap: 16px; flex-wrap: wrap; }
.wd-feel__tile { flex: 1; min-width: 280px; height: 320px; border-radius: 14px; overflow: hidden; background: var(--color-grey-100); }
.wd-feel__tile img, .wd-feel__tile video { width: 100%; height: 100%; object-fit: cover; display: block; }
.wd-feel__copy { font-size: 14px; color: var(--text-secondary); line-height: 1.5; }

.wd-banner { height: 240px; margin: 38px 0 0; border-radius: 18px; overflow: hidden; background: var(--color-grey-100); }
.wd-banner--wide { height: clamp(260px, 36vw, 420px); }
.wd-banner img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 78%; }

/* ---------- Social proof: curated Instagram grid ---------- */
.wd-insta { margin: 44px 0 10px; }
.wd-insta__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.wd-insta__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(20px, 2.6vw, 26px); letter-spacing: -0.01em; margin-top: 6px; }
.wd-insta__sub { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }
.wd-insta__sub strong { color: var(--color-ink); font-weight: 600; }
.wd-insta__grid { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 1fr; gap: 8px; }
.wd-insta__tile { position: relative; display: block; aspect-ratio: 1/1; border-radius: 12px; overflow: hidden; background: var(--color-grey-100); }
.wd-insta__tile--big { grid-column: span 2; grid-row: span 2; }
.wd-insta__tile img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--duration-slow) var(--ease-out); }
.wd-insta__tile:hover img { transform: scale(1.04); }
.wd-insta__hover { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; background: rgba(20,20,20,0.35); opacity: 0; transition: opacity var(--duration-fast); }
.wd-insta__tile:hover .wd-insta__hover, .wd-insta__tile:focus-visible .wd-insta__hover { opacity: 1; }
@media (max-width: 720px) { .wd-insta__grid { grid-template-columns: repeat(3, 1fr); } .wd-insta__tile--big { grid-column: span 2; grid-row: span 2; } }

.wd-trust { display: flex; gap: 12px; flex-wrap: wrap; margin: 34px 0 8px; }
.wd-trust__item { flex: 1; min-width: 200px; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 18px 14px; background: #fff; border-radius: var(--radius-lg); font-weight: 600; font-size: 13px; box-shadow: var(--shadow-card); }

/* ============================================================
   SHOP / ARCHIVE — Quick shop grid
   ============================================================ */
.wd-shop { max-width: 1080px; margin: 0 auto; padding: 26px 16px 10px; }
.wd-shop__head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.wd-shop__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(24px, 3.4vw, 34px); letter-spacing: -0.02em; }
.wd-shop__blurb { font-size: 13.5px; color: var(--text-secondary); }
.wd-filterbar {
  position: static; z-index: 40; background: var(--color-paper);
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 14px 0 12px;
  border-bottom: var(--border-w) solid var(--color-grey-200); margin-top: 10px;
}
.wd-filterbar input[type="search"] {
  flex: 1; min-width: 150px; max-width: 260px; border: var(--border-w) solid var(--color-grey-300);
  border-radius: var(--radius-pill); padding: 8px 14px; font-size: 13.5px; background: #fff; outline: none;
}
.wd-filterbar input[type="search"]:focus { border-color: var(--color-ink); }
.wd-chip {
  cursor: pointer; padding: 7px 13px; border-radius: var(--radius-pill); border: var(--border-w) solid var(--color-grey-300);
  background: #fff; color: var(--color-ink); font-weight: 600; font-size: 12.5px; text-decoration: none; transition: all var(--duration-fast);
}
.wd-chip:hover { border-color: var(--color-ink); color: var(--color-ink); }
.wd-chip.is-active { background: var(--color-ink); color: #fff; border-color: var(--color-ink); }
.wd-shop__section-title { font-family: var(--font-display); font-weight: 700; font-size: 20px; margin: 26px 0 14px; }
.wd-shop__empty { padding: 60px 0; text-align: center; color: var(--text-secondary); font-size: 14px; }
.wd-pagination { display: flex; gap: 6px; justify-content: center; margin: 30px 0 10px; }
.wd-pagination a, .wd-pagination span { padding: 7px 13px; border-radius: var(--radius-pill); border: var(--border-w) solid var(--color-grey-300); font-weight: 600; font-size: 12.5px; color: var(--color-ink); }
.wd-pagination .current { background: var(--color-ink); color: #fff; border-color: var(--color-ink); }

/* ============================================================
   SINGLE PRODUCT
   ============================================================ */
.wd-pdp { max-width: 1080px; margin: 0 auto; padding: 26px 16px 20px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 36px; align-items: start; }
@media (max-width: 860px) { .wd-pdp { grid-template-columns: minmax(0, 1fr); } }
.wd-pdp__gallery { display: flex; flex-direction: column; gap: 10px; min-width: 0; position: sticky; top: 72px; }
.wd-pdp__hero { width: 100%; aspect-ratio: 4/5; max-height: calc(100vh - 110px); border-radius: 16px; overflow: hidden; background: var(--color-grey-100); }
.wd-pdp__hero img { width: 100%; height: 100%; object-fit: cover; transition: opacity var(--duration-fast); }
.wd-pdp__hero img.is-swapping { opacity: 0.4; }
.wd-pdp__thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: thin; scroll-snap-type: x proximity; }
.wd-pdp__thumb { flex: 0 0 auto; width: 64px; height: 80px; border-radius: 10px; overflow: hidden; border: var(--border-w) solid var(--color-grey-200); background: var(--color-grey-100); padding: 0; cursor: pointer; scroll-snap-align: start; transition: border-color var(--duration-fast), transform var(--duration-fast); }
.wd-pdp__thumb img { width: 100%; height: 100%; object-fit: cover; }
.wd-pdp__thumb:hover { border-color: var(--color-grey-400); }
.wd-pdp__thumb.is-active { border-color: var(--color-ink); }
.wd-pdp__thumb:active { transform: scale(0.96); }
.wd-pdp__gallery .wd-pdp__img { aspect-ratio: 4/5; border-radius: 16px; overflow: hidden; background: var(--color-grey-100); }
.wd-pdp__gallery .wd-pdp__img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .wd-pdp__gallery { position: static; } }
.wd-pdp__info { display: flex; flex-direction: column; gap: 14px; }
.wd-pdp__title { font-family: var(--font-display); font-weight: 700; font-size: 26px; letter-spacing: -0.01em; }
.wd-pdp__story { font-size: 14px; color: var(--text-secondary); line-height: 1.55; }
.wd-pdp__story ul { margin: 0; padding-left: 18px; }
.wd-pdp__size-row { display: flex; align-items: baseline; gap: 10px; }
.wd-pdp__size-label { font-family: var(--font-display); font-weight: 600; font-size: 13px; }
.wd-pdp__size-note { font-size: 12px; color: var(--text-muted); }
.wd-pdp__trust { background: var(--color-grey-100); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; }
.wd-pdp__trust .tick { color: var(--color-success); font-weight: 700; margin-right: 6px; }
.wd-pdp__desc { max-width: 1080px; margin: 10px auto 30px; padding: 0 16px; font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
.wd-pdp__desc h2 { font-size: 18px; margin: 20px 0 8px; color: var(--text-primary); }

/* Size selector — mirrors design system SizeSelector; drives WooCommerce variation form */
.wd-sizes { display: flex; gap: 8px; flex-wrap: wrap; }
.wd-size {
  min-width: 44px; height: 44px; padding: 0 12px; border-radius: 10px; border: var(--border-w) solid var(--border-default);
  background: #fff; color: var(--color-ink); font-family: var(--font-display); font-weight: 600; font-size: 13px; cursor: pointer;
  transition: all var(--duration-fast); display: inline-flex; align-items: center; justify-content: center;
}
.wd-size:hover { border-color: var(--color-ink); }
.wd-size.is-selected { background: var(--color-ink); color: #fff; border-color: var(--color-ink); }
.wd-size.is-out { color: var(--text-muted); text-decoration: line-through; cursor: not-allowed; }
.wd-size.is-out:hover { border-color: var(--border-default); }

/* Hide WooCommerce's default variation <select>/table but keep it functional */
.wd-pdp .variations, .wd-pdp .reset_variations { display: none !important; }
.wd-pdp .single_variation_wrap .woocommerce-variation-price { display: none; }
.wd-pdp .quantity, .wd-pdp .woocommerce-variation-add-to-cart .quantity, .wd-pdp form.cart .quantity { display: none !important; }
.wd-pdp form.cart, .wd-pdp .woocommerce-variation-add-to-cart { display: flex; flex-direction: column; gap: 10px; }
.wd-pdp .single_add_to_cart_button, .wd-pdp .wd-add-btn {
  width: 100%; border: none; border-radius: var(--radius-pill); background: var(--color-accent); color: #fff;
  padding: 15px 20px; font-family: var(--font-display); font-weight: 600; font-size: 15px; cursor: pointer;
  transition: background var(--duration-fast), transform var(--duration-fast);
}
.wd-pdp .single_add_to_cart_button:hover { background: var(--color-accent-dark); }
.wd-pdp .single_add_to_cart_button:active { transform: scale(0.98); }
.wd-pdp .single_add_to_cart_button.disabled, .wd-pdp .single_add_to_cart_button:disabled { opacity: 0.45; cursor: not-allowed; }
.wd-pdp .woocommerce-variation-availability p { margin: 0; font-size: 12.5px; color: var(--text-muted); }
.wd-pdp form.cart .added_to_cart, .wd-card .added_to_cart { display: none !important; }
.wd-pdp .woocommerce-variation-availability .out-of-stock { color: var(--color-sale); }
.woocommerce-message, .woocommerce-error, .woocommerce-info { border-radius: 12px; border: var(--border-w) solid var(--color-grey-200); background: var(--color-grey-100); padding: 12px 16px; margin: 0 16px 16px; font-size: 13.5px; list-style: none; }
.woocommerce-error { border-color: var(--color-sale); background: var(--color-sale-tint); }
.woocommerce-message a.button, .woocommerce-message .button { float: right; margin-left: 12px; }

/* ============================================================
   CART DRAWER (bottom pill + sheet)
   ============================================================ */
.wd-drawer { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; padding: 0 12px 12px; pointer-events: none; }
.wd-drawer__inner { max-width: 720px; margin: 0 auto; pointer-events: auto; }
.wd-drawer__sheet { display: none; background: #fff; border-radius: 18px; box-shadow: var(--shadow-popover); padding: 16px 18px; margin-bottom: 8px; flex-direction: column; gap: 12px; animation: wd-sheet 0.25s var(--ease-out); }
.wd-drawer.is-open .wd-drawer__sheet { display: flex; }
.wd-drawer__head { display: flex; align-items: center; gap: 10px; }
.wd-drawer__title { font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.wd-drawer__meta { font-size: 12.5px; color: var(--text-muted); }
.wd-drawer__close { cursor: pointer; border: none; background: none; color: var(--text-muted); padding: 4px; margin-left: auto; }
.wd-drawer__empty { font-size: 13px; color: var(--text-secondary); }
.wd-drawer__items { display: flex; flex-direction: column; gap: 8px; max-height: 220px; overflow: auto; }
.wd-drawer__item { display: flex; align-items: center; gap: 10px; }
.wd-drawer__thumb { width: 34px; height: 34px; border-radius: 6px; overflow: hidden; background: var(--color-grey-100); flex: 0 0 auto; }
.wd-drawer__thumb img { width: 100%; height: 100%; object-fit: cover; }
.wd-drawer__name { font-family: var(--font-display); font-weight: 600; font-size: 13px; flex: 1; }
.wd-drawer__size { font-size: 11.5px; font-weight: 600; border: var(--border-w) solid var(--color-grey-200); border-radius: var(--radius-pill); padding: 2px 8px; color: var(--text-secondary); }
.wd-drawer__price { font-size: 12.5px; font-weight: 700; }
.wd-drawer__remove { cursor: pointer; border: none; background: none; color: var(--text-muted); padding: 4px; }
.wd-drawer__pay { background: var(--color-grey-100); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 5px; }
.wd-drawer__pay strong { font-size: 12px; font-weight: 600; }
.wd-drawer__pay span { font-size: 11.5px; color: var(--text-secondary); }
.wd-drawer__pill {
  cursor: pointer; width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  border: var(--border-w) solid rgba(20,20,20,0.28); border-radius: 16px;
  background: linear-gradient(180deg, #F8ECD5 0%, #EAD6AE 100%); box-shadow: var(--shadow-popover);
  text-align: left; transition: border-color var(--duration-fast);
}
.wd-drawer__pill:hover { border-color: var(--color-ink); }
.wd-drawer__minis { display: flex; gap: 4px; }
.wd-drawer__mini { width: 24px; height: 24px; border-radius: 5px; overflow: hidden; background: var(--color-grey-200); }
.wd-drawer__mini img { width: 100%; height: 100%; object-fit: cover; }
.wd-drawer__msg { flex: 1; font-size: 12.5px; color: var(--color-ink-soft); }
.wd-drawer__total { font-family: var(--font-display); font-weight: 700; font-size: 14px; }
.wd-drawer__meter { display: flex; gap: 5px; align-items: center; }
.wd-drawer__meter span { flex: 1; height: 8px; border-radius: 4px; background: var(--color-grey-200); }
.wd-drawer__meter span.on { background: var(--color-success); }
.wd-drawer__meter-labels { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-muted); margin-top: 5px; }
body.wd-has-drawer { padding-bottom: 96px; }

/* ============================================================
   SEARCH / DIRECTORY overlay
   ============================================================ */
.wd-scrim { position: fixed; inset: 0; background: rgba(20,20,20,0.45); z-index: 80; animation: wd-fade 0.2s; display: none; }
.wd-dir { position: fixed; top: 0; right: 0; bottom: 0; width: min(380px, 92vw); background: #fff; z-index: 81; box-shadow: var(--shadow-popover); padding: 20px; overflow: auto; animation: wd-slide 0.25s var(--ease-out); display: none; flex-direction: column; gap: 18px; }
body.wd-dir-open .wd-scrim, body.wd-dir-open .wd-dir { display: flex; }
body.wd-dir-open .wd-scrim { display: block; }
.wd-dir__head { display: flex; align-items: center; gap: 10px; }
.wd-dir__title { font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.wd-dir__close { cursor: pointer; border: none; background: none; color: var(--text-muted); padding: 4px; margin-left: auto; }
.wd-dir input[type="search"] { border: var(--border-w) solid var(--color-grey-300); border-radius: var(--radius-pill); padding: 10px 16px; font-size: 14px; outline: none; }
.wd-dir input[type="search"]:focus { border-color: var(--color-ink); }
.wd-dir__label { font-family: var(--font-display); font-weight: 600; font-size: 12px; letter-spacing: 0.1em; color: var(--text-muted); text-transform: uppercase; }
.wd-dir__chips { display: flex; gap: 6px; flex-wrap: wrap; }
.wd-dir__results { display: flex; flex-direction: column; gap: 4px; }
.wd-dir__result { display: flex; align-items: center; gap: 10px; border: none; background: none; padding: 7px 6px; border-radius: 10px; color: inherit; text-decoration: none; text-align: left; }
.wd-dir__result:hover { background: var(--color-grey-100); color: inherit; }
.wd-dir__result-thumb { width: 30px; height: 30px; border-radius: 6px; overflow: hidden; background: var(--color-grey-100); flex: 0 0 auto; }
.wd-dir__result-thumb img { width: 100%; height: 100%; object-fit: cover; }
.wd-dir__result-name { flex: 1; font-family: var(--font-display); font-weight: 600; font-size: 13px; }
.wd-dir__result-price { font-size: 12.5px; color: var(--color-sale); font-weight: 700; }

#wd-toast { display: none; position: fixed; left: 50%; transform: translateX(-50%); bottom: 96px; z-index: 90; background: var(--color-ink); color: #fff; border-radius: var(--radius-pill); padding: 10px 18px; font-weight: 600; font-size: 13px; box-shadow: var(--shadow-popover); max-width: 88vw; text-align: center; }

/* ============================================================
   CART / CHECKOUT / ACCOUNT pages (WooCommerce native, reskinned)
   ============================================================ */
.wd-page { max-width: 1080px; margin: 0 auto; padding: 26px 16px 40px; }
.wd-page__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 3vw, 30px); letter-spacing: -0.01em; margin-bottom: 18px; }
.wd-page .woocommerce { font-size: 14px; }
.wd-page .woocommerce table.shop_table { border: none; border-collapse: collapse; width: 100%; }
.wd-page .woocommerce table.shop_table th, .wd-page .woocommerce table.shop_table td { border-bottom: 1px solid var(--color-grey-100); padding: 12px 8px; text-align: left; }
.wd-page .woocommerce table.shop_table th { font-family: var(--font-display); font-weight: 600; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.wd-page .woocommerce img { max-width: 60px; border-radius: 8px; }
.wd-page .woocommerce a.remove { color: var(--text-muted) !important; font-size: 18px; }
.wd-page .woocommerce a.remove:hover { color: var(--color-sale) !important; background: transparent; }
.wd-page .woocommerce input[type="text"], .wd-page .woocommerce input[type="email"], .wd-page .woocommerce input[type="tel"], .wd-page .woocommerce input[type="password"], .wd-page .woocommerce input[type="number"], .wd-page .woocommerce textarea, .wd-page .woocommerce select, .wd-page .woocommerce .select2-container .select2-selection--single {
  border: var(--border-w) solid var(--color-grey-300); border-radius: 12px; padding: 11px 14px; font: 400 14px var(--font-body); background: #fff; outline: none; width: 100%; height: auto; box-sizing: border-box;
}
.wd-page .woocommerce input:focus, .wd-page .woocommerce textarea:focus, .wd-page .woocommerce select:focus { border-color: var(--color-ink); }
.wd-page .woocommerce .select2-container .select2-selection--single { height: 44px; display: flex; align-items: center; }
.wd-page .woocommerce .select2-container--default .select2-selection--single .select2-selection__arrow { top: 9px; right: 8px; }
.wd-page .woocommerce label { font-weight: 600; font-size: 12.5px; margin-bottom: 4px; display: block; }
.wd-page .woocommerce form .form-row { padding: 0; margin-bottom: 12px; }
.wd-page .woocommerce .button, .wd-page .woocommerce button.button, .wd-page .woocommerce a.button, .wd-page .woocommerce input.button, .wd-page .woocommerce #place_order, .wd-page .woocommerce .checkout-button {
  border: none; border-radius: var(--radius-pill); background: var(--color-ink); color: #fff; padding: 13px 20px;
  font: 600 14px var(--font-display); cursor: pointer; line-height: 1; transition: background var(--duration-fast), transform var(--duration-fast); text-decoration: none; display: inline-block;
}
.wd-page .woocommerce .button:hover, .wd-page .woocommerce #place_order:hover { background: var(--color-ink-soft); color: #fff; }
.wd-page .woocommerce .button:active { transform: scale(0.98); }
.wd-page .woocommerce #place_order, .wd-page .woocommerce .checkout-button { width: 100%; background: var(--color-accent); font-size: 15px; padding: 15px 20px; }
.wd-page .woocommerce #place_order:hover, .wd-page .woocommerce .checkout-button:hover { background: var(--color-accent-dark); }
.wd-page .woocommerce .button.alt:disabled, .wd-page .woocommerce .button:disabled { opacity: 0.45; }
.wd-page .woocommerce .cart-collaterals .cart_totals, .wd-page .woocommerce #order_review, .wd-page .woocommerce-checkout #customer_details > div, .wd-page .woocommerce .woocommerce-billing-fields, .wd-page .woocommerce .woocommerce-shipping-fields, .wd-page .woocommerce .woocommerce-additional-fields, .wd-page .woocommerce-account .woocommerce-MyAccount-content, .wd-page .woocommerce-account .woocommerce-MyAccount-navigation, .wd-page .woocommerce form.login, .wd-page .woocommerce form.register {
  background: #fff; border-radius: 18px; box-shadow: var(--shadow-card); padding: 18px; margin-bottom: 16px; float: none; width: 100%;
}
.wd-page .woocommerce-checkout #customer_details { display: grid; grid-template-columns: 1fr; gap: 0; float: none; width: 100%; }
.wd-page .woocommerce-checkout .col2-set .col-1, .wd-page .woocommerce-checkout .col2-set .col-2 { float: none; width: 100%; }
.wd-page .woocommerce h3, .wd-page .woocommerce h2 { font-family: var(--font-display); font-weight: 700; font-size: 15px; margin: 0 0 12px; }
.wd-page .woocommerce #payment { background: transparent; border-radius: 0; }
.wd-page .woocommerce #payment ul.payment_methods { border-bottom: 1px solid var(--color-grey-100); padding: 0 0 12px; }
.wd-page .woocommerce #payment ul.payment_methods li { padding: 8px 0; }
.wd-page .woocommerce #payment div.payment_box { background: var(--color-grey-100); border-radius: 12px; }
.wd-page .woocommerce #payment div.payment_box::before { border-bottom-color: var(--color-grey-100); }
.wd-page .woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.wd-page .woocommerce-account .woocommerce-MyAccount-navigation a { display: inline-block; padding: 7px 13px; border-radius: var(--radius-pill); border: var(--border-w) solid var(--color-grey-300); font-weight: 600; font-size: 12.5px; color: var(--color-ink); }
.wd-page .woocommerce-account .woocommerce-MyAccount-navigation .is-active a { background: var(--color-ink); color: #fff; border-color: var(--color-ink); }
.wd-page .woocommerce-checkout-review-order-table .product-name { font-weight: 600; }
.wd-page .woocommerce .cart_totals .order-total td, .wd-page .woocommerce .order-total td { font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.wd-page .woocommerce-notices-wrapper .woocommerce-message { margin: 0 0 16px; }
.wd-page .woocommerce-order { display: flex; flex-direction: column; gap: 16px; }
.wd-page .woocommerce-thankyou-order-received { font-family: var(--font-display); font-weight: 700; font-size: 20px; text-align: center; padding: 20px 0 6px; }
.wd-page ul.woocommerce-thankyou-order-details { list-style: none; padding: 0; margin: 0; display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; font-size: 13px; }
.wd-page ul.woocommerce-thankyou-order-details li { border: var(--border-w) solid var(--color-grey-200); border-radius: 12px; padding: 10px 14px; }
.wd-page .woocommerce-notice { text-align: center; }

/* ==================================================================
 * PDP v1.1 — breadcrumbs, savings, size guide, delivery, details, reviews, sticky CTA
 * ================================================================== */
.wd-crumbs { padding: 14px 0 0; font-size: 12.5px; color: var(--text-muted); }
.wd-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.wd-crumbs li + li::before { content: "›"; margin: 0 6px 0 2px; color: var(--color-grey-400); }
.wd-crumbs a { color: var(--text-secondary); text-decoration: none; }
.wd-crumbs a:hover { color: var(--color-ink); text-decoration: underline; }
.wd-crumbs li[aria-current] { color: var(--color-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60vw; }
.wd-pdp { padding-top: 14px; }
.wd-pdp__hero { position: relative; }
.wd-pdp__hero-badge { position: absolute; top: 12px; left: 12px; z-index: 2; }
.wd-pdp__thumb img { display: block; }
.wd-pdp__price-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.wd-pdp__save { font-size: 12.5px; font-weight: 600; color: var(--color-success); background: var(--color-success-tint); border-radius: 999px; padding: 3px 9px; }
.wd-pdp__tax { font-size: 11.5px; color: var(--text-muted); margin-top: 4px; }
.wd-pdp__size-row { flex-wrap: wrap; }
.wd-pdp__size-guide-btn { margin-left: auto; background: none; border: 0; padding: 0; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--link); text-decoration: underline; cursor: pointer; }
.wd-pdp__size-guide-btn:hover { color: var(--link-hover); }
.wd-size { position: relative; }
.wd-size.is-low::after { content: ""; position: absolute; top: -3px; right: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--color-sale); border: 2px solid #fff; }
.wd-pdp__low { margin-top: 8px; font-size: 12.5px; font-weight: 600; color: var(--color-sale); }
.wd-size-guide { margin-top: 12px; border: var(--border-w) solid var(--color-grey-200); border-radius: 12px; padding: 12px 14px; font-size: 13px; }
.wd-size-guide table { width: 100%; border-collapse: collapse; }
.wd-size-guide th, .wd-size-guide td { text-align: left; padding: 6px 4px; border-bottom: 1px solid var(--color-grey-200); }
.wd-size-guide th { font-family: var(--font-display); font-weight: 600; font-size: 12px; color: var(--text-secondary); }
.wd-size-guide tr:last-child td { border-bottom: 0; }
.wd-size-guide p { margin: 10px 0 0; color: var(--text-muted); font-size: 12.5px; }
.wd-pdp__delivery { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-secondary); }
.wd-pdp__delivery svg { flex: 0 0 auto; color: var(--color-ink); }
.wd-pdp__delivery strong { color: var(--text-primary); }
.wd-pdp__details-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (max-width: 640px) { .wd-pdp__details-grid { grid-template-columns: 1fr; } }
.wd-pdp__details-grid > div { background: var(--color-grey-100); border-radius: 12px; padding: 12px 14px; font-size: 13.5px; line-height: 1.5; }
.wd-pdp__details-grid strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-primary); margin-bottom: 4px; }

/* Reviews (WooCommerce single-product-reviews.php) */
.wd-pdp__reviews .woocommerce-Reviews-title { font-size: 18px; margin: 20px 0 8px; color: var(--text-primary); font-family: var(--font-display); font-weight: 700; }
.wd-pdp__reviews .commentlist { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.wd-pdp__reviews .comment_container { display: flex; gap: 12px; background: var(--color-grey-100); border-radius: 12px; padding: 12px 14px; }
.wd-pdp__reviews .comment_container img.avatar { width: 36px; height: 36px; border-radius: 50%; }
.wd-pdp__reviews .comment-text .meta { font-size: 12px; color: var(--text-muted); margin: 4px 0 6px; }
.wd-pdp__reviews .comment-text .description p { margin: 0; }
.wd-pdp__reviews .star-rating, .wd-pdp__reviews .stars { color: #F6C445; }
.wd-pdp__reviews .star-rating, .star-rating { overflow: hidden; position: relative; height: 1.1em; line-height: 1.1; width: 5.6em; font-family: Arial, sans-serif; font-size: 1em; letter-spacing: .08em; }
.wd-pdp__reviews .star-rating::before, .star-rating::before { content: "★★★★★"; color: var(--color-grey-300); float: left; top: 0; left: 0; position: absolute; }
.wd-pdp__reviews .star-rating span, .star-rating span { overflow: hidden; float: left; top: 0; left: 0; position: absolute; padding-top: 1.5em; }
.wd-pdp__reviews .star-rating span::before, .star-rating span::before { content: "★★★★★"; color: #F6C445; top: 0; position: absolute; left: 0; }
/* Review form star picker */
.comment-form-rating p.stars { display: inline-flex; gap: 2px; margin: 6px 0 10px; }
.comment-form-rating p.stars a { position: relative; width: 1.4em; height: 1.4em; font-size: 22px; text-indent: -9999px; overflow: hidden; text-decoration: none; }
.comment-form-rating p.stars a::before { content: "★"; position: absolute; inset: 0; text-indent: 0; color: var(--color-grey-300); line-height: 1.4em; text-align: center; }
.comment-form-rating p.stars:hover a::before, .comment-form-rating p.stars.selected a::before { color: #F6C445; }
.comment-form-rating p.stars a:hover ~ a::before, .comment-form-rating p.stars.selected a.active ~ a::before { color: var(--color-grey-300); }
.comment-form-rating select#rating { display: none; }
.wd-pdp__reviews #review_form_wrapper { border: var(--border-w) solid var(--color-grey-200); border-radius: 12px; padding: 14px 16px; }
.wd-pdp__reviews .comment-reply-title { display: block; font-family: var(--font-display); font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.wd-pdp__reviews .comment-form { display: flex; flex-direction: column; gap: 10px; }
.wd-pdp__reviews .comment-form label { display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 4px; }
.wd-pdp__reviews .comment-form input[type="text"], .wd-pdp__reviews .comment-form input[type="email"], .wd-pdp__reviews .comment-form textarea { width: 100%; padding: 10px 12px; border: var(--border-w) solid var(--color-grey-300); border-radius: 10px; font: inherit; font-size: 14px; }
.wd-pdp__reviews .comment-form textarea { min-height: 90px; }
.wd-pdp__reviews .comment-form .comment-form-cookies-consent { display: flex; align-items: center; gap: 8px; }
.wd-pdp__reviews .comment-form .comment-form-cookies-consent label { margin: 0; font-weight: 400; }
.wd-pdp__reviews .comment-form .stars a { display: inline-block; text-indent: -999em; width: 1em; height: 1em; position: relative; margin-right: 2px; font-family: star, sans-serif; }
.wd-pdp__reviews .comment-form .stars a::before { content: "\73"; position: absolute; left: 0; top: 0; text-indent: 0; color: var(--color-grey-300); }
.wd-pdp__reviews .comment-form .stars:hover a::before, .wd-pdp__reviews .comment-form .stars.selected a::before { color: #F6C445; content: "\53"; }
.wd-pdp__reviews .comment-form .stars a:hover ~ a::before, .wd-pdp__reviews .comment-form .stars.selected a.active ~ a::before { color: var(--color-grey-300); content: "\73"; }
.wd-pdp__reviews .comment-form .form-submit { margin: 0; }
.wd-pdp__reviews .comment-form .submit { background: var(--color-ink); color: #fff; border: 0; border-radius: 999px; padding: 11px 22px; font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; }
.wd-pdp__reviews .comment-form .submit:hover { background: var(--color-ink-soft); }
.wd-pdp__reviews .woocommerce-noreviews { font-size: 13.5px; color: var(--text-secondary); margin: 0 0 12px; }

/* Sticky add-to-cart bar (mobile, appears once the main button scrolls off) */
.wd-sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: rgba(255,255,255,0.96); backdrop-filter: blur(8px); border-top: var(--border-w) solid var(--color-grey-200); padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); transform: translateY(110%); transition: transform var(--duration-fast, .18s) ease; }
.wd-sticky-cta.is-visible { transform: none; }
.wd-sticky-cta__inner { display: flex; align-items: center; gap: 10px; max-width: 1080px; margin: 0 auto; }
.wd-sticky-cta img { width: 44px; height: 55px; border-radius: 8px; object-fit: cover; flex: 0 0 auto; }
.wd-sticky-cta__meta { min-width: 0; flex: 1; }
.wd-sticky-cta__name { font-family: var(--font-display); font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wd-sticky-cta__btn { flex: 0 0 auto; padding: 11px 18px; font-size: 14px; }
@media (min-width: 861px) { .wd-sticky-cta { display: none; } }
@media (max-width: 860px) { body.wd-sticky-on .wd-drawer { bottom: 66px; } body.wd-sticky-on #wd-toast { bottom: 150px; } }
.wd-pdp__size-note.is-low { color: var(--color-sale); font-weight: 600; }

/* Order-perk tiers (drawer + PDP) */
.wd-drawer__perkbar { position: relative; height: 8px; border-radius: 4px; background: var(--color-grey-200); margin: 4px 0 24px; }
.wd-drawer__perkbar-fill { height: 100%; border-radius: 4px; background: var(--color-success); transition: width .35s ease; }
.wd-drawer__perkstop { position: absolute; top: 50%; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid var(--color-grey-300); transform: translate(-50%, -50%); }
.wd-drawer__perkstop.is-on { border-color: var(--color-success); background: var(--color-success); }
.wd-drawer__perklabels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; font-size: 10.5px; line-height: 1.25; color: var(--text-muted); margin-top: -12px; }
.wd-drawer__perklabels span { display: flex; flex-direction: column; text-align: center; }
.wd-drawer__perklabels span:first-child { text-align: left; } .wd-drawer__perklabels span:last-child { text-align: right; }
.wd-drawer__perklabels strong { color: var(--text-primary); font-family: var(--font-display); font-weight: 600; font-size: 11.5px; }
.wd-drawer__perklabels .is-on strong { color: var(--color-success); }
.wd-drawer__perkmsg { margin-top: 8px; font-size: 12.5px; font-weight: 600; color: var(--text-primary); }
.wd-pdp__perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (max-width: 400px) { .wd-pdp__perks { grid-template-columns: 1fr; } }
.wd-pdp__perk { border: var(--border-w) solid var(--color-grey-200); border-radius: 10px; padding: 8px 10px; font-size: 11.5px; line-height: 1.3; color: var(--text-secondary); display: flex; flex-direction: column; gap: 2px; }
.wd-pdp__perk-amt { font-family: var(--font-display); font-weight: 700; font-size: 13px; color: var(--color-ink); }

/* ------------------------------------------------------------------
 * Drawer on desktop: a compact pill bottom-right; opens as a right-side panel (not a bottom sheet)
 * ---------------------------------------------------------------- */
@media (min-width: 861px) {
  .wd-drawer { left: auto; right: 0; top: 0; bottom: 0; padding: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-end; }
  .wd-drawer__inner { max-width: none; margin: 0; width: 360px; padding: 0 16px 16px 0; transition: width .3s var(--ease-out), padding .3s var(--ease-out); }
  .wd-drawer__pill { border-radius: 999px; padding: 10px 14px 10px 14px; }
  .wd-drawer__pill .wd-drawer__msg { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  /* Open: full-height panel sliding in from the right */
  .wd-drawer__scrim { position: fixed; inset: 0; background: rgba(20,20,20,.32); backdrop-filter: blur(2px); opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 0; }
  .wd-drawer.is-open .wd-drawer__scrim { opacity: 1; pointer-events: auto; }
  .wd-drawer.is-open .wd-drawer__inner { position: relative; z-index: 1; width: 420px; height: 100%; padding: 0; display: flex; flex-direction: column; background: #fff; box-shadow: -24px 0 60px -30px rgba(20,20,20,.45); animation: wd-panel-in .32s var(--ease-out); }
  .wd-drawer.is-open #wd-drawer-contents { display: flex; flex-direction: column; height: 100%; min-height: 0; }
  .wd-drawer.is-open .wd-drawer__sheet { flex: 1; min-height: 0; overflow: auto; margin: 0; border-radius: 0; box-shadow: none; padding: 22px 22px 12px; animation: none; }
  .wd-drawer.is-open .wd-drawer__items { max-height: none; }
  .wd-drawer.is-open .wd-drawer__pill { border-radius: 0; border-width: 1px 0 0; box-shadow: none; background: #fff; padding: 14px 22px 18px; }
  .wd-drawer.is-open .wd-drawer__pill svg:last-child { transform: rotate(180deg); }
  .wd-drawer.is-open .wd-drawer__close svg { transform: rotate(-90deg); }
  @keyframes wd-panel-in { from { transform: translateX(40px); opacity: .4; } to { transform: none; opacity: 1; } }
  .wd-drawer.is-open .wd-drawer__head { padding-bottom: 6px; border-bottom: 1px dashed var(--color-grey-200); }
  .wd-drawer.is-open .wd-drawer__title { font-size: 18px; }
  .wd-drawer.is-open .wd-drawer__thumb { width: 52px; height: 52px; border-radius: 10px; }
  .wd-drawer.is-open .wd-drawer__item { padding: 6px 0; }
  .wd-drawer.is-open .wd-drawer__name { font-size: 13.5px; }
  body.wd-sticky-on .wd-drawer { bottom: 0; }
}

/* Footer: track-your-order card + legal row */
.wd-footer__track { display: flex; align-items: center; gap: 12px; margin-top: 4px; max-width: 320px; padding: 12px 14px; border-radius: 16px; background: var(--color-accent); color: #fff; text-decoration: none; font-size: 13px; line-height: 1.25; transition: transform .3s var(--ease-out), box-shadow .3s; box-shadow: 0 14px 30px -16px rgba(255,46,147,.8); }
.wd-footer__track:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 18px 34px -14px rgba(255,46,147,.9); }
.wd-footer__track strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: 14px; }
.wd-footer__track small { display: block; font-size: 11.5px; opacity: .85; }
.wd-footer__track-ico { font-size: 22px; }
.wd-footer__track-arrow { margin-left: auto; font-weight: 700; font-size: 16px; }
.wd-footer__legal { justify-content: space-between; }
.wd-footer__legal-right { color: rgba(255,255,255,0.35); }
.wd-footer__markets { font-size: 11.5px; color: rgba(255,255,255,0.45); display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.wd-footer__markets span { color: rgba(255,255,255,0.75); font-weight: 600; }
.wd-footer__markets span + span::before { content: "·"; margin-right: 6px; color: rgba(255,255,255,0.3); }

/* Tablet header: keep nav on one line */
.wd-header__nav a { white-space: nowrap; }
@media (max-width: 1000px) {
  .wd-header__logo img { height: 19px; }
  .wd-header__nav { gap: 0; }
  .wd-header__nav a { font-size: 12px; padding: 7px 9px; }
  .wd-header__search { width: 36px; padding: 0; justify-content: center; }
  .wd-header__search span { display: none; }
}
.wd-footer__name { font-family: var(--font-fun); font-weight: 800; font-size: 22px; letter-spacing: -.02em; color: #fff; }

/* Mobile menu */
.wd-header__menu { display: none; width: 36px; height: 36px; border-radius: 50%; border: var(--border-w) solid var(--color-ink); background: #fff; align-items: center; justify-content: center; cursor: pointer; color: var(--color-ink); }
@media (max-width: 720px) { .wd-header__menu { display: inline-flex; } .wd-header__drawer span { display: none; } .wd-header__drawer { padding: 0 10px; } }
.wd-menu-scrim { position: fixed; inset: 0; background: rgba(20,20,20,.35); backdrop-filter: blur(2px); opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 90; }
.wd-menu { position: fixed; top: 0; right: 0; bottom: 0; width: min(86vw, 360px); background: var(--color-cream); z-index: 91; transform: translateX(104%); transition: transform .32s var(--ease-out); padding: 18px 20px 28px; overflow: auto; display: flex; flex-direction: column; gap: 18px; box-shadow: -24px 0 60px -30px rgba(20,20,20,.45); }
body.wd-menu-open .wd-menu { transform: none; } body.wd-menu-open .wd-menu-scrim { opacity: 1; pointer-events: auto; } body.wd-menu-open { overflow: hidden; }
.wd-menu__head { display: flex; align-items: center; justify-content: space-between; }
.wd-menu__title { font-family: var(--font-fun); font-weight: 800; font-size: 24px; letter-spacing: -.02em; }
.wd-menu__close { width: 36px; height: 36px; border-radius: 50%; border: var(--border-w) solid var(--color-grey-300); background: #fff; display: grid; place-items: center; cursor: pointer; }
.wd-menu__group { display: flex; flex-direction: column; gap: 4px; }
.wd-menu__label { font-family: var(--font-display); font-weight: 600; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 4px; }
.wd-menu__link { display: flex; justify-content: space-between; align-items: center; padding: 13px 14px; background: #fff; border-radius: 14px; font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--color-ink); text-decoration: none; border: 1px solid rgba(20,20,20,.06); }
.wd-menu__link span { color: var(--text-muted); }
.wd-menu__foot { font-size: 12px; color: var(--text-muted); line-height: 1.5; margin-top: auto; }
html, body { overflow-x: clip; }
.wd-menu { visibility: hidden; } body.wd-menu-open .wd-menu { visibility: visible; }
