/* BraveWear marketplace theme — v2, built from the UI spec
   (exports/bravewear-design/bravewear-complete-ui-spec-for-claude.txt).
   Loaded after css/styles.css on every page; restyles the chrome without
   touching cart/checkout behaviour. Ivory page, white surfaces, red CTAs,
   editorial serif headings. Profession colours live on cards/badges only
   (inline --accent set by app.js), never on the global chrome.
   NOTE: customize-loader writes --primary/--accent/--text-primary inline on
   :root from the admin Customize bundle — keep the bundle on this palette. */
:root {
  /* spec tokens */
  --bw-bg: #F7F2EA;
  --bw-bg-soft: #FBF7EF;
  --bw-surface: #FFFFFF;
  --bw-surface-warm: #FFFDF8;
  --bw-text: #171B22;
  --bw-muted: #64625D;
  --bw-border: #E6DED2;
  --bw-border-strong: #D7CBBB;
  --bw-navy: #16233B;
  --bw-red: #B33A3A;
  --bw-red-dark: #982D32;
  --bw-green: #315846;
  --bw-brass: #B98A3A;
  --bw-gold: #D39B2F;
  --bw-radius-xs: 4px;
  --bw-radius-sm: 6px;
  --bw-radius-md: 8px;
  --bw-radius-lg: 12px;
  --bw-shadow-sm: 0 1px 2px rgba(23, 27, 34, 0.08);
  --bw-shadow-md: 0 8px 24px rgba(23, 27, 34, 0.12);
  --bw-container: 1504px;
  --bw-gutter: 56px;
  --bw-font-head: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --bw-font-body: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* map onto the base stylesheet's variables */
  --primary: var(--bw-red);
  --primary-dark: var(--bw-red-dark);
  --primary-light: #F3DEDC;
  --secondary: var(--bw-brass);
  --secondary-dark: #8F6A2A;
  --accent: var(--bw-navy);
  --text-primary: var(--bw-text);
  --text-secondary: var(--bw-muted);
  --text-light: #8E8B84;
  --bg-white: var(--bw-surface);
  --bg-light: var(--bw-bg);
  --bg-gray: var(--bw-bg-soft);
  --border: var(--bw-border);
  --shadow-sm: var(--bw-shadow-sm);
  --shadow-md: var(--bw-shadow-md);
  --shadow-lg: 0 22px 52px rgba(23, 27, 34, 0.16);
  --radius-sm: var(--bw-radius-sm);
  --radius-md: var(--bw-radius-md);
  --radius-lg: var(--bw-radius-lg);
  --max-width: var(--bw-container);
}

body {
  background: var(--bw-bg);
  color: var(--bw-text);
  font-family: var(--bw-font-body);
  letter-spacing: 0;
}

.container { padding: 0 var(--bw-gutter); }

/* ---------- Typography: editorial serif headings ---------- */
h1, h2, h3, h4,
.section-title h2, .products-header h2, .page-header h1, .collection-hero h1,
.newsletter h2, .hero h1, .logo-brand, .product-title, .main-nav li a {
  font-family: var(--bw-font-head);
  letter-spacing: 0;
  text-transform: none;
}
.section-title h2, .products-header h2 { font-size: clamp(1.9rem, 2.4vw, 2.375rem); line-height: 1.05; font-weight: 700; }
.page-header h1, .collection-hero h1 { font-size: clamp(2.2rem, 4vw, 3.6rem); line-height: 1.0; font-weight: 700; }
.section-title .underline { background: var(--bw-brass); }
.section-title p { color: var(--bw-muted); font-size: 1.05rem; }

/* ---------- Announcement bar (slim navy) ---------- */
.top-bar { background: var(--bw-navy); color: #F7F2EA; font-size: 0.78rem; padding: 6px 0; }
.top-bar a { color: var(--bw-gold); }
.top-bar a:hover { color: #fff; }

/* ---------- Header: one 76px row = logo · nav · search · icons ----------
   app.js bwLayoutHeader() moves <nav class="main-nav"> inside .header .container
   right after the logo, so the whole thing is one flex row on desktop. */
.header {
  background: var(--bw-bg-soft);
  border-bottom: 1px solid var(--bw-border);
  box-shadow: none;
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 28px;
  min-height: 76px;
  padding-top: 0;
  padding-bottom: 0;
}
.header .logo { gap: 10px; color: var(--bw-text); font-family: var(--bw-font-head); font-weight: 700; font-size: 1.6rem; flex: 0 0 auto; }
.header .logo img { height: 52px !important; width: auto; display: block; }
.header .logo svg { width: 36px; height: 36px; }
.logo .logo-brand span, .footer-about .logo .highlight { color: var(--bw-red); }

.header .main-nav { flex: 1 1 auto; background: transparent; border: 0; order: 0; min-width: 0; }
.header .main-nav .container { padding: 0; max-width: none; }
.header .main-nav ul { justify-content: flex-start; gap: 30px; flex-wrap: nowrap; }
.header .main-nav li a {
  padding: 10px 0;
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--bw-text);
  white-space: nowrap;
}
.header .main-nav li a:hover, .header .main-nav li a.active { color: var(--bw-red); }
.header .main-nav li a::after { height: 2px; background: var(--bw-red); border-radius: 0; bottom: 2px; }
.header .main-nav li a[href$="/sale"], .header .main-nav li a[href$="collections/sale"] { color: var(--bw-red); }
.header .main-nav .nav-caret { font-size: 0.75em; opacity: 0.7; }

/* dropdown / mega panel: white card, dark text */
.main-nav .dropdown {
  background: var(--bw-surface);
  border: 1px solid var(--bw-border);
  border-top: 2px solid var(--bw-red);
  border-radius: 0 0 var(--bw-radius-md) var(--bw-radius-md);
  box-shadow: var(--bw-shadow-md);
}
.main-nav .dropdown li a, .main-nav .dropdown.mega a { color: var(--bw-muted); font-family: var(--bw-font-body); font-size: 0.95rem; font-weight: 500; padding: 8px 20px; }
.main-nav .dropdown li a:hover, .main-nav .dropdown.mega a:hover { color: var(--bw-red); }
.main-nav .dropdown.mega { max-width: min(1200px, 92vw); padding: 18px 14px 10px; }
.main-nav .dropdown.mega .mega-group { font-family: var(--bw-font-head); color: var(--bw-text); font-size: 1rem; letter-spacing: 0; text-transform: none; }
.main-nav .dropdown.mega .mega-all a { color: var(--bw-red); font-weight: 600; }

.header .search-bar { flex: 0 1 440px; max-width: 440px; margin-left: auto; }
.header .search-bar input {
  height: 44px;
  padding: 0 44px 0 16px;
  border-radius: var(--bw-radius-md);
  background: var(--bw-surface);
  border: 1px solid var(--bw-border-strong);
  font-size: 0.9rem;
  color: var(--bw-text);
}
.header .search-bar input::placeholder { color: #8E8B84; }
.header .search-bar input:focus { border-color: var(--bw-navy); box-shadow: 0 0 0 3px rgba(22, 35, 59, 0.08); }
.header .search-bar button { background: transparent; color: var(--bw-text); width: 40px; height: 40px; right: 2px; border-radius: var(--bw-radius-sm); }
.header .search-bar button:hover { background: var(--bw-bg); }
.header .search-bar button svg { width: 20px; height: 20px; }

.header .nav-actions { gap: 4px; flex: 0 0 auto; }
.header .nav-actions > a {
  font-size: 0;            /* icon-only buttons */
  width: 40px; height: 40px;
  justify-content: center;
  border-radius: var(--bw-radius-sm);
  color: var(--bw-text);
}
.header .nav-actions > a:hover { background: var(--bw-bg); color: var(--bw-red); }
.header .nav-actions > a svg { width: 24px; height: 24px; }
.header .cart-count, .header .wishlist-count {
  position: absolute; top: 2px; right: 2px;
  min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 9px; background: var(--bw-red); color: #fff;
  font-size: 11px; line-height: 18px; font-weight: 700; text-align: center;
  display: inline-flex; align-items: center; justify-content: center;
}
.menu-toggle { color: var(--bw-text); }

/* ---------- Buttons / chips / forms ---------- */
.btn { border-radius: var(--bw-radius-sm); font-weight: 700; font-family: var(--bw-font-body); }
.btn-primary { background: var(--bw-red); color: #fff; }
.btn-primary:hover { background: var(--bw-red-dark); box-shadow: 0 8px 20px rgba(179, 58, 58, 0.28); }
.btn-secondary { background: var(--bw-surface-warm); border: 1px solid var(--bw-border-strong); color: var(--bw-text); }
.btn-secondary:hover { background: #fff; border-color: #9A9388; color: var(--bw-text); }
.hero-buttons .btn, .btn-lg { min-height: 54px; padding: 0 28px; display: inline-flex; align-items: center; gap: 10px; font-size: 1.0625rem; }

.bw-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.bw-chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: 999px;
  background: var(--bw-surface-warm); border: 1px solid var(--bw-border-strong);
  color: var(--bw-text); font-weight: 600; font-size: 0.9rem; white-space: nowrap; cursor: pointer;
}
.bw-chip:hover { border-color: var(--bw-navy); }
.bw-chip.active { background: var(--bw-red); border-color: var(--bw-red); color: #fff; }

input[type="text"], input[type="email"], input[type="number"], input[type="search"], select, textarea {
  border-radius: var(--bw-radius-sm);
  border-color: var(--bw-border-strong);
  background: var(--bw-surface);
}

/* ---------- Hero (homepage) — ivory split, serif headline ---------- */
.hero {
  min-height: 520px;
  display: flex; align-items: center;
  padding: 56px 0 48px;
  background: var(--bw-bg-soft);
  position: relative; overflow: hidden; isolation: isolate;
}
.hero::before, .hero::after { content: none; }
.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 36%) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 4vw, 64px);
  width: 100%; position: relative; z-index: 1;
}
.hero-content { max-width: 560px; color: var(--bw-text); }
.hero-badge {
  background: transparent; border: 0; padding: 0; border-radius: 0;
  color: var(--bw-muted); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
}
.hero-badge::before { content: none; }
.hero h1 {
  max-width: 560px; color: var(--bw-text);
  font-size: clamp(2.6rem, 5.5vw, 5.5rem); line-height: 0.95; font-weight: 700; letter-spacing: 0; text-shadow: none;
}
.hero h1 .highlight { color: var(--bw-text); }
.hero h1 .highlight::after { display: none; }
.hero p { color: var(--bw-text); font-family: var(--bw-font-head); font-size: clamp(1.05rem, 1.4vw, 1.375rem); line-height: 1.4; max-width: 520px; }
.hero-buttons { gap: 16px; }
.hero-image { display: flex; justify-content: center; align-items: center; min-width: 0; position: relative; animation: none; }
.hero-image::before { content: none; }
.hero-image img {
  width: 100%; max-height: 520px; object-fit: cover; object-position: center;
  border-radius: var(--bw-radius-md); position: relative; z-index: 1; filter: none; animation: none;
}
.hero-trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 560px; }
.hero-trust-item { min-width: 0; }
.hero-trust-item strong { display: block; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bw-text); white-space: normal; }
.hero-trust-item span { color: var(--bw-muted); font-size: 0.75rem; }
.hero-trust-stars { color: var(--bw-gold); }

