/* ============================================================
   YEME — shared stylesheet for secondary pages
   (index.html keeps its own inline styles; this file is for
   about / collections / product / terms / privacy / contact /
   help / tracking, so the whole site reads as one system.)
   ============================================================ */

:root {
  --bg: #f7f7f7;
  --bg-alt: #bebaae;
  --ink: #191919;
  --ink-soft: #5c5c5c;
  --line: rgba(25,25,25,0.16);
  --accent: #123524;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}
.serif { font-family: 'Fraunces', serif; }
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ---------- HEADER (shared across secondary pages) ---------- */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 22px 5vw;
  background: var(--ink);
  border-bottom: 1px solid rgba(247,247,247,0.15);
}
.logo-word { grid-column: 2; justify-self: center; display: flex; align-items: center; height: 100%; line-height: 1; }
.logo-img { height: 14px; display: block; filter: brightness(0) invert(1); }
nav.links {
  grid-column: 1; justify-self: start; min-width: 0;
  display: flex; align-items: center; gap: 36px; line-height: 1;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(247,247,247,0.75);
}
nav.links a { text-decoration: none; }
nav.links a:hover { color: var(--bg-alt); }
.links-secondary {
  display: flex; align-items: center; gap: 22px; line-height: 1;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(247,247,247,0.75);
}
.links-secondary a { color: inherit; text-decoration: none; }
.links-secondary a:hover { color: var(--bg-alt); }
.nav-right { grid-column: 3; justify-self: end; min-width: 0; display: flex; align-items: center; gap: 28px; }
.icon-btn { color: #fff; display: flex; align-items: center; gap: 4px; font-size: 13px; letter-spacing: 0.1em; cursor: pointer; position: relative; }
.bag-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 15px; height: 15px; padding: 0 3px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 9px; font-weight: 600;
}
.menu-toggle {
  display: none; grid-column: 1; justify-self: start;
  flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px;
}
.menu-toggle span { display: block; width: 22px; height: 1.5px; background: #fff; }
.mobile-menu {
  position: fixed; inset: 0; z-index: 99; background: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 32px;
  opacity: 0; pointer-events: none; transition: opacity 0.35s ease;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a { color: var(--bg); font-family: 'Fraunces', serif; font-size: 26px; font-weight: 300; text-decoration: none; }
.mobile-menu a:hover { color: var(--bg-alt); }
@media (max-width: 860px) {
  nav.links { display: none; }
  .links-secondary { display: none; }
  .menu-toggle { display: flex; }
}

/* ---------- PAGE HERO (full-width top image) ---------- */
.page-hero { position: relative; height: 70vh; min-height: 420px; overflow: hidden; }
.page-hero img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-caption {
  position: absolute; left: 5vw; bottom: 8vh; z-index: 2; color: #fdfcfa; max-width: 640px;
}
.page-hero-caption .eyebrow { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.75); margin-bottom: 14px; }
.page-hero-caption h1 { font-size: clamp(34px, 5vw, 58px); font-weight: 300; margin: 0; line-height: 1.1; }
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 30%, rgba(0,0,0,0.55) 100%);
}

/* ---------- GENERIC SECTION LAYOUT ---------- */
.section { padding: 90px 5vw; max-width: 1100px; margin: 0 auto; }
.section-narrow { max-width: 720px; }
.section-eyebrow { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 16px; }
.section-title { font-size: clamp(28px, 4vw, 42px); font-weight: 300; margin: 0 0 24px 0; }
.lede { font-size: 19px; line-height: 1.75; color: var(--ink); font-weight: 300; }
.body-copy { font-size: 15px; line-height: 1.9; color: var(--ink-soft); font-weight: 300; }
.body-copy + .body-copy { margin-top: 20px; }

/* ---------- BUTTONS ---------- */
.btn-dark {
  display: inline-block; padding: 15px 30px; background: var(--ink); color: var(--bg);
  text-decoration: none; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  border: none; cursor: pointer; transition: background 0.3s ease, color 0.3s ease;
}
.btn-dark:hover { background: var(--accent); color: #fff; }
.btn-outline {
  display: inline-block; padding: 14px 28px; background: transparent; color: var(--ink);
  border: 1px solid var(--ink); text-decoration: none; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  cursor: pointer; transition: background 0.3s ease, color 0.3s ease;
}
.btn-outline:hover { background: var(--ink); color: var(--bg); }

/* ---------- PRODUCT GRID (Collections page) ---------- */
.filter-row {
  display: flex; gap: 28px; padding: 0 5vw; margin: 140px 0 10px;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft);
}
.filter-row button { background: none; border: none; padding: 0; font: inherit; letter-spacing: inherit; color: inherit; cursor: pointer; }
.filter-row button.active { color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 4px; }
.product-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--line);
  padding: 0 0 0 0; margin: 0 0 0 0;
}
.product-card {
  position: relative; background: var(--bg); overflow: hidden; aspect-ratio: 4/5;
  text-decoration: none; color: var(--ink); display: block;
}
.product-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.product-card:hover img { transform: scale(1.04); }
.product-card .sold-out-badge {
  position: absolute; top: 16px; left: 16px; z-index: 2; background: rgba(255,255,255,0.88);
  padding: 6px 14px; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink);
}
.product-info {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 22px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.55));
  color: #fdfcfa; display: flex; justify-content: space-between; align-items: flex-end;
}
.product-info .name { font-family: 'Fraunces', serif; font-size: 19px; font-weight: 300; }
.product-info .price { font-size: 13px; opacity: 0.85; }
@media (max-width: 860px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .filter-row { margin-top: 110px; flex-wrap: wrap; }
}
@media (max-width: 520px) {
  .product-grid { grid-template-columns: 1fr; }
}

