:root {
  --ink: #161310;
  --ink-soft: #3a342c;
  --paper: #f3ebe0;
  --paper-2: #e7dccb;
  --cream: #faf6ef;
  --white: #fffdf8;
  --rust: #c24b1d;
  --rust-deep: #9a3512;
  --gold: #c6a15b;
  --olive: #3f4a32;
  --line: rgba(22, 19, 16, 0.12);
  --shadow: 0 24px 60px rgba(22, 19, 16, 0.16);
  --radius: 22px;
  --nav-h: 96px;
  --font-display: "Fraunces", Georgia, serif;
  --font-ui: "Outfit", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-ui);
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
  overflow-x: hidden;
}

body.locked {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
select {
  font-family: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
}

.wrap {
  width: min(1240px, calc(100% - 40px));
  margin-inline: auto;
}

/* NAV */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  color: var(--ink);
  background: rgba(243, 235, 224, 0.94);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--line);
}

.nav .icon-btn,
.nav .menu-btn {
  color: inherit;
  border-color: var(--line);
}

.nav-inner {
  width: min(1240px, calc(100% - 40px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
}

.brand img {
  height: 64px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  background: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links a {
  opacity: 0.72;
  transition: opacity 0.2s;
}

.nav-links a:hover {
  opacity: 1;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn,
.menu-btn {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--ink);
  position: relative;
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  border-radius: 99px;
  background: var(--rust);
  color: white;
  font-size: 10px;
  display: none;
  place-items: center;
  padding: 0 5px;
  font-weight: 600;
}

.cart-count.show {
  display: grid;
}

.menu-btn {
  display: none;
}

.mobile-links {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 49;
  background: rgba(243, 235, 224, 0.96);
  backdrop-filter: blur(16px);
  padding: 12px 20px 20px;
  flex-direction: column;
  gap: 14px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 13px;
  border-bottom: 1px solid var(--line);
}

.mobile-links.show {
  display: flex;
}

/* HERO */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: end start;
  color: var(--cream);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(22, 19, 16, 0.16) 0%, rgba(22, 19, 16, 0.05) 42%, rgba(22, 19, 16, 0.52) 100%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: 0 0 88px;
  width: min(1240px, calc(100% - 40px));
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 11px;
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: currentColor;
}

.hero h1 {
  margin: 0;
  line-height: 0;
}

.hero-logo {
  width: min(560px, 92vw);
  height: auto;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.45));
}

.hero p {
  margin-top: 22px;
  max-width: 42ch;
  font-size: 18px;
  line-height: 1.5;
  color: rgba(250, 246, 239, 0.82);
}

.hero-ctas {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--rust);
  color: white;
}

.btn-primary:hover {
  background: var(--rust-deep);
}

.btn-ghost {
  background: transparent;
  color: inherit;
  border: 1px solid rgba(250, 246, 239, 0.35);
}

.btn-dark {
  background: var(--ink);
  color: var(--cream);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}

.hero-meta {
  position: absolute;
  right: max(20px, calc((100% - 1240px) / 2));
  bottom: 88px;
  z-index: 2;
  display: grid;
  gap: 18px;
  text-align: right;
}

.hero-meta strong {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
}

.hero-meta span {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.7;
}

/* MARQUEE */
.marquee {
  background: var(--ink);
  color: var(--gold);
  overflow: hidden;
  border-block: 1px solid rgba(198, 161, 91, 0.2);
}

.marquee-track {
  display: flex;
  gap: 40px;
  width: max-content;
  animation: ticker 28s linear infinite;
  padding: 14px 0;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* SECTIONS */
section {
  padding: 96px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 40px;
}

.section-head h2,
.story h2,
.kits h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}

.kicker {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 10px;
}

/* FEATURED */
.featured {
  background: var(--cream);
}

.featured-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
}

.feature-card {
  position: relative;
  width: min(360px, 100%);
  border-radius: 22px;
  overflow: hidden;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.feature-card .media {
  position: relative;
  background: #111;
}

.feature-card img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  vertical-align: top;
}

