/* ==========================================================================
   MÉVA — global styles
   Breakpoints: 480 (small phone), 768 (tablet), 1024 (small desktop), 1280 (wide)
   ========================================================================== */

:root {
  --color-bg: #faf9f5;
  --color-surface: #ffffff;
  --color-text: #1a1a1a;
  --color-text-muted: #6b6b6b;
  --color-border: #e4e1d9;
  --color-dark: #16140f;
  --color-accent: #7a5c3e;
  /* The warm brass/gold used sparingly for eyebrow dividers, hover
     underlines, and price accents — the one recurring "considered" motif
     tying the whole site together. Never used for large fills; it reads
     as premium precisely because it stays a thin, deliberate accent. */
  --color-gold: #b8925a;
  --color-gold-deep: #8f6c3f;
  --color-danger: #b3401f;
  --font-heading: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --container-width: 1240px;
  --radius: 2px;
  --transition: 0.2s ease;
  /* A decisive ease-out curve (slow finish, quick start) used for anything
     meant to feel considered rather than mechanical — image hovers, reveals,
     entrances. Plain "ease" reads as a UI toggle; this reads as a gesture. */
  --ease-premium: cubic-bezier(0.22, 1, 0.36, 1);
  /* Same curve, packaged as a full transition duration for interactive
     elements (buttons, links) that should feel weighted rather than snappy —
     --transition stays the plain, fast one for simple UI state toggles. */
  --transition-premium: 0.35s var(--ease-premium);
}

* {
  box-sizing: border-box;
}

/* The [hidden] attribute must win over any display:flex/grid class applied
   to the same element — without !important, equal-specificity author CSS
   silently beats the browser's default [hidden]{display:none} rule. */
[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  /* Reserves the scrollbar's width permanently instead of only when the
     page is tall enough to need one — otherwise navigating from a short
     page (e.g. a filtered category with few products, no scrollbar) to
     a tall one shifted the whole centered layout sideways by the
     scrollbar's width, which read as the page "jumping" on navigation.
     overflow-y: scroll is the older, universally-supported way to force
     that same reserved space — scrollbar-gutter alone doesn't help on
     browsers that don't support it (older Safari in particular), so
     both are set together. */
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1em;
  color: var(--color-text-muted);
}

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

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* The eyebrow + thin gold rule is the one motif repeated everywhere on
   the site (hero, section headings, product badges) — a small, quiet
   signature rather than a loud one, which is what actually reads as
   "considered" instead of "decorated". Applied via ::before so every
   existing .eyebrow usage picks it up with no markup changes. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--color-gold-deep);
  margin-bottom: 0.9em;
}

.eyebrow::before {
  content: "";
  display: block;
  width: 26px;
  height: 1px;
  background: var(--color-gold);
  flex: none;
}

.loading-text {
  color: var(--color-text-muted);
  padding: 40px 0;
  text-align: center;
  grid-column: 1 / -1;
}

/* ---------- Skeleton loading ---------- */
/* Placeholder shapes matching the real content's layout, shown instead of
   "Loading…" text or blank space — reduces perceived wait time and avoids
   the page jolting into shape once data arrives. prefers-reduced-motion
   gets the shape without the shimmer motion. */

@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton {
  background: linear-gradient(100deg, #ececea 30%, #f6f5f3 50%, #ececea 70%);
  background-size: 400% 100%;
  animation: skeleton-shimmer 1.6s ease-in-out infinite;
  border-radius: var(--radius);
}

@media (prefers-reduced-motion: reduce) {
  .skeleton { animation: none; background: #ececea; }
}

.skeleton-product-card .product-image {
  aspect-ratio: 3 / 4;
  margin-bottom: 12px;
}

.skeleton-line {
  height: 14px;
  margin-bottom: 8px;
}

.skeleton-line-short {
  width: 55%;
}

.skeleton-row {
  height: 84px;
  margin-bottom: 12px;
}

.skeleton-block {
  width: 100%;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 15px 34px;
  border: 1px solid var(--color-dark);
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  transition: background var(--transition-premium), color var(--transition-premium),
    border-color var(--transition-premium), opacity var(--transition-premium);
}

.btn-dark {
  background: var(--color-dark);
  color: #fff;
  border-color: var(--color-dark);
}
.btn-dark:hover { background: var(--color-gold-deep); border-color: var(--color-gold-deep); }

.btn-light {
  background: #fff;
  color: var(--color-dark);
  border-color: #fff;
}
.btn-light:hover { background: var(--color-gold); border-color: var(--color-gold); color: #fff; }

.btn-outline {
  background: transparent;
  color: var(--color-dark);
}
.btn-outline:hover { background: var(--color-dark); color: #fff; border-color: var(--color-dark); }

.btn-block {
  display: block;
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.text-link {
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 0.9rem;
}

/* ---------- Confetti (order confirmation) ---------- */

.confetti-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 999;
}

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s var(--ease-premium), transform 0.9s var(--ease-premium);
}

.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 249, 245, 0.97);
  border-bottom: 1px solid var(--color-border);
}

/* The homepage only: header floats transparent over the full-bleed hero
   image instead of sitting in its own bar above it, then solidifies once
   the hero scrolls past — the classic editorial-fashion-site header
   treatment. Every other page keeps the plain sticky cream bar, since
   there's no hero image for it to float over. */
.site-header-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  border-bottom-color: transparent;
  transition: background var(--transition-premium), border-color var(--transition-premium);
}

.site-header-overlay .logo,
.site-header-overlay .main-nav a,
.site-header-overlay .cart-link,
.site-header-overlay .header-search-toggle,
.site-header-overlay .header-phone-link,
.site-header-overlay .account-link,
.site-header-overlay .account-icon {
  color: #fff;
}

.site-header-overlay .nav-toggle span {
  background: #fff;
}

.site-header-overlay.is-scrolled {
  background: rgba(250, 249, 245, 0.97);
  border-bottom-color: var(--color-border);
}

.site-header-overlay.is-scrolled .logo,
.site-header-overlay.is-scrolled .main-nav a,
.site-header-overlay.is-scrolled .cart-link,
.site-header-overlay.is-scrolled .header-search-toggle,
.site-header-overlay.is-scrolled .header-phone-link,
.site-header-overlay.is-scrolled .account-link,
.site-header-overlay.is-scrolled .account-icon {
  color: var(--color-text);
}

.site-header-overlay.is-scrolled .nav-toggle span {
  background: var(--color-dark);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 84px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-right: auto;
}

.main-nav {
  display: flex;
  gap: 30px;
  margin-left: auto;
}

.main-nav a {
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-premium), color var(--transition-premium);
  white-space: nowrap;
}

.main-nav a:hover {
  border-color: var(--color-gold);
  color: var(--color-gold-deep);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cart-link {
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
}

.cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  border-radius: 50%;
  background: var(--color-dark);
  color: #fff;
  font-size: 0.7rem;
  margin-left: 4px;
}

/* ---------- Header search + phone ---------- */

.header-search-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: none;
  color: var(--color-text);
  cursor: pointer;
  flex: none;
}

.header-search-toggle svg {
  width: 18px;
  height: 18px;
}

/* Search popup — a panel anchored to the left edge, half the viewport
   width, instead of a full-width dropdown or an inline-expanding input
   that pushed the phone/account icons sideways every time it opened. */

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
}

.search-overlay[hidden] {
  display: none;
}

