/* KINETIC // FORM — Neo-Minimalist Technical Wardrobe Design System */
:root {
  /* Core Kinetic // Form Palette */
  --bg-alabaster: #FBFBF9;
  --bg-stone: #F3F3EF;
  --ink-primary: #1e3a2b;
  --ink-muted: #6E6E6A;
  --border-hairline: #E5E5E0;
  --accent-matcha: #c25e3e;
  --accent-cobalt: #2563EB;
  --accent-coral: #FF4D6D;
  --chrome: #E4E6EB;

  /* Aliases & Legacy Theme Compatibility */
  --primary-color: var(--ink-primary);
  --accent-color: var(--accent-matcha);
  --bg-color: var(--bg-alabaster);
  --card-bg: var(--bg-stone);
  --text-primary: var(--ink-primary);
  --text-secondary: var(--ink-muted);
  --border-color: var(--border-hairline);
  --border-light: var(--border-hairline);
  --glass-bg: rgba(251, 251, 249, 0.84);
  --glass-border: var(--border-hairline);

  /* Typography */
  --font-syne: 'Syne', sans-serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Radius System */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-2xs: 0 1px 2px rgba(17, 17, 17, 0.04);
  --shadow-sm: 0 2px 6px rgba(17, 17, 17, 0.05);
  --shadow-md: 0 8px 24px rgba(17, 17, 17, 0.08);
  --shadow-lg: 0 16px 36px rgba(17, 17, 17, 0.12);

  --transition-smooth: all 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  --transition-garment: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

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

:root, html, body {
  color-scheme: light;
}

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  background-color: var(--bg-alabaster);
  color: var(--ink-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Ensure all input/text boxes and form controls default to crisp black text across all browsers and devices */
input,
textarea,
select,
button {
  color-scheme: light;
}

input,
textarea,
select {
  color: #111111 !important;
  -webkit-text-fill-color: #111111 !important;
}

input::placeholder,
textarea::placeholder {
  color: #6E6E6A !important;
  -webkit-text-fill-color: #6E6E6A !important;
  opacity: 1;
}

input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-text-fill-color: #111111 !important;
  -webkit-box-shadow: 0 0 0px 1000px #ffffff inset !important;
  transition: background-color 5000s ease-in-out 0s;
}

::selection {
  background-color: var(--accent-matcha);
  color: var(--ink-primary);
}

/* Custom Minimal Scrollbar */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: var(--bg-alabaster);
}
::-webkit-scrollbar-thumb {
  background: #D4D4CE;
  border-radius: 9999px;
}

/* Typography Utility Classes */
.font-syne { font-family: var(--font-syne); }
.font-sans { font-family: var(--font-sans); }
.font-mono { font-family: var(--font-mono); }

/* Frosted Glass Utilities */
.glass-surface {
  background: rgba(251, 251, 249, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.glass-pill {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(229, 229, 224, 0.9);
}

/* Hotspot Pulse Ring */
@keyframes softPulse {
  0% { transform: scale(1); opacity: 0.75; }
  100% { transform: scale(2.2); opacity: 0; }
}
.hotspot-ring {
  animation: softPulse 2.4s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

/* Container */
.container {
  width: 100%;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
@media (min-width: 640px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}
@media (min-width: 1024px) {
  .container {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

/* ==================== 1. TOP STATUS BAR (32px) ==================== */
.top-status-bar {
  height: 32px;
  background-color: var(--bg-stone);
  border-bottom: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  z-index: 45;
}

.status-bar-inner {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-dot-matcha {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background-color: var(--accent-matcha);
  box-shadow: 0 0 0 1px rgba(17, 17, 17, 0.2);
  flex-shrink: 0;
}

/* ==================== 2. STICKY 64px FROSTED GLASS HEADER ==================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 64px;
  background: rgba(251, 251, 249, 0.84);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-hairline);
}

.site-header-inner {
  max-width: 1440px;
  margin: 0 auto;
  height: 100%;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
@media (min-width: 640px) {
  .site-header-inner { padding: 0 2rem; }
}
@media (min-width: 1024px) {
  .site-header-inner { padding: 0 3rem; }
}

/* Geometric Brand Wordmark */
.brand-wordmark {
  font-family: var(--font-syne);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--ink-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}
.brand-wordmark-sep {
  color: var(--ink-muted);
  font-weight: 400;
}

/* Category Navigation Tabs */
.desktop-nav-tabs {
  display: none;
  align-items: center;
  gap: 1.75rem;
  height: 100%;
}
@media (min-width: 1024px) {
  .desktop-nav-tabs { display: flex; }
}

.nav-tab-btn {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  font-weight: 500;
  background: transparent;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s ease;
}
.nav-tab-btn:hover {
  color: var(--ink-primary);
}
.nav-tab-btn.active {
  color: var(--ink-primary);
}
.nav-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1.5px;
  background-color: var(--ink-primary);
}

/* Header Utilities */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
@media (min-width: 640px) {
  .header-actions { gap: 0.75rem; }
}

/* Inline Collapsible Search */
.inline-search-wrap {
  display: flex;
  align-items: center;
}

.inline-search-box {
  display: none;
  align-items: center;
  overflow: hidden;
  transition: width 0.3s ease, opacity 0.3s ease;
  width: 0;
  opacity: 0;
  border-bottom: 1px solid var(--ink-primary);
  margin-right: 0.25rem;
}
@media (min-width: 640px) {
  .inline-search-box { display: flex; }
}
.inline-search-box.open {
  width: 175px;
  opacity: 1;
}
@media (min-width: 1024px) {
  .inline-search-box.open { width: 210px; }
}

.inline-search-input {
  width: 100%;
  background: transparent;
  padding: 0.25rem 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #111111 !important;
  -webkit-text-fill-color: #111111 !important;
  border: none;
  outline: none;
}
.inline-search-input::placeholder {
  color: var(--ink-muted);
}

.inline-search-clear {
  background: transparent;
  border: none;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-muted);
  cursor: pointer;
  padding: 0 0.25rem;
}
.inline-search-clear:hover {
  color: var(--ink-primary);
}

.header-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-primary);
  cursor: pointer;
  position: relative;
  transition: background-color 0.2s ease;
}
.header-icon-btn:hover {
  background-color: var(--bg-stone);
}

/* Currency Toggle Button */
.currency-toggle-btn {
  padding: 0.375rem 0.625rem;
  border-radius: 9999px;
  background: transparent;
  border: none;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-primary);
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.currency-toggle-btn:hover {
  background-color: var(--bg-stone);
}

/* Wishlist Badge */
.wishlist-count-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 15px;
  height: 15px;
  padding: 0 3px;
  border-radius: 9999px;
  background-color: var(--accent-coral);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Shopping Bag Trigger Pill */
.bag-trigger-pill {
  height: 36px;
  padding: 0 0.875rem;
  border-radius: 9999px;
  border: 1px solid var(--border-hairline);
  background-color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-primary);
  cursor: pointer;
  transition: border-color 0.2s ease;
}
.bag-trigger-pill:hover {
  border-color: var(--ink-primary);
}

.bag-pill-count {
  padding: 1px 6px;
  border-radius: 9999px;
  background-color: var(--accent-matcha);
  color: var(--ink-primary);
  font-weight: 600;
  font-size: 11px;
}

/* Mobile Search Strip */
.mobile-search-strip {
  display: none;
  padding: 0.625rem 1rem;
  border-bottom: 1px solid var(--border-hairline);
  background: rgba(251, 251, 249, 0.95);
}
@media (max-width: 639px) {
  .mobile-search-strip.open { display: block; }
}

/* ==================== 3. EDITORIAL HERO SECTION ==================== */
.hero-section {
  border-bottom: 1px solid var(--border-hairline);
  padding: 3rem 0;
}
@media (min-width: 640px) {
  .hero-section { padding: 4rem 0; }
}
@media (min-width: 1024px) {
  .hero-section { padding: 5rem 0; }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 3.5rem;
  }
}

.hero-left-col {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}
@media (min-width: 1024px) {
  .hero-left-col {
    grid-column: span 5 / span 5;
  }
}

.hero-pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  background-color: var(--bg-stone);
  border: 1px solid var(--border-hairline);
  align-self: flex-start;
}
.hero-pill-tag-text {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-primary);
  text-transform: uppercase;
}

