/* ============================================================
   AVEDesigns.com — Main Stylesheet
   Bold, street-style custom print merchandise e-commerce
   ============================================================ */

/* ── Google Fonts ──────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Roboto:wght@400;500&display=swap');

/* ============================================================
   1. CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  /* Colors */
  --color-primary: #111111;
  --color-accent-coral: #FF6B6B;
  --color-accent-cyan: #22D3EE;
  --color-accent-pink: #FF69B4;
  --color-surface: #FFFFFF;
  --color-surface-alt: #F5F5F5;
  --color-text: #111111;
  --color-text-secondary: #666666;
  --color-text-inverse: #FFFFFF;
  --color-success: #16A34A;
  --color-error: #DC2626;
  --color-warning: #F59E0B;

  /* Typography */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Roboto', sans-serif;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;

  /* Layout */
  --container-max: 1280px;
  --header-height: 100px;

  /* Shadows (brutalist) */
  --shadow-brutal: 4px 4px 0px var(--color-primary);
  --shadow-brutal-lg: 6px 6px 0px var(--color-primary);
  --shadow-brutal-hover: 6px 6px 0px var(--color-primary);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  /* Z-index layers */
  --z-header: 100;
  --z-mobile-nav: 200;
  --z-cart-drawer: 300;
  --z-toast: 400;
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* Mobile-overflow guard: body's overflow-x:hidden alone is not always
     respected (iOS Safari quirk). Belt-and-braces. */
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-text);
  background-color: var(--color-surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body > .footer {
  margin-top: auto;
}

img,
picture,
video,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input,
select,
textarea {
  font: inherit;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(36px, 5vw, 64px); line-height: 1.1; }
h2 { font-size: clamp(28px, 3.5vw, 42px); line-height: 1.2; }
h3 { font-size: clamp(20px, 2vw, 24px); line-height: 1.3; }

/* ── Custom Scrollbar ──────────────────────────────────────── */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--color-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--color-accent-cyan);
  border: 2px solid var(--color-primary);
}

::-webkit-scrollbar-thumb:hover {
  background: #1ab8cc;
}

/* Firefox */
html {
  scrollbar-color: var(--color-accent-cyan) var(--color-primary);
  scrollbar-width: thin;
}

/* ── Focus & Accessibility ─────────────────────────────────── */
:focus-visible {
  outline: 3px solid var(--color-accent-cyan);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  z-index: 9999;
  padding: var(--space-sm) var(--space-md);
  background: var(--color-accent-cyan);
  color: var(--color-primary);
  font-weight: 500;
  text-decoration: none;
  border-radius: 0;
}

.skip-link:focus {
  top: var(--space-sm);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   3. LAYOUT UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

.section {
  padding-block: var(--space-3xl);
}

.section--dark {
  background-color: var(--color-primary);
  color: var(--color-text-inverse);
}

.section--alt {
  background-color: var(--color-surface-alt);
}

.section__title {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

/* ============================================================
   4. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 14px 28px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  white-space: nowrap;
  text-decoration: none;
}

.btn--coral {
  background-color: var(--color-accent-coral);
  color: var(--color-text-inverse);
  box-shadow: var(--shadow-brutal);
}

.btn--coral:hover,
.btn--coral:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-brutal-hover);
}

.btn--coral:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0px var(--color-primary);
}

.btn--cyan {
  background-color: var(--color-accent-cyan);
  color: var(--color-primary);
  box-shadow: var(--shadow-brutal);
}

.btn--cyan:hover,
.btn--cyan:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-brutal-hover);
}

.btn--cyan:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0px var(--color-primary);
}

.btn--black {
  background-color: var(--color-primary);
  color: var(--color-text-inverse);
  box-shadow: 4px 4px 0px var(--color-accent-coral);
}

.btn--black:hover,
.btn--black:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px var(--color-accent-coral);
}

.btn--black:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0px var(--color-accent-coral);
}

.btn--ghost {
  background: transparent;
  border: 2px solid var(--color-text-inverse);
  color: var(--color-text-inverse);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: var(--color-text-inverse);
  color: var(--color-primary);
}

.btn--lg {
  padding: 18px 36px;
  font-size: 16px;
}

.btn--sm {
  padding: 10px 20px;
  font-size: 12px;
}

.btn--full {
  width: 100%;
}

/* ============================================================
   5. HEADER
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background-color: var(--color-primary);
  color: var(--color-text-inverse);
  height: var(--header-height);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

.header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  color: var(--color-text-inverse);
  flex-shrink: 0;
}

.logo-mark {
  height: 88px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.header__nav {
  display: none;
}

.nav__list {
  display: flex;
  gap: var(--space-xl);
}

.nav__link {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-inverse);
  text-decoration: none;
  position: relative;
  padding-block: var(--space-xs);
  transition: color var(--transition-fast);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent-cyan);
  transition: width var(--transition-base);
}

.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

.nav__link--active {
  color: var(--color-accent-cyan);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.header__search-btn,
.header__cart-btn,
.header__menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--color-text-inverse);
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  transition: color var(--transition-fast);
}

.header__search-btn:hover,
.header__cart-btn:hover,
.header__menu-btn:hover {
  color: var(--color-accent-cyan);
}

.cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--color-accent-coral);
  color: var(--color-text-inverse);
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  border-radius: 9px;
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 24px;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

/* ── Search Bar ────────────────────────────────────────────── */
.search-bar {
  position: absolute;
  top: var(--header-height);
  left: 0;
  width: 100%;
  background: var(--color-primary);
  padding: var(--space-md);
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--transition-base), opacity var(--transition-base);
  z-index: calc(var(--z-header) - 1);
}

.search-bar.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.search-bar__form {
  display: flex;
  max-width: 640px;
  margin-inline: auto;
}

.search-bar__input {
  flex: 1;
  padding: 12px var(--space-md);
  background: var(--color-surface);
  border: 2px solid transparent;
  color: var(--color-text);
  font-size: 16px;
}

.search-bar__input:focus {
  border-color: var(--color-accent-cyan);
  outline: none;
}

.search-bar__submit {
  padding: 12px var(--space-lg);
  background: var(--color-accent-cyan);
  color: var(--color-primary);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 14px;
  border: none;
  cursor: pointer;
}

.search-bar__close {
  position: absolute;
  top: 50%;
  right: var(--space-md);
  transform: translateY(-50%);
  color: var(--color-text-inverse);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

/* ── Header social icons ───────────────────────────────────── */
.header__social {
  display: none;
}

.header__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--color-text-inverse);
  font-size: 15px;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.header__social a:hover {
  color: var(--color-accent-cyan);
}

/* ── Desktop nav visibility ────────────────────────────────── */
@media (min-width: 768px) {
  .header__nav {
    display: block;
  }

  .header__menu-btn {
    display: none;
  }

  .header__social {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
  }
}

/* ============================================================
   6. MOBILE NAV
   ============================================================ */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: var(--z-mobile-nav);
  pointer-events: none;
  visibility: hidden;
}

.mobile-nav.is-open {
  pointer-events: auto;
  visibility: visible;
}

.mobile-nav__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.mobile-nav.is-open .mobile-nav__overlay {
  opacity: 1;
}

