:root {
  --brand-black: #090907;
  --brand-charcoal: #171612;
  --brand-gold: #c4a05e;
  --brand-gold-light: #ead8ad;
  --brand-cream: #f7f0e4;
  --brand-white: #fffdf8;
  --brand-border: rgba(23, 22, 18, .13);
  --brand-muted: #756d61;
  --color-primary: #171612;
  --color-secondary: #c4a05e;
  --color-accent: #ead8ad;
  --color-background: #f7f0e4;
  --color-text: #1d1a15;
  --color-muted: #756d61;
  --color-button: #171612;
  --color-button-text: #fffdf8;
  --color-header: #fffdf8;
  --color-footer: #090907;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-heading: "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", "Avenir Next", Arial, sans-serif;
  --base-font-size: 16px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-button: 999px;
  --button-height: 50px;
  --shadow-soft: 0 18px 50px rgba(16, 14, 10, .11);
  --shadow-luxe: 0 24px 80px rgba(9, 9, 7, .22);
  --container-max: 1180px;
  --section-space: clamp(54px, 8vw, 104px);
  --line: var(--brand-border);
  --shadow: var(--shadow-soft);
}

* { box-sizing: border-box; }
html { font-size: var(--base-font-size); scroll-behavior: smooth; }
html, body { max-width: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.55;
}
body.nav-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand-gold), white 15%); outline-offset: 3px; }

.container { width: calc(100% - 32px); max-width: var(--container-max); margin-inline: auto; }
.narrow { width: calc(100% - 32px); max-width: 780px; }
.section { padding-block: var(--section-space); }
.section-cream, .section-soft { background: var(--brand-white); }
.text-center { text-align: center; }
.eyebrow {
  color: var(--color-secondary);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .75rem;
  font-weight: 800;
  margin: 0 0 12px;
}
h1, h2, h3 {
  font-family: var(--font-heading);
  line-height: 1.02;
  font-weight: 500;
  margin: 0 0 16px;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}