/* ---------- Sections ---------- */
.features-strip, .featured-collections, .products-section, .categories, .newsletter, .footer { background: var(--bw-bg); }
.feature-item { background: var(--bw-surface); border: 1px solid var(--bw-border); border-radius: var(--bw-radius-md); }
.feature-icon { background: var(--bw-bg-soft); color: var(--bw-red); }
.feature-icon svg { stroke: var(--bw-red); }
.feature-item:hover .feature-icon { background: var(--bw-red); color: #fff; }
.feature-item:hover .feature-icon svg { stroke: #fff; }
.section-title .section-link { color: var(--bw-red); font-family: var(--bw-font-head); font-weight: 600; }

.category-card, .collection-card, .product-card, .filter-group, .cart-summary, .checkout-form, .cart-table, .main-image, .product-type-section { border-radius: var(--bw-radius-sm); }
.category-card:hover, .product-card:hover { box-shadow: var(--bw-shadow-md); }
.category-card:hover .cat-img::after { background: linear-gradient(to top, rgba(23, 27, 34, 0.86), rgba(23, 27, 34, 0.24), transparent); }
.collection-card { background: var(--bw-navy); }
.collection-card .coll-overlay { background: linear-gradient(to bottom, rgba(22, 35, 59, 0.1) 32%, rgba(22, 35, 59, 0.9)); }

/* product cards: white, quiet, dense */
.product-card { background: var(--bw-surface); border: 1px solid var(--bw-border); }
.product-image { background: var(--bw-surface-warm); }
.product-info { padding: 12px; }
.product-name, .product-name a { font-family: var(--bw-font-body); font-size: 0.95rem; font-weight: 500; line-height: 1.3; }
.product-category { color: var(--bw-muted); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; }
.price-current { color: var(--bw-text); font-weight: 700; font-size: 1.05rem; }
.product-badge { border-radius: var(--bw-radius-xs); background: var(--bw-navy); color: #fff; box-shadow: none; font-size: 0.7rem; letter-spacing: 0.04em; }
.badge-new { background: var(--bw-green); color: #fff; }
.badge-sale { background: var(--bw-red); color: #fff; }
.badge-hot { background: var(--bw-brass); color: #fff; }
.badge-hot::before { content: ""; }
.product-actions .btn-primary { background: var(--bw-red); }

/* page headers / profession hero keep accent tint from styles.css */
.page-header, .collection-hero { background: var(--bw-bg-soft); }
.breadcrumb { color: var(--bw-muted); font-family: var(--bw-font-head); }
.breadcrumb a:hover { color: var(--bw-red); }
.sidebar { top: 92px; }
.filter-group, .sort-bar { background: var(--bw-surface); border: 1px solid var(--bw-border); }
.filter-group h3 { font-family: var(--bw-font-body); font-size: 0.95rem; font-weight: 700; }
.main-image { background: var(--bw-surface-warm); border: 1px solid var(--bw-border); }
.detail-description-wrap { border-left: 3px solid var(--bw-brass); padding-left: 18px; }

/* ---------- Newsletter / footer ---------- */
.newsletter { background: var(--bw-navy); color: #fff; }
.newsletter p { color: rgba(255, 255, 255, 0.74); }
.newsletter-form input { background: #fff; border-radius: var(--bw-radius-sm); }
.newsletter-form button { background: var(--bw-red); color: #fff; border-radius: var(--bw-radius-sm); }
.newsletter-form button:hover { background: var(--bw-red-dark); }
.footer { background: var(--bw-bg-soft); color: var(--bw-text); border-top: 1px solid var(--bw-border); }
.footer h4 { color: var(--bw-text); font-family: var(--bw-font-head); }
.footer ul li a, .footer-about p, .footer-bottom { color: var(--bw-muted); }
.footer ul li a:hover { color: var(--bw-red); }
.footer .logo { font-family: var(--bw-font-head); color: var(--bw-text); }
.footer-bottom { border-top: 1px solid var(--bw-border); }
.empty-cart p { color: var(--bw-muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1439px) { :root { --bw-gutter: 40px; } }
@media (max-width: 1023px) {
  :root { --bw-gutter: 32px; }
  /* tablet: nav collapses into the hamburger, search stays */
  .header .container { flex-wrap: wrap; gap: 16px; }
  .header .main-nav { order: 10; flex: 1 1 100%; border-top: 1px solid var(--bw-border); }
  .header .main-nav ul { display: none; flex-direction: column; gap: 0; padding: 4px 0 8px; }
  .header .main-nav ul.open { display: flex; }
  .header .main-nav li a { padding: 12px 4px; border-bottom: 1px solid var(--bw-border); }
  .header .main-nav .dropdown { display: none; position: static; box-shadow: none; border: 0; border-radius: 0; padding: 0; min-width: 0; }
  .header .main-nav li.has-dropdown:hover > .dropdown { display: none; }
  .header .main-nav li.has-dropdown.open > .dropdown { display: flex; flex-direction: column; }
  .header .main-nav .dropdown.mega { flex-direction: column; max-width: none; }
  .header .search-bar { flex: 1 1 200px; max-width: none; margin-left: 0; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: transparent; border: 0; font-size: 1.5rem; cursor: pointer; }
  .hero .container { grid-template-columns: 1fr; }
  .hero-image img { max-height: 360px; }
}
@media (max-width: 768px) {
  :root { --bw-gutter: 16px; }
  .container { padding: 0 16px; }
  .header .container { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; min-height: 60px; padding: 8px 16px; }
  .header .logo img { height: 40px !important; }
  .header .main-nav { grid-column: 1 / -1; order: 10; }
  .header .main-nav ul { background: var(--bw-surface); }
  .hero { min-height: 0; padding: 36px 0 32px; }
  .hero .container { display: block; }
  .hero h1 { font-size: 2.75rem; }
  .hero p { font-size: 1rem; }
  .hero-image { margin-top: 24px; }
  .hero-buttons .btn { width: 100%; justify-content: center; }
  .hero-trust { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
}

/* ---------- Step 3: collection listing (UI spec §11) ---------- */
.page-header .container { position: relative; }
.page-header__sub { font-family: var(--bw-font-head); color: var(--bw-muted); font-size: 1.15rem; margin: 8px 0 0; max-width: 680px; }
.page-header__stat { position: absolute; right: var(--bw-gutter); top: 50%; transform: translateY(-50%); display: inline-flex; align-items: center; gap: 8px; font-family: var(--bw-font-head); font-size: 1.1rem; color: var(--bw-text); padding-left: 18px; border-left: 1px solid var(--bw-border-strong); }
.page-header .bw-chips { margin-top: 18px; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; scrollbar-width: none; }
.page-header .bw-chips::-webkit-scrollbar { display: none; }
.bw-chip .prof-icon { opacity: 0.85; }
.filter-group label { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; padding: 4px 0; cursor: pointer; }
.filter-group label small { color: var(--bw-muted); margin-left: auto; font-size: 0.75rem; }

/* product card: profession badge, rating, visible Quick Add */
.product-card { border-radius: var(--bw-radius-sm); }
.product-card:hover { transform: none; border-color: var(--bw-border-strong); }
.product-image { height: auto; aspect-ratio: 4 / 3; }
.product-image img { object-fit: contain; }
.product-prof {
  position: absolute; left: 10px; bottom: 10px; z-index: 3;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: var(--bw-radius-xs);
  background: rgba(23, 27, 34, 0.86); color: #fff; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.02em;
  border-left: 3px solid var(--accent, var(--bw-brass));
}
.product-badge { top: 10px; left: 10px; padding: 5px 10px; }
.product-actions { display: none; } /* hover tray replaced by always-visible Quick Add */
.card-rating { display: block; color: var(--bw-gold); font-size: 0.78rem; letter-spacing: 1px; margin: 2px 0 6px; }
.card-rating small { color: var(--bw-muted); letter-spacing: 0; margin-left: 6px; font-size: 0.74rem; }
.product-price { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.btn-quick { margin-left: auto; height: 38px; padding: 0 14px; font-size: 0.82rem; display: inline-flex; align-items: center; gap: 6px; border-radius: var(--bw-radius-sm); }
.products-grid { gap: 16px; }

/* promo band after the first row */
.bw-promo-band {
  grid-column: 1 / -1;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 96px; padding: 18px 28px; border-radius: var(--bw-radius-md);
  background: linear-gradient(90deg, #16233B 0%, #2B3A57 60%, #B33A3A 140%);
  color: #fff; text-decoration: none;
}
.bw-promo-band__text { display: flex; flex-direction: column; gap: 4px; }
.bw-promo-band__text strong { font-family: var(--bw-font-head); font-size: 1.6rem; line-height: 1.1; }
.bw-promo-band__text span { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.75); }
.bw-promo-band .btn { white-space: nowrap; }

@media (min-width: 1600px) { .products-grid { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 1023px) { .page-header__stat { position: static; transform: none; margin-top: 10px; border: 0; padding: 0; } }
@media (max-width: 768px) {
  .products-grid { gap: 10px; }
  .btn-quick { width: 100%; margin-left: 0; margin-top: 6px; }
  .bw-promo-band { flex-direction: column; align-items: flex-start; }
  .bw-promo-band__text strong { font-size: 1.25rem; }
}

/* ---------- Step 4: homepage (UI spec §8) ---------- */
.hero { min-height: 540px; padding: 40px 0 36px; }
.hero .container { grid-template-columns: minmax(0, 34%) minmax(0, 1fr); gap: clamp(24px, 3vw, 48px); }
.hero-trust { grid-template-columns: repeat(3, auto); justify-content: start; gap: 22px; margin-top: 22px; }
.hero-trust-item { display: flex; align-items: center; gap: 8px; color: var(--bw-text); }
.hero-trust-item svg { flex: 0 0 24px; color: var(--bw-text); }
.hero-trust-item strong, .hero-trust-item span { display: block; font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.25; }
.hero-trust-item span { color: var(--bw-muted); }
.hero-collage { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); height: 460px; overflow: hidden; border-radius: var(--bw-radius-md); background: var(--bw-navy); }
.hero-collage__tile { position: relative; display: block; overflow: hidden; margin-left: -28px; clip-path: polygon(14% 0, 100% 0, 86% 100%, 0 100%); background: #1e2a3f; }
.hero-collage__tile:first-child { margin-left: 0; clip-path: polygon(0 0, 100% 0, 86% 100%, 0 100%); }
.hero-collage__tile:last-child { clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%); }
.hero-collage__tile img { width: 100%; height: 100%; object-fit: cover; object-position: center; transform: scale(1.12); transition: transform .5s ease; }
.hero-collage__tile:hover img { transform: scale(1.18); }
.hero-collage__quote { position: absolute; right: 26px; bottom: 18px; color: #fff; font-family: var(--bw-font-head); font-style: italic; font-size: clamp(1.1rem, 1.6vw, 1.6rem); line-height: 1.1; text-align: right; text-shadow: 0 2px 14px rgba(0,0,0,.6); pointer-events: none; }
.hero-collage__quote::after { content: ""; display: block; width: 90px; height: 3px; margin: 8px 0 0 auto; background: var(--bw-red); transform: rotate(-4deg); }

.section-title--row { display: grid; grid-template-columns: 1fr auto; align-items: end; text-align: left; margin-bottom: 18px; }
.section-title--row h2 { margin: 0; grid-column: 1; }
.section-title--row p { grid-column: 1; margin: 2px 0 0; font-size: 0.95rem; }
.section-title--row .underline { display: none; }
.section-title--row .section-link { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.categories { padding: 28px 0 8px; }
.products-section { padding: 28px 0 40px; }
.products-header { display: flex; align-items: end; justify-content: space-between; margin-bottom: 18px; }
.products-header h2 { margin: 0; }
.products-header .section-link { color: var(--bw-red); font-family: var(--bw-font-head); font-weight: 600; }

.profession-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.profession-tile { position: relative; display: block; height: 144px; border-radius: var(--bw-radius-sm); overflow: hidden; background: var(--bw-navy); color: #fff; text-decoration: none; isolation: isolate; }
.profession-tile img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transition: transform .45s ease; }
.profession-tile:hover img { transform: scale(1.06); }
.profession-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 14, 22, .88) 0, rgba(10, 14, 22, .35) 45%, rgba(10, 14, 22, 0) 70%); z-index: 1; }
.profession-tile__placeholder { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--bw-font-head); font-size: 3.2rem; color: rgba(255,255,255,.18); background: linear-gradient(135deg, var(--accent, #374151), #16233B); }
.profession-tile__body { position: absolute; left: 12px; right: 12px; bottom: 10px; z-index: 2; display: flex; align-items: center; gap: 10px; }
.profession-tile__body .prof-icon { flex: 0 0 auto; width: 26px; height: 26px; color: #fff; filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); }
.profession-tile__text { display: flex; flex-direction: column; min-width: 0; }
.profession-tile__text strong { font-family: var(--bw-font-head); font-size: 1.1rem; font-weight: 700; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profession-tile__text small { font-size: 0.72rem; color: rgba(255,255,255,.78); margin-top: 2px; }
.profession-tile__arrow { margin-left: auto; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.18); display: grid; place-items: center; font-size: 0.95rem; }
.profession-tile--empty::after { background: linear-gradient(to top, rgba(10,14,22,.7), rgba(10,14,22,0) 70%); }

#featured-products.products-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (min-width: 1800px) { #featured-products.products-grid { grid-template-columns: repeat(8, 1fr); } }
@media (max-width: 1023px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-collage { height: 300px; margin-top: 8px; }
  .profession-strip { grid-template-columns: repeat(3, 1fr); }
  #featured-products.products-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .hero-collage { height: 200px; grid-template-columns: repeat(3, 1fr); }
  .hero-collage__tile:nth-child(n+4) { display: none; }
  .hero-collage__quote { font-size: 0.95rem; right: 12px; bottom: 10px; }
  .hero-trust { grid-template-columns: 1fr; gap: 10px; }
  .profession-strip { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .profession-tile { height: 118px; }
  #featured-products.products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .section-title--row { grid-template-columns: 1fr; }
  .section-title--row .section-link { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 4px; }
}

/* mobile fixes (step 4): the nav's inner .container inherited the header grid (60px blank);
   trust row stays a compact 3-up row */
@media (max-width: 768px) {
  .header .main-nav .container { display: block; min-height: 0; padding: 0; }
  .header .main-nav { border-top: 0; }
  .header .main-nav:has(ul.open) { border-top: 1px solid var(--bw-border); margin-top: 4px; }
  .hero { padding: 28px 0 24px; }
  .hero-content { text-align: left; }
  .hero-trust { grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
  .hero-trust-item { flex-direction: column; align-items: flex-start; gap: 4px; }
  .hero-trust-item strong, .hero-trust-item span { font-size: 0.6rem; }
}

/* ---------- Step 5: professions directory (UI spec §9) ---------- */
.page-header--split { padding: 28px 0 24px; background: var(--bw-bg-soft); border-bottom: 1px solid var(--bw-border); }
.page-header--split .container { display: grid; grid-template-columns: minmax(0, 42%) minmax(0, 1fr); gap: clamp(24px, 3vw, 48px); align-items: center; }
.page-header--split .page-header__copy .breadcrumb { margin-bottom: 10px; }
.page-header--split .hero-badge { display: block; margin-bottom: 8px; }
.page-header--split h1 { font-size: clamp(2.4rem, 4.6vw, 4.6rem); line-height: 0.98; margin: 0 0 12px; }
.page-header--split .page-intro { font-family: var(--bw-font-head); font-size: 1.15rem; line-height: 1.4; color: var(--bw-text); max-width: 560px; margin: 0; }
.page-header--split .hero-collage { height: 260px; }
.profession-directory { padding: 18px 0 56px; }
.profession-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.profession-search input { border-radius: var(--bw-radius-sm); border: 1px solid var(--bw-border-strong); background: var(--bw-surface); height: 42px; }
.profession-count { color: var(--bw-muted); font-size: 0.85rem; }
.profession-group-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; margin-bottom: 20px; }
.profession-group-tabs button { height: 44px; padding: 0 14px; border-radius: var(--bw-radius-sm); border: 1px solid var(--bw-border-strong); background: var(--bw-surface-warm); color: var(--bw-text); font-family: var(--bw-font-head); font-size: 1rem; font-weight: 500; }
.profession-group-tabs button:hover { border-color: var(--bw-navy); color: var(--bw-text); }
.profession-group-tabs button.active { background: var(--bw-red); border-color: var(--bw-red); color: #fff; }
.profession-grid { grid-template-columns: repeat(6, 1fr); gap: 14px; }
.profession-grid .profession-tile { height: 176px; }
.profession-grid .profession-tile__text strong { font-size: 1.2rem; }
.bw-trust-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 28px 0 8px; padding: 18px 0; border-top: 1px solid var(--bw-border); border-bottom: 1px solid var(--bw-border); }
.bw-trust-row__item { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--bw-text); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.35; }
.bw-trust-row__item + .bw-trust-row__item { border-left: 1px solid var(--bw-border); }
.popular-collections { margin-top: 28px; }
.popular-collections__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.popular-tile { height: 124px; }
.popular-tile .profession-tile__text strong { font-size: 1.25rem; }
.popular-tile .profession-tile__text small { font-size: 0.8rem; }
@media (max-width: 1199px) { .profession-grid, .popular-collections__grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 1023px) {
  .page-header--split .container { grid-template-columns: 1fr; }
  .page-header--split .hero-collage { height: 200px; }
  .profession-group-tabs { display: flex; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
  .profession-group-tabs button { flex: 0 0 auto; }
  .profession-grid, .popular-collections__grid { grid-template-columns: repeat(3, 1fr); }
  .bw-trust-row { grid-template-columns: repeat(2, 1fr); }
  .bw-trust-row__item + .bw-trust-row__item { border-left: 0; }
}
@media (max-width: 768px) {
  .profession-grid, .popular-collections__grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .profession-grid .profession-tile { height: 136px; }
  .profession-toolbar { flex-direction: column; align-items: stretch; }
  .bw-trust-row { grid-template-columns: 1fr; gap: 10px; }
  .bw-trust-row__item { justify-content: flex-start; }
}
@media (max-width: 768px) {
  .profession-search { flex: 0 0 auto; max-width: none; width: 100%; }
  .profession-search input { width: 100%; }
}

/* ---------- Step 6: profession landing (UI spec §10) ---------- */
.page-header.profession-hero { padding: 26px 0 26px; background: linear-gradient(90deg, color-mix(in srgb, var(--accent, #374151) 10%, var(--bw-bg-soft)) 0%, var(--bw-bg-soft) 55%); }
.page-header.profession-hero.page-header--split .container { grid-template-columns: minmax(0, 40%) minmax(0, 1fr); }
.page-header.profession-hero .hero-collage { height: 340px; }
.page-header.profession-hero h1 { font-size: clamp(2.4rem, 4.4vw, 4.2rem); line-height: 0.98; margin: 10px 0 10px; }
.profession-badge { display: inline-flex; align-items: center; gap: 10px; margin-top: 12px; color: var(--bw-text); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; }
.profession-badge__icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--accent, var(--bw-red)); color: #fff; }
.profession-badge > span:last-child { padding: 6px 12px; border-radius: 999px; background: rgba(23,27,34,.06); }
.profession-hero__group { display: none; }
.profession-hero__sub { font-family: var(--bw-font-head); font-size: 1.15rem; color: var(--bw-text); max-width: 560px; margin: 0 0 18px; }
.profession-hero__cta { min-height: 54px; padding: 0 28px; display: inline-flex; align-items: center; gap: 10px; font-size: 1.05rem; }
.profession-tiles { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; padding: 16px 0 4px; }
.collection-tile { height: 124px; border: 0; padding: 0; cursor: pointer; font: inherit; text-align: left; }
.collection-tile .profession-tile__text strong { font-size: 1.05rem; }
.collection-tile.active { outline: 3px solid var(--bw-red); outline-offset: 0; }
.collection-tile.active::after { background: linear-gradient(to top, rgba(179,58,58,.85), rgba(179,58,58,.2) 60%); }
.profession-related { margin: 36px 0 8px; display: grid; grid-template-columns: minmax(0, 300px) 1fr; gap: 24px; align-items: center; padding: 20px; background: var(--bw-surface); border: 1px solid var(--bw-border); border-radius: var(--bw-radius-md); }
.profession-related__head h2 { font-size: 1.9rem; margin: 0 0 6px; }
.profession-related__head p { color: var(--bw-muted); margin: 0; }
.profession-related__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.related-tile { height: 112px; }
.profession-faq { margin-top: 28px; }
@media (max-width: 1199px) { .profession-tiles { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 1023px) {
  .page-header.profession-hero .hero-collage { height: 220px; }
  .profession-related { grid-template-columns: 1fr; }
  .profession-related__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .profession-tiles { display: flex; overflow-x: auto; scrollbar-width: none; gap: 10px; padding: 12px 0 6px; }
  .profession-tiles .collection-tile { flex: 0 0 150px; height: 100px; }
  .page-header.profession-hero .hero-collage { height: 180px; }
  .profession-hero__cta { width: 100%; justify-content: center; }
}
@media (max-width: 1023px) {
  .page-header.profession-hero.page-header--split .container { grid-template-columns: 1fr; }
  .page-header.profession-hero h1 { font-size: 2.4rem; }
}

/* ---------- Step 7: product detail (UI spec §12) ---------- */
.product-detail { padding: 24px 0 40px; }
.product-detail-grid { grid-template-columns: minmax(0, 54%) minmax(0, 46%); gap: 40px; }
.product-gallery { gap: 16px; }
.side-thumbs { width: 112px; }
.side-thumb { width: 96px; height: 132px; border-radius: var(--bw-radius-sm); border: 1px solid var(--bw-border); overflow: hidden; background: var(--bw-surface-warm); }
.side-thumb.active { border-color: var(--bw-red); box-shadow: 0 0 0 1px var(--bw-red); }
.side-thumb img { width: 100%; height: 100%; object-fit: cover; }
.main-image { border-radius: var(--bw-radius-md); max-height: none; } /* base aspect-ratio box must not be height-capped */
.pdp-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.pdp-prof { display: inline-flex; align-items: center; gap: 8px; color: var(--accent, var(--bw-red)); font-family: var(--bw-font-head); font-size: 1.05rem; text-decoration: none; }
.pdp-prof .prof-icon { width: 22px; height: 22px; }
.pdp-prof:hover span { text-decoration: underline; }
.pdp-heart { width: 40px; height: 40px; border: 0; background: transparent; color: var(--bw-text); cursor: pointer; border-radius: 50%; display: grid; place-items: center; }
.pdp-heart:hover { background: var(--bw-bg); color: var(--bw-red); }
.product-detail-info h1 { font-size: clamp(2rem, 3.4vw, 3.4rem); line-height: 1.02; margin: 0 0 10px; font-weight: 700; }
.product-detail-info h1 .hero-badge { font-size: 0.8rem; vertical-align: middle; border-radius: 4px; padding: 4px 8px; background: var(--bw-red) !important; color: #fff !important; }
.pdp-rating { display: flex; align-items: center; gap: 10px; color: var(--bw-muted); font-size: 0.95rem; margin-bottom: 8px; }
.pdp-stars { color: var(--bw-gold); letter-spacing: 2px; font-size: 1.1rem; }
.product-detail-info .detail-price { font-family: var(--bw-font-head); font-size: clamp(1.8rem, 2.6vw, 2.4rem); font-weight: 700; color: var(--bw-text); margin: 0 0 18px; padding-bottom: 18px; border-bottom: 1px solid var(--bw-border); }
.product-detail-info .detail-price .old-price { font-size: 0.55em; color: var(--bw-muted); }
.detail-options h4 { font-size: 0.8rem; letter-spacing: 0.08em; }
.pdp-size-head { display: flex; align-items: center; justify-content: space-between; }
.pdp-size-guide { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; letter-spacing: 0; text-transform: none; font-weight: 600; color: var(--bw-navy); text-decoration: underline; }
.color-swatch { width: 40px; height: 40px; border-radius: 50%; }
.color-swatch.active { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--bw-navy); }
.size-btn { min-width: 64px; height: 46px; border-radius: var(--bw-radius-sm); border: 1px solid var(--bw-border-strong); background: var(--bw-surface); font-weight: 600; }
.size-btn.active { background: var(--bw-surface); border: 2px solid var(--bw-text); color: var(--bw-text); }
.pdp-buy-row { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin: 20px 0 18px; }
.pdp-qty { display: flex; align-items: center; gap: 10px; }
.pdp-qty__label { font-weight: 700; font-size: 0.95rem; }
.quantity-selector { margin: 0; height: 54px; width: 140px; border: 1px solid var(--bw-border-strong); border-radius: var(--bw-radius-sm); background: var(--bw-surface); overflow: hidden; }
.quantity-selector button { width: 42px; height: 100%; border: 0; background: transparent; font-size: 1.2rem; cursor: pointer; }
.quantity-selector input { width: 54px; height: 100%; border: 0; text-align: center; font-weight: 700; font-size: 1rem; background: transparent; }
.detail-buttons { margin: 0; gap: 12px; flex: 1 1 auto; }
.detail-buttons .btn-primary { flex: 1 1 300px; height: 58px; font-size: 1.1rem; display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.detail-buttons .btn-secondary { flex: 0 1 220px; height: 58px; font-size: 1.05rem; display: inline-flex; align-items: center; justify-content: center; }
.pdp-trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 16px 0; border-top: 1px solid var(--bw-border); border-bottom: 1px solid var(--bw-border); }
.pdp-trust__item { display: flex; gap: 10px; align-items: flex-start; color: var(--bw-text); }
.pdp-trust__item svg { flex: 0 0 28px; color: var(--bw-navy); }
.pdp-trust__item strong { display: block; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.3; }
.pdp-trust__item span { font-size: 0.78rem; color: var(--bw-muted); line-height: 1.35; }
.pdp-trust__item + .pdp-trust__item { border-left: 1px solid var(--bw-border); padding-left: 14px; }
.detail-accordions { font-family: var(--bw-font-body); }
.detail-accordions button span { font-family: var(--bw-font-head) !important; }
.pdp-crosssell { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--bw-border); }
.pdp-crosssell .products-section { padding: 0; }
.pdp-crosssell .products-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pdp-crosssell .product-card .btn-quick { display: none; }
.pdp-crosssell .products-header h2 { font-size: 1.7rem; }
.pdp-sticky { display: none; }
@media (max-width: 1023px) {
  .product-detail-grid { grid-template-columns: 1fr; gap: 24px; }
  .pdp-crosssell { grid-template-columns: 1fr; gap: 28px; }
  .pdp-crosssell .products-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .side-thumbs { width: 64px; }
  .side-thumb { width: 56px; height: 72px; }
  .pdp-trust { grid-template-columns: 1fr; gap: 10px; }
  .pdp-trust__item + .pdp-trust__item { border-left: 0; padding-left: 0; }
  .pdp-buy-row { align-items: stretch; }
  .detail-buttons { flex-wrap: wrap; }
  .detail-buttons .btn-primary, .detail-buttons .btn-secondary { flex: 1 1 100%; }
  .pdp-crosssell .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .pdp-sticky { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--bw-surface); border-top: 1px solid var(--bw-border); box-shadow: 0 -6px 20px rgba(23,27,34,.08); }
  .pdp-sticky__price { font-family: var(--bw-font-head); font-size: 1.4rem; font-weight: 700; }
  .pdp-sticky .btn { height: 48px; flex: 1 1 auto; max-width: 60%; display: inline-flex; align-items: center; justify-content: center; }
  body:has(.pdp-sticky) { padding-bottom: 72px; }
}

/* ---------- Step 8: gift guide (UI spec §13) ---------- */
.gifts-hero .page-header__copy h1 { font-size: clamp(2.6rem, 5vw, 5rem); }
.gifts-hero .hero-collage { height: 330px; }
.gifts-page { padding: 0 0 56px; }
.gift-finder { display: grid; grid-template-columns: auto repeat(4, minmax(0, 1fr)) auto; gap: 12px; align-items: center; margin: -36px 0 28px; padding: 14px 16px; min-height: 88px; background: var(--bw-surface-warm); border: 1px solid var(--bw-border); border-radius: var(--bw-radius-md); box-shadow: var(--bw-shadow-md); position: relative; z-index: 2; }
.gift-finder__icon { color: var(--bw-red); display: grid; place-items: center; width: 40px; }
.gift-finder__field { display: flex; flex-direction: column; gap: 2px; padding: 6px 12px; border: 1px solid var(--bw-border-strong); border-radius: var(--bw-radius-sm); background: var(--bw-surface); }
.gift-finder__field span { font-size: 0.72rem; color: var(--bw-muted); font-weight: 600; }
.gift-finder__field select { border: 0; background: transparent; font: inherit; font-size: 0.95rem; font-weight: 600; color: var(--bw-text); padding: 0; outline: none; }
.gift-finder__btn { height: 54px; padding: 0 28px; display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.gifts-section { margin-bottom: 30px; }
.recipient-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.recipient-tile { height: 136px; }
.recipient-tile .profession-tile__text strong { font-size: 1.15rem; }
.budget-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.budget-card { display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 12px 18px; border-radius: var(--bw-radius-sm); color: #fff; text-decoration: none; }
.budget-card svg { flex: 0 0 30px; }
.budget-card span { display: flex; flex-direction: column; flex: 1 1 auto; }
.budget-card strong { font-family: var(--bw-font-head); font-size: 1.35rem; line-height: 1.1; }
.budget-card small { font-size: 0.82rem; opacity: 0.85; }
.budget-card i { width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(255,255,255,.5); display: grid; place-items: center; font-style: normal; }
.budget-card--sand { background: #E9DCC2; color: var(--bw-text); }
.budget-card--sand i { border-color: rgba(23,27,34,.35); }
.budget-card--green { background: var(--bw-green); }
.budget-card--navy { background: var(--bw-navy); }
#gift-picks.products-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (min-width: 1800px) { #gift-picks.products-grid { grid-template-columns: repeat(8, 1fr); } }
@media (max-width: 1199px) { .gift-finder { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 16px; } .gift-finder__icon { display: none; } .gift-finder__btn { grid-column: 1 / -1; } .recipient-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1023px) { .gifts-hero .hero-collage { height: 220px; } #gift-picks.products-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .gift-finder { grid-template-columns: 1fr; } .recipient-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } .recipient-tile { height: 118px; } .budget-grid { grid-template-columns: 1fr; } #gift-picks.products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

/* fix (user report): profession badge sits INSIDE .product-image; category text is redundant with it.
   Featured row: 4 columns (8 cards) up to 1399px, 6 columns (12 cards) from 1400px. */
.product-card .product-category { display: none; }
.product-card .product-name { margin-top: 2px; }
.product-info { display: flex; flex-direction: column; }
.product-price { margin-top: auto; }
#featured-products.products-grid { grid-template-columns: repeat(4, 1fr); }
#featured-products.products-grid .product-card:nth-child(n+9) { display: none; }
@media (min-width: 1400px) {
  #featured-products.products-grid { grid-template-columns: repeat(6, 1fr); }
  #featured-products.products-grid .product-card:nth-child(n+9) { display: block; }
}
@media (min-width: 1800px) { #featured-products.products-grid { grid-template-columns: repeat(6, 1fr); } }
@media (max-width: 1023px) { #featured-products.products-grid .product-card:nth-child(n+7) { display: none; } }

/* ---------- audit fixes ---------- */
.product-card .product-name, .product-card .product-name a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.coming-soon { margin: 24px 0 40px; padding: 36px; background: var(--bw-surface); border: 1px solid var(--bw-border); border-radius: var(--bw-radius-md); text-align: center; }
.coming-soon__body { max-width: 620px; margin: 0 auto; }
.coming-soon h2 { font-size: 2rem; margin: 10px 0 10px; }
.coming-soon p { color: var(--bw-muted); font-size: 1.05rem; margin: 0 0 20px; }
.coming-soon__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.coming-soon__actions .btn { min-height: 50px; padding: 0 24px; display: inline-flex; align-items: center; }

/* fix (user report): nav must never shrink under its content (search was overlapping "Sale");
   the search box is the flexible part. Tighter nav on narrower desktops. */
.header .main-nav { flex: 0 0 auto; min-width: max-content; }
.header .search-bar { flex: 1 1 200px; min-width: 170px; max-width: 440px; }
.header .logo img { height: 50px !important; }
@media (max-width: 1399px) {
  .header .container { gap: 20px; }
  .header .main-nav ul { gap: 22px; }
  .header .main-nav li a { font-size: 1rem; }
  .header .logo img { height: 44px !important; }
}
@media (max-width: 1199px) and (min-width: 1024px) {
  .header .container { gap: 14px; }
  .header .main-nav ul { gap: 16px; }
  .header .main-nav li a { font-size: 0.95rem; }
  .header .search-bar { min-width: 150px; }
  .header .search-bar input { padding-left: 10px; font-size: 0.82rem; }
  .header .nav-actions > a { width: 36px; }
}

/* ---------- Real photos (upload-assets 2026-10-07) ---------- */
.profession-tile img, .hero-collage__tile img { object-position: center center; }
.hero.hero--photo { min-height: clamp(440px, 40vw, 640px); padding: 48px 0; background-color: var(--bw-bg-soft); }
.hero.hero--photo::before {
  content: ""; position: absolute; inset: 0; z-index: 0; border-radius: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(247,242,234,.96) 0%, rgba(247,242,234,.82) 27%, rgba(247,242,234,.18) 48%, rgba(247,242,234,0) 72%);
}
.hero.hero--photo .container { grid-template-columns: minmax(0, 38%) minmax(0, 1fr); }
.hero.hero--photo .hero-content { position: relative; z-index: 1; }
@media (max-width: 1023px) {
  .hero.hero--photo { min-height: 0; padding: 36px 0 220px; background-position: center bottom !important; }
  .hero.hero--photo::before { background: linear-gradient(180deg, rgba(247,242,234,.97) 0%, rgba(247,242,234,.9) 48%, rgba(247,242,234,.15) 72%, rgba(247,242,234,0) 100%); }
  .hero.hero--photo .container { grid-template-columns: 1fr; }
}
@media (max-width: 768px) { .hero.hero--photo { padding-bottom: 170px; } }
/* real-photo variants */
.hero-collage--photo { display: block; }
.hero-collage__photo { display: block; width: 100%; height: 100%; }
.hero-collage__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.hero-photo { display: none; }
@media (max-width: 1023px) {
  .hero.hero--photo { background-image: none !important; padding: 36px 0 24px; }
  .hero.hero--photo::before { content: none; }
  .hero-photo { display: block; margin-top: 20px; border-radius: var(--bw-radius-md); overflow: hidden; }
  .hero-photo img { width: 100%; aspect-ratio: 1916 / 821; object-fit: cover; display: block; }
}

/* fix (user report): hero copy overlapped the people. Collage is now an <img> in the right
   column (spec §8.1: copy 36% / image 64%), never a full-bleed background. */
.hero.hero--photo { background-image: none !important; min-height: 0; padding: 40px 0 36px; }
.hero.hero--photo::before { content: none; }
.hero.hero--photo .container { grid-template-columns: minmax(0, 36%) minmax(0, 1fr); align-items: center; }
.hero-photo { display: block; height: clamp(420px, 36vw, 560px); border-radius: var(--bw-radius-md); overflow: hidden; box-shadow: var(--bw-shadow-md); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 72% center; display: block; }
@media (max-width: 1023px) {
  .hero.hero--photo .container { grid-template-columns: 1fr; }
  .hero-photo { height: auto; margin-top: 20px; }
  .hero-photo img { aspect-ratio: 1916 / 821; height: auto; object-position: center; }
}

/* user request: shorter hero like the reference (≈25% of viewport width) */
.hero.hero--photo { padding: 22px 0 22px; }
.hero.hero--photo .container { gap: clamp(20px, 2.5vw, 40px); }
.hero-photo { height: clamp(280px, 25vw, 470px); }
.hero.hero--photo h1 { font-size: clamp(2.4rem, 4.6vw, 4.4rem); margin: 6px 0 10px; }
.hero.hero--photo .hero-badge { margin-bottom: 0; }
.hero.hero--photo p { font-size: clamp(1rem, 1.15vw, 1.15rem); margin: 0 0 16px; }
.hero.hero--photo .hero-buttons .btn, .hero.hero--photo .btn-lg { min-height: 48px; padding: 0 22px; font-size: 1rem; }
.hero.hero--photo .hero-trust { margin-top: 16px; gap: 18px; }
@media (max-width: 1023px) { .hero-photo { height: auto; } }

/* fix (user report, iPhone): the unconditional 4-col featured rule above overrode the mobile
   2-col rule. Final breakpoint ladder for the homepage featured grid — keep this LAST. */
@media (max-width: 1023px) {
  #featured-products.products-grid { grid-template-columns: repeat(3, 1fr); }
  #featured-products.products-grid .product-card { display: block; }
  #featured-products.products-grid .product-card:nth-child(n+7) { display: none; }
}
@media (max-width: 768px) {
  #featured-products.products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  #featured-products.products-grid .product-card:nth-child(n+7) { display: block; }
  #featured-products.products-grid .product-card:nth-child(n+9) { display: none; }
  .products-header { flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
  .products-header .section-link { font-size: 0.95rem; white-space: nowrap; }
}
/* compact cards on small screens (all grids) */
@media (max-width: 768px) {
  .product-info { padding: 10px; }
  .product-name, .product-name a { font-size: 0.88rem; }
  .price-current { font-size: 1rem; }
  .product-prof { left: 6px; bottom: 6px; max-width: calc(100% - 12px); padding: 4px 8px; font-size: 0.66rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: inline-block; }
  .product-prof .prof-icon { vertical-align: -2px; margin-right: 4px; }
  .product-price { gap: 6px; }
  .btn-quick { width: 100%; margin-left: 0; height: 38px; padding: 0 8px; font-size: 0.85rem; white-space: nowrap; justify-content: center; }
}

/* fix (user report): nested lists inside dropdowns inherited the top-level nav row rules
   (`.header .main-nav ul` = 30px-gap nowrap row, and display:none on ≤1023px) → mega menu
   links overlapped on desktop and vanished on mobile. Scope them explicitly. */
.header .main-nav .dropdown { gap: 0; flex-wrap: nowrap; }
.header .main-nav .dropdown:not(.mega) { flex-direction: column; min-width: 220px; }
.header .main-nav .dropdown li a { padding: 8px 20px; font-size: 0.95rem; white-space: nowrap; }
.header .main-nav .dropdown li a::after { display: none; }
.header .main-nav .dropdown.mega { flex-direction: row; flex-wrap: wrap; gap: 6px 4px; width: min(820px, calc(100vw - 48px)); max-width: none; padding: 18px 16px 12px; }
.header .main-nav .dropdown.mega .mega-col { flex: 1 1 170px; min-width: 150px; padding: 0 8px 8px; }
.header .main-nav .dropdown.mega .mega-group { display: block; margin-bottom: 6px; padding-bottom: 6px; border-bottom: 1px solid var(--bw-border); }
.header .main-nav .dropdown.mega .mega-col > ul { display: flex; flex-direction: column; gap: 0; padding: 0; margin: 0; flex-wrap: nowrap; }
.header .main-nav .dropdown.mega .mega-col > ul > li > a { padding: 5px 0; white-space: normal; display: flex; justify-content: space-between; gap: 8px; }
.header .main-nav .dropdown.mega .mega-col small { color: var(--bw-muted); font-size: 0.75rem; }
.header .main-nav .dropdown.mega .mega-all { flex: 1 1 100%; padding: 8px 8px 0; border-top: 1px solid var(--bw-border); }
.header .main-nav .dropdown.mega .mega-all a { padding: 4px 0; }
@media (max-width: 1023px) {
  .header .main-nav .dropdown.mega { flex-direction: column; flex-wrap: nowrap; width: auto; padding: 4px 0 8px; gap: 0; }
  .header .main-nav .dropdown.mega .mega-col { flex: 0 0 auto; padding: 10px 16px 4px; }
  .header .main-nav .dropdown.mega .mega-col > ul { display: flex; }
  .header .main-nav .dropdown.mega .mega-col > ul > li > a { padding: 9px 0 9px 10px; border-bottom: 0; font-size: 0.95rem; }
  .header .main-nav .dropdown.mega .mega-all { padding: 10px 16px 4px; }
  .header .main-nav .dropdown:not(.mega) li a { padding: 11px 16px 11px 26px; border-bottom: 1px solid var(--bw-border); white-space: normal; }
}
@media (max-width: 1023px) {
  .header .main-nav .dropdown.mega { align-items: stretch; }
  .header .main-nav .dropdown.mega .mega-col, .header .main-nav .dropdown.mega .mega-col > ul { width: 100%; }
  .header .main-nav .dropdown.mega .mega-col > ul > li > a { background: transparent; border-left: 2px solid var(--bw-border); }
  .header .main-nav .dropdown.mega .mega-col > ul > li > a:active, .header .main-nav .dropdown.mega .mega-col > ul > li > a:hover { border-left-color: var(--bw-red); color: var(--bw-red); }
}

/* fix (user report, iPhone PDP): `1fr` = minmax(auto,1fr) let the buy row / style picker
   stretch the single column to 808px on a 430px screen → image overflowed. */
.product-detail-info, .product-gallery, .gallery-main { min-width: 0; }
@media (max-width: 1023px) {
  .product-detail-grid { grid-template-columns: minmax(0, 1fr); }
  .detail-buttons .btn-primary, .detail-buttons .btn-secondary { flex-basis: 100%; min-width: 0; }
  .pdp-buy-row { flex-direction: column; align-items: stretch; }
  .pdp-qty { justify-content: space-between; }
}
/* sticky Add to Cart hidden while the main buy row is visible (or still below the fold) */
@media (max-width: 768px) {
  .pdp-sticky { transition: transform .2s ease, opacity .2s ease; }
  .pdp-sticky.is-hidden { transform: translateY(110%); opacity: 0; pointer-events: none; }
}

/* ---------- Floating cart + Continue Shopping (user request 2026-10-07) ---------- */
.cart-slide__continue { width: 100%; margin-top: 10px; min-height: 48px; justify-content: center; display: inline-flex; align-items: center; }
.bw-fab-cart {
  position: fixed; right: 20px; bottom: 20px; z-index: 950;
  width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center;
  background: var(--bw-navy); color: #fff; box-shadow: 0 10px 28px rgba(22, 35, 59, .35);
  opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, bottom .2s ease;
}
.bw-fab-cart.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.bw-fab-cart:hover { background: var(--bw-red); }
.bw-fab-cart .cart-count {
  position: absolute; top: -2px; right: -2px; min-width: 22px; height: 22px; padding: 0 5px;
  border-radius: 11px; background: var(--bw-red); color: #fff; border: 2px solid #fff;
  font-size: 11px; font-weight: 800; line-height: 18px; display: inline-flex; align-items: center; justify-content: center;
}
body.cart-slide-open .bw-fab-cart { opacity: 0; pointer-events: none; }
.toast { bottom: 96px !important; }
@media (max-width: 768px) {
  .bw-fab-cart { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); width: 54px; height: 54px; }
  body.pdp-sticky-on .bw-fab-cart { bottom: calc(84px + env(safe-area-inset-bottom)); }
}
/* empty cart: hide every count badge (overrides the legacy mobile !important rule) */
html.bw-cart-empty .cart-count { display: none !important; }

/* ---------- Compact mobile footer (user request 2026-10-07) ----------
   Brand block full width, Shop | Support side by side, Contact as a short full-width row,
   tighter links (still ≥32px tap height), room at the bottom for the floating cart. */
@media (max-width: 768px) {
  .footer { padding: 28px 0 calc(76px + env(safe-area-inset-bottom)); }
  .footer .footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
  .footer .footer-grid > .footer-about { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 12px; }
  .footer .footer-about .logo { grid-column: 1 / -1; margin: 0; }
  .footer .footer-about .logo img { height: 36px !important; }
  .footer .footer-about p { grid-column: 1 / -1; font-size: 0.85rem; line-height: 1.5; margin: 4px 0 0; }
  .footer .social-links { grid-column: 1 / -1; margin: 6px 0 0; }
  .footer .social-links:empty { display: none; }
  .footer .footer-grid > div:last-child:not(.footer-about) { grid-column: 1 / -1; }
  .footer .footer-grid > div:last-child:not(.footer-about) ul { display: flex; flex-wrap: wrap; gap: 0 16px; }
  .footer h4 { font-size: 1rem; margin: 0 0 6px; padding: 0; }
  .footer h4::after { display: none; }
  .footer ul li { margin: 0; }
  .footer ul li a { display: block; padding: 6px 0; font-size: 0.88rem; line-height: 1.35; }
  .footer-bottom { margin-top: 18px; padding-top: 14px; font-size: 0.78rem; }
  .footer-bottom .bw-payment-icons { margin-bottom: 8px; }
}
/* empty footer entries (blank address/link rows from the bundle) */
.footer ul li:empty, .footer ul li:has(> a:empty) { display: none; }

/* ---------- Copy pack additions (2026-10-07) ---------- */
.products-header__sub { margin: 4px 0 0; color: var(--bw-muted); font-size: 0.95rem; }
.bw-explainer { padding: 8px 0 40px; }
.bw-explainer__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.bw-explainer__item { display: block; padding: 22px 22px 18px; background: var(--bw-surface); border: 1px solid var(--bw-border); border-radius: var(--bw-radius-md); color: var(--bw-text); text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.bw-explainer__item:hover { border-color: var(--bw-border-strong); box-shadow: var(--bw-shadow-md); }
.bw-explainer__item h3 { font-size: 1.3rem; margin: 0 0 8px; }
.bw-explainer__item p { color: var(--bw-muted); font-size: 0.95rem; line-height: 1.55; margin: 0 0 12px; }
.bw-explainer__item .section-link { color: var(--bw-red); font-family: var(--bw-font-head); font-weight: 600; }
.popular-collections .section-title--row p { grid-column: 1; margin: 4px 0 0; color: var(--bw-muted); font-size: 0.95rem; }
.popular-tile .profession-tile__text small, .recipient-tile .profession-tile__text small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: normal; line-height: 1.3; }
.coming-soon__form { display: flex; gap: 10px; max-width: 460px; margin: 0 auto 14px; }
.coming-soon__form input { flex: 1 1 auto; min-width: 0; height: 50px; padding: 0 14px; border: 1px solid var(--bw-border-strong); border-radius: var(--bw-radius-sm); font-size: 1rem; }
.coming-soon__form .btn { height: 50px; padding: 0 22px; white-space: nowrap; }
.footer .social-links a { opacity: 1; color: var(--bw-text); background: var(--bw-surface); border: 1px solid var(--bw-border-strong); }
@media (max-width: 768px) {
  .bw-explainer__grid { grid-template-columns: 1fr; gap: 10px; }
  .bw-explainer__item { padding: 16px; }
  .coming-soon__form { flex-direction: column; }
  .products-header { align-items: flex-start; }
}

/* ---------- Structured product copy (2026-10-07) ---------- */
.pdp-hook { margin: -2px 0 10px; color: var(--bw-muted); font-family: var(--bw-font-head); font-style: italic; font-size: 1.05rem; line-height: 1.45; }
.pdp-copy { font-size: 15px; line-height: 1.7; color: #374151; }
.pdp-copy__p { margin: 0 0 12px; }
.pdp-copy__h { margin: 18px 0 6px; font-family: var(--bw-font-head); font-size: 1.05rem; color: var(--bw-text); letter-spacing: 0; text-transform: none; }
.pdp-copy__list { margin: 0 0 6px; padding-left: 20px; }
.pdp-copy__list li { margin: 2px 0; }
.pdp-copy__meta { margin: 14px 0 4px; font-size: 13px; color: var(--bw-muted); }
.pdp-copy__meta strong { color: var(--bw-text); font-family: monospace; }
.pdp-copy__note { margin: 10px 0 0; padding-top: 12px; border-top: 1px solid var(--bw-border); font-size: 12px; color: var(--bw-muted); line-height: 1.6; }
.pdp-copy__angle { font-style: italic; color: var(--bw-text); border-left: 3px solid var(--bw-brass); padding-left: 12px; }

/* fix (user report): collar cut off on cards. image-helpers wraps <img> in <picture>, so
   the img's height:100% resolved against an auto-height picture and overflowed the box.
   Make the picture fill the box and show the whole garment (mockups are ~700×741). */
.product-image { aspect-ratio: 1 / 1; height: auto; }
.product-image picture { display: block; width: 100%; height: 100%; }
.product-image img, .product-image picture img { width: 100%; height: 100%; object-fit: contain; object-position: center; }

/* user request (07/10): hero closer to homepage-reference.png - photo bleeds to the right
   edge and fills the hero top-to-bottom (no card, no padding), soft fade into the ivory on
   its left, and a shorter overall height (~22vw, capped). The <img> is absolutely positioned
   so its intrinsic ratio never stretches the row; the copy column sets the floor. Desktop only. */
@media (min-width: 1024px) {
  .hero.hero--photo { padding: 0; overflow: hidden; }
  .hero.hero--photo .container {
    max-width: none; margin: 0;
    padding-left: max(var(--bw-gutter), calc((100% - var(--max-width)) / 2 + var(--bw-gutter))); padding-right: 0;
    grid-template-columns: minmax(400px, 34%) minmax(0, 1fr); gap: 0;
    align-items: stretch; min-height: clamp(300px, 22vw, 390px);
  }
  .hero.hero--photo .hero-content { align-self: center; padding: 18px 28px 18px 0; max-width: 520px; }
  .hero.hero--photo .hero-photo {
    position: relative; height: auto; border-radius: 0; box-shadow: none;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%);
            mask-image: linear-gradient(90deg, transparent 0, #000 7%);
  }
  .hero.hero--photo .hero-photo img { position: absolute; inset: 0; object-position: center 30%; }
  .hero.hero--photo h1 { font-size: clamp(2.3rem, 3.9vw, 3.9rem); line-height: 1; margin: 4px 0 10px; }
  .hero.hero--photo p { font-size: clamp(.98rem, 1.05vw, 1.1rem); margin: 0 0 14px; }
  .hero.hero--photo .hero-buttons { margin-bottom: 0; }
  .hero.hero--photo .hero-buttons .btn, .hero.hero--photo .btn-lg { min-height: 44px; }
  .hero.hero--photo .hero-trust { margin-top: 18px; gap: 14px; }
  .hero.hero--photo .hero-trust-item { flex-direction: row; align-items: center; text-align: left; gap: 6px; }
  .hero.hero--photo .hero-trust-item svg { flex-basis: 22px; width: 22px; height: 22px; }
  .hero.hero--photo .hero-trust-item strong, .hero.hero--photo .hero-trust-item span { white-space: nowrap; font-size: .64rem; }
}
/* user report (07/10): on wide screens the bleed ran past the page's right edge — keep the
   hero inside the normal container so the photo ends where every other section ends. */
@media (min-width: 1024px) {
  .hero.hero--photo .container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--bw-gutter); }
  .hero.hero--photo .hero-photo {
    border-radius: 0 var(--bw-radius-md) var(--bw-radius-md) 0;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%);
            mask-image: linear-gradient(90deg, transparent 0, #000 12%);
  }
  .hero.hero--photo .hero-photo img { object-position: 100% 30%; }
}

/* user report (07/10): in the 5-column grid (≥1600px) cards are ~200px wide, so Quick Add
   wrapped onto its own line and hung off to the right. Size by the CARD, not the viewport:
   when the card is narrow the button becomes a full-width row under the price. */
.product-card .product-info { container-type: inline-size; }
@container (max-width: 195px) {
  .product-price .btn-quick { width: 100%; margin-left: 0; margin-top: 4px; justify-content: center; white-space: nowrap; }
}
/* The promo band goes in after the 4th card; in 3- or 5-column grids that left holes in the
   first rows. Dense packing lets the following cards backfill them (band stays full-width). */
.products-grid { grid-auto-flow: row dense; }