.hero-display-headline {
  font-family: var(--font-syne);
  font-weight: 700;
  font-size: 2.25rem;
  letter-spacing: -0.025em;
  line-height: 1.06;
  color: var(--ink-primary);
}
@media (min-width: 640px) {
  .hero-display-headline { font-size: 3rem; }
}
@media (min-width: 1280px) {
  .hero-display-headline { font-size: 3.5rem; }
}

.hero-subcopy {
  font-size: 15px;
  color: var(--ink-muted);
  line-height: 1.6;
  max-width: 28rem;
  font-weight: 400;
}
@media (min-width: 640px) {
  .hero-subcopy { font-size: 16px; }
}

.hero-actions-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.25rem;
}

.btn-pill-primary {
  padding: 0.875rem 1.75rem;
  border-radius: 9999px;
  background-color: var(--ink-primary);
  color: var(--bg-alabaster);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid var(--ink-primary);
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-pill-primary:hover {
  opacity: 0.88;
}

.btn-pill-secondary {
  padding: 0.875rem 1.75rem;
  border-radius: 9999px;
  background-color: var(--bg-stone);
  color: var(--ink-primary);
  border: 1px solid var(--border-hairline);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-pill-secondary:hover {
  border-color: var(--ink-primary);
}

.hero-metrics-row {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-hairline);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.hero-metric-item {
  padding: 0 0.75rem;
}
.hero-metric-item:first-child { padding-left: 0; }
.hero-metric-item + .hero-metric-item {
  border-left: 1px solid var(--border-hairline);
}
.metric-value {
  font-family: var(--font-syne);
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--ink-primary);
  display: block;
}
.metric-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
  margin-top: 0.125rem;
  display: block;
}

/* Right Studio Lookbook Canvas */
.hero-right-col {
  width: 100%;
}
@media (min-width: 1024px) {
  .hero-right-col {
    grid-column: span 7 / span 7;
  }
}

.lookbook-canvas-card {
  position: relative;
  border-radius: 1.5rem;
  background-color: var(--bg-stone);
  min-height: 440px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.25rem;
  overflow: hidden;
}
@media (min-width: 640px) {
  .lookbook-canvas-card {
    min-height: 520px;
    padding: 2rem;
  }
}

