:root {
  --bg: #0a0a0a;
  --card: #131313;
  --surface: #1a1a1a;
  --surface-2: #202020;
  --accent: #c8a97e;
  --accent-light: #d9bf9a;
  --text: #e8e8e8;
  --muted: #777;
  --border: #222;
  --danger: #e74c3c;
  --success: #4caf50;
  --radius: 18px;
  --shadow: 0 24px 80px rgba(0,0,0,.38);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Outfit', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  opacity: .018;
  background: repeating-conic-gradient(#fff 0% 25%, transparent 0% 50%) 0 0/3px 3px;
  pointer-events: none;
  z-index: 9999;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 18px clamp(18px, 4vw, 54px);
  transition: background .35s ease, border-color .35s ease, backdrop-filter .35s ease;
}
.navbar.scrolled {
  background: rgba(10,10,10,.86);
  border-bottom: 1px solid #1a1a1a;
  backdrop-filter: blur(16px);
}
.brand-mark { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark img { width: 42px; height: 42px; object-fit: cover; border-radius: 999px; border: 1px solid #1d1d1d; }
.brand-mark span { display: grid; line-height: 1; }
.brand-mark strong { font-family: 'Cormorant Garamond', serif; color: #fff; font-size: 22px; letter-spacing: .14em; }
.brand-mark small { font-family: 'Cormorant Garamond', serif; color: var(--muted); font-size: 11px; letter-spacing: .28em; }
.nav-links { display: flex; gap: clamp(18px, 3vw, 36px); color: var(--muted); font-size: 14px; }
.nav-links a { transition: color .25s ease; }
.nav-links a:hover { color: var(--accent); }
.bag-button {
  position: relative;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  background: transparent;
  color: white;
  border-radius: 999px;
  transition: color .25s ease, border-color .25s ease, background .25s ease;
}
.bag-button:hover { color: var(--accent); border-color: #262626; background: rgba(255,255,255,.02); }
.bag-button span {
  position: absolute;
  right: -3px;
  top: -3px;
  min-width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg);
  font-size: 11px;
  font-weight: 800;
}
.bag-button span.is-empty { display: none; }

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  text-align: center;
  padding: 110px 20px 70px;
}
#heroCanvas { position: absolute; inset: 0; z-index: 0; }
.hero-gradient { position: absolute; inset: 0; z-index: 1; background: radial-gradient(circle at center, rgba(200,169,126,.055), transparent 42%), linear-gradient(to bottom, transparent 0%, transparent 56%, var(--bg) 100%); }
.hero-content { position: relative; z-index: 2; display: grid; justify-items: center; }
.hero-logo { width: 96px; height: 96px; object-fit: cover; border-radius: 50%; border: 1px solid #242424; margin-bottom: 20px; box-shadow: 0 12px 50px rgba(200,169,126,.08); }
.hero h1 {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(88px, 16vw, 170px);
  line-height: .78;
  color: white;
  letter-spacing: .09em;
  font-weight: 700;
}
.hero-subtitle {
  margin: 10px 0 25px;
  font-family: 'Cormorant Garamond', serif;
  color: var(--accent);
  font-size: clamp(22px, 4vw, 34px);
  letter-spacing: .44em;
  text-indent: .44em;
}
.hero-text {
  max-width: 540px;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.75;
  margin: 0 0 36px;
}
.scroll-cue {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  color: var(--muted);
  animation: bounce 1.8s infinite;
}

.btn-accent, .btn-outline {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 12px 24px;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: .13em;
  font-weight: 650;
  border: 1px solid transparent;
  transition: transform .25s ease, background .25s ease, border-color .25s ease, color .25s ease, box-shadow .25s ease;
}
.btn-accent { background: var(--accent); color: var(--bg); }
.btn-accent:hover { background: var(--accent-light); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(200,169,126,.22); }
.btn-accent:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-outline { background: transparent; color: #cfcfcf; border-color: #333; }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.full { width: 100%; }

.section { padding: clamp(80px, 12vw, 130px) 22px; }
.max-wrap { max-width: 1160px; margin: 0 auto; }
.narrow-section { max-width: 880px; }
.section-head { text-align: center; margin-bottom: 60px; }
.section-head p, .mini-title {
  margin: 0 0 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .28em;
  font-size: 12px;
}
.section-head h2, .about-card h2 {
  margin: 0;
  color: white;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(42px, 7vw, 62px);
  font-weight: 600;
  line-height: 1;
}
.section-head span, .about-card p {
  display: block;
  max-width: 640px;
  margin: 18px auto 0;
  color: var(--muted);
  line-height: 1.75;
}
.presentation-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.info-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 34px 28px;
  text-align: center;
  transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease;
}
.info-card:hover { transform: translateY(-4px); border-color: rgba(200,169,126,.35); box-shadow: 0 18px 60px rgba(200,169,126,.05); }
.icon-circle {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--surface);
  color: var(--accent);
}
.info-card h3 { margin: 0 0 10px; color: white; font-family: 'Cormorant Garamond', serif; font-size: 28px; }
.info-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.featured-card { border-color: rgba(200,169,126,.28); background: linear-gradient(180deg, rgba(200,169,126,.055), var(--card)); }

.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.product-card {
  overflow: hidden;
  border-radius: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform .4s ease, border-color .4s ease, box-shadow .4s ease;
}
.product-card:hover { transform: translateY(-7px); border-color: var(--accent); box-shadow: 0 14px 45px rgba(200,169,126,.08); }
.product-image { aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface); }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.product-card:hover img { transform: scale(1.06); }
.product-info { padding: 22px; }
.product-info p { margin: 0 0 8px; color: var(--accent); text-transform: uppercase; letter-spacing: .18em; font-size: 10px; }
.product-info h3 { margin: 0 0 16px; font-family: 'Cormorant Garamond', serif; color: white; font-size: 30px; line-height: 1; }
.product-foot { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 13px; }
.product-foot strong { color: var(--accent); font-family: 'Cormorant Garamond', serif; font-size: 19px; }
.product-foot i { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 999px; background: var(--surface); color: var(--muted); }
.about-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: clamp(36px, 7vw, 70px);
  text-align: center;
}
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 20px;
  text-align: center;
  color: var(--muted);
}
.footer img { width: 82px; height: 82px; object-fit: cover; border-radius: 999px; margin: 0 auto 16px; border: 1px solid #242424; }
.footer p { margin: 0 0 12px; }
.footer a { opacity: .45; transition: color .2s, opacity .2s; }
.footer a:hover { color: var(--accent); opacity: 1; }

.modal-layer { position: fixed; inset: 0; z-index: 100; display: none; }
.modal-layer.is-open { display: block; }
.overlay { position: absolute; inset: 0; background: rgba(0,0,0,.72); backdrop-filter: blur(7px); }
.product-modal, .checkout-modal {
  position: absolute;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.product-modal {
  inset: clamp(16px, 6vw, 46px) clamp(16px, 14vw, 180px);
  display: grid;
  grid-template-columns: minmax(280px, .92fr) minmax(280px, 1.08fr);
}
.close-button {
  border: 0;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  display: grid;
  place-items: center;
  transition: color .25s ease, background .25s ease;
}
.close-button:hover { color: white; background: var(--surface-2); }
.product-modal > .close-button { position: absolute; right: 16px; top: 16px; z-index: 2; }
.modal-image-wrap { background: var(--surface); overflow: hidden; }
.modal-image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.modal-info { padding: clamp(26px, 4vw, 54px); display: flex; flex-direction: column; justify-content: center; overflow-y: auto; }
.modal-info h3 { margin: 0 0 16px; font-family: 'Cormorant Garamond', serif; color: white; font-size: clamp(44px, 7vw, 64px); line-height: .95; }
.modal-info > p:not(.mini-title) { color: var(--muted); line-height: 1.75; margin: 0 0 30px; }
.option-block { margin-bottom: 26px; }
.option-block > span, .step-label {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .18em;
}
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pill-radio input { display: none; }
.pill-radio span {
  display: inline-flex;
  border: 1px solid #333;
  border-radius: 999px;
  padding: 9px 18px;
  color: #cfcfcf;
  cursor: pointer;
  transition: border-color .25s ease, background .25s ease, color .25s ease;
}
.pill-radio input:checked + span { border-color: var(--accent); background: rgba(200,169,126,.12); color: var(--accent-light); }
.quantity-box { display: inline-flex; align-items: center; border: 1px solid #333; border-radius: 999px; overflow: hidden; }
.quantity-box button { width: 44px; height: 44px; border: 0; background: var(--surface); color: white; }
.quantity-box input { width: 70px; height: 44px; border: 0; border-inline: 1px solid #333; background: #111; color: white; text-align: center; outline: none; }
.modal-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.modal-bottom small { display: block; color: var(--muted); margin-bottom: 4px; }
.modal-bottom strong { color: var(--accent); font-family: 'Cormorant Garamond', serif; font-size: 34px; }

.cart-sidebar {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(100%, 460px);
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-left: 1px solid var(--border);
  box-shadow: -24px 0 70px rgba(0,0,0,.34);
  animation: slideRight .35s ease both;
}
.sidebar-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 24px; }
.sidebar-head h3 { margin: 0; font-family: 'Cormorant Garamond', serif; color: white; font-size: 31px; }
.border-bottom { border-bottom: 1px solid var(--border); }
.cart-items { flex: 1; overflow-y: auto; padding: 22px; }
.empty-cart { height: 100%; min-height: 300px; display: grid; place-items: center; align-content: center; text-align: center; color: var(--muted); }
.empty-cart i { color: #2b2b2b; font-size: 38px; margin-bottom: 18px; }
.empty-cart p { margin: 0 0 6px; color: #aaa; }
.empty-cart span { font-size: 13px; }
.cart-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; padding: 0 0 18px; margin-bottom: 18px; border-bottom: 1px solid var(--border); }
.cart-thumb { width: 72px; height: 72px; overflow: hidden; border-radius: 14px; background: var(--surface); }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-info h4 { margin: 0 0 5px; color: white; font-size: 15px; }
.cart-info p { margin: 0 0 6px; color: var(--muted); font-size: 13px; }
.cart-info strong { color: var(--accent); font-family: 'Cormorant Garamond', serif; font-size: 20px; }
.cart-controls { display: grid; justify-items: end; align-content: space-between; }
.cart-controls > button { border: 0; background: transparent; color: var(--muted); transition: color .2s ease; }
.cart-controls > button:hover { color: var(--danger); }
.cart-controls div { display: flex; align-items: center; gap: 8px; }
.cart-controls div button { width: 25px; height: 25px; border-radius: 6px; border: 0; background: var(--surface); color: #ddd; }
.cart-controls div span { min-width: 18px; text-align: center; font-size: 13px; }
.cart-footer { border-top: 1px solid var(--border); padding: 22px; display: grid; gap: 12px; }
.cart-stat { display: flex; align-items: center; justify-content: space-between; color: var(--muted); }
.cart-stat strong { color: var(--accent); font-family: 'Cormorant Garamond', serif; font-size: 27px; }

.checkout-modal {
  inset: clamp(12px, 3vw, 34px) clamp(12px, 16vw, 220px);
  display: flex;
  flex-direction: column;
}
.checkout-body { overflow-y: auto; padding: clamp(20px, 4vw, 38px); }
.checkout-step { margin-bottom: 30px; }
.summary-box, .total-box, .gift-options {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
}
.summary-row, .total-box div { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; color: var(--muted); }
.summary-row strong, .total-box strong { color: white; }
.packaging-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pack-card {
  display: grid;
  gap: 8px;
  border: 1px solid #2b2b2b;
  border-radius: 16px;
  padding: 17px;
  cursor: pointer;
  background: rgba(255,255,255,.01);
  transition: border-color .25s, background .25s, opacity .25s;
}
.pack-card input { display: none; }
.pack-card i { color: var(--accent); }
.pack-card strong { color: white; }
.pack-card span { color: var(--muted); font-size: 13px; line-height: 1.55; }
.pack-card em { color: var(--accent-light); font-size: 12px; font-style: normal; }
.pack-card.selected { border-color: var(--accent); background: rgba(200,169,126,.08); }
.pack-card.disabled-soft { opacity: .62; }
.warning-text { min-height: 20px; color: #e79c3c; font-size: 13px; margin: 10px 0 0; }
.gift-options { display: grid; grid-template-columns: 1.2fr .8fr; gap: 16px; margin-top: 16px; }
.hidden { display: none !important; }
label { display: grid; gap: 7px; color: #aaa; font-size: 13px; font-weight: 500; }
label small { color: var(--muted); font-weight: 300; }
label em { justify-self: end; color: var(--muted); font-size: 12px; font-style: normal; }
input, select, textarea {
  width: 100%;
  border: 1px solid #292929;
  background: #111;
  color: var(--text);
  border-radius: 10px;
  padding: 12px 14px;
  outline: none;
  transition: border-color .25s ease;
}
textarea { min-height: 82px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
::placeholder { color: #555; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.wide { grid-column: 1 / -1; }
.total-box { margin-bottom: 24px; }
.total-box div { border-bottom: 1px solid #2a2a2a; }
.total-box div:last-child { border-bottom: 0; }
.total-box .grand span { color: white; font-weight: 600; }
.total-box .grand strong { color: var(--accent); font-family: 'Cormorant Garamond', serif; font-size: 28px; }
.checkout-actions { display: grid; grid-template-columns: .75fr 1fr; gap: 12px; }
.toast-container { position: fixed; top: 88px; right: 22px; z-index: 200; display: grid; gap: 12px; pointer-events: none; }
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--accent);
  background: rgba(19,19,19,.96);
  color: white;
  border-radius: 14px;
  padding: 13px 16px;
  box-shadow: 0 14px 50px rgba(0,0,0,.3);
  animation: toastIn .35s ease both;
}
.toast i { color: var(--accent); }
.toast.removing { animation: toastOut .3s ease both; }

/* Admin */
.admin-body { background: var(--bg); }
.login-screen { min-height: 100vh; display: grid; place-items: center; padding: 22px; }
.login-card, .admin-card, .order-card, .stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
}
.login-card { width: min(100%, 410px); padding: 34px; box-shadow: var(--shadow); }
.login-card img { width: 88px; height: 88px; object-fit: cover; border-radius: 999px; margin: 0 auto 20px; border: 1px solid #252525; }
.login-card h1 { font-family: 'Cormorant Garamond', serif; text-align: center; font-size: 42px; margin: 0 0 22px; }
.admin-header { position: sticky; top: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 18px clamp(18px, 4vw, 54px); background: rgba(10,10,10,.9); border-bottom: 1px solid var(--border); backdrop-filter: blur(16px); }
.admin-main { max-width: 1180px; margin: 0 auto; padding: 34px 22px 80px; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.admin-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.stat-card { padding: 22px; }
.stat-card span, .customer-grid span { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .14em; }
.stat-card strong { display: block; margin-top: 6px; color: white; font-family: 'Cormorant Garamond', serif; font-size: 36px; }
.orders-list { display: grid; gap: 16px; }
.order-card { padding: 20px; }
.order-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.order-top h2 { margin: 8px 0 3px; color: white; font-size: 20px; }
.order-top p { margin: 0; color: var(--muted); font-size: 13px; }
.order-top > strong { color: var(--accent); font-family: 'Cormorant Garamond', serif; font-size: 30px; }
.status-chip { display: inline-flex; padding: 6px 10px; border-radius: 999px; background: rgba(200,169,126,.12); color: var(--accent-light); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }
.customer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; padding: 18px 0; margin: 18px 0; border-block: 1px solid var(--border); }
.customer-grid strong { color: white; overflow-wrap: anywhere; }
.order-note, .package-note { color: #ddd; background: var(--surface); border-radius: 14px; padding: 14px; }
.package-note { margin-bottom: 12px; color: var(--muted); }
.package-note strong { color: white; }
.order-details summary { cursor: pointer; color: white; padding: 10px 0; }
.admin-item-row { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; background: var(--surface); border-radius: 14px; padding: 12px; margin-bottom: 8px; }
.admin-item-row strong { color: white; }
.admin-item-row span { display: block; color: var(--muted); font-size: 13px; }
.order-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.danger-link { border: 1px solid rgba(231,76,60,.3); color: #ff7a70; background: transparent; border-radius: 999px; padding: 10px 16px; }
.admin-error { background: rgba(231,76,60,.12); border: 1px solid rgba(231,76,60,.3); color: #ffaaa4; border-radius: 14px; padding: 12px; }
.empty-admin { text-align: center; color: var(--muted); padding: 50px; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: scale(1); } }
@keyframes slideRight { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes toastIn { from { opacity: 0; transform: translateX(60px); } to { opacity: 1; transform: translateX(0); } }
@keyframes toastOut { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(60px); } }
@keyframes bounce { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -7px); } }
.anim-fade-up { animation: fadeUp .75s ease both; }
.anim-scale-in { animation: scaleIn .35s ease both; }
.reveal { opacity: 0; transform: translateY(38px); transition: opacity .75s ease, transform .75s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media (max-width: 980px) {
  .product-modal, .checkout-modal { inset: 14px; }
  .product-modal { grid-template-columns: 1fr; overflow-y: auto; }
  .modal-image-wrap { max-height: 42vh; }
  .presentation-grid, .product-grid, .packaging-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-stats, .customer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .nav-links { display: none; }
  .brand-mark img { width: 38px; height: 38px; }
  .hero-logo { width: 82px; height: 82px; }
  .presentation-grid, .product-grid, .packaging-grid, .gift-options, .form-grid, .checkout-actions, .admin-stats, .customer-grid { grid-template-columns: 1fr; }
  .section { padding-block: 78px; }
  .cart-sidebar { width: 100%; }
  .cart-item { grid-template-columns: 64px 1fr; }
  .cart-controls { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
  .modal-bottom { align-items: stretch; }
  .modal-bottom .btn-accent { width: 100%; }
  .checkout-modal { inset: 8px; border-radius: 18px; }
  .admin-header { flex-direction: column; align-items: flex-start; }
  .order-top { flex-direction: column; }
  .admin-item-row { grid-template-columns: 1fr; }
}

.price-line {
  display: block;
  margin-top: 18px;
  color: var(--accent);
  font-family: 'Cormorant Garamond', serif;
  font-size: 25px;
  line-height: 1.1;
}
.pack-card small {
  color: var(--muted);
  font-size: 12px;
}
.admin-section-block {
  margin-top: 42px;
  scroll-margin-top: 110px;
}
.admin-section-head {
  margin: 0 0 20px;
}
.admin-section-head h2 {
  margin: 0;
  color: white;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1;
}
.admin-section-head span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  max-width: 720px;
}
.admin-editor-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 22px;
  margin-bottom: 18px;
}
.admin-editor-card h3 {
  margin: 0 0 16px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 30px;
  color: white;
}
.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}
.admin-form-grid.single {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.check-line {
  align-content: center;
  grid-auto-flow: column;
  justify-content: start;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
}
.check-line input {
  width: auto;
}
.catalog-admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.product-admin-card {
  display: grid;
  gap: 12px;
}
.product-admin-card > form:first-child {
  display: grid;
  gap: 14px;
}
.product-admin-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.packaging-admin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}
.packaging-admin-card {
  display: grid;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
}
.packaging-admin-card > strong {
  color: white;
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
}
.packaging-admin-card > em {
  color: var(--accent);
  font-style: normal;
  font-size: 14px;
}
input[type="file"] {
  padding: 10px;
}
@media (max-width: 980px) {
  .admin-form-grid, .catalog-admin-grid, .packaging-admin-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .admin-form-grid, .admin-form-grid.single, .catalog-admin-grid, .packaging-admin-grid { grid-template-columns: 1fr; }
}

/* v4 one-page flow */
.compact-hero { min-height: 84vh; }
.step-section { scroll-margin-top: 92px; }
.card-selected-summary {
  display: none;
  margin-top: 16px;
  border: 1px solid rgba(200,169,126,.25);
  background: rgba(200,169,126,.075);
  border-radius: 14px;
  padding: 12px;
}
.card-selected-summary.has-items { display: grid; gap: 4px; }
.card-selected-summary strong { color: var(--accent-light); font-size: 14px; }
.card-selected-summary span { color: #bbb; font-size: 13px; }
.inline-selection {
  margin-top: 34px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: clamp(18px, 4vw, 28px);
}
.inline-selection-head, .selection-footer, .packaging-continue {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.inline-selection-head h3 {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  color: white;
  font-size: 34px;
}
.inline-selection-head > strong {
  color: var(--accent);
  font-family: 'Cormorant Garamond', serif;
  font-size: 34px;
}
.selection-items { display: grid; gap: 10px; margin: 20px 0; }
.selection-row {
  display: grid;
  grid-template-columns: 58px 1fr auto auto auto;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
}
.selection-row img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 12px;
}
.selection-row strong { color: white; }
.selection-row span { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.selection-qty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #111;
  border: 1px solid #2a2a2a;
  border-radius: 999px;
  padding: 4px;
}
.selection-qty button {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: var(--surface-2);
  color: white;
}
.selection-qty span { min-width: 22px; text-align: center; color: white; margin: 0; }
.selection-remove {
  border: 0;
  background: transparent;
  color: var(--muted);
  transition: color .2s;
}
.selection-remove:hover { color: var(--danger); }
.empty-selection {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 34px;
  color: var(--muted);
  border: 1px dashed #2c2c2c;
  border-radius: 18px;
}
.empty-selection i { font-size: 28px; color: #333; margin-bottom: 10px; }
.empty-selection p { margin: 0; }
.selection-footer {
  border-top: 1px solid var(--border);
  padding-top: 18px;
  color: var(--muted);
}
.selection-footer strong { color: var(--accent); }
.selectable-packaging .info-card {
  width: 100%;
  color: inherit;
  font: inherit;
}
.pack-choice {
  appearance: none;
  cursor: pointer;
}
.pack-choice.selected {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(200,169,126,.12), var(--card));
  box-shadow: 0 18px 60px rgba(200,169,126,.08);
}
.pack-hint {
  display: block;
  margin-top: 12px;
  color: #aaa;
  font-size: 13px;
}
.packaging-continue {
  margin-top: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 20px;
}
.packaging-continue strong {
  display: block;
  color: white;
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  margin-bottom: 4px;
}
.packaging-continue span { color: var(--muted); }
.onepage-checkout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: start;
}
.checkout-column {
  display: grid;
  gap: 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: clamp(18px, 3vw, 26px);
}
.visible-grid { display: grid; }
.final-total-box { margin: 0; }
.thanks-page {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 24px;
}
.thanks-page #heroCanvas { position: absolute; inset: 0; z-index: 0; }
.thanks-card {
  position: relative;
  z-index: 2;
  width: min(100%, 640px);
  background: rgba(19,19,19,.82);
  border: 1px solid rgba(200,169,126,.24);
  border-radius: 30px;
  padding: clamp(34px, 7vw, 70px);
  text-align: center;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}
.thanks-card img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 999px;
  margin: 0 auto 22px;
  border: 1px solid #2b2b2b;
}
.thanks-card h1 {
  margin: 0;
  color: white;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(44px, 8vw, 72px);
  line-height: .95;
}
.thanks-card p:not(.mini-title) {
  color: var(--muted);
  line-height: 1.75;
  margin: 20px auto 26px;
  max-width: 480px;
}
.order-code {
  display: grid;
  gap: 6px;
  margin: 0 auto 26px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(0,0,0,.18);
}
.order-code span { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .16em; }
.order-code strong { color: var(--accent); font-family: 'Cormorant Garamond', serif; font-size: 26px; }
@media (max-width: 900px) {
  .onepage-checkout { grid-template-columns: 1fr; }
  .selection-row { grid-template-columns: 52px 1fr auto; }
  .selection-row > strong { grid-column: 2 / 3; }
  .selection-remove { grid-column: 3 / 4; grid-row: 2 / 3; }
}
@media (max-width: 680px) {
  .compact-hero { min-height: 78vh; }
  .inline-selection-head, .selection-footer, .packaging-continue { flex-direction: column; align-items: stretch; }
  .selection-row { grid-template-columns: 48px 1fr; }
  .selection-qty, .selection-row > strong, .selection-remove { grid-column: 1 / -1; justify-self: start; }
  .selection-remove { justify-self: stretch; border: 1px solid rgba(231,76,60,.25); border-radius: 999px; padding: 9px; }
}

/* v5 refinements */
#giftOptions .gift-options,
.gift-options.visible-grid {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(200,169,126,.18), rgba(255,240,213,.07)), #17110c;
  border-color: rgba(200,169,126,.34);
  box-shadow: inset 0 0 42px rgba(200,169,126,.06), 0 18px 60px rgba(0,0,0,.18);
}
#giftOptions .gift-options::before,
.gift-options.visible-grid::before {
  content: 'Tarjeta personalizada';
  position: absolute;
  right: 18px;
  top: 14px;
  color: rgba(217,191,154,.25);
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  letter-spacing: .08em;
  pointer-events: none;
}
#giftOptions label:first-child textarea {
  min-height: 132px;
  background: #f3e2c5;
  color: #3a2719;
  border-color: rgba(200,169,126,.65);
  font-family: 'Parisienne', 'Cormorant Garamond', cursive;
  font-size: 30px;
  line-height: 1.25;
  padding: 24px 22px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.28), 0 14px 36px rgba(0,0,0,.16);
}
#giftOptions label:first-child textarea::placeholder {
  color: rgba(58,39,25,.48);
}
#giftOptions label:first-child em {
  color: var(--accent-light);
}
.field-missing {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 4px rgba(200,169,126,.18), 0 0 32px rgba(200,169,126,.55) !important;
  animation: missingGlow 1.1s ease-in-out infinite alternate;
}
body.missing-field-flash::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  background: radial-gradient(circle at center, rgba(200,169,126,.18), rgba(200,169,126,0) 54%);
  animation: pageFieldFlash .9s ease both;
}
.product-admin-details {
  padding: 0;
  overflow: hidden;
}
.product-admin-details summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
}
.product-admin-details summary::-webkit-details-marker { display: none; }
.product-admin-details summary span {
  color: white;
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  letter-spacing: .06em;
}
.product-admin-details summary em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
  text-align: right;
}
.product-admin-details summary::after {
  content: '+';
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid #333;
  color: var(--accent);
}
.product-admin-details[open] summary {
  border-bottom: 1px solid var(--border);
  background: rgba(200,169,126,.04);
}
.product-admin-details[open] summary::after { content: '−'; }
.product-admin-details > form {
  padding: 18px 20px 0;
}
.product-admin-details > form:last-child {
  padding: 12px 20px 20px;
}
@keyframes missingGlow {
  from { box-shadow: 0 0 0 4px rgba(200,169,126,.16), 0 0 24px rgba(200,169,126,.35); }
  to { box-shadow: 0 0 0 5px rgba(200,169,126,.24), 0 0 46px rgba(200,169,126,.72); }
}
@keyframes pageFieldFlash {
  0% { opacity: 0; }
  25% { opacity: 1; }
  100% { opacity: 0; }
}
@media (max-width: 680px) {
  .product-admin-details summary { flex-direction: column; align-items: flex-start; }
  .product-admin-details summary em { text-align: left; }
}

