/* Storefront interaction states; reference.css carries the captured styling. */
:root { --fx-ink:#232329; --fx-muted:#5d5964; --fx-panel:#fff; --fx-soft:#f1f0f3; --fx-field:#fafafa; --fx-line:#dcd9df; --fx-edge:#9e99a3; --fx-primary:#333039; --fx-on-primary:#fff; --fx-positive:#1b704d; --fx-negative:#a13649; --fx-header-height:88px; }
html.dark { --fx-ink:#eeeaf0; --fx-muted:#afabb6; --fx-panel:#151518; --fx-soft:#202024; --fx-field:#101012; --fx-line:#313036; --fx-edge:#77717d; --fx-primary:#cfcbce; --fx-on-primary:#151417; --fx-positive:#98ddba; --fx-negative:#f0a9b4; }
html.light, html.light body, html.light #app { background:#f6f7f9; color:#232329; }
html.light #app :is(main,footer) { color:#232329; }
html.light #app .live-row { background:#fff; border-color:#e2dfe5; }
html.light #app .live-row span,html.light #app .live-row small { color:#4c4753!important; }
html.light .sheet-welcome, html.light .clone-menu-sheet { background:#fff; color:var(--fx-ink); border-color:var(--fx-line); }
html.light .clone-menu-sheet nav a { border-color:var(--fx-line); }
.fx-frame,.fx-frame #fx-site { min-height:100vh; }
#fx-site { display:flex; flex-direction:column; min-width:0; }
.fx-header-space { height:var(--fx-header-height); flex:none; }
[hidden],#clone-snow[hidden] { display:none!important; }
.fx-sr,.fx-skip:not(:focus) { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.fx-skip:focus { position:fixed; top:8px; left:8px; z-index:10100; background:var(--fx-panel); color:var(--fx-ink); padding:12px; border-radius:8px; }
#fx-content { scroll-margin-top:calc(var(--fx-header-height) + 12px); }
:where(a,button,input,select,summary):focus-visible { outline:2px solid var(--fx-edge); outline-offset:3px; }
.fx-btn { display:inline-flex; align-items:center; justify-content:center; gap:7px; min-height:44px; border:1px solid var(--fx-line); padding:8px 13px; border-radius:9px; background:var(--fx-soft); color:var(--fx-ink); font:inherit; font-weight:600; cursor:pointer; text-align:center; transition:transform .13s,background-color .15s,border-color .15s; }
.fx-primary,#app a.fx-primary { background:var(--fx-primary); color:var(--fx-on-primary); border-color:transparent; }
.fx-square { min-width:44px; min-height:44px; }
.fx-btn:not(:disabled):active,.product-option:not(:disabled):active { transform:scale(.978); }
.fx-btn:disabled,.fx-variants button:disabled { opacity:.52; cursor:not-allowed; }
.is-pending { cursor:progress!important; }
.is-pending::before { content:''; width:.85em; height:.85em; display:inline-block; flex:none; margin-inline-end:.25em; border:1.5px solid currentColor; border-inline-end-color:transparent; border-radius:50%; vertical-align:middle; animation:fx-spin .68s linear infinite; }
@keyframes fx-spin { to { transform:rotate(1turn); } }
.fx-muted { color:var(--fx-muted); }
.fx-msg { margin:6px 0 0; font-size:.875rem; color:var(--fx-muted); }
.fx-msg[data-kind=error] { color:var(--fx-negative); }
.fx-msg[data-kind=success] { color:var(--fx-positive); }
.toast[data-kind=success] { border-color:#39795c; background:#182b22; }
.toast[data-kind=error] { border-color:#854d4d; background:#2c191d; }
.product-card-enter { transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease; }
.product-card-enter:active { transform:scale(.985); }
@media (hover:hover) { .product-card-enter:hover { transform:translateY(-2px); box-shadow:0 8px 20px #0003; } .fx-btn:not(:disabled):hover { border-color:var(--fx-edge); } }
.fx-enter { animation:fx-enter .22s cubic-bezier(.22,.7,.25,1) both; }
.fx-product-panel.fx-enter { animation-delay:36ms; }
@keyframes fx-enter { from { opacity:0; transform:translateY(7px); } to { opacity:1; transform:none; } }
.fx-product,.fx-notice { max-width:1180px; width:min(100%, 1180px); margin-inline:auto; padding:22px 16px 100px; box-sizing:border-box; }
.fx-notice { max-width:760px; }
.fx-notice h1,.fx-product h1 { margin-bottom:5px; font-size:clamp(1.35rem,4.6vw,1.85rem); font-weight:700; line-height:1.3; overflow-wrap:anywhere; }
.fx-notice p { margin:0 0 16px; color:var(--fx-muted); }
.fx-notice-actions { display:flex; flex-wrap:wrap; gap:9px; }
.fx-crumb { display:flex; flex-wrap:wrap; gap:4px 8px; margin-bottom:13px; color:var(--fx-muted); font-size:.8rem; }
.fx-crumb a:hover { text-decoration:underline; }
.fx-product-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.05fr); align-items:start; gap:19px; }
.fx-product-image { margin:0; aspect-ratio:1; border:1px solid var(--fx-line); border-radius:14px; overflow:hidden; background:var(--fx-panel); }
.fx-product-image img { display:block; width:100%; height:100%; object-fit:cover; }
.fx-product-panel { min-width:0; padding:20px; border:1px solid var(--fx-line); border-radius:14px; background:var(--fx-panel); }
.fx-product-kicker { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:8px; font-size:.78rem; color:var(--fx-muted); }
.fx-state { padding:3px 9px; border-radius:99px; border:1px solid var(--fx-line); background:var(--fx-soft); }
.fx-state.available { color:var(--fx-positive); }
.fx-product-description { margin:14px 0; padding:10px 0; border-block:1px solid var(--fx-line); }
.fx-product-description summary { cursor:pointer; min-height:28px; }
.fx-product-description p { margin-top:8px; white-space:pre-line; overflow-wrap:anywhere; color:var(--fx-muted); font-size:.875rem; }
.fx-product-panel h2 { display:flex; flex-wrap:wrap; justify-content:space-between; gap:4px; margin:0 0 8px; font-weight:700; }
.fx-product-panel h2 small { color:var(--fx-muted); font-size:.8rem; font-weight:400; }
.fx-variants .product-option { min-height:54px; padding:9px; border:1px solid var(--fx-line); background:var(--fx-field); color:var(--fx-ink); border-radius:9px; transition:transform .13s,border-color .15s,background-color .15s; overflow-wrap:anywhere; }
.fx-variants .product-option.selected { border-color:var(--fx-edge); background:var(--fx-soft); box-shadow:inset 0 0 0 1px var(--fx-edge); }
.fx-variants .product-option span { color:var(--fx-muted); font-size:.75rem; }
.fx-fields { display:grid; grid-template-columns:minmax(0,125px) minmax(0,1fr); gap:10px; margin-top:17px; }
.fx-fields label { display:block; margin-bottom:4px; font-size:.85rem; }
.fx-stepper,.fx-promo { display:flex; gap:4px; align-items:center; }
.fx-fields input { min-width:0; width:100%; min-height:44px; padding:6px 8px; border-radius:8px; border:1px solid var(--fx-line); background:var(--fx-field); color:var(--fx-ink); font-size:1rem; }
.fx-stepper input { padding-inline:2px; text-align:center; appearance:textfield; }
.fx-stepper input::-webkit-inner-spin-button,.fx-stepper input::-webkit-outer-spin-button { appearance:none; }
.fx-stepper button { min-width:33px; height:44px; padding:0; border-radius:8px; border:1px solid var(--fx-line); background:var(--fx-soft); font-size:1.1rem; }
.fx-promo button { min-width:76px; padding-inline:8px; white-space:nowrap; font-size:.82rem; }
.fx-total { display:flex; gap:8px; align-items:center; justify-content:space-between; flex-wrap:wrap; padding:11px 13px; margin:11px 0; border-radius:10px; background:var(--fx-soft); }
.fx-total small { display:block; color:var(--fx-muted); font-size:.78rem; }
.fx-total strong { font-weight:700; font-size:1.35rem; font-variant-numeric:tabular-nums; }
.fx-buy { width:100%; min-height:48px; margin-top:6px; }
[data-checkout-topup] a,[data-product-recovery] a { display:inline-flex; align-items:center; min-height:40px; text-decoration:underline; }
.fx-test-note { display:block; margin-top:8px; font-size:.76rem; }

.fx-dialog { position:fixed; width:min(450px,calc(100vw - 28px)); max-height:calc(100dvh - 32px); margin:auto; padding:0; border:1px solid var(--fx-line); border-radius:18px; background:var(--fx-panel); color:var(--fx-ink); box-shadow:0 22px 75px #0008; overflow:auto; }
.fx-dialog[open] { animation:fx-dialog-in .23s cubic-bezier(.23,.78,.35,1) both; }
.fx-dialog::backdrop { background:#0a0a0dcc; animation:fx-fade-in .18s ease-out both; }
.fx-dialog-panel { padding:20px; }
.fx-dialog-head,.fx-dialog-actions { display:flex; gap:9px; align-items:center; justify-content:space-between; }
.fx-dialog-head { margin-bottom:12px; }
.fx-dialog-head h2 { font-size:1.22rem; font-weight:700; }
.fx-dialog-panel p { padding:3px 0; }
.fx-dialog-actions { margin-top:16px; justify-content:flex-end; flex-wrap:wrap; }
@keyframes fx-dialog-in { from { opacity:0; transform:translateY(9px) scale(.985); } to { opacity:1; transform:none; } }
@keyframes fx-fade-in { from { opacity:0; } to { opacity:1; } }
.fx-boot { display:grid; place-items:center; gap:8px; text-align:center; }
.fx-boot small { font-size:.86rem; opacity:.75; }
.fx-boot img { border-radius:12px; }
.clone-menu-sheet { visibility:hidden; transition:transform .2s ease-in,visibility 0s linear .2s; }
.clone-menu-sheet.open { visibility:visible; transition:transform .25s cubic-bezier(.23,.78,.35,1); }
.clone-menu-backdrop { transition:opacity .19s ease-out; }
.clone-menu-sheet :is(.sheet-note, .sheet-welcome p,.sheet-welcome small) { color:var(--fx-muted); }
.sheet-auth a { min-height:44px; }
.fx-sheet-nav { margin-top:8px; }
.fx-sheet-nav a { min-height:44px; }
.fx-sheet-settings { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-top:13px; }
.fx-head-link { border:1px solid var(--fx-line); padding:6px 10px; border-radius:8px; color:var(--fx-ink); font-size:.8rem; white-space:nowrap; }
[data-bottom-nav] a[aria-current] > div,[data-site-header] nav a[aria-current] { background:var(--fx-soft); color:var(--fx-ink); border-radius:8px; }
.fx-announcement { display:grid!important; grid-template-columns:minmax(0,1fr) 36px; align-items:center; gap:2px; }
.fx-ticker-window { min-width:0; overflow:hidden; }
.fx-ticker { width:max-content; display:flex; align-items:center; font-size:.76rem; color:var(--fx-muted); animation:fx-ticker 30s linear infinite; }
.fx-ticker > div { display:flex; gap:48px; padding-inline-start:18px; padding-inline-end:30px; }
.fx-ticker-toggle { height:30px; width:36px; border-inline-start:1px solid var(--fx-line); color:var(--fx-muted); font-size:.75rem; }
.fx-announcement:is(.is-paused,:hover) .fx-ticker { animation-play-state:paused; }
.fx-announcement.is-paused .fx-ticker { transform:none!important; animation:none!important; }
@keyframes fx-ticker { to { transform:translateX(-50%); } }
[data-action=faq][aria-expanded=true] .lucide-chevron-down { transform:rotate(180deg); }
[data-action=faq] .lucide-chevron-down { transition:transform .16s ease-out; }
@media (max-width:767px) { .fx-product-grid { grid-template-columns:minmax(0,1fr); gap:12px; } .fx-product-panel { padding:15px; } .fx-product,.fx-notice { padding-top:14px; } .fx-dialog-panel { padding:16px; } .fx-dialog-actions > button { flex:1; } }
@media (max-width:389px) { .fx-fields { grid-template-columns:minmax(0,1fr); } .fx-stepper { max-width:148px; } }
@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after { scroll-behavior:auto!important; animation-duration:.01ms!important; animation-iteration-count:1!important; transition-duration:.01ms!important; }
  .fx-enter,.fx-dialog[open],.fx-ticker,.is-pending::before,.clone-menu-sheet { animation:none!important; }
  .fx-ticker { transform:none!important; }
  .product-card-enter:hover,.product-card-enter:active,.fx-btn:active,.product-option:active { transform:none!important; }
}

[data-bottom-nav] a:not([aria-current]) > .fx-nav-idle { background:transparent!important; color:var(--fx-muted)!important; }