/* ---------- PRODUCT DETAIL PAGE ---------- */
.product-hero { display: grid; grid-template-columns: 1.2fr 1fr; align-items: start; }
.product-media { display: flex; flex-direction: column; }
.product-media img { width: 100%; height: auto; object-fit: cover; display: block; }
.product-copy {
  display: flex; flex-direction: column; justify-content: flex-start;
  padding: 90px 5vw; max-width: 480px;
  position: sticky; top: 110px; align-self: start;
}
.product-copy .eyebrow { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 16px; }
.product-copy h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 300; margin: 0 0 14px 0; }
.product-copy .price { font-size: 20px; font-weight: 300; margin-bottom: 26px; }
.status-tag { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 12px; display: inline-block; margin-bottom: 26px; }
.status-tag.live { background: rgba(18,53,36,0.1); color: var(--accent); }
.status-tag.sold { background: rgba(25,25,25,0.08); color: var(--ink-soft); }
.status-tag.soon { background: rgba(190,186,174,0.35); color: var(--ink); }
.qty-row { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.qty-row .btn-dark { min-width: 220px; text-align: center; }
.qty-row .btn-dark:disabled { background: #ccc; cursor: not-allowed; }
.product-story { margin-top: 34px; padding-top: 28px; border-top: 1px solid var(--line); }
.product-story p { font-size: 15px; line-height: 1.9; color: var(--ink-soft); font-weight: 300; margin: 0; }
@media (max-width: 860px) {
  .product-hero { grid-template-columns: 1fr; }
  .product-copy { position: static; padding: 56px 6vw; max-width: none; }
}

/* ---------- EDITORIAL PAGE (About) ---------- */
.editorial-block { max-width: 640px; margin: 0 auto; padding: 70px 5vw; }
.editorial-block + .editorial-block { border-top: 1px solid var(--line); }
.editorial-block .cap { font-family: 'Fraunces', serif; font-style: italic; font-size: 22px; line-height: 1.5; color: var(--ink); }

/* ---------- SIMPLE FORM (Contact / Tracking) ---------- */
.form-field { margin-bottom: 22px; }
.form-field label { display: block; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 8px; }
.form-field input, .form-field textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--line); background: #fff;
  font-family: 'Inter', sans-serif; font-size: 14px; color: var(--ink);
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: 12px; color: var(--ink-soft); margin-top: 14px; }

/* ---------- LEGAL PAGE ---------- */
.legal h2 { font-family: 'Fraunces', serif; font-weight: 300; font-size: 20px; margin: 44px 0 12px 0; }
.legal h2:first-of-type { margin-top: 0; }
.legal p, .legal li { font-size: 14px; line-height: 1.85; color: var(--ink-soft); font-weight: 300; }
.legal ul { padding-left: 20px; }
.legal .updated { font-size: 12px; color: var(--ink-soft); margin-bottom: 40px; display: block; }

/* ---------- FOOTER (matches index.html) ---------- */
footer { padding: 70px 5vw 34px; background: var(--ink); color: var(--bg); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 60px; }
.foot-brand .logo-img { height: 20px; margin-bottom: 18px; }
.foot-brand p { font-size: 12px; color: rgba(247,247,247,0.6); line-height: 1.7; margin-top: 20px; max-width: 260px; font-weight: 300; }
.foot-col h5 { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 20px 0; color: rgba(247,247,247,0.55); font-weight: 500; }
.foot-col a { display: block; font-size: 13px; color: var(--bg); text-decoration: none; margin-bottom: 12px; font-weight: 300; }
.foot-col a:hover { color: var(--bg-alt); }
.foot-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: 11px; color: rgba(247,247,247,0.55); letter-spacing: 0.04em; padding-top: 26px; border-top: 1px solid rgba(247,247,247,0.15);
}
.foot-logo-big { text-align: center; padding: 50px 0 10px; }
.foot-logo-big img { width: 100%; max-width: 900px; height: auto; filter: brightness(0) invert(1); opacity: 0.18; margin: 0 auto; }
@media (max-width: 780px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
