/* Anna Creations — Warm Artisan Boutique & E-Shop Stylesheet (Light Default + Candlelight Dark Mode) */
:root {
  --bg: #faf6f0;
  --bg-alt: #f2eadf;
  --card: #ffffff;
  --border: rgba(140, 99, 54, 0.18);
  --text: #261c15;
  --muted: #6f5d4e;
  --accent: #a6742b;
  --accent-deep: #855220;
  --accent-soft: rgba(166, 116, 43, 0.12);
  --ok: #2e7d4f;
  --ok-soft: rgba(46, 125, 79, 0.12);
  --err: #b8332a;
  --shadow: 0 12px 32px rgba(56, 38, 22, 0.08);
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

html.anna-dark {
  --bg: #120e0b;
  --bg-alt: #1b1510;
  --card: #211a14;
  --border: rgba(224, 184, 107, 0.2);
  --text: #f6efe6;
  --muted: #bba996;
  --accent: #dfa958;
  --accent-deep: #c48b3b;
  --accent-soft: rgba(223, 169, 88, 0.14);
  --ok: #5cd68d;
  --ok-soft: rgba(92, 214, 141, 0.14);
  --err: #f87171;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.42);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: 0.01em; }

.shell { max-width: 1220px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1220px; margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}
.brand {
  display: inline-flex; align-items: center; gap: 11px; text-decoration: none;
}
.brand-mark {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent-soft); border: 1px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 40px;
}
.brand-text strong {
  display: block; font-family: var(--serif); font-size: 22px; font-weight: 600;
  line-height: 1.05; color: var(--text); letter-spacing: 0.02em;
}
.brand-text span {
  display: block; font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); font-weight: 700;
}
.site-nav { display: flex; align-items: center; gap: 20px; }
.site-nav a {
  text-decoration: none; font-size: 13.5px; font-weight: 600; color: var(--muted);
  transition: color 0.15s;
}
.site-nav a:hover { color: var(--accent); }
.header-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lang-btn, .theme-btn {
  padding: 6px 10px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--card); color: var(--muted); font-size: 12px; font-weight: 700; cursor: pointer;
}
.lang-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.theme-btn { width: 34px; height: 34px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }

.member-trigger {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px;
  border: 1px solid rgba(46, 125, 79, 0.35); background: var(--ok-soft); color: var(--ok);
  font-size: 12.5px; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.cart-trigger {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px;
  border: 0; background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff; font-size: 13px; font-weight: 700; cursor: pointer;
}
.cart-count {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.24); color: #fff; font-size: 11.5px;
  display: inline-flex; align-items: center; justify-content: center;
}

/* Editorial Hero */
.hero {
  position: relative; overflow: hidden; min-height: 460px;
  display: flex; align-items: center;
  border-bottom: 1px solid var(--border);
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('hero-anna.jpg') center/cover no-repeat;
  filter: brightness(0.76) saturate(1.06);
}
.hero-veil {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20, 14, 10, 0.84) 0%, rgba(20, 14, 10, 0.56) 55%, rgba(20, 14, 10, 0.28) 100%);
}
.hero-content {
  position: relative; z-index: 2; max-width: 720px; padding: 62px 0; color: #faf6f0;
}
.hero-eyebrow {
  display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: #f0c97e; margin-bottom: 12px;
}
.hero h1 {
  margin: 0 0 14px; font-size: clamp(2.1rem, 4.2vw, 3.3rem); line-height: 1.12;
  color: #ffffff; font-weight: 500;
}
.hero p {
  margin: 0 0 22px; font-size: 15.5px; line-height: 1.65; color: rgba(250, 246, 240, 0.88);
  max-width: 600px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.hero-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.info-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.12); backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.22); color: #faf6f0; font-size: 12px; font-weight: 600;
}
.info-pill-member {
  cursor: pointer; background: rgba(46, 125, 79, 0.35); border-color: rgba(134, 239, 172, 0.55);
  color: #dcfce7; font-family: inherit;
}