.search-overlay-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  border: none;
  background: rgba(0, 0, 0, 0.4);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.35s var(--ease-premium);
}

.search-overlay.open .search-overlay-backdrop {
  opacity: 1;
}

.search-overlay-panel {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 50%;
  min-width: 320px;
  max-width: 480px;
  background: var(--color-bg);
  border-right: 1px solid var(--color-border);
  padding: 28px 32px;
  overflow-y: auto;
  transform: translateX(-100%);
  opacity: 0;
  transition: transform 0.4s var(--ease-premium), opacity 0.3s var(--ease-premium);
}

.search-overlay.open .search-overlay-panel {
  transform: translateX(0);
  opacity: 1;
}

.search-overlay-field {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 2px solid var(--color-dark);
  padding-bottom: 12px;
}

.search-overlay-icon {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--color-text-muted);
}

.search-overlay-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: none;
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2.4vw, 1.4rem);
  padding: 6px 0;
  color: var(--color-text);
}

.search-overlay-input:focus {
  outline: none;
}

.search-overlay-close {
  flex: none;
  width: 30px;
  height: 30px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--color-text-muted);
}

.search-overlay-close:hover {
  color: var(--color-text);
}

/* Trending/bestseller suggestions shown before the shopper types anything */

.search-suggestions-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin: 22px 0 12px;
}

.search-suggestions-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.search-suggestion-chip {
  padding: 8px 14px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: #fff;
  font-size: 0.84rem;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}

.search-suggestion-chip:hover {
  border-color: var(--color-dark);
}

.search-suggestion-chip-all {
  background: var(--color-dark);
  color: #fff;
  border-color: var(--color-dark);
}

.search-suggestion-chip-all:hover {
  opacity: 0.85;
}

/* Live results, shown under the field as the shopper types — before
   they ever have to press Enter */

.search-results-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 20px;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px;
  border-radius: var(--radius);
  transition: background var(--transition);
}

.search-result-item:hover {
  background: #fff;
}

.search-result-item img {
  width: 42px;
  height: 53px;
  object-fit: cover;
  border-radius: var(--radius);
  flex: none;
  background: #eee;
}

.search-result-item-info {
  flex: 1;
  min-width: 0;
}

.search-result-item-name {
  font-size: 0.88rem;
  margin: 0 0 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-result-item-price {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin: 0;
}

.search-view-all-link {
  display: block;
  margin-top: 14px;
  font-size: 0.85rem;
  text-align: center;
  padding: 10px;
  border-top: 1px solid var(--color-border);
}

.search-no-results {
  color: var(--color-text-muted);
  font-size: 0.88rem;
  margin-top: 20px;
}

@media (max-width: 768px) {
  .search-overlay-panel {
    width: 100%;
    max-width: none;
    min-width: 0;
    border-right: none;
    padding: 20px;
  }
}

.header-phone-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--color-text);
  flex: none;
}

.header-phone-link svg {
  width: 18px;
  height: 18px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  background: none;
  border: none;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-dark);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  height: 76vh;
  min-height: 460px;
  max-height: 760px;
  overflow: hidden;
}

/* Full-bleed to the viewport top, running underneath the transparent
   .site-header-overlay instead of sitting below a separate header bar. */
.hero-full {
  height: 100vh;
  min-height: 620px;
  max-height: 980px;
}

.hero-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.75);
}

.hero-scroll-cue span {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero-scroll-line {
  width: 1px;
  height: 34px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.9), rgba(255,255,255,0));
  animation: hero-scroll-pulse 2s ease-in-out infinite;
}

@keyframes hero-scroll-pulse {
  0%, 100% { opacity: 0.4; transform: scaleY(0.7); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-scroll-line { animation: none; }
}

@media (max-width: 768px) {
  .hero-scroll-cue { display: none; }
}

.trust-strip {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.trust-strip-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 32px;
  padding: 16px 20px;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.hero-short {
  height: 40vh;
  min-height: 280px;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(100deg, rgba(10,8,6,0.68) 0%, rgba(10,8,6,0.35) 50%, rgba(10,8,6,0.08) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: 580px;
  padding: 0 24px;
  margin: 0 auto;
  color: #fff;
  text-align: left;
}

.hero-content .eyebrow { color: var(--color-gold); }
.hero-content .eyebrow::before { background: var(--color-gold); }

.hero-content h1 {
  color: #fff;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 0.42em;
}

.hero-copy {
  color: rgba(255,255,255,0.88);
  max-width: 440px;
  margin-bottom: 1.7em;
  font-size: 1.02rem;
}

/* ---------- Category tiles ---------- */

/* An asymmetric magazine-style grid instead of four uniform squares: one
   tall dominant tile, two square tiles beside it, one wide banner tile
   underneath those two. Rows aren't given an explicit height — tiles 2-4
   keep a fixed aspect-ratio each, which is what auto-sizes row 1 and row 2;
   tile 1 has no aspect-ratio of its own and simply stretches (grid items
   default to align-self: stretch) to fill the full row-1-through-row-2 span
   it's placed across. */
.category-tiles {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 16px;
  padding-top: 96px;
  padding-bottom: 96px;
}

.tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}

.category-tiles .tile:nth-child(1) {
  grid-column: 1;
  grid-row: 1 / 3;
}

.category-tiles .tile:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
  aspect-ratio: 1 / 1;
}

.category-tiles .tile:nth-child(3) {
  grid-column: 3;
  grid-row: 1;
  aspect-ratio: 1 / 1;
}

.category-tiles .tile:nth-child(4) {
  grid-column: 2 / 4;
  grid-row: 2;
  aspect-ratio: 21 / 9;
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-premium);
}

.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 45%);
  pointer-events: none;
}

.tile:hover img {
  transform: scale(1.06);
}

.tile-label {
  position: absolute;
  bottom: 22px;
  left: 22px;
  z-index: 1;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  letter-spacing: 0.02em;
}

/* ---------- Manifesto (editorial statement band) ---------- */

.manifesto {
  background: var(--color-dark);
  padding: 110px 0;
}

.manifesto-inner {
  max-width: 800px;
  text-align: center;
}

.manifesto-text {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.5rem, 3.2vw, 2.5rem);
  line-height: 1.45;
  color: #f7f3ea;
  margin: 0 0 28px;
}

.manifesto-attribution {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.manifesto-rule {
  width: 32px;
  height: 1px;
  background: var(--color-gold);
}

/* ---------- Section heading ---------- */

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
}

/* section.container is the generic content wrapper used on almost every
   page (account, cart, product, contact, login, etc.) — it needs to stay
   at the original, tighter spacing. Only the homepage's editorial
   sections get the more generous "premium" rhythm. */
section.container, .about-copy {
  padding-top: 64px;
  padding-bottom: 64px;
}

/* Both also carry .container, which matches section.container above at
   equal specificity (element + class) — using the same "section.X" form
   here, appearing later in the file, is what actually lets this win. */
section.featured, section.lookbook {
  padding-top: 96px;
  padding-bottom: 96px;
}