.mobile-nav__drawer {
  position: absolute;
  top: 0;
  right: 0;
  width: min(320px, 85vw);
  height: 100%;
  background: var(--color-primary);
  color: var(--color-text-inverse);
  padding: var(--space-2xl) var(--space-lg);
  transform: translateX(100%);
  transition: transform var(--transition-slow);
  overflow-y: auto;
}

.mobile-nav.is-open .mobile-nav__drawer {
  transform: translateX(0);
}

.mobile-nav__close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-inverse);
  font-size: 28px;
}

.mobile-nav__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.mobile-nav__list a {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-inverse);
  text-decoration: none;
  display: block;
  padding-block: var(--space-sm);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: color var(--transition-fast);
}

.mobile-nav__list a:hover {
  color: var(--color-accent-cyan);
}

/* ============================================================
   7. HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-primary);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(17, 17, 17, 0.85) 0%,
    rgba(17, 17, 17, 0.5) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--color-text-inverse);
  padding: var(--space-2xl) var(--space-md);
  max-width: 800px;
}

.hero__title {
  font-size: clamp(36px, 5vw, 64px);
  margin-bottom: var(--space-md);
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: var(--space-xl);
  opacity: 0.9;
}

.hero__cta {
  display: inline-flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  justify-content: center;
}

/* ============================================================
   HERO CAROUSEL — WCAG 2.1 AA
   - Crossfade between slides (no jarring slide motion)
   - Respects prefers-reduced-motion (no animation, no auto-rotate)
   - Visible focus ring on all controls
   - 44×44 minimum hit areas on tap targets
   - Sufficient contrast: white text on dark gradient overlay
   ============================================================ */
.hero--carousel { position: relative; }
.hero__slides { position: absolute; inset: 0; }
.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 700ms ease-in-out;
  pointer-events: none;
}
.hero__slide.is-active {
  opacity: 1;
  pointer-events: auto;
}
.hero__slide[hidden] {
  /* hidden attribute hides from a11y tree but slide still positions; opacity controls visual */
  display: flex;
}
.hero__eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #FFC861;
  margin: 0 0 12px;
  padding: 4px 10px;
  background: rgba(0,0,0,0.35);
  border-radius: 4px;
}

/* Prev / Next chevron buttons */
.hero__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  color: #111;
  font-size: 16px;
  cursor: pointer;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
  transition: background var(--transition-fast), transform var(--transition-fast);
}
.hero__nav:hover { background: #fff; }
.hero__nav:focus-visible {
  outline: 3px solid #FFC861;
  outline-offset: 3px;
}
.hero__nav--prev { left: 16px; }
.hero__nav--next { right: 16px; }

/* Dot indicators */
.hero__dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}
.hero__dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 2px solid rgba(255,255,255,0.7);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  /* Ensure 44×44 tap target via padding while visual remains 12px */
  position: relative;
}
.hero__dot::before {
  content: '';
  position: absolute;
  inset: -16px;       /* expand hit area to ~44×44 */
}
.hero__dot:focus-visible {
  outline: 3px solid #FFC861;
  outline-offset: 3px;
}
.hero__dot.is-active {
  background: #fff;
  border-color: #fff;
}

/* Pause/play in lower-right */
.hero__playpause {
  position: absolute;
  bottom: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  color: #fff;
  cursor: pointer;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}
.hero__playpause:hover { background: rgba(0,0,0,0.75); }
.hero__playpause:focus-visible {
  outline: 3px solid #FFC861;
  outline-offset: 3px;
}

/* Visually-hidden utility for the live region */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Reduced motion: kill the crossfade + tell JS to disable auto-rotation */
@media (prefers-reduced-motion: reduce) {
  .hero__slide { transition: none; }
}

@media (max-width: 640px) {
  .hero__nav { width: 40px; height: 40px; }
  .hero__nav--prev { left: 8px; }
  .hero__nav--next { right: 8px; }
  .hero__playpause { bottom: 16px; right: 16px; }
  .hero__dots { bottom: 60px; }
}

/* ============================================================
   FILTER COLOR LIST — scrollable when long (50+ tee colors)
   Keeps the page navigable instead of pushing it to 4000px tall
   ============================================================ */
#colorFilters {
  max-height: 320px;
  overflow-y: auto;
  padding-right: 6px;       /* breathing room next to scrollbar */
  scrollbar-width: thin;
}
#colorFilters::-webkit-scrollbar { width: 8px; }
#colorFilters::-webkit-scrollbar-track { background: rgba(0,0,0,0.04); border-radius: 4px; }
#colorFilters::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.18); border-radius: 4px; }
#colorFilters::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.30); }

/* ============================================================
   8. CATEGORIES STRIP
   ============================================================ */
.categories-strip {
  padding-block: var(--space-xl);
  background: var(--color-surface);
  border-bottom: 1px solid #eee;
}

/* Wrap holds the scrolling strip + nav arrows so arrows are absolutely positioned over the edges */
.categories-strip__wrap {
  position: relative;
}

.categories-strip__scroll {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  padding-inline: 48px;             /* leave room for the absolute-positioned arrows on each side */
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-behavior: smooth;          /* animate JS-triggered scrolls so arrows feel native */
}

.categories-strip__scroll::-webkit-scrollbar {
  display: none;
}

