/* ============================================================
   GADZIO — Gallery Edition
   Elegant, minimal art-gallery aesthetic. Light paper palette,
   serif display type, catalog-style product presentation.
   ============================================================ */

:root {
  --paper: #f7f4ee;
  --paper-deep: #efeae0;
  --white: #fffdf9;
  --ink: #191610;
  --ink-soft: #4c463b;
  --ink-dim: #8b8271;
  --line: #e2dccd;
  --line-strong: #cfc7b4;
  --gold: #a3763a;
  --gold-soft: rgba(163, 118, 58, 0.1);
  --green: #3d7a4f;
  --radius: 2px;
  --maxw: 1100px;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Segoe UI", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  font-weight: 300;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--ink); }

::selection { background: var(--gold); color: var(--white); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* small-caps gallery label */
.eyebrow {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-dim);
  font-weight: 500;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 244, 238, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 28px;
  max-width: var(--maxw);
  margin: 0 auto;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: 0.28em;
  color: var(--ink);
}
.logo:hover { color: var(--ink); }

.logo-mark {
  width: 38px;
  height: 38px;
  border: 1px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  gap: 2px;
  align-items: center;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--ink-soft);
  padding: 8px 14px;
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  border-radius: 0;
  position: relative;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--gold); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 2px;
  border-bottom: 1px solid var(--gold);
}

.cart-btn {
  background: var(--ink);
  color: var(--white) !important;
  margin-left: 8px;
}
.cart-btn:hover { background: var(--gold) !important; color: var(--white) !important; }

.cart-count {
  font-family: var(--sans);
  background: var(--gold);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 500;
  border-radius: 999px;
  padding: 1px 7px;
  margin-left: 8px;
  letter-spacing: 0;
}

/* ---------- Hero — exhibition poster ---------- */
.hero {
  padding: 110px 0 90px;
  text-align: center;
  background:
    radial-gradient(ellipse 55% 45% at 50% 0%, var(--gold-soft), transparent),
    var(--paper);
  border-bottom: 1px solid var(--line);
  position: relative;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 7vw, 4.8rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.1;
}

.hero .tagline {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold);
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  margin-top: 18px;
  font-weight: 400;
}

.hero .rule {
  width: 64px;
  border: none;
  border-top: 1px solid var(--gold);
  margin: 26px auto;
}

.hero .sub {
  color: var(--ink-soft);
  max-width: 560px;
  margin: 0 auto 34px;
  font-size: 0.98rem;
  font-weight: 300;
}

.hero-chips {
  display: flex;
  gap: 0;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.chip {
  border: none;
  border-left: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink-soft);
  padding: 4px 18px;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.chip:first-child { border-left: none; }
.chip .em { margin-right: 6px; }

.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--white);
  padding: 15px 38px;
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--sans);
}
.btn:hover { background: var(--gold); border-color: var(--gold); color: var(--white); }
.btn.secondary {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--ink);
}
.btn.secondary:hover { border-color: var(--ink); background: transparent; color: var(--ink); }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section.alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-title {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 500;
  margin-bottom: 10px;
  text-align: center;
  letter-spacing: 0.03em;
}
.section-desc {
  text-align: center;
  color: var(--ink-dim);
  max-width: 560px;
  margin: 0 auto 48px;
  font-size: 0.92rem;
}

/* ---------- Product cards — exhibition catalog ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 28px;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.product-card:hover {
  border-color: var(--ink);
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -24px rgba(25, 22, 16, 0.35);
}

/* the "artwork" */
.product-thumb {
  aspect-ratio: 1 / 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.product-thumb::after {  /* inner frame */
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 253, 249, 0.55);
  pointer-events: none;
}

