/* MIX MOBILE — brand colors only: red #E32636, black #111111, white #FFFFFF */
:root {
  --red: #E32636; --black: #111111; --white: #FFFFFF;
  --bg: #FFFFFF; --fg: #111111; --muted: #74747c; --card: #F4F4F6; --line: #E8E8EC;
  --r: 18px; --r-sm: 12px; --tab-h: 62px; --top-h: 56px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font: -apple-system, "SF Pro Display", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
[data-theme="dark"] { --bg: #0C0C0D; --fg: #FFFFFF; --muted: #9B9BA3; --card: #17171A; --line: #26262B; }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font); -webkit-font-smoothing: antialiased; }
body { overscroll-behavior-y: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- splash ---------- */
#splash { position: fixed; inset: 0; z-index: 100; background: var(--black); color: var(--white); display: flex; flex-direction: column; align-items: center; justify-content: center; transition: opacity .5s var(--ease), visibility .5s; }
#splash.done { opacity: 0; visibility: hidden; }
.splash-logo { display: flex; align-items: flex-end; font-size: 54px; font-weight: 800; letter-spacing: -2px; animation: logoIn .8s var(--ease) both; }
.splash-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--red); margin: 0 0 11px 4px; animation: pop .6s .5s var(--ease) both; }
.splash-sub { letter-spacing: 11px; font-size: 13px; font-weight: 600; margin-top: 6px; opacity: 0; animation: fadeUp .6s .4s var(--ease) forwards; }
.splash-bar { width: 120px; height: 3px; background: #2a2a2a; border-radius: 3px; margin-top: 34px; overflow: hidden; }
.splash-bar b { display: block; height: 100%; width: 40%; background: var(--red); border-radius: 3px; animation: slideBar 1.1s infinite var(--ease); }

/* ---------- top bar ---------- */
#topbar { position: sticky; top: 0; z-index: 20; height: var(--top-h); padding: 0 16px; display: flex; align-items: center; justify-content: space-between; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.logo { display: flex; align-items: flex-end; font-weight: 800; font-size: 22px; letter-spacing: -1px; }
.logo i { width: 6px; height: 6px; border-radius: 50%; background: var(--red); margin: 0 0 6px 2px; }
.logo em { font-style: normal; font-size: 9px; letter-spacing: 3px; font-weight: 700; color: var(--muted); margin: 0 0 4px 6px; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.pill { height: 34px; padding: 0 14px; border-radius: 99px; background: var(--card); font-weight: 700; font-size: 13px; letter-spacing: .5px; transition: transform .15s var(--ease), background .2s; }
.pill:active, .icon-btn:active { transform: scale(.92); }
.icon-btn { width: 34px; height: 34px; border-radius: 50%; background: var(--card); display: grid; place-items: center; transition: transform .15s var(--ease); }

/* ---------- layout ---------- */
#view { min-height: calc(100vh - var(--top-h)); padding: 14px 16px calc(var(--tab-h) + var(--safe-b) + 28px); }
.view-enter { animation: viewIn .38s var(--ease) both; }
.h2 { font-size: 20px; font-weight: 800; letter-spacing: -.4px; margin: 0; }
.section { margin-top: 26px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.see-all { color: var(--red); font-weight: 700; font-size: 13px; }
.muted { color: var(--muted); }

/* ---------- tab bar ---------- */
#tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; height: calc(var(--tab-h) + var(--safe-b)); padding-bottom: var(--safe-b); display: grid; grid-template-columns: repeat(5, 1fr); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
#tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 10.5px; font-weight: 600; color: var(--muted); transition: color .2s, transform .15s var(--ease); }
#tabbar a:active { transform: scale(.92); }
#tabbar a.active { color: var(--red); }
#tabbar a.active .ic { animation: tabPop .35s var(--ease); }
#tabbar a.active::before { content: ""; position: absolute; top: 0; width: 26px; height: 3px; border-radius: 0 0 4px 4px; background: var(--red); animation: fadeIn .3s; }
.tab-badge { position: absolute; top: 8px; left: calc(50% + 6px); min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--red); color: #fff; font-size: 10px; display: grid; place-items: center; }

/* ---------- search ---------- */
.search { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; background: var(--card); border-radius: 14px; border: 1.5px solid transparent; transition: border-color .2s, background .2s; }
.search:focus-within { border-color: var(--red); }
.search input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: 0; font: inherit; font-size: 15px; color: var(--fg); }
.search .ic { width: 19px; height: 19px; color: var(--muted); flex: none; }

/* ---------- banners ---------- */
.banners { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 14px -16px 0; padding: 0 16px; scrollbar-width: none; }
.banners::-webkit-scrollbar, .hscroll::-webkit-scrollbar, .chips::-webkit-scrollbar { display: none; }
.banner { position: relative; flex: 0 0 100%; min-height: 150px; scroll-snap-align: center; border-radius: 22px; overflow: hidden; background: var(--black); color: #fff; padding: 20px; display: flex; flex-direction: column; justify-content: flex-end; }
.banner::before { content: ""; position: absolute; right: -40px; top: -40px; width: 150px; height: 150px; border-radius: 50%; background: var(--red); opacity: .95; }
.banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.banner b, .banner p { position: relative; z-index: 1; }
.banner b { font-size: 22px; line-height: 1.15; letter-spacing: -.5px; max-width: 75%; }
.banner p { margin: 6px 0 0; font-size: 13px; opacity: .85; max-width: 80%; }
.dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--line); transition: all .3s var(--ease); }
.dots i.on { width: 20px; background: var(--red); }

/* ---------- chips ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px; scrollbar-width: none; }
.chip { flex: none; height: 36px; padding: 0 15px; border-radius: 99px; background: var(--card); font-size: 13.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; transition: all .2s var(--ease); }
.chip.on { background: var(--red); color: #fff; }
.chip:active { transform: scale(.94); }
.chip small { opacity: .6; font-weight: 600; }
.chip.x::after { content: "✕"; font-size: 11px; opacity: .85; }

/* ---------- product cards ---------- */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.hscroll { display: flex; gap: 12px; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scroll-snap-type: x proximity; scrollbar-width: none; }
.hscroll .card { flex: 0 0 168px; scroll-snap-align: start; }
.card { position: relative; display: block; background: var(--card); border-radius: var(--r); overflow: hidden; animation: fadeUp .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); transition: transform .18s var(--ease); }
.card:active { transform: scale(.97); }
.card .ph { position: relative; aspect-ratio: 1 / 1; background: var(--white); display: grid; place-items: center; overflow: hidden; }
[data-theme="dark"] .card .ph { background: #f1f1f3; }
.card .ph img { width: 100%; height: 100%; object-fit: contain; padding: 10px; transition: transform .4s var(--ease), opacity .3s; opacity: 0; }
.card .ph img.loaded { opacity: 1; }
.card:hover .ph img { transform: scale(1.04); }
.no-img { width: 46%; opacity: .25; }
.badges { position: absolute; left: 8px; top: 8px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; z-index: 2; }
.badge { height: 20px; padding: 0 8px; border-radius: 6px; font-size: 10px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; display: inline-flex; align-items: center; background: var(--black); color: #fff; }
.badge.red { background: var(--red); }
.badge.out { background: #fff; color: var(--black); border: 1px solid var(--black); }
.heart { position: absolute; right: 8px; top: 8px; z-index: 3; width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, .92); display: grid; place-items: center; color: var(--black); transition: transform .15s var(--ease); }
.heart .ic { width: 17px; height: 17px; }
.heart.on { color: var(--red); }
.heart.on .ic { fill: var(--red); }
.heart.burst { animation: heartPop .45s var(--ease); }
.card .info { padding: 11px 12px 13px; }
.card .brand { font-size: 10.5px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.card .name { font-size: 14px; font-weight: 700; margin: 3px 0 7px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 35px; }
.price b { font-size: 16px; font-weight: 800; letter-spacing: -.3px; }
.price s { margin-left: 6px; color: var(--muted); font-size: 12px; }
.price2 { font-size: 12px; color: var(--muted); margin-top: 1px; }
.cmp-btn { margin-top: 9px; width: 100%; height: 30px; border-radius: 9px; background: var(--bg); font-size: 11.5px; font-weight: 700; color: var(--muted); transition: all .2s; }
.cmp-btn.on { background: var(--black); color: #fff; }
[data-theme="dark"] .cmp-btn.on { background: var(--red); }

/* ---------- skeleton ---------- */
.skel { background: linear-gradient(100deg, var(--card) 30%, color-mix(in srgb, var(--card) 55%, var(--bg)) 50%, var(--card) 70%); background-size: 200% 100%; animation: shimmer 1.3s infinite linear; border-radius: var(--r); }
.skel.card-s { height: 232px; }

/* ---------- catalog ---------- */
.toolbar { display: flex; gap: 10px; margin: 12px 0; }
.btn-filter { position: relative; flex: none; height: 46px; padding: 0 16px; border-radius: 14px; background: var(--black); color: #fff; font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; }
[data-theme="dark"] .btn-filter { background: var(--red); }
.btn-filter b { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); font-size: 11px; display: grid; place-items: center; }
[data-theme="dark"] .btn-filter b { background: #fff; color: var(--red); }
.select { flex: 1; height: 46px; padding: 0 12px; border-radius: 14px; background: var(--card); border: 0; font: inherit; font-size: 14px; font-weight: 600; color: var(--fg); outline: 0; appearance: none; -webkit-appearance: none; }
.result-count { font-size: 13px; color: var(--muted); margin: 4px 0 12px; }
.sentinel { height: 60px; display: grid; place-items: center; }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--red); animation: spin .7s linear infinite; }

/* ---------- empty / error ---------- */
.empty { text-align: center; padding: 56px 24px; animation: fadeUp .5s var(--ease) both; }
.empty .em-ic { width: 76px; height: 76px; margin: 0 auto 16px; border-radius: 50%; background: var(--card); display: grid; place-items: center; color: var(--red); }
.empty .em-ic .ic { width: 34px; height: 34px; }
.empty h3 { margin: 0 0 6px; font-size: 18px; }
.empty p { margin: 0 0 18px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.btn { height: 48px; padding: 0 22px; border-radius: 14px; background: var(--red); color: #fff; font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: transform .15s var(--ease), opacity .2s; }
.btn:active { transform: scale(.96); }
.btn.dark { background: var(--black); }
[data-theme="dark"] .btn.dark { background: var(--card); }
.btn.ghost { background: var(--card); color: var(--fg); }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn.block { width: 100%; }

/* ---------- product page ---------- */
.gallery { position: relative; margin: -14px -16px 0; background: var(--white); }
[data-theme="dark"] .gallery { background: #f1f1f3; }
.g-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.g-track::-webkit-scrollbar { display: none; }
.g-track .slide { flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 1 / 1; display: grid; place-items: center; }
.g-track img { width: 100%; height: 100%; object-fit: contain; padding: 18px; }
.gallery .dots { position: absolute; left: 0; right: 0; bottom: 12px; margin: 0; }
.gallery .dots i { background: rgba(0, 0, 0, .18); }
.gallery .dots i.on { background: var(--red); }
.gallery .zoom { position: absolute; right: 14px; bottom: 12px; width: 36px; height: 36px; border-radius: 50%; background: rgba(17, 17, 17, .8); color: #fff; display: grid; place-items: center; }
.gallery .badges { left: 14px; top: 14px; }
.p-head { padding-top: 18px; animation: fadeUp .5s .08s var(--ease) both; }
.p-brand { font-size: 12px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--red); }
.p-name { font-size: 25px; font-weight: 800; letter-spacing: -.7px; margin: 4px 0 12px; line-height: 1.15; }
.p-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.p-price b { font-size: 29px; font-weight: 800; letter-spacing: -1px; }
.p-price s { color: var(--muted); font-size: 15px; }
.p-price .off { background: var(--red); color: #fff; font-size: 12px; font-weight: 800; padding: 3px 8px; border-radius: 7px; }
.p-price2 { color: var(--muted); font-size: 15px; margin-top: 3px; }
.status-line { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-weight: 700; font-size: 14px; }
.status-line i { width: 9px; height: 9px; border-radius: 50%; background: var(--red); }
.status-line.available i { background: #1fa855; animation: pulse 1.8s infinite; }
.status-line.sold i { background: var(--black); }
[data-theme="dark"] .status-line.sold i { background: #fff; }
.panel { margin-top: 22px; background: var(--card); border-radius: var(--r); padding: 6px 16px; animation: fadeUp .5s .16s var(--ease) both; }
.panel h4 { margin: 14px 0 4px; font-size: 15px; }
.spec { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.spec:last-child { border-bottom: 0; }
.spec span { color: var(--muted); }
.spec b { text-align: right; font-weight: 700; }
.desc { padding: 12px 0 14px; font-size: 14.5px; line-height: 1.55; white-space: pre-wrap; }
.color-dots { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 0 14px; }
.color-dots span { padding: 7px 13px; border-radius: 99px; background: var(--bg); font-size: 13px; font-weight: 600; }
.action-bar { position: fixed; left: 0; right: 0; bottom: calc(var(--tab-h) + var(--safe-b)); z-index: 25; display: flex; gap: 10px; padding: 10px 16px; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); animation: slideUp .4s .2s var(--ease) both; }
.action-bar .btn { flex: 1; }
.sq { flex: none !important; width: 48px; padding: 0 !important; background: var(--card) !important; color: var(--fg) !important; }
.sq.on { color: var(--red) !important; }
.sq.on .ic { fill: currentColor; }
.sq .ic { width: 21px; height: 21px; }

/* ---------- compare ---------- */
#cmp-bar { position: fixed; left: 16px; right: 16px; bottom: calc(var(--tab-h) + var(--safe-b) + 12px); z-index: 24; height: 52px; padding: 0 8px 0 18px; border-radius: 16px; background: var(--black); color: #fff; display: flex; align-items: center; justify-content: space-between; font-weight: 700; font-size: 14px; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); animation: slideUp .35s var(--ease) both; }
[data-theme="dark"] #cmp-bar { background: var(--red); }
#cmp-bar .btn { height: 38px; background: var(--red); font-size: 13.5px; padding: 0 16px; border-radius: 11px; }
[data-theme="dark"] #cmp-bar .btn { background: #fff; color: var(--red); }
.cmp-wrap { overflow-x: auto; margin: 0 -16px; padding: 0 16px; }
.cmp-table { border-collapse: separate; border-spacing: 0; min-width: 100%; }
.cmp-table th, .cmp-table td { padding: 12px 10px; font-size: 13.5px; text-align: center; border-bottom: 1px solid var(--line); min-width: 112px; vertical-align: middle; }
.cmp-table td.k { position: sticky; left: 0; background: var(--bg); min-width: 92px; max-width: 92px; text-align: left; color: var(--muted); font-size: 12px; font-weight: 600; z-index: 1; }
.cmp-table th { border-bottom: 0; vertical-align: top; }
.cmp-head { position: relative; display: block; }
.cmp-head .ph { aspect-ratio: 1; background: var(--white); border-radius: 14px; display: grid; place-items: center; overflow: hidden; }
.cmp-head img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.cmp-head b { display: block; font-size: 12.5px; margin-top: 6px; line-height: 1.25; }
.cmp-head .rm { position: absolute; right: 4px; top: 4px; width: 24px; height: 24px; border-radius: 50%; background: var(--black); color: #fff; font-size: 11px; }
.best { color: var(--red); font-weight: 800; }
.best::after { content: " ●"; font-size: 8px; vertical-align: middle; }

/* ---------- info ---------- */
.card-box { background: var(--card); border-radius: var(--r); padding: 18px; margin-top: 14px; animation: fadeUp .5s var(--ease) both; }
.card-box h3 { margin: 0 0 6px; font-size: 19px; letter-spacing: -.4px; }
.row { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.row:last-child { border-bottom: 0; }
.row .k { flex: none; width: 24px; color: var(--red); }
.links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.links .btn { height: 42px; font-size: 14px; flex: 1 1 40%; }
.seg { display: flex; background: var(--bg); border-radius: 12px; padding: 4px; gap: 4px; }
.seg button { flex: 1; height: 38px; border-radius: 9px; font-weight: 700; font-size: 13.5px; color: var(--muted); transition: all .25s var(--ease); }
.seg button.on { background: var(--red); color: #fff; }
.setting { margin-top: 14px; }
.setting label { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 7px; letter-spacing: .4px; text-transform: uppercase; }
.rate-big { font-size: 26px; font-weight: 800; letter-spacing: -.8px; }

/* ---------- sheet / overlays ---------- */
.backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, .5); animation: fadeIn .25s; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; max-height: 88vh; display: flex; flex-direction: column; background: var(--bg); border-radius: 26px 26px 0 0; animation: sheetIn .38s var(--ease) both; }
.sheet.closing { animation: sheetOut .25s var(--ease) both; }
.sheet .grab { width: 40px; height: 4px; border-radius: 2px; background: var(--line); margin: 10px auto 0; }
.sheet header { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px 6px; }
.sheet header h3 { margin: 0; font-size: 19px; }
.sheet .body { overflow-y: auto; padding: 4px 20px 12px; }
.sheet footer { display: flex; gap: 10px; padding: 12px 20px calc(14px + var(--safe-b)); border-top: 1px solid var(--line); }
.sheet footer .btn { flex: 1; }
.f-group { margin-top: 16px; }
.f-group > label { display: block; font-size: 12px; font-weight: 800; color: var(--muted); margin-bottom: 8px; letter-spacing: .6px; text-transform: uppercase; }
.f-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.f-range { display: flex; gap: 10px; }
.f-range input { flex: 1; min-width: 0; height: 46px; border-radius: 12px; border: 1.5px solid transparent; background: var(--card); padding: 0 14px; font: inherit; font-size: 15px; color: var(--fg); outline: 0; transition: border-color .2s; }
.f-range input:focus { border-color: var(--red); }

/* lightbox */
#lightbox { position: fixed; inset: 0; z-index: 90; background: #000; animation: fadeIn .25s; touch-action: none; }
#lightbox .stage { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; }
#lightbox img { max-width: 100%; max-height: 100%; transition: transform .2s var(--ease); user-select: none; -webkit-user-drag: none; will-change: transform; }
#lightbox img.drag { transition: none; }
#lightbox .lb-close { position: absolute; right: 14px; top: calc(14px + env(safe-area-inset-top, 0px)); z-index: 3; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; font-size: 16px; }
#lightbox .lb-count { position: absolute; left: 0; right: 0; bottom: calc(22px + var(--safe-b)); text-align: center; color: #fff; font-size: 13px; font-weight: 700; opacity: .85; }

/* toast */
#toast { position: fixed; left: 50%; bottom: calc(var(--tab-h) + var(--safe-b) + 78px); z-index: 120; transform: translate(-50%, 24px); opacity: 0; pointer-events: none; max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 14px; background: var(--black); color: #fff; font-size: 14px; font-weight: 600; transition: all .35s var(--ease); text-align: center; }
#toast.show { transform: translate(-50%, 0); opacity: 1; }
#toast.error { background: var(--red); }

/* language chooser */
.lang-screen { position: fixed; inset: 0; z-index: 80; background: var(--black); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 32px; animation: fadeIn .4s; }
.lang-screen .logo { font-size: 38px; margin-bottom: 18px; }
.lang-screen .logo i { width: 9px; height: 9px; margin-bottom: 9px; }
.lang-screen .logo em { color: #aaa; font-size: 11px; }
.lang-screen .btn { width: 100%; max-width: 320px; height: 58px; font-size: 17px; background: #fff; color: var(--black); animation: fadeUp .5s var(--ease) both; }
.lang-screen .btn:nth-of-type(2) { animation-delay: .1s; background: var(--red); color: #fff; }
.fatal { position: fixed; inset: 0; z-index: 85; background: var(--black); color: #fff; display: grid; place-items: center; text-align: center; padding: 32px; }
.fatal p { color: #bbb; line-height: 1.5; margin: 8px 0 22px; }

/* ---------- keyframes ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes sheetIn { from { transform: translateY(100%); } to { transform: none; } }
@keyframes sheetOut { from { transform: none; } to { transform: translateY(100%); } }
@keyframes logoIn { from { opacity: 0; transform: scale(.82); letter-spacing: 8px; } to { opacity: 1; transform: none; } }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes slideBar { 0% { transform: translateX(-120%); } 100% { transform: translateX(300%); } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes heartPop { 0% { transform: scale(1); } 40% { transform: scale(1.4); } 100% { transform: scale(1); } }
@keyframes tabPop { 0% { transform: scale(.7); } 60% { transform: scale(1.18); } 100% { transform: scale(1); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(31, 168, 85, .5); } 70% { box-shadow: 0 0 0 8px rgba(31, 168, 85, 0); } 100% { box-shadow: 0 0 0 0 rgba(31, 168, 85, 0); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; } }

/* ---------- sold / out of stock ---------- */
.sold-ribbon { position: absolute; left: 0; right: 0; top: 50%; z-index: 2; transform: translateY(-50%) rotate(-6deg); padding: 7px 0; text-align: center; background: var(--red); color: #fff; font-weight: 800; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; box-shadow: 0 4px 14px rgba(227, 38, 54, .35); animation: ribbonIn .5s var(--ease) both; pointer-events: none; }
.sold-ribbon.out_of_stock { background: var(--black); box-shadow: 0 4px 14px rgba(0, 0, 0, .3); }
.sold-ribbon.big { font-size: 20px; padding: 12px 0; letter-spacing: 4px; }
.card.is-sold .ph img.loaded, .card.is-out_of_stock .ph img.loaded { filter: grayscale(1); opacity: .45; }
.card.is-sold .info, .card.is-out_of_stock .info { opacity: .7; }
.gallery .sold-ribbon { z-index: 3; }
.sold-note { margin-top: 18px; padding: 16px; border-radius: var(--r); border: 1.5px solid var(--red); background: color-mix(in srgb, var(--red) 8%, var(--bg)); animation: fadeUp .5s .12s var(--ease) both; }
.sold-note.out_of_stock { border-color: var(--line); background: var(--card); }
.sold-note b { font-size: 16px; }
.sold-note p { margin: 6px 0 14px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.sold-note .btn { height: 44px; font-size: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 12px; }
.tag { padding: 5px 11px; border-radius: 99px; background: var(--card); color: var(--red); font-size: 12.5px; font-weight: 700; }
@keyframes ribbonIn { from { opacity: 0; transform: translateY(-50%) rotate(-6deg) scale(1.4); } to { opacity: 1; transform: translateY(-50%) rotate(-6deg) scale(1); } }
