/* ============================================================
   Paviaco — store stylesheet
   System fonts only (no Google Fonts → GDPR-safe, zero requests)
   ============================================================ */

:root {
  --bg: #FAF8F5;
  --surface: #FFFFFF;
  --ink: #14110E;
  --muted: #6B6259;
  --line: #E4DED6;
  --accent: #8A5A3B;
  --accent-soft: #F1E8DF;
  --danger: #A33A2B;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 2px;
  --shadow: 0 1px 2px rgba(20, 17, 14, 0.04), 0 8px 24px rgba(20, 17, 14, 0.06);
  --wrap: 1180px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
}

.muted { color: var(--muted); }
.small { font-size: 0.86rem; }

/* ---------- announcement + header ---------- */

.announce {
  background: var(--ink);
  color: #F7F4EF;
  text-align: center;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  padding: 9px 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}

.brand {
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  flex: 0 0 auto;
}

.nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.nav a { color: var(--muted); padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); border-color: var(--ink); }

.tools { display: flex; align-items: center; gap: 16px; }

.currency {
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 7px 8px;
  cursor: pointer;
}

.cart-link {
  position: relative;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}

.cart-count {
  display: inline-block;
  min-width: 18px;
  padding: 0 5px;
  margin-left: 4px;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  font-size: 0.7rem;
  line-height: 18px;
  text-align: center;
}