/* ---------- Product grid & cards ---------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 24px;
}

.product-card {
  display: block;
}

.product-card .product-image {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #eee;
  border-radius: var(--radius);
  margin-bottom: 12px;
}

.product-card .product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-premium);
}

.product-card:hover .product-image img {
  transform: scale(1.06);
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--color-dark);
  color: #fff;
  padding: 5px 11px;
  font-size: 0.66rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  border-radius: var(--radius);
}

.favorite-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  transition: transform var(--transition);
}

.favorite-btn:hover {
  transform: scale(1.1);
}

.favorite-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--color-dark);
  stroke-width: 1.8;
}

.favorite-btn.active svg {
  fill: var(--color-danger);
  stroke: var(--color-danger);
}

/* On devices that truly support hover, the heart stays out of the way
   until you're actually looking at that product — except once it's
   already saved, where it stays visible as a persistent "you liked this"
   cue. Touch devices (no real hover) always show it, since there's no
   gesture to reveal it with. */
@media (hover: hover) {
  .favorite-btn {
    opacity: 0;
    transition: opacity var(--transition), transform var(--transition), background var(--transition);
  }

  .product-card:hover .favorite-btn,
  .favorite-btn:focus-visible,
  .favorite-btn.active {
    opacity: 1;
  }
}

.favorite-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.product-actions {
  display: flex;
  gap: 12px;
}

.btn-add-to-cart {
  flex: 1;
  padding: 16px 24px;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
}

.favorite-detail-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  flex: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  transition: border-color var(--transition);
}

.favorite-detail-btn:hover {
  border-color: var(--color-dark);
}

.favorite-detail-btn svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: var(--color-dark);
  stroke-width: 1.8;
}

.favorite-detail-btn.active svg {
  fill: var(--color-danger);
  stroke: var(--color-danger);
}

/* ---------- Wishlist toast ---------- */

.wishlist-toast {
  position: fixed;
  top: 92px;
  right: 20px;
  z-index: 200;
  display: flex;
  gap: 12px;
  align-items: center;
  width: 300px;
  max-width: calc(100vw - 40px);
  padding: 14px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  opacity: 0;
  transform: translateX(24px);
  pointer-events: none;
  transition: opacity 0.4s var(--ease-premium), transform 0.4s var(--ease-premium);
}

.wishlist-toast.visible {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.wishlist-toast img {
  width: 52px;
  height: 65px;
  object-fit: cover;
  border-radius: var(--radius);
  flex: none;
}

.wishlist-toast-body {
  min-width: 0;
}

.wishlist-toast-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 2px;
}

.wishlist-toast-name {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin: 0 0 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .wishlist-toast { top: 80px; right: 12px; }
}

.cookie-consent {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 250;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 20px;
  background: var(--color-dark);
  color: #fff;
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.cookie-consent p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  flex: 1;
  min-width: 200px;
}

.cookie-consent a {
  color: #fff;
  text-decoration: underline;
}

.cookie-consent .btn {
  flex: none;
}

@media (max-width: 480px) {
  .cookie-consent { left: 12px; right: 12px; bottom: 12px; padding: 14px; }
}

.product-card h3 {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.05rem;
  margin: 0 0 4px;
  background-image: linear-gradient(var(--color-gold-deep), var(--color-gold-deep));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: background-size 0.4s var(--ease-premium);
}

.product-card:hover h3 {
  background-size: 100% 1px;
}

.product-card .product-price {
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  color: var(--color-text-muted);
  margin: 0;
}

/* ---------- Brand story split ---------- */

.brand-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.story-image {
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

/* ---------- Lookbook ---------- */

.lookbook-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.lookbook-item {
  display: block;
  color: inherit;
  text-decoration: none;
}

.lookbook-item img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
  width: 100%;
  transition: opacity 0.15s ease;
}

.lookbook-item:hover img {
  opacity: 0.85;
}

.lookbook-item p {
  margin-top: 10px;
  font-size: 0.88rem;
}

/* ---------- Newsletter ---------- */

.newsletter {
  background: var(--color-dark);
  color: #fff;
  padding: 64px 0;
  text-align: center;
}

.newsletter h2 { color: #fff; }
.newsletter p { color: rgba(255,255,255,0.75); }

.newsletter-inner {
  max-width: 520px;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.newsletter-form input {
  flex: 1;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,0.3);
  background: transparent;
  color: #fff;
  border-radius: var(--radius);
}

.newsletter-form input::placeholder { color: rgba(255,255,255,0.6); }

/* .btn-dark's background matches this section's own background — without
   an override the button is only visible by its text. Gold reads as the
   deliberate accent here rather than a generic "make it visible" fix. */
.newsletter-form .btn-dark {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-dark);
}
.newsletter-form .btn-dark:hover {
  background: #fff;
  border-color: #fff;
}

.form-message {
  margin-top: 14px;
  font-size: 0.85rem;
  min-height: 1.2em;
}

/* ---------- Footer ---------- */

/* A dark closing band rather than more cream — bookends the page against
   the hero's own dark imagery and reads as a deliberate full stop instead
   of the layout just running out of content. */
.site-footer {
  /* A warm dark umber rather than the near-black used elsewhere (hero
     overlay, manifesto) — pure near-black read as too stark/heavy for a
     band this large, especially on mobile where it dominates the screen. */
  background: #2b2116;
  padding-top: 48px;
}

.site-footer .logo { color: #f7f3ea; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 48px;
}

.footer-brand p { margin-bottom: 0.6em; color: rgba(247,243,234,0.6); }

.social-links {
  display: flex;
  gap: 16px;
  margin-top: 12px;
}

.social-links a {
  font-size: 0.85rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: rgba(247,243,234,0.75);
}

.footer-links h3 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-gold);
  margin-bottom: 16px;
}

.footer-links a {
  display: block;
  font-size: 0.88rem;
  color: rgba(247,243,234,0.65);
  margin-bottom: 11px;
  transition: color var(--transition-premium);
}

.footer-links a:hover {
  color: var(--color-gold);
}

.footer-bottom {
  border-top: 1px solid rgba(247,243,234,0.12);
  padding: 22px 0;
  font-size: 0.8rem;
  color: rgba(247,243,234,0.45);
}

/* ---------- Page banner (shop, cart, contact) ---------- */

.page-banner {
  padding: 64px 20px 32px;
  text-align: center;
}

.page-banner h1 {
  font-size: clamp(2rem, 4vw, 2.6rem);
}

.page-banner-account {
  position: relative;
}

.page-banner-account #sign-out-btn {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
}

@media (max-width: 600px) {
  .page-banner-account #sign-out-btn {
    position: static;
    transform: none;
    margin-top: 16px;
  }
}

/* ---------- Type scroll bar ---------- */

.type-scroll-bar {
  border-bottom: 1px solid var(--color-border);
}

.type-scroll-inner {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  /* Only top/bottom here — left/right come from .container's own padding,
     which this shorthand was previously zeroing out (the "ALL" pill was
     sitting flush against the screen edge as a result). */
  padding-top: 14px;
  padding-bottom: 10px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
}

.type-scroll-inner::-webkit-scrollbar {
  display: none;
}

.type-pill {
  flex: none;
  padding: 0 0 4px;
  border: none;
  border-bottom: 1px solid transparent;
  background: none;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  white-space: nowrap;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
}

.type-pill:hover {
  color: var(--color-text);
}

.type-pill.active {
  color: var(--color-text);
  border-bottom-color: var(--color-dark);
}

/* ---------- Shop layout ---------- */

.shop-layout {
  padding-top: 10px;
  padding-bottom: 64px;
}

.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

/* Search — collapses to an icon; clicking it expands an inline input */

.shop-search {
  display: flex;
  align-items: center;
}