h1 { font-size: clamp(2.6rem, 7vw, 5.8rem); }
h2 { font-size: clamp(1.85rem, 4vw, 3.25rem); }
h3 { font-size: clamp(1.22rem, 2vw, 1.65rem); }
p { margin: 0 0 16px; color: var(--color-muted); }
.lead { font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 690px; color: #5f574b; }
.help { color: var(--color-muted); font-size: .88rem; }
.error { color: #9a2f21; font-size: .92rem; }

.btn, button.btn {
  min-height: var(--button-height);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--color-button);
  border-radius: var(--radius-button);
  padding: 0 24px;
  background: var(--color-button);
  color: var(--color-button-text);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .78rem;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 14px 28px rgba(9, 9, 7, .18); }
.btn:disabled { opacity: .62; cursor: wait; transform: none; }
.btn-outline { background: transparent; color: var(--color-primary); border-color: color-mix(in srgb, var(--brand-gold), var(--line) 40%); }
.btn-outline:hover { background: rgba(196, 160, 94, .11); }
.btn-small { min-height: 38px; padding-inline: 16px; font-size: .72rem; }
.button-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.text-link { display: inline-flex; margin-top: 16px; color: var(--brand-gold); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .76rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

.announcement { display: block; text-align: center; background: var(--brand-black); color: var(--brand-white); padding: 10px 16px; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }
.site-header { background: color-mix(in srgb, var(--color-header), transparent 2%); border-bottom: 1px solid var(--line); z-index: 80; }
.site-header.is-sticky { position: sticky; top: 0; backdrop-filter: blur(18px); }
.site-header.is-transparent { background: color-mix(in srgb, var(--color-header), transparent 20%); }
.header-inner { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 13px; min-width: 0; color: var(--brand-black); }
.brand-logo { max-height: 58px; width: auto; }
.mobile-logo { display: none; }
.brand-mark {
  width: 54px;
  aspect-ratio: 1;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--brand-gold);
  color: var(--brand-gold);
  background: var(--brand-black);
  font-family: var(--font-display);
  font-size: 1.08rem;
}
.brand-copy { display: grid; line-height: 1.05; }
.brand-copy strong { font-family: var(--font-display); font-size: 1.45rem; font-weight: 500; }
.brand-copy small { color: var(--brand-muted); text-transform: uppercase; letter-spacing: .13em; font-size: .66rem; font-weight: 800; }
.primary-nav { display: flex; align-items: center; justify-content: center; gap: 2px; flex: 1; }
.nav-item { position: relative; }
.nav-item > a { min-height: 46px; display: inline-flex; align-items: center; gap: 7px; padding: 0 13px; color: var(--color-text); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; }
.nav-item > a:hover { color: var(--brand-gold); }
.nav-chevron { width: 7px; height: 7px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg) translateY(-2px); display: inline-block; }
.mega-menu {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  translate: -50% 0;
  width: min(92vw, 920px);
  padding: 28px;
  background: rgba(255, 253, 248, .98);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-luxe);
  border-radius: var(--radius-md);
  transition: opacity .18s ease, transform .18s ease;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  z-index: 90;
}
.compact-menu { width: min(92vw, 440px); grid-template-columns: 1fr; gap: 6px; padding: 16px; }
.has-children:hover .mega-menu, .has-children:focus-within .mega-menu { opacity: 1; pointer-events: auto; transform: translateY(0); }
.mega-column p { margin-bottom: 12px; color: var(--brand-black); text-transform: uppercase; letter-spacing: .12em; font-weight: 900; font-size: .72rem; }
.mega-menu a { display: grid; gap: 2px; padding: 9px 0; color: #3e372d; border-bottom: 1px solid rgba(23, 22, 18, .08); }
.mega-menu a:hover { color: var(--brand-gold); }
.mega-menu span { color: var(--brand-muted); font-size: .88rem; }
.header-cta { color: var(--brand-black); border: 1px solid var(--brand-gold); min-height: 42px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 999px; text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; font-weight: 900; white-space: nowrap; }
.nav-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 999px; background: var(--brand-white); padding: 10px; }
.nav-toggle span:not(.sr-only) { display: block; height: 2px; background: var(--brand-black); margin: 5px 0; }
.mobile-nav { display: none; }

.page-hero {
  background:
    linear-gradient(90deg, rgba(9,9,7,.88), rgba(9,9,7,.66)),
    url("../images/hero-gift-spa.png") center/cover;
  color: var(--brand-white);
  min-height: clamp(430px, 62vh, 680px);
  display: grid;
  align-items: end;
  padding-block: clamp(58px, 9vw, 110px);
}
.page-hero.compact { min-height: clamp(330px, 42vh, 470px); }
.page-hero-inner { max-width: 760px; }
.page-hero h1, .page-hero p { color: var(--brand-white); }
.page-hero .lead { color: rgba(255,253,248,.78); }
.hero { min-height: clamp(570px, 78vh, 820px); display: grid; align-items: end; position: relative; overflow: hidden; background: var(--brand-black); }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(9,9,7,.88) 0%, rgba(9,9,7,.62) 46%, rgba(9,9,7,.18) 100%); z-index: 1; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .78; }
.hero-content { position: relative; z-index: 2; padding-block: clamp(58px, 8vw, 110px); max-width: 720px; }
.hero-content h1, .hero-content p { color: var(--brand-white); }
.hero-content .lead { color: rgba(255,253,248,.78); }
.section-title { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 30px; }
.section-title p { max-width: 560px; }