/* Buttons */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; border: 0; text-decoration: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff; font-family: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer;
  transition: transform 0.15s, opacity 0.15s;
}
.btn-primary:hover { transform: translateY(-1px); opacity: 0.96; }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-secondary {
  padding: 9px 15px; border-radius: 999px; border: 1px solid var(--accent);
  background: var(--accent-soft); color: var(--accent); font-family: inherit;
  font-size: 13px; font-weight: 700; cursor: pointer; text-decoration: none;
}
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 18px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.1); color: #fff; font-family: inherit;
  font-size: 13.5px; font-weight: 600; cursor: pointer; text-decoration: none;
}
.modal-card .btn-ghost { border-color: var(--border); background: transparent; color: var(--text); }

/* Collections Strip */
.section { padding: 52px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.sec-head { text-align: center; max-width: 680px; margin: 0 auto 30px; }
.sec-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 6px;
}
.sec-head h2 { margin: 0 0 8px; font-size: clamp(1.75rem, 3vw, 2.4rem); }
.sec-head p { margin: 0; font-size: 14.5px; color: var(--muted); }

.collections-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px;
}
.col-card {
  text-align: left; font-family: inherit; background: var(--card);
  border: 1px solid var(--border); border-radius: 16px; padding: 20px;
  cursor: pointer; transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
  box-shadow: var(--shadow); color: var(--text);
}
.col-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.col-icon { font-size: 28px; margin-bottom: 10px; display: block; }
.col-card h3 { margin: 0 0 6px; font-size: 1.2rem; color: var(--text); }
.col-card p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; }

/* Catalog Toolbar & Grid */
.shop-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  flex-wrap: wrap; margin-bottom: 24px;
}
.category-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--card); color: var(--muted); font-family: inherit;
  font-size: 13px; font-weight: 600; cursor: pointer;
}
.chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.search-wrap { flex: 1; min-width: 220px; max-width: 320px; }
.search-wrap input {
  width: 100%; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--card); color: var(--text); font-family: inherit; font-size: 13.5px;
}

.product-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(265px, 1fr)); gap: 20px;
}
.product-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 18px;
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow);
  transition: transform 0.18s, border-color 0.18s;
}
.product-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.product-thumb {
  position: relative; height: 220px; background: var(--bg-alt);
  display: flex; align-items: center; justify-content: center; padding: 14px; cursor: pointer;
}
.product-thumb img { max-height: 100%; max-width: 100%; object-fit: contain; border-radius: 10px; }
.thumb-placeholder { font-size: 46px; opacity: 0.55; }
.ship-tag {
  position: absolute; top: 10px; left: 10px; font-size: 11px; font-weight: 700;
  padding: 4px 9px; border-radius: 999px;
  background: var(--card); color: var(--ok); border: 1px solid rgba(46, 125, 79, 0.32);
}
.ship-tag.elta-only { color: var(--accent); border-color: var(--border); }
.product-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.product-cat {
  font-size: 11px; font-weight: 700; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.product-title {
  margin: 6px 0 8px; font-family: var(--serif); font-size: 1.25rem;
  line-height: 1.25; cursor: pointer;
}
.product-desc {
  margin: 0 0 12px; font-size: 13px; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; flex: 1;
}
.product-specs { font-size: 11.5px; color: var(--muted); margin-bottom: 12px; }
.product-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding-top: 12px; border-top: 1px solid var(--border);
}
.product-price { font-size: 18px; font-weight: 800; color: var(--text); }
.member-price-orig { font-size: 12.5px; font-weight: 600; color: var(--muted); text-decoration: line-through; margin-right: 5px; }
.member-price-tag {
  font-size: 10.5px; font-weight: 800; padding: 2px 6px; border-radius: 999px;
  background: var(--ok-soft); color: var(--ok); margin-left: 4px; vertical-align: middle;
}