.feature-card .content {
  padding: 20px 24px 24px;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 500;
  margin: 8px 0 10px;
}

.feature-card p {
  color: var(--ink-soft);
  max-width: 62ch;
}

.img-note {
  position: absolute;
  right: 10px;
  bottom: 8px;
  z-index: 4;
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(16, 14, 12, 0.62);
  padding: 4px 7px;
  border-radius: 6px;
  pointer-events: none;
  font-weight: 500;
  line-height: 1.2;
}

.hero-media .img-note {
  left: max(20px, calc((100% - 1240px) / 2));
  right: auto;
  bottom: 18px;
}

.tag {
  display: inline-flex;
  padding: 6px 10px;
  border: 1px solid rgba(250, 246, 239, 0.28);
  border-radius: 99px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* FILTER BAR */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  border: 1px solid var(--line);
  background: transparent;
  height: 40px;
  padding: 0 16px;
  border-radius: 99px;
  cursor: pointer;
  font-size: 13px;
  color: var(--ink-soft);
}

.chip.active {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

.search {
  position: relative;
}

.search input {
  height: 44px;
  width: min(280px, 100%);
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 99px;
  padding: 0 16px 0 40px;
  outline: none;
  font-size: 14px;
}

.search svg {
  position: absolute;
  left: 14px;
  top: 12px;
  opacity: 0.5;
}

/* GRID */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 14px 14px 18px;
  display: flex;
  flex-direction: column;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.card-media {
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  background: #efe6d8;
  position: relative;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.card-index {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 11px;
  letter-spacing: 0.16em;
  background: rgba(250, 246, 239, 0.88);
  padding: 5px 8px;
  border-radius: 99px;
}

.badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--rust);
  color: white;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 8px;
  border-radius: 99px;
}

.card-body {
  padding: 14px 6px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.card-cat {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rust);
}

.card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.15;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
}

.price {
  font-weight: 600;
  font-size: 16px;
}

.weight {
  font-size: 12px;
  color: var(--ink-soft);
}

.add-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  background: var(--ink);
  color: var(--cream);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--ink-soft);
}

.hidden { display: none !important; }

/* STORY */
.story {
  background: var(--ink);
  color: var(--cream);
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.story p {
  color: rgba(250, 246, 239, 0.78);
  line-height: 1.7;
  font-size: 17px;
  margin-top: 16px;
}

.story-list {
  list-style: none;
  margin: 18px 0 4px;
  display: grid;
  gap: 8px;
  color: var(--cream);
  font-size: 16px;
}

.story-list li {
  padding-left: 18px;
  position: relative;
}

.story-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 1px;
  background: var(--gold);
}

.story-close {
  color: var(--gold) !important;
  font-family: var(--font-display);
  font-size: 20px !important;
  line-height: 1.45 !important;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 36px;
}

.stats article {
  border-top: 1px solid rgba(250, 246, 239, 0.16);
  padding-top: 14px;
}

.stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 500;
  color: var(--gold);
}

.stats span {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
}

.story-visual {
  border-radius: 28px;
  overflow: hidden;
  min-height: 420px;
  position: relative;
}

.story-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 420px;
}

/* KITS */
.kit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.kit {
  background: var(--white);
  border-radius: 28px;
  padding: 18px;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  align-items: center;
}

.kit img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 18px;
}

.kit h3 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
}

.kit p {
  color: var(--ink-soft);
  margin: 8px 0 16px;
  line-height: 1.5;
}

/* FOOTER */
.footer {
  background: #100e0c;
  color: var(--cream);
  padding: 64px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(250, 246, 239, 0.1);
}

.footer h4 {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 14px;
  color: var(--gold);
}

.footer-logo {
  width: min(260px, 100%);
  height: auto;
  margin-bottom: 16px;
}

.footer p,
.footer a,
.footer li {
  color: rgba(250, 246, 239, 0.72);
  line-height: 1.8;
  font-size: 14px;
  list-style: none;
}

