/* ============================================================
   Moon Angel Professional Skin Care — styles
   ============================================================ */

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

:root {
  --cream: #f7f1e7;
  --cream-2: #efe5d6;
  --ivory: #fffdf8;
  --paper: #ffffff;
  --espresso: #241a12;
  --espresso-2: #3a2b1e;
  --muted: #6f5d49;
  --muted-2: #7f6d57;
  --gold: #b9925a;
  --gold-2: #d9c09a;
  --gold-ink: #8a6634;
  --line: rgba(36, 26, 18, 0.14);
  --line-soft: rgba(36, 26, 18, 0.08);
  --shadow: 0 24px 60px -30px rgba(36, 26, 18, 0.35);
  --radius: 18px;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-scale: 1;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.55;
  color: var(--espresso);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

[hidden] { display: none !important; }

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

button, input, select, textarea { font: inherit; color: inherit; }

button { cursor: pointer; }

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

h1, h2, h3, h4, p, dl, dd, dt, ul, blockquote { margin: 0; }

ul { list-style: none; padding: 0; }

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

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

.container {
  width: min(1240px, calc(100% - 48px));
  margin-inline: auto;
}

.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;
}

section[id] { scroll-margin-top: 96px; }

/* ---------- Type helpers ---------- */

h1, h2, .serif {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.015em;
}

h1 em, h2 em {
  font-style: italic;
  color: var(--gold-ink);
}

.promo-band blockquote em { color: var(--gold); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow::before {
  content: "";
  width: 36px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

.eyebrow--light { color: rgba(255, 253, 248, 0.55); }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform 0.2s, background 0.25s, color 0.25s, border-color 0.25s;
}

.btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

.btn-dark { background: var(--espresso); color: var(--ivory); }
.btn-dark:hover { background: var(--espresso-2); }

.btn-gold { background: var(--gold-ink); color: #fff; }
.btn-gold:hover { background: #75562a; }

.btn-outline { border-color: var(--espresso); background: transparent; }
.btn-outline:hover { background: var(--espresso); color: var(--ivory); }

.btn-ghost { border-color: var(--line); background: rgba(255, 253, 248, 0.4); }
.btn-ghost:hover { border-color: var(--espresso); }

.btn-block { width: 100%; }

.link-btn {
  border: 0;
  background: none;
  padding: 0;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.link-btn:hover { color: var(--espresso); }

/* ---------- Announcement ---------- */

.announce {
  background: var(--espresso);
  color: rgba(255, 253, 248, 0.8);
  text-align: center;
  padding: 9px 16px;
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.announce span { color: var(--gold-2); }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 70;
  background: rgba(247, 241, 231, 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow 0.3s;
}
.site-header.is-scrolled { box-shadow: 0 12px 30px -24px rgba(36, 26, 18, 0.55); }

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold-ink);
  flex-shrink: 0;
}
.brand-mark svg { width: 22px; height: 22px; }

.brand-mark--image {
  width: auto;
  min-width: 42px;
  height: 42px;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: hidden;
}
.brand-mark--image img {
  display: block;
  width: auto;
  height: 100%;
  max-width: 168px;
  object-fit: contain;
}

.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.18em;
}
.brand-text small {
  margin-top: 5px;
  font-size: 7.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #5a4a38;
}

.main-nav { display: flex; gap: 28px; margin-left: auto; }
.main-nav a {
  position: relative;
  padding: 6px 0;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.25s;
}
.main-nav a:hover { color: var(--espresso); }
.main-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.main-nav + .header-actions { margin-left: 0; }

.price-toggle {
  display: flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.6);
}
.price-toggle button {
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: background 0.2s, color 0.2s;
}
.price-toggle button.is-active { background: var(--espresso); color: var(--ivory); }
.price-toggle--toolbar { display: none; }

.cart-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 42px;
  padding: 0 14px 0 16px;
  border: 1px solid var(--espresso);
  border-radius: 999px;
  background: transparent;
  color: var(--espresso);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 0.25s, color 0.25s;
}
.cart-btn:hover { background: var(--espresso); color: var(--ivory); }
.cart-btn svg { width: 17px; height: 17px; }

.cart-count {
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--gold);
  color: #fff;
  font-size: 10px;
  letter-spacing: 0;
  transition: background 0.25s, color 0.25s;
}
.cart-btn:hover .cart-count { background: var(--gold-2); color: var(--espresso); }
.cart-count.is-bump { animation: bump 0.35s; }
@keyframes bump { 50% { transform: scale(1.25); } }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 76px 0 64px;
  overflow: hidden;
  background:
    radial-gradient(1000px 600px at 85% 0%, rgba(217, 192, 154, 0.28), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(255, 253, 248, 0.7), transparent 60%),
    var(--cream);
}
.hero::after {
  content: "";
  position: absolute;
  left: -160px;
  top: 40%;
  width: 320px;
  height: 320px;
  border: 1px solid rgba(185, 146, 90, 0.22);
  border-radius: 50%;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 56px;
  align-items: center;
}

.hero-copy { position: relative; z-index: 2; max-width: 600px; }

