/* Gafiky — Protective Softness
   Tokens: charcoal / sage / greige / ivory
   Geometric sans. Editorial furniture, not pet-shop cartoon. */
:root {
  --ink: #1c1c1c;
  --sage: #8a9a7b;
  --sage-deep: #6f8064;
  --greige: #d8d0c4;
  --ivory: #f5f2eb;
  --mist: #e8e4df;
  --rust: #c16a4e;
  --muted: #6f6a64;
  --line: rgba(28, 28, 28, 0.12);
  --bg: var(--ivory);
  --surface: #fffcf7;
  --font: "Plus Jakarta Sans", "Helvetica Neue", ui-sans-serif, system-ui, sans-serif;
  --max: 1200px;
  --wide: 1440px;
  --header: 118px;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(28, 28, 28, 0.08);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
h1, h2, h3, h4 { letter-spacing: -0.03em; line-height: 1.15; margin: 0 0 0.5em; font-weight: 600; }
h1 { font-size: clamp(2.1rem, 4.6vw, 4rem); font-weight: 650; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; color: var(--muted); }
.skip-link {
  position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--ivory);
  padding: 8px 14px; z-index: 100; border-radius: 6px;
}
.skip-link:focus { left: 8px; }

.wrap { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.wrap-wide { width: min(var(--wide), calc(100% - 40px)); margin-inline: auto; }

/* Announcement */
.announce {
  background: var(--ink);
  color: var(--ivory);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  padding: 10px 16px;
}
.announce span { opacity: 0.55; margin: 0 10px; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(245, 242, 235, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  width: min(var(--wide), calc(100% - 40px));
  margin-inline: auto;
  height: var(--header);
  display: flex; align-items: center; gap: 24px;
}
.logo { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.logo img, .logo svg { height: 98px; width: auto; display:block; object-fit: contain; mix-blend-mode: multiply; }
.logo__mark { width: 36px; height: 36px; }
.nav { display: flex; gap: 28px; margin-left: 18px; flex: 1; }
.nav a {
  font-size: 14px; font-weight: 560; color: var(--ink);
  position: relative; padding: 6px 0;
}
.nav a[aria-current="page"]::after,
.nav a:hover::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1.5px; background: var(--sage);
}
.header__tools { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.icon-btn {
  background: none; border: 0; cursor: pointer; color: var(--ink);
  display: grid; place-items: center; width: 40px; height: 40px;
}
.cart-link { font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.cart-count {
  background: var(--sage); color: #fff; border-radius: 99px;
  min-width: 20px; height: 20px; font-size: 11px;
  display: grid; place-items: center; padding: 0 6px;
}
.nav-toggle { display: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--ink);
  background: var(--ink); color: var(--ivory); font-weight: 600; font-size: 14px;
  cursor: pointer; transition: transform 0.25s var(--ease), background 0.2s, color 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--ivory); }
.btn--sage { background: var(--sage); border-color: var(--sage); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero */
.hero {
  position: relative; min-height: min(86vh, 820px);
  display: grid; place-items: stretch;
  color: var(--ink);
}
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(245,242,235,0.92) 0%, rgba(245,242,235,0.62) 42%, rgba(245,242,235,0.08) 70%);
}
.hero__copy {
  position: relative; z-index: 1;
  width: min(var(--wide), calc(100% - 40px));
  margin: 0 auto; padding: 12vh 0 10vh;
  max-width: 640px; margin-left: max(20px, calc((100% - var(--wide)) / 2 + 8px));
}
.eyebrow {
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--sage-deep); font-weight: 650; margin-bottom: 14px;
}
.hero h1 { margin-bottom: 16px; }
.hero .lede { font-size: 1.12rem; color: var(--ink); max-width: 34rem; }

/* Why / trust */
.section { padding: 88px 0; }
.section--mist { background: var(--mist); }
.section--greige { background: var(--greige); }
.section--ink { background: var(--ink); color: var(--ivory); }
.section--ink p { color: rgba(245,242,235,0.72); }
.kicker { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sage-deep); font-weight: 700; margin-bottom: 10px; }
.center { text-align: center; }
.center p { margin-inline: auto; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.pillar {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; padding: 28px 24px;
}
.pillar__icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--greige); display: grid; place-items: center; margin-bottom: 16px;
  color: var(--ink);
}
.pillar h3 { margin-bottom: 8px; }
.trust-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  border-top: 1px solid var(--line); padding-top: 36px;
}
.trust-item { text-align: center; font-size: 13px; font-weight: 600; }
.trust-item span { display: block; font-size: 12px; font-weight: 500; color: var(--muted); margin-top: 4px; }

