/* ============================================================
   FLAGSHIP — site-wide skin
   Loaded after styles.css. Overrides the editorial bone/serif
   base with the "Flagship" commercial look (homepages/01-flagship.html):
   Archivo throughout, white paper + warm panels, single clay accent,
   squared corners. Linked on every page so the whole site matches.
   Remove the <link rel="stylesheet" href="flagship.css"> tags to revert.
   ============================================================ */

:root {
  --bone:        #ffffff;   /* page background */
  --bone-2:      #f5f2ea;   /* warm panels */
  --ink:         #18160f;
  --ink-soft:    #6e6a5d;
  --clay:        #b4452a;   /* single accent */
  --clay-deep:   #8f3621;
  --sale:        #b4452a;
  --line:        #e6e1d4;
  --line-strong: #d4ccba;

  --display: "Archivo", system-ui, sans-serif;
  --body:    "Archivo", system-ui, sans-serif;

  --radius: 4px;
}

body { background-image: none; font-size: 15.5px; }

h1, h2, h3 { font-weight: 700; letter-spacing: -0.01em; }
.section__title { font-weight: 700; }
.eyebrow { color: var(--clay); letter-spacing: 0.16em; font-weight: 700; }

/* ---------- Promo bar ---------- */
.promo { background: var(--ink); color: var(--bone-2); }
.promo__track span { opacity: 1; font-weight: 500; }
.promo__track span[aria-hidden] { opacity: 0.4; }