.hero-copy h1 {
  margin: 22px 0 26px;
  font-size: clamp(3rem, 5.6vw, 5.1rem);
  line-height: 0.96;
  letter-spacing: -0.025em;
}

.hero-lead {
  max-width: 480px;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--muted);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.hero-stats {
  display: flex;
  gap: 36px;
  margin-top: 52px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.hero-stats div { display: flex; flex-direction: column; gap: 4px; }
.hero-stats dt { font-family: var(--serif); font-size: 34px; line-height: 1; }
.hero-stats dd {
  max-width: 130px;
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 560px;
}

.hero-ring {
  position: absolute;
  width: min(440px, 90%);
  aspect-ratio: 1;
  border: 1px solid rgba(185, 146, 90, 0.4);
  border-radius: 50%;
  transform: translate(40px, -20px);
}
.hero-ring::after {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px dashed rgba(185, 146, 90, 0.22);
  border-radius: 50%;
}

.hero-arch {
  position: relative;
  z-index: 1;
  width: min(380px, 82%);
  aspect-ratio: 3 / 3.85;
  border-radius: 190px 190px 20px 20px;
  overflow: hidden;
  background: linear-gradient(165deg, #fffdf8, #eadfce);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
}
.hero-arch img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 34px 30px;
  mix-blend-mode: multiply;
  transform: scale(1.02);
}

.hero-seal {
  position: absolute;
  right: 2%;
  top: 6%;
  z-index: 3;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--espresso);
  color: var(--gold-2);
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  box-shadow: 0 16px 30px -16px rgba(36, 26, 18, 0.6);
}
.hero-seal strong {
  display: block;
  margin-bottom: 3px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--ivory);
}

.hero-float {
  position: absolute;
  z-index: 2;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 14px;
  background: rgba(255, 253, 248, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 18px 40px -24px rgba(36, 26, 18, 0.4);
  font-size: 11px;
  line-height: 1.4;
}
.hero-float strong { display: block; font-size: 12px; font-weight: 500; letter-spacing: 0.02em; }
.hero-float span { font-size: 10px; color: var(--muted); }
.hero-float--1 { left: -2%; bottom: 20%; animation: floaty 7s ease-in-out infinite; }
.hero-float--2 {
  right: -2%;
  bottom: 9%;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: floaty 8s ease-in-out 0.6s infinite;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(185, 146, 90, 0.16);
  flex-shrink: 0;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* ---------- Features ---------- */

.features {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: rgba(255, 253, 248, 0.4);
}
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.feature { padding: 34px 30px; border-left: 1px solid var(--line-soft); }
.feature:first-child { padding-left: 0; border-left: 0; }
.feature-num { font-family: var(--serif); font-size: 13px; letter-spacing: 0.1em; color: var(--gold-ink); }
.feature h3 { margin: 10px 0 6px; font-size: 14px; font-weight: 500; letter-spacing: 0.01em; }
.feature p { font-size: 12px; font-weight: 300; line-height: 1.6; color: var(--muted); }

/* ---------- Collection ---------- */

.collection { padding: 92px 0 80px; }

.section-head { max-width: 660px; }
.section-head h2 {
  margin: 18px 0 16px;
  font-size: clamp(2.3rem, 4vw, 3.5rem);
  line-height: 1.02;
}
.section-head p {
  max-width: 560px;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--muted);
}

.toolbar { display: flex; align-items: center; gap: 16px; margin: 38px 0 18px; }

.search { position: relative; flex: 1; max-width: 520px; }
.search > svg {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  color: var(--muted);
  pointer-events: none;
}
.search input {
  width: 100%;
  height: 52px;
  padding: 0 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--ivory);
  font-size: 13px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search input::placeholder { color: var(--muted-2); }
.search input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(185, 146, 90, 0.14);
}
.search-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
  font-size: 18px;
}
.search-clear:hover { background: var(--cream-2); color: var(--espresso); }

.toolbar-meta { display: flex; align-items: center; gap: 18px; margin-left: auto; }

.sort {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.sort select {
  appearance: none;
  -webkit-appearance: none;
  padding: 12px 38px 12px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--ivory) url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b7a66' stroke-width='1.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;
  background-size: 12px;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--espresso);
  cursor: pointer;
}
.sort select:focus { outline: none; border-color: var(--gold); }

.chips-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chips {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  scrollbar-width: none;
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
  -webkit-overflow-scrolling: touch;
}
.chips::-webkit-scrollbar { display: none; }
.chips.is-dragging { cursor: grabbing; scroll-behavior: auto; }
.chips.is-dragging .chip { pointer-events: none; }

.chips-nav {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--espresso);
  cursor: pointer;
  box-shadow: 0 8px 20px -14px rgba(36, 26, 18, 0.55);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.chips-nav:hover {
  background: var(--espresso);
  border-color: var(--espresso);
  color: var(--ivory);
}
.chips-nav:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.chips-nav[hidden] { display: none; }
.chips-nav svg { width: 16px; height: 16px; }

.chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--muted);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.chip span { font-size: 9px; opacity: 1; }
.chip:hover { border-color: var(--espresso); color: var(--espresso); }
.chip.is-active { background: var(--espresso); border-color: var(--espresso); color: var(--ivory); }
.chip.is-active span { opacity: 1; }

.result-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 10px 0 26px;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.mode-note { display: inline-flex; align-items: center; gap: 8px; }
.mode-note::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

/* ---------- Product grid ---------- */

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px 22px; }

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--ivory);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(185, 146, 90, 0.35);
  box-shadow: 0 26px 50px -34px rgba(36, 26, 18, 0.45);
}

.product-media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: linear-gradient(160deg, #f6efe3, #efe4d3);
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  mix-blend-mode: multiply;
  transition: transform 0.5s ease;
}
.product-card:hover .product-media img { transform: scale(1.05); }

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--espresso);
  color: var(--ivory);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.badge::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold-2);
}
.badge-production {
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.94);
  color: var(--espresso);
}
.badge-production::before { background: var(--gold); }

.quick-view {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translate(-50%, 8px);
  opacity: 0;
  padding: 9px 16px;
  border: 0;
  border-radius: 999px;
  background: rgba(36, 26, 18, 0.88);
  color: var(--ivory);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: opacity 0.25s, transform 0.25s;
}
.product-card:hover .quick-view,
.product-card:focus-within .quick-view { opacity: 1; transform: translate(-50%, 0); }

.product-body { display: flex; flex: 1; flex-direction: column; padding: 16px 16px 18px; }

.product-kicker {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.product-kicker span:first-child { color: var(--gold-ink); font-weight: 500; }
.product-kicker span:last-child { text-align: right; }

.product-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.84em;
  margin: 8px 0 6px;
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.42;
  letter-spacing: 0.005em;
}
.product-name button {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  color: inherit;
  text-align: left;
}
.product-name button:hover { color: var(--gold-ink); }

.product-size {
  min-height: 14px;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.product-price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
}
.product-price span {
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.product-price strong {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.product-card.is-production .product-price strong {
  font-family: var(--sans);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-ink);
}

.product-actions { display: flex; align-items: center; gap: 8px; margin-top: 12px; }

.stepper {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--ivory);
}
.stepper button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 34px;
  border: 0;
  background: transparent;
  font-size: 15px;
  line-height: 1;
  color: var(--muted);
}
.stepper button:hover { color: var(--espresso); }
.stepper input {
  width: 28px;
  height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: center;
  font-size: 11.5px;
  appearance: textfield;
  -moz-appearance: textfield;
}
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper--sm button { width: 28px; height: 32px; }
.stepper--sm input { width: 24px; height: 32px; }

.add-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--espresso);
  border-radius: 999px;
  background: transparent;
  color: var(--espresso);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 0.22s, color 0.22s;
}
.add-btn svg { width: 12px; height: 12px; }
.add-btn:hover { background: var(--espresso); color: var(--ivory); }
.add-btn--disabled,
.add-btn--disabled:hover {
  flex: 1;
  border-color: var(--line);
  background: transparent;
  color: var(--muted);
  opacity: 0.6;
  cursor: not-allowed;
}

.load-more-wrap { display: flex; justify-content: center; margin-top: 48px; }

.empty-state {
  padding: 80px 20px;
  border: 1px dashed var(--line);
  border-radius: 22px;
  background: rgba(255, 253, 248, 0.5);
  text-align: center;
}
.empty-state h3 { font-family: var(--serif); font-size: 30px; font-weight: 500; margin-bottom: 10px; }
.empty-state p { margin-bottom: 22px; font-size: 13px; color: var(--muted); }

/* ---------- Promo band ---------- */

.promo-band {
  position: relative;
  overflow: hidden;
  padding: 96px 0;
  background: var(--espresso);
  color: var(--ivory);
  text-align: center;
}
.promo-band::before,
.promo-band::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  border: 1px solid rgba(217, 192, 154, 0.16);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.promo-band::before { width: 560px; height: 560px; }
.promo-band::after { width: 760px; height: 760px; border-color: rgba(217, 192, 154, 0.08); }

.promo-inner { position: relative; z-index: 1; max-width: 820px; margin: auto; }
.promo-band .eyebrow { justify-content: center; color: rgba(255, 253, 248, 0.5); }
.promo-band blockquote {
  margin: 22px 0 18px;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
}
.promo-band p {
  max-width: 520px;
  margin: 0 auto 30px;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255, 253, 248, 0.6);
}
.promo-band .btn-ghost {
  border-color: rgba(255, 253, 248, 0.3);
  background: transparent;
  color: var(--ivory);
}
.promo-band .btn-ghost:hover { background: var(--ivory); color: var(--espresso); }

/* ---------- Proforma ---------- */

