/* ============================================================
   Silvera — storefront theme
   Ivory / warm cream backgrounds, deep cocoa ink, brushed-gold
   accents, classical serif display type. Admin pages load this
   file too, but admin/assets/admin.css overrides the :root tokens
   so the admin panel keeps its own look.
   ============================================================ */
:root {
  --bg: #faf6ef;
  --bg-raised: #fffdf9;
  --bg-card: #ffffff;
  --bg-tint: #f3ebdf;
  --ink: #3b2e24;
  --ink-soft: #5c4b3d;
  --muted: #8d7c6b;
  --border: #ebe1d2;
  --border-light: #dccdb7;
  --accent: #b08d4a;          /* brushed gold */
  --accent-hover: #977537;
  --accent-deep: #8a6a2f;     /* gold dark enough for text on white */
  --accent-contrast: #ffffff;
  --sage: #7f8d6c;
  --success-bg: #eef3e8;
  --success-text: #4b6e3f;
  --error-bg: #f9ece8;
  --error-text: #a4483a;
  --radius: 4px;
  --radius-lg: 10px;
  --shadow-soft: 0 10px 30px rgba(84, 62, 38, 0.08);
  --shadow-lift: 0 18px 40px rgba(84, 62, 38, 0.14);
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-brand: "Cinzel", "Cormorant Garamond", Georgia, serif;
  --font-body: "Jost", "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, #fffaf2 0%, rgba(250,246,239,0) 70%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; color: var(--ink); line-height: 1.2; }
a { color: var(--accent-deep); }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

body.modal-open { overflow: hidden; }

/* ---------- Gold ornament (thin rule + lotus-ish diamond) ---------- */
.ornament {
  display: block;
  width: 180px;
  height: 14px;
  margin: 10px auto 0;
  background:
    linear-gradient(var(--accent), var(--accent)) left center / 70px 1px no-repeat,
    linear-gradient(var(--accent), var(--accent)) right center / 70px 1px no-repeat;
  position: relative;
}
.ornament::before {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 9px; height: 9px;
  border: 1px solid var(--accent);
  transform: translate(-50%, -50%) rotate(45deg);
}

/* ---------- Announcement banner ---------- */
.announcement-banner {
  background: var(--ink);
  color: #f3e7cf;
  overflow: hidden;
  white-space: nowrap;
  padding: 8px 0;
}
.announcement-track {
  display: inline-flex;
  animation: banner-scroll 28s linear infinite;
}
.announcement-track span {
  display: inline-block;
  padding: 0 48px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
@keyframes banner-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Age gate / terms popup ---------- */
.age-gate-overlay {
  position: fixed;
  inset: 0;
  background: rgba(59, 46, 36, 0.55);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.age-gate-box {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 100%;
  padding: 32px;
  box-shadow: var(--shadow-lift);
}
.age-gate-box h2 { margin: 0 0 16px; font-size: 26px; text-align: center; }
.age-gate-terms {
  max-height: 240px;
  overflow-y: auto;
  border: 1px solid var(--border);
  background: var(--bg);
  padding: 14px;
  border-radius: var(--radius);
  margin-bottom: 18px;
  font-size: 14px;
  color: var(--ink-soft);
}
.terms-text { white-space: pre-line; margin: 0; }
.age-gate-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  margin-bottom: 18px;
  cursor: pointer;
}
.age-gate-checkbox input { width: auto; margin-top: 4px; accent-color: var(--accent); }
#age-gate-continue:disabled { opacity: 0.45; cursor: not-allowed; }

/* ---------- Header ---------- */
.site-header {
  background: rgba(255, 253, 249, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 24px 0;
  position: relative;
}
.logo {
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo:hover { color: var(--ink); }
.logo-img { display: block; object-fit: contain; max-width: 100%; }
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 28px;
  line-height: 1;
  color: var(--accent);
  background: linear-gradient(145deg, #fffaf0, #f4e8d2);
}
.brand-text { display: flex; flex-direction: column; align-items: flex-start; }
.brand-name {
  font-family: var(--font-brand);
  font-weight: 500;
  font-size: 28px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1.05;
}
.brand-subtitle {
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}
.site-header nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  margin-top: 14px;
  padding: 12px 0;
  width: 100%;
  border-top: 1px solid var(--border);
}
.site-header nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: color .2s;
  position: relative;
}
.site-header nav a::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -5px;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width .25s, left .25s;
}
.site-header nav a:hover { color: var(--accent-deep); }
.site-header nav a:hover::after { width: 100%; left: 0; }
.site-header nav a.cart-link { color: var(--accent-deep); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  padding: 0;
  background: none;
  border: 1px solid var(--border-light);
  border-radius: 50%;
  cursor: pointer;
}
.nav-toggle span { display: block; width: 16px; height: 1.5px; margin: 0 auto; background: var(--ink); transition: transform .2s, opacity .2s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- Layout / headings ---------- */
.main-content { padding: 36px 24px 80px; min-height: 60vh; }
.page-title {
  font-size: 40px;
  font-weight: 500;
  text-align: center;
  margin: 10px 0 34px;
  padding-bottom: 22px;
  color: var(--ink);
  position: relative;
}
.page-title::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  width: 90px; height: 1px;
  background: var(--accent);
  transform: translateX(-50%);
}
.section-heading { text-align: center; margin: 70px 0 34px; scroll-margin-top: 140px; }
.section-heading h2 { font-size: 38px; font-weight: 500; margin: 0; letter-spacing: 0.02em; }

.alert { padding: 12px 16px; border-radius: var(--radius); margin: 16px 0; font-size: 14px; border: 1px solid transparent; }
.alert-success { background: var(--success-bg); color: var(--success-text); border-color: #d3e2c7; }
.alert-error { background: var(--error-bg); color: var(--error-text); border-color: #efd2ca; }

/* ---------- Homepage: hero, intro, features, ritual ---------- */
.hero {
  margin: -36px calc(50% - 50vw) 0;
  background: var(--bg-tint);
  display: flex;
  justify-content: center;
}
.hero-img {
  display: block;
  width: 100%;
  max-width: 1600px;
  height: auto;
}
.intro { text-align: center; max-width: 640px; margin: 54px auto 0; }
.tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 30px;
  color: var(--ink);
  margin: 18px 0 10px;
}
.intro-text { color: var(--ink-soft); font-weight: 300; font-size: 17px; margin: 0 0 28px; }

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 64px 0 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.feature { text-align: center; padding: 34px 28px; }
.feature + .feature { border-left: 1px solid var(--border); }
.feature h3 { font-size: 22px; font-weight: 600; margin: 0 0 8px; }
.feature p { margin: 0; color: var(--muted); font-size: 14.5px; font-weight: 300; }

.ritual { margin-top: 30px; }
.ritual-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.ritual-step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 26px 30px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}
.ritual-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  font-family: var(--font-brand);
  font-size: 15px;
  color: var(--accent-deep);
}
.ritual-step h3 { font-size: 24px; margin: 14px 0 8px; }
.ritual-step p { margin: 0; color: var(--ink-soft); font-weight: 300; font-size: 15px; }
.safety-note { text-align: center; color: var(--muted); font-size: 13px; max-width: 720px; margin: 30px auto 0; font-style: italic; }

