/* MAVEKS — maveks.store
   Palette: paper #F6F4EE / ink #23241E / moss #41522F / sand #E7E1D3 / line #D9D3C5 */

:root {
  --paper: #F6F4EE;
  --ink: #23241E;
  --moss: #41522F;
  --moss-dark: #33411F;
  --sand: #E7E1D3;
  --line: #D9D3C5;
  --muted: #6E6A5E;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Karla", -apple-system, sans-serif;
  --wrap: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--moss); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; }
h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h1 em { font-style: italic; font-weight: 400; }

.kicker {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--moss);
  margin-bottom: .4rem;
}
.kicker a { text-decoration: none; }
.kicker a:hover { text-decoration: underline; }

.section-title { margin-bottom: 1.6rem; }

/* ---------- header ---------- */
.site-header {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 1.4rem 1.25rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.45rem;
  letter-spacing: .14em;
  text-decoration: none;
}
.site-nav { display: flex; gap: 1.4rem; align-items: baseline; flex-wrap: wrap; }
.site-nav a { text-decoration: none; font-weight: 500; padding-bottom: 2px; border-bottom: 2px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--line); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--moss); }
.cart-count {
  display: inline-block;
  min-width: 1.45em;
  text-align: center;
  background: var(--moss);
  color: var(--paper);
  border-radius: 999px;
  font-size: .8rem;
  padding: .05em .35em;
  vertical-align: 1px;
}
.cart-count.is-empty { background: var(--line); color: var(--ink); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  border: 1.5px solid var(--moss);
  border-radius: 3px;
  padding: .72rem 1.5rem;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.btn-solid { background: var(--moss); color: var(--paper); }
.btn-solid:hover { background: var(--moss-dark); border-color: var(--moss-dark); }
.btn-ghost { background: transparent; color: var(--moss); }
.btn-ghost:hover { background: var(--sand); }
.btn-small { padding: .4rem .9rem; font-size: .85rem; background: transparent; color: var(--moss); }
.btn-small:hover { background: var(--moss); color: var(--paper); }
.btn-wide { width: 100%; text-align: center; }
.text-link { font-weight: 700; color: var(--moss); text-decoration: none; border-bottom: 1.5px solid var(--moss); padding-bottom: 1px; }
.text-link:hover { border-bottom-width: 2px; }

/* ---------- hero ---------- */
.hero {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 2.2rem 1.25rem 4rem;
}
.hero-text { max-width: 640px; margin-bottom: 2rem; }
.hero-text p { font-size: 1.13rem; color: var(--muted); margin: 1.2rem 0 1.8rem; max-width: 44ch; }
.hero-actions { display: flex; gap: .9rem; flex-wrap: wrap; }
.hero-media img { border-radius: 4px; width: 100%; }

/* ---------- categories ---------- */
.categories { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem 4rem; }
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.cat-tile {
  position: relative;
  display: block;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: var(--sand);
}
.cat-tile img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.cat-tile span {
  position: absolute;
  left: .8rem; bottom: .8rem;
  background: var(--paper);
  font-weight: 700;
  font-size: .95rem;
  padding: .35rem .8rem;
  border-radius: 3px;
}
.cat-tile:hover img { filter: brightness(1.04); }

/* ---------- featured / product grid ---------- */
.featured { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem 4rem; }
.featured-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1.6rem; gap: 1rem; flex-wrap: wrap; }
.featured-head .section-title { margin-bottom: 0; }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; }
.product-card { display: flex; flex-direction: column; }
.product-media { display: block; background: var(--sand); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.product-media img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.product-info { padding-top: .7rem; }
.product-name { font-weight: 700; text-decoration: none; display: block; margin-bottom: .3rem; }
.product-name:hover { text-decoration: underline; }
.product-row { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.product-price { color: var(--muted); font-weight: 500; }
.empty-note { grid-column: 1 / -1; color: var(--muted); }

/* ---------- trust strip ---------- */
.trust {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--sand);
}
.trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 1.8rem 1.25rem;
}
.trust-item { text-align: center; display: grid; gap: .15rem; font-size: .93rem; color: var(--muted); }
.trust-item strong { color: var(--ink); }
.trust-glyph { font-size: 1.4rem; color: var(--moss); }

/* ---------- editorial ---------- */
.editorial {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 4rem 1.25rem;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 3rem;
  align-items: center;
}
.editorial-media img { border-radius: 4px; }
.editorial-text p:not(.kicker) { color: var(--muted); margin: 1rem 0 1.6rem; max-width: 42ch; }

/* ---------- why ---------- */
.why { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem 4.5rem; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; }
.why-item h3 { font-size: 1.15rem; margin: .4rem 0 .35rem; }
.why-item p { color: var(--muted); font-size: .95rem; }
.why-glyph { font-size: 1.5rem; color: var(--moss); }