/* muted print gradients per category */
.t-case    { background: linear-gradient(150deg, #d9cfc0, #b9a894 55%, #8f7c66); }
.t-charge  { background: linear-gradient(150deg, #d8c8b8, #b08d5f 55%, #7c5a35); }
.t-cable   { background: linear-gradient(150deg, #d4d2ca, #a3a697 55%, #6f7264); }
.t-glass   { background: linear-gradient(150deg, #d7dcd9, #a3b2ab 55%, #6d7f78); }
.t-audio   { background: linear-gradient(150deg, #d8d1c6, #ab9d88 55%, #776853); }
.t-gadget  { background: linear-gradient(150deg, #d9d5c6, #b1a886 55%, #7d7455); }

.pt-no {
  font-family: var(--serif);
  font-size: clamp(3rem, 6vw, 4.2rem);
  font-weight: 400;
  color: rgba(255, 253, 249, 0.92);
  line-height: 1;
}
.pt-cat {
  position: absolute;
  bottom: 22px;
  left: 0; right: 0;
  text-align: center;
  font-size: 0.62rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(255, 253, 249, 0.75);
}

.product-body { padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-body .cat {
  color: var(--gold);
  font-size: 0.64rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.26em;
}
.product-body h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.product-body .desc { color: var(--ink-dim); font-size: 0.85rem; flex: 1; }

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  gap: 8px;
}

.price { font-size: 1.05rem; font-weight: 500; letter-spacing: 0.02em; }
.mrp { color: var(--ink-dim); font-size: 0.78rem; text-decoration: line-through; margin-left: 6px; }

.add-btn {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: 9px 18px;
  font-weight: 400;
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.18s;
  font-family: var(--sans);
}
.add-btn:hover { background: var(--ink); color: var(--white); }

.badge {
  display: inline-block;
  background: var(--gold-soft);
  color: var(--gold);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 3px 10px;
  border: 1px solid rgba(163, 118, 58, 0.25);
}

/* ---------- Prose pages (about / policies) ---------- */
.prose { max-width: 720px; margin: 0 auto; }
.prose h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 500;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}
.prose .updated {
  color: var(--ink-dim);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.prose h2 {
  font-family: var(--serif);
  font-size: 1.45rem;
  margin: 36px 0 12px;
  color: var(--ink);
  font-weight: 600;
}
.prose h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  margin: 24px 0 8px;
  font-weight: 600;
}
.prose p, .prose li { color: var(--ink-soft); font-size: 0.95rem; font-weight: 300; }
.prose strong { font-weight: 500; color: var(--ink); }
.prose ul { padding-left: 20px; margin: 12px 0; }
.prose li { margin-bottom: 6px; }
.prose .callout {
  background: var(--gold-soft);
  border: 1px solid rgba(163, 118, 58, 0.3);
  border-left: 3px solid var(--gold);
  padding: 18px 22px;
  margin: 22px 0;
  font-size: 0.9rem;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
@media (max-width: 720px) { .contact-grid { grid-template-columns: 1fr; } }

.info-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 34px;
}
.info-card h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  margin-bottom: 20px;
  font-weight: 600;
}
.info-row { display: flex; gap: 14px; margin-bottom: 18px; align-items: flex-start; }
.info-row .ic { font-size: 1rem; width: 22px; text-align: center; }
.info-row .lbl {
  color: var(--ink-dim);
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  margin-bottom: 2px;
}
.info-row .val { font-weight: 400; font-size: 0.93rem; color: var(--ink); }

.form-card { background: var(--white); border: 1px solid var(--line); padding: 34px; }
.form-card h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  margin-bottom: 20px;
  font-weight: 600;
}

.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 0.66rem;
  color: var(--ink-dim);
  margin-bottom: 6px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.field input, .field textarea, .field select {
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 12px 14px;
  font-size: 0.93rem;
  font-family: var(--sans);
  font-weight: 300;
  transition: border-color 0.15s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--white);
}

.form-msg { margin-top: 12px; color: var(--green); font-size: 0.85rem; display: none; }

/* ---------- Cart drawer ---------- */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(25, 22, 16, 0.45);
  z-index: 90;
  display: none;
}
.drawer-overlay.open { display: block; }

.drawer {
  position: fixed;
  top: 0;
  right: -440px;
  width: min(410px, 100vw);
  height: 100vh;
  background: var(--paper);
  border-left: 1px solid var(--line);
  z-index: 100;
  display: flex;
  flex-direction: column;
  transition: right 0.28s ease;
  font-family: var(--sans);
}
.drawer.open { right: 0; }

.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 26px;
  border-bottom: 1px solid var(--line);
}
.drawer-head h3 {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.drawer-close {
  background: none;
  border: none;
  color: var(--ink-dim);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}
.drawer-close:hover { color: var(--ink); }

.drawer-items { flex: 1; overflow-y: auto; padding: 10px 26px; }
.cart-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}
.cart-item .qty { color: var(--ink-dim); font-size: 0.8rem; }
.cart-item .rm {
  color: var(--ink-dim);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.78rem;
  text-decoration: underline;
  letter-spacing: 0.05em;
}
.cart-item .rm:hover { color: var(--gold); }

.drawer-foot { padding: 22px 26px; border-top: 1px solid var(--line); background: var(--white); }
.total-row {
  display: flex;
  justify-content: space-between;
  font-weight: 500;
  font-size: 1rem;
  margin-bottom: 16px;
  letter-spacing: 0.06em;
}
.empty-cart { color: var(--ink-dim); text-align: center; padding: 48px 0; font-style: italic; font-family: var(--serif); font-size: 1.05rem; }

/* ---------- Checkout modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(25, 22, 16, 0.55);
  z-index: 110;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }

.modal {
  background: var(--paper);
  border: 1px solid var(--line-strong);
  width: min(560px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 36px;
}

.modal h3 { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; margin-bottom: 4px; letter-spacing: 0.02em; }
.modal .step-tag {
  color: var(--gold);
  font-size: 0.64rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  display: block;
  margin-bottom: 8px;
}
.modal .order-summary {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 18px 20px;
  margin: 18px 0;
  font-size: 0.88rem;
}
.order-summary .line { display: flex; justify-content: space-between; margin-bottom: 7px; color: var(--ink-soft); }
.order-summary .line.total {
  font-weight: 500;
  color: var(--ink);
  border-top: 1px solid var(--line);
  padding-top: 10px;
  margin-top: 10px;
}

.pay-options { display: grid; gap: 10px; margin: 18px 0; }
.pay-option {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  padding: 15px 18px;
  cursor: pointer;
  background: var(--white);
  transition: border-color 0.15s;
}
.pay-option:hover { border-color: var(--line-strong); }
.pay-option.selected { border-color: var(--gold); background: var(--gold-soft); }
.pay-option input { accent-color: var(--gold); }
.pay-option .pay-name { font-weight: 500; font-size: 0.92rem; letter-spacing: 0.03em; }
.pay-option .pay-desc { color: var(--ink-dim); font-size: 0.78rem; font-weight: 300; }

.confirm-box { text-align: center; padding: 12px 0; }
.confirm-box .big { font-size: 2.6rem; }
.order-id {
  display: inline-block;
  background: var(--white);
  border: 1px solid var(--gold);
  color: var(--gold);
  font-weight: 500;
  letter-spacing: 0.22em;
  padding: 10px 24px;
  margin: 16px 0;
  font-size: 0.9rem;
}
.modal-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 22px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper-deep);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-grid h4 {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--ink-dim);
  margin-bottom: 16px;
  font-weight: 500;
}
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: var(--ink-soft); font-size: 0.86rem; letter-spacing: 0.04em; }
.footer-grid a:hover { color: var(--gold); }

.footer-brand {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: 0.3em;
  font-size: 1.35rem;
  margin-bottom: 12px;
  color: var(--ink);
}
.footer-note { color: var(--ink-dim); font-size: 0.86rem; max-width: 320px; font-weight: 300; font-style: italic; font-family: var(--serif); font-size: 1rem; }

.footer-bottom {
  border-top: 1px solid var(--line);
  margin-top: 44px;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--ink-dim);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ---------- Responsive nav ---------- */
@media (max-width: 640px) {
  .hero { padding: 70px 0 60px; }
  .section { padding: 60px 0; }
  .chip { padding: 4px 12px; }
}
