/* ── TOKENS ── */
:root {
  --white:   #FAFAF7;
  --offwhite:#F5F0E8;
  --cream:   #F5F0E8;
  --ink:     #3A2E24;
  --forest:  #2D4A35;
  --moss:    #4A6B52;
  --clay:    #C4763B;
  --stone:   #8C8880;
  --border:  rgba(26,26,20,0.1);
  --font-serif: 'DM Serif Display', Georgia, serif;
  --font-sans:  'DM Sans', -apple-system, sans-serif;
  --max:     1360px;
  --nav-h:   60px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; max-width: 100%; overflow-x: hidden; }
body { font-family: var(--font-sans); background: var(--white); color: var(--ink); font-size: 14px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { text-decoration: none; color: inherit; }
button { font-family: var(--font-sans); }

/* ══════════════════════════════════════
   ANNOUNCEMENT + CONTEXT STRIPS
══════════════════════════════════════ */
.announce {
  background: #111;
  color: rgba(255,255,255,0.8);
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.context-strip {
  background: var(--offwhite);
  border-bottom: 1px solid var(--border);
  padding: 10px 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.context-text {
  font-size: 12px;
  color: var(--stone);
  letter-spacing: 0.02em;
  text-align: center;
}

/* ══════════════════════════════════════
   NAV
══════════════════════════════════════ */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 44px;
  height: var(--nav-h);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}
.nav-logo {
  font-family: var(--font-serif);
  font-size: 21px;
  color: var(--ink);
  letter-spacing: -0.2px;
  font-style: normal;
  flex-shrink: 0;
}
.nav-logo em { color: var(--forest); font-style: italic; }
.nav-filters {
  display: flex;
  align-items: center;
  height: var(--nav-h);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.nav-filters::-webkit-scrollbar { display: none; }
.nav-chip {
  display: inline-flex;
  align-items: center;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0 16px;
  height: 100%;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--stone);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
  flex-shrink: 0;
}
.nav-chip:hover { color: var(--ink); }
.nav-chip.active { color: var(--ink); border-bottom-color: var(--ink); }
.nav-chip-featured { color: var(--forest); font-weight: 600; }
.nav-chip-featured.active { color: var(--forest); border-bottom-color: var(--forest); }
.nav-chip-featured:hover { color: var(--moss); }

/* ── BRANDS DROPDOWN (shared) ── */
.brand-nav-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  height: var(--nav-h);
}
.brand-nav-wrap .nav-chip { display: inline-flex; align-items: center; gap: 5px; height: 100%; }
.brand-nav-wrap .nav-chip svg { transition: transform 0.2s; }
.brand-nav-wrap.open .nav-chip svg { transform: rotate(180deg); }
.brand-nav-dropdown {
  position: fixed;
  min-width: 180px;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.18s, transform 0.18s;
}
.brand-nav-dropdown.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.brand-nav-dropdown a {
  display: block;
  padding: 10px 16px;
  font-size: 12px;
  color: var(--ink);
  transition: background 0.12s;
  white-space: nowrap;
}
.brand-nav-dropdown a:hover { background: var(--offwhite); }
.brand-nav-dropdown.two-col { display: grid; grid-template-columns: 1fr 1fr; min-width: 320px; }

.nav-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}
.sort-select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--white);
  border: 1px solid var(--border);
  padding: 7px 32px 7px 12px;
  font-size: 12px;
  font-family: var(--font-sans);
  color: var(--ink);
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none' viewBox='0 0 10 6'%3E%3Cpath stroke='%238C8880' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}
.sort-select:hover,
.sort-select:focus {
  border-color: var(--ink);
}
.search-field { position: relative; }
.search-field input {
  background: none;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 5px 0;
  font-size: 12px;
  font-family: var(--font-sans);
  color: var(--ink);
  width: 150px;
  outline: none;
  transition: border-color 0.2s, width 0.3s;
  letter-spacing: 0.02em;
}
.search-field input:focus { border-color: var(--ink); width: 190px; }
.search-field input::placeholder { color: var(--stone); }

.section {
  padding: 40px 44px 72px;
  max-width: var(--max);
  margin: 0 auto;
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
}
.section-title {
  font-family: var(--font-serif);
  font-size: 28px;
  letter-spacing: -0.5px;
  color: var(--ink);
}
.section-count {
  font-size: 11px;
  color: var(--stone);
  letter-spacing: 0.06em;
}

/* ══════════════════════════════════════
   PRODUCT GRID
══════════════════════════════════════ */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 48px 28px;
  align-items: stretch;
}

.product-card {
  cursor: pointer;
  height: 100%;
}

.product-card > a {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
}

.product-image {
  aspect-ratio: 3/4;
  background: var(--offwhite);
  position: relative;
  overflow: hidden;
  margin-bottom: 14px;
}

.product-image img {
  transition: transform 0.65s ease;
}

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