/* v6: tarjeta más cuidada + mobile compacto */
.gift-card-editor {
  grid-template-columns: .95fr 1.05fr;
  gap: 18px;
  align-items: stretch;
}
.gift-card-editor::before { display: none; }
.gift-inputs {
  display: grid;
  gap: 14px;
  align-content: start;
}
.gift-preview {
  position: relative;
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 16px;
  border: 1px solid rgba(200,169,126,.32);
  border-radius: 18px;
  background: radial-gradient(circle at 20% 0%, rgba(200,169,126,.18), transparent 38%), rgba(255,255,255,.035);
}
.gift-preview > span {
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 11px;
}
.preview-paper {
  min-height: 178px;
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 26px 24px;
  border-radius: 18px;
  background: linear-gradient(145deg, #f5e7cf, #ead3ae);
  color: #3a2719;
  border: 1px solid rgba(255,255,255,.45);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.3), 0 16px 42px rgba(0,0,0,.22);
}
.preview-paper small {
  color: rgba(58,39,25,.55);
  letter-spacing: .24em;
  font-size: 10px;
  text-align: center;
}
.preview-paper p {
  margin: 0;
  color: #3a2719;
  font-family: 'Parisienne', 'Cormorant Garamond', cursive;
  font-size: clamp(30px, 3.2vw, 42px);
  line-height: 1.12;
  text-align: center;
  overflow-wrap: anywhere;
}
.preview-paper[data-color="dorado"] { background: linear-gradient(145deg, #f4e2bb, #d7b46f); }
.preview-paper[data-color="blanco"] { background: linear-gradient(145deg, #fffaf0, #eee7da); }
.preview-paper[data-color="rosa"] { background: linear-gradient(145deg, #ffe4e9, #e9b8c5); }
.preview-paper[data-color="lavanda"] { background: linear-gradient(145deg, #eee4ff, #c8b7e8); }
.preview-paper[data-color="verde"] { background: linear-gradient(145deg, #e8edd4, #b8c88c); }
.preview-paper[data-color="negro"] { background: linear-gradient(145deg, #252525, #090909); color: #f4e2bb; border-color: rgba(200,169,126,.42); }
.preview-paper[data-color="negro"] p,
.preview-paper[data-color="negro"] small { color: #f4e2bb; }
.gift-preview > em {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  line-height: 1.5;
}
@media (max-width: 680px) {
  .section-head { margin-bottom: 26px; }
  .product-grid { gap: 14px; }
  .product-card {
    display: grid;
    grid-template-columns: 112px 1fr;
    min-height: 112px;
  }
  .product-image { aspect-ratio: 1 / 1; height: 100%; }
  .product-info { padding: 14px; }
  .product-info h3 { font-size: 25px; margin-bottom: 10px; }
  .product-info p { font-size: 9px; margin-bottom: 6px; }
  .product-foot i { width: 28px; height: 28px; }
  .card-selected-summary { padding: 9px; margin-top: 10px; }
  .card-selected-summary strong,
  .card-selected-summary span { font-size: 12px; }
  .gift-card-editor { grid-template-columns: 1fr; }
  #giftOptions label:first-child textarea { min-height: 112px; font-size: 26px; }
  .preview-paper { min-height: 142px; }
}

/* Notificaciones admin */
.admin-mini-details {
  padding: 0;
  overflow: hidden;
}
.admin-mini-details summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
}
.admin-mini-details summary::-webkit-details-marker { display: none; }
.admin-mini-details summary span {
  color: white;
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  letter-spacing: .04em;
}
.admin-mini-details summary em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
  text-align: right;
}
.admin-mini-details summary::after {
  content: '+';
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid #333;
  color: var(--accent);
}
.admin-mini-details[open] summary {
  border-bottom: 1px solid var(--border);
  background: rgba(200,169,126,.04);
}
.admin-mini-details[open] summary::after { content: '−'; }
.notification-settings-form {
  padding: 18px 20px 20px;
  display: grid;
  gap: 16px;
}
.notification-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.notification-enabled {
  border: 1px solid rgba(200,169,126,.18);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(200,169,126,.045);
}
.settings-hint {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.settings-hint code {
  color: var(--accent-light);
}
@media (max-width: 680px) {
  .admin-mini-details summary,
  .notification-form-grid { grid-template-columns: 1fr; }
  .admin-mini-details summary { flex-direction: column; align-items: flex-start; }
  .admin-mini-details summary em { text-align: left; }
}

/* Actualizador de app / caché */
.app-update-panel {
  padding: 18px 20px 20px;
  display: grid;
  gap: 16px;
}
.update-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.update-status-grid > div {
  border: 1px solid rgba(200,169,126,.18);
  border-radius: 16px;
  background: rgba(200,169,126,.045);
  padding: 14px;
}
.update-status-grid span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .14em;
  margin-bottom: 6px;
}
.update-status-grid strong {
  color: var(--accent-light);
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
}
.nox-update-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 99999;
  max-width: min(360px, calc(100vw - 36px));
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(200,169,126,.38);
  background: rgba(19,19,19,.94);
  color: var(--accent-light);
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease;
}
.nox-update-toast.show { opacity: 1; transform: translateY(0); }
@media (max-width: 680px) {
  .update-status-grid { grid-template-columns: 1fr; }
}


.push-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.push-actions button {
  min-width: 210px;
}
@media (max-width: 680px) {
  .push-actions { display: grid; }
  .push-actions button { width: 100%; min-width: 0; }
}

/* Admin compacto: packaging, avisos e iconos */
.admin-tools-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.admin-compact-details {
  margin: 0;
}
.admin-compact-details summary span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 24px;
}
.admin-compact-details summary span i {
  color: var(--accent);
  font-size: 16px;
}
.compact-panel {
  padding-top: 14px;
}
.packaging-editor-compact {
  display: grid;
  gap: 16px;
}
.compact-packaging-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.packaging-admin-details {
  padding: 0;
  overflow: hidden;
  display: block;
}
.packaging-admin-details summary {
  list-style: none;
  cursor: pointer;
  padding: 16px;
}
.packaging-admin-details summary::-webkit-details-marker { display: none; }
.packaging-summary-main {
  display: flex;
  align-items: center;
  gap: 12px;
}
.packaging-summary-main strong {
  display: block;
  color: white;
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  line-height: 1;
}
.packaging-summary-main em {
  display: block;
  color: var(--accent);
  font-style: normal;
  font-size: 12px;
  margin-top: 4px;
}
.packaging-admin-details summary::after {
  content: '+';
  position: absolute;
  top: 14px;
  right: 14px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid #333;
  color: var(--accent);
}
.packaging-admin-details[open] summary {
  border-bottom: 1px solid var(--border);
  background: rgba(200,169,126,.04);
}
.packaging-admin-details[open] summary::after { content: '−'; }
.packaging-fields {
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.icon-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.icon-settings-grid article {
  border: 1px solid rgba(200,169,126,.18);
  border-radius: 16px;
  background: rgba(200,169,126,.045);
  padding: 14px;
  display: grid;
  gap: 12px;
}
.icon-settings-grid img {
  width: 78px;
  height: 78px;
  object-fit: contain;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: #050505;
  padding: 8px;
}
@media (max-width: 980px) {
  .compact-packaging-grid,
  .admin-tools-grid,
  .icon-settings-grid { grid-template-columns: 1fr; }
}
.packaging-admin-details summary { position: relative; padding-right: 52px; }

/* Página de instalación privada */
.install-screen {
  padding: 22px;
}
.install-card {
  max-width: 460px;
}
.install-card h1 {
  margin-bottom: 10px;
}
.install-app-icon {
  width: 92px !important;
  height: 92px !important;
  object-fit: contain;
  border-radius: 24px;
  background: #050505;
  border: 1px solid rgba(200,169,126,.25);
  padding: 10px;
}
.install-text {
  color: var(--muted);
  text-align: center;
  line-height: 1.55;
  margin: 0 0 18px;
}
.install-help {
  margin: 14px 0;
  padding: 14px;
  border: 1px solid rgba(200,169,126,.25);
  border-radius: 16px;
  background: rgba(200,169,126,.055);
  color: #ddd;
  font-size: 14px;
  line-height: 1.55;
}
.install-help strong {
  display: block;
  color: var(--accent-light);
  margin-bottom: 8px;
}
.install-help ol {
  margin: 0;
  padding-left: 20px;
}
.install-actions {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}