.lookbook-top-bar {
  position: relative;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.lookbook-tab-switcher {
  display: inline-flex;
  align-items: center;
  padding: 4px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(229, 229, 224, 0.9);
}

.lookbook-colorway-btn {
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  border: none;
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}
.lookbook-colorway-btn.active {
  background-color: var(--ink-primary);
  color: var(--bg-alabaster);
}

.lookbook-stage-center {
  position: relative;
  z-index: 10;
  margin-top: auto;
  margin-bottom: auto;
  padding: 1rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hotspot Pins */
.lookbook-hotspot {
  position: absolute;
  z-index: 20;
}
.hotspot-inner-wrap {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.hotspot-pin-circle {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(229, 229, 224, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.hotspot-pin-circle:hover {
  transform: scale(1.1);
}

.hotspot-tooltip-pill {
  border-radius: 9999px;
  padding: 0.375rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(229, 229, 224, 0.9);
  box-shadow: var(--shadow-sm);
}

.hotspot-add-btn {
  width: 20px;
  height: 20px;
  border-radius: 9999px;
  background-color: var(--ink-primary);
  color: var(--bg-alabaster);
  border: none;
  font-family: var(--font-mono);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.hotspot-add-btn:hover {
  background-color: var(--accent-matcha);
  color: var(--ink-primary);
}

.lookbook-bottom-bar {
  position: relative;
  z-index: 20;
  padding-top: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
}

.lookbook-bag-all-link {
  color: var(--ink-primary);
  text-decoration: underline;
  text-underline-offset: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 11px;
  transition: color 0.2s ease;
}
.lookbook-bag-all-link:hover {
  color: var(--accent-cobalt);
}

/* ==================== 4. CATALOG FILTER TOOLBAR & PRODUCT GRID ==================== */
.catalog-section {
  max-width: 1440px;
  margin: 0 auto;
  padding: 4rem 1rem;
}
@media (min-width: 640px) {
  .catalog-section { padding: 5rem 2rem; }
}
@media (min-width: 1024px) {
  .catalog-section { padding: 6rem 3rem; }
}

.catalog-title-row {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}
@media (min-width: 640px) {
  .catalog-title-row {
    flex-direction: row;
    align-items: flex-end;
  }
}

.catalog-archive-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.375rem;
}

.catalog-section-title {
  font-family: var(--font-syne);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.015em;
  color: var(--ink-primary);
}
@media (min-width: 640px) {
  .catalog-section-title { font-size: 1.875rem; }
}

/* Crisp 1px Hairline Filter Bar */
.catalog-filter-bar {
  border-top: 1px solid var(--border-hairline);
  border-bottom: 1px solid var(--border-hairline);
  padding: 1rem 0;
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
@media (min-width: 768px) {
  .catalog-filter-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.filter-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
}

.filter-pill-btn {
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 12px;
  border: none;
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}
.filter-pill-btn:hover {
  color: var(--ink-primary);
  background-color: var(--bg-stone);
}
.filter-pill-btn.active {
  background-color: var(--ink-primary);
  color: var(--bg-alabaster);
}

.filter-controls-right {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
@media (min-width: 640px) {
  .filter-controls-right { justify-content: flex-end; }
}

.catalog-sort-select {
  background: transparent;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-primary);
  border: none;
  outline: none;
  cursor: pointer;
  padding-right: 0.25rem;
}

.hairline-divider-vert {
  height: 16px;
  width: 1px;
  background-color: var(--border-hairline);
}

.grid-density-switcher {
  display: inline-flex;
  align-items: center;
  padding: 2px;
  border-radius: 9999px;
  background-color: var(--bg-stone);
  border: 1px solid var(--border-hairline);
}

.density-btn {
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 11px;
  border: none;
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}
.density-btn.active {
  background-color: #FFFFFF;
  color: var(--ink-primary);
  box-shadow: var(--shadow-2xs);
}

/* 8-Piece Neo-Minimalist Product Grid */
.catalog-products-grid {
  display: grid;
  gap: 2.75rem 1.5rem;
}

.catalog-products-grid.grid-4-col {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}
@media (min-width: 640px) {
  .catalog-products-grid.grid-4-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .catalog-products-grid.grid-4-col {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.catalog-products-grid.grid-2-col {
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 3rem 2rem;
}
@media (min-width: 768px) {
  .catalog-products-grid.grid-2-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Neo-Minimalist Product Card */
.product-card {
  display: flex;
  flex-direction: column;
}

.product-canvas-wrap {
  position: relative;
  border-radius: 1rem;
  background-color: var(--bg-stone);
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow: hidden;
}

.card-status-badge {
  position: absolute;
  top: 0.875rem;
  left: 0.875rem;
  z-index: 10;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.05em;
}
.status-badge-matcha { background-color: var(--accent-matcha); color: var(--ink-primary); }
.status-badge-cobalt { background-color: var(--accent-cobalt); color: #FFFFFF; }
.status-badge-coral  { background-color: var(--accent-coral); color: #FFFFFF; }

.card-wishlist-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 10;
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-muted);
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}
.card-wishlist-btn:hover {
  color: var(--ink-primary);
  transform: scale(1.1);
}
.card-wishlist-btn.saved {
  color: var(--accent-coral);
}

.product-visual-stage {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
}

.garment-svg, .product-image {
  transition: var(--transition-garment);
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.product-card .garment-svg,
.product-card .product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-card:hover .garment-svg,
.product-card:hover .product-image {
  transform: scale(1.045);
}

/* Quick-Size Bar Revealed on Hover */
.quick-size-tray {
  position: absolute;
  bottom: 0.875rem;
  left: 0.875rem;
  right: 0.875rem;
  z-index: 10;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(229, 229, 224, 0.9);
  border-radius: 9999px;
  padding: 0.375rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.product-card:hover .quick-size-tray,
.product-card:focus-within .quick-size-tray {
  opacity: 1;
  transform: translateY(0);
}

.quick-size-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-muted);
  padding-left: 0.625rem;
  display: none;
}
@media (min-width: 640px) {
  .quick-size-label { display: inline; }
}

.quick-size-btn {
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-primary);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}
.quick-size-btn:hover {
  background-color: var(--ink-primary);
  color: var(--bg-alabaster);
}

/* Card Metadata Below */
.card-meta-below {
  padding-top: 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.card-title-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}

.card-product-title {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 15px;
  color: var(--ink-primary);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.card-product-title:hover {
  color: var(--accent-cobalt);
}

.card-product-price {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-primary);
  flex-shrink: 0;
}

.card-sku-swatches-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-sku-color {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
}

.card-swatches-list {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.card-swatch-dot {
  width: 14px;
  height: 14px;
  border-radius: 9999px;
  border: 1px solid rgba(17, 17, 17, 0.25);
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.card-swatch-dot.active {
  box-shadow: 0 0 0 1px var(--ink-primary), 0 0 0 3px var(--bg-alabaster);
  transform: scale(1.08);
}
.card-swatch-dot:not(.active) {
  opacity: 0.8;
}
.card-swatch-dot:not(.active):hover {
  opacity: 1;
}

/* ==================== 5. MODULAR MIX & MATCH FIT STUDIO ==================== */
.fit-studio-section {
  background-color: var(--bg-stone);
  border-top: 1px solid var(--border-hairline);
  border-bottom: 1px solid var(--border-hairline);
  padding: 4rem 1rem;
}
@media (min-width: 640px) {
  .fit-studio-section { padding: 5rem 2rem; }
}
@media (min-width: 1024px) {
  .fit-studio-section { padding: 6rem 3rem; }
}

.fit-studio-header {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 640px) {
  .fit-studio-header {
    flex-direction: row;
    align-items: flex-end;
  }
}

.fit-privilege-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  background-color: var(--accent-matcha);
  color: var(--ink-primary);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  align-self: flex-start;
}

.fit-studio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: stretch;
}
@media (min-width: 1024px) {
  .fit-studio-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 3rem;
  }
}

.fit-preview-card {
  border-radius: 1.5rem;
  background-color: #FFFFFF;
  border: 1px solid var(--border-hairline);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 380px;
}
@media (min-width: 640px) {
  .fit-preview-card { padding: 2rem; }
}
@media (min-width: 1024px) {
  .fit-preview-card {
    grid-column: span 5 / span 5;
  }
}

.fit-preview-stage {
  margin: auto 0;
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fit-builder-right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
}
@media (min-width: 1024px) {
  .fit-builder-right {
    grid-column: span 7 / span 7;
  }
}

.fit-selector-row {
  border-radius: 1rem;
  background-color: #FFFFFF;
  border: 1px solid var(--border-hairline);
  padding: 0.875rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.fit-selector-thumb {
  width: 48px;
  height: 56px;
  border-radius: 0.75rem;
  background-color: var(--bg-stone);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
}

.fit-chevron-btn {
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  border: 1px solid var(--border-hairline);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink-primary);
  cursor: pointer;
  transition: border-color 0.2s ease;
}
.fit-chevron-btn:hover {
  border-color: var(--ink-primary);
}

.fit-summary-bar {
  border-radius: 1rem;
  background-color: #FFFFFF;
  border: 1px solid var(--border-hairline);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.5rem;
}
@media (min-width: 640px) {
  .fit-summary-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* ==================== 6. QUIET EDITORIAL FOOTER ==================== */
.site-footer {
  background-color: var(--bg-alabaster);
  border-top: 1px solid var(--border-hairline);
  padding: 3.5rem 0 2rem 0;
  margin-top: auto;
}
@media (min-width: 640px) {
  .site-footer { padding: 4rem 0 2rem 0; }
}

.footer-main-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border-hairline);
}
@media (min-width: 768px) {
  .footer-main-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
}

.footer-newsletter-form {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--ink-primary);
  padding-bottom: 0.375rem;
}
.footer-newsletter-input {
  flex: 1;
  background: transparent;
  border: none;
  font-family: var(--font-sans);
  font-size: 14px;
  color: #111111 !important;
  -webkit-text-fill-color: #111111 !important;
  outline: none;
}
.footer-newsletter-input::placeholder {
  color: var(--ink-muted);
}
.footer-newsletter-btn {
  background: transparent;
  border: none;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-primary);
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: color 0.2s ease;
}
.footer-newsletter-btn:hover {
  color: var(--accent-cobalt);
}

.footer-bottom-bar {
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
}
@media (min-width: 640px) {
  .footer-bottom-bar { flex-direction: row; }
}

/* ==================== 7. SLIDE-OVER DRAWERS & OVERLAYS ==================== */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(17, 17, 17, 0.25);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.slide-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 55;
  height: 100%;
  width: 100%;
  max-width: 32rem;
  background-color: var(--bg-alabaster);
  border-left: 1px solid var(--border-hairline);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
}
.slide-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  padding: 0 1.5rem;
  height: 64px;
  border-bottom: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.drawer-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  border: 1px solid var(--border-hairline);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  cursor: pointer;
  transition: border-color 0.2s ease;
}
.drawer-close-btn:hover {
  border-color: var(--ink-primary);
}

.drawer-content-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.drawer-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border-hairline);
  background-color: var(--bg-alabaster);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#bag-footer-section {
  display: flex !important;
  flex-direction: column !important;
  gap: 1rem !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
#bag-footer-section.hidden,
#bag-footer-section[style*="display: none"] {
  display: none !important;
}

