/* ========================================
   MÓRA PARTNER — landing page styles
   Standalone project — no dependency on any
   other MÓRA site/project's stylesheet.
   Premium monochrome minimalism.
   ======================================== */

:root {
  --color-bg:          #FFFFFF;
  --color-surface:     #F7F7F7;
  --color-surface-2:   #EEEEEE;
  --color-border:      #E0E0E0;
  --color-text:        #111111;
  --color-text-muted:  #888888;
  --color-text-faint:  #BBBBBB;
  --color-dark:        #111111;
  --color-dark-hover:  #333333;

  --font-body: 'Montserrat', sans-serif;

  --max-w: 1280px;
  --gap: clamp(1.5rem, 4vw, 3rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: var(--font-body); cursor: pointer; }
h1, h2, h3 { font-weight: 300; letter-spacing: 0.02em; }
ul { list-style: none; }

/* Removes the ~300ms tap-delay some mobile browsers still apply while
   waiting to see if a tap becomes a double-tap-to-zoom gesture — every
   clickable control here has its own explicit tap target, none rely on
   double-tap zoom, so it's safe to opt them all out. */
a, button, [role="button"] { touch-action: manipulation; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 4rem);
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  background: var(--color-dark);
  color: #FFFFFF;
  border: 1px solid var(--color-dark);
  border-radius: 0;
  padding: 0.85rem 2rem;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 400;
  transition: background 0.2s, border-color 0.2s, transform 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn:hover { background: var(--color-dark-hover); border-color: var(--color-dark-hover); }
.btn:active { transform: scale(0.97); }
.btn-large { padding: 1.1rem 2.75rem; font-size: 0.75rem; }

/* ---- Scroll reveal ---- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ========== HEADER ========== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow 0.3s;
}
.site-header.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,0.06); }

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: var(--space-8);
  height: 76px;
}
.logo-text {
  font-size: 1.15rem; font-weight: 400; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--color-text);
}
.logo-sub { color: var(--color-text-muted); font-weight: 300; }

.main-nav { display: flex; gap: 2rem; justify-self: center; }
.main-nav a {
  font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--color-text); opacity: 0.7; transition: opacity 0.2s, color 0.2s;
}
.main-nav a:hover { opacity: 1; color: var(--color-text-muted); }

.burger {
  display: none; background: none; border: none; flex-direction: column;
  gap: 5px; padding: 4px; justify-self: end;
}
.burger span { display: block; width: 22px; height: 1.5px; background: var(--color-text); }

/* ---- Cart trigger (header) ---- */
.cart-trigger {
  position: relative; background: none; border: none; cursor: pointer;
  padding: 0.4rem; display: flex; align-items: center; color: var(--color-text);
  opacity: 1; transition: opacity 0.2s;
}
.cart-trigger:hover { opacity: 0.6; }
.cart-badge {
  display: none; position: absolute; top: -2px; right: -2px;
  background: var(--color-dark); color: #FFFFFF; border-radius: 50%;
  width: 17px; height: 17px; font-size: 10px; align-items: center;
  justify-content: center; font-family: var(--font-body);
}

.mobile-nav {
  display: none; position: fixed; inset: 76px 0 0 0; background: #FFFFFF;
  z-index: 99; padding: 2.5rem var(--gap); flex-direction: column; gap: 1.75rem;
  border-top: 1px solid var(--color-border); overflow-y: auto;
}
.mobile-nav a { font-size: 0.9rem; letter-spacing: 0.08em; text-transform: uppercase; }
.mobile-nav.open { display: flex; }

@media (max-width: 860px) {
  .header-inner { grid-template-columns: auto 1fr auto auto; }
  .main-nav { display: none; }
  .burger { display: flex; }
}

/* ========== HERO ========== */
.hero {
  padding: calc(76px + var(--space-24)) 0 var(--space-24);
  background: var(--color-bg);
  text-align: center;
}
.hero-inner { max-width: 880px; margin: 0 auto; }
.eyebrow, .section-eyebrow {
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--color-text-muted); margin-bottom: var(--space-4);
}
.hero-title {
  font-size: clamp(2.1rem, 5.5vw, 3.6rem);
  line-height: 1.15; font-weight: 300; letter-spacing: 0.005em;
  margin-bottom: var(--space-6);
}
.hero-highlight {
  font-weight: 500; white-space: nowrap;
  border-bottom: 2px solid var(--color-text);
  padding-bottom: 0.05em;
}
.hero-subtext {
  font-size: 1rem; line-height: 1.8; color: var(--color-text-muted);
  max-width: 620px; margin: 0 auto var(--space-8);
}
.hero-cta { margin-top: var(--space-4); }