.img-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  pointer-events: none;
}

.overlay-btn {
  display: inline-block;
  background: var(--cream);
  color: var(--ink);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  padding: 10px 20px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s, transform 0.3s;
}

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

.product-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.placeholder-icon {
  opacity: 0.12;
}

.placeholder-text {
  font-size: 11px;
  color: var(--stone);
  opacity: 0.5;
}

.featured-ribbon {
  position: absolute;
  top: 13px;
  left: 0;
  background: var(--clay);
  color: white;
  font-size: 9px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  padding: 4px 12px;
  font-weight: 500;
}


/* ══════════════════════════════════════
   CARD INFO
══════════════════════════════════════ */

.product-info {
  padding-top: 2px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-brand {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--stone);
  opacity: 0.65;
  margin-bottom: 5px;
}

/* FIXED HEIGHT TITLE */

.product-name {
  font-family: var(--font-serif);
  font-size: 17px;
  color: var(--ink);
  line-height: 1.3;
  letter-spacing: -0.2px;
  margin-bottom: 10px;

  height: calc(1.3em * 2);

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* FIXED HEIGHT FIBER ROW */

.fiber-meta {
  min-height: 20px;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;

  margin-bottom: 4px;
}

.ftag {
  font-size: 11px;
  color: var(--stone);
  letter-spacing: 0.01em;
}

.ftag + .ftag::before {
  content: ' · ';
  color: var(--border);
}

/* FOOTER ALWAYS PUSHED TO BOTTOM */

.product-footer {
  display: flex;
  align-items: baseline;
  justify-content: space-between;

  margin-top: auto;
  padding-top: 14px;

  border-top: 1px solid var(--border);
}

.product-price {
  font-family: var(--font-serif);
  font-size: 24px;
  letter-spacing: -0.5px;
  color: var(--ink);
}
.product-price.on-sale { color: var(--clay); }
.price-was {
  font-size: 13px;
  font-family: var(--font-sans);
  color: var(--stone);
  text-decoration: line-through;
  letter-spacing: 0;
  margin-left: 6px;
  vertical-align: middle;
  font-weight: 400;
}
.sale-ribbon {
  position: absolute;
  top: 13px;
  right: 0;
  background: var(--clay);
  color: white;
  font-size: 9px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  padding: 4px 12px;
  font-weight: 500;
}

.shop-link {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--stone);
  font-weight: 500;
  transition: color 0.15s;
}

.shop-link:hover {
  color: var(--ink);
}

.no-results { grid-column: 1/-1; text-align: center; padding: 80px 0; color: var(--stone); }
.no-results p:first-child { font-family: var(--font-serif); font-size: 26px; color: var(--ink); margin-bottom: 8px; }

/* ══════════════════════════════════════
   TRUST BADGES
══════════════════════════════════════ */
.trust-strip {
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 22px 44px; display: flex; align-items: center; justify-content: center;
}
.trust-item {
  display: flex; align-items: center; gap: 10px; padding: 0 44px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.03em; color: var(--ink); white-space: nowrap;
}
.trust-item + .trust-item { border-left: 1px solid var(--border); }
.trust-icon {
  width: 17px;
  height: 17px;
  color: var(--forest);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  flex-shrink: 0;
}

/* ══════════════════════════════════════
   HOW IT WORKS
══════════════════════════════════════ */
.how-section {
  background: var(--offwhite);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 88px 44px;
}
.how-inner { max-width: var(--max); margin: 0 auto; }
.eyebrow {
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--stone); margin-bottom: 12px;
}
.how-inner > h2 {
  font-family: var(--font-serif);
  font-size: clamp(32px, 3vw, 48px);
  letter-spacing: -1px;
  line-height: 1.05;
  margin-bottom: 64px;
  max-width: 480px;
}
.how-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 48px; }
.how-num {
  font-family: var(--font-serif);
  font-size: 36px;
  color: rgba(26,26,20,0.08);
  line-height: 1;
  letter-spacing: -1px;
  margin-bottom: 18px;
}
.how-card h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  letter-spacing: -0.3px;
  margin-bottom: 10px;
}
.how-card p { font-size: 13px; color: var(--stone); line-height: 1.75; }