/* ---------- Product grid ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.product-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: var(--border-light); }
.product-card-link { display: block; text-decoration: none; color: var(--ink); }
.product-card-link:hover { color: var(--ink); }
.product-card-img { position: relative; aspect-ratio: 4/5; background: var(--bg-tint); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.product-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.product-card:hover .product-card-img img { transform: scale(1.04); }
.sale-badge {
  position: absolute; top: 14px; left: 14px; z-index: 1;
  background: var(--accent); color: #fff; font-size: 10.5px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.18em; padding: 5px 12px; border-radius: 999px;
}
.favorite-star {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 34px; height: 34px; padding: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(255,253,249,0.88); border: 1px solid var(--border); border-radius: 50%;
  color: var(--muted); font-size: 17px; line-height: 1; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .15s;
}
.favorite-star:hover { background: #fff; color: var(--accent); transform: scale(1.08); }
.favorite-star.favorited { color: var(--accent); border-color: var(--accent); }
.no-image { color: var(--muted); font-size: 13px; }
.no-image.large { width: 100%; height: 100%; min-height: 320px; display: flex; align-items: center; justify-content: center; background: var(--bg-tint); border-radius: var(--radius-lg); }
.product-card-body { padding: 20px 18px 22px; text-align: center; }
.product-card-body h3 { margin: 0 0 6px; font-size: 24px; font-weight: 600; letter-spacing: 0.01em; }
.price { font-family: var(--font-body); font-weight: 400; margin: 0; color: var(--accent-deep); letter-spacing: 0.06em; }
.out-of-stock { color: var(--muted); font-size: 11.5px; margin-top: 6px; text-transform: uppercase; letter-spacing: 0.16em; }
.card-restock .countdown-text { color: var(--accent-deep); font-weight: 500; font-variant-numeric: tabular-nums; }

/* ---------- Journal (blog) ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; margin-top: 20px; }
.blog-card {
  display: block; text-decoration: none; color: var(--ink);
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; transition: transform .3s, box-shadow .3s;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); color: var(--ink); }
.blog-card-img { aspect-ratio: 16/10; background: var(--bg-tint); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { padding: 20px 22px 24px; }
.blog-card-body h3 { margin: 6px 0; font-size: 23px; }
.blog-card-category {
  display: inline-block; font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--accent-deep); text-decoration: none;
}

.pagination { display: flex; gap: 8px; margin-top: 34px; flex-wrap: wrap; justify-content: center; }
.pagination a {
  display: inline-block; padding: 8px 15px; border: 1px solid var(--border-light); border-radius: 999px;
  color: var(--ink); text-decoration: none; font-size: 14px;
}
.pagination a:hover { border-color: var(--accent); color: var(--accent-deep); }
.pagination a.active { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); }

.blog-post { max-width: 740px; margin: 0 auto; }
.blog-post-image { width: 100%; border-radius: var(--radius-lg); margin: 16px 0 24px; }
.blog-post-body { color: var(--ink-soft); line-height: 1.8; font-size: 17px; font-weight: 300; }
.blog-post-body h2, .blog-post-body h3 { color: var(--ink); margin-top: 32px; font-size: 28px; }
.blog-post-body p { margin: 0 0 18px; }
.blog-post-body ul, .blog-post-body ol { margin: 0 0 18px; padding-left: 24px; }
.blog-related { max-width: 740px; margin: 44px auto 0; padding-top: 26px; border-top: 1px solid var(--border); }
.blog-related ul { list-style: none; padding: 0; margin: 0; }
.blog-related li { padding: 10px 0; border-bottom: 1px solid var(--border); }
.blog-related a { color: var(--ink); text-decoration: none; font-family: var(--font-display); font-size: 19px; }
.blog-related a:hover { color: var(--accent-deep); }

/* ---------- Product detail ---------- */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.product-detail-img img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); }
.product-detail-body h1 { margin-top: 0; font-size: 46px; font-weight: 500; }
.product-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.product-thumbs img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--border); cursor: pointer; opacity: 0.7; transition: opacity .2s, border-color .2s; box-shadow: none; }
.product-thumbs img:hover { opacity: 1; }
.product-thumbs img.active { opacity: 1; border-color: var(--accent); }
.price-block { margin: 6px 0 10px; font-size: 22px; font-weight: 400; letter-spacing: 0.04em; }
.price-current { color: var(--accent-deep); }
.price-old { color: var(--muted); text-decoration: line-through; margin-right: 10px; font-size: 17px; }
.price-sale { color: var(--error-text); }
.sale-countdown { font-size: 13px; color: var(--muted); margin: 0 0 12px; }
.sale-countdown .countdown-text { color: var(--accent-deep); font-weight: 500; }
.restock-countdown { font-size: 13px; color: var(--muted); margin: 0 0 12px; }
.restock-countdown .countdown-text { color: var(--accent-deep); font-weight: 500; font-variant-numeric: tabular-nums; }
.fast-ship-note { font-size: 13px; color: var(--sage); margin: 10px 0 0; }
.fast-ship-note .fs-day { text-transform: capitalize; }
.fast-ship-note .fs-count { color: var(--accent-deep); font-weight: 500; font-variant-numeric: tabular-nums; }
.card-price-old { color: var(--muted); text-decoration: line-through; margin-right: 6px; font-size: 13px; }
.card-price-sale { color: var(--error-text); }
.description { color: var(--ink-soft); white-space: pre-line; font-weight: 300; font-size: 16.5px; line-height: 1.75; }