.shop-search-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: none;
  background: none;
  color: var(--color-text);
  cursor: pointer;
  flex: none;
}

.shop-search-toggle svg {
  width: 18px;
  height: 18px;
}

.shop-search-input {
  width: 0;
  min-width: 0;
  padding: 6px 0;
  margin-left: 0;
  border: none;
  border-bottom: 1px solid transparent;
  background: none;
  font-family: inherit;
  /* iOS Safari auto-zooms the page on focus for any input under 16px —
     that's the "zooming" glitch when tapping the search icon on mobile. */
  font-size: 16px;
  opacity: 0;
  transition: width var(--transition), opacity var(--transition), border-color var(--transition), margin-left var(--transition);
}

.shop-search.active .shop-search-input {
  width: min(220px, 50vw);
  opacity: 1;
  margin-left: 6px;
  border-bottom-color: var(--color-border);
}

.shop-search-input:focus {
  outline: none;
  border-bottom-color: var(--color-dark);
}

/* Sort */

.filter-select-wrap {
  position: relative;
}

.filter-select-wrap select {
  width: 100%;
  padding: 10px 34px 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
  font-family: inherit;
  font-size: 0.88rem;
  appearance: none;
  cursor: pointer;
  transition: border-color var(--transition);
}

.filter-select-wrap select:focus {
  border-color: var(--color-dark);
  outline: none;
}

.filter-select-chevron {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  color: var(--color-text-muted);
  pointer-events: none;
}

.shop-sort {
  flex: none;
}

.shop-sort select {
  width: auto;
  padding: 6px 26px 6px 4px;
  border: none;
  background: none;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
}

.shop-sort select:focus {
  color: var(--color-text);
}

.shop-sort .filter-select-chevron {
  right: 2px;
}

.results-count {
  font-size: 0.85rem;
  margin-bottom: 20px;
}

/* ---------- Product detail ---------- */

section.product-detail {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px;
  padding-top: 12px;
  padding-bottom: 64px;
  align-items: start;
}

.product-breadcrumb {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-bottom: 28px;
}

.product-breadcrumb a {
  color: var(--color-text-muted);
}

.product-breadcrumb a:hover {
  color: var(--color-text);
}

.product-breadcrumb span[aria-current] {
  color: var(--color-text);
}

.product-gallery {
  display: flex;
  gap: 16px;
  position: sticky;
  top: 24px;
  /* Without this, flex's default stretch made the thumb column's own
     height (which grows with photo count) dictate the row's height —
     with many photos, that inflated the main image's aspect-ratio box
     along with it, so it visibly grew/moved as thumbnails were added. */
  align-items: flex-start;
}

.product-gallery-main {
  position: relative;
  flex: 1;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: #eee;
  touch-action: pan-y;
}

.product-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.4);
  color: var(--color-dark);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), opacity var(--transition);
  opacity: 0.7;
}

.gallery-nav:hover {
  background: rgba(255, 255, 255, 0.85);
  opacity: 1;
}

.gallery-nav-prev {
  left: 14px;
}

.gallery-nav-next {
  right: 14px;
}

.gallery-zoom-btn {
  position: absolute;
  bottom: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), opacity var(--transition);
  opacity: 0.7;
}

.gallery-zoom-btn:hover {
  background: rgba(255, 255, 255, 0.85);
  opacity: 1;
}

.gallery-zoom-btn svg {
  width: 18px;
  height: 18px;
  stroke: var(--color-dark);
}

/* ---------- Product image lightbox ---------- */

.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(20, 20, 19, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox-overlay[hidden] {
  display: none;
}

.lightbox-overlay .gallery-nav {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  position: fixed;
  top: 50%;
}

.lightbox-overlay .gallery-nav:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-overlay .gallery-nav-prev {
  left: 24px;
}

.lightbox-overlay .gallery-nav-next {
  right: 24px;
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-image-wrap {
  max-width: min(90vw, 800px);
  max-height: 90vh;
  overflow: hidden;
  border-radius: var(--radius);
}

.lightbox-image-wrap.zoomed {
  overflow: auto;
}

.lightbox-img {
  display: block;
  width: 100%;
  max-height: 90vh;
  object-fit: contain;
  cursor: zoom-in;
  transition: width 0.2s ease;
}

.lightbox-image-wrap.zoomed .lightbox-img {
  width: 200%;
  max-width: none;
  max-height: none;
  cursor: zoom-out;
}

@media (max-width: 600px) {
  .lightbox-overlay .gallery-nav-prev { left: 8px; }
  .lightbox-overlay .gallery-nav-next { right: 8px; }
}

.product-thumbs {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: none;
  width: 84px;
  /* max-height is set to match the main image's rendered height by
     product.js (syncThumbsHeight) — with it, a long photo list scrolls
     inside this column instead of growing past the main image. */
  overflow-y: auto;
  scrollbar-width: thin;
}

.product-thumbs img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
  cursor: pointer;
  border: 1px solid var(--color-border);
  opacity: 0.65;
  transition: opacity var(--transition), border-color var(--transition);
}

.product-thumbs img:hover {
  opacity: 0.9;
}

.product-thumbs img.active {
  opacity: 1;
  border-color: var(--color-dark);
}

.product-info h1 {
  font-size: 2.4rem;
  line-height: 1.18;
  margin-bottom: 0.35em;
}

.product-info .product-price {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--color-gold-deep);
  margin-bottom: 24px;
}

.product-description {
  max-width: 46ch;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 10px;
}

.product-sku {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: 28px;
}

.product-reassurance {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  text-align: center;
  margin-top: 14px;
}

.product-accordion {
  margin-top: 36px;
  border-top: 1px solid var(--color-border);
}

.product-accordion-item {
  border-bottom: 1px solid var(--color-border);
}

.product-accordion-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 2px;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
}

.product-accordion-chevron {
  width: 10px;
  height: 10px;
  flex: none;
  border-right: 1.5px solid var(--color-text);
  border-bottom: 1.5px solid var(--color-text);
  transform: rotate(45deg);
  transition: transform var(--transition);
}

.product-accordion-toggle.open .product-accordion-chevron {
  transform: rotate(-135deg);
}

.product-accordion-body {
  padding: 0 2px 18px;
}

.product-accordion-body p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0;
}

.size-chart-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.size-chart-table th,
.size-chart-table td {
  text-align: right;
  padding: 12px 6px;
  font-variant-numeric: tabular-nums;
}

.size-chart-table th {
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--color-text-muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1.5px solid var(--color-dark);
  padding-bottom: 10px;
}

.size-chart-table th span {
  display: block;
  margin-top: 4px;
}

.size-chart-glyph {
  width: 18px;
  height: 18px;
  color: var(--color-text-muted);
}

.size-chart-table th:first-child,
.size-chart-table td:first-child {
  text-align: left;
}

.size-chart-size-cell {
  font-weight: 600;
}

.size-chart-row-alt {
  background: var(--color-bg);
}

.size-chart-table td {
  color: var(--color-text-muted);
}

.size-chart-table td.size-chart-size-cell,
.size-chart-table td.size-chart-value {
  color: var(--color-text);
}

.product-badges {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.product-badges .product-badge {
  position: static;
  border: 1px solid var(--color-border);
  background: none;
  color: var(--color-text);
}

.option-group {
  margin-bottom: 26px;
}

.option-group h2 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.option-group-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}