/* Free Shipping Progress Bar */
.shipping-progress-strip {
  padding: 0.875rem 1.5rem;
  background-color: var(--bg-stone);
  border-bottom: 1px solid var(--border-hairline);
  flex-shrink: 0;
}
.shipping-bar-track {
  width: 100%;
  height: 6px;
  border-radius: 9999px;
  background-color: var(--border-hairline);
  overflow: hidden;
  margin-top: 0.5rem;
}
.shipping-bar-fill {
  height: 100%;
  background-color: var(--accent-matcha);
  transition: width 0.3s ease;
}

/* Measurement Specs Table */
.measurement-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 12px;
}
.measurement-table th,
.measurement-table td {
  padding: 0.5rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border-hairline);
}
.measurement-table th {
  background-color: var(--bg-stone);
  color: var(--ink-muted);
  font-weight: 400;
}

/* Minimal Toast */
.minimal-toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 60;
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  border-radius: 9999px;
  background-color: var(--ink-primary);
  color: var(--bg-alabaster);
  font-family: var(--font-mono);
  font-size: 12px;
  box-shadow: var(--shadow-md);
}
.minimal-toast.open {
  display: flex;
}

/* ==========================================================================
   Base Buttons & Common Components
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.65rem 1.25rem;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-smooth);
}
.btn-primary {
  background-color: var(--ink-primary);
  color: var(--bg-alabaster);
  border: 1px solid var(--ink-primary);
}
.btn-primary:hover {
  background-color: var(--accent-matcha);
  color: var(--ink-primary);
  border-color: var(--accent-matcha);
}
.btn-secondary {
  background-color: transparent;
  color: var(--ink-primary);
  border: 1px solid var(--border-hairline);
}
.btn-secondary:hover {
  background-color: var(--bg-stone);
  border-color: var(--ink-primary);
}

/* ==========================================================================
   Product Detail Page (PDP)
   ========================================================================== */
.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding: 3rem 0;
  max-width: 1280px;
  margin: 0 auto;
}
@media (min-width: 1024px) {
  .product-detail-layout {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    padding: 4rem 0;
  }
}
.product-gallery-wrap {
  width: 100%;
  position: relative;
}
.gallery-main {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: var(--bg-stone);
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: zoom-in;
  transition: var(--transition-smooth);
}
.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.gallery-main:hover img {
  transform: scale(1.03);
}
.gallery-enlarge-badge {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: rgba(17, 17, 17, 0.75);
  color: #ffffff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  pointer-events: none;
  z-index: 5;
}
.gallery-thumbs-desktop {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}
.thumb-btn {
  width: 72px;
  height: 72px;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1.5px solid var(--border-hairline);
  cursor: pointer;
  background: var(--bg-stone);
  padding: 0;
  transition: var(--transition-smooth);
}
.thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.thumb-btn:hover, .thumb-btn.active {
  border-color: var(--ink-primary);
}

.product-detail-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.product-detail-title {
  font-family: var(--font-syne);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700;
  color: var(--ink-primary);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.product-detail-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.875rem;
}
.product-detail-price {
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--ink-primary);
}
.product-detail-tax-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
  background: var(--bg-stone);
  border: 1px solid var(--border-hairline);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}
.variant-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.variant-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
}
.color-swatches-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
.color-swatch-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  flex-shrink: 0;
  box-shadow: var(--shadow-2xs);
}
.color-swatch-btn:hover {
  transform: scale(1.1);
}
.color-swatch-btn.active {
  box-shadow: 0 0 0 2px var(--bg-alabaster), 0 0 0 4px var(--ink-primary);
  transform: scale(1.05);
}
.size-guide-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: transparent;
  border: none;
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.size-guide-link-btn:hover {
  color: var(--ink-primary);
}
.variant-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.variant-pill, .size-pill {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-hairline);
  background: var(--bg-alabaster);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-primary);
  cursor: pointer;
  transition: var(--transition-smooth);
}
.variant-pill:hover, .variant-pill.active,
.size-pill:hover, .size-pill.active {
  border-color: var(--ink-primary);
  background: var(--ink-primary);
  color: var(--bg-alabaster);
}
.add-to-cart-action-btn {
  width: 100%;
  padding: 1rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 12px;
  background-color: var(--ink-primary);
  color: var(--bg-alabaster);
  border: 1px solid var(--ink-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}
.add-to-cart-action-btn:hover {
  background-color: var(--accent-matcha);
  color: var(--ink-primary);
  border-color: var(--accent-matcha);
  box-shadow: var(--shadow-md);
}
.product-perks-card, .product-info-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.25rem;
  background: var(--bg-stone);
  border: 1px solid var(--border-hairline);
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.55;
}
.product-perk-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  color: var(--ink-muted);
}
.product-perk-emoji {
  font-size: 1.15rem;
  line-height: 1.2;
  flex-shrink: 0;
}
.product-perk-content {
  flex: 1;
}
.product-perk-label {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--ink-primary);
}

/* Mobile Product Detail Page: Edge-to-Edge Square-Corner Image & Above-the-Fold Add to Cart */
@media (max-width: 767px) {
  .container.product-detail-layout {
    padding: 0 0 2rem 0;
    gap: 0.65rem;
    max-width: 100%;
  }
  .product-gallery-wrap {
    width: 100%;
    margin: 0;
  }
  .gallery-main {
    width: 100%;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
    aspect-ratio: auto;
    height: 34svh;
    min-height: 210px;
    max-height: 270px;
  }
  .gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
  .gallery-enlarge-badge {
    bottom: 0.6rem;
    right: 0.6rem;
    padding: 0.25rem 0.6rem;
    font-size: 10px;
  }
  .product-detail-info {
    padding: 0 1.25rem;
    gap: 0.55rem;
  }
  .product-detail-title {
    font-size: 1.25rem;
    line-height: 1.15;
    margin: 0;
  }
  .product-detail-price-row {
    gap: 0.5rem;
    align-items: center;
  }
  .product-detail-price {
    font-size: 1.15rem;
    line-height: 1.2;
  }
  .product-detail-tax-badge {
    font-size: 10px;
    padding: 0.12rem 0.45rem;
  }
  .variant-group {
    gap: 0.3rem;
  }
  .variant-label {
    font-size: 10px;
    line-height: 1.2;
  }
  .color-swatches-row {
    gap: 0.45rem;
  }
  .color-swatch-btn {
    width: 26px;
    height: 26px;
  }
  .variant-options {
    gap: 0.35rem;
  }
  .variant-pill, .size-pill {
    padding: 0.35rem 0.7rem;
    font-size: 11px;
    border-radius: 6px;
  }
  .add-to-cart-action-btn {
    padding: 0.78rem 1.25rem;
    font-size: 12px;
    border-radius: 10px;
  }
  .product-perks-card, .product-info-card {
    margin-top: 0.5rem;
    padding: 1rem;
    gap: 0.65rem;
    font-size: 12.5px;
  }
}