.coa-btn {
  background: var(--bg-raised); border: 1px solid var(--border-light); border-radius: 999px;
  color: var(--ink-soft); font-family: var(--font-body); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.14em;
  padding: 4px 12px; margin-right: 10px; cursor: pointer; vertical-align: middle;
}
.coa-btn:hover { border-color: var(--accent); color: var(--accent-deep); }

.coa-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 24px; }
.coa-modal[hidden] { display: none; }
.coa-modal-backdrop { position: absolute; inset: 0; background: rgba(59,46,36,0.6); }
.coa-modal-content {
  position: relative; background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius-lg);
  width: 100%; max-width: 800px; height: 90vh; display: flex; flex-direction: column; overflow: hidden;
}
.coa-modal-close {
  position: absolute; top: 8px; right: 12px; z-index: 1; background: none; border: none;
  color: var(--ink); font-size: 28px; line-height: 1; cursor: pointer; padding: 4px 8px;
}
.coa-modal-close:hover { color: var(--accent-deep); }
#coa-modal-body { flex: 1; display: flex; align-items: center; justify-content: center; overflow: auto; }
#coa-modal-body iframe { width: 100%; height: 100%; border: none; }
#coa-modal-body img { max-width: 100%; max-height: 100%; object-fit: contain; }

.variant-price-list { margin: 12px 0 20px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--bg-card); }
.variant-price-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; font-size: 14px; border-bottom: 1px solid var(--border); }
.variant-price-row:last-child { border-bottom: none; }
.variant-price-label { color: var(--ink-soft); }
.variant-price-value .price-old { font-size: 13px; margin-right: 6px; }
.variant-price-value .price-sale, .variant-price-value .price-current { font-weight: 500; }
.variant-price-countdown { font-size: 12px; color: var(--muted); padding: 0 14px 8px; margin: -4px 0 0; border-bottom: 1px solid var(--border); }
.variant-price-countdown .countdown-text { color: var(--accent-deep); font-weight: 500; }
.variant-price-row:has(+ .variant-price-countdown) { border-bottom: none; }
.add-to-cart-form { display: flex; flex-direction: column; gap: 10px; max-width: 340px; margin-top: 24px; }
.add-to-cart-form label { font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.18em; color: var(--muted); }