.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card, .mini-card {
  background: var(--brand-white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(9,9,7,.06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover, .mini-card:hover, .package-card:hover, .membership-card:hover, .feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); border-color: rgba(196,160,94,.45); }
.card-media { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; background: color-mix(in srgb, var(--brand-gold-light), white 52%); }
.card-body, .mini-card { padding: clamp(18px, 2.2vw, 26px); }
.price, .product-price { color: var(--brand-black); font-weight: 900; margin-bottom: 10px; font-size: 1.08rem; }
.product-price { font-size: clamp(1.25rem, 3vw, 2rem); }
.product-price span { font-size: .92rem; color: var(--brand-muted); font-weight: 600; }

.gift-type-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feature-card {
  min-height: 380px;
  padding: clamp(24px, 4vw, 38px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(9,9,7,.14), rgba(9,9,7,.84)), url("../images/hero-gift-spa.png") center/cover;
  color: var(--brand-white);
  box-shadow: var(--shadow-soft);
}
.feature-card:nth-child(2) { background-image: linear-gradient(180deg, rgba(9,9,7,.12), rgba(9,9,7,.82)), url("../images/services/hydrafacial.png"); }
.feature-card:nth-child(3) { background-image: linear-gradient(180deg, rgba(9,9,7,.12), rgba(9,9,7,.82)), url("../images/packages/glow-package.png"); }
.feature-card h2, .feature-card p { color: var(--brand-white); }
.feature-card > span { margin-bottom: auto; color: var(--brand-gold-light); font-weight: 900; }

.amount-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 24px; }
.amount-option {
  display: grid;
  place-items: center;
  min-height: 132px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--brand-white);
  transition: .18s ease;
}
.amount-option span { font-family: var(--font-heading); font-size: clamp(1.9rem, 4vw, 3rem); color: var(--brand-black); }
.amount-option small { color: var(--brand-gold); text-transform: uppercase; letter-spacing: .12em; font-weight: 900; }
.amount-option:hover { border-color: var(--brand-gold); transform: translateY(-2px); }