/* ========== SECTION HEADERS (shared) ========== */
.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  margin-bottom: var(--space-4);
}
.section-subtitle {
  font-size: 0.95rem; color: var(--color-text-muted); line-height: 1.8;
  max-width: 620px; margin-bottom: var(--space-12);
}
.products-section, .benefits-section, .lead-section {
  padding: var(--space-24) 0;
}
.products-section .container, .benefits-section .container { text-align: center; }
.products-section .section-subtitle, .benefits-section .section-subtitle { margin-left: auto; margin-right: auto; }

/* ========== 2. PRODUCT GRID ========== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-6);
  text-align: left;
}
.product-card {
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08); }
.product-card-img {
  aspect-ratio: 1 / 1;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  overflow: hidden;
  margin-bottom: var(--space-4);
}
.product-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.product-card:hover .product-card-img img { transform: scale(1.05); }
.product-card-name { font-size: 0.9rem; font-weight: 400; margin-bottom: var(--space-2); }
.product-card-desc { font-size: 0.8rem; color: var(--color-text-muted); line-height: 1.6; }
.product-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto; padding-top: var(--space-4);
  border-top: 1px solid var(--color-border); gap: var(--space-3);
}
.product-card-price { font-size: 0.9rem; font-weight: 500; }
.btn-add-cart {
  background: none; border: 1px solid var(--color-dark); color: var(--color-text);
  padding: 0.5rem 0.9rem; font-size: 0.65rem; letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s, transform 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}
.btn-add-cart:hover { background: var(--color-dark); color: #FFFFFF; }
.btn-add-cart:active { transform: scale(0.96); }
.btn-add-cart.added { background: var(--color-dark); color: #FFFFFF; }

@media (max-width: 980px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ========== 2b. GIFT SET CARDS ========== */
.gift-set-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 640px) {
  .gift-set-grid { grid-template-columns: 1fr; }
}

/* ========== 2. WHAT YOU GET DURING THE CONSULTATION (4 cards, icons) ========== */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
  text-align: left;
}
.benefit-card {
  padding: var(--space-8) var(--space-6);
  border: 1px solid var(--color-border);
  transition: border-color 0.2s;
}
.benefit-card:hover { border-color: var(--color-text); }
.benefit-icon { display: inline-flex; color: var(--color-text); margin-bottom: var(--space-6); }
.benefit-icon svg { width: 34px; height: 34px; }
.benefit-card h3 { font-size: 1rem; font-weight: 400; margin-bottom: var(--space-3); }
.benefit-card p { font-size: 0.82rem; color: var(--color-text-muted); line-height: 1.7; }

@media (max-width: 980px) {
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .benefits-grid { grid-template-columns: 1fr; }
}

/* ========== 3. BRAND BENEFITS (5 items, no icons — bold lead-in + text) ========== */
.brand-section { padding: var(--space-24) 0; }
.brand-section .container { text-align: center; }
.brand-list {
  max-width: 760px;
  margin: 0 auto;
  text-align: left;
}
.brand-item {
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--color-border);
}
.brand-item:last-child { border-bottom: none; }
.brand-item p { font-size: 0.95rem; line-height: 1.8; color: var(--color-text-muted); }
.brand-item strong { color: var(--color-text); font-weight: 500; }

/* ========== 4. STATS ========== */
.stats-section {
  background: var(--color-dark);
  color: #FFFFFF;
  padding: var(--space-24) 0;
  text-align: center;
}
.stats-section .section-eyebrow.light { color: rgba(255,255,255,0.55); }
.stats-section .section-title.light { color: #FFFFFF; margin-bottom: var(--space-12); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
}
.stat-card { display: flex; flex-direction: column; align-items: center; gap: var(--space-3); }
.stat-number { font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 500; letter-spacing: 0.01em; }
.stat-label {
  font-size: 0.78rem; color: rgba(255,255,255,0.6); text-transform: uppercase;
  letter-spacing: 0.06em; line-height: 1.5; max-width: 200px;
}

@media (max-width: 860px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ========== 5. LEAD FORM ========== */
.lead-section { background: var(--color-surface); }
.lead-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: start;
}
.lead-copy .section-subtitle { margin-bottom: 0; }

.lead-form {
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.form-row { display: flex; flex-direction: column; gap: var(--space-2); }
.form-row label {
  font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--color-text-muted);
}
.form-row input {
  border: 1px solid var(--color-border);
  background: #FFFFFF;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-text);
  outline: none;
  transition: border-color 0.2s;
}
.form-row input:focus { border-color: var(--color-text); }
.form-row input::placeholder { color: var(--color-text-faint); }
.lead-submit { width: 100%; margin-top: var(--space-2); }