.proforma-section {
  padding: 96px 0;
  background: linear-gradient(180deg, var(--cream) 0%, #f2e9db 100%);
}

.proforma-grid {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  margin-top: 42px;
}

.proforma-form {
  position: sticky;
  top: 100px;
  padding: 30px;
  border-radius: 20px;
  background: var(--espresso);
  color: var(--ivory);
  box-shadow: var(--shadow);
}
.proforma-form h3 { font-family: var(--serif); font-size: 24px; font-weight: 500; margin-bottom: 4px; }
.form-sub { margin-bottom: 24px; font-size: 11px; color: rgba(255, 253, 248, 0.5); }

.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 15px; }
.field label {
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 253, 248, 0.55);
}
.field input,
.field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid rgba(255, 253, 248, 0.16);
  border-radius: 10px;
  background: rgba(255, 253, 248, 0.05);
  font-size: 12.5px;
  color: var(--ivory);
  transition: border-color 0.2s, background 0.2s;
}
.field input::placeholder,
.field textarea::placeholder { color: rgba(255, 253, 248, 0.3); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255, 253, 248, 0.09);
}
.field textarea { min-height: 74px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-divider { height: 1px; margin: 22px 0; background: rgba(255, 253, 248, 0.12); }
.form-note { margin-top: 6px; font-size: 10.5px; line-height: 1.6; color: rgba(255, 253, 248, 0.6); }
.form-note strong { color: var(--gold-2); font-weight: 500; }

.invoice-shell { min-width: 0; }
.invoice-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 14px;
}
.invoice-actions .btn { height: 46px; }
.print-hint { margin-top: 12px; font-size: 10.5px; text-align: right; color: var(--muted); }

/* ---------- Invoice paper ---------- */

.invoice-paper {
  padding: 38px 40px;
  border: 1px solid rgba(36, 26, 18, 0.1);
  border-radius: 6px;
  background: var(--paper);
  box-shadow: 0 30px 70px -45px rgba(36, 26, 18, 0.5);
  font-size: 12px;
  color: #2a2018;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.invoice-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--espresso);
}
.invoice-brand { display: flex; align-items: center; gap: 13px; }
.invoice-brand .brand-mark { width: 46px; height: 46px; }
.invoice-brand .brand-mark svg { width: 24px; height: 24px; }
.invoice-brand .brand-mark--image {
  width: auto;
  min-width: 46px;
  height: 46px;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.invoice-brand .brand-mark--image img {
  display: block;
  width: auto;
  height: 100%;
  max-width: 200px;
  object-fit: contain;
}
.invoice-brand strong {
  display: block;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1;
}
.invoice-brand small {
  display: block;
  margin-top: 6px;
  font-size: 6.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}
.invoice-title { text-align: right; }
.invoice-title span {
  font-size: 8px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.invoice-title h3 { margin-top: 4px; font-family: var(--serif); font-size: 26px; font-weight: 500; line-height: 1; }

.invoice-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
}
.invoice-meta span {
  display: block;
  margin-bottom: 3px;
  font-size: 7.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.invoice-meta strong { font-size: 11.5px; font-weight: 500; }

.invoice-parties {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-soft);
}
.invoice-party .label {
  display: block;
  margin-bottom: 7px;
  font-size: 7.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.invoice-party strong { display: block; margin-bottom: 3px; font-size: 13px; font-weight: 600; }
.invoice-party p { font-size: 10.5px; line-height: 1.55; color: var(--muted); }
.invoice-party--right { text-align: right; }
.invoice-placeholder { color: var(--muted-2); font-style: italic; }

.invoice-table-wrap { width: 100%; max-width: 100%; overflow: hidden; }
.invoice-table {
  width: 100%;
  max-width: 100%;
  margin-top: 6px;
  border-collapse: collapse;
  table-layout: fixed;
}
.invoice-table col.col-code { width: 14%; }
.invoice-table col.col-name { width: 36%; }
.invoice-table col.col-qty { width: 10%; }
.invoice-table col.col-unit { width: 20%; }
.invoice-table col.col-total { width: 20%; }
.invoice-table th {
  padding: 14px 6px 9px;
  border-bottom: 1px solid var(--espresso);
  font-size: 7.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: left;
  color: var(--muted);
}
.invoice-table th.num,
.invoice-table td.num { text-align: right; white-space: nowrap; }
.invoice-table td {
  padding: 11px 6px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 11px;
  vertical-align: top;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.invoice-table td.num {
  overflow-wrap: normal;
  word-break: normal;
  font-variant-numeric: tabular-nums;
}
.invoice-table td:first-child,
.invoice-table th:first-child { padding-left: 0; }
.invoice-table td:last-child,
.invoice-table th:last-child { padding-right: 0; }
.invoice-table .col-code { font-size: 8.5px; letter-spacing: 0.08em; color: var(--muted); white-space: nowrap; }
.invoice-table .col-name span { display: block; font-weight: 500; line-height: 1.4; }
.invoice-table .col-name small {
  display: block;
  margin-top: 3px;
  font-size: 8.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.invoice-empty {
  padding: 34px 10px !important;
  text-align: center;
  font-size: 11px;
  font-style: italic;
  color: var(--muted);
}

.invoice-summary {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-top: 20px;
}
.invoice-note { max-width: 330px; font-size: 9.5px; line-height: 1.6; color: var(--muted); }
.invoice-note strong {
  display: block;
  margin-bottom: 5px;
  font-size: 7.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--espresso);
}
.invoice-totals { width: 250px; flex-shrink: 0; }
.invoice-total-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 7px 0;
  font-size: 11px;
  color: var(--muted);
}
.invoice-total-row strong { color: var(--espresso); font-weight: 500; }
.invoice-total-row--grand {
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--espresso);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--espresso);
}
.invoice-total-row--grand strong { font-family: var(--serif); font-size: 22px; letter-spacing: 0; }