.option-group-header h2 {
  margin-bottom: 0;
}

.size-guide-link {
  font-size: 0.8rem;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.size-guide-modal {
  position: relative;
  background: var(--color-surface, #fff);
  border-radius: 2px;
  border-top: 3px solid var(--color-dark);
  max-width: 540px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 40px 44px;
}

.size-guide-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  color: var(--color-text-muted);
  width: auto;
  height: auto;
  font-size: 1.5rem;
}

.size-guide-close-btn:hover {
  background: none;
  color: var(--color-text);
}

.size-guide-modal .eyebrow {
  margin-bottom: 0.4em;
}

.size-guide-title {
  font-size: 2rem;
  margin-bottom: 0.5em;
}

.size-guide-tip {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: 40ch;
  margin-bottom: 24px;
}

.size-chart-unit-toggle {
  display: inline-flex;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 3px;
  margin-bottom: 18px;
}

.size-chart-unit {
  padding: 4px 14px;
  border-radius: 999px;
  border: none;
  background: none;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  cursor: pointer;
}

.size-chart-unit.active {
  background: var(--color-dark);
  color: #fff;
}

.size-guide-footnote {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}

.size-guide-footnote a {
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 600px) {
  .size-guide-modal { padding: 32px 22px; }
  .size-guide-title { font-size: 1.6rem; }
}

.option-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.option-pill {
  padding: 10px 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.85rem;
  background: #fff;
  transition: border-color var(--transition-premium), background var(--transition-premium), color var(--transition-premium);
}

.option-pill:hover {
  border-color: var(--color-gold);
}

.option-pill.selected {
  border-color: var(--color-dark);
  background: var(--color-dark);
  color: #fff;
}

.option-pill.selected:hover {
  border-color: var(--color-dark);
}

.qty-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
}

.qty-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.qty-control button {
  width: 36px;
  height: 40px;
  background: none;
  border: none;
  font-size: 1rem;
}

.qty-control span {
  width: 32px;
  text-align: center;
}

.product-description {
  border-top: 1px solid var(--color-border);
  padding-top: 20px;
  margin-top: 20px;
}

.related-products,
.recently-viewed {
  padding-bottom: 64px;
}

/* ---------- Reviews & ratings ---------- */

.reviews-section {
  padding-bottom: 64px;
}

.stars {
  display: inline-flex;
  gap: 3px;
}

.stars svg {
  width: 16px;
  height: 16px;
}

.stars-lg svg {
  width: 22px;
  height: 22px;
}

.stars .star-filled {
  fill: var(--color-accent);
}

.stars .star-empty {
  fill: none;
  stroke: var(--color-border);
  stroke-width: 1.4;
}

.reviews-summary {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: center;
  padding: 32px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  margin-bottom: 40px;
}

.reviews-summary-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  border-right: 1px solid var(--color-border);
  padding-right: 40px;
}

.reviews-avg {
  font-family: var(--font-heading);
  font-size: 3rem;
  line-height: 1;
}

.reviews-count {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.reviews-summary-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.reviews-bar-row {
  display: grid;
  grid-template-columns: 52px 1fr 24px;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.reviews-bar-track {
  height: 8px;
  border-radius: 4px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.reviews-bar-fill {
  display: block;
  height: 100%;
  background: var(--color-accent);
  transition: width var(--transition);
}

.reviews-bar-count {
  text-align: right;
}

.reviews-columns {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 48px;
  align-items: start;
}

.reviews-signin-note {
  padding: 24px;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.reviews-signin-note a {
  color: var(--color-text);
  text-decoration: underline;
}

.review-form {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  padding: 28px;
  position: sticky;
  top: 24px;
}

.review-form h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.review-form-row {
  margin-bottom: 18px;
}

.review-form-row label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.review-form-row input[type="text"],
.review-form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--color-text);
}

.review-form-row textarea {
  resize: vertical;
}

.star-input {
  display: inline-flex;
  gap: 6px;
}

.star-input-btn {
  background: none;
  border: none;
  padding: 2px;
  cursor: pointer;
  line-height: 0;
}

.star-input-btn svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--color-border);
  stroke-width: 1.4;
  transition: fill var(--transition), stroke var(--transition);
}

.star-input-btn.active svg {
  fill: var(--color-accent);
  stroke: var(--color-accent);
}

.fit-input {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fit-input-btn {
  padding: 7px 14px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: none;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.fit-input-btn.active {
  background: var(--color-text);
  border-color: var(--color-text);
  color: var(--color-surface);
}

.reviews-fit-summary {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}

.reviews-fit-heading {
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 10px;
}

.reviews-fit-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.reviews-fit-bars .reviews-bar-row {
  grid-template-columns: 90px 1fr 36px;
}

.review-fit-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.review-image-picker {
  display: flex;
  align-items: center;
  gap: 14px;
}

.review-image-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--color-dark);
  border-radius: var(--radius);
  font-size: 0.85rem;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.review-image-btn:hover {
  background: var(--color-dark);
  color: #fff;
}

.review-image-btn svg {
  width: 18px;
  height: 18px;
}

#review-image-preview {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.review-form-actions {
  margin-top: 22px;
}

.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.review-card {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
}

.review-card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.review-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.review-avatar {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--color-dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1rem;
}

.review-card-meta {
  flex: 1;
}

.review-author {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.review-card-sub {
  display: flex;
  align-items: center;
  gap: 10px;
}

.review-date {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.review-delete-btn {
  background: none;
  border: none;
  font-size: 0.78rem;
  color: var(--color-danger);
  cursor: pointer;
  text-decoration: underline;
  align-self: flex-start;
}

.review-title {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.review-body {
  font-size: 0.92rem;
  color: var(--color-text);
  line-height: 1.6;
  margin-bottom: 12px;
}

.review-photo {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

/* ---------- Cart page ---------- */

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  padding-bottom: 64px;
  align-items: start;
}

.cart-item {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
}

.cart-item img {
  width: 96px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
}

.cart-item-meta h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  margin-bottom: 4px;
}

.cart-item-meta p {
  font-size: 0.85rem;
  margin-bottom: 4px;
}

.cart-item-actions {
  text-align: right;
}

.cart-item-actions .remove-btn {
  background: none;
  border: none;
  font-size: 0.8rem;
  text-decoration: underline;
  color: var(--color-text-muted);
  margin-top: 8px;
}

.cart-empty {
  text-align: center;
  padding: 60px 0;
}

.cart-summary {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
}

.promo-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.promo-row input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.9rem;
}

.promo-row .btn {
  width: auto;
  flex: none;
  padding: 10px 18px;
  font-size: 0.85rem;
  white-space: nowrap;
}

#promo-message {
  margin: 0 0 20px;
  font-size: 0.82rem;
  min-height: 1.2em;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
  margin-bottom: 14px;
  color: var(--color-text-muted);
}

.summary-row[hidden] {
  display: none;
}

.summary-total {
  color: var(--color-text);
  font-weight: 600;
  font-size: 1.05rem;
  border-top: 1px solid var(--color-border);
  padding-top: 14px;
  margin-top: 14px;
}

.continue-shopping {
  display: block;
  margin-top: 16px;
  text-align: center;
}

/* ---------- Status pages (success / cancel) ---------- */

.status-page {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
}

.status-card {
  text-align: center;
  max-width: 480px;
}