.contact-link {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-surface-2);
  transition: opacity 0.2s;
}
.contact-link:last-child { padding-bottom: 0; border-bottom: none; }
.contact-link:hover { opacity: 0.6; }
.contact-label {
  font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--color-text-muted);
}
.contact-value { font-size: 1.05rem; font-weight: 400; color: var(--color-text); }
.lead-form-note {
  font-size: 0.8rem; color: var(--color-text-muted); min-height: 1.2em;
}
.lead-form-note.success { color: #1a7a3c; }

@media (max-width: 860px) {
  .lead-inner { grid-template-columns: 1fr; gap: var(--space-8); }
}

/* ========== FOOTER ========== */
.site-footer { background: #FFFFFF; border-top: 1px solid var(--color-border); padding: var(--space-16) 0 var(--space-8); }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}
.footer-brand p { font-size: 0.82rem; color: var(--color-text-muted); margin-top: var(--space-2); max-width: 260px; }
.footer-label {
  font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--color-text-muted); margin-bottom: var(--space-3);
}
.footer-contact, .footer-social { display: flex; flex-direction: column; gap: var(--space-2); }
.footer-contact a, .footer-social a { font-size: 0.85rem; transition: color 0.2s; }
.footer-contact a:hover, .footer-social a:hover { color: var(--color-text-muted); }
.footer-bottom { border-top: 1px solid var(--color-border); padding-top: var(--space-6); }
.footer-bottom p { font-size: 0.72rem; color: var(--color-text-faint); }

@media (max-width: 700px) {
  .footer-inner { grid-template-columns: 1fr; gap: var(--space-6); }
}

/* ========== PRODUCT DETAIL MODAL ========== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  z-index: 300; display: flex; align-items: center; justify-content: center;
  padding: 1.5rem; opacity: 0; pointer-events: none; transition: opacity 0.28s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal-box {
  background: #FFFFFF; max-width: 420px; width: 100%; max-height: 90vh;
  overflow-y: auto; position: relative;
  transform: scale(0.92); opacity: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}
.modal-overlay.open .modal-box { transform: scale(1); opacity: 1; }
.modal-close {
  position: absolute; top: 1rem; right: 1.25rem; background: none; border: none;
  font-size: 1.6rem; line-height: 1; color: var(--color-text); opacity: 0.4;
  transition: opacity 0.2s; z-index: 2; padding: 0.2rem 0.4rem;
}
.modal-close:hover { opacity: 1; }
/* Capped by max-height (not just aspect-ratio) so the photo can never eat
   the whole first screenful on short viewports — object-fit: cover crops
   it cleanly instead of squeezing it. */
.modal-img-wrap {
  width: 100%; aspect-ratio: 1 / 1; max-height: 42vh;
  background: var(--color-surface); overflow: hidden;
}
.modal-img { width: 100%; height: 100%; object-fit: cover; }
.modal-info { padding: 2rem 2rem 2.25rem; }
.modal-title { font-size: 1.3rem; font-weight: 400; margin-bottom: var(--space-2); padding-right: 1.5rem; }
.modal-price { font-size: 1rem; font-weight: 500; margin-bottom: var(--space-3); }
.modal-description { font-size: 0.88rem; line-height: 1.8; color: var(--color-text-muted); margin-bottom: var(--space-4); }
.modal-meta { font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text-faint); }

/* Sticky to the bottom of .modal-box's own scroll area (not the page) —
   keeps "До кошика" reachable the instant the modal opens, even when the
   photo + description are tall enough on short/mobile viewports that the
   rest of the content would otherwise need a scroll to reach it. */
.modal-purchase {
  position: sticky; bottom: 0; z-index: 1;
  background: #FFFFFF;
  display: flex; align-items: center; gap: var(--space-4);
  margin-top: var(--space-6); margin-left: -2rem; margin-right: -2rem;
  padding: var(--space-4) 2rem;
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -6px 12px -6px rgba(0, 0, 0, 0.06);
}
.modal-qty { display: flex; align-items: center; gap: var(--space-2); flex-shrink: 0; }
.modal-qty-btn {
  width: 30px; height: 30px; border: 1px solid var(--color-border); background: none;
  color: var(--color-text); font-size: 0.9rem; display: flex; align-items: center;
  justify-content: center;
  transition: border-color 0.2s, transform 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-qty-btn:hover { border-color: var(--color-text); }
.modal-qty-btn:active { transform: scale(0.92); }
.modal-qty-input {
  width: 48px; text-align: center; border: 1px solid var(--color-border);
  padding: 0.4rem 0.2rem; font-family: var(--font-body); font-size: 0.85rem;
  color: var(--color-text);
}
.modal-qty-input::-webkit-outer-spin-button,
.modal-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.modal-add-cart { flex: 1; text-align: center; }

@media (max-width: 480px) {
  .modal-purchase { flex-direction: column; align-items: stretch; }
}

/* ---- Gift set size selector + includes list (inside .modal-info) ---- */
.gift-size-selector { margin-top: var(--space-4); }
.gift-size-label {
  font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--color-text-muted); margin-bottom: var(--space-2);
}
.size-pills { display: flex; gap: var(--space-2); }
.size-pill {
  background: none; border: 1px solid var(--color-border); color: var(--color-text);
  padding: 0.45rem 1rem; font-size: 0.75rem; letter-spacing: 0.06em;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}