/* Prev/next nav arrows — overlay on each side of the strip */
.categories-strip__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-surface, #fff);
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--color-text, #111);
  z-index: 5;
  transition: background var(--transition-fast), color var(--transition-fast), opacity 200ms ease;
  opacity: 1;
}
.categories-strip__nav:hover {
  background: var(--color-primary, #111);
  color: var(--color-text-inverse, #fff);
}
.categories-strip__nav[hidden] {
  display: none;                    /* hide arrow when nothing more to scroll on that side */
}
.categories-strip__nav--prev { left: 4px; }
.categories-strip__nav--next { right: 4px; }

.category-chip {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 10px 20px;
  background: var(--color-surface-alt);
  border: 2px solid transparent;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  cursor: pointer;
  scroll-snap-align: start;
  transition: border-color var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
  text-decoration: none;
  color: var(--color-text);
}

.category-chip:hover {
  border-color: var(--color-primary);
}

.category-chip--active {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border-color: var(--color-primary);
}

.category-chip__icon {
  font-size: 18px;
  flex-shrink: 0;
}

.category-chip__label {
  /* inherits font styles from .category-chip */
}

/* ============================================================
   9. PRODUCT GRID & CARDS
   ============================================================ */
.product-grid {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: repeat(2, 1fr);
}

.product-grid--4 {
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .product-grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1280px) {
  .product-grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ── Product Card ──────────────────────────────────────────── */
.product-card {
  background: var(--color-surface);
  border: 1px solid #eee;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.product-card__image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--color-surface-alt);
}

.product-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.product-card:hover .product-card__img {
  transform: scale(1.05);
}

.product-card__badges {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  z-index: 2;
}

.badge--new {
  display: inline-block;
  padding: 4px 10px;
  background: var(--color-accent-pink);
  color: var(--color-text-inverse);
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.badge--sale {
  display: inline-block;
  padding: 4px 10px;
  background: var(--color-accent-coral);
  color: var(--color-text-inverse);
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.badge--hot {
  display: inline-block;
  padding: 4px 10px;
  background: var(--color-accent-coral);
  color: var(--color-text-inverse);
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.product-card__quick-add {
  position: absolute;
  bottom: var(--space-sm);
  right: var(--space-sm);
  padding: 10px 16px;
  background: var(--color-accent-cyan);
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-brutal);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--transition-base), transform var(--transition-base), box-shadow var(--transition-fast);
  z-index: 2;
}

.product-card:hover .product-card__quick-add {
  opacity: 1;
  transform: translateY(0);
}

.product-card__quick-add:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-brutal-hover);
}

.product-card__info {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  flex: 1;
}

.product-card__title {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
  line-height: 1.4;
  color: var(--color-text);
}

.product-card__title a {
  text-decoration: none;
  color: inherit;
}

.product-card__title a:hover {
  color: var(--color-accent-coral);
}

.product-card__price {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
}

.product-card__compare-price {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-secondary);
  text-decoration: line-through;
  margin-left: var(--space-sm);
}

.product-card__swatches {
  display: flex;
  gap: 6px;
  margin-top: var(--space-xs);
}

.swatch {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #ddd;
  cursor: pointer;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.swatch:hover {
  border-color: var(--color-primary);
}

.swatch--active {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px var(--color-surface), 0 0 0 4px var(--color-primary);
}

/* ============================================================
   10. DESIGN SPOTLIGHT
   ============================================================ */
.spotlight {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
}

@media (min-width: 768px) {
  .spotlight {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
  }
}

.spotlight__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 4px solid var(--color-primary);
}

.spotlight__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.spotlight__badge {
  display: inline-block;
  align-self: flex-start;
  padding: 6px 14px;
  background: var(--color-accent-pink);
  color: var(--color-text-inverse);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.spotlight__title {
  font-size: clamp(24px, 3vw, 36px);
}

.spotlight__description {
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text-secondary);
}

.spotlight__artist {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-accent-coral);
}

/* ============================================================
   11. UGC / CUSTOMER PHOTOS
   ============================================================ */
.ugc-section {
  /* inherits section styles */
}

.ugc-section__title {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.ugc-section__cta-text {
  text-align: center;
  margin-top: var(--space-2xl);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-text);
  text-transform: uppercase;
}

.ugc-section__cta-text .ugc-tag {
  color: #FF6B35;
  font-weight: 900;
  letter-spacing: 0.06em;
  display: inline-block;
  padding: 2px 10px;
  border: 2px solid #FF6B35;
  border-radius: 999px;
  margin-left: 6px;
}

@media (min-width: 768px) {
  .ugc-section__cta-text {
    font-size: 1.5rem;
  }
}

.ugc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
}

@media (min-width: 768px) {
  .ugc-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1280px) {
  .ugc-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.ugc-grid__item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  cursor: pointer;
}

.ugc-grid__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.ugc-grid__item:hover .ugc-grid__img {
  transform: scale(1.08);
}

/* ============================================================
   12. NEWSLETTER
   ============================================================ */
.newsletter {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  padding-block: var(--space-3xl);
}

.newsletter__inner {
  max-width: 560px;
  margin-inline: auto;
  text-align: center;
  padding-inline: var(--space-md);
}

.newsletter__title {
  margin-bottom: var(--space-lg);
}

.newsletter__form {
  display: flex;
  gap: 0;
}

.newsletter__input {
  flex: 1;
  padding: 14px var(--space-md);
  background: var(--color-surface);
  border: 2px solid transparent;
  color: var(--color-text);
  font-size: 16px;
}

.newsletter__input:focus {
  border-color: var(--color-accent-cyan);
  outline: none;
}

.newsletter__input::placeholder {
  color: var(--color-text-secondary);
}

.newsletter__submit {
  padding: 14px 28px;
  background: var(--color-accent-coral);
  color: var(--color-text-inverse);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.newsletter__submit:hover {
  background: #e55a5a;
}

/* ============================================================
   13. TRUST BADGES
   ============================================================ */
.trust-badges {
  padding-block: var(--space-2xl);
  border-top: 1px solid #eee;
}

.trust-badges__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-md);
  text-align: center;
}

@media (min-width: 768px) {
  .trust-badges__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.trust-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.trust-badge__icon {
  font-size: 32px;
}

.trust-badge__label {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-secondary);
}

/* ============================================================
   14. FOOTER
   ============================================================ */
.footer {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  padding-top: var(--space-3xl);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1280px) {
  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.footer__heading {
  font-size: 17px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-sm);
  color: #fff;
}

.footer__tagline {
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 8px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__links a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer__links a:hover {
  color: var(--color-accent-cyan);
}

.footer__social {
  display: flex;
  gap: var(--space-md);
}

.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  color: var(--color-text-inverse);
  font-size: 18px;
  transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.footer__social a:hover {
  background: var(--color-accent-cyan);
  border-color: var(--color-accent-cyan);
  color: var(--color-primary);
  transform: translateY(-2px);
}

/* Thin divider between the column grid and the bottom row */
.footer__divider {
  max-width: var(--container-max);
  margin: var(--space-2xl) auto 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  max-width: var(--container-max);
  margin-inline: auto;
  padding: var(--space-xl) var(--space-md);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
}

.footer__copyright {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
  line-height: 1.6;
}
.footer__parent {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.02em;
}
.footer__parent strong {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 700;
}

/* Payment-method badge row — bigger, color, with subtle hover lift.
   Each .pay-badge SVG is 46×30 viewBox; we render at 44px wide → ~30px tall. */
.footer__payment-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.footer__payment-icons .pay-badge {
  width: 46px;
  height: 30px;
  display: block;
  border-radius: 4px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.25));
}
.footer__payment-icons .pay-badge:hover {
  transform: translateY(-2px);
}
@media (min-width: 768px) {
  .footer__payment-icons .pay-badge {
    width: 52px;
    height: 34px;
  }
}

/* Legacy compat: any old <i class="fab fa-cc-..."> in pages we haven't
   migrated yet still gets a reasonable size. */
.footer__payment {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
}
.footer__payment img,
.footer__payment-icons .fab {
  height: 28px;
  font-size: 28px;
  opacity: 0.85;
}

.trust-chips {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  color: rgba(255,255,255,0.85);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.trust-chip i {
  font-size: 0.9rem;
  color: var(--color-accent-cyan, #22d3ee);
}

.trust-chip:hover {
  border-color: rgba(255,255,255,0.25);
  color: #fff;
}

/* ============================================================
   15. SHOP PAGE — BREADCRUMBS
   ============================================================ */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
  padding-block: var(--space-md);
  font-size: 13px;
  color: var(--color-text-secondary);
}

.breadcrumbs a {
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.breadcrumbs a:hover {
  color: var(--color-accent-coral);
}

.breadcrumbs__sep {
  color: #ccc;
}

/* ============================================================
   16. SHOP PAGE — HEADER & LAYOUT
   ============================================================ */
.shop-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.shop-header__title {
  /* inherits h1 styles */
}

.shop-header__count {
  font-size: 14px;
  color: var(--color-text-secondary);
  font-weight: 400;
}

.shop-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

@media (min-width: 768px) {
  .shop-layout {
    grid-template-columns: 260px 1fr;
  }
}

/* ── Filters ───────────────────────────────────────────────── */
.filters {
  display: none;
  flex-direction: column;
  gap: var(--space-lg);
}

.filters.is-open {
  display: flex;
}

@media (min-width: 768px) {
  .filters {
    display: flex;
  }
}

.filters__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--space-md);
  border-bottom: 2px solid var(--color-primary);
}