.invoice-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}
.invoice-foot p { max-width: 400px; font-size: 8.5px; line-height: 1.6; color: var(--muted); }
.signature {
  min-width: 150px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 7.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  color: var(--muted);
}

/* ---------- Cart drawer ---------- */

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(24, 17, 11, 0.45);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.drawer-backdrop.is-open { opacity: 1; visibility: visible; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  width: min(430px, 100%);
  background: var(--cream);
  box-shadow: -30px 0 60px -30px rgba(24, 17, 11, 0.5);
  transform: translateX(102%);
  transition: transform 0.38s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.cart-drawer.is-open { transform: none; }

.cart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 24px 20px;
  border-bottom: 1px solid var(--line);
}
.cart-head h2 { margin-top: 8px; font-family: var(--serif); font-size: 30px; font-weight: 500; line-height: 1; }
.cart-head h2 span { font-size: 20px; color: var(--gold-ink); }

.icon-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--espresso);
  font-size: 20px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.icon-btn:hover { background: var(--espresso); border-color: var(--espresso); color: var(--ivory); }

.cart-body { flex: 1; overflow-y: auto; padding: 8px 24px; }

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: 100%;
  padding: 40px 10px;
  text-align: center;
}
.cart-empty svg { width: 54px; height: 54px; color: var(--gold); }
.cart-empty h3 { font-family: var(--serif); font-size: 26px; font-weight: 500; }
.cart-empty p { max-width: 250px; font-size: 12px; line-height: 1.6; color: var(--muted); }

.cart-item {
  display: grid;
  grid-template-columns: 62px 1fr auto;
  gap: 13px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
}
.cart-item img {
  width: 62px;
  height: 70px;
  padding: 6px;
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  background: var(--ivory);
  object-fit: contain;
  mix-blend-mode: multiply;
}
.cart-item-code { font-size: 8px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-ink); }
.cart-item-name { margin: 3px 0 5px; font-size: 12.5px; font-weight: 400; line-height: 1.4; }
.cart-item-unit { font-size: 10px; color: var(--muted); }
.cart-item-controls { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.cart-item-controls .stepper button { width: 26px; height: 28px; }
.cart-item-controls .stepper input { width: 22px; height: 28px; }
.remove-btn {
  border: 0;
  background: none;
  padding: 0;
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.remove-btn:hover { color: #a34b3c; }
.cart-item-total { padding-top: 2px; font-family: var(--serif); font-size: 16px; font-weight: 600; white-space: nowrap; }

.cart-foot { padding: 20px 24px 24px; border-top: 1px solid var(--line); background: var(--ivory); }
.cart-mode-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.cart-mode-note::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.cart-total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 5px 0;
  font-size: 12px;
  color: var(--muted);
}
.cart-total-row--grand {
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--espresso);
}
.cart-total-row--grand strong { font-family: var(--serif); font-size: 26px; letter-spacing: 0; }
.cart-fine { margin: 12px 0 16px; font-size: 9.5px; line-height: 1.55; color: var(--muted-2); }
.cart-foot .btn { height: 48px; }
.cart-foot .link-btn { display: block; margin: 14px auto 0; text-align: center; }

/* ---------- Product modal ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(24, 17, 11, 0.55);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}
.modal.is-open { opacity: 1; visibility: visible; }

.modal-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: min(920px, 100%);
  max-height: 90dvh;
  overflow: hidden;
  border-radius: 22px;
  background: var(--ivory);
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.6);
  transform: translateY(14px) scale(0.98);
  transition: transform 0.3s;
}
.modal.is-open .modal-card { transform: none; }

.modal-media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
  padding: 26px;
  background: linear-gradient(160deg, #f6efe3, #eadfce);
}
.modal-media img {
  width: 100%;
  height: 100%;
  max-height: 560px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.modal-content { padding: 44px 40px 36px; overflow-y: auto; }
.modal-close { position: absolute; top: 14px; right: 14px; z-index: 3; }
.modal-content .eyebrow { font-size: 9px; }
.modal-content h2 {
  margin: 14px 0 12px;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 2.6vw, 2.4rem);
  font-weight: 500;
  line-height: 1.08;
}
.modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.modal-meta .code { color: var(--gold-ink); }
.modal-desc {
  max-height: 220px;
  margin: 18px 0 24px;
  padding-right: 6px;
  overflow-y: auto;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--muted);
}
.modal-buy { padding-top: 20px; border-top: 1px solid var(--line); }
.modal-price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.modal-price span { font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.modal-price strong { font-family: var(--serif); font-size: 30px; font-weight: 600; }
.modal-buy-row { display: flex; gap: 10px; }
.modal-buy-row .stepper button { width: 36px; height: 46px; font-size: 17px; }
.modal-buy-row .stepper input { width: 32px; height: 46px; font-size: 13px; }
.modal-buy-row .btn { flex: 1; height: 48px; }
.modal-note { margin-top: 12px; font-size: 10.5px; line-height: 1.6; color: var(--gold-ink); }

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 120;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: calc(100% - 32px);
  padding: 13px 20px;
  border-radius: 999px;
  background: var(--espresso);
  color: var(--ivory);
  font-size: 11.5px;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 20px);
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
}
.toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast button {
  border: 0;
  background: none;
  padding: 0;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-2);
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

/* ---------- Footer ---------- */

.site-footer { padding: 64px 0 0; background: var(--espresso); color: rgba(255, 253, 248, 0.72); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; padding-bottom: 48px; }
.footer-brand .brand-text strong { color: var(--ivory); }
.footer-brand .brand-text small { color: rgba(255, 253, 248, 0.6); }
.footer-brand p {
  max-width: 340px;
  margin-top: 18px;
  font-size: 12px;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255, 253, 248, 0.5);
}
.footer-col h4 {
  margin-bottom: 16px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-2);
}
.footer-col a,
.footer-col button {
  display: block;
  margin-bottom: 10px;
  padding: 0;
  border: 0;
  background: none;
  font-size: 12px;
  text-align: left;
  color: rgba(255, 253, 248, 0.62);
  transition: color 0.2s;
}
.footer-col a:hover,
.footer-col button:hover { color: var(--ivory); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 253, 248, 0.1);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 253, 248, 0.6);
}