/* ---------- generic page ---------- */
.page { max-width: var(--wrap); margin: 0 auto; padding: 1.5rem 1.25rem 4rem; }
.page-intro { color: var(--muted); margin: .8rem 0 2rem; max-width: 62ch; }
.page h1 { margin-top: .2rem; }

.legal-body { max-width: 72ch; }
.legal-body h2 { font-size: 1.3rem; margin: 2rem 0 .6rem; }
.legal-body p, .legal-body li { color: var(--ink); margin-bottom: .7rem; }
.legal-body ul { padding-left: 1.2rem; }

/* ---------- filter bar ---------- */
.filter-bar { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 2rem; }
.filter-bar a {
  text-decoration: none;
  font-weight: 500;
  font-size: .93rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .38rem 1rem;
  background: transparent;
}
.filter-bar a:hover { background: var(--sand); }
.filter-bar a[aria-current="page"] { background: var(--moss); border-color: var(--moss); color: var(--paper); }

/* ---------- product detail ---------- */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.product-detail-media { background: var(--sand); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.product-detail-media img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.product-detail-price { font-size: 1.4rem; font-weight: 700; margin: .8rem 0 1rem; }
.product-detail-desc { color: var(--muted); max-width: 48ch; margin-bottom: 1.6rem; }
.qty-row { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; }
.qty-row input {
  width: 4.2rem;
  padding: .6rem .5rem;
  font: inherit;
  border: 1.5px solid var(--line);
  border-radius: 3px;
  background: #fff;
  text-align: center;
}
.detail-note { font-size: .9rem; color: var(--muted); }

/* ---------- cart ---------- */
.cart-list { border-top: 1px solid var(--line); max-width: 760px; }
.cart-row {
  display: grid;
  grid-template-columns: 72px 1fr auto auto auto;
  gap: 1.1rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.cart-row img { width: 72px; height: 72px; object-fit: cover; border-radius: 3px; background: var(--sand); }
.cart-row-info { display: grid; gap: .15rem; }
.cart-qty { display: flex; align-items: center; gap: .6rem; }
.cart-qty button {
  width: 1.9rem; height: 1.9rem;
  font: inherit;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: transparent;
  cursor: pointer;
}
.cart-qty button:hover { background: var(--sand); }
.cart-line-total { font-weight: 700; min-width: 4.5rem; text-align: right; }
.cart-remove { border: 0; background: none; font-size: 1.2rem; color: var(--muted); cursor: pointer; padding: .2rem .4rem; }
.cart-remove:hover { color: var(--ink); }
.cart-summary { max-width: 760px; margin-top: 1.6rem; display: grid; gap: .7rem; justify-items: end; }
.cart-subtotal { display: flex; gap: 2rem; font-size: 1.15rem; align-items: baseline; }
.cart-summary .btn-wide { max-width: 320px; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; max-width: 900px; }
.contact-grid h2 { font-size: 1.25rem; margin-bottom: .5rem; }
.contact-grid p { color: var(--muted); margin-bottom: 1rem; }
.contact-form { display: grid; gap: .9rem; }
.contact-form label { font-weight: 700; font-size: .93rem; display: grid; gap: .3rem; }
.contact-form input, .contact-form textarea {
  font: inherit;
  padding: .65rem .8rem;
  border: 1.5px solid var(--line);
  border-radius: 3px;
  background: #fff;
  width: 100%;
}
.contact-form textarea { min-height: 130px; resize: vertical; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--sand); margin-top: 2rem; }
.footer-cols {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 2.6rem 1.25rem 1.6rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}
.footer-brand p:not(.brand) { color: var(--muted); font-size: .93rem; margin-top: .6rem; }
.site-footer h4 { font-family: var(--serif); font-weight: 600; margin-bottom: .6rem; }
.footer-cols a { display: block; text-decoration: none; color: var(--muted); font-size: .95rem; padding: .18rem 0; }
.footer-cols a:hover { color: var(--ink); text-decoration: underline; }
.footer-legal {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.25rem 1.8rem;
  color: var(--muted);
  font-size: .87rem;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .editorial { grid-template-columns: 1fr; gap: 1.8rem; }
  .hero { padding-bottom: 3rem; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid, .trust { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .product-detail { grid-template-columns: 1fr; gap: 1.6rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .site-header { flex-direction: column; align-items: flex-start; gap: .6rem; }
  .product-grid { grid-template-columns: 1fr 1fr; gap: .9rem; }
  .cat-grid { grid-template-columns: 1fr 1fr; gap: .8rem; }
  .cart-row { grid-template-columns: 56px 1fr auto; grid-auto-rows: auto; }
  .cart-line-total { display: none; }
  .footer-cols { grid-template-columns: 1fr; }
}

/* ---------- currency selector ---------- */
.currency-row { display: flex; align-items: center; gap: .7rem; }
.currency-row label { font-weight: 700; font-size: .93rem; }
.currency-row select {
  font: inherit;
  padding: .45rem .7rem;
  border: 1.5px solid var(--line);
  border-radius: 3px;
  background: #fff;
  cursor: pointer;
}