.filters__header h3 {
  font-size: 16px;
}

.filters__clear {
  font-size: 13px;
  color: var(--color-accent-coral);
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 500;
  text-decoration: underline;
}

.filters__close-mobile {
  display: none;
  font-size: 28px;
  color: var(--color-text);
}

@media (max-width: 767px) {
  .filters.is-open {
    position: fixed;
    inset: 0;
    z-index: var(--z-mobile-nav);
    background: var(--color-surface);
    padding: var(--space-lg);
    overflow-y: auto;
  }

  .filters__close-mobile {
    display: block;
  }
}

.filter-group {
  border-bottom: 1px solid #eee;
  padding-bottom: var(--space-md);
}

.filter-group__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-block: var(--space-sm);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text);
}

.filter-group__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding-top: var(--space-sm);
  overflow: hidden;
  max-height: 1000px;
  transition: max-height 0.25s ease, padding-top 0.25s ease, opacity 0.2s ease;
  opacity: 1;
}

/* Collapse content when toggle has aria-expanded="false" */
.filter-group__toggle[aria-expanded="false"] + .filter-group__content {
  max-height: 0;
  padding-top: 0;
  opacity: 0;
  pointer-events: none;
}

/* Chevron shows the NEXT action (action affordance):
   - Collapsed (aria-expanded="false") → ▼ points down (click to expand)
   - Expanded  (aria-expanded="true")  → ▲ points up   (click to collapse)
   The icon's default is fa-chevron-down (▼), so we only rotate when expanded. */
.filter-group__toggle .fa-chevron-down {
  transition: transform 0.2s ease;
}
.filter-group__toggle[aria-expanded="true"] .fa-chevron-down {
  transform: rotate(180deg);
}

.filter-check {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 14px;
  cursor: pointer;
}

.filter-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-accent-cyan);
  cursor: pointer;
}

.filter-price {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.filter-price__input {
  width: 80px;
  padding: 8px;
  border: 2px solid #ddd;
  font-size: 14px;
  text-align: center;
}

.filter-price__input:focus {
  border-color: var(--color-accent-cyan);
  outline: none;
}

.filter-price__sep {
  color: var(--color-text-secondary);
}

/* ── Shop Main ─────────────────────────────────────────────── */
.shop-main {
  /* houses toolbar + grid + pagination */
}

.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.shop-toolbar__filter {
  display: inline-flex;
}

@media (min-width: 768px) {
  .shop-toolbar__filter {
    display: none;
  }
}

/* Inline search input — sits between Filters and Sort in the shop toolbar.
   Grows to fill the gap so it's visible without hunting for the header icon. */
.shop-toolbar__search {
  position: relative;
  flex: 1 1 320px;
  max-width: 480px;
  display: flex;
  align-items: center;
}
.shop-toolbar__search-icon {
  position: absolute;
  left: 12px;
  color: #888;
  pointer-events: none;
  font-size: 14px;
}
.shop-toolbar__search-input {
  width: 100%;
  padding: 9px 14px 9px 36px;
  border: 2px solid #ddd;
  background: var(--color-surface);
  font-size: 14px;
  font-family: inherit;
  color: var(--color-text, #111);
  border-radius: 4px;
  transition: border-color var(--transition-fast);
}
.shop-toolbar__search-input::placeholder { color: #999; }
.shop-toolbar__search-input:focus {
  border-color: var(--color-accent-coral);
  outline: none;
}
@media (max-width: 640px) {
  .shop-toolbar__search { flex: 1 1 auto; max-width: none; }
  .shop-toolbar__search-input { font-size: 13px; padding-left: 32px; }
}

.shop-toolbar__sort {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 14px;
  margin-left: auto;
}

.sort-select {
  padding: 8px 12px;
  border: 2px solid #ddd;
  background: var(--color-surface);
  font-size: 14px;
  cursor: pointer;
}

.sort-select:focus {
  border-color: var(--color-accent-cyan);
  outline: none;
}

.shop-empty {
  text-align: center;
  padding: var(--space-4xl) var(--space-md);
  color: var(--color-text-secondary);
}

.shop-empty h3 {
  margin-bottom: var(--space-md);
  color: var(--color-text);
}

/* ── Pagination ────────────────────────────────────────────── */
.pagination {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-2xl);
  /* Breathing room so the page selector never touches the footer below */
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-md);
}

.pagination__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 var(--space-md);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  border: 2px solid #ddd;
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
  transition: border-color var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
}

.pagination__btn:hover {
  border-color: var(--color-primary);
}

.pagination__btn--active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-text-inverse);
}

/* ============================================================
   17. PRODUCT DETAIL PAGE (PDP)
   ============================================================ */
.pdp {
  padding-block: var(--space-2xl);
}

.pdp__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  /* Defensive: prevents the grid from blowing out wider than viewport
     when a child has wide intrinsic content (long specs row, big image). */
  min-width: 0;
  max-width: 100%;
}

/* Force every direct grid child to allow shrinking below its min-content width.
   Without this, a column with a wide table or non-wrapping word grows the
   1fr track wider than the viewport, taking the rest of the page with it. */
.pdp__layout > * {
  min-width: 0;
  max-width: 100%;
}

.pdp__info > * {
  min-width: 0;
  max-width: 100%;
}

/* Image safety: even if a parent somehow gets oversized, the image itself
   never extends past it. (Was already implicit but make it explicit.) */
.pdp__main-image {
  max-width: 100%;
}
.pdp__img {
  max-width: 100%;
}

@media (min-width: 768px) {
  .pdp__layout {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
  }
}

/* ── Gallery ───────────────────────────────────────────────── */
.pdp__gallery {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.pdp__main-image {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--color-surface-alt);
  border: 2px solid #eee;
}

.pdp__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pdp__thumbnails {
  display: flex;
  gap: var(--space-sm);
  overflow-x: auto;
}

.pdp__thumbnails img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border: 2px solid #eee;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity var(--transition-fast), border-color var(--transition-fast);
}

.pdp__thumbnails img:hover,
.pdp__thumbnails img.is-active {
  opacity: 1;
  border-color: var(--color-primary);
}

/* ── Product Info ──────────────────────────────────────────── */
.pdp__info {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.pdp__badges {
  display: flex;
  gap: var(--space-sm);
}

.pdp__title {
  font-size: clamp(24px, 3vw, 36px);
}

.pdp__price-row {
  display: flex;
  align-items: baseline;
  gap: var(--space-md);
}

.pdp__price {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 900;
  color: var(--color-text);
}

.pdp__compare-price {
  font-size: 20px;
  color: var(--color-text-secondary);
  text-decoration: line-through;
}

.pdp__description {
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text-secondary);
}