/* ══════════════════════════════════════
   NEWSLETTER
══════════════════════════════════════ */
.newsletter { background: var(--forest); padding: 88px 44px; text-align: center; }
.newsletter h2 {
  font-family: var(--font-serif);
  font-size: clamp(32px, 3.5vw, 52px);
  color: white;
  letter-spacing: -1.5px;
  line-height: 1.05;
  margin-bottom: 12px;
}
.newsletter .nl-sub {
  color: rgba(255,255,255,0.48);
  font-size: 14px;
  margin-bottom: 36px;
  letter-spacing: 0.01em;
}
.nl-form { display: flex; max-width: 440px; margin: 0 auto; }
.nl-form input {
  flex: 1; padding: 15px 20px;
  border: 1px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.08);
  color: white; font-size: 13px; font-family: var(--font-sans);
  outline: none; border-right: none; letter-spacing: 0.02em;
}
.nl-form input::placeholder { color: rgba(255,255,255,0.33); }
.nl-form button {
  background: white; color: var(--forest); border: none;
  padding: 15px 28px; font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.13em; cursor: pointer;
  font-family: var(--font-sans); white-space: nowrap; transition: background 0.2s;
}
.nl-form button:hover { background: var(--cream); }

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.footer-main {
  max-width: var(--max); margin: 0 auto;
  padding: 64px 44px 52px;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  border-top: 1px solid var(--border);
}
.footer-logo {
  display: block; font-family: var(--font-serif); font-size: 21px;
  color: var(--ink); margin-bottom: 14px; font-style: normal;
}
.footer-logo em { color: var(--forest); font-style: italic; }
.footer-brand p { font-size: 13px; color: var(--stone); line-height: 1.75; max-width: 260px; }
.footer-col h4 {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--stone); margin-bottom: 18px; font-weight: 500;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 13px; color: var(--ink); transition: color 0.15s; }
.footer-col a:hover { color: var(--forest); }
.footer-bar {
  max-width: var(--max); margin: 0 auto; padding: 20px 44px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; color: var(--stone);
}

/* ══════════════════════════════════════
   HERO BANNER
══════════════════════════════════════ */
.hero-banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 70vh;
  max-height: 720px;
}
.hero-panel {
  overflow: hidden;
  position: relative;
}
.hero-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.65s ease;
}
.hero-panel:hover img {
  transform: scale(1.04);
}
.hero-shop-btn {
  display: inline-block;
  position: absolute;
  bottom: 32px;
  left: 32px;
  background: var(--white);
  color: var(--ink);
  border: none;
  padding: 13px 28px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.hero-shop-btn:hover {
  background: var(--ink);
  color: var(--white);
}

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 1100px) {
  nav { padding: 0 28px; }
  .section { padding-left: 28px; padding-right: 28px; }
  .how-section, .newsletter, .trust-strip { padding-left: 28px; padding-right: 28px; }
  .how-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-main { grid-template-columns: 1fr 1fr; padding-left: 28px; padding-right: 28px; }
  .footer-bar { padding-left: 28px; padding-right: 28px; }
}
@media (max-width: 768px) {
  /* prevent any element from causing horizontal scroll */
  body { overflow-x: hidden; }

  /* banner */
  .hero-banner { height: 50vw; max-height: none; }
  .hero-shop-btn { bottom: 12px; left: 12px; padding: 8px 14px; font-size: 9px; }

  /* context strip */
  .context-strip { padding: 10px 16px; }

  /* nav: logo + nav-right on row 1, filters on row 2 */
  .nav-wrap { overflow: hidden; }
  nav {
    padding: 0 16px;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    height: auto;
    gap: 0;
  }
  .nav-logo {
    grid-column: 1;
    grid-row: 1;
    padding: 14px 0;
  }
  .nav-right {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    padding: 14px 0;
  }
  .nav-filters {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-top: 1px solid var(--border);
    height: 42px;
    padding: 0;
    gap: 0;
  }
  .nav-chip { padding: 0 12px; font-size: 10px; }
  .sort-select { max-width: 88px; font-size: 11px; padding: 6px 20px 6px 8px; }
  .search-field input { width: 100px; transition: none; }
  .search-field input:focus { width: 100px; }

  /* products */
  .section { padding: 28px 16px 56px; }
  .section { width: 100%; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 10px; }
  .product-image { aspect-ratio: 3/5; margin-bottom: 8px; }
  .product-name { font-size: 13px; height: calc(1.3em * 2); }
  .product-price { font-size: 17px; }
  .product-brand { font-size: 8px; }
  .ftag { font-size: 10px; }
  .shop-link { font-size: 9px; }
  .product-footer { padding-top: 10px; }

  .how-section { padding: 64px 16px; }
  .how-inner > h2 { margin-bottom: 40px; }
  .how-grid { grid-template-columns: 1fr; gap: 32px; }

  .newsletter { padding: 64px 16px; }
  .nl-form { flex-direction: column; }
  .nl-form input { border-right: 1px solid rgba(255,255,255,0.15); border-bottom: none; }
  .nl-form button { padding: 15px; }

  .trust-strip { padding: 16px 16px; flex-wrap: wrap; gap: 0; }
  .trust-item { padding: 12px 0; width: 100%; }
  .trust-item + .trust-item { border-left: none; border-top: 1px solid var(--border); }

  .footer-main { grid-template-columns: 1fr; padding: 40px 16px 32px; }
  .footer-bar { padding: 16px 16px; flex-direction: column; gap: 8px; text-align: center; }
}