.size-pill:hover, .size-pill.active { background: var(--color-dark); color: #FFFFFF; border-color: var(--color-dark); }
.size-pill:active { transform: scale(0.94); }
.gift-size-price { font-size: 0.9rem; font-weight: 500; margin-top: var(--space-3); }

/* ---- Gift set shampoo choice — the one exception to "fixed list", see
   index.html's comment above the markup for which sizes use it. ---- */
.gift-shampoo-selector { margin-top: var(--space-4); }
.gift-shampoo-label {
  font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--color-text-muted); margin-bottom: var(--space-3);
}
.gift-shampoo-option {
  display: flex; align-items: flex-start; gap: var(--space-2);
  font-size: 0.85rem; color: var(--color-text); cursor: pointer;
  line-height: 1.5; margin-bottom: var(--space-2);
}
.gift-shampoo-option:last-child { margin-bottom: 0; }
.gift-shampoo-option input { margin-top: 0.2rem; accent-color: var(--color-dark); flex-shrink: 0; }
.gift-shampoo-hint { color: var(--color-text-muted); font-size: 0.78rem; }

.gift-includes { margin-top: var(--space-4); }
.gift-includes-label {
  font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--color-text-muted); margin-bottom: var(--space-3);
}
.gift-includes-list { list-style: none; display: flex; flex-direction: column; gap: var(--space-3); }
.gift-includes-item {
  display: flex; align-items: center; gap: var(--space-3);
  font-size: 0.85rem; color: var(--color-text); cursor: pointer; transition: opacity 0.2s;
}
.gift-includes-item:hover, .gift-includes-item:focus-visible { opacity: 0.6; outline: none; }
.gift-includes-thumb {
  width: 40px; height: 40px; object-fit: cover; flex-shrink: 0;
  background: var(--color-surface); border: 1px solid var(--color-border);
}
.gift-includes-name { flex: 1; }

/* ---- Set item quick view (image + name only, no description) ---- */
.set-item-modal-box { max-width: 380px; }
.set-item-modal-box .modal-title { margin-bottom: 0; }

/* ========== CART DRAWER / CHECKOUT / SUCCESS ========== */
.drawer-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  z-index: 400; opacity: 0; pointer-events: none; transition: opacity 0.25s ease;
}
.drawer-overlay.open { opacity: 1; pointer-events: auto; }

.drawer-box {
  position: fixed; z-index: 401; top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.96);
  background: #FFFFFF; width: calc(100% - 2rem); max-width: 520px;
  max-height: 90dvh; overflow-y: auto;
  padding: var(--space-8); border: 1px solid var(--color-border);
  opacity: 0; pointer-events: none;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}
.drawer-box.open { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
.drawer-box.cart-drawer { max-width: 640px; }

.drawer-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: var(--space-6);
}
.drawer-header h2 { font-size: 1.3rem; font-weight: 300; }
.drawer-count { font-size: 0.8rem; color: var(--color-text-muted); font-weight: 300; }
.drawer-close {
  background: none; border: none; font-size: 1.5rem; line-height: 1;
  color: var(--color-text-muted); cursor: pointer;
}
.drawer-close:hover { color: var(--color-text); }

/* ---- Cart items ---- */
.cart-line {
  display: grid; grid-template-columns: 60px 1fr auto auto; gap: var(--space-4);
  align-items: center; padding: var(--space-4) 0; border-bottom: 1px solid var(--color-surface-2);
}
.cart-line-img {
  width: 60px; height: 60px; object-fit: cover; background: var(--color-surface);
  border: 1px solid var(--color-border);
}
.cart-line-name { font-size: 0.85rem; margin-bottom: var(--space-1); }
.cart-line-price { font-size: 0.75rem; color: var(--color-text-muted); }
.cart-line-qty { display: flex; align-items: center; gap: var(--space-2); }
.cart-line-qty button {
  width: 24px; height: 24px; border: 1px solid var(--color-border); background: none;
  color: var(--color-text); font-size: 0.85rem; display: flex; align-items: center;
  justify-content: center;
  transition: border-color 0.2s, transform 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}
