/* site.css — shared chrome + design system for karenapparel.com
   Extracted from the original single-page index.html so every page
   (index/shop/collections/about/fitting) renders identical nav/footer/
   trust-strip/typography with zero drift. See CLAUDE.md for site conventions. */
:root {
  color-scheme: dark;
  --gold: #d9b88a;
  --ink: #14100c;
  --panel: #1c1712;
  --hairline: rgba(217, 184, 138, 0.28);
  --body-copy: #e6dcd2;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--ink);
  color: var(--body-copy);
}
a { color: inherit; }
img { max-width: 100%; display: block; }

/* ---------- Nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.5rem;
  background: rgba(20, 16, 12, 0.94);
  border-bottom: 1px solid var(--hairline);
  backdrop-filter: blur(6px);
}
.site-nav .brand { display: flex; align-items: center; gap: 0.6rem; }
.site-nav .brand img { width: 34px; height: 34px; border-radius: 6px; }
.site-nav .brand .wordmark { display: flex; flex-direction: column; line-height: 1.15; }
.site-nav .brand .wordmark .name { color: var(--gold); font-size: 1rem; font-weight: 700; letter-spacing: 0.02em; }
.site-nav .brand .wordmark .sub { font-size: 0.58rem; letter-spacing: 0.1em; color: #b89b7a; text-transform: uppercase; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a { text-decoration: none; color: #e6dcd2; }
.nav-links a:hover, .nav-links a.is-active { color: var(--gold); }
.nav-icons { display: flex; align-items: center; gap: 1rem; font-size: 0.95rem; position: relative; }
.nav-cart-btn { position: relative; background: none; border: 1px solid var(--hairline); border-radius: 4px; color: #e6dcd2; font-size: 0.95rem; padding: 0.45rem 0.65rem; cursor: pointer; }
.nav-cart-count { position: absolute; top: -6px; right: -6px; background: var(--gold); color: #1b1712; font-size: 0.62rem; font-weight: 700; border-radius: 999px; min-width: 1.1rem; height: 1.1rem; display: flex; align-items: center; justify-content: center; padding: 0 0.2rem; }
.nav-cta {
  display: inline-block;
  background: var(--gold);
  color: #1b1712;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.55rem 1.1rem;
  border-radius: 4px;
  white-space: nowrap;
  border: none;
  cursor: pointer;
}
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--hairline);
  border-radius: 4px;
  width: 40px;
  height: 36px;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--gold); }

/* ---------- Page hero (secondary pages: shop/collections/about/fitting) ---------- */
.page-hero {
  position: relative;
  padding: 3rem 1.5rem 2rem;
  border-bottom: 1px solid var(--hairline);
  background: var(--panel);
}
.page-hero .shell { padding: 0; }
.page-hero h1 { margin: 0 0 0.5rem; font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--gold); letter-spacing: 0.01em; }
.page-hero p { margin: 0; font-size: 0.95rem; color: #d8ccc0; max-width: 60ch; line-height: 1.5; }
.breadcrumb { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: #b8ab9f; margin: 0 0 0.8rem; }
.breadcrumb a { color: var(--gold); text-decoration: none; }

/* ---------- Hero (homepage only) ---------- */
.hero {
  position: relative;
  min-height: 74vh;
  display: flex;
  align-items: center;
  background: #1a140f url('cuts/hero-group-shot.png') center 30% / cover no-repeat;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20,16,12,0.92) 0%, rgba(20,16,12,0.45) 48%, rgba(20,16,12,0.05) 75%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; max-width: 1200px; margin: 0 auto; padding: 2rem 1.5rem; }
.hero-eyebrow-list {
  position: absolute;
  top: 1.75rem;
  right: 1.5rem;
  z-index: 2;
  text-align: right;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: #fff;
  line-height: 1.7;
  text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  line-height: 1.05;
  margin: 0 0 0.6rem;
  color: var(--gold);
  letter-spacing: 0.01em;
  max-width: 10ch;
}
.hero .sub-line {
  font-size: clamp(0.85rem, 1.6vw, 1.05rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 1.6rem;
  line-height: 1.5;
}

/* ---------- Section shell ---------- */
.shell { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ---------- Section heading (consistent hierarchy across pages) ---------- */
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1.2rem; gap: 1rem; flex-wrap: wrap; }
.section-head h2 { margin: 0; font-size: 1.6rem; letter-spacing: 0.02em; color: #fff; text-transform: uppercase; }
.section-head a { font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); text-decoration: none; white-space: nowrap; }

/* ---------- Category grid ---------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--hairline);
  border-left: 1px solid var(--hairline);
}
.category-card {
  position: relative;
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.category-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 12%; z-index: 0; }
.category-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,16,12,0.0) 40%, rgba(20,16,12,0.95) 82%);
  z-index: 1;
}
.category-copy { position: relative; z-index: 2; padding: 1.2rem; }
.category-copy h3 { margin: 0 0 0.15rem; font-size: 1.2rem; letter-spacing: 0.03em; text-transform: uppercase; color: #fff; }
.category-copy p { margin: 0 0 0.9rem; font-size: 0.8rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--gold); }
.category-copy a.shop-link {
  display: inline-block;
  background: var(--gold);
  color: #1b1712;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.5rem 0.9rem;
  border-radius: 4px;
}

/* ---------- Trust strip ---------- */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 1.5rem;
  border-bottom: 1px solid var(--hairline);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #d8ccc0;
  background: var(--panel);
}
.trust-item { display: flex; align-items: center; gap: 0.5rem; white-space: nowrap; }
.trust-item .icon { font-size: 1rem; color: var(--gold); }

/* ---------- Product grid / cards (click-to-add) ---------- */
.featured-collection { padding: 3rem 0 1rem; }
.shop-filter-bar { margin-bottom: 1.5rem; }
.shop-search-input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  background: #0e0b08;
  color: #f3ece6;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}
.shop-category-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.shop-filter-btn {
  background: none;
  border: 1px solid var(--hairline);
  color: #d8ccc0;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.45rem 0.9rem;
  border-radius: 4px;
  cursor: pointer;
}
.shop-filter-btn:hover { border-color: var(--gold); color: var(--gold); }
.shop-filter-btn.is-active { background: var(--gold); color: #1b1712; border-color: var(--gold); }
.product-card[hidden] { display: none; }
.product-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.product-grid.product-grid-full { grid-template-columns: repeat(4, 1fr); }
.product-card { background: var(--panel); border: 1px solid var(--hairline); border-radius: 6px; overflow: hidden; text-align: center; display: flex; flex-direction: column; }
.product-card img { width: 100%; height: 190px; object-fit: cover; object-position: center 22%; }
.product-grid:not(.product-grid-full) .product-card img { height: 130px; }

/* ---------- Product gallery (Magento-style main image + thumbnail strip) ---------- */
.product-gallery .gallery-main { width: 100%; height: 190px; object-fit: cover; object-position: center 22%; display: block; cursor: zoom-in; }
.product-gallery .gallery-thumbs { display: flex; gap: 0.4rem; padding: 0.4rem; background: var(--panel); }
.product-gallery .gallery-thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 3px;
  cursor: pointer;
  opacity: 1;
  border: 2px solid var(--hairline);
  transition: border-color 0.15s ease, opacity 0.15s ease;
}
.product-gallery .gallery-thumb:hover { opacity: 0.85; border-color: var(--gold); }
.product-gallery .gallery-thumb.is-active {
  opacity: 1;
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold);
}
.product-card .product-info { padding: 0.7rem 0.5rem 0.9rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.product-card .product-name { font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase; color: #e6dcd2; margin: 0; }
.product-card .product-desc { font-size: 0.68rem; color: #b8ab9f; margin: 0; line-height: 1.4; flex: 1; }
.product-card .product-price { font-size: 0.85rem; font-weight: 700; color: var(--gold); margin: 0; }

/* ---------- Gallery lightbox (click .gallery-main to zoom) ---------- */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(10, 8, 6, 0.92);
  z-index: 1000;
  cursor: zoom-out;
  padding: 2rem;
}
.gallery-lightbox.is-open { display: flex; }
.gallery-lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border: 2px solid var(--gold);
  border-radius: 4px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
  cursor: default;
}
.gallery-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(20, 16, 12, 0.7);
  border: 1px solid var(--hairline);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.gallery-lightbox-nav:hover { background: rgba(20, 16, 12, 0.92); border-color: var(--gold); }
.gallery-lightbox-prev { left: 1.5rem; }
.gallery-lightbox-next { right: 1.5rem; }
@media (max-width: 600px) {
  .gallery-lightbox-prev { left: 0.5rem; }
  .gallery-lightbox-next { right: 0.5rem; }
}
.product-card .product-add {
  margin-top: 0.4rem;
  background: var(--gold);
  color: #1b1712;
  border: none;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.5rem 0.6rem;
  cursor: pointer;
}
.product-card .product-add:hover { filter: brightness(1.08); }
.product-card .product-add.is-added { background: #6b8f6b; color: #fff; }

/* ---------- Editorial strip ---------- */
.editorial-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding: 2.5rem 0; }
.editorial-panel {
  position: relative;
  min-height: 320px;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.editorial-panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; z-index: 0; }
.editorial-panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(20,16,12,0.15) 0%, rgba(20,16,12,0.55) 30%, rgba(20,16,12,0.97) 58%); z-index: 1; }
/* craftsmanship-photo.png has baked-in text/CTA in its source art that
   duplicates our real overlay copy -- fully obscure that panel's image so
   only our live heading/CTA renders (see karenapparel.com CLAUDE.md: assets
   are data, not source of truth for copy). */
.editorial-panel.editorial-panel-obscured::after { background: rgba(20,16,12,0.94); }
.editorial-copy { position: relative; z-index: 2; padding: 1.5rem 1.8rem; margin-left: auto; text-align: right; max-width: 55%; }
.editorial-copy h3 { margin: 0 0 0.8rem; font-size: 1.35rem; letter-spacing: 0.02em; color: #fff; text-transform: uppercase; line-height: 1.25; }
.editorial-copy a.cta {
  display: inline-block;
  background: var(--gold);
  color: #1b1712;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.55rem 1rem;
  border-radius: 4px;
}

/* ---------- Cart drawer + booking form (dark theme) ---------- */
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(380px, 100vw);
  background: var(--panel);
  border-left: 1px solid var(--hairline);
  z-index: 60;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
  padding: 1.4rem;
  overflow-y: auto;
}
.cart-drawer.is-open { transform: translateX(0); }
.cart-drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.cart-drawer-head h3 { margin: 0; color: #fff; letter-spacing: 0.02em; }
.cart-drawer-close { background: none; border: none; color: #d8ccc0; font-size: 1.2rem; cursor: pointer; }
.cart-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 55; opacity: 0; pointer-events: none; transition: opacity 0.2s ease; }
.cart-backdrop.is-open { opacity: 1; pointer-events: auto; }

.booking {
  margin: 2rem 0 3rem;
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 1.6rem;
}
.booking h3 { margin-top: 0; text-align: center; color: #fff; letter-spacing: 0.02em; }
.booking .menu-note { text-align: center; font-size: 0.85rem; color: #b8ab9f; margin: 0 0 1.2rem; }
.booking-form label { display: block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.03em; margin: 0.9rem 0 0.3rem; color: #d8ccc0; }
.booking-form input[type="text"],
.booking-form input[type="email"],
.booking-form input[type="tel"],
.booking-form input[type="number"],
.booking-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  font-size: 0.95rem;
  background: #0e0b08;
  color: #f3ece6;
}
.service-picker-row { display: flex; gap: 0.5rem; align-items: center; }
.address-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.address-row.address-row-3 { grid-template-columns: 1fr 1fr 1fr; }
.address-row .booking-form-label-inline { font-size: 0.75rem; color: #b89b7a; margin: 0.4rem 0 0.15rem; }
.service-picker-row input[type="text"] { flex: 1; }
.service-picker-row input[type="number"] { width: 4.5rem; }
.service-picker-hint { font-size: 0.8rem; color: #b8ab9f; min-height: 1.1em; }
.booking-cart, .cart-drawer-list { list-style: none; margin: 0.6rem 0; padding: 0; }
.booking-cart-item, .cart-drawer-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 0.9rem;
  gap: 0.5rem;
}
.booking-cart-remove, .cart-drawer-remove { background: none; border: none; color: #b8ab9f; cursor: pointer; font-size: 0.9rem; flex-shrink: 0; }
.booking-cart-total, .cart-drawer-total { font-weight: 600; font-size: 0.9rem; color: var(--gold); margin-top: 0.6rem; }
.cart-drawer-empty { color: #b8ab9f; font-size: 0.85rem; }
.btn { display: inline-block; border: none; border-radius: 6px; padding: 0.55rem 1rem; font-size: 0.9rem; cursor: pointer; }
.btn-ghost { background: #2a231c; color: #f3ece6; }
.btn-primary { background: var(--gold); color: #1b1712; margin-top: 1rem; width: 100%; font-weight: 700; }
.booking-form-status { font-size: 0.85rem; color: #b8ab9f; margin-top: 0.6rem; }

/* ---------- Konviction / prose sections ---------- */
.konviction {
  text-align: left;
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 1.6rem;
  margin: 2rem 0;
}
.konviction h3 { margin-top: 0; color: var(--gold); }
.konviction p { line-height: 1.6; color: #e6dcd2; margin: 0 0 1rem; }
.konviction p:last-child { margin-bottom: 0; }

/* ---------- Teaser blocks (homepage condensed content) ---------- */
.teaser-strip { padding: 2.5rem 0; }
.teaser-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.teaser-card { background: var(--panel); border: 1px solid var(--hairline); border-radius: 8px; padding: 1.3rem; }
.teaser-card h3 { margin: 0 0 0.5rem; font-size: 1rem; letter-spacing: 0.02em; color: var(--gold); text-transform: uppercase; }
.teaser-card p { margin: 0 0 0.9rem; font-size: 0.85rem; color: #d8ccc0; line-height: 1.5; }
.teaser-card a { font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); text-decoration: none; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 2rem 1.5rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  background: var(--ink);
}
.site-footer .brand-block .name { color: var(--gold); font-size: 1.1rem; font-weight: 700; letter-spacing: 0.03em; }
.footer-links { display: flex; gap: 1.4rem; list-style: none; margin: 0.8rem 0 0; padding: 0; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; }
.footer-links a { text-decoration: none; color: #d8ccc0; }
.footer-cities { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.78rem; letter-spacing: 0.05em; text-transform: uppercase; color: #d8ccc0; text-align: right; }
.footer-socials { display: flex; gap: 0.9rem; margin-top: 0.8rem; justify-content: flex-end; }
.footer-socials a { color: #d8ccc0; text-decoration: none; font-size: 0.95rem; }
.sibling-link { width: 100%; text-align: center; font-size: 0.78rem; color: #8a7a6c; padding-top: 1rem; border-top: 1px solid var(--hairline); }
.sibling-link a { color: var(--gold); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(20, 16, 12, 0.98);
    border-bottom: 1px solid var(--hairline);
    padding: 0.5rem 1.5rem 1rem;
  }
  .nav-links.is-open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 0.7rem 0; }
  .nav-toggle { display: flex; }
  .site-nav { position: relative; flex-wrap: wrap; }
  .category-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid.product-grid-full { grid-template-columns: repeat(2, 1fr); }
  .teaser-grid { grid-template-columns: 1fr; }
  .editorial-strip { grid-template-columns: 1fr; }
  .editorial-copy { max-width: 100%; text-align: left; margin-left: 0; }
  .hero-eyebrow-list { display: none; }
  .site-footer { flex-direction: column; }
  .footer-cities { text-align: left; }
  .footer-socials { justify-content: flex-start; }
  .cart-drawer { width: 100vw; }
}