.status-icon {
  width: 64px;
  height: 64px;
  line-height: 64px;
  border-radius: 50%;
  background: #eef5ee;
  color: #2f7d3c;
  font-size: 1.6rem;
  margin: 0 auto 20px;
}

.status-icon-muted {
  background: #f5eeee;
  color: var(--color-danger);
}

.not-found-search {
  display: flex;
  gap: 10px;
  margin: 24px 0;
}

.not-found-search input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.9rem;
}

.status-card-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.status-card.order-confirmation {
  max-width: 560px;
  width: 100%;
}

#order-details {
  text-align: left;
  margin-top: 28px;
}

.order-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 16px;
}

.order-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 16px;
}

.order-item-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.92rem;
}

.order-item-name {
  color: var(--color-text);
}

.order-totals {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 20px;
}

.order-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
  color: var(--color-text-muted);
}

.order-total-final {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
  padding-top: 4px;
}

.order-shipping h3 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.order-shipping p {
  font-size: 0.92rem;
  line-height: 1.6;
}

.order-confirmation-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.order-confirmation-actions .btn {
  flex: 1;
}

/* ---------- About page ---------- */

.about-copy .lead {
  font-size: 1.15rem;
  color: var(--color-text);
  max-width: 720px;
  margin-bottom: 40px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* ---------- Contact page ---------- */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  padding-bottom: 64px;
}

.contact-info dl {
  margin-top: 24px;
}

.contact-info dt {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-top: 16px;
}

.contact-info dd {
  margin: 4px 0 0;
  font-size: 0.98rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.contact-form input,
.contact-form textarea {
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  color: var(--color-text);
  resize: vertical;
  transition: border-color var(--transition-premium);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-gold);
}

.contact-form button {
  align-self: flex-start;
}

/* ---------- Legal / info pages (FAQ, shipping, privacy, terms) ---------- */

.legal-copy {
  max-width: 760px;
  padding-top: 24px;
  padding-bottom: 64px;
}

.legal-copy h2 {
  font-size: 1.3rem;
  margin-top: 2em;
}

.legal-copy h2:first-of-type {
  margin-top: 0;
}

.policy-updated {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-bottom: 2em;
}

.policy-list {
  list-style: disc;
  padding-left: 1.4em;
}

.policy-list li {
  margin-bottom: 0.6em;
  color: var(--color-text-muted);
}

.policy-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.92rem;
}

.policy-table th,
.policy-table td {
  text-align: left;
  padding: 12px 16px 12px 0;
  border-bottom: 1px solid var(--color-border);
}

.policy-table th {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  font-weight: 600;
}

.faq-layout {
  max-width: 760px;
  padding-top: 24px;
  padding-bottom: 64px;
}

.faq-group {
  margin-bottom: 40px;
}

.faq-group h2 {
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: 16px 0;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 500;
  list-style: none;
  position: relative;
  padding-right: 28px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.1rem;
  color: var(--color-text-muted);
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-item p {
  margin-top: 12px;
  margin-bottom: 0;
}

/* ---------- Account link (header) ---------- */

.account-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 500;
  white-space: nowrap;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}

.account-link:hover,
.account-link.active {
  border-color: var(--color-dark);
  background: var(--color-dark);
  color: #fff;
}

.account-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* ---------- Auth pages (login, signup, forgot/reset password) ---------- */

.auth-layout {
  display: flex;
  justify-content: center;
  padding-top: 48px;
  padding-bottom: 64px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 44px;
  box-shadow: 0 24px 64px rgba(22, 20, 15, 0.06);
}

.auth-card h1 {
  font-size: 1.7rem;
  margin-bottom: 0.3em;
  text-align: center;
}

.auth-subtitle {
  text-align: center;
  margin-bottom: 28px;
}

.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  color: var(--color-text-muted);
  font-size: 0.82rem;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.auth-form input {
  padding: 13px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  color: var(--color-text);
  transition: border-color var(--transition-premium);
}

.auth-form input:focus {
  outline: none;
  border-color: var(--color-gold);
}

.auth-form input:disabled {
  background: var(--color-bg);
  color: var(--color-text-muted);
}

.auth-forgot-link {
  align-self: flex-end;
  margin-top: -8px;
  font-size: 0.82rem;
}

.auth-switch {
  text-align: center;
  margin: 24px 0 0;
  font-size: 0.9rem;
}

.auth-required .status-card {
  text-align: center;
}

.auth-required .status-card .btn {
  margin-top: 8px;
}

/* ---------- Account page ---------- */

section.account-layout {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding-top: 24px;
  padding-bottom: 0;
}

.account-layout[hidden] {
  display: none;
}

.account-section .auth-form {
  margin-top: 20px;
  max-width: 480px;
}

.account-section .auth-form button {
  align-self: flex-start;
}

.section-toggle {
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  margin-bottom: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-align: left;
}

.section-toggle-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.15s ease, stroke var(--transition-premium);
}

.section-toggle.open .section-toggle-chevron {
  transform: rotate(180deg);
}

.section-toggle h2 {
  transition: color var(--transition-premium);
}

.section-toggle:hover h2 {
  color: var(--color-gold-deep);
}

.section-toggle:hover .section-toggle-chevron {
  stroke: var(--color-gold-deep);
}

.account-section-body[hidden] {
  display: none;
}

.account-section-body-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.account-subsection {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

.account-subsection h3 {
  margin-bottom: 4px;
}

.saved-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.saved-item-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
  white-space: nowrap;
}

.card-element-mount {
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  background: #fff;
}

section.account-orders {
  display: flex;
  flex-direction: column;
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 48px;
}

section.account-favorites-section {
  padding-top: 0;
  padding-bottom: 64px;
  margin-top: 48px;
}

.order-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 14px;
}

.order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 6px;
}

.order-thumbs {
  display: flex;
  gap: 6px;
}

.order-item-thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--color-border);
}

.order-item-thumb-placeholder {
  background: var(--color-bg);
}

.order-card-header-text {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-weight: 500;
  gap: 2px;
  flex-shrink: 0;
}

.order-card-footer {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.order-details {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--color-border);
  font-size: 0.88rem;
}

.order-details p {
  margin: 0 0 10px;
}

.order-detail-items {
  margin-top: 10px;
}

.order-detail-item-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
}

.order-return-note {
  margin-top: 12px;
  padding: 12px 16px;
  background: var(--color-bg);
  border-radius: var(--radius);
  font-size: 0.85rem;
}

.order-refund-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
}

.order-refund-requested {
  background: #fef3e2;
  color: #935e12;
}

.order-refund-item_received {
  background: #e7f0fb;
  color: #1f5ea8;
}

.order-refund-refunded {
  background: #eaf5ea;
  color: #2f7d3c;
}

.order-refund-denied {
  background: #f5eeee;
  color: var(--color-danger);
}

.order-refund-form {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
}

.order-refund-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.88rem;
  resize: vertical;
  margin-bottom: 10px;
}

.order-refund-form-actions {
  display: flex;
  gap: 10px;
}

.order-refund-form-label {
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.order-refund-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.order-refund-item-choice {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  cursor: pointer;
}

.order-refund-item-choice input {
  flex-shrink: 0;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.82rem;
}

/* ---------- Admin dashboard ---------- */

.admin-body {
  background: var(--color-bg);
}

.admin-body #admin-loading,
.admin-body #admin-denied {
  padding-top: 80px;
}

