/* Pestei — theme: cream · brown · pistachio · flame */
@font-face { font-family: "Vazirmatn"; src: local("Vazirmatn"), local("Vazirmatn UI"); font-display: swap; }
:root {
  --cream: #FBF5E8; --cream-2: #F3E9D2; --paper: #FFFDF8; --brown: #4A3224; --brown-2: #6B4A33; --muted: #85705f;
  --pist: #8FA874; --pist-d: #587342; --pist-l: #E3ECD2; --flame: #F59E2B; --flame-d: #C96F0C; --gold: #C9A15B;
  --line: #E8DBBF; --danger: #B03A2E; --ok: #3F6F2E; --info: #7A5A2F; --radius: 18px;
  --shadow: 0 14px 34px -18px rgba(74, 50, 36, .45); --shadow-s: 0 4px 14px -8px rgba(74, 50, 36, .4);
  --font: "Vazirmatn", "Vazir", "IRANSansX", "IRANSans", "Segoe UI", Tahoma, "Geeza Pro", "Noto Sans Arabic", "Noto Naskh Arabic", "DejaVu Sans", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--brown); line-height: 1.9; font-size: 16px; background: var(--cream);
  background-image: radial-gradient(1200px 500px at 85% -10%, #FFF3D4 0%, transparent 60%), radial-gradient(900px 500px at 0% 110%, #EEF3DE 0%, transparent 60%); background-attachment: fixed; min-height: 100vh; }
body.modal-open { overflow: hidden; }
img { max-width: 100%; }
a { color: var(--pist-d); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.5; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(1.45rem, 1.1rem + 1.4vw, 2rem); } h2 { font-size: 1.25rem; } h3 { font-size: 1.05rem; }
p { margin: 0 0 .9em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.4em 0; }
:focus-visible { outline: 3px solid var(--flame); outline-offset: 2px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); } .small { font-size: .86rem; } .center { text-align: center; }
.skip { position: absolute; top: -60px; right: 10px; background: var(--brown); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 200; }
.skip:focus { top: 10px; }
.ic { flex: none; vertical-align: middle; }
.row { display: flex; align-items: center; } .row.between { justify-content: space-between; } .row.end { justify-content: flex-end; } .row.gap, .gap { gap: 10px; } .wrap-row { flex-wrap: wrap; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .span2 { grid-column: 1 / -1; }
.boot-splash { display: grid; place-items: center; min-height: 80vh; } .boot-splash img { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.06); opacity: .8; } }