.catalog-section { padding-top: 34px; }
.catalog-shell { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(24px, 4vw, 42px); align-items: start; }
.category-rail {
  position: sticky;
  top: 108px;
  display: grid;
  gap: 3px;
  border: 1px solid var(--line);
  background: var(--brand-white);
  padding: 10px;
  border-radius: var(--radius-md);
}
.category-rail a { padding: 11px 12px; border-radius: var(--radius-sm); color: #4d453b; font-size: .92rem; }
.category-rail a:hover, .category-rail a.active { background: var(--brand-black); color: var(--brand-white); }
.catalog-toolbar {
  display: grid;
  grid-template-columns: minmax(230px, 320px) minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
  background: var(--brand-white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: 0 10px 30px rgba(9,9,7,.05);
  margin-bottom: 28px;
}
.custom-select, .search-box, .form-field { display: grid; gap: 7px; min-width: 0; }
label { font-weight: 800; color: var(--color-text); font-size: .88rem; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--brand-white);
  border-radius: var(--radius-md);
  min-height: 50px;
  padding: 12px 14px;
  color: var(--color-text);
}
textarea { min-height: 124px; resize: vertical; }
.custom-select summary {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  background: var(--brand-white);
  border-radius: var(--radius-md);
  padding: 0 14px;
  cursor: pointer;
  list-style: none;
}
.custom-select summary::-webkit-details-marker { display: none; }
.custom-select details { position: relative; }
.select-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: min(88vw, 360px);
  max-height: 360px;
  overflow-y: auto;
  z-index: 50;
  background: var(--brand-white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-luxe);
  border-radius: var(--radius-md);
  padding: 9px;
}
.select-menu a { display: block; padding: 10px 12px; border-radius: var(--radius-sm); }
.select-menu a:hover { background: rgba(196,160,94,.13); }
.catalog-heading { display: flex; justify-content: space-between; gap: 18px; align-items: end; margin-bottom: 18px; }
.catalog-heading p { max-width: 420px; }
.service-list { display: grid; gap: 12px; }
.service-list.compact { max-width: 980px; }
.service-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 230px);
  gap: 18px;
  align-items: center;
  background: var(--brand-white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: clamp(16px, 2.2vw, 24px);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.service-row:hover { transform: translateY(-2px); border-color: rgba(196,160,94,.45); box-shadow: 0 16px 44px rgba(9,9,7,.08); }
.service-row-main h3 { margin-bottom: 8px; }
.service-kicker { display: block; color: var(--brand-gold); text-transform: uppercase; letter-spacing: .1em; font-weight: 900; font-size: .72rem; margin-bottom: 8px; }
.service-row-action { display: grid; justify-items: end; gap: 12px; text-align: right; }
.empty-state { padding: 34px; border: 1px solid var(--line); background: var(--brand-white); border-radius: var(--radius-md); text-align: center; }

.product-stage, .checkout-stage { padding-block: clamp(30px, 5vw, 70px) var(--section-space); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; color: var(--brand-muted); font-size: .86rem; margin-bottom: 22px; }
.breadcrumbs a { color: var(--brand-black); }
.product-hero { display: grid; grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr); gap: clamp(28px, 5vw, 70px); align-items: center; }
.luxe-frame { border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-luxe); background: var(--brand-white); }
.product-image img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.product-copy { max-width: 620px; }
.product-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid var(--line);
  margin: 24px 0;
}
.product-facts div { padding: 15px 14px; border-right: 1px solid var(--line); }
.product-facts div:last-child { border-right: 0; }
.product-facts span { display: block; color: var(--brand-muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 900; }
.product-facts strong { color: var(--brand-black); }
.included-list { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 16px; margin: 22px 0; background: rgba(255,253,248,.72); }
.included-list div { padding: 9px 0; border-bottom: 1px solid rgba(23,22,18,.08); }
.included-list div:last-child { border-bottom: 0; }
.package-grid { display: grid; gap: 18px; }
.package-card {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: clamp(18px, 4vw, 34px);
  background: var(--brand-white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: .18s ease;
}
.package-card img { width: 100%; height: 100%; min-height: 250px; object-fit: cover; }
.package-card > div { padding: clamp(22px, 4vw, 38px); align-self: center; }
.package-card strong, .membership-card strong { display: block; color: var(--brand-black); font-size: 1.2rem; }
.membership-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.membership-card {
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--brand-white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: clamp(22px, 3vw, 32px);
  transition: .18s ease;
}
.membership-card.featured { background: var(--brand-black); color: var(--brand-white); border-color: var(--brand-gold); }
.membership-card.featured p, .membership-card.featured h2, .membership-card.featured strong { color: var(--brand-white); }

.checkout-title { max-width: 680px; margin-bottom: 26px; }
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 420px); gap: clamp(22px, 4vw, 42px); align-items: start; min-width: 0; }
.checkout-panel, .refined-panel {
  background: var(--brand-white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: clamp(18px, 3vw, 32px);
  box-shadow: 0 12px 38px rgba(9,9,7,.06);
  min-width: 0;
}
.checkout-summary { position: sticky; top: 104px; min-width: 0; }
.progress { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: 24px; }
.progress span { min-height: 7px; border-radius: 999px; background: rgba(196,160,94,.20); overflow: hidden; text-indent: -999px; }
.progress span.active { background: var(--brand-gold); }
.checkout-gift-heading { display: flex; justify-content: space-between; gap: 18px; align-items: start; border-bottom: 1px solid var(--line); margin-bottom: 24px; padding-bottom: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.choice-grid, .payment-methods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.payment-methods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px;
  background: var(--brand-white);
  cursor: pointer;
  min-height: 100%;
  transition: .18s ease;
}
.choice-card:hover, .choice-card:has(input:checked) { border-color: var(--brand-gold); box-shadow: 0 10px 28px rgba(9,9,7,.07); }
.choice-card input { width: auto; min-height: 0; accent-color: var(--brand-gold); }
.option-card { display: flex; align-items: center; gap: 10px; }
.gift-design-card img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: 10px; width: 100%; }
.certificate-preview {
  aspect-ratio: 1.55 / 1;
  border-radius: var(--radius-md);
  padding: clamp(18px, 4vw, 34px);
  background: #efe0bf center/cover;
  color: var(--brand-black);
  display: grid;
  align-content: center;
  gap: 10px;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: inset 0 0 0 999px rgba(255,255,255,.24), var(--shadow-soft);
  overflow: hidden;
  min-width: 0;
}
.certificate-preview h3 { font-size: clamp(1.45rem, 3vw, 2.7rem); }
.summary-line { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.summary-line strong { color: var(--color-text); }
.summary-total { font-size: 1.3rem; font-weight: 900; border-bottom: 0; }
.mobile-sticky-cta { display: none; }

.balance-card { background: var(--brand-white); border: 1px solid var(--line); border-radius: var(--radius-md); padding: clamp(20px, 4vw, 34px); }
.flash { width: calc(100% - 32px); max-width: 920px; margin: 16px auto; padding: 13px 16px; border-radius: var(--radius-md); background: #eef8ee; color: #214e2f; border: 1px solid #bee5c2; }
.flash-error { background: #fff0ed; color: #8b2d21; border-color: #efc1b7; }

.site-footer { background: var(--color-footer); color: var(--brand-white); padding: 64px 0 24px; }
.site-footer p, .site-footer a { color: rgba(255,253,248,.72); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; }
.footer-logo { max-height: 54px; width: auto; margin-bottom: 12px; }
.footer-brand { font-family: var(--font-heading); font-size: 1.75rem; margin-bottom: 12px; }
.footer-socials { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.site-footer h2 { font-size: 1rem; font-family: var(--font-body); font-weight: 900; margin-bottom: 12px; text-transform: uppercase; letter-spacing: .08em; }
.site-footer a { display: block; padding: 4px 0; }
.footer-bottom { margin-top: 34px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14); color: rgba(255,253,248,.62); font-size: .9rem; }

.admin-shell { background: #f5f2ea; min-height: 100vh; }
.admin-sidebar { position: fixed; inset: 0 auto 0 0; width: 268px; background: #151a17; color: #fff; padding: 22px; overflow-y: auto; z-index: 90; }
.admin-brand { font-family: var(--font-heading); font-size: 1.25rem; display: grid; gap: 4px; margin-bottom: 24px; }
.admin-brand img { width: auto; max-width: 176px; max-height: 58px; object-fit: contain; object-position: left center; margin-bottom: 8px; }
.admin-brand strong { font-weight: 600; }
.admin-brand span { font-family: var(--font-body); font-size: .78rem; color: rgba(255,255,255,.58); text-transform: uppercase; letter-spacing: .1em; }
.admin-nav { display: grid; gap: 4px; }
.admin-nav a { color: rgba(255,255,255,.78); padding: 10px 12px; border-radius: var(--radius-md); }
.admin-nav a:hover, .admin-nav a.active { background: rgba(255,255,255,.1); color: #fff; }
.admin-logout { margin-top: 20px; }
.admin-main { margin-left: 268px; padding: clamp(16px, 3vw, 34px); min-width: 0; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 22px; }
.admin-topbar h1 { font-size: clamp(1.6rem, 4vw, 2.6rem); }
.admin-user { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; }
.admin-menu-button { display: none; position: fixed; right: 14px; bottom: 14px; z-index: 100; border: 0; background: var(--color-primary); color: #fff; border-radius: 999px; min-height: 48px; padding: 0 18px; }
.admin-card { background: var(--brand-white); border: 1px solid var(--line); border-radius: var(--radius-md); padding: clamp(16px, 2.4vw, 26px); margin-bottom: 18px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stat { background: var(--brand-white); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 18px; }
.stat span { display: block; color: var(--color-muted); font-size: .88rem; }
.stat strong { font-size: clamp(1.3rem, 3vw, 2rem); }
.table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--brand-white); }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--color-muted); }
.admin-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.admin-form-grid .full { grid-column: 1 / -1; }
.inline-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.copy-field { display: flex; gap: 8px; align-items: center; min-width: 220px; }
.copy-field input { min-width: 180px; }
.managed-image-field { border: 1px solid var(--line); border-radius: var(--radius-md); padding: clamp(16px, 2.4vw, 24px); background: #faf7ef; }
.managed-image-heading { display: flex; align-items: end; justify-content: space-between; gap: 22px; margin-bottom: 18px; }
.managed-image-heading h2 { font-size: clamp(1.35rem, 3vw, 2rem); margin-bottom: 6px; }
.managed-image-heading p { max-width: 680px; margin-bottom: 0; }
.managed-image-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.managed-image-current { display: grid; gap: 8px; min-width: 0; }
.managed-image-current > span { font-size: .76rem; font-weight: 900; text-transform: uppercase; letter-spacing: .09em; color: var(--color-muted); }
.managed-image-current > img { width: 100%; max-height: 340px; aspect-ratio: 16 / 10; object-fit: cover; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; }
.image-dropzone { min-height: 154px; display: grid; place-content: center; gap: 6px; text-align: center; border: 2px dashed #c8b891; border-radius: var(--radius-md); background: #fff; cursor: pointer; transition: border-color .18s ease, background .18s ease, transform .18s ease; padding: 22px; }
.image-dropzone:hover, .image-dropzone.is-dragging { border-color: var(--brand-gold); background: #fffaf0; transform: translateY(-1px); }
.image-dropzone strong { font-size: 1rem; }
.image-dropzone span { color: var(--color-muted); font-weight: 500; }
.managed-image-actions { margin-top: 14px; }
.image-advanced { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 14px; }
.image-advanced summary { cursor: pointer; font-weight: 800; color: var(--color-muted); }
.image-advanced .form-field { margin-top: 14px; }
.branding-preview-grid { max-width: 920px; }
.logo-preview-card > img { object-fit: contain; padding: 22px; background: #fff; }
.brand-fallback-preview { min-height: 200px; display: grid; place-content: center; justify-items: center; gap: 12px; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; }
.brand-fallback-preview b { width: 68px; aspect-ratio: 1; display: grid; place-items: center; color: var(--brand-gold); background: var(--brand-black); border: 1px solid var(--brand-gold); font-family: var(--font-heading); font-size: 1.35rem; }
.brand-fallback-preview strong { font-family: var(--font-heading); font-size: 1.55rem; }
.branding-save-row { margin-top: 24px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

@media (max-width: 1120px) {
  .header-cta { display: none; }
  .primary-nav { justify-content: flex-end; }
  .product-facts { grid-template-columns: 1fr; }
  .product-facts div { border-right: 0; border-bottom: 1px solid var(--line); }
  .product-facts div:last-child { border-bottom: 0; }
}

@media (max-width: 1024px) {
  .grid-4, .membership-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gift-type-grid { grid-template-columns: 1fr; }
  .checkout-layout { grid-template-columns: 1fr; }
  .checkout-summary { position: static; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-shell { grid-template-columns: 1fr; }
  .category-rail { display: none; }
}

@media (max-width: 860px) {
  .primary-nav, .header-cta { display: none; }
  .nav-toggle { display: block; }
  .desktop-logo { display: none; }
  .mobile-logo { display: block; }
  .mobile-nav {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(9,9,7,.46);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease;
    z-index: 110;
  }
  .mobile-nav.open { opacity: 1; pointer-events: auto; }
  .mobile-nav-panel {
    margin-left: auto;
    width: min(92vw, 390px);
    height: 100%;
    overflow-y: auto;
    background: var(--brand-white);
    padding: 18px;
    transform: translateX(100%);
    transition: transform .22s ease;
    display: grid;
    align-content: start;
    gap: 4px;
  }
  .mobile-nav.open .mobile-nav-panel { transform: translateX(0); }
  .mobile-nav-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
  .mobile-menu-logo { max-width: 168px; max-height: 54px; width: auto; object-fit: contain; }
  .mobile-nav-head button { min-height: 42px; border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 0 14px; }
  .mobile-nav a, .mobile-nav summary {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 4px;
    border-bottom: 1px solid rgba(23,22,18,.08);
    color: var(--brand-black);
    font-weight: 800;
    cursor: pointer;
  }
  .mobile-nav details a { padding-left: 18px; color: #534b41; font-weight: 700; }
  .mobile-nav .nested a { padding-left: 30px; font-size: .94rem; }
  .hero, .page-hero { min-height: 560px; }
  .hero::before { background: linear-gradient(180deg, rgba(9,9,7,.34) 0%, rgba(9,9,7,.86) 65%); }
  .grid-3, .grid-4, .product-hero, .form-grid, .catalog-toolbar, .choice-grid, .payment-methods, .membership-grid { grid-template-columns: 1fr; }
  .section-title, .catalog-heading, .checkout-gift-heading { display: block; }
  .package-card { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 1fr; }
  .service-row-action { justify-items: start; text-align: left; }
  .service-row-action .btn { width: auto; }
  .admin-sidebar { transform: translateX(-100%); transition: transform .2s ease; }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; padding-bottom: 84px; }
  .admin-menu-button { display: inline-flex; align-items: center; justify-content: center; }
  .admin-form-grid { grid-template-columns: 1fr; }
  .managed-image-heading { display: grid; align-items: start; }
  table { min-width: 0; }
  .table-wrap table, .table-wrap thead, .table-wrap tbody, .table-wrap th, .table-wrap td, .table-wrap tr { display: block; width: 100%; }
  .table-wrap thead { display: none; }
  .table-wrap tr { padding: 12px; border-bottom: 1px solid var(--line); }
  .table-wrap td { border: 0; padding: 7px 0; }
  .table-wrap td::before { content: attr(data-label); display: block; font-weight: 900; color: var(--color-muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; }
}

@media (max-width: 560px) {
  .container, .narrow { width: calc(100% - 24px); max-width: 366px; }
  .header-inner { min-height: 72px; }
  h1 { font-size: clamp(2.15rem, 11.5vw, 3.05rem); }
  h2 { font-size: clamp(1.55rem, 9vw, 2.35rem); }
  .lead { font-size: 1rem; }
  .hero-content, .page-hero-inner { max-width: 100%; }
  .hero-content h1, .page-hero h1 { max-width: 10ch; font-size: clamp(2rem, 10vw, 2.7rem); }
  .page-hero.compact { min-height: 430px; }
  .button-row, .inline-actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .progress { grid-template-columns: repeat(3, 1fr); }
  .checkout-layout, .checkout-panel, .checkout-summary, .certificate-preview { width: 100%; max-width: 100%; }
  .checkout-panel { padding: 16px; }
  .checkout-summary { min-width: 0; }
  .checkout-gift-heading { gap: 10px; }
  .footer-grid, .stat-grid, .amount-grid { grid-template-columns: 1fr; }
  .brand-copy small { display: none; }
  .brand-mark { width: 46px; }
  .choice-card { padding: 13px; }
  .managed-image-grid { grid-template-columns: 1fr; }
  .managed-image-actions { align-items: stretch; }
  .mobile-sticky-cta {
    position: fixed;
    z-index: 75;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255,253,248,.96);
    border-top: 1px solid var(--line);
    box-shadow: 0 -12px 30px rgba(9,9,7,.10);
  }
  .mobile-sticky-cta .btn { width: auto; min-width: 142px; }
  .site-footer { padding-bottom: 92px; }
}