.legal {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  font-size: 12px;
  opacity: 0.55;
}

/* MODAL + DRAWER */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(16, 14, 12, 0.55);
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.modal,
.drawer {
  position: fixed;
  z-index: 70;
  background: var(--cream);
  color: var(--ink);
}

.modal {
  width: min(920px, calc(100% - 32px));
  max-height: calc(100vh - 40px);
  overflow: auto;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -46%) scale(0.96);
  opacity: 0;
  pointer-events: none;
  border-radius: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  transition: 0.28s ease;
}

.modal.show {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.modal-media {
  background: #111;
  min-height: 0;
  position: relative;
}

.modal-media img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.modal-body {
  padding: 32px;
}

.modal-body h3 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 500;
  margin: 8px 0 12px;
}

.modal-body p {
  color: var(--ink-soft);
  line-height: 1.6;
}

.close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: var(--white);
  cursor: pointer;
  z-index: 2;
}

.pack-list {
  display: grid;
  gap: 8px;
  margin: 18px 0 8px;
}

.pack-opt {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  text-align: left;
}

.pack-opt.on {
  border-color: var(--rust);
  background: #f8eee6;
}

.qty {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
}

.qty button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: white;
  cursor: pointer;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.drawer {
  top: 0;
  right: 0;
  height: 100%;
  width: min(420px, 100%);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
}

.drawer.show {
  transform: translateX(0);
}

.drawer h3 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 500;
}

.drawer .btn {
  width: 100%;
}

.cart-form {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.cart-form input {
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 12px;
  background: var(--white);
}

.cart-items {
  flex: 1;
  overflow: auto;
  margin: 24px 0;
  display: grid;
  gap: 14px;
  align-content: start;
}

.cart-row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  align-items: center;
}

.cart-thumb {
  position: relative;
  width: 64px;
  height: 64px;
}

.cart-row img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 12px;
  background: #efe6d8;
}

.cart-thumb .img-note {
  right: 2px;
  bottom: 2px;
  left: 2px;
  font-size: 6px;
  padding: 2px 3px;
  text-align: center;
}

.cart-row button.remove {
  border: 0;
  background: none;
  cursor: pointer;
  color: var(--ink-soft);
  font-size: 12px;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 14px;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: var(--cream);
  padding: 12px 18px;
  border-radius: 99px;
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s ease;
  font-size: 14px;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.whats-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 45;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: white;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.35);
}

@media (max-width: 1080px) {
  .catalog-grid { grid-template-columns: repeat(3, 1fr); }
  .featured-grid,
  .story-grid,
  .footer-grid { grid-template-columns: 1fr; }
  .hero-meta { display: none; }
  .kit { grid-template-columns: 140px 1fr; }
}

@media (max-width: 820px) {
  .nav-links { display: none; }
  .menu-btn { display: grid; }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .modal { grid-template-columns: 1fr; }
  .modal-media { min-height: 0; }
  .kit-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .brand img { height: 58px; max-width: 170px; }

  .hero { min-height: 100svh; }
  .hero-media img { object-position: center 38%; }
  .hero-media::after {
    background: linear-gradient(180deg, rgba(22, 19, 16, 0.2) 0%, rgba(22, 19, 16, 0.05) 45%, rgba(22, 19, 16, 0.38) 100%);
  }
  .hero-copy { padding: 0 0 28px; }
  .hero-copy .eyebrow,
  .hero-copy p,
  .hero-copy h1 { display: none; }
  .hero-ctas { margin-top: 16px; }
  .hero-ctas .btn-ghost { display: none; }
}

@media (max-width: 560px) {
  .catalog-grid { grid-template-columns: 1fr; }
  .kit { grid-template-columns: 1fr; }
  .legal { flex-direction: column; }
  .section-head { flex-direction: column; align-items: start; }
  .brand img { height: 50px; max-width: 148px; }
  :root { --nav-h: 84px; }
}