/* ---------- Form controls (storefront) ---------- */
.main-content input[type=text], .main-content input[type=email], .main-content input[type=tel],
.main-content input[type=password], .main-content input[type=number], .main-content input[type=url],
.main-content select, .main-content textarea {
  padding: 11px 13px;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  background: var(--bg-raised);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color .2s, box-shadow .2s;
}
.main-content input:focus, .main-content select:focus, .main-content textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(176, 141, 74, 0.15);
}
.main-content input[type=checkbox], .main-content input[type=radio] { accent-color: var(--accent); }

.filter-bar {
  display: flex; flex-wrap: wrap; gap: 22px; align-items: flex-end; justify-content: center;
  padding: 0 0 4px; margin: 0 0 30px;
}
.filter-bar label { display: block; font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.18em; color: var(--muted); margin-bottom: 6px; }
.filter-bar select { min-width: 190px; }
.filter-checkbox label { display: flex; align-items: center; gap: 8px; font-size: 13px; letter-spacing: 0.04em; text-transform: none; margin-bottom: 10px; color: var(--ink-soft); }
.filter-checkbox input[type=checkbox] { width: auto; }

.promo-block {
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; border-radius: var(--radius);
}
.promo-block img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 14px 30px; border-radius: 999px; border: 1px solid var(--border-light);
  background: transparent; color: var(--ink);
  font-family: var(--font-body); font-size: 12px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  cursor: pointer; text-decoration: none; text-align: center; transition: background .25s, border-color .25s, color .25s, box-shadow .25s;
}
.btn:hover { border-color: var(--accent); color: var(--accent-deep); }
.btn-primary {
  background: linear-gradient(135deg, #c4a15c 0%, #a9843f 100%);
  border-color: transparent;
  color: var(--accent-contrast);
  box-shadow: 0 6px 18px rgba(169, 132, 63, 0.28);
}
.btn-primary:hover { background: linear-gradient(135deg, #b8944e 0%, #93712f 100%); color: #fff; border-color: transparent; box-shadow: 0 8px 22px rgba(169, 132, 63, 0.36); }
.btn-block { width: 100%; }
.btn-link { background: none; border: none; color: var(--error-text); text-decoration: underline; cursor: pointer; font-size: 13px; padding: 0; text-transform: none; letter-spacing: normal; font-family: var(--font-body); }

.social-login-buttons { display: flex; flex-direction: column; gap: 10px; margin: 0 0 16px; }
.btn-social { text-transform: none; letter-spacing: 0.02em; font-size: 14px; border: 1px solid var(--border-light); }
.btn-social-google { background: #fff; color: #1f1f1f; }
.btn-social-google:hover { background: #f7f3ec; color: #1f1f1f; }
.btn-social-facebook { background: #1877f2; color: #fff; border-color: #1877f2; }
.btn-social-facebook:hover { background: #1465d1; color: #fff; }
.btn-social-discord { background: #5865f2; color: #fff; border-color: #5865f2; }
.btn-social-discord:hover { background: #4752c4; color: #fff; }
.social-divider { text-align: center; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.18em; margin: 4px 0 16px; }

/* ---------- Cart / checkout / account ---------- */
.cart-table { width: 100%; border-collapse: collapse; background: var(--bg-card); margin-bottom: 24px; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.cart-table th, .cart-table td { padding: 14px; border-bottom: 1px solid var(--border); text-align: left; font-size: 14.5px; }
.cart-table th { text-transform: uppercase; font-size: 11px; font-weight: 500; letter-spacing: 0.18em; color: var(--muted); background: var(--bg-raised); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.inline-form { display: inline; }

.cart-summary {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--bg-card); padding: 22px 24px; border-radius: var(--radius-lg); border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}
.cart-total { font-family: var(--font-display); font-size: 26px; color: var(--ink); font-weight: 600; }

.invite-code-box { background: var(--bg-card); padding: 24px; border-radius: var(--radius-lg); border: 1px solid var(--border); margin-bottom: 22px; }
.invite-code-row { display: flex; align-items: center; gap: 12px; margin: 8px 0; flex-wrap: wrap; }
.invite-code-value { font-family: var(--font-brand); font-size: 22px; letter-spacing: 0.14em; color: var(--accent-deep); background: var(--bg-tint); padding: 10px 18px; border-radius: var(--radius); display: inline-block; margin: 0; }
.invite-code-value.invite-code-locked { color: var(--muted); opacity: 0.55; user-select: none; }
.copy-code-btn { font-size: 11px; }

.wishlist-box { margin: 18px 0; }
.wishlist-btn-active { border-color: var(--accent); color: var(--accent-deep); }

.checkout-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.checkout-form {
  display: flex; flex-direction: column; gap: 16px;
  background: var(--bg-card); padding: 30px; border-radius: var(--radius-lg); border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}
.checkout-form label { display: flex; flex-direction: column; gap: 7px; font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted); }
.radio-label { flex-direction: row !important; align-items: center; gap: 10px !important; font-size: 14px !important; letter-spacing: 0.02em !important; text-transform: none !important; color: var(--ink) !important; }
.order-summary { background: var(--bg-card); padding: 28px; border-radius: var(--radius-lg); border: 1px solid var(--border); box-shadow: var(--shadow-soft); }
.order-summary ul { list-style: none; padding: 0; margin: 0 0 16px; }
.order-summary li { padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14.5px; }

.payment-instructions { background: var(--bg-card); padding: 28px; border-radius: var(--radius-lg); border: 1px solid var(--border); margin-top: 22px; }
.payment-instructions code { background: var(--bg-tint); color: var(--accent-deep); padding: 4px 8px; border-radius: 4px; word-break: break-all; }
.qr-code { display: block; margin: 16px 0; border: 1px solid var(--border); border-radius: var(--radius); }

.payment-proof-upload { margin-top: 24px; }
.drop-zone {
  border: 1.5px dashed var(--border-light); border-radius: var(--radius-lg); padding: 30px 16px;
  text-align: center; cursor: pointer; background: var(--bg-raised); transition: border-color .2s, background .2s;
}
.drop-zone.drag-over { border-color: var(--accent); background: var(--bg-tint); }
.drop-zone p { margin: 0; color: var(--muted); }
.proof-thumbnails { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0; }
.proof-thumbnails img { width: 80px; height: 80px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--border); }
.status-pending { display: inline-block; margin-top: 12px; padding: 6px 14px; background: #f6ecd6; color: #8a6a2f; border-radius: 999px; font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.16em; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 60px;
  padding: 56px 0 34px;
  background: var(--bg-tint);
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13.5px;
  text-align: center;
}
.footer-brand { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.footer-brand .brand-name { color: var(--ink); font-size: 24px; }
.footer-brand .tagline { font-size: 22px; margin: 0; color: var(--ink-soft); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 30px; margin: 28px 0 20px; }
.footer-links a { color: var(--ink-soft); text-decoration: none; font-size: 11.5px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; }
.footer-links a:hover { color: var(--accent-deep); }
.footer-support a { color: var(--accent-deep); }
.footer-copy { margin: 18px 0 0; padding-top: 20px; border-top: 1px solid var(--border-light); font-size: 12px; letter-spacing: 0.06em; }
.footer-legal-links a { color: var(--muted); }

.table-responsive { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .features, .ritual-steps { grid-template-columns: 1fr; }
  .feature + .feature { border-left: none; border-top: 1px solid var(--border); }
}

@media (max-width: 780px) {
  .product-detail, .checkout-layout { grid-template-columns: 1fr; }
  .product-detail { gap: 28px; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .filter-bar select { width: 100%; }
  .promo-block { align-self: center; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .main-content { padding: 22px 16px 56px; }
  .hero { margin-top: -22px; }
  .page-title { font-size: 30px; }
  .section-heading { margin: 50px 0 26px; }
  .section-heading h2 { font-size: 30px; }
  .tagline { font-size: 25px; }
  .product-detail-body h1 { font-size: 36px; }

  .header-inner { flex-direction: row; justify-content: space-between; padding: 12px 16px; }
  .brand-mark { width: 36px; height: 36px; font-size: 22px; }
  .brand-name { font-size: 20px; letter-spacing: 0.18em; }
  .brand-subtitle { font-size: 8.5px; letter-spacing: 0.3em; }
  .nav-toggle { display: flex; }
  .site-header nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0;
    flex-direction: column;
    align-items: center;
    gap: 0;
    background: var(--bg-raised);
    border-bottom: 1px solid var(--border);
    padding: 6px 16px 14px;
    display: none;
  }
  .site-header nav.open { display: flex; }
  .site-header nav a { padding: 12px 0; width: 100%; text-align: center; }
  .site-header nav a::after { display: none; }

  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .product-card-body { padding: 14px 10px 16px; }
  .product-card-body h3 { font-size: 19px; }
  .blog-grid { grid-template-columns: 1fr; }

  .cart-summary { flex-direction: column; gap: 14px; align-items: stretch; text-align: center; }

  .age-gate-box { padding: 22px; }
  .age-gate-box h2 { font-size: 22px; }
}