.footer-credit {
  margin-top: 0;
  padding: 9px 24px;
  background: #dbe5eb;
  color: #33454f;
  text-align: center;
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.06em;
}
.footer-credit a {
  display: inline-block;
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-credit a:hover,
.footer-credit a:focus-visible {
  color: #172a33;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Reveal ---------- */

.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .proforma-grid { grid-template-columns: 340px minmax(0, 1fr); gap: 28px; }
  .main-nav { gap: 20px; }
}

@media (max-width: 960px) {
  .main-nav { display: none; }
  .header-actions { margin-left: auto; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy { max-width: 640px; }
  .hero-visual { min-height: auto; padding: 20px 0 10px; }
  .hero-arch { width: min(360px, 74%); }
  .hero-ring { width: min(420px, 86%); }
  .hero-float--1 { left: 6%; }
  .hero-float--2 { right: 4%; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .feature { padding: 26px 24px; border-left: 1px solid var(--line-soft); }
  .feature:nth-child(odd) { padding-left: 0; border-left: 0; }
  .feature:nth-child(n + 3) { border-top: 1px solid var(--line-soft); }
  .proforma-grid { grid-template-columns: 1fr; }
  .proforma-form { position: static; }
  .invoice-actions { justify-content: flex-start; }
  .print-hint { text-align: left; }
}

@media (max-width: 720px) {
  .container { width: calc(100% - 36px); }
  .header-inner { height: 70px; gap: 14px; }
  .brand-text small { display: none; }
  .brand-text strong { font-size: 17px; letter-spacing: 0.14em; }
  .brand-mark { width: 36px; height: 36px; }
  .price-toggle button { padding: 6px 9px; font-size: 8.5px; }
  .cart-btn { height: 38px; padding: 0 11px; }
  .cart-btn .cart-label { display: none; }
  .hero { padding: 56px 0 48px; }
  .hero-stats { gap: 24px; margin-top: 40px; }
  .hero-stats dt { font-size: 28px; }
  .hero-float { display: none; }
  .hero-seal { right: 0; top: 0; width: 74px; height: 74px; font-size: 7px; }
  .hero-seal strong { font-size: 20px; }
  .features-grid { grid-template-columns: 1fr; }
  .feature { padding: 22px 0 !important; border-left: 0 !important; border-top: 1px solid var(--line-soft); }
  .feature:first-child { border-top: 0; }
  .collection { padding: 64px 0 56px; }
  .toolbar { flex-wrap: wrap; gap: 10px; }
  .search { flex: 1 1 100%; max-width: none; }
  .toolbar-meta { width: 100%; margin-left: 0; justify-content: space-between; }
  .result-meta { flex-direction: column; align-items: flex-start; gap: 6px; }
  .invoice-paper { overflow-x: auto; }
  .invoice-table { min-width: 520px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 16px 12px; }
  .product-body { padding: 12px 12px 14px; }
  .product-name { font-size: 12px; min-height: 2.9em; }
  .product-kicker { font-size: 7.5px; }
  .product-price strong { font-size: 18px; }
  .product-actions { gap: 6px; }
  .stepper--sm button { width: 24px; }
  .stepper--sm input { width: 20px; }
  .add-btn { min-width: 36px; padding: 0; }
  .add-btn .add-label { display: none; }
  .add-btn svg { width: 14px; height: 14px; }
  .modal { padding: 12px; }
  .modal-card { grid-template-columns: 1fr; max-height: 92dvh; }
  .modal-media { min-height: 0; max-height: 34dvh; padding: 16px; }
  .modal-media img { max-height: 32dvh; }
  .modal-content { padding: 26px 22px 24px; }
  .invoice-paper { padding: 24px 20px; }
  .invoice-meta { grid-template-columns: 1fr 1fr; }
  .invoice-parties { grid-template-columns: 1fr; gap: 18px; }
  .invoice-party--right { text-align: left; }
  .invoice-summary { flex-direction: column; align-items: stretch; }
  .invoice-note { max-width: none; }
  .invoice-totals { width: 100%; }
  .invoice-foot { flex-direction: column; align-items: flex-start; }
  .signature { width: 100%; text-align: right; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .promo-band { padding: 72px 0; }
  .proforma-section { padding: 64px 0; }
}

@media (max-width: 560px) {
  .site-header .price-toggle { display: none; }
  .price-toggle--toolbar { display: flex; }
}

@media (max-width: 430px) {
  .brand-text strong { font-size: 15px; }
  .price-toggle button { padding: 6px 7px; font-size: 8px; }
  .cart-btn { height: 36px; padding: 0 10px; }
  .product-name { font-size: 11.5px; }
  .product-size { font-size: 8px; }
  .product-price span { display: none; }
  .product-price strong { font-size: 17px; }
  .chips { margin-right: -18px; padding-right: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Stok & WhatsApp ---------- */

.badge-soldout {
  background: var(--espresso);
  color: var(--ivory);
}
.badge-soldout::before { background: #e2a79d; }

.badge-low {
  border: 1px solid rgba(138, 90, 18, 0.3);
  background: #fff7e8;
  color: #7a4f0c;
}
.badge-low::before { background: var(--gold); }

.product-stock {
  margin-top: 2px;
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.product-stock.is-low { color: #8a5a12; font-weight: 500; }
.product-stock.is-out { color: #a33a2a; font-weight: 500; }

.product-card.is-soldout .product-media img { opacity: 0.72; }
.product-card.is-soldout .product-price strong {
  font-family: var(--sans);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #a33a2a;
}

.stock-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eaf3ec;
  color: #2f6b3a;
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.stock-pill--low { background: #fbf0d9; color: #7a4f0c; }
.stock-pill--out { background: #f7e6e3; color: #8a2f20; }
.stock-pill--production { background: #f1eadf; color: #745428; }

.btn-whatsapp {
  background: #128c4a;
  border-color: #128c4a;
  color: #fff;
}
.btn-whatsapp:hover { background: #0d6e39; border-color: #0d6e39; }
.btn-whatsapp svg { width: 17px; height: 17px; flex-shrink: 0; }
.btn-whatsapp:disabled,
.btn-whatsapp.is-busy {
  opacity: 0.72;
  cursor: progress;
  transform: none;
}

.footer-admin {
  color: rgba(255, 253, 248, 0.55);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.footer-admin:hover { color: var(--ivory); }

/* PDF çıktısı için ekran dışı sahne */

.pdf-stage {
  position: fixed;
  left: -10000px;
  top: 0;
  width: 794px;
  background: #fff;
  pointer-events: none;
  z-index: -1;
}
.pdf-export.invoice-paper {
  width: 794px;
  padding: 36px 38px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.pdf-export .invoice-table { min-width: 0; }

/* ---------- Print ---------- */

@media print {
  @page { size: A4; margin: 14mm; }

  html, body { background: #fff !important; }

  .announce,
  .site-header,
  .hero,
  .features,
  .collection,
  .promo-band,
  .site-footer,
  .cart-drawer,
  .drawer-backdrop,
  .modal,
  .toast,
  .no-print,
  .pdf-stage,
  .proforma-head { display: none !important; }

  main { display: block !important; }

  .proforma-section { padding: 0 !important; background: #fff !important; }
  .proforma-section .container {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .proforma-grid { display: block !important; margin: 0 !important; }
  .proforma-form { display: none !important; }
  .invoice-shell { gap: 0 !important; }
  .invoice-paper {
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
  .invoice-table { page-break-inside: auto; min-width: 0 !important; }
  .invoice-table tr { page-break-inside: avoid; }
  .invoice-table thead { display: table-header-group; }
  .invoice-foot { page-break-inside: avoid; }
}

/* ---------- Tema yazı ölçeği ----------
   Yönetim > Görünüm bölümünden ayarlanan --font-scale değeri,
   ön yüzün okunabilir metinlerini orantılı olarak büyütür/küçültür.
   Fatura ve PDF alanları sabit kalır. */

body { font-size: calc(16px * var(--font-scale)); }

.announce { font-size: calc(10px * var(--font-scale)); }
.brand-text strong { font-size: calc(20px * var(--font-scale)); }
.brand-text small { font-size: calc(7.5px * var(--font-scale)); }
.main-nav a { font-size: calc(9.5px * var(--font-scale)); }
.price-toggle button { font-size: calc(9.5px * var(--font-scale)); }
.cart-btn { font-size: calc(10px * var(--font-scale)); }
.eyebrow { font-size: calc(10px * var(--font-scale)); }
.btn { font-size: calc(10.5px * var(--font-scale)); }
.hero h1 { font-size: calc(clamp(3rem, 5.6vw, 5.1rem) * var(--font-scale)); }
.hero-lead { font-size: calc(16px * var(--font-scale)); }
.hero-stats dt { font-size: calc(34px * var(--font-scale)); }
.hero-stats dd { font-size: calc(9.5px * var(--font-scale)); }
.hero-float strong { font-size: calc(12px * var(--font-scale)); }
.hero-float span { font-size: calc(10px * var(--font-scale)); }
.feature-num { font-size: calc(13px * var(--font-scale)); }
.feature h3 { font-size: calc(14px * var(--font-scale)); }
.feature p { font-size: calc(12px * var(--font-scale)); }
.section-head h2 { font-size: calc(clamp(2.3rem, 4vw, 3.5rem) * var(--font-scale)); }
.section-head p { font-size: calc(15px * var(--font-scale)); }
.search input { font-size: calc(13px * var(--font-scale)); }
.chip { font-size: calc(11px * var(--font-scale)); }
.result-meta { font-size: calc(9.5px * var(--font-scale)); }
.product-kicker { font-size: calc(8.5px * var(--font-scale)); }
.product-name { font-size: calc(13.5px * var(--font-scale)); }
.product-size { font-size: calc(9px * var(--font-scale)); }
.product-stock { font-size: calc(8.5px * var(--font-scale)); }
.product-price span { font-size: calc(8.5px * var(--font-scale)); }
.product-price strong { font-size: calc(20px * var(--font-scale)); }
.stepper--sm input { font-size: calc(11.5px * var(--font-scale)); }
.add-btn { font-size: calc(9px * var(--font-scale)); }
.empty-state h3 { font-size: calc(30px * var(--font-scale)); }
.empty-state p { font-size: calc(13px * var(--font-scale)); }
.promo-band blockquote { font-size: calc(clamp(2rem, 4vw, 3.2rem) * var(--font-scale)); }
.promo-band p { font-size: calc(13px * var(--font-scale)); }
.proforma-form h3 { font-size: calc(24px * var(--font-scale)); }
.form-sub { font-size: calc(11px * var(--font-scale)); }
.proforma-form .field label { font-size: calc(9px * var(--font-scale)); }
.proforma-form .field input,
.proforma-form .field textarea { font-size: calc(12.5px * var(--font-scale)); }
.form-note { font-size: calc(10.5px * var(--font-scale)); }
.print-hint { font-size: calc(10.5px * var(--font-scale)); }
.cart-head h2 { font-size: calc(30px * var(--font-scale)); }
.cart-head h2 span { font-size: calc(20px * var(--font-scale)); }
.cart-empty h3 { font-size: calc(26px * var(--font-scale)); }
.cart-empty p { font-size: calc(12px * var(--font-scale)); }
.cart-item-name { font-size: calc(12.5px * var(--font-scale)); }
.cart-item-unit { font-size: calc(10px * var(--font-scale)); }
.cart-item-total { font-size: calc(16px * var(--font-scale)); }
.cart-total-row { font-size: calc(12px * var(--font-scale)); }
.cart-total-row--grand strong { font-size: calc(26px * var(--font-scale)); }
.cart-fine { font-size: calc(9.5px * var(--font-scale)); }
.modal-content h2 { font-size: calc(clamp(1.7rem, 2.6vw, 2.4rem) * var(--font-scale)); }
.modal-desc { font-size: calc(12.5px * var(--font-scale)); }
.modal-price strong { font-size: calc(30px * var(--font-scale)); }
.footer-brand p { font-size: calc(12px * var(--font-scale)); }
.footer-col h4 { font-size: calc(9px * var(--font-scale)); }
.footer-col a,
.footer-col button { font-size: calc(12px * var(--font-scale)); }
.footer-bottom { font-size: calc(9px * var(--font-scale)); }
.footer-credit { font-size: calc(10.5px * var(--font-scale)); }

@media (max-width: 720px) {
  .brand-text strong { font-size: calc(17px * var(--font-scale)); }
  .price-toggle button { font-size: calc(8.5px * var(--font-scale)); }
  .hero-stats dt { font-size: calc(28px * var(--font-scale)); }
  .product-name { font-size: calc(12px * var(--font-scale)); }
  .product-kicker { font-size: calc(7.5px * var(--font-scale)); }
  .product-price strong { font-size: calc(18px * var(--font-scale)); }
}

@media (max-width: 430px) {
  .brand-text strong { font-size: calc(15px * var(--font-scale)); }
  .price-toggle button { font-size: calc(8px * var(--font-scale)); }
  .product-name { font-size: calc(11.5px * var(--font-scale)); }
  .product-size { font-size: calc(8px * var(--font-scale)); }
  .product-price strong { font-size: calc(17px * var(--font-scale)); }
}