/* Printify product descriptions ship size charts as raw HTML <table>.
   Style them so they render as actual tables instead of stacked text.
   Width-auto: size to content (no extra negative space when there are only
   2-3 size columns like a mug's "11oz / 15oz"). Falls back to inline-block
   so the inner cells dictate width while still respecting max-width. */
.pdp__description table {
  border-collapse: collapse;
  width: auto;               /* size to content, not container */
  max-width: 100%;
  margin: 16px 0;
  font-size: 11px;
  background: var(--color-surface, #fff);
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
  table-layout: auto;
  display: inline-table;     /* sizes to content; switches to block for scroll on tiny viewports */
  -webkit-overflow-scrolling: touch;
}
@media (max-width: 360px) {
  /* On the tiniest screens, allow horizontal scroll so 9-column tee tables don't squish */
  .pdp__description table {
    display: block;
    overflow-x: auto;
    width: 100%;
  }
}
.pdp__description thead,
.pdp__description tr:first-child {
  background: var(--color-primary, #111);
  color: #fff !important;
}
/* Header cells — match both <thead><th> AND <thead><td> AND first-row cells
   AND any inline children Printify wraps text in. */
.pdp__description thead th,
.pdp__description thead td,
.pdp__description tr:first-child th,
.pdp__description tr:first-child td {
  padding: 8px 8px;
  text-align: center;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 2px solid var(--color-primary, #111);
  color: #fff !important;
  background: var(--color-primary, #111) !important;
  white-space: nowrap !important;
  word-break: keep-all !important;
}
/* Force white onto any nested element Printify may use inside header cells */
.pdp__description thead th *,
.pdp__description thead td *,
.pdp__description tr:first-child th *,
.pdp__description tr:first-child td * {
  color: #fff !important;
  background: transparent !important;
}
.pdp__description tbody tr:nth-child(even) td { background: rgba(0,0,0,0.02); }
.pdp__description td {
  padding: 6px 8px;
  text-align: center;
  border-bottom: 1px solid #ececec;
  border-right: 1px solid #ececec;
  font-size: 11px;
  white-space: nowrap !important;       /* force — Printify wraps numbers in <p> with their own white-space */
  word-break: keep-all !important;
  overflow-wrap: normal !important;
}
/* Some Printify HTML wraps cell contents in <p>/<span>/<strong> — force those too */
.pdp__description td p,
.pdp__description td span,
.pdp__description td strong,
.pdp__description th p,
.pdp__description th span,
.pdp__description th strong {
  white-space: nowrap !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
  margin: 0 !important;
}
.pdp__description td:last-child,
.pdp__description th:last-child { border-right: none; }
.pdp__description tbody tr:last-child td { border-bottom: none; }
.pdp__description td:first-child {
  font-weight: 700;
  text-align: left;
  background: rgba(0,0,0,0.03);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.03em;
  white-space: normal !important;       /* labels CAN wrap (long ones like "SLEEVE LENGTH (FROM CENTER BACK), IN") */
  word-break: normal !important;
  min-width: 110px;
}
.pdp__description td:first-child p,
.pdp__description td:first-child span,
.pdp__description td:first-child strong {
  white-space: normal !important;
}
.pdp__description ul, .pdp__description ol {
  padding-left: 20px;
  margin: 12px 0;
}
.pdp__description li { margin: 6px 0; }
.pdp__description p { margin: 12px 0; }
.pdp__description strong, .pdp__description b { color: var(--color-primary, #111); font-weight: 700; }
.pdp__description h1, .pdp__description h2, .pdp__description h3, .pdp__description h4 {
  font-family: var(--font-heading);
  font-weight: 800;
  margin: 18px 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.pdp__description img { max-width: 100%; height: auto; border-radius: 4px; }

@media (max-width: 720px) {
  .pdp__description table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

/* ── Variants — Sizes ──────────────────────────────────────── */
.pdp__variants {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.pdp__variants label {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.size-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.size-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  padding: 8px 10px;
  border: 2px solid #ddd;
  background: var(--color-surface);
  font-family: var(--font-heading);
  cursor: pointer;
  transition: border-color var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
}

.size-btn__label {
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.size-btn__price {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-accent-coral);
  margin-top: 3px;
  line-height: 1;
}

.size-btn:hover {
  border-color: var(--color-primary);
}

.size-btn--active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-text-inverse);
}

.size-btn--active .size-btn__price {
  color: var(--color-text-inverse);
}

/* ── Variants — Colors ─────────────────────────────────────── */
.color-picker {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.color-picker label {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.color-picker__options {
  display: flex;
  flex-wrap: wrap;            /* products with many colors must wrap on mobile */
  gap: var(--space-sm);
  max-width: 100%;
}

.color-dot {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1.5px solid rgba(0,0,0,0.12);
  cursor: pointer;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.color-dot:hover {
  border-color: var(--color-primary);
  transform: translateY(-1px);
}

.color-dot--active {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px var(--color-surface), 0 0 0 3px var(--color-primary);
}

/* Smaller variant used on product cards in shop grid */
.color-dot--sm {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  border-width: 1px;
}

/* Container for color swatches inside product cards */
.product-card__colors {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  flex-wrap: wrap;
}

/* "+N" indicator when there are more colors than shown */
.color-dot__more {
  font-size: 10px;
  font-weight: 700;
  color: var(--color-text-dim, #666);
  margin-left: 2px;
  letter-spacing: -0.02em;
}

.color-picker__label {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.color-picker__label > span {
  margin-left: var(--space-xs);
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--color-text-secondary);
}

.color-picker__swatches {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.color-swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 3px solid #ddd;
  padding: 0;
  cursor: pointer;
  background-clip: padding-box;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.color-swatch:hover {
  border-color: var(--color-primary);
  transform: scale(1.05);
}

.color-swatch--selected {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px var(--color-surface), 0 0 0 4px var(--color-primary);
}

/* ── PDP Actions ───────────────────────────────────────────── */
.pdp__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

/* ── PDP Trust Items ───────────────────────────────────────── */
.pdp__trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid #eee;
}

.pdp__trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 13px;
  color: var(--color-text-secondary);
}

.pdp__trust-item svg,
.pdp__trust-item i {
  font-size: 18px;
  color: var(--color-success);
}

/* ── PDP Specs ─────────────────────────────────────────────── */
.pdp__specs {
  padding-top: var(--space-lg);
  border-top: 1px solid #eee;
}

.pdp__specs h3 {
  margin-bottom: var(--space-md);
  font-size: 16px;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
}

.specs-table tr {
  border-bottom: 1px solid #eee;
}

.specs-table td {
  padding: var(--space-sm) 0;
  font-size: 14px;
}

.specs-table td:first-child {
  font-weight: 500;
  color: var(--color-text);
  width: 40%;
}

.specs-table td:last-child {
  color: var(--color-text-secondary);
}

/* ── PDP Share ─────────────────────────────────────────────── */
.pdp__share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md);
  font-size: 14px;
  color: var(--color-text-secondary);
  max-width: 100%;
}

.pdp__share a {
  color: var(--color-text-secondary);
  font-size: 20px;
  transition: color var(--transition-fast);
}

.pdp__share a:hover {
  color: var(--color-accent-coral);
}

/* ============================================================
   18. CART DRAWER
   ============================================================ */
.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: var(--z-cart-drawer);
  pointer-events: none;
  visibility: hidden;
}

.cart-drawer.is-open {
  pointer-events: auto;
  visibility: visible;
}

.cart-drawer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.cart-drawer.is-open .cart-drawer__overlay {
  opacity: 1;
}

.cart-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(420px, 90vw);
  height: 100%;
  background: var(--color-surface);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--transition-slow);
}

.cart-drawer.is-open .cart-drawer__panel {
  transform: translateX(0);
}

.cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg);
  border-bottom: 2px solid var(--color-primary);
}

.cart-drawer__header h2 {
  font-size: 20px;
}

.cart-drawer__close {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--color-text);
}

.cart-drawer__items {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-lg);
}

.cart-drawer__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  text-align: center;
  padding: var(--space-3xl) var(--space-md);
  color: var(--color-text-secondary);
}

