:root {
  --bg: #ffffff;
  --ink: #0a0a0a;
  --muted: #888;
  --rule: #ececec;
  --panel: #f7f6f3;
  --nav-size: clamp(12px, 1.05vw, 15px);
  --sans: "Helvetica Neue", "Helvetica", "Archivo", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

button { font-family: inherit; }

/* HERO LOGO ------------------------------------------------------------ */
.hero { padding: 36px 28px 0; line-height: 0; animation: fadeIn .85s ease-out both; }
.hero a { display: block; text-decoration: none; color: inherit; }
.hero svg { display: block; width: 100%; height: auto; }
.hero text {
  font-family: var(--sans);
  font-weight: 700;
  fill: var(--ink);
  letter-spacing: -0.025em;
}

/* NAV ------------------------------------------------------------------ */
nav.primary {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 28px; margin-top: 18px;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  font-size: var(--nav-size); font-weight: 500; letter-spacing: 0.08em;
  animation: fadeIn 1s .12s ease-out both;
}
.nav-left, .nav-right { display: flex; gap: 28px; }
nav.primary a, nav.primary button.cart-link {
  color: var(--ink); text-decoration: none; background: none; border: none;
  font-size: inherit; font-weight: inherit; letter-spacing: inherit;
  cursor: pointer; transition: opacity .18s ease;
}
nav.primary a:hover, nav.primary button.cart-link:hover { opacity: .45; }
nav.primary a.is-active { text-decoration: underline; text-underline-offset: 5px; }
#cart-count { font-variant-numeric: tabular-nums; }

/* CAMPAIGN (HOME) ------------------------------------------------------ */
.campaign { margin-top: 2px; }
.campaign figure {
  margin: 0; line-height: 0;
  background: #111;
  overflow: hidden;
}
.campaign img {
  display: block; width: 100%; height: auto;
  transition: transform 1.2s ease;
}
.campaign figure:hover img { transform: scale(1.015); }

/* PRODUCT GRID (SHOP) -------------------------------------------------- */
.products { padding: 72px 28px 140px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 28px; }
.card { display: flex; flex-direction: column; }
.thumb {
  aspect-ratio: 3/4; width: 100%;
  background: var(--panel);
  margin-bottom: 14px;
  overflow: hidden;
  position: relative;
}
.thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.card:hover .thumb img { transform: scale(1.02); }
.meta {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 14px; font-size: 12px; letter-spacing: 0.06em;
}
.meta h3 { font-weight: 500; font-size: 12px; }
.meta p { font-size: 12px; font-variant-numeric: tabular-nums; }
.add-btn {
  background: none; border: 1px solid var(--ink); color: var(--ink);
  padding: 11px 14px; font-size: 10.5px; letter-spacing: 0.14em;
  cursor: pointer; transition: all .2s ease;
}
.add-btn:hover { background: var(--ink); color: #fff; }
.add-btn.added { background: var(--ink); color: #fff; }

/* CART DRAWER ---------------------------------------------------------- */
.cart-drawer {
  position: fixed; top: 0; right: 0; height: 100vh;
  width: min(440px, 92vw); background: #fff;
  box-shadow: -8px 0 40px rgba(0,0,0,0.08);
  transform: translateX(100%); transition: transform .35s cubic-bezier(.2,.7,.2,1);
  z-index: 100; display: flex; flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }

.cart-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.4);
  opacity: 0; pointer-events: none;
  transition: opacity .35s ease; z-index: 99;
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }

.cart-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 24px; border-bottom: 1px solid var(--rule);
}
.cart-head h3 { font-size: 13px; font-weight: 500; letter-spacing: 0.12em; }
.cart-close {
  background: none; border: none; font-size: 11px;
  letter-spacing: 0.12em; cursor: pointer;
}

.cart-items { flex: 1; overflow-y: auto; padding: 8px 24px; }
.cart-items .empty {
  text-align: center; padding: 80px 0;
  font-size: 12px; color: var(--muted); letter-spacing: 0.08em;
}

.cart-item { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.cart-item:last-child { border-bottom: none; }
.ci-thumb {
  width: 72px; height: 90px; background: var(--panel); flex-shrink: 0;
  overflow: hidden;
}
.ci-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ci-meta { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.ci-meta h4 { font-size: 11.5px; font-weight: 500; letter-spacing: 0.06em; }
.ci-meta .price { font-size: 11.5px; font-variant-numeric: tabular-nums; }
.ci-controls {
  display: flex; gap: 6px; align-items: center;
  margin-top: auto; font-size: 11px;
}
.qty-btn {
  width: 22px; height: 22px; border: 1px solid var(--rule);
  background: none; cursor: pointer; font-size: 12px; line-height: 1;
}
.qty-btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.qty { min-width: 18px; text-align: center; font-variant-numeric: tabular-nums; }
.remove-btn {
  margin-left: auto; background: none; border: none;
  font-size: 10px; letter-spacing: 0.1em; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px; color: var(--muted);
}
.remove-btn:hover { color: var(--ink); }

.cart-foot { padding: 20px 24px; border-top: 1px solid var(--rule); }
.cart-total {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 16px; font-size: 12px; letter-spacing: 0.1em;
}
.cart-total .amount { font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; }
.cart-checkout {
  width: 100%; padding: 16px; background: var(--ink); color: #fff;
  border: none; font-size: 11px; letter-spacing: 0.16em; cursor: pointer;
  transition: opacity .2s ease;
}
.cart-checkout:hover { opacity: .82; }
.cart-checkout:disabled { opacity: .35; cursor: not-allowed; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* RESPONSIVE ----------------------------------------------------------- */
@media (max-width: 720px) {
  .hero { padding: 22px 16px 0; }
  nav.primary {
    padding: 14px 16px; font-size: 10.5px;
    letter-spacing: 0.06em; margin-top: 10px;
  }
  .nav-left, .nav-right { gap: 14px; }
  .products { padding: 48px 16px 100px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 32px 14px; }
}