/* Product cards */
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.product-card {
  background: var(--surface); border-radius: 18px; overflow: hidden;
  border: 1px solid transparent; transition: border-color 0.2s, transform 0.3s var(--ease);
}
.product-card:hover { border-color: var(--greige); transform: translateY(-3px); }
.product-card__media {
  position: relative;
  aspect-ratio: 3/2;
  overflow: hidden;
  background: var(--mist);
}
.product-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.product-card__body { padding: 18px 18px 22px; }
.product-card h3 { font-size: 1.15rem; margin-bottom: 6px; }
.benefit { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.price { font-weight: 650; color: var(--ink); }
.price s { color: var(--muted); font-weight: 500; margin-left: 6px; }
.swatches { display: flex; gap: 8px; margin: 10px 0 14px; }
.swatch {
  width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(28,28,28,0.2);
}
.swatch.is-beige { background: #cbb89a; }
.swatch.is-olive { background: #8a9a7b; }
.swatch.is-grey { background: #c5c0b8; }
.swatch.is-rust { background: #c16a4e; }
.swatch.is-cream { background: #ede6d9; }

/* Split */
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.split--rev { grid-template-columns: 0.9fr 1.1fr; }
.split img { width: 100%; height: min(560px, 70vh); object-fit: cover; border-radius: 20px; }

/* Fabric stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0; }
.stat {
  border: 1px solid var(--line); border-radius: 16px; padding: 20px;
  background: var(--surface);
}
.stat strong { display: block; font-size: 1.8rem; letter-spacing: -0.04em; }
.stat span { font-size: 13px; color: var(--muted); }

/* Footer */
.footer { background: var(--ink); color: var(--ivory); padding: 64px 0 28px; }
.footer a { color: rgba(245,242,235,0.82); }
.footer a:hover { color: #fff; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 48px; }
.footer__brand { display: flex; flex-direction: column; gap: 10px; max-width: 280px; }
.footer__pet {
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--sage); font-weight: 700;
}
.footer h4 { color: #fff; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.footer__bottom {
  border-top: 1px solid rgba(245,242,235,0.12);
  padding-top: 18px; display: flex; justify-content: space-between; gap: 12px;
  font-size: 12px; color: rgba(245,242,235,0.55); flex-wrap: wrap;
}
.tagline { color: rgba(245,242,235,0.7); font-size: 14px; }

/* PDP */
.pdp { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; padding: 40px 0 72px; align-items: start; }
.gallery { display: grid; gap: 10px; }
.gallery__main {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: var(--mist);
  aspect-ratio: 3/2;
}
.gallery__main img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.thumbs button { padding: 0; border: 1px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: var(--mist); }
.thumbs button.is-active { border-color: var(--ink); }
.thumbs img { width: 100%; height: 72px; object-fit: cover; }
.pdp__price { font-size: 1.4rem; font-weight: 650; margin: 8px 0 18px; }
.option { margin: 16px 0; }
.option label { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 8px; }
.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg button, .seg .chip {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 8px 14px; font-size: 13px; cursor: pointer;
}
.seg button.is-on, .seg .chip.is-on { border-color: var(--ink); background: var(--ink); color: var(--ivory); }
.qty { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; width: max-content; }
.qty button { width: 42px; height: 42px; border: 0; background: none; cursor: pointer; font-size: 18px; }
.qty input { width: 40px; border: 0; text-align: center; background: transparent; }
.specs { width: 100%; border-collapse: collapse; font-size: 14px; margin: 12px 0 28px; }
.specs th, .specs td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.specs th { width: 38%; color: var(--muted); font-weight: 550; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; }

/* Cart */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table td { padding: 16px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart-item { display: flex; gap: 14px; align-items: center; }
.cart-item img { width: 96px; height: 72px; object-fit: cover; border-radius: 8px; }
.summary {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px;
}
.drawer {
  position: fixed; inset: 0; background: rgba(28,28,28,0.35); z-index: 80;
  display: none; justify-content: flex-end;
}
.drawer.is-open { display: flex; }
.drawer__panel {
  width: min(420px, 100%); background: var(--ivory); height: 100%;
  padding: 22px; overflow: auto; box-shadow: var(--shadow);
}

/* Collection banner */
.banner { padding: 64px 0 24px; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.crumbs a:hover { color: var(--ink); }

/* Forms */
.field { display: grid; gap: 6px; margin-bottom: 12px; }
.field input, .field textarea {
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: #fff;
}
.newsletter { display: flex; gap: 8px; }
.newsletter input { flex: 1; border: 1px solid var(--line); border-radius: 999px; padding: 12px 16px; }

/* Legal */
.prose { max-width: 720px; }
.prose h1 { margin-bottom: 12px; }
.prose h2 { margin-top: 28px; font-size: 1.25rem; }
.prose li { color: var(--muted); margin: 6px 0; }

.mobile-nav {
  display: none; flex-direction: column; gap: 14px; padding: 12px 20px 20px;
  border-top: 1px solid var(--line); background: var(--ivory);
}
.mobile-nav.is-open { display: flex; }

@media (max-width: 900px) {
  .nav { display: none; }
  .nav-toggle { display: grid; }
  .grid-3, .grid-4, .product-grid, .split, .split--rev, .pdp, .footer__top, .trust-row, .stats {
    grid-template-columns: 1fr;
  }
  .hero { min-height: 70vh; }
  .hero__scrim { background: linear-gradient(180deg, rgba(245,242,235,0.2), rgba(245,242,235,0.92) 72%); }
  .hero__copy { max-width: none; margin: 0 auto; padding-top: 36vh; }
  .grid-2 { grid-template-columns: 1fr; }
  .header__inner { width: calc(100% - 24px); }
  .wrap, .wrap-wide { width: calc(100% - 28px); }
}

.footer__logo { height: 96px; width: auto; display: block; margin-bottom: 12px; }
.footer__brand .tagline { margin-top: 8px; }

.footer__logo { height: 110px; width: auto; display: block; margin-bottom: 14px; background: #F5F2EB; padding: 10px 16px 12px; border-radius: 12px; object-fit: contain; }


/* Shop catalog */
.shop-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 14px; margin-top: 22px;
}
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chip {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 8px 14px; font-size: 13px; font-weight: 600; cursor: pointer;
  color: var(--ink); display: inline-flex; align-items: center;
}
a.filter-chip { text-decoration: none; }
.filter-chip:hover { border-color: var(--ink); }
.filter-chip.is-on { border-color: var(--ink); background: var(--ink); color: var(--ivory); }
.shop-count { font-size: 13px; font-weight: 600; color: var(--muted); margin: 0; }
.product-grid--shop { grid-template-columns: repeat(3, 1fr); }
.type-tag {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--sage-deep); font-weight: 700; margin-bottom: 6px;
}
.swatch.is-forest { background: #3f5d3a; }
.swatch.is-caramel { background: #a66b3c; }
.swatch.is-sand { background: #c8b89a; }
.swatch.is-midnight { background: #2c3340; }

@media (max-width: 1100px) {
  .product-grid--shop { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .product-grid--shop { grid-template-columns: 1fr; }
}

.swatch.is-sage { background: #9aaf8c; }
.swatch.is-charcoal { background: #4a4f55; }

/* Brand story gallery */
.brand-story { padding-top: 12px; }
.brand-story__lede { max-width: 40rem; margin: 0 0 28px; color: var(--ink-soft, #5a5a5a); }
.brand-story__lede a { text-decoration: underline; }
.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
}
.brand-grid--stack {
  grid-template-columns: 1fr;
  max-width: 720px;
  margin: 0 auto;
}
.brand-grid--strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(200px, 240px);
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.brand-story__item {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line, #e6e1d8);
  border-radius: 16px;
  overflow: hidden;
  scroll-snap-align: start;
}
.brand-story__item img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #f7f4ee;
}
.brand-grid--stack .brand-story__item img {
  max-height: none;
}
.brand-story__item figcaption {
  padding: 12px 14px 16px;
  font-size: 0.92rem;
  color: var(--ink-soft, #5a5a5a);
  line-height: 1.4;
}
.brand-intro {
  max-width: 42rem;
  margin: 0 auto 36px;
}
.brand-intro p { margin-bottom: 1rem; }
@media (min-width: 900px) {
  .brand-grid--about {
    grid-template-columns: repeat(2, 1fr);
  }
}

.care-list { margin: 12px 0 16px; padding-left: 1.2rem; }
.care-list li { margin: 6px 0; }
.brand-video-wrap { margin-top: 18px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line, #e6e1d8); background: #111; }
.brand-video-wrap--wide { max-width: 920px; }
.brand-video { display: block; width: 100%; height: auto; max-height: 70vh; object-fit: contain; background: #111; }


/* Language switcher */
.lang-switch {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.04em;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  line-height: 1;
}
.lang-switch:hover {
  border-color: var(--sage);
  color: var(--sage-deep);
}
.header__tools .lang-switch { margin-right: 2px; }