/* Story / Workshop Section */
.story-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 32px; align-items: center;
}
.story-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 20px;
  padding: 28px; box-shadow: var(--shadow);
}
.story-card h2 { margin: 0 0 12px; font-size: clamp(1.7rem, 2.8vw, 2.2rem); }
.story-card p { margin: 0 0 14px; font-size: 14.5px; color: var(--muted); line-height: 1.7; }
.story-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.story-fact {
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 14px; font-size: 13px;
}
.story-fact strong { display: block; color: var(--accent); font-size: 12px; margin-bottom: 3px; }
.story-img {
  border-radius: 20px; border: 1px solid var(--border); overflow: hidden; box-shadow: var(--shadow);
}
.story-img img { width: 100%; height: 340px; object-fit: cover; }

/* Footer */
.site-footer {
  background: var(--bg-alt); border-top: 1px solid var(--border); padding: 34px 0 28px;
  font-size: 13px; color: var(--muted);
}
.footer-compliance-bar {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  flex-wrap: wrap; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--border);
}
.footer-policy-links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-policy-links a { text-decoration: none; font-weight: 600; }
.footer-policy-links a:hover { color: var(--accent); text-decoration: underline; }
.viva-trust-badge { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.viva-wordmark-pill {
  display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 7px;
  background: #0f172a; border: 1px solid rgba(24, 160, 251, 0.45);
}
.pay-chip {
  font-size: 11px; font-weight: 700; padding: 3px 7px; border-radius: 6px;
  border: 1px solid var(--border); background: var(--card); color: var(--text);
}
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
}
.footer-links { display: flex; gap: 16px; }
.footer-links a { text-decoration: none; }
.admin-discreet { opacity: 0.55; }
.admin-discreet:hover { opacity: 1; }

/* Modals, Cart, Checkout & Members */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 200; background: rgba(18, 12, 8, 0.72);
  backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 16px;
}
.modal-backdrop[hidden] { display: none; }
.modal-card {
  position: relative; width: 100%; max-width: 720px; max-height: 92vh; overflow-y: auto;
  background: var(--card); border: 1px solid var(--border); border-radius: 20px;
  padding: 24px; box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
}
.modal-member { max-width: 540px; }
.modal-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--border);
}
.modal-head h2 { margin: 0; font-size: 1.55rem; }
.modal-close {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--bg-alt); color: var(--text); font-size: 20px; cursor: pointer;
}
.modal-product .modal-close { position: absolute; top: 14px; right: 14px; }
.modal-gallery-thumbs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
.modal-gallery-thumbs img {
  width: 58px; height: 58px; object-fit: cover; border-radius: 8px;
  border: 2px solid transparent; cursor: pointer; opacity: 0.7;
}
.modal-gallery-thumbs img.active { opacity: 1; border-color: var(--accent); }

.cart-items { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.cart-row {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 12px; background: var(--bg-alt); border: 1px solid var(--border);
}
.cart-row-info strong { display: block; font-size: 13.5px; }
.cart-row-info small { font-size: 12px; color: var(--muted); }
.qty-ctrl { display: inline-flex; align-items: center; gap: 6px; }
.qty-ctrl button {
  width: 28px; height: 28px; border-radius: 7px; border: 1px solid var(--border);
  background: var(--card); color: var(--text); font-weight: 700; cursor: pointer;
}
.checkout-section { margin: 16px 0; }
.checkout-section h3 { margin: 0 0 10px; font-size: 1.2rem; }
.shipping-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ship-option {
  display: flex; align-items: flex-start; gap: 10px; padding: 12px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--bg-alt); cursor: pointer;
}
.ship-option.ship-option-full { grid-column: 1 / -1; }
.ship-option.is-selected { border-color: var(--accent); background: var(--accent-soft); }
.ship-option.is-disabled { opacity: 0.5; cursor: not-allowed; }
.ship-option-body { flex: 1; }
.ship-option-top { display: flex; justify-content: space-between; gap: 8px; font-size: 13.5px; }
.ship-option small { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); }
.ship-price { font-weight: 800; color: var(--accent); }
.ship-subpanel {
  margin-top: 10px; padding: 12px; border-radius: 12px;
  background: var(--bg-alt); border: 1px solid var(--border);
}
.pickup-notice { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.55; }
.bn-picker-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.boxnow-map-host { margin-top: 10px; height: 340px; border-radius: 10px; overflow: hidden; }
.weight-note { font-size: 12px; color: var(--muted); margin-top: 6px; }