/* ==========================================================================
   Collections Layout & Sidebar
   ========================================================================== */
.collection-container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
  box-sizing: border-box;
}
.collection-layout {
  display: flex;
  gap: 2.5rem;
  width: 100%;
  align-items: flex-start;
}
.collection-sidebar {
  width: 240px;
  min-width: 240px;
  position: sticky;
  top: 6rem;
  background: var(--bg-stone);
  border: 1px solid var(--border-hairline);
  border-radius: 16px;
  padding: 1.5rem;
  box-sizing: border-box;
}
.sidebar-title {
  font-family: var(--font-syne);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink-primary);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}
.sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  list-style: none;
}
.sidebar-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  color: var(--ink-muted);
  font-family: var(--font-sans);
  font-size: 13px;
  text-decoration: none;
  transition: var(--transition-smooth);
}
.sidebar-item:hover, .sidebar-item.active {
  background: var(--bg-alabaster);
  color: var(--ink-primary);
  font-weight: 600;
}
.sidebar-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
}
.collection-main-content {
  flex: 1;
  min-width: 0;
}
.mobile-collection-bar {
  display: none;
  overflow-x: auto;
  gap: 0.5rem;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
  -webkit-overflow-scrolling: touch;
}
.mobile-collection-pill {
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  border: 1px solid var(--border-hairline);
  background: var(--bg-stone);
  color: var(--ink-primary);
  font-family: var(--font-mono);
  font-size: 11px;
  text-decoration: none;
  white-space: nowrap;
  transition: var(--transition-smooth);
}
.mobile-collection-pill-active {
  background: var(--ink-primary);
  color: var(--bg-alabaster);
  border-color: var(--ink-primary);
}
@media (max-width: 900px) {
  .collection-layout {
    flex-direction: column;
    gap: 1.5rem;
  }
  .collection-sidebar {
    display: none;
  }
  .mobile-collection-bar {
    display: flex;
  }
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.5rem;
  width: 100%;
}
@media (min-width: 640px) {
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }
}
@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
  }
}
@media (min-width: 1280px) {
  .products-grid.shop-all-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ==========================================================================
   Product Recommendations
   ========================================================================== */
.recommendations-section {
  margin-top: 5rem;
  padding-top: 3.5rem;
  border-top: 1px solid var(--border-hairline);
}
.recommendations-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
@media (min-width: 640px) {
  .recommendations-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .recommendations-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ==========================================================================
   Standalone Cart Page & Stripe Checkout
   ========================================================================== */
.cart-page-container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
  box-sizing: border-box;
}
.cart-page-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2.5rem;
  align-items: start;
  margin-top: 2rem;
  width: 100%;
  box-sizing: border-box;
}
@media (max-width: 900px) {
  .cart-page-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
.cart-table-card {
  background: var(--bg-stone);
  border: 1px solid var(--border-hairline);
  border-radius: 20px;
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  width: 100%;
  box-sizing: border-box;
}
.cart-item-row {
  display: flex;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border-hairline);
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}
.cart-item-row:last-child {
  border-bottom: none;
}
.cart-item-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--bg-alabaster);
  flex-shrink: 0;
}
.cart-item-content {
  display: flex;
  flex: 1;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}
.cart-item-header {
  display: flex;
  flex: 1;
  min-width: 0;
  align-items: flex-start;
  gap: 0.75rem;
}
.cart-item-info {
  flex-grow: 1;
  min-width: 0;
}
.cart-item-title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink-primary);
  line-height: 1.35;
}
.cart-item-variant {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
  margin-top: 0.25rem;
}
.cart-item-price {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-primary);
  margin-top: 0.25rem;
}
.cart-item-actions-wrap {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-shrink: 0;
}
.cart-item-total-price {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink-primary);
  white-space: nowrap;
}
.cart-item-remove-btn {
  background: transparent;
  border: none;
  color: var(--ink-muted);
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  font-size: 1.25rem;
  line-height: 1;
  transition: color 0.2s;
  border-radius: 6px;
  flex-shrink: 0;
}
.cart-item-remove-btn:hover {
  color: var(--accent-coral);
}
.order-summary-card {
  background: var(--bg-stone);
  border: 1px solid var(--border-hairline);
  border-radius: 20px;
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 90px;
}
.order-summary-title {
  font-family: var(--font-syne);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink-primary);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-hairline);
}
.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--ink-muted);
}
.summary-row-total {
  font-family: var(--font-syne);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink-primary);
  border-top: 1px solid var(--border-hairline);
  padding-top: 1rem;
  margin-top: 1rem;
}
.stripe-checkout-btn {
  width: 100%;
  padding: 1rem;
  background: var(--ink-primary);
  color: var(--bg-alabaster);
  border: 1px solid var(--ink-primary);
  border-radius: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  transition: var(--transition-smooth);
  margin-top: 1.25rem;
}
.stripe-checkout-btn:hover:not(:disabled) {
  background: var(--accent-matcha);
  color: var(--ink-primary);
  border-color: var(--accent-matcha);
}
.stripe-checkout-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.stripe-trust-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
  margin-top: 1rem;
  text-align: center;
}
.payment-badges-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.85rem;
  flex-wrap: wrap;
}
.payment-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 6px;
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid var(--border-hairline);
  height: 26px;
}
.payment-badge svg {
  height: 18px;
  width: auto;
}
.customer-email-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-hairline);
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 14px;
  background: #ffffff;
  color: #111111 !important;
  -webkit-text-fill-color: #111111 !important;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.customer-email-input:focus {
  border-color: var(--ink-primary);
}

/* ==========================================================================
   Policy & Status Pages
   ========================================================================== */