/* ---------- Header ---------- */
.header { background: rgba(255, 253, 249, 0.94); border-bottom: 1px solid var(--line); }
.wordmark__text { font-family: var(--display); font-weight: 900; letter-spacing: 0.18em; text-transform: uppercase; }
.nav a { font-weight: 600; }
.nav a:hover { color: var(--clay); }
.cart-count { background: var(--clay); color: #fff; }

/* ---------- Buttons ---------- */
.btn { border-radius: 3px; font-weight: 700; letter-spacing: 0.01em; text-transform: none; }
.btn--solid { background: var(--ink); color: #fff; }
.btn--solid:hover { background: var(--clay); border-color: var(--clay); }
.btn--ghost { border-radius: 3px; border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.link-arrow { color: var(--ink-soft); font-weight: 600; }
.link-arrow:hover { color: var(--clay); }

/* ============================================================
   FLAGSHIP HERO — full-bleed image with overlaid copy
   ============================================================ */
.hero--flagship {
  position: relative;
  display: grid;
  align-items: end;
  min-height: min(78vh, 760px);
  padding: 0;
  max-width: none;
  margin: 0;
  overflow: hidden;
}
.hero--flagship .hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero--flagship .hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.hero--flagship .hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(12deg, rgba(20,16,8,0.66) 0%, rgba(20,16,8,0.08) 58%);
}
.hero--flagship .hero__copy {
  position: relative; z-index: 1; color: #fff;
  max-width: var(--maxw); width: 100%;
  margin: 0 auto; padding: 0 var(--gutter) clamp(2.5rem, 5vw, 4rem);
}
.hero--flagship .eyebrow { color: #f0c5b6; }
.hero--flagship .hero__title { color: #fff; font-weight: 900; letter-spacing: -0.02em; line-height: 1.04; max-width: 15ch; }
.hero--flagship .hero__title em { font-style: normal; color: #fff; font-weight: 900; }
.hero--flagship .hero__lede { color: #ede8dc; max-width: 46ch; }
.hero--flagship .hero__actions { margin-top: 1.4rem; }
.hero--flagship .hero__trust {
  margin-top: 1.1rem; font-size: 0.76rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: #d8d2c2;
}
@media (max-width: 620px) {
  .hero--flagship { min-height: 70vh; }
  .hero--flagship .hero__title { font-size: clamp(2rem, 9vw, 2.8rem); }
}

/* ---------- Category tiles ---------- */
.flag-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.9rem; }
.flag-cat { position: relative; display: block; border-radius: 6px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--bone-2); }
.flag-cat .media { position: absolute; inset: 0; height: 100%; border-radius: 0; }
.flag-cat .media img { width: 100%; height: 100%; object-fit: cover; }
.flag-cat__label {
  position: absolute; left: 0.9rem; bottom: 0.85rem; z-index: 1;
  background: #fff; color: var(--ink); padding: 0.45rem 0.9rem;
  font-weight: 700; font-size: 0.85rem; border-radius: 3px;
}
.flag-cat__count {
  position: absolute; right: 0.9rem; bottom: 0.85rem; z-index: 1;
  background: rgba(20,16,8,0.55); color: #fff; padding: 0.3rem 0.55rem;
  font-size: 0.72rem; border-radius: 3px;
}
.flag-cat:hover .flag-cat__label { color: var(--clay); }
@media (max-width: 760px) { .flag-cats { grid-template-columns: 1fr 1fr; } }

/* ---------- Product filters as chips ---------- */
.product-filters { display: flex; flex-wrap: wrap; gap: 0.55rem; border: 0; padding: 0; margin: -0.1rem 0 1.4rem; }
.product-filter {
  display: inline-flex; align-items: center; min-height: 40px; width: auto;
  grid-template-columns: none; border: 1px solid var(--line); background: #fff;
  border-radius: 999px; font-weight: 600; padding: 0.55rem 1rem; text-align: center;
}
.product-filter::before, .product-filter__index, .product-filter__count { display: none; }
.product-filter__copy { display: block; }
.product-filter__label { font-size: 0.84rem; letter-spacing: 0; line-height: 1; text-transform: none; white-space: nowrap; }
.product-filter.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Product cards ---------- */
.product-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.product-card .media { border-radius: 0; }
.product-card__body { padding: 0.85rem 1rem 1rem; }
.product-card__name { font-weight: 700; }
.product-card__meta { color: var(--ink-soft); }
.product-card__price .price { font-weight: 700; }
.badge { background: #fff; color: var(--ink); border-radius: 3px; font-weight: 700; }
.badge--sale { background: var(--clay); color: #fff; }
.quick-add, .product-card__actions button {
  border-radius: 5px; background: var(--ink); color: #fff;
  font-weight: 700; border-color: var(--ink);
}
.quick-add:hover { background: var(--clay); border-color: var(--clay); }
.size-picker input:checked + span {
  background: var(--ink); color: #fff; border-color: var(--ink);
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink);
}
.size-picker input:checked + span small { color: rgba(255,255,255,0.85); }

/* ---------- Proof / testimonials strip ---------- */
.proof { background: var(--bone-2); }
.proof__inner { max-width: var(--maxw); margin: 0 auto; padding: clamp(2.2rem, 4vw, 3rem) var(--gutter); display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.proof__item { font-size: 0.95rem; line-height: 1.55; }
.proof__stars { color: var(--clay); letter-spacing: 2px; margin-bottom: 0.5rem; font-size: 0.85rem; }
.proof__item cite { display: block; margin-top: 0.7rem; font-style: normal; font-size: 0.76rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
@media (max-width: 760px) { .proof__inner { grid-template-columns: 1fr; gap: 1.4rem; } }

/* ---------- Steps strip (kept from prior layout, reskinned) ---------- */
.steps { background: var(--bone-2); }
.steps__inner { max-width: var(--maxw); margin: 0 auto; padding: 1.6rem var(--gutter); display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.steps__item { display: flex; gap: 0.8rem; align-items: flex-start; font-size: 0.9rem; }
.steps__num { background: var(--clay); color: #fff; font-weight: 800; width: 27px; height: 27px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; font-size: 0.8rem; }
.steps__item b { display: block; font-weight: 700; }
.steps__item span { color: var(--ink-soft); }
@media (max-width: 760px) { .steps__inner { grid-template-columns: 1fr; } }

/* ---------- Value props (promise) as bordered cards ---------- */
.promise { max-width: var(--maxw); margin: 0 auto; }
.promise__item { border: 1px solid var(--line); border-radius: 6px; padding: 1.4rem; background: #fff; }
.promise__num { color: var(--clay); font-weight: 800; }
.promise__item h3 { font-weight: 700; }
.promise__item p { color: var(--ink-soft); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; padding: var(--section-y) var(--gutter); }
.faq .section__title { text-align: center; margin-bottom: 1.4rem; }
.faq details { border: 1px solid var(--line); border-radius: 6px; margin-bottom: 0.7rem; background: #fff; }
.faq summary { font-weight: 700; font-size: 0.95rem; padding: 1rem 1.2rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.25rem; color: var(--clay); font-weight: 800; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { padding: 0 1.2rem 1rem; color: var(--ink-soft); font-size: 0.92rem; }
.faq__more { text-align: center; margin-top: 1rem; font-size: 0.92rem; color: var(--ink-soft); }
.faq__more a { color: var(--clay); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Newsletter ---------- */
.signup { background: var(--ink); color: var(--bone-2); }
.signup__title { color: #fff; font-weight: 900; }
.signup p { color: #bdb7a6; }
.signup__form input { border-radius: 3px; border: 1px solid #4a463a; background: transparent; color: #fff; }
.signup__form input::placeholder { color: #8b8675; }
.signup__form .btn--solid { background: #fff; color: var(--ink); }
.signup__form .btn--solid:hover { background: var(--bone-2); }
.signup__offer { display: inline-block; background: var(--clay); color: #fff; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.4rem 0.8rem; border-radius: 999px; margin-bottom: 0.9rem; }

/* ---------- Footer ---------- */
/* styles.css ships a dark footer with cream text + a texture overlay;
   convert it to a light flagship footer with ink/clay text. */
.footer { border-top: 1px solid var(--line); background: #fff; color: var(--ink-soft); }
.footer::before { display: none; }
.footer__brand p { color: var(--ink-soft); }
.footer__brand .wordmark { color: var(--ink); }
.footer__col h3 { color: var(--ink); font-weight: 700; }
.footer__col a { color: var(--ink-soft); }
.footer__col a:hover { color: var(--clay); }
.footer__bottom { color: var(--ink-soft); border-top-color: var(--line); }
.footer__bottom p { color: var(--ink-soft); }
.footer__legal a, .footer__legal button { color: var(--ink-soft); }
.footer__legal a:hover, .footer__legal button:hover { color: var(--clay); }
.footer__pay span { color: var(--ink-soft); border-color: var(--line); background: var(--bone-2); }

/* ---------- Cart drawer accents ---------- */
.cart-summary { background: #fff; }
.cart-checkout, .cart-pay-method--full { border-radius: 4px; }

/* ---------- Generic page content (sub-pages) ---------- */
.page-hero, .legal-hero, .content-hero { background: var(--bone-2); }
a { text-underline-offset: 2px; }

@media (max-width: 900px) {
  .product-gallery {
    order: 2;
  }

  .product-detail__info {
    order: 1;
  }
}

@media (max-width: 620px) {
  .hero--flagship {
    min-height: min(86vh, 780px);
  }

  .hero--flagship .hero__bg::after {
    background:
      linear-gradient(0deg, rgba(12, 10, 6, 0.78) 0%, rgba(12, 10, 6, 0.48) 42%, rgba(12, 10, 6, 0.12) 72%),
      linear-gradient(90deg, rgba(12, 10, 6, 0.34) 0%, rgba(12, 10, 6, 0.06) 68%);
  }

  .hero--flagship .hero__copy {
    padding-bottom: clamp(2rem, 8vw, 3rem);
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.38);
  }

  body.analytics-consent-visible .hero--flagship .hero__copy {
    padding-bottom: clamp(5.8rem, 24vw, 7rem);
  }

  body.analytics-consent-visible .hero--flagship .hero__trust {
    max-width: 30ch;
    font-size: 0.68rem;
    line-height: 1.35;
    letter-spacing: 0.04em;
  }

  .hero--flagship .eyebrow,
  .hero--flagship .hero__trust {
    color: #fff1e7;
  }

  .hero--flagship .hero__lede {
    color: #fffaf2;
  }

  .product-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.5rem;
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    padding-bottom: 0.35rem;
    scrollbar-width: none;
  }

  .product-filters::-webkit-scrollbar {
    display: none;
  }

  .product-filter {
    flex: 0 0 auto;
    min-width: max-content;
  }

  .product-detail {
    padding-top: 0.85rem;
    gap: 0.95rem;
  }

  .product-detail__info {
    border-inline: 0;
    margin-inline: calc(-1 * var(--gutter));
    padding: 0.9rem var(--gutter) 1rem;
  }

  .product-detail__info h1 {
    font-size: clamp(2rem, 11vw, 3rem);
    line-height: 0.98;
  }

  .product-detail__lede {
    margin-top: 0.55rem;
    line-height: 1.45;
  }

  .product-detail__price {
    margin-top: 0.65rem;
  }

  .product-detail__price .price {
    font-size: 1.45rem;
  }

  .product-detail__buy {
    margin-top: 0.8rem;
  }

  .product-trust-strip {
    grid-template-columns: 1fr;
    margin-top: 0.75rem;
    padding: 0.65rem;
    font-size: 0.78rem;
  }

  .product-detail__info > .detail-list {
    display: none;
  }

  .product-gallery {
    display: flex;
    gap: 0.65rem;
    margin-inline: calc(-1 * var(--gutter));
    overflow-x: auto;
    padding: 0 var(--gutter) 0.35rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .product-gallery::-webkit-scrollbar {
    display: none;
  }

  .product-gallery__item {
    flex: 0 0 74vw;
    scroll-snap-align: start;
  }

  .product-gallery__item:first-child {
    grid-column: auto;
  }

  .product-gallery figcaption {
    display: none;
  }
}
