:root {
  --bg: #fbf8f3;
  --surface: #ffffff;
  --text: #2b2118;
  --muted: #6b5d50;
  --border: #e6ddd0;
  --accent: #7a1f2b;
  --accent-dark: #5e1620;
  --gold: #8a6408;
  --wa: #0f7a4a;
  --wa-dark: #0b5e39;
  --danger: #a3221b;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(43, 33, 24, 0.08), 0 4px 16px rgba(43, 33, 24, 0.05);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }

.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--surface); padding: 8px 12px; border-radius: 6px;
}
.skip-link:focus { left: 8px; }

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

[hidden] { display: none !important; }

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

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 10;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.brand { font-family: var(--serif); font-size: 1.3rem; font-weight: 700; line-height: 1.2; color: var(--accent); text-decoration: none; min-width: 0; }
.main-nav { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
@media (max-width: 480px) {
  .brand { font-size: 1.1rem; }
  .main-nav { gap: 12px; font-size: 0.95rem; }
}
.main-nav a:not(.btn) { color: var(--text); text-decoration: none; font-weight: 500; }
.main-nav a:not(.btn):hover { color: var(--accent); }

.site-footer { margin-top: 64px; padding: 32px 0 16px; background: #f3ede4; border-top: 1px solid var(--border); font-size: 0.925rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.footer-inner p { margin: 0 0 4px; }
.footer-brand { font-family: var(--serif); font-weight: 700; color: var(--accent); }
.site-footer nav { display: flex; flex-direction: column; gap: 6px; }
.site-footer nav a { color: var(--text); }
.copyright { margin-top: 24px; color: var(--muted); font-size: 0.85rem; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px;
  border: 1px solid var(--accent); border-radius: 999px;
  background: var(--accent); color: #fff;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--accent-dark); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: 0.9rem; }
.btn-lg { min-height: 52px; padding: 12px 24px; font-size: 1.05rem; width: 100%; }
.btn-wa { background: var(--wa); border-color: var(--wa); }
.btn-wa:hover { background: var(--wa-dark); }
.btn-outline { background: transparent; color: var(--accent); }
.btn-outline:hover { background: #f6ece9; }
.btn-danger { background: var(--danger); border-color: var(--danger); }

/* ---------- Home / catalogue ---------- */

.hero { padding: 32px 0 16px; text-align: center; }
.hero h1 { font-family: var(--serif); font-size: clamp(1.6rem, 4vw, 2.4rem); margin: 0 0 8px; }
.hero p { margin: 0 auto; max-width: 560px; color: var(--muted); }
.trust-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; list-style: none; padding: 0; margin: 16px 0 0; font-size: 0.9rem; color: var(--gold); font-weight: 600; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 16px 0; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; min-height: 40px; padding: 8px 16px;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); color: var(--text); font: inherit; cursor: pointer;
}
a.chip { display: inline-flex; align-items: center; text-decoration: none; }
.chip[aria-pressed="true"], .chip[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: #fff; }

.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 960px) { .product-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }

.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); text-decoration: none; color: inherit;
}
.card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #f1ebe2; }
.card-body { padding: 10px 12px 14px; }
.card-name { margin: 0 0 4px; font-size: 0.95rem; font-weight: 500; line-height: 1.3; }
.card-price { margin: 0; font-weight: 700; color: var(--accent); }
.card.is-soldout img { filter: grayscale(0.7); opacity: 0.7; }
.card-options { margin: 4px 0 0; font-size: 0.8rem; color: var(--gold); font-weight: 600; }

.badge { position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; }
.badge-soldout { background: #3a3129; color: #fff; }

.load-more { display: flex; justify-content: center; margin: 24px 0; }
.empty-state { text-align: center; padding: 48px 0; }
.status-msg { text-align: center; color: var(--muted); padding: 24px 0; }

/* ---------- Product page ---------- */

.breadcrumb { padding: 16px 0; font-size: 0.9rem; }
.breadcrumb a { color: var(--muted); }
.product-detail { display: grid; gap: 24px; }
@media (min-width: 800px) { .product-detail { grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; } }
.product-media { position: relative; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.product-media img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; }
.product-info h1 { font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 2rem); margin: 0 0 8px; }
.price { font-size: 1.6rem; font-weight: 700; color: var(--accent); margin: 0; }
.price-soldout { color: var(--muted); text-decoration: line-through; }
.product-info .btn-lg { margin: 16px 0 8px; }
.product-info .btn-outline { width: 100%; }
.spec-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 24px 0; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.spec-list div { margin: 0; }
.spec-list dt { font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.spec-list dd { margin: 0; font-weight: 600; }
.product-description { white-space: pre-line; }
.variant-name { margin: -4px 0 8px; color: var(--muted); font-weight: 600; }

/* Colour / option switcher */
.options { margin: 20px 0 4px; }
.options-title { margin: 0 0 8px; font-size: 0.95rem; }
.option-list { display: flex; gap: 10px; overflow-x: auto; list-style: none; margin: 0; padding: 2px 2px 8px; }
.option {
  display: flex; flex-direction: column; align-items: center; gap: 4px; width: 84px; padding: 6px;
  border: 2px solid var(--border); border-radius: 10px; background: var(--surface);
  color: var(--text); text-decoration: none; text-align: center;
}
.option img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; }
.option-label { font-size: 0.8rem; font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; }
.option-meta { font-size: 0.75rem; color: var(--muted); }
.option.is-current { border-color: var(--accent); }
.option.is-soldout img { filter: grayscale(0.8); opacity: 0.6; }
.trust-list { padding-left: 20px; color: var(--muted); }

/* ---------- Content pages (policies, contact) ---------- */

.prose { max-width: 760px; margin: 0 auto; padding: 24px 0; }
.prose h1 { font-family: var(--serif); }
.prose h2 { margin-top: 32px; font-size: 1.2rem; }
.prose .notice { padding: 12px 16px; border-left: 4px solid var(--gold); background: #fff8e8; }
.contact-list { list-style: none; padding: 0; }
.contact-list li { margin-bottom: 12px; }