.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav { display: none; }
  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
    background: none;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 8px 12px;
    font-size: 0.8rem;
    cursor: pointer;
  }
  .nav.open {
    display: flex;
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 16px;
  }
  .nav.open a { padding: 12px 0; border-bottom: 1px solid var(--line); }
}

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 0;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  padding: clamp(48px, 7vw, 96px) clamp(24px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-copy p { max-width: 34ch; color: var(--muted); }

.hero-media {
  background: var(--accent-soft);
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-media img, .hero-media svg { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-media { order: -1; min-height: 300px; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #F7F4EF;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, opacity 0.18s ease;
}

.btn:hover { background: #2A241E; }

.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #F7F4EF; }

.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }

.link-quiet {
  font-size: 0.84rem;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
}
.link-quiet:hover { color: var(--ink); border-color: var(--ink); }

/* ---------- sections ---------- */

.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--tight { padding: clamp(40px, 5vw, 64px) 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.categories {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.cat-card {
  position: relative;
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
}

.cat-card__media {
  aspect-ratio: 4 / 3;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cat-card__media svg { width: 62%; height: 62%; }

.cat-card__body { padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; }
.cat-card__body h3 { margin: 0; font-size: 1.25rem; }
.cat-card:hover .cat-card__body { background: #FCFAF7; }

@media (max-width: 640px) { .categories { grid-template-columns: 1fr; } }

/* ---------- product grid ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 20px;
}

@media (max-width: 1000px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .grid { grid-template-columns: repeat(2, 1fr); gap: 20px 14px; } }

.card { position: relative; display: flex; flex-direction: column; }

.card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--accent-soft);
  overflow: hidden;
  margin-bottom: 12px;
}

.card__media svg, .card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.card:hover .card__media svg, .card:hover .card__media img { transform: scale(1.04); }

.badge {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--ink);
  color: #F7F4EF;
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 9px;
}

.card__name { font-size: 0.92rem; margin: 0 0 2px; }
.card__meta { font-size: 0.82rem; color: var(--muted); }
.card__price { font-size: 0.92rem; margin-top: 4px; }
.card__price s { color: var(--muted); margin-left: 6px; font-size: 0.86rem; }

/* ---------- filters ---------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.chip {
  font-size: 0.8rem;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #F7F4EF; }

.filters__sort { margin-left: auto; }
.filters select {
  font-family: var(--sans);
  font-size: 0.8rem;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
}

/* ---------- product page ---------- */

.pdp { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .pdp { grid-template-columns: 1fr; } }

.pdp__media { aspect-ratio: 4 / 5; background: var(--accent-soft); overflow: hidden; }
.pdp__media svg, .pdp__media img { width: 100%; height: 100%; object-fit: cover; }

.pdp__price { font-size: 1.35rem; margin: 4px 0 20px; }

.option-row { margin-bottom: 22px; }
.option-row__label {
  display: flex; justify-content: space-between;
  font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 10px;
}

.sizes { display: flex; flex-wrap: wrap; gap: 8px; }

.size-btn {
  min-width: 52px;
  padding: 11px 12px;
  font-size: 0.84rem;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.15s ease;
}

.size-btn:hover { border-color: var(--ink); }
.size-btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #F7F4EF; }

.swatches { display: flex; gap: 10px; }
.swatch {
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--line); cursor: pointer; padding: 0;
  box-shadow: inset 0 0 0 3px var(--surface);
}
.swatch[aria-pressed="true"] { outline: 1px solid var(--ink); outline-offset: 2px; }

.spec-list { list-style: none; padding: 0; margin: 0 0 24px; font-size: 0.88rem; color: var(--muted); }
.spec-list li { padding: 9px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; }
.spec-list span:last-child { color: var(--ink); text-align: right; }

.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary {
  cursor: pointer; padding: 16px 0; font-size: 0.86rem;
  letter-spacing: 0.04em; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-size: 1.1rem; color: var(--muted); }
.accordion details[open] summary::after { content: "−"; }
.accordion .acc-body { padding: 0 0 18px; font-size: 0.88rem; color: var(--muted); }

/* ---------- cart ---------- */

.cart-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (max-width: 860px) { .cart-layout { grid-template-columns: 1fr; } }

.cart-line {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.cart-line__media { aspect-ratio: 4 / 5; background: var(--accent-soft); overflow: hidden; }
.cart-line__media svg { width: 100%; height: 100%; }

.qty {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line); border-radius: var(--radius);
}
.qty button {
  width: 32px; height: 32px; border: 0; background: none;
  font-size: 1rem; cursor: pointer; color: var(--muted);
}
.qty button:hover { color: var(--ink); }
.qty input {
  width: 34px; height: 32px; border: 0; text-align: center;
  font-family: var(--sans); font-size: 0.86rem; background: none;
}

.summary {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 26px;
  position: sticky;
  top: 92px;
}

.summary__row { display: flex; justify-content: space-between; font-size: 0.9rem; padding: 8px 0; }
.summary__row--total {
  border-top: 1px solid var(--line);
  margin-top: 10px; padding-top: 16px;
  font-size: 1.05rem;
}

.notice {
  font-size: 0.8rem;
  color: var(--muted);
  background: var(--accent-soft);
  padding: 12px 14px;
  border-radius: var(--radius);
  margin-top: 16px;
}

/* ---------- values strip ---------- */

.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 44px 0;
}

.values h3 { font-size: 0.95rem; font-family: var(--sans); font-weight: 600; letter-spacing: 0.02em; }
.values p { font-size: 0.86rem; color: var(--muted); margin: 0; }

@media (max-width: 720px) { .values { grid-template-columns: 1fr; gap: 22px; } }

/* ---------- newsletter ---------- */

.newsletter { text-align: center; }
.newsletter form {
  display: flex; gap: 10px; max-width: 420px; margin: 24px auto 0;
}
.newsletter input[type="email"] {
  flex: 1; padding: 13px 14px; border: 1px solid var(--line);
  background: var(--surface); border-radius: var(--radius);
  font-family: var(--sans); font-size: 0.88rem;
}
.newsletter input[type="email"]:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

/* ---------- prose (legal / about) ---------- */

.prose { max-width: 68ch; }
.prose h2 { margin-top: 2em; font-size: 1.3rem; }
.prose h3 { margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.5em; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 40px;
  margin-top: 40px;
  font-size: 0.86rem;
}

.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

.footer-grid h4 {
  font-family: var(--sans); font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 14px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a { color: var(--muted); }
.footer-grid a:hover { color: var(--ink); }

.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px;
  margin-top: 44px; padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted); font-size: 0.78rem;
  flex-wrap: wrap;
}

/* ---------- cookie bar ---------- */

.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px;
  z-index: 80;
  background: var(--ink); color: #F7F4EF;
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  font-size: 0.82rem;
  box-shadow: var(--shadow);
  max-width: 720px;
  margin: 0 auto;
}
.cookie p { margin: 0; flex: 1; min-width: 200px; color: #DED8D0; }
.cookie a { text-decoration: underline; }
.cookie .btn { padding: 10px 18px; font-size: 0.74rem; background: #F7F4EF; color: var(--ink); border-color: #F7F4EF; }
.cookie .btn:hover { background: #fff; }
.cookie[hidden] { display: none; }

/* ---------- toast ---------- */

.toast {
  position: fixed; bottom: 24px; left: 50%;
  transform: translate(-50%, 20px);
  background: var(--ink); color: #F7F4EF;
  padding: 12px 22px; border-radius: var(--radius);
  font-size: 0.84rem; z-index: 90;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- utilities ---------- */

.empty { text-align: center; padding: 72px 0; color: var(--muted); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