/* ---------- header / footer ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 245, 232, .88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.hdr { display: flex; align-items: center; gap: 18px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--brown); font-weight: 800; font-size: 1.35rem; } .brand:hover { text-decoration: none; }
.brand-logo { width: 54px; height: 54px; object-fit: contain; }
.search { flex: 1; max-width: 520px; margin-inline: auto; position: relative; }
.search input { padding-inline-end: 3rem; border-radius: 999px; background: var(--paper); }
.search button { position: absolute; inset-inline-end: 6px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--brown-2); width: 38px; height: 38px; border-radius: 50%; cursor: pointer; }
.hdr-nav { display: flex; gap: 6px; margin-inline-start: auto; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--brown); border: 0; background: transparent; cursor: pointer; }
.icon-btn:hover { background: var(--cream-2); text-decoration: none; }
.icon-btn.danger { color: var(--danger); }
.badge { position: absolute; top: 2px; inset-inline-end: 0; min-width: 20px; height: 20px; padding: 0 5px; background: var(--flame); color: #3b2200; border-radius: 999px; font-size: .72rem; font-weight: 700; display: grid; place-items: center; line-height: 1; }
.badge[hidden] { display: none; }
.badge.bump { animation: bump .5s; } @keyframes bump { 40% { transform: scale(1.5); } }
.site-footer { margin-top: 70px; background: #3B281B; color: #E9DCC4; padding: 40px 0 0; }
.site-footer a { color: #E9DCC4; } .site-footer .muted { color: #BBA98F; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 28px; } .foot-grid h4 { color: #fff; margin-bottom: .5em; font-size: 1rem; }
.foot-grid nav a, .foot-grid > div > a { display: block; padding: 3px 0; }
.foot-brand { color: #fff; font-size: 1.2rem; margin-bottom: 8px; }
.ico-link { display: flex !important; align-items: center; gap: 8px; }
.foot-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 28px; padding: 16px 20px; font-size: .86rem; color: #BBA98F; }
.site-footer .btn.ghost { color: #E9DCC4; border-color: rgba(255, 255, 255, .3); }

/* ---------- controls ---------- */
input, select, textarea { font: inherit; width: 100%; padding: .65em .95em; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--brown); min-height: 44px; }
textarea { resize: vertical; line-height: 1.8; }
input:focus, select:focus, textarea:focus { border-color: var(--pist); box-shadow: 0 0 0 3px rgba(143, 168, 116, .28); outline: none; }
input[type=checkbox], input[type=radio] { width: auto; min-height: 0; accent-color: var(--pist-d); }
input:disabled { background: var(--cream-2); color: var(--muted); }
label { display: block; font-size: .92rem; } label > input, label > select, label > textarea { margin-top: 4px; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; } .check input { margin: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: .55em 1.3em; border-radius: 999px; border: 1px solid transparent; font: inherit; font-weight: 600; cursor: pointer; background: var(--cream-2); color: var(--brown); transition: background .2s, transform .15s, box-shadow .2s; text-decoration: none; }
.btn:hover { text-decoration: none; background: #EADFC4; } .btn:active { transform: translateY(1px); }
.btn.primary { background: var(--pist-d); color: #fff; box-shadow: var(--shadow-s); } .btn.primary:hover { background: #46602F; }
.btn.ghost { background: transparent; border-color: #D8C9A6; } .btn.ghost:hover { background: var(--cream-2); }
.btn.danger { background: var(--danger); color: #fff; } .btn.danger.ghost { background: transparent; color: var(--danger); border-color: #E3B7B0; } .btn.danger.ghost:hover { background: #F8E6E3; }
.btn.link { background: transparent; color: var(--pist-d); padding: .3em .5em; min-height: 36px; text-decoration: underline; }
.btn.small { min-height: 38px; padding: .3em 1em; font-size: .9rem; } .btn.big { min-height: 52px; font-size: 1.05rem; padding-inline: 1.8em; } .btn.block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.add.added { background: var(--ok); color: #fff; }
.form { display: flex; flex-direction: column; gap: 12px; } .form.grid2 { display: grid; }
.alert { padding: 12px 16px; border-radius: 14px; margin-bottom: 12px; border: 1px solid; }
.alert.bad { background: #FBEAE7; border-color: #E8BDB6; color: #7C2318; } .alert.warn { background: #FFF4D9; border-color: #EBCF8A; color: #6B4A00; } .alert.good { background: #EAF3DD; border-color: #BCD6A0; color: #2E5420; }
.pill { display: inline-block; padding: 1px 12px; border-radius: 999px; font-size: .82rem; font-weight: 600; background: var(--cream-2); border: 1px solid var(--line); white-space: nowrap; }
.st-wait { background: #FFF1CC; border-color: #EBCF8A; color: #7A5500; } .st-info { background: #EDE5D3; color: var(--info); } .st-ok { background: #E3F0D5; border-color: #BCD6A0; color: #2E5420; } .st-bad { background: #FADDD8; border-color: #E8BDB6; color: #7C2318; }
.box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-s); margin-bottom: 20px; }
.loading { display: grid; place-items: center; padding: 70px 0; } .spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--pist-d); animation: spin .8s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } }
.empty { text-align: center; padding: 50px 10px; } .empty-candle { width: 170px; height: 204px; position: relative; margin: 0 auto 10px; }
.page-title { margin-bottom: .2em; }
.hint { color: var(--muted); display: flex; align-items: center; gap: 6px; margin-bottom: 14px; } .hint .ic { color: var(--flame-d); }
.pulse { animation: blink 1.4s ease-in-out infinite; } @keyframes blink { 50% { opacity: .45; } }
.crumbs { color: var(--muted); font-size: .9rem; padding: 14px 0 6px; } .crumbs a { color: var(--muted); }

/* ---------- toasts / modal ---------- */
#toasts { position: fixed; bottom: 22px; inset-inline: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 300; pointer-events: none; padding: 0 14px; }
.toast { background: #3B281B; color: #fff; padding: 11px 20px; border-radius: 14px; box-shadow: var(--shadow); opacity: 0; transform: translateY(14px); transition: all .35s; max-width: 92vw; }
.toast.show { opacity: 1; transform: none; } .toast.error { background: var(--danger); }
.modal-back { position: fixed; inset: 0; background: rgba(40, 25, 15, .5); display: grid; place-items: center; z-index: 150; padding: 14px; }
.modal { position: relative; background: var(--paper); border-radius: 22px; width: 100%; max-width: 580px; max-height: 92vh; overflow: auto; padding: 26px; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .5); animation: pop .25s ease; }
.modal.small { max-width: 420px; } .modal.wide { max-width: 960px; }
@keyframes pop { from { opacity: 0; transform: scale(.96) translateY(8px); } }
.modal-x { position: absolute; top: 12px; inset-inline-start: 12px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--cream-2); font-size: 22px; cursor: pointer; line-height: 1; color: var(--brown); }
.confirm-msg { font-size: 1.05rem; margin: 10px 0 20px; }

/* ---------- catalogue ---------- */
.shelf-head { padding: 26px 0 0; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 12px; scrollbar-width: thin; }
.chip { flex: none; padding: 6px 18px; border: 1px solid #D8C9A6; border-radius: 999px; color: var(--brown); background: var(--paper); min-height: 40px; display: inline-flex; align-items: center; }
.chip:hover { text-decoration: none; background: var(--cream-2); } .chip.on { background: var(--brown); color: #fff; border-color: var(--brown); }
.filters { display: grid; grid-template-columns: repeat(2, minmax(120px, 190px)) repeat(2, minmax(100px, 150px)) auto auto auto; gap: 10px; align-items: center; margin-bottom: 22px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(235px, 1fr)); gap: 22px; } .grid.four { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.more { text-align: center; margin: 30px 0; }
.card { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 12px; display: flex; flex-direction: column; box-shadow: var(--shadow-s); transition: box-shadow .4s, transform .4s, border-color .6s; }
@media (hover: hover) { .card:hover { transform: translateY(-3px); box-shadow: var(--shadow); } }
.card.lit { border-color: #EBCB8A; box-shadow: 0 18px 44px -20px rgba(245, 158, 43, .65); }
.card-link { color: inherit; display: block; } .card-link:hover { text-decoration: none; }
.card-title { font-size: 1.02rem; margin: 12px 4px 0; } .card-scent { color: var(--muted); font-size: .88rem; margin: 0 4px 8px; }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 4px 2px; }
.prices { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; } .price { font-weight: 800; color: var(--brown); } .old { color: var(--muted); font-size: .85rem; }
.off-badge { background: var(--flame); color: #3b2200; border-radius: 8px; padding: 0 8px; font-size: .8rem; font-weight: 700; }
.card.is-out .stage { filter: saturate(.55); }
.tag { position: absolute; top: 20px; inset-inline-start: 20px; z-index: 3; font-size: .78rem; padding: 1px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line); } .tag.out { background: #EFE7D8; color: var(--muted); } .tag.low { background: #FFF1CC; border-color: #EBCF8A; color: #7A5500; }
.pdp .tag { position: static; display: inline-block; margin-inline-start: 10px; }
.fav { position: absolute; top: 18px; inset-inline-end: 18px; z-index: 4; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 253, 248, .92); color: var(--brown-2); display: grid; place-items: center; cursor: pointer; transition: transform .2s, color .2s; }
.fav:hover { transform: scale(1.08); } .fav.on { color: #C8372D; } .fav.on svg { fill: currentColor; } .fav.inline { position: static; width: 52px; height: 52px; }

/* ---------- candle ---------- */
/* Candle glow stays local; the page-wide ambient light is controlled by the selected theme. */
#dimmer { position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: 0; }
.card.lit-host { z-index: 61; }
.stage { position: relative; aspect-ratio: 5 / 6; border-radius: 16px; overflow: hidden; background: linear-gradient(180deg, #E9DFC8 0%, #DDCFAE 100%); isolation: isolate; transition: box-shadow 2.4s ease; }
.stage::before { content: ""; position: absolute; inset: 0; z-index: 0; background: radial-gradient(70% 60% at 50% 38%, #FFE7B0 0%, #FBD58A 38%, rgba(251, 213, 138, 0) 75%), linear-gradient(180deg, #F6E3B8, #EBCB8D); opacity: 0; transition: opacity 1.3s ease; }
.lit .stage::before, .stage.lit::before, .stage-host.lit::before { opacity: 1; }
.shelf { position: absolute; z-index: 1; left: 7%; right: 7%; bottom: 5%; height: 11px; border-radius: 5px; background: linear-gradient(#8A6140, #5D3F28); box-shadow: 0 6px 10px -4px rgba(40, 20, 8, .55); }
.shelf::after { content: ""; position: absolute; left: 3%; right: 3%; top: 1px; height: 2px; background: rgba(255, 255, 255, .25); border-radius: 2px; }
.candle { position: absolute; inset: 0; z-index: 2; cursor: pointer; }
.candle img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transform: translateY(-1%); user-select: none; -webkit-user-drag: none; }
/* two-photo mode (off photo + lit photo cross-fade) */
.candle:not(.fx) .c-off { transition: opacity .01s linear 1s; } .candle:not(.fx) .c-on { opacity: 0; transition: opacity .95s cubic-bezier(.4, 0, .2, 1); }
.candle:not(.fx).lit .c-on { opacity: 1; } .candle:not(.fx).lit .c-off { opacity: 0; transition-delay: .95s; }
.candle:not(.fx):not(.lit) .c-off { opacity: 1; transition-delay: 0s; } .candle:not(.fx):not(.lit) .c-on { transition-duration: .7s; }
.candle:not(.fx).lit .c-on { animation: flick 3.1s ease-in-out 1s infinite; }
@keyframes flick { 0%, 100% { filter: brightness(1); } 18% { filter: brightness(1.05); } 40% { filter: brightness(.975); } 63% { filter: brightness(1.04); } 82% { filter: brightness(.985); } }
.c-glow, .c-bloom, .c-spark { position: absolute; left: var(--fx); top: var(--fy); border-radius: 50%; pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(.3); }
.c-glow { width: 105%; aspect-ratio: 1; background: radial-gradient(circle, rgba(255, 211, 120, .55) 0%, rgba(255, 176, 70, .24) 38%, rgba(255, 160, 50, 0) 68%); }
.c-bloom { width: 24%; aspect-ratio: 1; background: radial-gradient(circle, rgba(255, 246, 205, .95) 0%, rgba(255, 205, 110, .45) 42%, rgba(255, 190, 90, 0) 72%); mix-blend-mode: screen; }
.c-spark { width: 18%; aspect-ratio: 1; background: radial-gradient(circle, #fff 0%, #FFE9A8 35%, rgba(255, 220, 130, 0) 70%); }
.candle.lit .c-glow { opacity: 1; transform: translate(-50%, -50%) scale(1); transition: opacity 1.4s ease, transform 1.6s cubic-bezier(.2, .7, .2, 1); animation: breathe 3.6s ease-in-out 1.6s infinite; }
.candle.lit .c-bloom { opacity: .9; transform: translate(-50%, -50%) scale(1); transition: opacity 1.1s ease .25s, transform 1.1s ease .25s; animation: bloom 2.3s ease-in-out 1.4s infinite; }
@keyframes breathe { 50% { transform: translate(-50%, -50%) scale(1.07); opacity: .85; } }
@keyframes bloom { 0%, 100% { transform: translate(-50%, -50%) scale(1); } 30% { transform: translate(-50%, -52%) scale(1.1, 1.18); opacity: .75; } 65% { transform: translate(-50%, -49%) scale(.94, .9); } }
.candle.igniting .c-spark { animation: spark 1.4s ease-out; }
@keyframes spark { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.2); } 35% { opacity: 1; transform: translate(-50%, -50%) scale(1.5); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(.7); } }
.stage.big { aspect-ratio: 5 / 6; border-radius: 26px; } .stage .photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 3; }
.empty-candle .candle { position: absolute; } .empty-candle { background: linear-gradient(180deg, #E9DFC8, #DDCFAE); border-radius: 20px; overflow: hidden; isolation: isolate; }

/* one photo, generated light: the candle never changes angle or shape - the same photo only receives light */
.candle.fx img { transform: none; }
.candle.fx .c-off { opacity: 1; filter: drop-shadow(0 18px 16px rgba(0, 0, 0, .55)); transition: filter 3s ease; }
.candle.fx .c-warm { opacity: 0; filter: brightness(1.14) saturate(1.22) sepia(.1) contrast(1.05); transition: opacity 3s ease .2s;
  -webkit-mask-image: radial-gradient(circle at var(--fx) var(--fy), #000 0%, rgba(0, 0, 0, .92) 15%, rgba(0, 0, 0, .5) 36%, transparent 64%); mask-image: radial-gradient(circle at var(--fx) var(--fy), #000 0%, rgba(0, 0, 0, .92) 15%, rgba(0, 0, 0, .5) 36%, transparent 64%); }
.candle.fx.lit .c-off { opacity: 1; filter: brightness(.7) saturate(.95) drop-shadow(0 18px 16px rgba(0, 0, 0, .55)); }
.candle.fx.lit .c-warm { opacity: 1; }
.candle.fx .c-glow { width: 150%; background: radial-gradient(circle, rgba(255, 230, 165, .62) 0%, rgba(255, 200, 110, .46) 8%, rgba(255, 168, 60, .3) 20%, rgba(255, 140, 36, .16) 38%, rgba(255, 124, 24, .06) 56%, rgba(255, 120, 20, 0) 70%); mix-blend-mode: screen; }
.candle.fx.lit .c-glow { opacity: 1; transform: translate(-50%, -50%) scale(1); transition: opacity 3.4s ease .3s, transform 3.8s cubic-bezier(.2, .7, .2, 1); animation: breathe 4.4s ease-in-out 3.8s infinite; }
.candle.fx .c-bloom { width: 19%; background: radial-gradient(circle, rgba(255, 252, 228, .95) 0%, rgba(255, 222, 140, .5) 38%, rgba(255, 186, 84, 0) 70%); mix-blend-mode: screen; }
.candle.fx.lit .c-bloom { opacity: .85; transform: translate(-50%, -50%) scale(1); transition: opacity 2.6s ease .5s, transform 3s ease .5s; animation: bloom 2.4s ease-in-out 3.2s infinite; }
.candle .c-flame { display: none; }
.candle.fx .c-flame { display: block; position: absolute; left: var(--fx); top: var(--fy); width: 9.6%; aspect-ratio: .7; z-index: 3; transform: translate(-50%, -80%) scale(.04); transform-origin: 50% 92%; opacity: 0; pointer-events: none;
  border-radius: 50% 50% 48% 48% / 72% 72% 28% 28%;
  background: radial-gradient(ellipse 58% 52% at 50% 80%, #fff 0%, #FFF8D4 32%, #FFE08A 60%, rgba(255, 190, 80, 0) 100%), radial-gradient(ellipse at 50% 72%, #FFC84A 0%, #FF9322 62%, rgba(255, 110, 20, 0) 100%);
  filter: blur(.5px) drop-shadow(0 0 8px rgba(255, 205, 100, .95)) drop-shadow(0 0 22px rgba(255, 150, 40, .65)); }
.candle.fx.lit .c-flame { opacity: 1; transform: translate(-50%, -80%) scale(1); transition: transform 3.4s cubic-bezier(.16, .8, .2, 1), opacity 1.8s ease .1s; animation: flame 1.8s ease-in-out 3.4s infinite; }
@keyframes flame { 0%, 100% { transform: translate(-50%, -80%) scale(1, 1) skewX(0); } 20% { transform: translate(-50%, -80%) scale(.96, 1.08) skewX(2.4deg); } 45% { transform: translate(-50%, -80%) scale(1.05, .95) skewX(-2.2deg); } 70% { transform: translate(-50%, -80%) scale(.98, 1.05) skewX(1.4deg); } }
/* flat products (a flower lying on a dark wooden table) */
.stage.flat { background: #2a1a10 url(/static/img/wood-dark.webp) center / cover; }
.stage.flat::before { background: radial-gradient(70% 58% at var(--fx) var(--fy), rgba(255, 188, 96, 1) 0%, rgba(255, 160, 60, .66) 28%, rgba(255, 140, 40, .28) 56%, rgba(255, 140, 40, 0) 82%); mix-blend-mode: screen; transition: opacity 3s ease .2s; }
.stage.flat .shelf { display: none; }
.lit .stage.flat, .stage.flat.lit { box-shadow: 0 0 0 1px rgba(255, 190, 90, .4), 0 0 80px 14px rgba(255, 150, 50, .34); }
.card.lit { border-color: #EBCB8A; box-shadow: 0 18px 44px -20px rgba(245, 158, 43, .65); }

/* ---------- product page ---------- */
.pdp { display: grid; grid-template-columns: minmax(280px, 1fr) 1.15fr; gap: 40px; padding: 10px 0 30px; align-items: start; }
.pdp-media { position: sticky; top: 88px; } .light-btn { margin-top: 14px; width: 100%; } .light-btn[aria-pressed=true] { background: #FFF1CC; border-color: #EBCF8A; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; } .thumb { width: 64px; height: 64px; border-radius: 14px; border: 2px solid transparent; padding: 0; overflow: hidden; cursor: pointer; background: var(--cream-2); } .thumb.on { border-color: var(--pist-d); } .thumb img { width: 100%; height: 100%; object-fit: cover; }
.pdp h1 { margin-bottom: .3em; } .lead { color: var(--muted); font-size: 1.05rem; }
.price-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin: 14px 0; } .price-row .price { font-size: 1.6rem; }
.notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0 18px; } .note { background: var(--pist-l); border-radius: 14px; padding: 10px 12px; } .note small { color: var(--pist-d); display: block; font-size: .78rem; } .note b { font-size: .95rem; }
.buy-row { display: flex; align-items: center; gap: 12px; margin: 14px 0; flex-wrap: wrap; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); } .qty button { width: 44px; height: 46px; border: 0; background: transparent; cursor: pointer; color: var(--brown); border-radius: 999px; display: grid; place-items: center; } .qty output { min-width: 34px; text-align: center; font-weight: 700; } .qty.small button { width: 36px; height: 38px; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; margin: 20px 0; border-top: 1px solid var(--line); padding-top: 14px; } .specs div { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--line); padding: 4px 0; } .specs dt { color: var(--muted); } .specs dd { margin: 0; font-weight: 600; }
.related { margin-top: 30px; }
.prose p { margin-bottom: .8em; } .prose h2 { margin-top: 1.4em; } .prose ul { padding-inline-start: 1.2em; }

/* ---------- cart / checkout ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; margin-top: 10px; }
.cart-lines .line { display: grid; grid-template-columns: 76px 1fr auto auto auto; gap: 14px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 10px 14px; margin-bottom: 12px; }
.line-img { width: 76px; height: 90px; border-radius: 12px; background: linear-gradient(180deg, #E9DFC8, #DDCFAE); overflow: hidden; } .line-img img { width: 100%; height: 100%; object-fit: contain; }
.line-name { font-weight: 700; color: var(--brown); display: block; } .line-main { min-width: 0; } .line-total { min-width: 110px; text-align: end; }
.summary { position: sticky; top: 90px; } .summary select, .summary .coupon { margin-bottom: 10px; } .coupon { display: flex; gap: 8px; }
.sum-rows { margin: 12px 0; } .sum-rows div { display: flex; justify-content: space-between; padding: 5px 0; } .sum-rows dd { margin: 0; font-weight: 600; } .sum-rows .good { color: var(--ok); } .sum-rows .total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; font-size: 1.15rem; font-weight: 800; }
.steps { display: flex; gap: 10px; list-style: none; padding: 0; margin: 10px 0 18px; counter-reset: s; } .steps li { padding: 4px 16px; border-radius: 999px; background: var(--cream-2); color: var(--muted); } .steps li.on { background: var(--brown); color: #fff; } .steps li.done { background: var(--pist-l); color: var(--pist-d); }
.addr-opt { display: flex; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; cursor: pointer; align-items: flex-start; } .addr-opt:hover { background: var(--cream); } #newaddr { margin: 10px 0; }
.pay-notice { background: linear-gradient(135deg, #FFF3D2, #FFE7B0); border: 1px solid #EBCB8A; border-radius: 18px; padding: 18px 20px; margin-bottom: 18px; } .pay-notice strong { font-size: 1.08rem; display: block; margin-bottom: 6px; color: #5a3a00; } .pay-notice p { margin-bottom: 10px; }
.plain { list-style: none; padding: 0; margin: 0 0 12px; } .plain li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); } .plain.links li a { font-weight: 600; }
.big-ok h2 { display: flex; align-items: center; gap: 8px; color: var(--ok); } .code { font-size: 1.2rem; letter-spacing: 1px; }
.two-col { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; align-items: start; }
.timeline { list-style: none; margin: 0 0 14px; padding: 0; position: relative; } .timeline li { display: flex; gap: 14px; padding: 0 0 18px; position: relative; } .timeline li::before { content: ""; position: absolute; inset-inline-start: 6px; top: 16px; bottom: 0; width: 2px; background: var(--line); } .timeline li:last-child::before { display: none; } .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--flame); border: 3px solid #FFE7B0; flex: none; margin-top: 6px; z-index: 1; }

/* ---------- auth ---------- */
.auth-wrap { display: grid; place-items: center; padding: 36px 0; } .auth-card { width: 100%; max-width: 440px; text-align: center; } .auth-card.wide { max-width: 560px; } .auth-card .form, .auth-card .otp, .auth-card h1 { text-align: start; } .auth-card h1 { text-align: center; } .auth-logo { margin: 0 auto 6px; display: block; }
.tabs { display: flex; background: var(--cream-2); border-radius: 999px; padding: 4px; margin-bottom: 18px; } .tab { flex: 1; border: 0; background: transparent; padding: 8px; border-radius: 999px; font: inherit; cursor: pointer; color: var(--brown-2); min-height: 40px; } .tab.on { background: var(--paper); box-shadow: var(--shadow-s); font-weight: 700; color: var(--brown); }
.pw-field { position: relative; } .pw-field input { padding-inline-end: 3rem; } .pw-eye { position: absolute; inset-inline-end: 6px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; cursor: pointer; font-size: 1.1rem; width: 38px; height: 38px; opacity: .65; }
.otp-input { text-align: center; font-size: 1.7rem; letter-spacing: .5em; font-weight: 700; padding: .5em; margin: 6px 0 10px; } .otp-input::placeholder { letter-spacing: .3em; opacity: .35; }
.otp-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; color: var(--muted); } .alt { margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; } .bale-link ol { padding-inline-start: 1.3em; margin: 10px 0 16px; } .bale-link li { margin-bottom: 6px; }

/* ---------- account / tables ---------- */
.acc { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: start; } .acc-nav { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; display: flex; flex-direction: column; position: sticky; top: 90px; } .acc-nav a { padding: 8px 14px; border-radius: 12px; color: var(--brown); } .acc-nav a:hover { background: var(--cream-2); text-decoration: none; } .acc-nav a.on { background: var(--brown); color: #fff; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; border-collapse: collapse; font-size: .93rem; } .tbl th { text-align: start; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 2px solid var(--line); white-space: nowrap; } .tbl td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; } .tbl tr:hover td { background: #FFF9EA; }
.addr-card { display: flex; justify-content: space-between; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; flex-wrap: wrap; }
.chat { display: flex; flex-direction: column; gap: 10px; margin: 14px 0; } .msg { max-width: 85%; padding: 10px 14px; border-radius: 16px; background: var(--cream-2); } .msg.me { align-self: flex-start; background: var(--pist-l); } .msg.staff { align-self: flex-end; background: #FFF1CC; } .msg small { color: var(--muted); display: block; margin-top: 4px; }
.static { max-width: 860px; margin-inline: auto; } .static .prose h2 { color: var(--pist-d); font-size: 1.15rem; }
.faq { border: 1px solid var(--line); border-radius: 14px; margin: 10px 0; background: var(--paper); } .faq summary { cursor: pointer; padding: 12px 16px; font-weight: 700; } .faq div { padding: 0 16px 6px; }
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin: 18px auto; max-width: 860px; } .ccard { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; color: var(--brown); margin: 0; } .ccard:hover { text-decoration: none; background: #fff; } .ccard .ic { color: var(--pist-d); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) { .foot-grid { grid-template-columns: 1fr 1fr; } .filters { grid-template-columns: 1fr 1fr; } .cart-layout { grid-template-columns: 1fr; } .summary { position: static; } .two-col { grid-template-columns: 1fr; } }
@media (max-width: 820px) { .pdp { grid-template-columns: 1fr; gap: 20px; } .pdp-media { position: static; max-width: 460px; margin-inline: auto; width: 100%; } .acc { grid-template-columns: 1fr; } .acc-nav { flex-direction: row; overflow-x: auto; position: static; } .acc-nav a { white-space: nowrap; } }
@media (max-width: 640px) {
  .wrap { padding: 0 14px; } .hdr { flex-wrap: wrap; gap: 8px; } .search { order: 3; flex-basis: 100%; max-width: none; } .brand-name { font-size: 1.15rem; }
  .grid, .grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .card { padding: 8px; border-radius: 18px; } .card-title { font-size: .92rem; } .card-foot { flex-direction: column; align-items: stretch; } .card-foot .btn { width: 100%; }
  .cart-lines .line { grid-template-columns: 60px 1fr auto; } .line-total { grid-column: 2 / 3; text-align: start; min-width: 0; } .line-img { width: 60px; height: 72px; }
  .grid2, .specs, .notes { grid-template-columns: 1fr; } .box { padding: 16px; } .foot-grid { grid-template-columns: 1fr; } .modal { padding: 20px 16px; }
}

/* ---------- reduced motion ---------- */
.reduce-motion *, .reduce-motion *::before, .reduce-motion *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
@media (prefers-reduced-motion: reduce) { html:not(.motion-ok) *, html:not(.motion-ok) *::before, html:not(.motion-ok) *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, #toasts { display: none; } body { background: #fff; } }

/* ---------- polish ---------- */
#view { padding-top: 18px; min-height: 58vh; }
#view > .shelf-head { padding-top: 6px; }
.bale-link ol { list-style-type: persian; }
.bale-link .btn.big { display: flex; width: 100%; }
.otp .row.gap { margin-top: 4px; }

/* long / unbreakable user text must never break the layout */
body { overflow-wrap: break-word; }
.grid > *, .cart-lines .line > *, .two-col > *, .cart-layout > *, .pdp > * { min-width: 0; }
.card-title, .card-scent, .line-name, .pdp h1, .lead, .tbl td { overflow-wrap: anywhere; }

/* ---------- one product, many colours: swatches ---------- */
.sw { --c: #ccc; width: 22px; height: 22px; min-height: 0; padding: 0; border-radius: 50%; border: 2px solid #fff; background: var(--c); box-shadow: 0 0 0 1px rgba(74, 50, 36, .28); cursor: pointer; transition: transform .2s, box-shadow .2s; position: relative; flex: none; }
.sw:hover { transform: scale(1.15); } .sw.on { box-shadow: 0 0 0 2px var(--brown), 0 3px 8px -2px rgba(74, 50, 36, .5); transform: scale(1.12); }
.sw-row { display: flex; gap: 7px; flex-wrap: wrap; justify-content: center; padding: 6px 4px 2px; }
.sw.big { width: 42px; height: 42px; border-width: 3px; } .sw.big .sw-name { position: absolute; bottom: -22px; left: 50%; transform: translateX(-50%); font-size: .72rem; white-space: nowrap; color: var(--muted); opacity: 0; pointer-events: none; transition: opacity .2s; background: var(--paper); padding: 0 6px; border-radius: 6px; }
.sw.big:hover .sw-name, .sw.big:focus-visible .sw-name { opacity: 1; }
.opts { margin: 14px 0 22px; display: grid; gap: 16px; padding: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; }
.opt-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; } .opt-cur { color: var(--pist-d); font-weight: 700; }
.swatches { display: flex; gap: 12px; flex-wrap: wrap; padding-bottom: 14px; }
.chips-line { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .82rem; color: var(--muted); } .chip-dot { display: inline-flex; align-items: center; gap: 5px; } .chip-dot i { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(74, 50, 36, .35); display: inline-block; }
.opt-line { display: block; line-height: 1.5; }
.candle.pop img { animation: recol .45s ease; } @keyframes recol { 0% { transform: scale(.965); opacity: .75; } 100% { transform: none; opacity: 1; } }
.candle.pop img { animation: recol .45s ease; }
.plain li > span:first-child { display: block; min-width: 0; }

/* ---------- selectable storefront themes ---------- */
:root {
  color-scheme: light;
}
html[data-theme="light"] { color-scheme: light; }
html[data-theme="light"] .site-footer { background: #F2E8D8; color: #4A3224; border-top: 1px solid #E1D2B9; }
html[data-theme="light"] .site-footer a { color: #5B4030; }
html[data-theme="light"] .site-footer .muted,
html[data-theme="light"] .site-footer .foot-bottom { color: #85705F; }
html[data-theme="light"] .foot-grid h4 { color: #4A3224; }
html[data-theme="light"] .foot-bottom { border-top-color: #DCCDB4; }
html[data-theme="light"] .site-footer .btn.ghost { color: #4A3224; border-color: #CDBB9B; }
html[data-theme="dark"] {
  color-scheme: dark;
  --cream: #2A1F18; --cream-2: #35271F; --paper: #3D2D22; --brown: #F3E5D3; --brown-2: #DCC2A5; --muted: #B49A80;
  --pist: #B08B5E; --pist-d: #D29A57; --pist-l: #51402F; --flame: #EBA34B; --flame-d: #D18436; --gold: #D8A15E;
  --line: #634832; --danger: #E68172; --ok: #9FBE7E; --info: #D8B17A;
  --shadow: 0 18px 42px -20px rgba(0, 0, 0, .72); --shadow-s: 0 5px 18px -10px rgba(0, 0, 0, .68);
}
html[data-theme="dark"] body {
  color: var(--brown); background-color: var(--cream);
  background-image: radial-gradient(1000px 520px at 86% -12%, rgba(133, 76, 40, .42) 0%, transparent 66%),
    radial-gradient(900px 540px at 0% 110%, rgba(105, 68, 42, .30) 0%, transparent 65%),
    linear-gradient(145deg, #2B2019 0%, #302219 54%, #291D16 100%);
}
html[data-theme="dark"] .site-header { background: rgba(43, 31, 23, .92); border-bottom-color: rgba(214, 160, 96, .2); }
html[data-theme="dark"] .site-footer { background: #21160F; color: #E8D3B9; }
html[data-theme="dark"] .site-footer a { color: #E8D3B9; }
html[data-theme="dark"] .site-footer .muted,
html[data-theme="dark"] .foot-bottom { color: #B49A80; }
html[data-theme="dark"] .search input,
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea { background: #35271F; color: var(--brown); border-color: #70533B; }
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder { color: #A88C72; opacity: 1; }
html[data-theme="dark"] input:disabled { background: #30231B; }
html[data-theme="dark"] .btn { background: #443024; color: var(--brown); border-color: #705039; }
html[data-theme="dark"] .btn:hover { background: #5A3E2B; }
html[data-theme="dark"] .btn.primary { background: #A96D36; color: #FFF5E8; border-color: #C18449; }
html[data-theme="dark"] .btn.primary:hover { background: #BD8046; }
html[data-theme="dark"] .btn.ghost { border-color: #8A6545; color: #EBD9C2; }
html[data-theme="dark"] .btn.ghost:hover { background: #493222; }
html[data-theme="dark"] .chip { background: #35251B; border-color: #624832; color: #EBD9C2; }
html[data-theme="dark"] .chip:hover { background: #493222; }
html[data-theme="dark"] .chip.on { background: #B4773F; color: #21150D; border-color: #D39A57; }
html[data-theme="dark"] .card,
html[data-theme="dark"] .box,
html[data-theme="dark"] .opts,
html[data-theme="dark"] .faq,
html[data-theme="dark"] .auth-card,
html[data-theme="dark"] .addr-card { background-color: #3A2A20; border-color: #634832; }
html[data-theme="dark"] .card { box-shadow: 0 14px 34px -22px rgba(0, 0, 0, .88); }
html[data-theme="dark"] .card.lit { border-color: #C88A48; box-shadow: 0 18px 48px -20px rgba(225, 139, 56, .35); }
html[data-theme="dark"] .fav { background: rgba(48, 33, 23, .94); border-color: #684A33; color: #E8D4BD; }
html[data-theme="dark"] .tag { background: #493526; color: #F4E5D3; border-color: #765438; }
html[data-theme="dark"] .tag.out { background: #30251D; color: #B9A18A; }
html[data-theme="dark"] .tag.low { background: #5B3D22; color: #FFD89A; border-color: #A16D37; }
html[data-theme="dark"] .note { background: #493626; }
html[data-theme="dark"] .note small { color: #E3B579; }
html[data-theme="dark"] .sw { border-color: #33241B; box-shadow: 0 0 0 1px rgba(226, 192, 153, .34); }
html[data-theme="dark"] .sw.on { box-shadow: 0 0 0 2px #E0A35D, 0 3px 10px rgba(0, 0, 0, .55); }
html[data-theme="dark"] .tabs { background: #2D2018; }
html[data-theme="dark"] .tab { color: #D8BEA1; }
html[data-theme="dark"] .tab.on { background: #5A3D28; color: #FFF0DE; }
html[data-theme="dark"] .steps li { background: #39291F; color: #C7AA8C; }
html[data-theme="dark"] .steps li.on { background: #A96D36; color: #FFF5E8; }
html[data-theme="dark"] .steps li.done { background: #4A3B2B; color: #E4BE8F; }
html[data-theme="dark"] .addr-opt { border-color: #5A412F; }
html[data-theme="dark"] .addr-opt:hover { background: #3B2A1F; }
html[data-theme="dark"] .tbl th { color: #C4A98B; border-color: #654A34; }
html[data-theme="dark"] .tbl td { border-color: #4F3929; }
html[data-theme="dark"] .tbl tr:hover td { background: #3B2A1F; }
html[data-theme="dark"] .msg { background: #463222; }
html[data-theme="dark"] .msg.me { background: #4A3B2B; }
html[data-theme="dark"] .msg.staff { background: #5B3B22; }
html[data-theme="dark"] .static .prose h2 { color: #E2B477; }
html[data-theme="dark"] .faq { background: #33241B; }
html[data-theme="dark"] .faq summary:hover { background: #3D2B20; }
html[data-theme="dark"] .ccard { color: #F0E0CC; }
html[data-theme="dark"] .ccard:hover { background: #493322; }
html[data-theme="dark"] .ccard .ic { color: #D69A55; }
html[data-theme="dark"] .stage { background: linear-gradient(155deg, #523B2B 0%, #3B2A20 55%, #2E2118 100%); }
html[data-theme="dark"] .stage::before { background: radial-gradient(70% 60% at 50% 38%, rgba(255, 202, 126, .62) 0%, rgba(196, 116, 57, .28) 42%, rgba(67, 34, 15, 0) 78%); }
html[data-theme="dark"] .empty-candle { background: linear-gradient(155deg, #523B2B, #2E2118); }
html[data-theme="dark"] .light-btn[aria-pressed=true] { background: #60401F; border-color: #B87B3C; color: #FFE3B8; }
html[data-theme="dark"] .candle.fx.lit .c-off { filter: brightness(.80) saturate(1.02) drop-shadow(0 18px 16px rgba(0, 0, 0, .55)); }
html[data-theme="dark"] .candle.fx .c-glow { width: 235%; background: radial-gradient(circle, rgba(255, 235, 179, .72) 0%, rgba(255, 205, 124, .54) 12%, rgba(255, 168, 70, .34) 28%, rgba(255, 140, 36, .18) 48%, rgba(255, 124, 24, .07) 66%, rgba(255, 120, 20, 0) 78%); }
html[data-theme="dark"] .candle.fx .c-bloom { width: 25%; }
/* The page-wide lamp follows the exact flame coordinates. */
#dimmer {
  position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: 0;
  transition: opacity 1.8s ease;
}
html[data-theme="dark"].candle-ambient #dimmer {
  opacity: 1;
  background: radial-gradient(ellipse 38vw 44vh at var(--candle-light-x, 50vw) var(--candle-light-y, 38vh),
    rgba(255, 184, 103, .30) 0%, rgba(255, 164, 82, .18) 17%, rgba(80, 43, 20, .11) 42%, rgba(10, 6, 4, .22) 100%);
}
html[data-theme="light"].candle-lit #dimmer {
  opacity: 1;
  background: radial-gradient(ellipse 25vw 31vh at var(--candle-light-x, 50vw) var(--candle-light-y, 38vh),
    rgba(255, 194, 112, .18) 0%, rgba(255, 181, 94, .10) 24%, rgba(255, 174, 82, .035) 48%, transparent 74%);
}
html[data-theme="dark"].candle-ambient .pdp-media,
html[data-theme="light"].candle-lit .pdp-media { z-index: 61; }
.pdp-media { isolation: isolate; }
.pdp-media::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none; inset: -16% -20%;
  border-radius: 50%; opacity: 0; filter: blur(30px); transition: opacity 1.6s ease, filter 1.6s ease;
}
.pdp-media > .stage, .pdp-media > .light-btn, .pdp-media > .thumbs { position: relative; z-index: 1; }
html[data-theme="light"] .pdp-media.candle-glow::before {
  opacity: 1; filter: blur(28px);
  background: radial-gradient(ellipse 34% 28% at var(--ambient-x, 50%) var(--ambient-y, 30%), rgba(255, 190, 107, .32) 0%, rgba(255, 177, 91, .18) 34%, rgba(255, 165, 78, .05) 62%, transparent 78%);
}
html[data-theme="dark"] .pdp-media.candle-glow::before {
  opacity: 1; filter: blur(42px);
  background: radial-gradient(ellipse 43% 38% at var(--ambient-x, 50%) var(--ambient-y, 30%), rgba(255, 183, 98, .43) 0%, rgba(255, 159, 74, .24) 34%, rgba(193, 107, 48, .09) 62%, transparent 80%);
}
html[data-theme="light"] .candle.fx .c-glow {
  width: 205%; background: radial-gradient(circle, rgba(255, 235, 183, .74) 0%, rgba(255, 207, 127, .48) 15%, rgba(255, 171, 77, .25) 34%, rgba(255, 143, 45, .10) 54%, rgba(255, 125, 20, 0) 74%);
}
html[data-theme="light"] .candle.fx .c-bloom { width: 23%; }
html[data-theme="light"] .stage.flat { background: linear-gradient(155deg, #F4EBDD 0%, #E9DCC8 58%, #E2D0B5 100%); }
.theme-switch { flex: none; }
html[data-theme="dark"] .theme-switch:hover { background: #493222; color: #FFD99F; }
html[data-theme="light"] .theme-switch:hover { background: var(--cream-2); color: var(--flame-d); }

/* Five-minute burn: the product photo stays locked in its original frame.
   Only the generated flame softens and fades; no scale/translate or wax overlay is applied. */
.candle.burning .c-flame { animation: flame 1.8s ease-in-out 3.4s infinite, flame-soften var(--burn-duration, 300s) linear forwards; }
.candle.extinguishing .c-flame { opacity: 0 !important; transform: translate(-50%, -80%) scale(.04) !important; transition: opacity 2.1s ease, transform 2.1s ease; }
.candle.extinguishing .c-glow, .candle.extinguishing .c-bloom { opacity: 0 !important; transition: opacity 2.1s ease; }
.candle.spent .c-off { opacity: 1 !important; }
.candle.spent .c-on, .candle.spent .c-warm, .candle.spent .c-flame, .candle.spent .c-glow, .candle.spent .c-bloom { opacity: 0 !important; }
.stage-host.spent .stage::before, .stage.spent::before { opacity: 0; }
@keyframes flame-soften { 0% { opacity: 1; filter: brightness(1); } 82% { opacity: .78; filter: brightness(.86); } 100% { opacity: .42; filter: brightness(.65); } }
@media (prefers-reduced-motion: reduce) {
  .candle.burning .c-flame { animation: none !important; }
}

