/* ==========================================================================
   LunaStore — fashion-app style storefront (clean white, black actions,
   orange-red prices, purple promo frames, yellow call-to-actions)
   ========================================================================== */

:root {
  --ink: #111111;
  --ink-2: #555555;
  --muted: #999999;
  --line: #ececec;
  --line-2: #dcdcdc;
  --bg: #f4f4f4;
  --card: #ffffff;
  --card-2: #f6f6f6;
  --brand: #111111;
  --brand-ink: #000000;
  --brand-soft: #f2f2f2;
  --price: #ff4b19;
  --price-bg: #fff0e9;
  --yellow: #ffd21f;
  --yellow-soft: #fff7d1;
  --violet: #8f47ff;
  --grad: linear-gradient(135deg, #8f47ff 0%, #c64bf2 55%, #ef5ccf 100%);
  --grad-soft: linear-gradient(135deg, #efe6ff 0%, #f7defc 100%);
  --blue: #2f6fd6;
  --ok: #12a150;
  --ok-bg: #eafaf1;
  --warn: #b45309;
  --warn-bg: #fff6e5;
  --bad: #e5322d;
  --bad-bg: #fdecec;
  --info: #1d4ed8;
  --info-bg: #eaf1ff;
  --violet-ink: #6d28d9;
  --violet-bg: #f1ebff;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .05);
  --shadow: 0 2px 12px rgba(0, 0, 0, .08);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, .2);
  --r: 10px;
  --r-sm: 8px;
  --r-lg: 14px;
  --display: "Montserrat", "Poppins", system-ui, sans-serif;
  --header-h: 60px;
  color-scheme: light;
}

[data-theme="dark"] {
  --ink: #f2f2f2;
  --ink-2: #bdbdbd;
  --muted: #8a8a8a;
  --line: #272727;
  --line-2: #363636;
  --bg: #0c0c0c;
  --card: #171717;
  --card-2: #1f1f1f;
  --brand: #f2f2f2;
  --brand-ink: #ffffff;
  --brand-soft: #262626;
  --price: #ff6a3d;
  --price-bg: #33190f;
  --yellow-soft: #2b2510;
  --grad-soft: linear-gradient(135deg, #261a3d 0%, #321c36 100%);
  --ok: #4ade80;
  --ok-bg: #12261a;
  --warn: #fbbf24;
  --warn-bg: #2a2110;
  --bad: #f87171;
  --bad-bg: #2b1414;
  --info: #93c5fd;
  --info-bg: #132036;
  --violet-ink: #c4b5fd;
  --violet-bg: #211a36;
  --shadow: 0 2px 12px rgba(0, 0, 0, .4);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; font-size: 14px; line-height: 1.5; color: var(--ink); background: var(--card); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.25; }
h1 { font-size: 1.6rem; font-weight: 700; }
h2 { font-size: 1.25rem; font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
::selection { background: var(--yellow); color: #111; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }

.i { width: 22px; height: 22px; flex: none; stroke-width: 1.6; }
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 16px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 999; background: var(--card); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.text-ok { color: var(--ok); }
.text-bad { color: var(--bad); }
.text-brand { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.nowrap { white-space: nowrap; }
.emoji { font-size: 1.2em; line-height: 1; }
.spark { color: #f5b301; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row-between { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt { margin-top: 20px; }
.mb { margin-bottom: 20px; }
.hscroll { overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.hscroll::-webkit-scrollbar { display: none; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 6px; border: 1px solid transparent; font-weight: 600; font-size: .92rem; white-space: nowrap; background: var(--card); color: var(--ink); transition: background .15s, color .15s, border-color .15s, opacity .15s; }
.btn:hover { opacity: .88; }
.btn .i { width: 18px; height: 18px; }
.btn-primary, .btn-dark { background: var(--ink); color: var(--card); }
.btn-outline { border-color: var(--ink); background: transparent; }
.btn-soft { background: var(--card-2); color: var(--ink); }
.btn-ghost { background: transparent; border-color: var(--line-2); }
.btn-danger { background: var(--bad-bg); color: var(--bad); }
.btn-yellow, .btn-yellow:hover { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 22px; border-radius: 4px; background: var(--yellow); color: #111; font-family: var(--display); font-weight: 800; letter-spacing: .06em; font-size: .85rem; box-shadow: inset 0 -3px 0 rgba(0,0,0,.12); }
.btn-yellow.sm { height: 32px; padding: 0 14px; font-size: .74rem; }
.btn-sm { height: 36px; padding: 0 14px; font-size: .85rem; }
.btn-xs { height: 30px; padding: 0 12px; font-size: .78rem; gap: 5px; }
.btn-xs .i { width: 15px; height: 15px; }
.btn-lg { height: 52px; padding: 0 28px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.disabled { opacity: .45; pointer-events: none; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: transparent; border: 0; color: var(--ink); }
.icon-btn:hover { background: var(--card-2); }
.link-btn { background: none; border: 0; padding: 0; color: var(--ink); font-weight: 600; text-decoration: underline; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; min-width: 0; }
.field > label, .label { font-weight: 600; font-size: .85rem; color: var(--ink); }
.field small, .hint { color: var(--muted); font-size: .78rem; }
.input, .field input:not([type=checkbox]):not([type=radio]):not([type=file]), .field select, .field textarea, .select {
  width: 100%; min-height: 46px; padding: 11px 14px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink); outline: none; transition: border-color .15s;
}
.field textarea { min-height: 110px; resize: vertical; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus, .select:focus { border-color: var(--ink); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.form-grid .span-2 { grid-column: span 2; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--ink); margin-top: 2px; flex: none; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-bottom: 16px; }
.choice { position: relative; display: flex; gap: 12px; padding: 14px 16px; border-radius: 8px; border: 1.5px solid var(--line-2); cursor: pointer; background: var(--card); }
.choice input { position: absolute; opacity: 0; }
.choice:has(input:checked) { border-color: var(--ink); background: var(--card-2); }
.choice strong { display: block; }
.choice small { color: var(--muted); }
.alert { display: block; padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: .9rem; }
.alert::after { content: ""; display: table; clear: both; }
.alert > .i:first-child { float: left; width: 18px; height: 18px; margin: 2px 10px 0 0; }
.alert-error { background: var(--bad-bg); color: var(--bad); }
.alert-ok { background: var(--ok-bg); color: var(--ok); }
.alert-info { background: var(--info-bg); color: var(--info); }
.alert-warn { background: var(--warn-bg); color: var(--warn); }
.input-group { display: flex; }
.input-group .input { border-radius: 6px 0 0 6px; }
.input-group .btn { border-radius: 0 6px 6px 0; height: auto; }

/* ---------- Cards, badges ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.card + .card { margin-top: 14px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin: 0; }
.card h3 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.card h3 .i { width: 20px; height: 20px; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 4px; font-size: .74rem; font-weight: 600; white-space: nowrap; }
.badge .i { width: 13px; height: 13px; }
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-bad { background: var(--bad-bg); color: var(--bad); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-violet { background: var(--violet-bg); color: var(--violet-ink); }
.badge-muted { background: var(--card-2); color: var(--ink-2); }
.badge-brand { background: var(--yellow); color: #111; }
.count { display: inline-grid; place-items: center; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--price); color: #fff; font-size: .64rem; font-weight: 700; font-style: normal; line-height: 1; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border-radius: 4px; border: 0; background: var(--card-2); font-size: .82rem; font-weight: 500; white-space: nowrap; color: var(--ink); flex: none; }
.chip.active { background: var(--ink); color: var(--card); }
.chip .i { width: 15px; height: 15px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.verified { display: inline-flex; color: var(--blue); vertical-align: -2px; }
.verified .i { width: 15px; height: 15px; }
.avatar { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: none; font-weight: 700; font-size: .78rem; color: #fff; background: hsl(var(--h, 20) 55% 48%); }
.avatar .i { width: 20px; height: 20px; }
.avatar.lg { width: 46px; height: 46px; font-size: .95rem; border-radius: 12px; }
.avatar.xl { width: 84px; height: 84px; font-size: 1.6rem; border-radius: 20px; }
.stars { --r: 0; position: relative; display: inline-block; font-size: 13px; line-height: 1; letter-spacing: 1px; color: var(--line-2); vertical-align: -1px; }
.stars::before { content: "★★★★★"; }
.stars::after { content: "★★★★★"; position: absolute; left: 0; top: 0; color: var(--ink); width: calc(var(--r) / 5 * 100%); overflow: hidden; }
.stars-num { font-weight: 600; margin-left: 4px; font-size: .84rem; }
.crumbs { display: flex; align-items: center; gap: 5px; font-size: .8rem; color: var(--muted); flex-wrap: wrap; margin-bottom: 8px; }
.crumbs .i { width: 13px; height: 13px; }
.crumbs a:hover { color: var(--ink); }
.empty { text-align: center; padding: 44px 20px; color: var(--muted); }
.empty-icon { display: inline-grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: var(--card-2); color: var(--ink); margin-bottom: 14px; }
.empty-icon .i { width: 30px; height: 30px; }
.empty h3 { color: var(--ink); }
.pagination { display: flex; gap: 6px; justify-content: center; margin: 26px 0 8px; flex-wrap: wrap; }
.pagination a, .pagination span { display: inline-grid; place-items: center; min-width: 38px; height: 38px; padding: 0 10px; border-radius: 6px; background: var(--card); border: 1px solid var(--line); font-weight: 600; font-size: .88rem; }
.pagination .current { background: var(--ink); color: var(--card); border-color: var(--ink); }
.pagination .disabled { opacity: .4; }
.pagination .gap { background: none; border: 0; }
.pagination .i { width: 16px; height: 16px; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.table th, .table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; background: var(--card-2); white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--card-2); }
.table .thumb { width: 46px; height: 46px; border-radius: 6px; object-fit: cover; background: var(--card-2); }
.table .actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.table .t-title { display: flex; gap: 12px; align-items: center; min-width: 220px; }
.table .t-title strong { display: block; font-weight: 600; line-height: 1.3; }
.table .num { text-align: right; white-space: nowrap; }
.table form { display: inline; margin: 0; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.toolbar .input, .toolbar .select { width: auto; min-height: 40px; padding: 8px 12px; }
.toolbar .grow { flex: 1; min-width: 180px; }

/* ---------- Top promo strip ---------- */
.appbar { background: var(--card); border-bottom: 1px solid var(--line); }
.no-appbar .appbar { display: none; }
.appbar-in { display: flex; align-items: center; gap: 10px; padding-top: 8px; padding-bottom: 8px; }
.appbar-x { display: grid; place-items: center; width: 24px; height: 24px; border: 0; background: none; color: var(--muted); padding: 0; }
.appbar-x .i { width: 16px; height: 16px; }
.appbar-logo svg { width: 42px; height: 42px; display: block; }
.appbar-text { flex: 1; min-width: 0; line-height: 1.3; }
.appbar-text strong { display: block; font-size: .82rem; font-weight: 600; }
.appbar-text span { display: block; font-size: .74rem; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appbar-btn { display: inline-flex; align-items: center; height: 34px; padding: 0 16px; border-radius: 6px; background: var(--ink); color: var(--card); font-weight: 700; font-size: .78rem; letter-spacing: .03em; white-space: nowrap; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--card); border-bottom: 1px solid var(--line); }
.header-in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; height: var(--header-h); }
.header-left { display: flex; align-items: center; gap: 2px; min-width: 0; }
.logo { display: inline-flex; align-items: center; justify-self: center; }
.logo-text { font-family: var(--display); font-size: 1.75rem; font-weight: 800; letter-spacing: -.02em; color: var(--ink); line-height: 1; }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 2px; }
.hact { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: none; border: 0; color: var(--ink); padding: 0; }
.hact:hover { background: var(--card-2); }
.hact .count { position: absolute; top: 2px; right: 0; }
.hsearch { display: flex; align-items: center; margin-left: 6px; height: 40px; width: min(320px, 100%); border-radius: 999px; background: var(--card-2); padding: 0 6px 0 16px; }
.hsearch input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: .88rem; }
.hsearch button { display: grid; place-items: center; width: 32px; height: 32px; border: 0; background: none; border-radius: 50%; }
.hsearch .i { width: 19px; height: 19px; }
.dropdown { position: relative; }
.dropdown-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 240px; padding: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .15s; z-index: 60; }
.dropdown.open .dropdown-menu { opacity: 1; visibility: visible; transform: none; }
.dropdown-menu a, .dropdown-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 8px; border: 0; background: none; font-size: .88rem; text-align: left; }
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--card-2); }
.dropdown-menu .i { width: 18px; height: 18px; color: var(--ink-2); }
.dropdown-menu .count { margin-left: auto; }
.dropdown-menu form { margin: 6px 0 0; border-top: 1px solid var(--line); padding-top: 6px; }
.dropdown-head { padding: 8px 12px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.dropdown-head strong, .dropdown-head small { display: block; }
.dropdown-head small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.catbar { border-top: 1px solid var(--line); }
.catbar-in { display: flex; align-items: center; gap: 2px; height: 44px; overflow-x: auto; scrollbar-width: none; }
/* centred when it fits, scrollable from the first item when it doesn't */
.catbar-in > :first-child { margin-left: auto; }
.catbar-in > :last-child { margin-right: auto; }
.catbar-in::-webkit-scrollbar { display: none; }
.catbar-in a { padding: 8px 12px; font-size: .86rem; white-space: nowrap; color: var(--ink); border-bottom: 2px solid transparent; }
.catbar-in a:hover { border-bottom-color: var(--ink); }
.catbar-in a.hot { color: var(--price); font-weight: 600; }

/* Trust bar */
.trustbar { background: var(--card); border-bottom: 1px solid var(--line); }
.trustbar-in { display: flex; justify-content: center; gap: 28px; padding-top: 8px; padding-bottom: 8px; }
.trustbar span { display: flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 500; line-height: 1.25; }
.trustbar .i { width: 20px; height: 20px; color: #fff; fill: var(--ok); stroke: #fff; flex: none; }

/* Search sheet */
.search-sheet { position: fixed; inset: 0; z-index: 150; background: var(--card); overflow-y: auto; visibility: hidden; opacity: 0; transform: translateY(12px); transition: .2s ease; }
.search-sheet.open { visibility: visible; opacity: 1; transform: none; }
.search-top { position: sticky; top: 0; display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: var(--card); border-bottom: 1px solid var(--line); }
.search-field { flex: 1; display: flex; align-items: center; height: 42px; border-radius: 999px; background: var(--card-2); padding: 0 6px 0 16px; }
.search-field input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: .95rem; }
.search-field button { display: grid; place-items: center; width: 34px; height: 34px; border: 0; background: none; }
.search-body { padding-top: 16px; padding-bottom: 32px; max-width: 900px; }
.search-body h4 { font-size: .85rem; font-weight: 600; margin: 18px 0 10px; }
.circles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 10px; }
.circle { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.circle span { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--yellow); font-size: 28px; }
.circle small { font-size: .72rem; line-height: 1.25; }

/* Drawer */
.drawer { position: fixed; inset: 0; z-index: 100; visibility: hidden; }
.drawer::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .45); opacity: 0; transition: opacity .2s; }
.drawer.open { visibility: visible; }
.drawer.open::before { opacity: 1; }
.drawer-panel { position: absolute; left: 0; top: 0; bottom: 0; width: min(340px, 88vw); background: var(--card); overflow-y: auto; padding: 14px; transform: translateX(-100%); transition: transform .25s ease; }
.drawer.open .drawer-panel { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.drawer-user { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 10px; background: var(--card-2); margin-bottom: 8px; }
.drawer-user small { display: block; color: var(--muted); }
.drawer-auth { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.drawer-cats a, .drawer-links a, .drawer-links button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 8px; border: 0; border-bottom: 1px solid var(--line); background: none; font-size: .92rem; text-align: left; }
.drawer-cats a .i { margin-left: auto; width: 16px; height: 16px; color: var(--muted); }
.drawer-links .i { width: 20px; height: 20px; color: var(--ink-2); }
.drawer-title { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; margin: 18px 8px 4px; }
.when-dark { display: none; }
[data-theme="dark"] .when-dark { display: block; }
[data-theme="dark"] .when-light { display: none; }

/* Toasts */
.toasts { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; gap: 8px; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
.toast { display: flex; gap: 10px; align-items: center; padding: 12px 18px; border-radius: 8px; background: rgba(17,17,17,.92); color: #fff; box-shadow: var(--shadow-lg); font-weight: 500; font-size: .88rem; pointer-events: auto; animation: toast-in .25s ease; }
.toast .i { width: 18px; height: 18px; flex: none; }
.toast-success .i { color: #4ade80; }
.toast-error { background: var(--bad); }
.toast.hide { opacity: 0; transform: translateY(-8px); transition: .3s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-10px); } }

main { min-height: 50vh; }
.page { padding-top: 20px; padding-bottom: 40px; }
.page-tight { padding-top: 4px; padding-bottom: 40px; }
.section { margin-top: 30px; margin-bottom: 30px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }

/* Section titles */
.stitle { position: relative; text-align: center; margin-bottom: 14px; }
.stitle h2 { margin: 0; font-family: var(--display); font-weight: 900; font-size: 1.2rem; text-transform: uppercase; letter-spacing: .03em; }
.stitle a { position: absolute; right: 0; top: 50%; transform: translateY(-50%); display: inline-flex; align-items: center; gap: 2px; font-size: .78rem; color: var(--ink-2); }
.stitle a .i { width: 15px; height: 15px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-head h2 { margin: 0; }
.see-all { font-size: .85rem; text-decoration: underline; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; height: min(540px, 128vw); max-width: 1280px; margin: 0 auto; background: var(--card-2); }
.slide { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s; background-size: cover; background-position: center; color: #fff; }
.slide.active { opacity: 1; visibility: visible; }
.slide-edit { flex-direction: column; gap: 12px; padding: 18px 20px 34px; background: var(--grad); }
.edit-kicker { font-weight: 600; font-size: .92rem; text-align: center; text-shadow: 0 1px 6px rgba(0,0,0,.2); }
.edit-card { position: relative; display: grid; grid-template-columns: 34px 1fr; grid-template-rows: 1fr auto auto; gap: 8px; width: min(400px, 100%); flex: 1; min-height: 0; padding: 14px 14px 12px 10px; background: #f6f2ea; color: #111; box-shadow: 0 18px 40px rgba(0,0,0,.25); }
.edit-side { grid-row: 1 / 2; writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--display); font-weight: 900; font-size: 1.35rem; letter-spacing: .08em; text-align: center; border-left: 8px solid #111; padding-left: 2px; }
.edit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; min-height: 0; }
.edit-grid img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; background: #fff; }
.edit-from { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: center; gap: 8px; font-family: var(--display); font-weight: 900; font-size: 2rem; letter-spacing: -.01em; border: 1px solid #111; padding: 2px 10px; }
.edit-from small { font-size: .85rem; letter-spacing: .1em; }
.edit-cta { grid-column: 1 / -1; text-align: center; border: 1px solid #111; border-top: 0; padding: 6px; font-weight: 700; letter-spacing: .15em; font-size: .82rem; margin-top: -8px; }
.slide-banner { background: var(--grad); }
.slide-banner.c-blue { background: linear-gradient(135deg, #3d5afe 0%, #8f47ff 100%); }
.slide-banner.c-green { background: linear-gradient(135deg, #0f9b8e 0%, #4f8bff 100%); }
.slide-banner.c-dark { background: linear-gradient(135deg, #111 0%, #3a2a5c 100%); }
.slide-banner[style] { background-color: #222; }
.slide-banner[style]::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.55), rgba(0,0,0,.05) 60%); }
.slide-art { position: absolute; top: 12%; left: 50%; transform: translateX(-50%); font-size: min(150px, 34vw); line-height: 1; filter: drop-shadow(0 20px 30px rgba(0,0,0,.25)); }
.slide-content { position: absolute; left: 0; right: 0; bottom: 46px; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 0 22px; text-align: center; z-index: 1; }
.slide-title { font-family: var(--display); font-weight: 900; font-size: clamp(1.7rem, 7vw, 3rem); line-height: 1.05; text-transform: uppercase; text-shadow: 0 3px 16px rgba(0,0,0,.2); }
.slide-sub { font-size: .95rem; opacity: .95; max-width: 520px; }
.slider-dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 6px; z-index: 2; }
.slider-dots button { width: 14px; height: 3px; border-radius: 2px; border: 0; background: rgba(255,255,255,.5); padding: 0; transition: width .3s; }
.slider-dots button.active { width: 26px; background: #fff; }

/* ---------- Home blocks ---------- */
.hot-cats { display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, auto); grid-auto-columns: 82px; gap: 12px 10px; padding-bottom: 4px; }
.hot-cat { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.hot-cat-img { display: block; width: 100%; aspect-ratio: 4 / 5; padding: 3px; border-radius: 10px; background: var(--grad); }
.hot-cat-img img, .hot-cat-img .emoji { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; background: #fff; }
.hot-cat-img .emoji { display: grid; place-items: center; font-size: 30px; }
.hot-cat small { font-size: .72rem; line-height: 1.2; }
.offers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.offer { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 8px; border-radius: 12px; background: var(--grad); color: #fff; overflow: hidden; }
.offer img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: #fff; }
/* purple shade under the big white text so it reads on light photos */
.offer::before { content: ""; position: absolute; left: 8px; right: 8px; top: 8px; aspect-ratio: 1; border-radius: 8px; background: linear-gradient(180deg, transparent 40%, rgba(120, 40, 210, .85) 100%); z-index: 0; pointer-events: none; }
.offer-big, .offer-kicker { z-index: 1; }
.offer-kicker { position: absolute; top: 14px; left: 14px; z-index: 1; font-size: .62rem; font-weight: 700; letter-spacing: .04em; background: rgba(0,0,0,.35); padding: 3px 6px; border-radius: 3px; }
.offer-kicker .countdown b { font-variant-numeric: tabular-nums; }
.offer-big { position: absolute; left: 8px; right: 8px; bottom: 54px; text-align: center; font-family: var(--display); font-weight: 900; font-size: clamp(1.3rem, 6vw, 2.2rem); line-height: 1; text-shadow: 0 3px 12px rgba(80,0,120,.55); }
.offer-btn { display: block; text-align: center; background: var(--yellow); color: #111; font-family: var(--display); font-weight: 800; letter-spacing: .1em; font-size: .8rem; padding: 9px; border-radius: 5px; box-shadow: inset 0 -3px 0 rgba(0,0,0,.12); }
.looks { display: flex; gap: 10px; padding-bottom: 6px; }
.look { position: relative; flex: 0 0 116px; border-radius: 10px; overflow: hidden; background: var(--grad-soft); padding-bottom: 14px; }
.look img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.look-from { position: absolute; top: 0; left: 0; right: 0; padding: 6px 6px 14px; font-size: .64rem; font-weight: 700; color: #fff; background: linear-gradient(180deg, rgba(0,0,0,.55), transparent); }
.look-pill { position: absolute; left: 8px; right: 8px; bottom: 6px; text-align: center; padding: 4px 6px; border-radius: 999px; background: var(--grad); color: #fff; font-size: .68rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frames { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 12px; }
.frame { position: relative; display: block; padding: 5px 5px 18px; border-radius: 12px; background: var(--grad); }
.frame-img { display: block; border-radius: 8px; overflow: hidden; background: #fff; }
.frame-img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .4s; }
.frame:hover .frame-img img { transform: scale(1.04); }
.frame-pill { position: absolute; left: 10%; right: 10%; bottom: -10px; text-align: center; padding: 6px 8px; border-radius: 8px; background: linear-gradient(180deg, #b66cff, #8f47ff); color: #fff; font-family: var(--display); font-weight: 800; font-size: .85rem; box-shadow: 0 4px 12px rgba(143,71,255,.35); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.promo-wide { display: grid; grid-template-columns: 1.1fr 1fr; align-items: stretch; min-height: 200px; border-radius: 12px; overflow: hidden; background: var(--grad-soft); }
.promo-wide-text { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 8px; padding: 18px; }
.promo-wide-title { font-family: var(--display); font-weight: 900; font-size: clamp(1.3rem, 5.5vw, 2rem); line-height: 1.05; color: #1d1442; }
[data-theme="dark"] .promo-wide-title { color: #f2e9ff; }
.promo-wide-sub { font-size: .78rem; color: var(--ink-2); }
.promo-wide-imgs { display: grid; grid-template-columns: 1fr 1fr; }
.promo-wide-imgs img { width: 100%; height: 100%; object-fit: cover; }
.palette { display: flex; gap: 10px; padding-bottom: 6px; }
.palette-card { flex: 0 0 140px; display: flex; flex-direction: column; border-radius: 8px; overflow: hidden; background: var(--card-2); }
.palette-imgs { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 3px; aspect-ratio: 1; overflow: hidden; }
.palette-imgs img { width: 100%; height: 100%; min-height: 0; object-fit: cover; background: #fff; }
.palette-imgs img:first-child { grid-row: 1 / 3; }
.palette-label { display: block; padding: 7px 8px; background: #111; color: #fff; font-size: .72rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.palette-label .verified { color: #8ec5ff; }
.feed { margin-top: 20px; }
.feed-tabs { position: sticky; top: var(--header-h); z-index: 20; display: flex; gap: 10px; padding: 10px 0; background: var(--card); }
.feed-tabs button { height: 34px; padding: 0 16px; border-radius: 6px; border: 0; background: var(--card-2); font-family: var(--display); font-weight: 800; font-size: .85rem; letter-spacing: .02em; }
.feed-tabs button.active { background: var(--ink); color: var(--card); }
.feed-pane { display: none; }
.feed-pane.active { display: block; }
.feed-more { margin-top: 16px; }

/* ---------- Product cards ---------- */
.pgrid { --cols: 2; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 10px 8px; }
.pcard { position: relative; display: flex; flex-direction: column; background: var(--card); border-radius: 6px; overflow: hidden; }
.pcard-top { position: relative; }
.pcard-media { position: relative; display: block; aspect-ratio: 3 / 4; background: var(--card-2); overflow: hidden; border-radius: 6px; }
.pcard-media img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s, transform .4s; }
.pcard-media img.alt { position: absolute; inset: 0; opacity: 0; }
.pcard:hover .pcard-media img.alt { opacity: 1; }
.tag-off, .tag-hot { position: absolute; top: 6px; left: 6px; padding: 1px 5px; border-radius: 2px; font-size: .66rem; font-weight: 700; color: #fff; background: var(--price); letter-spacing: .01em; }
.tag-hot { background: #111; }
.pcard-cart { position: absolute; right: 8px; bottom: 8px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: #111; box-shadow: var(--shadow-sm); }
.pcard-cart .i { width: 17px; height: 17px; }
.pcard-body { display: flex; flex-direction: column; gap: 3px; padding: 7px 4px 10px; flex: 1; }
.pcard-row { display: flex; align-items: center; gap: 6px; }
.pcard-title { flex: 1; min-width: 0; font-size: .8rem; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard-wish { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; background: none; color: var(--ink); flex: none; }
.pcard-wish .i { width: 18px; height: 18px; }
.pcard-wish.on, .wish-btn.on { color: var(--price); }
.pcard-wish.on .i, .wish-btn.on .i { fill: currentColor; }
.pcard-price { display: flex; align-items: baseline; gap: 5px; flex-wrap: wrap; }
.pcard-price strong { color: var(--price); font-weight: 700; font-size: .98rem; }
.pcard-price s, .price s { color: var(--muted); font-size: .72rem; }
.pcard-deal { color: var(--ok); font-size: .76rem; font-weight: 500; }
.pcard-moq { color: var(--muted); font-size: .72rem; }
.pcard-swatches { display: flex; gap: 6px; margin-top: 3px; }
.pcard-swatches i { width: 11px; height: 11px; border-radius: 2px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.pcard-proof { align-self: flex-start; margin-top: 4px; padding: 2px 6px; border-radius: 2px; background: var(--price-bg); color: #d9531e; font-size: .7rem; font-weight: 500; }

/* ---------- Listing ---------- */
.listing-head { border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.marquee { overflow: hidden; padding: 10px 0 2px; }
.marquee-track { display: flex; gap: 34px; width: max-content; animation: marquee 22s linear infinite; }
.marquee span { font-size: 2rem; font-weight: 500; white-space: nowrap; letter-spacing: -.01em; }
@keyframes marquee { to { transform: translateX(-50%); } }
.chipbar { display: flex; gap: 8px; padding: 8px 0 8px; }
.result-count { font-size: .76rem; color: var(--muted); padding-bottom: 10px; }
.result-count a { text-decoration: underline; color: var(--ink); }
.load-more { margin-top: 18px; }
.sheet { position: fixed; inset: 0; z-index: 160; visibility: hidden; }
.sheet.open { visibility: visible; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.45); opacity: 0; transition: opacity .2s; }
.sheet.open .sheet-backdrop { opacity: 1; }
.sheet-panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 86vh; overflow-y: auto; background: var(--card); border-radius: 16px 16px 0 0; padding: 0 16px 16px; transform: translateY(100%); transition: transform .25s ease; }
.sheet.open .sheet-panel { transform: none; }
.sheet-head { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; padding: 12px 0; background: var(--card); border-bottom: 1px solid var(--line); z-index: 1; }
.sheet-list a { display: flex; justify-content: space-between; align-items: center; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.sheet-list a.active { font-weight: 600; }
.sheet-foot { position: sticky; bottom: -16px; display: grid; grid-template-columns: 1fr 2fr; gap: 10px; padding: 12px 0 16px; background: var(--card); }
.filter-group { padding: 14px 0; border-bottom: 1px solid var(--line); }
.filter-group h4 { font-size: .85rem; font-weight: 600; margin-bottom: 10px; }
.price-range { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; }
.price-range .input { min-height: 42px; }

/* ---------- Product page ---------- */
.pd { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.pd-media { margin: 0 -16px; }
.pgallery { position: relative; }
.pg-track { display: flex; gap: 4px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.pg-track::-webkit-scrollbar { display: none; }
.pg-slide { flex: 0 0 88%; margin: 0; aspect-ratio: 3 / 4; scroll-snap-align: start; background: var(--card-2); cursor: zoom-in; }
.pg-slide:only-child { flex-basis: 100%; }
.pg-slide img { width: 100%; height: 100%; object-fit: cover; }
.pg-dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.pg-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.6); box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.pg-dots i.on { background: #fff; width: 16px; border-radius: 3px; }
.pg-count { position: absolute; right: 12px; bottom: 10px; padding: 2px 8px; border-radius: 999px; background: rgba(0,0,0,.45); color: #fff; font-size: .72rem; }
.pg-share { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); color: #111; }
.pg-share .i { width: 18px; height: 18px; }
.pg-thumbs { display: none; }
.pd-info { padding: 14px 0 0; min-width: 0; }
.pd-title { font-size: 1.05rem; font-weight: 500; line-height: 1.4; margin-bottom: 6px; }
.pd-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .8rem; color: var(--ink-2); margin-bottom: 10px; }
.dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted); }
.pd-price { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.pd-price strong { font-size: 1.6rem; font-weight: 700; color: var(--price); letter-spacing: -.01em; }
.pd-off { background: var(--price); color: #fff; font-size: .78rem; font-weight: 700; padding: 1px 5px; border-radius: 2px; }
.pd-price s { color: var(--muted); font-size: .95rem; }
.pd-unit { color: var(--muted); font-size: .82rem; }
.coupon { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px; border: 1px solid #b8ebcc; background: var(--ok-bg); margin-bottom: 10px; }
.coupon-ic { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--ok); color: #fff; font-weight: 800; font-size: 1.1rem; }
.coupon-text { flex: 1; min-width: 0; }
.coupon-text strong { display: block; font-size: .9rem; }
.coupon-text span { display: block; font-size: .76rem; color: var(--ok); }
.tiers { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.tier { padding: 6px 10px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--card); line-height: 1.25; }
.tier.active { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.tier span { display: block; font-size: .7rem; color: var(--muted); }
.tier strong { font-size: .92rem; }
.opt-group { margin-bottom: 16px; }
.opt-group > .label { display: block; margin-bottom: 8px; font-size: .82rem; letter-spacing: .02em; }
.opt-group > .label b { font-weight: 400; }
.opt-values { display: flex; gap: 8px; flex-wrap: wrap; }
.opt-values label { position: relative; cursor: pointer; }
.opt-values input { position: absolute; opacity: 0; pointer-events: none; }
.opt-values span { display: inline-flex; align-items: center; justify-content: center; min-width: 54px; height: 38px; padding: 0 14px; border-radius: 4px; border: 1px solid var(--line-2); font-size: .85rem; }
.opt-values input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); font-weight: 600; }
.opt-values input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.opt-values .swatch { min-width: 0; width: 42px; height: 42px; padding: 0; border-radius: 6px; background: var(--c); border-color: rgba(0,0,0,.12); }
.opt-values input:checked + .swatch { box-shadow: 0 0 0 2px var(--card), 0 0 0 3.5px var(--ink); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 6px; overflow: hidden; height: 40px; background: var(--card); }
.qty button { width: 40px; height: 100%; border: 0; background: var(--card-2); display: grid; place-items: center; }
.qty button .i { width: 16px; height: 16px; }
.qty input { width: 64px; height: 100%; border: 0; text-align: center; font-weight: 600; background: transparent; outline: none; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty.sm { height: 34px; }
.qty.sm button { width: 32px; }
.qty.sm input { width: 46px; }
.pd-total { margin-left: auto; font-size: .82rem; color: var(--ink-2); }
.pd-total strong { font-size: 1.05rem; color: var(--ink); margin-left: 4px; }
.buybar { display: grid; grid-template-columns: 48px 48px minmax(0, 1fr) auto; gap: 8px; margin: 6px 0 14px; }
.buybar-ic { display: grid; place-items: center; height: 50px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink); }
.buybar-add { display: flex; align-items: center; justify-content: center; gap: 10px; height: 50px; border-radius: 8px; border: 0; background: var(--ink); color: var(--card); text-align: left; }
.buybar-add span { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.buybar-add b { font-weight: 600; font-size: .95rem; white-space: nowrap; }
.buybar-add small { font-size: .7rem; opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buybar-add[disabled] { opacity: .45; }
.buybar-buy { height: 50px; padding: 0 18px; border-radius: 8px; border: 0; background: var(--price); color: #fff; font-weight: 700; }
.pd-store { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; margin: 6px 0 12px; }
.pd-store .grow { flex: 1; min-width: 0; }
.pd-store strong { display: block; font-size: .9rem; }
.pd-store small { display: block; color: var(--muted); font-size: .74rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-perks { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 8px; font-size: .82rem; color: var(--ink-2); }
.pd-perks li { display: flex; gap: 10px; align-items: center; }
.pd-perks .i { width: 18px; height: 18px; color: var(--ink); }
.pd-sections { margin-top: 10px; }
.acc { border-top: 8px solid var(--bg); }
.acc summary { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; font-weight: 600; font-size: .9rem; text-transform: uppercase; letter-spacing: .02em; cursor: pointer; list-style: none; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .i { width: 18px; height: 18px; transition: transform .2s; }
.acc[open] summary .i { transform: rotate(180deg); }
.acc-body { padding-bottom: 18px; }
.prose { color: var(--ink-2); font-size: .9rem; }
.specs { width: 100%; border-collapse: collapse; font-size: .86rem; }
.specs th, .specs td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.specs th { width: 38%; background: var(--card-2); font-weight: 500; color: var(--ink-2); }
.rating-summary { display: grid; grid-template-columns: 130px 1fr; gap: 20px; align-items: center; margin-bottom: 18px; }
.rating-big { text-align: center; }
.rating-big strong { display: block; font-size: 2.6rem; line-height: 1; font-weight: 700; }
.rating-big .stars { font-size: 16px; margin: 8px 0 4px; }
.rbar { display: grid; grid-template-columns: 34px 1fr 30px; gap: 10px; align-items: center; font-size: .8rem; margin-bottom: 5px; }
.rbar-track { height: 6px; border-radius: 3px; background: var(--card-2); overflow: hidden; }
.rbar-track span { display: block; height: 100%; background: var(--ink); }
.review { display: flex; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.review-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.review p { margin: 6px 0 0; color: var(--ink-2); font-size: .88rem; }
.review-form { padding: 14px; border-radius: 10px; background: var(--card-2); margin-bottom: 14px; }
.star-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; margin: 8px 0 10px; }
.star-input input { position: absolute; opacity: 0; }
.star-input label { font-size: 30px; color: var(--line-2); cursor: pointer; line-height: 1; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: #f5b301; }
.discover { background: var(--yellow-soft); padding: 26px 0 30px; margin-top: 10px; }
.discover h2 { text-align: center; font-family: var(--display); font-weight: 800; font-size: 1.15rem; margin-bottom: 18px; }

/* ---------- Store page ---------- */
.store-hero { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--card); border: 1px solid var(--line); margin-top: 16px; }
.store-banner { height: 200px; background: var(--grad); background-size: cover; background-position: center; }
.store-hero-body { display: flex; gap: 18px; align-items: flex-end; padding: 0 20px 18px; margin-top: -44px; flex-wrap: wrap; }
.store-hero-body .avatar.xl { width: 96px; height: 96px; border: 4px solid var(--card); }
.store-hero-info { flex: 1; min-width: 220px; }
.store-hero-info h1 { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-size: 1.45rem; }
.store-hero-info h1 .verified .i { width: 22px; height: 22px; }
.store-stats { display: flex; gap: 18px; flex-wrap: wrap; color: var(--ink-2); font-size: .84rem; }
.store-stats .i { width: 15px; height: 15px; vertical-align: -2px; }
.store-stats strong { color: var(--ink); }
.store-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.store-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.store-card-top { display: flex; gap: 12px; align-items: center; padding: 14px 14px 10px; }
.store-card-top strong { display: flex; align-items: center; gap: 4px; }
.store-card-top small { color: var(--muted); display: block; }
.store-card-imgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 0 14px 14px; }
.store-card-imgs img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 6px; background: var(--card-2); }
.store-card-foot { display: flex; justify-content: space-between; padding: 10px 14px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
.pd-lower { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; margin-top: 20px; align-items: start; }
.pd-lower > .card + .card { margin-top: 0; }
.store-box { position: sticky; top: calc(var(--header-h) + 60px); }
.store-box h3 { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.store-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0; }
.store-facts div { padding: 10px; border-radius: 8px; background: var(--card-2); }
.store-facts span { display: block; font-size: .72rem; color: var(--muted); }
.store-facts strong { font-size: .9rem; }
.result-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.result-bar h1 { font-size: 1.3rem; margin: 0; }

/* ---------- Cart / checkout ---------- */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; }
.cart-layout > .card + .card { margin-top: 0; }
.cart-group { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; margin-bottom: 14px; }
.cart-group-head { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--card-2); font-weight: 600; }
.cart-group-head .i { width: 18px; height: 18px; }
.cart-item { display: grid; grid-template-columns: 90px minmax(0, 1fr) auto; gap: 14px; padding: 14px 16px; border-bottom: 1px solid var(--line); align-items: center; }
.cart-item:last-child { border-bottom: 0; }
.cart-item img { width: 90px; aspect-ratio: 3 / 4; height: auto; border-radius: 6px; object-fit: cover; background: var(--card-2); }
.cart-item h4 { font-size: .9rem; font-weight: 500; margin: 0 0 4px; }
.cart-item .opts { font-size: .78rem; color: var(--muted); }
.cart-item .unit { font-size: .82rem; color: var(--ink-2); margin-top: 4px; }
.cart-item-right { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.cart-item-right strong { font-size: 1rem; color: var(--price); }
.cart-item.unavailable { opacity: .55; }
.summary { position: sticky; top: calc(var(--header-h) + 60px); }
.summary-row { display: flex; justify-content: space-between; padding: 7px 0; font-size: .9rem; color: var(--ink-2); }
.summary-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-size: 1rem; color: var(--ink); font-weight: 700; }
.summary-row.total strong { font-size: 1.35rem; color: var(--price); }
.summary .btn { margin-top: 14px; }
.secure-note { display: flex; gap: 8px; align-items: center; justify-content: center; font-size: .78rem; color: var(--muted); margin-top: 12px; }
.secure-note .i { width: 15px; height: 15px; }
.mini-items { display: grid; gap: 10px; margin-bottom: 12px; }
.mini-item { display: grid; grid-template-columns: 48px 1fr auto; gap: 10px; align-items: center; font-size: .84rem; }
.mini-item img { width: 48px; height: 60px; border-radius: 6px; object-fit: cover; }
.mini-item small { display: block; color: var(--muted); }
.success-hero { text-align: center; padding: 36px 20px 20px; }
.success-icon { display: inline-grid; place-items: center; width: 80px; height: 80px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); margin-bottom: 14px; animation: pop .5s ease; }
.success-icon .i { width: 38px; height: 38px; }
@keyframes pop { from { transform: scale(.5); opacity: 0; } }

/* ---------- Orders ---------- */
.timeline { display: grid; grid-template-columns: repeat(5, 1fr); margin: 10px 0 6px; }
.tl-step { position: relative; text-align: center; font-size: .78rem; color: var(--muted); font-weight: 500; padding-top: 40px; }
.tl-step::before { content: ""; position: absolute; top: 15px; left: -50%; right: 50%; height: 2px; background: var(--line); }
.tl-step:first-child::before { display: none; }
.tl-step .tl-dot { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 32px; height: 32px; border-radius: 50%; background: var(--card-2); border: 2px solid var(--line-2); display: grid; place-items: center; z-index: 1; }
.tl-step .tl-dot .i { width: 16px; height: 16px; }
.tl-step.done { color: var(--ink); }
.tl-step.done .tl-dot { background: var(--ink); border-color: var(--ink); color: var(--card); }
.tl-step.done::before { background: var(--ink); }
.history { list-style: none; padding: 0; margin: 0; }
.history li { position: relative; padding: 0 0 16px 24px; font-size: .86rem; }
.history li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); }
.history li::after { content: ""; position: absolute; left: 8px; top: 18px; bottom: 0; width: 1px; background: var(--line); }
.history li:last-child::after { display: none; }
.history small { color: var(--muted); display: block; }
.order-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); margin-bottom: 12px; overflow: hidden; }
.order-card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 16px; background: var(--card-2); border-bottom: 1px solid var(--line); flex-wrap: wrap; font-size: .84rem; }
.order-card-body { display: flex; gap: 14px; align-items: center; padding: 14px 16px; flex-wrap: wrap; }
.order-thumbs { display: flex; gap: 6px; }
.order-thumbs img { width: 52px; height: 64px; border-radius: 6px; object-fit: cover; background: var(--card-2); }
.order-card-body .grow { flex: 1; min-width: 180px; }
.address-box { padding: 14px 16px; background: var(--card-2); border-radius: 8px; font-size: .88rem; line-height: 1.7; }
.address-box .i { width: 15px; height: 15px; vertical-align: -2px; }

/* ---------- Dashboard ---------- */
.dash { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 22px; padding-top: 22px; padding-bottom: 44px; align-items: start; }
.dash-side { position: sticky; top: calc(var(--header-h) + 60px); background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px; }
.dash-who { display: flex; gap: 12px; align-items: center; padding: 6px 6px 14px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.dash-who strong { display: block; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; }
.dash-who span { font-size: .76rem; color: var(--muted); }
.dash-who > div { min-width: 0; }
.dash-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; font-size: .9rem; color: var(--ink-2); }
.dash-nav a .i { width: 19px; height: 19px; }
.dash-nav a:hover { background: var(--card-2); color: var(--ink); }
.dash-nav a.active { background: var(--ink); color: var(--card); }
.dash-nav .count { margin-left: auto; }
.dash-switch { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; }
.dash-switch a { display: flex; align-items: center; gap: 10px; padding: 8px 12px; font-size: .84rem; color: var(--muted); border-radius: 8px; }
.dash-switch a:hover { background: var(--card-2); }
.dash-switch .i { width: 17px; height: 17px; }
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.dash-head h1 { margin: 0; font-size: 1.5rem; }
.dash-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); }
.stat-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--yellow); color: #111; flex: none; }
.stat.blue .stat-icon { background: var(--info-bg); color: var(--info); }
.stat.green .stat-icon { background: var(--ok-bg); color: var(--ok); }
.stat.violet .stat-icon { background: var(--violet-bg); color: var(--violet-ink); }
.stat span { display: block; font-size: .78rem; color: var(--muted); }
.stat strong { display: block; font-size: 1.4rem; font-weight: 700; line-height: 1.2; }
.stat small { font-size: .76rem; color: var(--muted); }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 14px; }
.dash-grid > .card + .card { margin-top: 0; }
.quick-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.quick-link { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: var(--r); background: var(--card-2); font-weight: 600; font-size: .88rem; }
.quick-link:hover { background: var(--line); }
.list-rows a, .list-rows > div { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .88rem; }
.list-rows > :last-child { border-bottom: 0; }
.list-rows img { width: 42px; height: 52px; border-radius: 6px; object-fit: cover; }
.list-rows .grow { flex: 1; min-width: 0; }
.list-rows .grow strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.list-rows small { color: var(--muted); }
.list-rows .i { width: 18px; height: 18px; }
.chart { padding-top: 4px; }
.chart-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.chart-head span { color: var(--ink-2); font-size: .88rem; }
.chart-head strong { font-size: 1.35rem; font-weight: 700; }
.chart-bars { position: relative; display: flex; align-items: flex-end; gap: 2px; height: 180px; border-bottom: 1px solid var(--line-2); background-image: linear-gradient(var(--line) 1px, transparent 1px); background-size: 100% 45px; background-position: 0 -1px; }
.bar { position: relative; flex: 1; height: 100%; display: flex; align-items: flex-end; outline: none; }
.bar span { display: block; width: 100%; height: var(--h); background: var(--violet); border-radius: 4px 4px 0 0; opacity: .85; }
.bar:hover span, .bar:focus span { opacity: 1; }
.bar:hover::after, .bar:focus::after { content: attr(data-tip); position: absolute; bottom: calc(var(--h) + 8px); left: 50%; transform: translateX(-50%); padding: 6px 10px; border-radius: 6px; background: var(--ink); color: var(--card); font-size: .74rem; font-weight: 600; white-space: nowrap; z-index: 5; pointer-events: none; }
.chart-axis { display: flex; justify-content: space-between; font-size: .74rem; color: var(--muted); margin-top: 8px; }
.uploader { border: 2px dashed var(--line-2); border-radius: var(--r); padding: 22px; text-align: center; background: var(--card-2); cursor: pointer; }
.uploader.drag { border-color: var(--ink); }
.uploader .i { display: block; width: 32px; height: 32px; margin: 0 auto 8px; }
.uploader input { display: none; }
.img-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; margin-top: 12px; }
.img-item { position: relative; aspect-ratio: 3 / 4; border-radius: 8px; overflow: hidden; background: var(--card-2); border: 1px solid var(--line); }
.img-item img { width: 100%; height: 100%; object-fit: cover; }
.img-item .rm { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0,0,0,.7); color: #fff; display: grid; place-items: center; }
.img-item .rm .i { width: 14px; height: 14px; }
.img-item .cover { position: absolute; left: 6px; bottom: 6px; padding: 2px 7px; border-radius: 4px; background: var(--yellow); color: #111; font-size: .66rem; font-weight: 700; }
.img-item.removed { opacity: .35; }
.editor { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 20px; align-items: start; }
.preview-pane { position: sticky; top: calc(var(--header-h) + 60px); }
.preview-pane .pcard { pointer-events: none; border: 1px solid var(--line); padding: 6px; }
.preview-label { display: flex; align-items: center; gap: 8px; font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; margin: 16px 0 10px; }
.preview-label .i { width: 16px; height: 16px; }
.tier-rows { display: grid; gap: 8px; margin-bottom: 10px; }
.tier-row { display: grid; grid-template-columns: 1fr 1fr 40px; gap: 8px; }

/* ---------- Messages ---------- */
.chat { display: grid; grid-template-columns: 320px minmax(0, 1fr); height: min(720px, calc(100vh - 200px)); min-height: 480px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.chat-list { border-right: 1px solid var(--line); overflow-y: auto; }
.chat-list-head { padding: 16px 18px; border-bottom: 1px solid var(--line); font-weight: 700; }
.chat-item { display: flex; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--line); align-items: center; }
.chat-item:hover { background: var(--card-2); }
.chat-item.active { background: var(--card-2); box-shadow: inset 3px 0 0 var(--ink); }
.chat-item .grow { flex: 1; min-width: 0; }
.chat-item strong { display: flex; justify-content: space-between; gap: 6px; font-size: .9rem; font-weight: 600; }
.chat-item strong small { font-weight: 400; color: var(--muted); font-size: .72rem; white-space: nowrap; }
.chat-item p { margin: 2px 0 0; font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-item .role { font-size: .66rem; font-weight: 600; color: var(--violet); text-transform: uppercase; letter-spacing: .05em; }
.chat-main { display: flex; flex-direction: column; min-width: 0; }
.chat-head { display: flex; gap: 12px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.chat-head small { display: block; color: var(--muted); }
.chat-product { display: flex; gap: 10px; align-items: center; margin-left: auto; padding: 6px 10px; border-radius: 8px; background: var(--card-2); font-size: .78rem; max-width: 280px; }
.chat-product img { width: 34px; height: 42px; border-radius: 4px; object-fit: cover; }
.chat-product span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-body { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 8px; background: var(--bg); }
.msg { max-width: 72%; padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: var(--card); align-self: flex-start; font-size: .9rem; white-space: pre-wrap; word-wrap: break-word; }
.msg.me { align-self: flex-end; background: var(--ink); color: var(--card); border-radius: 16px 16px 4px 16px; }
.msg time { display: block; font-size: .68rem; opacity: .6; margin-top: 4px; }
.chat-form { display: flex; gap: 10px; padding: 12px; border-top: 1px solid var(--line); }
.chat-form textarea { flex: 1; resize: none; min-height: 44px; max-height: 140px; padding: 11px 16px; border-radius: 22px; border: 1px solid var(--line-2); background: var(--card-2); outline: none; }
.chat-form textarea:focus { border-color: var(--ink); }
.chat-form .btn { width: 44px; height: 44px; padding: 0; border-radius: 50%; }
.chat-back { display: none; }

/* ---------- RFQ ---------- */
.rfq-list { display: grid; gap: 10px; }
.rfq-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); align-items: center; }
.rfq-item h3 { margin-bottom: 6px; }
.rfq-item .meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: .8rem; color: var(--muted); }
.rfq-item .meta span { display: inline-flex; gap: 5px; align-items: center; }
.rfq-item .meta .i { width: 15px; height: 15px; }
.quote { padding: 14px 0; border-top: 1px solid var(--line); }
.quote-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }
.quote-head .text-brand { color: var(--price); text-decoration: none; }
.rfq-banner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: center; border-radius: var(--r-lg); padding: 28px; background: var(--grad); color: #fff; }
.rfq-banner h2 { font-family: var(--display); font-weight: 900; font-size: 1.7rem; text-transform: uppercase; }
.rfq-banner p { opacity: .9; }
.rfq-banner ul { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
.rfq-banner li { display: flex; gap: 8px; align-items: center; }
.rfq-banner li .i { width: 18px; height: 18px; color: var(--yellow); }

/* ---------- Auth ---------- */
.auth { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 220px); max-width: 1040px; margin: 28px auto; background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.auth-art { position: relative; padding: 44px; color: #fff; background: var(--grad); display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.auth-art h2 { font-family: var(--display); font-weight: 900; font-size: 2rem; text-transform: uppercase; line-height: 1.05; }
.auth-art ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.auth-art li { display: flex; gap: 10px; align-items: center; font-weight: 500; }
.auth-art li .i { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--yellow); color: #111; }
.auth-art .logo-text { color: #fff; }
.auth-form { padding: 44px; display: flex; flex-direction: column; justify-content: center; }
.auth-form h1 { font-size: 1.6rem; }
.auth-form .sub { color: var(--muted); margin-bottom: 22px; }
.auth-foot { text-align: center; margin-top: 18px; color: var(--muted); font-size: .9rem; }
.auth-foot a { color: var(--ink); font-weight: 600; text-decoration: underline; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 48px !important; }
.pw-wrap button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; background: none; color: var(--muted); display: grid; place-items: center; }
.pw-wrap .i { width: 18px; height: 18px; }
.doc { max-width: 820px; margin: 0 auto; }
.doc .card { padding: 32px; }

/* ---------- Modal & lightbox ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; visibility: hidden; }
.modal.open { visibility: visible; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); opacity: 0; transition: opacity .2s; }
.modal.open .modal-backdrop { opacity: 1; }
.modal-box { position: relative; width: min(940px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: var(--card); border-radius: 14px; box-shadow: var(--shadow-lg); transform: translateY(20px); opacity: 0; transition: .25s ease; }
.modal.open .modal-box { transform: none; opacity: 1; }
.modal-x { position: absolute; top: 10px; right: 10px; z-index: 3; background: var(--card); }
.modal-body { padding: 22px; }
.modal-loading { display: grid; place-items: center; min-height: 340px; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--ink); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.qv { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px; }
.qv .pg-slide { flex-basis: 100%; }
.qv h2 { font-size: 1.05rem; font-weight: 500; padding-right: 40px; }
.qv .pg-thumbs { display: none !important; }

/* ---------- Payments ---------- */
.pay-methods { display: grid; gap: 10px; margin-bottom: 14px; }
.pay-method { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1.5px solid var(--line-2); border-radius: 10px; cursor: pointer; background: var(--card); }
.pay-method input { position: absolute; opacity: 0; }
.pay-method:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.pay-method:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.pm-text { flex: 1; min-width: 0; }
.pm-text strong { display: block; }
.pm-text small { color: var(--muted); }
.pm-tick { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line-2); color: transparent; }
.pm-tick .i { width: 15px; height: 15px; }
.pay-method:has(input:checked) .pm-tick { background: var(--ink); border-color: var(--ink); color: var(--card); }
.pm-logo { display: inline-grid; place-items: center; min-width: 64px; height: 38px; padding: 0 10px; border-radius: 8px; font-family: var(--display); font-weight: 900; font-size: .9rem; letter-spacing: .02em; color: #fff; flex: none; }
.pm-fib { background: linear-gradient(135deg, #00b2a9, #1f7a8c); }
.pm-nass { background: linear-gradient(135deg, #1b1f3b, #3b3f8f); font-size: .78rem; }
.pm-logo.big { min-width: 86px; height: 50px; font-size: 1.3rem; border-radius: 12px; margin-bottom: 10px; }
.paybox { max-width: 460px; margin: 10px auto; padding: 26px 22px; text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: 16px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.paybox h1 { font-size: 1.35rem; margin: 0; }
.paybox .pay-methods { width: 100%; text-align: left; }
.paybox .btn-block { width: 100%; }
.pay-amount { font-size: 2rem; font-weight: 700; color: var(--price); line-height: 1.1; }
.qr { padding: 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.qr img { width: 230px; height: 230px; image-rendering: pixelated; }
.pay-code { display: flex; flex-direction: column; align-items: center; }
.pay-code small { color: var(--muted); font-size: .72rem; }
.pay-code strong { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.15rem; letter-spacing: .12em; padding: 4px 12px; border-radius: 6px; background: var(--card-2); }
.pay-status { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: var(--warn-bg); color: var(--warn); font-weight: 600; font-size: .85rem; }
.pay-status.ok { background: var(--ok-bg); color: var(--ok); }
.pay-status.bad { background: var(--bad-bg); color: var(--bad); }
.spinner.sm { width: 14px; height: 14px; border-width: 2px; border-top-color: currentColor; }
.pay-apps { display: grid; gap: 8px; width: 100%; }
.pay-note { margin: 4px 0 0; }
.pay-note .i { width: 14px; height: 14px; vertical-align: -2px; }
.footer-pay { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: .82rem; }
.footer-pay .pm-logo { min-width: 54px; height: 26px; font-size: .7rem; border-radius: 6px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a, .tabs button { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: none; color: var(--muted); font-weight: 500; white-space: nowrap; }
.tabs .active { color: var(--ink); border-bottom-color: var(--ink); font-weight: 600; }
.banner-preview { position: relative; height: 170px; overflow: hidden; }
.banner-preview .slide-art { font-size: 64px; top: 50%; left: auto; right: 6%; transform: translateY(-50%); }
.banner-preview .slide-content { left: 20px; right: 35%; bottom: auto; top: 50%; transform: translateY(-50%); align-items: flex-start; text-align: left; padding: 0; }
.banner-preview .slide-title { font-size: 1.25rem; }
.banner-preview .slide-sub { font-size: .8rem; }
.qv .pg-share { right: auto; left: 10px; }
.lightbox { position: fixed; inset: 0; z-index: 250; background: rgba(0, 0, 0, .94); display: grid; place-items: center; visibility: hidden; opacity: 0; transition: .2s; }
.lightbox.open { visibility: visible; opacity: 1; }
.lightbox img { max-width: calc(100vw - 140px); max-height: calc(100vh - 100px); object-fit: contain; }
.lightbox .icon-btn { position: absolute; color: #fff; background: rgba(255,255,255,.12); width: 46px; height: 46px; }
.lightbox .icon-btn:hover { background: rgba(255,255,255,.22); }
.lb-x { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: #fff; font-size: .88rem; opacity: .8; }

/* ---------- Benefits & footer ---------- */
.benefits { background: var(--yellow-soft); padding: 30px 0 34px; margin-top: 36px; }
.benefits-title { text-align: center; font-family: var(--display); font-weight: 800; font-size: 1.15rem; margin-bottom: 20px; }
.benefits-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; text-align: center; }
.benefits-grid > div { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.benefit-ic { display: grid; place-items: center; width: 74px; height: 74px; border-radius: 50%; background: var(--yellow); font-size: 34px; margin-bottom: 6px; }
.benefits-grid strong { font-size: .88rem; }
.benefits-grid small { font-size: .74rem; color: var(--ink-2); }
.site-footer { background: var(--card); color: var(--ink-2); padding-top: 36px; border-top: 1px solid var(--line); }
.footer-in { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; }
.site-footer h4 { color: var(--ink); font-size: .88rem; margin-bottom: 12px; text-transform: uppercase; letter-spacing: .04em; }
.site-footer a { display: block; padding: 4px 0; font-size: .86rem; }
.site-footer a:hover { color: var(--ink); }
.footer-about p { margin: 12px 0; font-size: .86rem; max-width: 380px; }
.footer-contact { display: grid; gap: 6px; font-size: .84rem; }
.footer-contact span { display: flex; gap: 8px; align-items: center; }
.footer-contact .i { width: 16px; height: 16px; }
.socials { display: flex; gap: 14px; margin-top: 10px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 20px; padding-bottom: 22px; margin-top: 28px; border-top: 1px solid var(--line); font-size: .8rem; }
.pay-chips { display: flex; gap: 8px; }
.pay-chips em { font-style: normal; padding: 3px 9px; border-radius: 4px; background: var(--card-2); font-size: .74rem; font-weight: 500; }
.bottom-nav { display: none; }
.installer { max-width: 760px; margin: 40px auto; padding: 0 16px; }
.req-list { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; }
.req-list li { display: flex; justify-content: space-between; padding: 10px 14px; border-radius: 8px; background: var(--card-2); font-size: .88rem; }

/* ==========================================================================
   Responsive
   ========================================================================== */
.only-mobile { display: none !important; }

@media (min-width: 640px) {
  .pgrid { --cols: 3; gap: 16px 12px; }
  .frames { grid-template-columns: repeat(4, 1fr); }
  .look { flex-basis: 150px; }
  .palette-card { flex-basis: 180px; }
  .circles { grid-template-columns: repeat(6, 1fr); }
}

@media (min-width: 1000px) {
  .pgrid { --cols: 5; gap: 22px 14px; }
  .pgrid.cols-4 { --cols: 4; }
  .hero { height: 460px; border-radius: 0 0 14px 14px; }
  .slide-edit { flex-direction: row; justify-content: center; gap: 48px; padding: 24px 40px; }
  .edit-kicker { order: 2; max-width: 280px; text-align: left; font-family: var(--display); font-weight: 900; font-size: 2.2rem; line-height: 1.1; text-transform: uppercase; }
  .edit-card { width: 380px; flex: none; height: 410px; }
  .slide-content { bottom: 70px; }
  .slide-art { top: 50%; left: auto; right: 10%; transform: translateY(-50%); font-size: 180px; }
  .slide-banner .slide-content { align-items: flex-start; text-align: left; left: 8%; right: 40%; bottom: auto; top: 50%; transform: translateY(-50%); }
  .hot-cats { grid-auto-flow: row; grid-template-rows: none; grid-template-columns: repeat(12, 1fr); grid-auto-columns: auto; }
  .offers { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .offer { flex-direction: row; align-items: stretch; min-height: 240px; }
  .offer img { width: 50%; aspect-ratio: auto; }
  .offer-big { left: 50%; right: 12px; bottom: auto; top: 50%; transform: translateY(-70%); font-size: 2.3rem; }
  .offer-btn { position: absolute; left: calc(50% + 24px); right: 24px; bottom: 22px; }
  .offer::before { display: none; }
  .looks { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); overflow: visible; }
  .palette { display: grid; grid-template-columns: repeat(6, 1fr); overflow: visible; }
  .promo-wide { min-height: 260px; }
  .promo-wide-text { padding: 36px 48px; }
  .circles { grid-template-columns: repeat(12, 1fr); }
  .pd { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; padding-top: 20px; }
  .pd-media { margin: 0; position: sticky; top: calc(var(--header-h) + 60px); align-self: start; }
  .pg-slide { flex-basis: 100%; aspect-ratio: 4 / 5; border-radius: 8px; overflow: hidden; }
  .pg-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
  .pg-thumbs button { flex: 0 0 68px; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; background: var(--card-2); }
  .pg-thumbs button.active { border-color: var(--ink); }
  .pg-thumbs img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
  .pd-info { padding-top: 0; }
  .pd-title { font-size: 1.3rem; }
  .pd-sections { max-width: 900px; }
  .feed-tabs { justify-content: center; }
}

@media (max-width: 1080px) {
  .pd-lower { grid-template-columns: minmax(0, 1fr); }
  .store-box { position: static; }
  .cart-layout { grid-template-columns: minmax(0, 1fr); }
  .summary { position: static; }
  .dash { grid-template-columns: minmax(0, 1fr); }
  .dash-side { position: static; padding: 6px; }
  .dash-who { display: none; }
  .dash-nav { display: flex; overflow-x: auto; gap: 4px; scrollbar-width: none; }
  .dash-nav::-webkit-scrollbar { display: none; }
  .dash-nav a { white-space: nowrap; flex: none; }
  .dash-switch { display: none; }
  .dash-grid { grid-template-columns: minmax(0, 1fr); }
  .editor { grid-template-columns: minmax(0, 1fr); }
  .preview-pane { position: static; max-width: 280px; }
  .rfq-banner { grid-template-columns: minmax(0, 1fr); }
  .footer-in { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  :root { --header-h: 54px; }
  body { padding-bottom: 64px; }
  body.has-buybar { padding-bottom: 84px; }
  .only-mobile { display: inline-grid !important; }
  .hide-mobile { display: none !important; }
  .logo-text { font-size: 1.5rem; }
  .trustbar-in { justify-content: space-between; gap: 8px; }
  .trustbar span { font-size: .7rem; }
  .trustbar .i { width: 18px; height: 18px; }
  .section { margin-top: 24px; margin-bottom: 24px; }
  .pgrid, .pgrid.cols-4 { --cols: 2; gap: 12px 8px; }
  .qv { grid-template-columns: minmax(0, 1fr); }
  .modal { padding: 0; align-items: end; }
  .modal-box { border-radius: 16px 16px 0 0; max-height: 92vh; }
  .modal-body { padding: 16px; }
  .lightbox img { max-width: 100vw; }
  .lb-prev, .lb-next { top: auto !important; bottom: 12px; transform: none !important; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .form-grid .span-2 { grid-column: auto; }
  .cart-item { grid-template-columns: 76px minmax(0, 1fr); }
  .cart-item img { width: 76px; }
  .cart-item-right { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .auth { grid-template-columns: minmax(0, 1fr); margin: 12px auto; border-radius: 14px; }
  .auth-art { display: none; }
  .auth-form { padding: 26px 18px; }
  .chat { grid-template-columns: minmax(0, 1fr); height: calc(100vh - 190px); }
  .chat.has-active .chat-list { display: none; }
  .chat:not(.has-active) .chat-main { display: none; }
  .chat-back { display: inline-grid; }
  .chat-product { display: none; }
  .msg { max-width: 86%; }
  .tl-step { font-size: .66rem; }
  .rfq-item { grid-template-columns: minmax(0, 1fr); }
  .store-banner { height: 130px; }
  .store-hero-body { padding: 0 14px 14px; }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 12px; }
  .footer-in { grid-template-columns: 1fr 1fr; gap: 18px; }
  .footer-about { grid-column: 1 / -1; }
  .dash { padding-top: 12px; }
  .dash-head h1 { font-size: 1.25rem; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 12px; gap: 10px; flex-direction: column; align-items: flex-start; }
  .stat-icon { width: 38px; height: 38px; }
  .stat strong { font-size: 1.1rem; }
  .card { padding: 16px; border-radius: 12px; }
  .toasts { top: auto; bottom: 90px; }
  .buybar-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; margin: 0; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: var(--card); border-top: 1px solid var(--line); grid-template-columns: 46px 46px minmax(0, 1fr) auto; }
  .has-buybar .bottom-nav { display: none !important; }
  .bottom-nav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--card); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .bottom-nav a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1px; font-size: .64rem; color: var(--ink-2); padding: 3px 0; }
  .bottom-nav .i { width: 23px; height: 23px; color: var(--ink); }
  .bottom-nav .count { position: absolute; top: 0; left: calc(50% + 4px); }
  .stitle a { position: static; transform: none; display: flex; justify-content: center; margin-top: 2px; }
}

@media (max-width: 380px) {
  .buybar-sticky { grid-template-columns: 44px minmax(0, 1fr) auto; }
  .buybar-sticky .buybar-ic:nth-child(2) { display: none; }
  .buybar-add small { display: none; }
  .appbar-text strong { font-size: .76rem; }
}

@media (min-width: 821px) {
  .sheet-panel { left: auto; top: 0; width: 420px; max-height: none; height: 100%; border-radius: 0; transform: translateX(100%); }
  .sheet-foot { bottom: -16px; }
}

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