.policy-page {
  max-width: 860px;
  margin: 3.5rem auto 5rem;
  padding: 0 1.5rem;
  width: 100%;
  box-sizing: border-box;
}
.policy-header {
  text-align: center;
  margin-bottom: 3rem;
}
.policy-title {
  font-family: var(--font-syne);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700;
  color: var(--ink-primary);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
.policy-card {
  background: var(--bg-stone);
  border: 1px solid var(--border-hairline);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  width: 100%;
  box-sizing: border-box;
}
.policy-card h2, .policy-card h3 {
  font-family: var(--font-syne);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink-primary);
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
}
.policy-card p {
  color: var(--ink-muted);
  line-height: 1.7;
  font-size: 0.95rem;
}
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}
.contact-info-card {
  background: var(--bg-alabaster);
  border: 1px solid var(--border-hairline);
  border-radius: 14px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: var(--transition-smooth);
}
.contact-info-card:hover {
  border-color: var(--ink-primary);
  box-shadow: var(--shadow-sm);
}
.contact-info-card h3 {
  font-family: var(--font-syne);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink-primary);
  margin: 0;
}
.contact-info-card a {
  color: var(--ink-primary);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.status-page-card {
  max-width: 600px;
  margin: 4rem auto;
  background: var(--bg-stone);
  border: 1px solid var(--border-hairline);
  border-radius: 20px;
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.status-icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}
.status-icon-success {
  background: rgba(184, 248, 52, 0.2);
  color: var(--ink-primary);
}
.status-icon-cancel {
  background: rgba(255, 77, 109, 0.15);
  color: var(--accent-coral);
}

/* ==========================================================================
   FAQ Components
   ========================================================================== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.faq-item {
  background: var(--bg-alabaster);
  border: 1px solid var(--border-hairline);
  border-radius: 14px;
  overflow: hidden;
  transition: var(--transition-smooth);
}
.faq-item:hover {
  border-color: var(--ink-primary);
}
.faq-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-primary);
  cursor: pointer;
  user-select: none;
  list-style: none;
}
.faq-summary::-webkit-details-marker {
  display: none;
}
.faq-chevron {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--ink-muted);
  transition: transform 0.25s ease;
}
.faq-item[open] .faq-chevron {
  transform: rotate(45deg);
}
.faq-answer {
  padding: 0 1.5rem 1.25rem;
  color: var(--ink-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  border-top: 1px solid var(--border-hairline);
  padding-top: 1rem;
}

/* ==========================================================================
   Modals, Size Guide & Lightbox
   ========================================================================== */
.size-guide-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.size-guide-modal.open {
  display: flex;
  opacity: 1;
}
.size-guide-content {
  background: var(--bg-alabaster);
  border-radius: 20px;
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-hairline);
  overflow: hidden;
}
.size-guide-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-hairline);
  background: var(--bg-stone);
}
.size-guide-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-syne);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink-primary);
}
.size-guide-close-btn {
  background: var(--bg-alabaster);
  border: 1px solid var(--border-hairline);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--ink-muted);
  transition: var(--transition-smooth);
}
.size-guide-close-btn:hover {
  background: var(--bg-stone);
  color: var(--ink-primary);
}
.size-guide-body {
  padding: 1.5rem;
  overflow-y: auto;
}

.lightbox-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
.lightbox-modal.open {
  display: flex;
}
.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  background: var(--bg-stone);
  display: block;
}
.lightbox-close-btn {
  position: absolute;
  top: -2.5rem;
  right: 0;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.75rem;
  cursor: pointer;
}

/* ==========================================================================
   Pagination Controls
   ========================================================================== */
.pagination-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-hairline);
}
.pagination {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.page-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--border-hairline);
  background: var(--bg-alabaster);
  color: var(--ink-primary);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
}
.page-btn:hover:not(.page-btn-disabled) {
  border-color: var(--ink-primary);
  background: var(--bg-stone);
}
.page-btn-active {
  background: var(--ink-primary) !important;
  color: var(--bg-alabaster) !important;
  border-color: var(--ink-primary) !important;
  font-weight: 700;
}
.page-btn-disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.page-btn-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
}
.page-ellipsis {
  padding: 0 0.5rem;
  color: var(--ink-muted);
  font-family: var(--font-mono);
}
.page-info {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
}

/* ==================== TAILWIND CSS UTILITY FALLBACKS ==================== */
/* Display */
.block { display: block; }
.inline-block { display: inline-block; }
.inline { display: inline; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }

/* Flexbox */
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.items-baseline { align-items: baseline; }
.items-stretch { align-items: stretch; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }
.flex-1 { flex: 1 1 0%; }
.shrink-0 { flex-shrink: 0; }
.min-w-0 { min-width: 0px; }
.self-start { align-self: flex-start; }

/* Grid Columns */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }

.col-span-1 { grid-column: span 1 / span 1; }
.col-span-2 { grid-column: span 2 / span 2; }
.col-span-3 { grid-column: span 3 / span 3; }
.col-span-4 { grid-column: span 4 / span 4; }
.col-span-5 { grid-column: span 5 / span 5; }
.col-span-6 { grid-column: span 6 / span 6; }
.col-span-7 { grid-column: span 7 / span 7; }
.col-span-8 { grid-column: span 8 / span 8; }
.col-span-9 { grid-column: span 9 / span 9; }
.col-span-10 { grid-column: span 10 / span 10; }
.col-span-11 { grid-column: span 11 / span 11; }
.col-span-12 { grid-column: span 12 / span 12; }

/* Gaps */
.gap-1 { gap: 0.25rem; }
.gap-1.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-2.5 { gap: 0.625rem; }
.gap-3 { gap: 0.75rem; }
.gap-3.5 { gap: 0.875rem; }
.gap-4 { gap: 1rem; }
.gap-7 { gap: 1.75rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }
.gap-12 { gap: 3rem; }
.gap-14 { gap: 3.5rem; }
.gap-x-6 { column-gap: 1.5rem; }
.gap-y-11 { row-gap: 2.75rem; }

/* Sizing */
.w-full { width: 100%; }
.h-full { height: 100%; }
.w-auto { width: auto; }
.h-auto { height: auto; }
.w-0 { width: 0px; }
.w-2 { width: 0.5rem; }
.h-2 { height: 0.5rem; }
.w-2.5 { width: 0.625rem; }
.h-2.5 { height: 0.625rem; }
.w-3.5 { width: 0.875rem; }
.h-3.5 { height: 0.875rem; }
.w-4 { width: 1rem; }
.h-4 { height: 1rem; }
.w-5 { width: 1.25rem; }
.h-5 { height: 1.25rem; }
.w-7 { width: 1.75rem; }
.h-7 { height: 1.75rem; }
.w-8 { width: 2rem; }
.h-8 { height: 2rem; }
.w-9 { width: 2.25rem; }
.h-9 { height: 2.25rem; }
.w-12 { width: 3rem; }
.h-14 { height: 3.5rem; }
.h-16 { height: 4rem; }
.h-20 { height: 5rem; }
.w-16 { width: 4rem; }
.w-40 { width: 10rem; }
.w-[1px] { width: 1px; }
.h-[15px] { height: 15px; }
.min-w-[15px] { min-width: 15px; }