.cart-drawer__empty p {
  font-size: 16px;
}

/* ── Cart Items ────────────────────────────────────────────── */
.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--space-md);
  padding-bottom: var(--space-md);
  margin-bottom: var(--space-md);
  border-bottom: 1px solid #eee;
}

.cart-item__image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  background: var(--color-surface-alt);
}

.cart-item__details {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.cart-item__title {
  font-weight: 500;
  font-size: 14px;
}

.cart-item__variant {
  font-size: 12px;
  color: var(--color-text-secondary);
}

.cart-item__price {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
}

.cart-item__qty {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-xs);
}

.cart-item__qty button {
  width: 28px;
  height: 28px;
  border: 1px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
}

.cart-item__qty span {
  font-size: 14px;
  font-weight: 500;
  min-width: 20px;
  text-align: center;
}

/* Cart item ACTIONS row — sits below name/variant/price.
   Layout: [- 1 +] ........................... [🗑 REMOVE]
   Qty controls left-aligned, Remove pushed to far right. */
.cart-item__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}

/* Quantity stepper: minus + value + plus all in a single bordered group */
.cart-item__quantity {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}
.qty-btn {
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: #111;
  cursor: pointer;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 120ms ease, color 120ms ease;
}
.qty-btn:hover { background: #111; color: #fff; }
.qty-btn:active { transform: scale(0.94); }
.qty-btn:focus-visible {
  outline: 2px solid #E5524C;
  outline-offset: -2px;
  z-index: 1;
  position: relative;
}
.qty-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.qty-btn--minus { border-right: 1px solid #ddd; }
.qty-btn--plus  { border-left: 1px solid #ddd; }
.qty-value {
  min-width: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  font-weight: 700;
  font-size: 14px;
  color: #111;
  background: #fafafa;
  user-select: none;
}

/* REMOVE button — bordered chip with trash icon, fills coral on hover */
.cart-item__remove {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #555;
  background: transparent;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  cursor: pointer;
  transition: color 120ms ease, background 120ms ease, border-color 120ms ease;
  margin-left: auto;        /* belt + suspenders to ensure right-alignment */
}
.cart-item__remove i { font-size: 13px; }
.cart-item__remove:hover {
  color: #fff;
  background: #E5524C;
  border-color: #E5524C;
}
.cart-item__remove:focus-visible {
  outline: 2px solid #E5524C;
  outline-offset: 2px;
}
@media (max-width: 360px) {
  /* Narrow cart drawer: drop the text label, keep icon-only */
  .cart-item__remove-label { display: none; }
  .cart-item__remove { padding: 8px; }
}

/* ── Cart Footer ───────────────────────────────────────────── */
.cart-drawer__footer {
  padding: var(--space-lg);
  border-top: 2px solid var(--color-primary);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.cart-drawer__total {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-drawer__total span:first-child {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
}

.cart-drawer__total-price {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 900;
}

.cart-drawer__shipping {
  font-size: 13px;
  color: var(--color-text-secondary);
  text-align: center;
}

.cart-drawer__continue {
  text-align: center;
  margin-top: var(--space-sm);
}

.cart-drawer__continue a {
  font-size: 14px;
  color: var(--color-text-secondary);
  text-decoration: underline;
}

.cart-drawer__continue a:hover {
  color: var(--color-text);
}

/* ============================================================
   19. CHECKOUT RESULT
   ============================================================ */
.checkout-result {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: var(--space-2xl) var(--space-md);
}

.checkout-result__card {
  text-align: center;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}

.checkout-result__icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
}

.checkout-result__icon--success {
  background: #dcfce7;
  color: var(--color-success);
}

.checkout-result__icon--cancel {
  background: #fef2f2;
  color: var(--color-error);
}

/* ============================================================
   20. SKELETON LOADING
   ============================================================ */
@keyframes skeleton-shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.skeleton {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.skeleton__image,
.skeleton__text {
  background: linear-gradient(
    90deg,
    #222 25%,
    #333 37%,
    #222 63%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
  border-radius: 0;
}

.skeleton__image {
  aspect-ratio: 1 / 1;
  width: 100%;
}

.skeleton__text {
  height: 16px;
  width: 100%;
}

.skeleton__text--short {
  width: 60%;
}

/* ============================================================
   21. TOAST NOTIFICATIONS
   ============================================================ */
.toast-container {
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-lg);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--color-primary);
  color: var(--color-text-inverse);
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  pointer-events: auto;
  animation: toast-in 0.3s ease forwards;
}

.toast--success {
  border-left: 4px solid var(--color-success);
}

.toast--error {
  border-left: 4px solid var(--color-error);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ============================================================
   22. SCROLL ANIMATIONS
   ============================================================ */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  /* Apple-ish ease-out-expo curve — feels graceful, not bouncy. */
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Accessibility: motion-sensitive users see content immediately, no animation. */
@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ============================================================
   22b. PDP DETAIL ACCORDION (Macy's-style tabs below CTA)
   ============================================================ */
.pdp__accordion {
  margin-top: 28px;
  border-top: 1px solid var(--color-border, #e8e8e8);
  max-width: 100%;
  overflow: hidden;   /* contain children that might be wider (e.g. specs table) */
}

.pdp__accordion .specs-table {
  width: 100%;
  table-layout: fixed;
  word-break: break-word;
}

.pdp__tab {
  border-bottom: 1px solid var(--color-border, #e8e8e8);
}

.pdp__tab-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 4px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display, 'Montserrat', sans-serif);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-primary, #0A0A0A);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.2s ease;
}

/* Hide default disclosure triangle in WebKit, Firefox, etc. */
.pdp__tab-summary::-webkit-details-marker { display: none; }
.pdp__tab-summary::marker { display: none; }

.pdp__tab-summary:hover {
  background-color: rgba(0,0,0,0.02);
}

.pdp__tab-icon {
  font-size: 0.85rem;
  color: #888;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.pdp__tab[open] > .pdp__tab-summary .pdp__tab-icon {
  transform: rotate(180deg);
  color: var(--color-primary, #E5524C);
}

.pdp__tab-body {
  padding: 6px 4px 24px;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #333;
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
  /* Smooth fade-in when <details> opens. Native <details> doesn't animate
     its body height, but we can fade in the content nicely. */
  animation: pdpTabReveal 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.pdp__tab-body p { margin: 0 0 12px; }
.pdp__tab-body p:last-child { margin-bottom: 0; }
.pdp__tab-body a { color: var(--color-primary, #E5524C); text-decoration: underline; }

@keyframes pdpTabReveal {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .pdp__tab-icon, .pdp__tab-body { transition: none !important; animation: none !important; }
}

/* ============================================================
   22c. PDP STICKY MOBILE ADD-TO-CART BAR
   ============================================================ */
.pdp-sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  background: rgba(255,255,255,0.97);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-top: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  /* Hide on desktop — sticky bar is mobile-only by design */
  display: none;
}

@media (max-width: 768px) {
  .pdp-sticky-bar { display: block; }
}

.pdp-sticky-bar--shown {
  transform: translateY(0);
}

.pdp-sticky-bar--hidden-by-input {
  transform: translateY(100%);
}

.pdp-sticky-bar__inner {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 600px;
  margin: 0 auto;
}

.pdp-sticky-bar__thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  background: #f3f3f3;
  flex-shrink: 0;
  border: 1px solid rgba(0,0,0,0.06);
}

.pdp-sticky-bar__info {
  flex: 1;
  min-width: 0;
  line-height: 1.2;
}

.pdp-sticky-bar__title {
  font-weight: 700;
  font-size: 0.85rem;
  color: #111;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pdp-sticky-bar__meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 2px;
  font-size: 0.78rem;
  color: #666;
}

.pdp-sticky-bar__variant {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pdp-sticky-bar__price {
  font-weight: 800;
  color: var(--color-primary, #E5524C);
  font-size: 0.92rem;
}

.pdp-sticky-bar__btn {
  flex-shrink: 0;
  padding: 11px 18px !important;
  font-size: 0.78rem !important;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.pdp-sticky-bar__btn-label { margin-left: 4px; }

@media (prefers-reduced-motion: reduce) {
  .pdp-sticky-bar { transition: opacity 0.2s linear; }
  .pdp-sticky-bar:not(.pdp-sticky-bar--shown) { opacity: 0; transform: none; pointer-events: none; }
  .pdp-sticky-bar--shown { opacity: 1; transform: none; }
}

/* ============================================================
   23. RESPONSIVE ADJUSTMENTS
   ============================================================ */

/* ── Mobile (< 768px) ─────────────────────────────────────── */
@media (max-width: 767px) {
  :root {
    --header-height: 76px;
  }

  .logo-mark {
    height: 52px;
    max-width: 156px;
  }

  .section {
    padding-block: var(--space-2xl);
  }

  .hero {
    min-height: 55vh;
  }

  .hero__cta .btn {
    width: 100%;
  }

  .newsletter__form {
    flex-direction: column;
    gap: 0;
  }

  .newsletter__input {
    width: 100%;
  }

  .newsletter__submit {
    width: 100%;
  }

  .pdp__actions .btn {
    width: 100%;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .toast-container {
    left: var(--space-md);
    right: var(--space-md);
    bottom: var(--space-md);
  }

  .toast {
    width: 100%;
  }
}

/* ── Tablet (768px - 1279px) ───────────────────────────────── */
@media (min-width: 768px) and (max-width: 1279px) {
  .container {
    padding-inline: var(--space-lg);
  }
}

/* ── Desktop (1280px+) ─────────────────────────────────────── */
@media (min-width: 1280px) {
  .container {
    padding-inline: var(--space-xl);
  }
}

/* ============================================================
   24. PRINT STYLES
   ============================================================ */
@media print {
  .header,
  .footer,
  .mobile-nav,
  .cart-drawer,
  .toast-container,
  .search-bar,
  .newsletter {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  .hero {
    min-height: auto;
    background: none !important;
  }

  .hero__overlay {
    display: none;
  }

  .hero__content {
    color: #000;
  }

  a {
    text-decoration: underline;
  }
}

/* ============================================================
   Cookie Consent Banner
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 500;
  padding: 1.25rem;
  background: var(--color-surface);
  box-shadow: var(--shadow-brutal);
  font-family: var(--font-body);
  transform: translateY(100%);
  transition: transform .4s ease;
}
.cookie-banner.is-visible {
  transform: translateY(0);
}
.cookie-banner__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.cookie-banner__text {
  flex: 1;
  min-width: 280px;
  font-size: .9rem;
  line-height: 1.5;
  color: var(--color-text);
}
.cookie-banner__text a {
  color: var(--color-accent-coral);
  text-decoration: underline;
}
.cookie-banner__actions {
  display: flex;
  gap: .75rem;
  flex-shrink: 0;
}
.cookie-banner__btn {
  padding: .6rem 1.5rem;
  border-radius: 0;
  font-family: var(--font-body);
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity .2s;
}
.cookie-banner__btn:hover { opacity: .85; }
.cookie-banner__btn--accept {
  background: var(--color-accent-coral);
  color: #fff;
  box-shadow: var(--shadow-brutal);
}
.cookie-banner__btn--decline {
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-text);
}


/* Variant availability — greyed out when combination not in stock */
.size-btn--unavailable {
  opacity: 0.35;
  cursor: not-allowed;
  position: relative;
  pointer-events: auto;
}
.size-btn--unavailable::after {
  content: '';
  position: absolute;
  top: 50%; left: 8%; right: 8%;
  border-top: 2px solid currentColor;
  transform: rotate(-12deg);
  pointer-events: none;
}
.color-swatch--unavailable {
  opacity: 0.3;
  cursor: not-allowed;
  position: relative;
  pointer-events: auto;
}
.color-swatch--unavailable::after {
  content: '';
  position: absolute;
  top: 50%; left: 0; right: 0;
  border-top: 2px solid #888;
  transform: rotate(-45deg);
  pointer-events: none;
}

/* ============================================================
   Neron chatbot reposition when cart drawer is open
   - Default: bottom-right (widget's own CSS)
   - Cart open (desktop): flip to bottom-left
   - Cart open (mobile): hide entirely (cart drawer covers full screen)
   ============================================================ */
body.cart-open #gaia-bubble,
body.cart-open #gaia-chat {
  right: auto !important;
  left: 20px !important;
  transition: left 0.3s ease, right 0.3s ease;
}
@media (max-width: 767px) {
  body.cart-open #gaia-widget-container,
  body.cart-open #gaia-bubble,
  body.cart-open #gaia-chat {
    display: none !important;
  }
}

/* When the PDP sticky add-to-cart bar is visible (mobile only), lift the
   Neron chat bubble up so it doesn't overlap the bar. The bar is ~64-80px
   tall including safe-area inset; we lift by 88px to leave a comfortable
   gap. body.pdp-sticky-shown is toggled by pages.js. */
body.pdp-sticky-shown #gaia-bubble,
body.pdp-sticky-shown #gaia-widget-container {
  bottom: calc(88px + env(safe-area-inset-bottom, 0px)) !important;
  transition: bottom 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================================
   Site-wide free shipping announcement bar (above header)
   ============================================================ */
.announce-bar {
  background: #111;
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.04em;
  padding: 8px 0;
  position: relative;
  z-index: 100;
}
.announce-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  flex-wrap: wrap;
}
.announce-bar strong {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.announce-bar__icon {
  color: #FFC861;
  font-size: 14px;
  line-height: 1;
}
@media (max-width: 480px) {
  .announce-bar { font-size: 12px; padding: 7px 0; }
  .announce-bar__inner { gap: 8px; }
}

/* ============================================================
   PDP Trust Badge — Made-to-order policy
   Sits beneath the image gallery in the left column of the PDP.
   ============================================================ */
.pdp__trust-badge {
  margin-top: 16px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  font-family: var(--font-body, system-ui, sans-serif);
}
.pdp__trust-badge__main {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #E5524C;          /* AVE Originals coral — matches the brand accent */
  color: #fff;
  padding: 14px 16px;
}
.pdp__trust-badge__icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  background: #fff;             /* white plate so the colored brand logo reads cleanly */
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}
.pdp__trust-badge__icon svg,
.pdp__trust-badge__logo {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.pdp__trust-badge__copy {
  flex: 1;
  min-width: 0;
  line-height: 1.4;
}
.pdp__trust-badge__title {
  margin: 0 0 2px;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.01em;
}
.pdp__trust-badge__line {
  margin: 0;
  font-size: 12.5px;
  opacity: 0.95;
}
.pdp__trust-badge__foot {
  background: #F4F4F4;
  color: #555;
  padding: 9px 16px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pdp__trust-badge__foot a {
  color: #444;
  text-decoration: underline;
  font-weight: 600;
}
.pdp__trust-badge__foot a:hover {
  color: #E5524C;
}
@media (max-width: 480px) {
  .pdp__trust-badge__title { font-size: 14px; }
  .pdp__trust-badge__line { font-size: 12px; }
  .pdp__trust-badge__foot { font-size: 11.5px; }
}

/* ============================================================
   AVE MODAL — brand-aligned dialog used by the email-confirm
   prompt and any future overlay. White card, coral CTA, Montserrat
   heading. Lives at .ave-modal so it's reusable across pages.
   ============================================================ */
.ave-modal {
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 17, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  padding: 16px;
  animation: ave-modal-fade 180ms ease-out;
}
@keyframes ave-modal-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.ave-modal__card {
  background: #ffffff;
  color: #111;
  border-radius: 12px;
  padding: 28px;
  max-width: 460px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35), 0 2px 8px rgba(0,0,0,0.12);
  font-family: var(--font-body, 'Roboto', system-ui, sans-serif);
  animation: ave-modal-pop 220ms cubic-bezier(0.18, 0.89, 0.32, 1.28);
}
@keyframes ave-modal-pop {
  from { transform: translateY(8px) scale(0.97); opacity: 0; }
  to   { transform: translateY(0)   scale(1);    opacity: 1; }
}
.ave-modal__title {
  font-family: var(--font-heading, 'Montserrat', system-ui, sans-serif);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 14px;
  color: #111;
}
.ave-modal__alert {
  background: #FFF1EF;          /* tinted-coral surface — calls attention without shouting */
  border-left: 3px solid #E5524C;
  border-radius: 6px;
  color: #8A2924;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 8px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.ave-modal__alert i { margin-top: 2px; flex-shrink: 0; }
.ave-modal__sub {
  margin: 0 0 18px;
  color: #555;
  font-size: 13px;
}
.ave-modal__label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #555;
  margin: 14px 0 6px;
}
.ave-modal__label:first-of-type { margin-top: 4px; }
.ave-modal__input {
  width: 100%;
  padding: 11px 14px;
  border-radius: 8px;
  border: 1.5px solid #d8d8d8;
  background: #fff;
  color: #111;
  font-size: 15px;
  font-family: inherit;
  box-sizing: border-box;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.ave-modal__input::placeholder { color: #b0b0b0; }
.ave-modal__input:focus {
  outline: none;
  border-color: #E5524C;
  box-shadow: 0 0 0 3px rgba(229, 82, 76, 0.18);
}
.ave-modal__input.is-error {
  border-color: #E5524C;
  box-shadow: 0 0 0 3px rgba(229, 82, 76, 0.18);
}
.ave-modal__error {
  margin: 8px 0 0;
  color: #C8443F;
  font-size: 12.5px;
  font-weight: 600;
  display: none;
}
.ave-modal__error.is-visible { display: block; }
.ave-modal__actions {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}
.ave-modal__btn {
  flex: 1;
  /* btn--coral and btn--ghost handle the rest — this just normalizes height */
}
@media (max-width: 480px) {
  .ave-modal__card { padding: 22px 18px; }
  .ave-modal__title { font-size: 16px; }
  .ave-modal__actions { flex-direction: column-reverse; gap: 10px; }
}

/* ============================================================
   Single-page checkout modal — extension of .ave-modal
   Customer enters email + shipping address here so they don't
   re-type at Stripe. Live order summary updates as country changes.
   ============================================================ */
.ave-modal--checkout {
  align-items: flex-start;          /* tall form needs to scroll on small screens */
  overflow-y: auto;
  padding: 24px 16px;
}
.ave-modal__card--wide {
  max-width: 580px;
  position: relative;
  padding: 28px 28px 24px;
}
.ave-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #666;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
}
.ave-modal__close:hover { background: #f0f0f0; color: #111; }
.ave-modal__close:focus-visible { outline: 2px solid #E5524C; outline-offset: 2px; }

/* CSS-grid form layout — full / half / quarter widths for desktop,
   stacks to single column under 480px */
.ave-form__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 8px;
}
.ave-form__row { display: flex; flex-direction: column; }
.ave-form__row--full    { grid-column: span 4; }
.ave-form__row--half    { grid-column: span 2; }
.ave-form__row--quarter { grid-column: span 1; }
.ave-form__section {
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid #eee;
}
.ave-form__section-title {
  font-family: var(--font-heading, 'Montserrat', system-ui, sans-serif);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #111;
  margin: 0 0 4px;
}
.ave-modal__select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'><path fill='%23555' d='M6 8L0 0h12z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 10px;
  padding-right: 36px;
}

/* Live order summary */
.ave-summary {
  margin-top: 20px;
  padding: 14px 16px;
  background: #FAFAFA;
  border-radius: 8px;
  border: 1px solid #efefef;
}
.ave-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 14px;
  color: #222;
  padding: 4px 0;
}
.ave-summary__row--note { color: #888; font-size: 12.5px; font-style: italic; }
.ave-summary__row--total {
  font-family: var(--font-heading, 'Montserrat', system-ui, sans-serif);
  font-weight: 800;
  font-size: 18px;
  color: #111;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid #e2e2e2;
}

@media (max-width: 600px) {
  .ave-form__grid { grid-template-columns: repeat(2, 1fr); }
  .ave-form__row--quarter { grid-column: span 1; }
  .ave-form__row--half    { grid-column: span 2; }
  .ave-form__row--full    { grid-column: span 2; }
  .ave-modal__card--wide { padding: 22px 18px 18px; }
}
@media (max-width: 380px) {
  .ave-form__grid { grid-template-columns: 1fr; }
  .ave-form__row--full,
  .ave-form__row--half,
  .ave-form__row--quarter { grid-column: span 1; }
}