.field-label { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin: 8px 0 4px; }
.checkout-form input, .checkout-form select, .checkout-form textarea, .mem-form input, #eltaZoneSelect {
  width: 100%; padding: 9px 11px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--bg-alt); color: var(--text); font-family: inherit; font-size: 13.5px;
}
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.doc-toggle { display: flex; gap: 16px; margin-bottom: 10px; font-size: 13.5px; font-weight: 600; }
.inline-check { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; color: var(--muted); cursor: pointer; }
.inline-check a { color: var(--accent); text-decoration: underline; }
.terms-check { margin: 12px 0; }

.cart-member-teaser {
  margin: 0 0 12px; padding: 10px 12px; border-radius: 12px;
  background: var(--ok-soft); border: 1px solid rgba(46, 125, 79, 0.35);
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  font-size: 12.5px; font-weight: 600;
}
.order-summary-box {
  padding: 14px 16px; border-radius: 14px; background: var(--bg-alt); border: 1px solid var(--border);
}
.sum-row { display: flex; justify-content: space-between; font-size: 13.5px; margin-bottom: 6px; }
.sum-row.sum-member { color: var(--ok); font-weight: 700; }
.sum-row.sum-total { font-size: 17px; padding-top: 8px; margin-top: 8px; border-top: 1px solid var(--border); color: var(--accent); }
.checkout-viva-bar {
  margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: var(--bg-alt);
  border: 1px solid var(--border); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--muted);
}
.btn-submit { width: 100%; padding: 13px 20px; font-size: 14.5px; }
.checkout-footnote { margin: 8px 0 0; font-size: 12px; color: var(--muted); text-align: center; }
.form-error {
  margin: 10px 0; padding: 10px 12px; border-radius: 10px;
  background: rgba(184, 51, 42, 0.12); border: 1px solid rgba(184, 51, 42, 0.35);
  color: var(--err); font-size: 13px; font-weight: 600;
}
.order-success { text-align: center; padding: 20px 10px; }
.callback-icon {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 12px;
  background: var(--ok-soft); color: var(--ok); font-size: 28px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}

.mem-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.mem-tab {
  padding: 7px 12px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--bg-alt); color: var(--muted); font-family: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer;
}
.mem-tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.mem-perk {
  margin: 0 0 12px; padding: 10px 12px; border-radius: 10px;
  background: var(--accent-soft); border: 1px solid var(--border); font-size: 12.5px;
}
.mem-msg { padding: 10px 12px; border-radius: 10px; font-size: 13px; font-weight: 600; margin-bottom: 12px; }
.mem-msg.ok { background: var(--ok-soft); color: var(--ok); }
.mem-msg.err { background: rgba(184, 51, 42, 0.12); color: var(--err); }
.mem-welcome-bar {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 12px 14px; border-radius: 12px; background: var(--bg-alt); border: 1px solid var(--border); margin-bottom: 14px;
}
.mem-acc-sub { font-size: 12px; color: var(--muted); }
.mem-active-pill {
  padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 800;
  background: var(--ok-soft); color: var(--ok);
}
.mem-orders-list { display: flex; flex-direction: column; gap: 10px; max-height: 360px; overflow-y: auto; }
.mem-order-card { padding: 12px; border-radius: 12px; background: var(--bg-alt); border: 1px solid var(--border); font-size: 13px; }
.mem-order-head { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.mem-order-items { margin: 6px 0 0; padding-left: 18px; font-size: 12.5px; color: var(--muted); }
.loading-box, .empty-cart { padding: 36px; text-align: center; color: var(--muted); grid-column: 1 / -1; }

@media (max-width: 980px) {
  .collections-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .site-nav { display: none; }
  .collections-grid, .shipping-cards, .form-grid-2, .story-facts { grid-template-columns: 1fr; }
  .modal-card { padding: 16px; }
}