.min-h-screen { min-height: 100vh; }
.min-h-[380px] { min-height: 380px; }
.min-h-[430px] { min-height: 430px; }
.max-w-xs { max-width: 20rem; }
.max-w-sm { max-width: 24rem; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-7xl { max-width: 80rem; }
.max-w-[350px] { max-width: 350px; }
.max-w-[1440px] { max-width: 1440px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.my-auto { margin-top: auto; margin-bottom: auto; }

/* Colors & Backgrounds */
.bg-alabaster { background-color: var(--bg-alabaster); }
.bg-stone { background-color: var(--bg-stone); }
.bg-stone/70 { background-color: rgba(243, 243, 239, 0.7); }
.bg-ink { background-color: var(--ink-primary); }
.bg-ink/25 { background-color: rgba(17, 17, 17, 0.25); }
.bg-ink/85 { background-color: rgba(17, 17, 17, 0.85); }
.bg-matcha { background-color: var(--accent-matcha); }
.bg-matcha/70 { background-color: rgba(184, 248, 52, 0.7); }
.bg-cobalt { background-color: var(--accent-cobalt); }
.bg-cobalt/40 { background-color: rgba(37, 99, 235, 0.4); }
.bg-coral { background-color: var(--accent-coral); }
.bg-coral/40 { background-color: rgba(255, 77, 109, 0.4); }
.bg-white { background-color: #FFFFFF; }
.bg-hairline { background-color: var(--border-hairline); }
.bg-transparent { background-color: transparent; }

.text-ink { color: var(--ink-primary); }
.text-ink/80 { color: rgba(17, 17, 17, 0.8); }
.text-graphite { color: var(--ink-muted); }
.text-alabaster { color: var(--bg-alabaster); }
.text-matcha { color: var(--accent-matcha); }
.text-cobalt { color: var(--accent-cobalt); }
.text-coral { color: var(--accent-coral); }
.text-white { color: #FFFFFF; }

.border-hairline { border-color: var(--border-hairline); }
.border-ink { border-color: var(--ink-primary); }
.border-ink/20 { border-color: rgba(17, 17, 17, 0.2); }
.border-ink/25 { border-color: rgba(17, 17, 17, 0.25); }

/* Borders & Radius */
.border { border-width: 1px; border-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-l { border-left-width: 1px; border-left-style: solid; }
.border-r { border-right-width: 1px; border-right-style: solid; }

.rounded-sm { border-radius: 0.125rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-full { border-radius: 9999px; }

/* Positioning */
.relative { position: relative; }
.absolute { position: absolute; }
.sticky { position: sticky; }
.fixed { position: fixed; }
.top-0 { top: 0px; }
.bottom-0 { bottom: 0px; }
.left-0 { left: 0px; }
.right-0 { right: 0px; }
.inset-0 { top: 0px; right: 0px; bottom: 0px; left: 0px; }
.top-1 { top: 0.25rem; }
.top-3 { top: 0.75rem; }
.top-3.5 { top: 0.875rem; }
.bottom-3.5 { bottom: 0.875rem; }
.bottom-6 { bottom: 1.5rem; }
.left-3.5 { left: 0.875rem; }
.left-4 { left: 1rem; }
.right-1 { right: 0.25rem; }
.right-3 { right: 0.75rem; }
.right-3.5 { right: 0.875rem; }
.right-6 { right: 1.5rem; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }
.overflow-x-hidden { overflow-x: hidden; }

/* Spacing Padding */
.p-0.5 { padding: 0.125rem; }
.p-1 { padding: 0.25rem; }
.p-1.5 { padding: 0.375rem; }
.p-3.5 { padding: 0.875rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

.px-1 { padding-left: 0.25rem; padding-right: 0.25rem; }
.px-1.5 { padding-left: 0.375rem; padding-right: 0.375rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-2.5 { padding-left: 0.625rem; padding-right: 0.625rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-3.5 { padding-left: 0.875rem; padding-right: 0.875rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-7 { padding-left: 1.75rem; padding-right: 1.75rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.px-12 { padding-left: 3rem; padding-right: 3rem; }

.py-0.2 { padding-top: 0.05rem; padding-bottom: 0.05rem; }
.py-0.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-3.5 { padding-top: 0.875rem; padding-bottom: 0.875rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-14 { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }

.pb-1 { padding-bottom: 0.25rem; }
.pb-1.5 { padding-bottom: 0.375rem; }
.pb-3 { padding-bottom: 0.75rem; }
.pb-4 { padding-bottom: 1rem; }
.pb-5 { padding-bottom: 1.25rem; }
.pb-12 { padding-bottom: 3rem; }
.pt-1 { padding-top: 0.25rem; }
.pt-2 { padding-top: 0.5rem; }
.pt-2.5 { padding-top: 0.625rem; }
.pt-3 { padding-top: 0.75rem; }
.pt-3.5 { padding-top: 0.875rem; }
.pt-6 { padding-top: 1.5rem; }
.pl-2.5 { padding-left: 0.625rem; }
.pl-3 { padding-left: 0.75rem; }
.pr-1 { padding-right: 0.25rem; }
.pr-3 { padding-right: 0.75rem; }

/* Margins */
.mb-1.5 { margin-bottom: 0.375rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-2.5 { margin-bottom: 0.625rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mt-0.5 { margin-top: 0.125rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-2.5 { margin-top: 0.625rem; }
.mt-6 { margin-top: 1.5rem; }
.mr-1 { margin-right: 0.25rem; }
.-ml-5 { margin-left: -1.25rem; }
.-mr-5 { margin-right: -1.25rem; }

.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-1.5 > * + * { margin-top: 0.375rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-2.5 > * + * { margin-top: 0.625rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-7 > * + * { margin-top: 1.75rem; }

/* Typography */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.uppercase { text-transform: uppercase; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.line-through { text-decoration-line: line-through; }
.underline { text-decoration-line: underline; }
.underline-offset-2 { text-underline-offset: 2px; }
.underline-offset-4 { text-underline-offset: 4px; }

.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.text-[9px] { font-size: 9px; line-height: 12px; }
.text-[10px] { font-size: 10px; line-height: 14px; }
.text-[11px] { font-size: 11px; line-height: 15px; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-[15px] { font-size: 15px; line-height: 20px; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }

.tracking-tight { letter-spacing: -0.025em; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }
.tracking-[-0.025em] { letter-spacing: -0.025em; }
.tracking-[0.04em] { letter-spacing: 0.04em; }
.tracking-[0.06em] { letter-spacing: 0.06em; }
.tracking-[0.08em] { letter-spacing: 0.08em; }

.leading-relaxed { line-height: 1.625; }
.leading-[1.05] { line-height: 1.05; }
.leading-[1.06] { line-height: 1.06; }

/* Transitions & Transforms */
.cursor-pointer { cursor: pointer; }
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 200ms; }
.transition-colors { transition-property: color, background-color, border-color; transition-duration: 150ms; }
.transition-opacity { transition-property: opacity; transition-duration: 150ms; }
.transition-transform { transition-property: transform; transition-duration: 300ms; }
.duration-300 { transition-duration: 300ms; }
.ease-out { transition-timing-function: cubic-bezier(0, 0, 0.2, 1); }
.transform { transform: translateZ(0); }
.translate-x-full { transform: translateX(100%); }
.translate-x-0 { transform: translateX(0); }

.opacity-0 { opacity: 0; }
.opacity-75 { opacity: 0.75; }
.opacity-80 { opacity: 0.8; }

.shadow-2xs { box-shadow: var(--shadow-2xs); }
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-lg { box-shadow: var(--shadow-lg); }

.aspect-[3/4] { aspect-ratio: 3 / 4; }
.aspect-[4/3] { aspect-ratio: 4 / 3; }
.backdrop-blur-[2px] { backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }

/* Rings */
.ring-1 { box-shadow: 0 0 0 1px currentColor; }
.ring-ink { box-shadow: 0 0 0 1px var(--ink-primary); }
.ring-ink/15 { box-shadow: 0 0 0 1px rgba(17, 17, 17, 0.15); }
.ring-ink/20 { box-shadow: 0 0 0 1px rgba(17, 17, 17, 0.2); }
.ring-offset-2 { outline: 2px solid transparent; outline-offset: 2px; }

/* Drawers Open States */
#bag-drawer.open,
#wish-drawer.open,
#quick-view-modal.open,
.slide-drawer.open {
  transform: translateX(0) !important;
}
#bag-backdrop.open,
#wish-backdrop.open,
#quick-backdrop.open,
.drawer-backdrop.open {
  display: block !important;
}

/* Hover States */
.hover:bg-ink:hover { background-color: var(--ink-primary); }
.hover:bg-ink/85:hover { background-color: rgba(17, 17, 17, 0.85); }
.hover:bg-matcha:hover { background-color: var(--accent-matcha); }
.hover:bg-stone:hover { background-color: var(--bg-stone); }
.hover:border-ink:hover { border-color: var(--ink-primary); }
.hover:text-alabaster:hover { color: var(--bg-alabaster); }
.hover:text-cobalt:hover { color: var(--accent-cobalt); }
.hover:text-coral:hover { color: var(--accent-coral); }
.hover:text-ink:hover { color: var(--ink-primary); }

/* Focus States */
.focus:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }
.focus:border-ink:focus { border-color: var(--ink-primary); }

/* Additional Utility Fallbacks */
.gap-6 { gap: 1.5rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mt-12 { margin-top: 3rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.h-1.5 { height: 0.375rem; }
.h-48 { height: 12rem; }
.h-[15px] { height: 15px; }
.w-36 { width: 9rem; }
.w-[1px] { width: 1px; }
.min-w-[15px] { min-width: 15px; }
.min-h-[380px] { min-height: 380px; }
.min-h-[430px] { min-height: 430px; }
.max-w-3xl { max-width: 48rem; }
.max-w-[1440px] { max-width: 1440px; }
.leading-[1.06] { line-height: 1.06; }
.object-contain { object-fit: contain; }
.scroll-smooth { scroll-behavior: smooth; }
.text-[9px] { font-size: 9px; }
.text-[10px] { font-size: 10px; }
.text-[11px] { font-size: 11px; }
.text-[15px] { font-size: 15px; }
.tracking-[-0.025em] { letter-spacing: -0.025em; }
.tracking-[0.04em] { letter-spacing: 0.04em; }
.tracking-[0.06em] { letter-spacing: 0.06em; }
.tracking-[0.08em] { letter-spacing: 0.08em; }

/* Colors with Opacities */
.bg-cobalt/40 { background-color: rgba(37, 99, 235, 0.4); }
.bg-coral/40 { background-color: rgba(255, 77, 109, 0.4); }
.bg-ink/25 { background-color: rgba(17, 17, 17, 0.25); }
.bg-matcha/70 { background-color: rgba(184, 248, 52, 0.7); }
.text-ink/80 { color: rgba(17, 17, 17, 0.8); }

/* Spacing and Dividers */
.space-y-8 > :not([hidden]) ~ :not([hidden]) { margin-top: 2rem; }
.divide-y > :not([hidden]) ~ :not([hidden]) { border-top-width: 1px; }
.divide-x > :not([hidden]) ~ :not([hidden]) { border-left-width: 1px; }
.divide-hairline > :not([hidden]) ~ :not([hidden]) { border-color: var(--border-hairline); }

/* Details/Group Open and Transitions */
details[open] .group-open:rotate-45 { transform: rotate(45deg); }
.hover:scale-110:hover { transform: scale(1.1); }

/* Responsive (sm: 640px) */
@media (min-width: 640px) {
  .sm:flex { display: flex; }
  .sm:flex-initial { flex: 0 1 auto; }
  .sm:flex-row { flex-direction: row; }
  .sm:hidden { display: none; }
  .sm:inline { display: inline; }
  .sm:items-center { align-items: center; }
  .sm:items-end { align-items: flex-end; }
  .sm:justify-end { justify-content: flex-end; }
  .sm:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm:gap-3 { gap: 0.75rem; }
  .sm:min-h-[520px] { min-height: 520px; }
  .sm:p-6 { padding: 1.5rem; }
  .sm:p-8 { padding: 2rem; }
  .sm:pl-4 { padding-left: 1rem; }
  .sm:px-4 { padding-left: 1rem; padding-right: 1rem; }
  .sm:px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
  .sm:px-8 { padding-left: 2rem; padding-right: 2rem; }
  .sm:py-16 { padding-top: 4rem; padding-bottom: 4rem; }
  .sm:py-20 { padding-top: 5rem; padding-bottom: 5rem; }
  .sm:py-24 { padding-top: 6rem; padding-bottom: 6rem; }
  .sm:self-auto { align-self: auto; }
  .sm:text-base { font-size: 1rem; line-height: 1.5rem; }
  .sm:text-lg { font-size: 1.125rem; line-height: 1.75rem; }
  .sm:text-[15px] { font-size: 15px; }
  .sm:text-2xl { font-size: 1.5rem; line-height: 2rem; }
  .sm:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
  .sm:text-5xl { font-size: 3rem; line-height: 1; }
  .sm:text-6xl { font-size: 3.75rem; line-height: 1; }
}

/* Responsive (md: 768px) */
@media (min-width: 768px) {
  .md:flex { display: flex; }
  .md:flex-row { flex-direction: row; }
  .md:hidden { display: none; }
  .md:items-center { align-items: center; }
  .md:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .md:col-span-3 { grid-column: span 3 / span 3; }
  .md:col-span-4 { grid-column: span 4 / span 4; }
  .md:col-span-5 { grid-column: span 5 / span 5; }
}

/* Responsive (lg: 1024px) */
@media (min-width: 1024px) {
  .lg:flex { display: flex; }
  .lg:hidden { display: none; }
  .lg:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .lg:col-span-4 { grid-column: span 4 / span 4; }
  .lg:col-span-5 { grid-column: span 5 / span 5; }
  .lg:col-span-7 { grid-column: span 7 / span 7; }
  .lg:col-span-8 { grid-column: span 8 / span 8; }
  .lg:gap-12 { gap: 3rem; }
  .lg:gap-14 { gap: 3.5rem; }
  .lg:px-8 { padding-left: 2rem; padding-right: 2rem; }
  .lg:px-12 { padding-left: 3rem; padding-right: 3rem; }
  .lg:py-20 { padding-top: 5rem; padding-bottom: 5rem; }
  .lg:py-24 { padding-top: 6rem; padding-bottom: 6rem; }
  .lg:w-48 { width: 12rem; }
}

/* Responsive (xl: 1280px) */
@media (min-width: 1280px) {
  .xl:text-[56px] { font-size: 56px; line-height: 1.05; }
}