.cart-line-qty button:hover { border-color: var(--color-text); }
.cart-line-qty button:active { transform: scale(0.92); }
.cart-line-qty span { font-size: 0.8rem; min-width: 18px; text-align: center; }
.cart-line-total { font-size: 0.85rem; font-weight: 500; min-width: 60px; text-align: right; }

.cart-empty {
  display: none; flex-direction: column; align-items: center; justify-content: center;
  padding: var(--space-16) 0; color: var(--color-text-muted); text-align: center; gap: var(--space-4);
}
.cart-empty p { font-size: 0.9rem; }

.cart-footer { display: none; padding-top: var(--space-6); border-top: 1px solid var(--color-border); margin-top: var(--space-2); }
.cart-total-row {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: var(--space-4); font-size: 0.75rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--color-text-muted);
}
#cart-total { font-size: 1.2rem; font-weight: 500; color: var(--color-text); letter-spacing: normal; text-transform: none; }
.cart-checkout-btn { width: 100%; }
.cart-clear-btn {
  display: block; margin: var(--space-4) auto 0; background: none; border: none;
  font-size: 0.7rem; color: var(--color-text-muted); text-decoration: underline; cursor: pointer;
}

/* ---- Checkout form ---- */
.checkout-summary {
  background: var(--color-surface); padding: var(--space-4); margin-bottom: var(--space-6);
  font-size: 0.8rem;
}
.checkout-summary-line { display: flex; justify-content: space-between; padding: var(--space-2) 0; border-bottom: 1px solid var(--color-border); }
.checkout-summary-line:last-child { border-bottom: none; }

#checkout-form .form-row { margin-bottom: var(--space-3); }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.form-grid-2 .form-row { margin-bottom: 0; }
.form-error { display: none; font-size: 0.72rem; color: #AA0000; margin-top: 0.35rem; }
.form-error.visible { display: block; }

.np-field { position: relative; }
.np-dropdown {
  display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 10;
  background: #FFFFFF; border: 1px solid var(--color-border); border-top: none;
  max-height: 220px; overflow-y: auto;
}
.np-dropdown-item { padding: 0.6rem 1rem; font-size: 0.82rem; cursor: pointer; }
.np-dropdown-item:hover { background: var(--color-surface); }
.np-dropdown-item.np-muted { color: var(--color-text-muted); cursor: default; }
.np-dropdown-item.np-muted:hover { background: none; }

.checkout-total-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--space-4) 0; border-top: 1px solid var(--color-border); margin-bottom: var(--space-4);
}
.checkout-total-row span:first-child {
  font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--color-text-muted);
}
#checkout-total { font-size: 1.3rem; font-weight: 500; }
.checkout-submit-btn { width: 100%; }
.checkout-submit-btn:disabled { opacity: 0.5; cursor: default; }

@media (max-width: 480px) {
  .form-grid-2 { grid-template-columns: 1fr; }
  .cart-line { grid-template-columns: 48px 1fr auto; grid-template-areas: "img name total" "img qty total"; }
  .cart-line-img { grid-area: img; }
  .cart-line-name, .cart-line-price { grid-area: name; }
  .cart-line-qty { grid-area: qty; }
  .cart-line-total { grid-area: total; }
}

/* ---- Success modal ---- */
.success-modal { max-width: 420px; text-align: center; }
.success-body { padding-top: var(--space-4); }
.success-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%; background: var(--color-dark);
  color: #FFFFFF; font-size: 1.4rem; margin: 0 auto var(--space-6);
}
.success-body h2 { font-size: 1.3rem; font-weight: 400; margin-bottom: var(--space-4); }
.success-body p { font-size: 0.85rem; color: var(--color-text-muted); margin-bottom: var(--space-4); }
.success-body .btn { margin-top: var(--space-2); }

@media (max-width: 480px) {
  .modal-info { padding: 1.75rem 1.5rem 2rem; }
  /* Keep the sticky purchase bar's "breakout" margins in sync with
     .modal-info's narrower mobile padding above, so it still spans the
     full width of .modal-box edge-to-edge instead of leaving a gap. */
  .modal-purchase { margin-left: -1.5rem; margin-right: -1.5rem; padding-left: 1.5rem; padding-right: 1.5rem; }
}