.admin-shell {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--color-dark);
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 28px 20px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.admin-sidebar-brand {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 36px;
  padding: 0 10px;
}

.admin-sidebar-brand span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 2px;
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
  transition: background var(--transition), color var(--transition);
}

.admin-nav-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

.admin-nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.admin-nav-link.active {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.admin-sidebar-footer {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 16px;
}

.admin-view-store {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  width: 100%;
}

.admin-view-store svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.admin-view-store:hover {
  color: #fff;
}

.admin-main {
  flex: 1;
  min-width: 0;
  padding: 32px 40px 64px;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.admin-topbar h1 {
  font-family: var(--font-heading);
  font-size: 1.7rem;
}

.admin-topbar-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.admin-whoami {
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.admin-stat-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 22px 24px;
}

.admin-stat-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  margin-bottom: 10px;
}

.admin-stat-value {
  font-family: var(--font-heading);
  font-size: 2rem;
}

.admin-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
}

.admin-panel-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
}

.admin-panel-header h2 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.admin-panel .admin-table-wrap {
  border: none;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}

.admin-table th {
  color: var(--color-text-muted);
  font-weight: 500;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-row-actions {
  display: flex;
  gap: 14px;
}

.admin-session-id {
  font-family: monospace;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.admin-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 26, 0.5);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 20px;
  overflow-y: auto;
  z-index: 200;
}

.admin-modal {
  background: var(--color-surface);
  border-radius: var(--radius);
  width: 100%;
  max-width: 640px;
  padding: 28px;
}

.admin-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.admin-modal-header h2 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
}

.admin-modal-close {
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: var(--color-text-muted);
}

.admin-product-form .admin-form-actions {
  margin-top: 8px;
}

.admin-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.admin-tracking-row {
  margin-bottom: 14px;
}

.admin-form-row-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 4px;
}

.admin-form-row-header label {
  font-size: 0.85rem;
  font-weight: 500;
}

.admin-field-hint {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin: 0 0 12px;
  line-height: 1.5;
}

.admin-size-chart-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
  font-size: 0.85rem;
}

.admin-size-chart-table th {
  text-align: left;
  font-weight: 500;
  padding: 6px 8px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-muted);
}

.admin-size-chart-table td {
  padding: 4px 8px 4px 0;
  border-bottom: 1px solid var(--color-border);
}

.admin-size-chart-size {
  font-weight: 500;
  white-space: nowrap;
}

.admin-size-chart-input {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.85rem;
}

.admin-color-group {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 12px;
}

.admin-color-group-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.admin-reorder-btns {
  display: flex;
  gap: 2px;
  flex: none;
}

.admin-reorder-btn {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--color-text);
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1;
}

.admin-reorder-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.admin-color-name-input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.88rem;
}

.admin-color-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-color-thumb {
  position: relative;
  width: 72px;
  height: 90px;
}

.admin-color-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.admin-remove-photo-btn {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-dark);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-thumb-reorder {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 2px;
}

.admin-thumb-move-btn {
  width: 20px;
  height: 18px;
  border-radius: var(--radius);
  background: var(--color-dark);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-thumb-move-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.admin-upload-tile {
  width: 72px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.72rem;
  color: var(--color-text-muted);
  text-align: center;
  padding: 4px;
}

.admin-upload-tile:hover {
  border-color: var(--color-dark);
  color: var(--color-text);
}

.admin-color-upload-message {
  margin: 8px 0 0;
  font-size: 0.8rem;
}

.admin-form-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.admin-search-row {
  margin-bottom: 16px;
}

.admin-search-input {
  width: 100%;
  max-width: 360px;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.9rem;
}

.admin-thumb {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: var(--radius);
  background: #eee;
  display: block;
}

.admin-table-clickable tbody tr {
  cursor: pointer;
}

.admin-table-clickable tbody tr:hover {
  background: var(--color-bg);
}

.admin-status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
}

.admin-status-paid {
  background: #eef2f5;
  color: #4a5a68;
}

.admin-status-in_transit {
  background: #fef3e2;
  color: #935e12;
}

.admin-status-delivered {
  background: #eaf5ea;
  color: #2f7d3c;
}

.admin-refund-none {
  background: var(--color-bg);
  color: var(--color-text-muted);
}

.admin-refund-requested {
  background: #fef3e2;
  color: #935e12;
}

.admin-refund-item_received {
  background: #e7f0fb;
  color: #1f5ea8;
}

.admin-refund-refunded {
  background: #eaf5ea;
  color: #2f7d3c;
}

.admin-refund-denied {
  background: #f5eeee;
  color: var(--color-danger);
}

.admin-refund-reason {
  font-size: 0.9rem;
  margin-bottom: 16px;
  padding: 12px 16px;
  background: var(--color-bg);
  border-radius: var(--radius);
}

.admin-refund-manual-note {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 14px;
  line-height: 1.5;
}

.admin-refund-manual-note a {
  color: var(--color-text);
  text-decoration: underline;
}

.admin-modal-wide {
  max-width: 760px;
}

.admin-order-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.admin-order-detail-grid h3,
#order-modal-body > h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  margin-bottom: 10px;
}

.admin-order-detail-grid p {
  font-size: 0.9rem;
  margin-bottom: 10px;
  line-height: 1.5;
}

.admin-order-items {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 4px 16px;
  margin-bottom: 24px;
}

.admin-order-item-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9rem;
}

.admin-order-item-row:last-child {
  border-bottom: none;
}

.admin-order-current-status {
  margin-bottom: 16px;
}

.admin-order-status-actions {
  display: flex;
  gap: 12px;
}

/* ==========================================================================
   Media queries
   ========================================================================== */

/* ---- 1280px and up: roomier grid ---- */
@media (min-width: 1280px) {
  .product-grid { gap: 28px 24px; }
}

/* ---- Below 1024px: tablets / small desktop ---- */
@media (max-width: 1024px) {
  .product-grid,
  .lookbook-grid { grid-template-columns: repeat(3, 1fr); }

  /* The asymmetric desktop placement (tile 1 tall on the left, tiles 2-3
     square beside it, tile 4 a wide banner underneath) doesn't have room to
     breathe at 2 columns — reset to a plain 2-up grid of uniform tiles. */
  .category-tiles { grid-template-columns: repeat(2, 1fr); }
  .category-tiles .tile:nth-child(1),
  .category-tiles .tile:nth-child(2),
  .category-tiles .tile:nth-child(3),
  .category-tiles .tile:nth-child(4) {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 3 / 4;
  }

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

  .cart-layout { grid-template-columns: 1fr 300px; gap: 32px; }
}

/* ---- Below 768px: tablets / large phones ---- */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .main-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-bg);
    flex-direction: column;
    gap: 0;
    padding: 28px 24px;
    transform: translateX(-100%);
    transition: transform var(--transition-premium);
    overflow-y: auto;
  }

  .main-nav.open {
    transform: translateX(0);
  }

  /* A plain list of links reads like a stripped-down utility menu — the
     large serif type and generous spacing match the rest of the site's
     editorial voice instead of switching to a denser "app nav" register
     just because it's a full-screen overlay. */
  .main-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    border-bottom: 1px solid var(--color-border);
    width: 100%;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    letter-spacing: 0.01em;
    color: var(--color-dark);
    transition: color var(--transition-premium), padding-left var(--transition-premium);
  }

  .main-nav a::after {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 1px solid var(--color-gold);
    border-bottom: 1px solid var(--color-gold);
    transform: rotate(-45deg);
    flex: none;
    opacity: 0.7;
  }

  .main-nav a:active,
  .main-nav a:hover {
    color: var(--color-gold-deep);
    padding-left: 6px;
  }

  .logo { font-size: 1.3rem; }

  /* The desktop hero centers its content vertically in a wide, short
     frame — on a tall narrow phone that leaves acres of empty image
     above short lines of text. Anchoring the copy to the bottom and
     steepening the scrim into a straight-up gradient (instead of the
     desktop's diagonal one, built for a landscape frame) reads like an
     editorial cover image instead of a shrunk desktop banner. */
  .hero-full {
    height: 92vh;
    min-height: 560px;
    max-height: none;
  }

  .hero-full::before {
    background: linear-gradient(to top, rgba(10,8,6,0.82) 0%, rgba(10,8,6,0.42) 38%, rgba(10,8,6,0.06) 70%);
  }

  .hero-full .hero-content {
    justify-content: flex-end;
    align-items: flex-start;
    max-width: none;
    padding: 0 20px 56px;
  }

  .hero-full .hero-content h1 {
    font-size: clamp(2.3rem, 10vw, 3.1rem);
  }

  .hero-full .hero-copy {
    font-size: 0.94rem;
    max-width: none;
  }

  .hero-full .btn { width: 100%; text-align: center; }

  /* Centered + wrapping reads fine on a wide desktop line but breaks the
     three trust messages onto two centered, ragged lines on a phone —
     a single swipeable row keeps it to one clean line and matches the
     swipe pattern now used for tiles and best sellers below it. */
  .trust-strip-inner {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .trust-strip-inner::-webkit-scrollbar { display: none; }
  .trust-strip-inner span { flex: none; }

  /* A swipeable horizontal carousel on mobile instead of a plain stacked
     grid — a real, felt structural difference on small screens rather
     than just the desktop grid falling back to one column. Scroll-snap
     gives it the same "settle into place" feel as a native app carousel. */
  .category-tiles {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 14px;
    padding-left: 20px;
    padding-right: 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .category-tiles::-webkit-scrollbar { display: none; }
  .category-tiles .tile:nth-child(1),
  .category-tiles .tile:nth-child(2),
  .category-tiles .tile:nth-child(3),
  .category-tiles .tile:nth-child(4) {
    flex: none;
    width: 74vw;
    max-width: 320px;
    aspect-ratio: 3 / 4;
    scroll-snap-align: start;
  }

  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 14px; }

  /* The shop page's .product-grid needs to stay a plain wrapping grid —
     it's the full, filterable catalog, and forcing a swipe there would
     hide products instead of just presenting them differently. But the
     homepage's curated rows (Best Sellers, Recently Viewed) are a fixed
     handful of picks, the same kind of content as the category tiles
     above — so they get the same swipe-carousel treatment instead of
     falling back to a static 2-up grid. */
  .featured .product-grid,
  .recently-viewed .product-grid {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 14px;
    margin: 0 -20px;
    padding: 2px 20px 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .featured .product-grid::-webkit-scrollbar,
  .recently-viewed .product-grid::-webkit-scrollbar { display: none; }
  .featured .product-grid .product-card,
  .recently-viewed .product-grid .product-card {
    flex: none;
    width: 56vw;
    max-width: 240px;
    scroll-snap-align: start;
  }

  .brand-story { grid-template-columns: 1fr; gap: 28px; }

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

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; padding-bottom: 32px; }
  .site-footer { padding-top: 40px; }
  .footer-bottom { padding: 16px 0; }

  section.product-detail { grid-template-columns: 1fr; gap: 28px; }

  /* align-items switches from flex-start (desktop cross-axis = height,
     keeps a tall thumb column from stretching the main image) back to
     stretch here, since column-reverse makes the cross-axis horizontal —
     flex-start there would shrink the main image to content width
     instead of filling the row. */
  .product-gallery { flex-direction: column-reverse; position: static; align-items: stretch; }

  .product-thumbs { flex-direction: row; width: auto; max-height: none; overflow-x: auto; overflow-y: hidden; }

  .product-thumbs img { width: 64px; flex: none; }

  .about-grid { grid-template-columns: 1fr; }

  .cart-layout { grid-template-columns: 1fr; }

  .cart-item { grid-template-columns: 72px 1fr; }
  .cart-item-actions { grid-column: 1 / -1; text-align: left; }

  .contact-layout { grid-template-columns: 1fr; gap: 32px; }

  .admin-form-row { grid-template-columns: 1fr; }

  .admin-shell { flex-direction: column; }

  .admin-sidebar {
    width: 100%;
    height: auto;
    position: static;
    flex-direction: row;
    align-items: center;
    padding: 16px 20px;
    gap: 16px;
    overflow-x: auto;
  }

  .admin-sidebar-brand { margin-bottom: 0; flex-shrink: 0; }

  .admin-nav { flex-direction: row; flex-shrink: 0; gap: 4px; }

  .admin-nav-link { white-space: nowrap; }

  .admin-sidebar-footer { flex-direction: row; border-top: none; padding-top: 0; flex-shrink: 0; }

  .admin-view-store { white-space: nowrap; }

  .admin-main { padding: 24px 20px 48px; }

  .admin-stats { grid-template-columns: 1fr; }

  .admin-topbar { flex-wrap: wrap; gap: 12px; }

  .admin-order-detail-grid { grid-template-columns: 1fr; gap: 8px; }

  .auth-card { padding: 32px 24px; }

  .newsletter-form { flex-direction: column; }

  .reviews-summary { grid-template-columns: 1fr; gap: 20px; padding: 24px; }

  .reviews-summary-score { border-right: none; padding-right: 0; padding-bottom: 20px; border-bottom: 1px solid var(--color-border); }

  .reviews-columns { grid-template-columns: 1fr; gap: 32px; }

  .review-form { position: static; }
}

/* ---- Below 480px: small phones ---- */
@media (max-width: 480px) {
  .container { padding: 0 16px; }

  .hero-content { padding: 0 20px; }
  .hero-content h1 { font-size: 2.05rem; }

  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 16px 10px; }

  .lookbook-grid { grid-template-columns: 1fr 1fr; gap: 10px; }

  /* Stays 2-column (inherited from the 768px query below) rather than
     dropping to a single full-width stack — four sections stacked full-
     height each made the footer disproportionately tall on phones. */
  .footer-grid { gap: 28px 16px; }
  .footer-links h3 { margin-bottom: 10px; }
  .footer-links a { margin-bottom: 8px; }

  .section-heading { flex-direction: column; align-items: flex-start; gap: 6px; }

  .cart-item img { width: 72px; }

  .btn { padding: 12px 20px; width: 100%; }

  .order-confirmation-actions { flex-direction: column; }

  .checkout-message-inline { text-align: center; }

  /* The header row (logo + Cart + search + phone + account pill) was
     wider than a small phone screen, which silently shrank the hamburger
     toggle to 0 width via flexbox and clipped the account pill off the
     right edge. Dropping the account link's text (icon stays) and
     tightening gaps brings the row back under the viewport width. */
  .header-inner { gap: 12px; }

  .header-actions { gap: 8px; }

  .account-link { padding: 7px; gap: 0; }

  #account-link-text { display: none; }

  .cart-link { font-size: 0.85rem; }
}
