/* ==========================================================================
   Oyunpax — vitrin tasarım sistemi
   Renkler admin'den (Site Ayarları > Renkler & Tema) gelen değişkenlerle ezilir:
   --px-primary, --px-accent, --px-bg (layouts/app.blade.php içinde)
   ========================================================================== */

:root {
    --px-bg: #05070d;
    --px-primary: #1668ff;
    --px-accent: #0a98f8;

    --bg: var(--px-bg);
    --bg-2: color-mix(in srgb, var(--px-bg) 97%, #fff 3%);
    --surface: color-mix(in srgb, var(--px-bg) 94%, #fff 6%);
    --surface-2: color-mix(in srgb, var(--px-bg) 90%, #fff 10%);
    --surface-3: color-mix(in srgb, var(--px-bg) 85%, #fff 15%);
    --line: rgba(255, 255, 255, .07);
    --line-2: rgba(255, 255, 255, .13);
    --text: #f3f3f6;
    --text-2: #a6a6b4;
    --text-3: #6c6c7c;

    --primary: var(--px-primary);
    --primary-ink: var(--px-primary-ink, #fff);
    --primary-soft: color-mix(in srgb, var(--px-primary) 14%, transparent);
    --primary-line: color-mix(in srgb, var(--px-primary) 40%, transparent);
    --accent: var(--px-accent);
    --accent-soft: color-mix(in srgb, var(--px-accent) 16%, transparent);
    --hot: #ff3d6e;
    --hot-soft: rgba(255, 61, 113, .14);
    --ok: #2ee59d;
    --ok-soft: rgba(46, 229, 157, .12);
    --warn: #ffb020;
    --warn-soft: rgba(255, 176, 32, .13);
    --info: #38bdf8;
    --star: #ffc94d;

    --r-xs: 6px;
    --r-sm: 10px;
    --r: 14px;
    --r-lg: 20px;
    --r-xl: 28px;
    --shadow: 0 10px 30px rgba(0, 0, 0, .35);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, .55);

    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
    --wrap: 1320px;
    --gutter: 20px;
    --header-h: 72px;
    --ease: cubic-bezier(.2, .8, .2, 1);

    color-scheme: dark;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 400 15px/1.55 var(--font);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-family: var(--font-display); font-weight: 700; line-height: 1.15; letter-spacing: -.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
table { border-collapse: collapse; width: 100%; }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
[hidden] { display: none !important; }
::selection { background: var(--primary); color: var(--primary-ink); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
.sr-only, .visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.px-skip { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: var(--primary); color: var(--primary-ink); padding: 10px 16px; border-radius: var(--r-sm); font-weight: 600; }
.px-skip:focus { left: 8px; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 10px; border: 2px solid var(--bg); }

/* ---------- layout ---------- */
.px-wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.px-main { min-height: 60vh; padding-bottom: 72px; }
.px-section { margin-top: 56px; }
.px-section--tight { margin-top: 32px; }
.px-grid { display: grid; gap: 16px; }
.px-stack { display: flex; flex-direction: column; gap: 16px; }
.px-row { display: flex; align-items: center; gap: 12px; }
.px-row--between { justify-content: space-between; }
.px-row--wrap { flex-wrap: wrap; }
.px-muted { color: var(--text-2); }
.px-dim { color: var(--text-3); }
.px-mono { font-family: ui-monospace, 'JetBrains Mono', SFMono-Regular, Menlo, monospace; }
.px-ok { color: var(--ok); }
.px-hot { color: var(--hot); }
.px-center { text-align: center; }
.px-mt { margin-top: 16px; }
.px-mt-lg { margin-top: 32px; }

/* ---------- typography ---------- */
.px-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font: 600 12px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--primary);
}
.px-eyebrow::before { content: ''; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.px-h1 { font-size: clamp(30px, 4.2vw, 52px); }
.px-h2 { font-size: clamp(22px, 2.6vw, 32px); }
.px-h3 { font-size: 20px; }
.px-lead { color: var(--text-2); font-size: 16px; max-width: 640px; }
.px-hl { color: var(--primary); }
.px-prose { color: #d7d7df; font-size: 15.5px; line-height: 1.75; overflow-wrap: anywhere; }
.px-prose > * + * { margin-top: 1em; }
.px-prose h1, .px-prose h2, .px-prose h3, .px-prose h4 { color: var(--text); margin-top: 1.6em; }
.px-prose h2 { font-size: 24px; } .px-prose h3 { font-size: 19px; }
.px-prose a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.px-prose ul, .px-prose ol { padding-left: 1.3em; }
.px-prose ul { list-style: disc; } .px-prose ol { list-style: decimal; }
.px-prose li + li { margin-top: .35em; }
.px-prose img { border-radius: var(--r); margin: 1.2em 0; }
.px-prose table { border: 1px solid var(--line-2); border-radius: var(--r-sm); overflow: hidden; display: block; overflow-x: auto; }
.px-prose th, .px-prose td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.px-prose blockquote { margin: 0; padding: 14px 18px; border-left: 3px solid var(--primary); background: var(--surface); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.px-prose strong { color: var(--text); }

/* ---------- buttons ---------- */
.px-btn {
    --b-bg: var(--surface-2); --b-fg: var(--text); --b-line: var(--line-2);
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 46px; padding: 0 20px; border-radius: var(--r-sm);
    background: var(--b-bg); color: var(--b-fg); border: 1px solid var(--b-line);
    font: 600 14.5px/1 var(--font); letter-spacing: -.005em; white-space: nowrap;
    transition: transform .15s var(--ease), background .2s, border-color .2s, box-shadow .2s, opacity .2s;
    position: relative; user-select: none;
}
.px-btn:hover { border-color: var(--text-3); }
.px-btn:active { transform: translateY(1px) scale(.99); }
.px-btn i { font-size: 18px; }
.px-btn--primary { --b-bg: var(--primary); --b-fg: var(--primary-ink); --b-line: var(--primary); }
.px-btn--primary:hover { box-shadow: 0 8px 28px color-mix(in srgb, var(--primary) 35%, transparent); border-color: var(--primary); filter: brightness(1.05); }
.px-btn--accent { --b-bg: var(--accent); --b-fg: #fff; --b-line: var(--accent); }
.px-btn--accent:hover { box-shadow: 0 8px 28px color-mix(in srgb, var(--accent) 40%, transparent); border-color: var(--accent); }
.px-btn--ghost { --b-bg: transparent; --b-line: var(--line-2); }
.px-btn--ghost:hover { --b-bg: var(--surface); }
.px-btn--soft { --b-bg: var(--primary-soft); --b-fg: var(--primary); --b-line: var(--primary-line); }
.px-btn--danger { --b-bg: var(--hot-soft); --b-fg: var(--hot); --b-line: rgba(255, 61, 113, .35); }
.px-btn--sm { height: 36px; padding: 0 14px; font-size: 13px; border-radius: 9px; }
.px-btn--sm i { font-size: 16px; }
.px-btn--lg { height: 54px; padding: 0 28px; font-size: 16px; border-radius: var(--r); }
.px-btn--block { width: 100%; }
.px-btn--icon { width: 46px; padding: 0; }
.px-btn--sm.px-btn--icon { width: 36px; }
.px-btn[disabled], .px-btn.is-disabled { opacity: .45; pointer-events: none; }
.px-btn.is-loading { color: transparent !important; pointer-events: none; }
.px-btn.is-loading::after {
    content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%;
    border: 2px solid var(--b-fg); border-right-color: transparent; animation: px-spin .7s linear infinite;
}
@keyframes px-spin { to { transform: rotate(360deg); } }
.px-link { color: var(--primary); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.px-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- chips / badges ---------- */
.px-chip {
    display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px;
    border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2);
    font-size: 13.5px; font-weight: 500; color: var(--text-2); white-space: nowrap; transition: .2s;
}
.px-chip:hover { color: var(--text); border-color: var(--text-3); }
.px-chip.is-active, .px-chip[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); font-weight: 600; }
.px-chip i { font-size: 16px; }
.px-badge {
    display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 6px;
    font: 700 11px/1 var(--font); letter-spacing: .04em; text-transform: uppercase;
    background: var(--surface-3); color: var(--text);
}
.px-badge--primary { background: var(--primary); color: var(--primary-ink); }
.px-badge--hot { background: var(--hot); color: #fff; }
.px-badge--accent { background: var(--accent); color: #fff; }
.px-badge--ok { background: var(--ok-soft); color: var(--ok); }
.px-badge--warn { background: var(--warn-soft); color: var(--warn); }
.px-badge--info { background: rgba(56, 189, 248, .14); color: var(--info); }
.px-badge--muted { background: var(--surface-2); color: var(--text-2); }
.px-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); display: inline-block; }

/* ---------- cards / panels ---------- */
.px-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.px-card--pad { padding: 24px; }
.px-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.px-card__head h2, .px-card__head h3 { font-size: 17px; }
.px-card__body { padding: 22px; }
.px-card__foot { padding: 16px 22px; border-top: 1px solid var(--line); }
.px-empty { text-align: center; padding: 56px 20px; color: var(--text-2); }
.px-empty > i { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 22px; background: var(--surface-2); font-size: 32px; color: var(--text-3); margin-bottom: 18px; }
.px-empty h3 { color: var(--text); font-size: 19px; margin-bottom: 6px; }
.px-empty .px-btn { margin-top: 20px; }

/* ---------- forms ---------- */
.px-field { display: flex; flex-direction: column; gap: 7px; }
.px-field + .px-field { margin-top: 16px; }
.px-label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.px-label small { font-weight: 400; color: var(--text-3); }
.px-input, .px-select, .px-textarea {
    width: 100%; height: 48px; padding: 0 16px; border-radius: var(--r-sm);
    background: var(--bg-2); border: 1px solid var(--line-2); color: var(--text);
    font-size: 15px; transition: border-color .2s, box-shadow .2s, background .2s; outline: none;
}
.px-textarea { height: auto; min-height: 120px; padding: 14px 16px; resize: vertical; line-height: 1.55; }
.px-select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23a6a6b4' stroke-width='2'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.px-select option { background: #15151c; }
.px-input::placeholder, .px-textarea::placeholder { color: var(--text-3); }
.px-input:focus, .px-select:focus, .px-textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); background: var(--surface); }
.px-input--sm { height: 40px; font-size: 14px; }
.px-input-group { position: relative; display: flex; }
.px-input-group > i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--text-3); font-size: 18px; pointer-events: none; }
.px-input-group > i + .px-input { padding-left: 44px; }
.px-input-group .px-btn { position: absolute; right: 5px; top: 5px; height: 38px; }
.px-help { font-size: 12.5px; color: var(--text-3); }
.px-error { font-size: 12.5px; color: var(--hot); }
.px-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.px-form-grid .px-field + .px-field { margin-top: 0; }
.px-form-grid .px-span-2 { grid-column: 1 / -1; }
.px-check { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--text-2); cursor: pointer; line-height: 1.5; }
.px-check + .px-check { margin-top: 10px; }
.px-check input { appearance: none; flex: none; width: 20px; height: 20px; margin: 1px 0 0; border-radius: 6px; border: 1.5px solid var(--line-2); background: var(--bg-2); display: grid; place-items: center; cursor: pointer; transition: .15s; }
.px-check input[type="radio"] { border-radius: 50%; }
.px-check input:checked { background: var(--primary); border-color: var(--primary); }
.px-check input:checked::after { content: ''; width: 10px; height: 6px; border: 2px solid var(--primary-ink); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.px-check input[type="radio"]:checked::after { width: 8px; height: 8px; border: 0; border-radius: 50%; background: var(--primary-ink); transform: none; }
.px-check a { color: var(--primary); }
.px-switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; }
.px-switch input { appearance: none; width: 42px; height: 24px; border-radius: 99px; background: var(--surface-3); position: relative; cursor: pointer; transition: .2s; margin: 0; }
.px-switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: .2s var(--ease); }
.px-switch input:checked { background: var(--primary); }
.px-switch input:checked::after { left: 21px; background: var(--primary-ink); }

/* qty stepper */
.px-qty { display: inline-flex; align-items: center; height: 46px; border-radius: var(--r-sm); background: var(--bg-2); border: 1px solid var(--line-2); overflow: hidden; }
.px-qty button { width: 40px; height: 100%; display: grid; place-items: center; color: var(--text-2); font-size: 18px; transition: .15s; }
.px-qty button:hover { color: var(--primary); background: var(--surface); }
.px-qty input { width: 44px; height: 100%; text-align: center; background: transparent; border: 0; outline: none; font-weight: 600; -moz-appearance: textfield; }
.px-qty input::-webkit-outer-spin-button, .px-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.px-qty--sm { height: 36px; }
.px-qty--sm button { width: 32px; }
.px-qty--sm input { width: 34px; font-size: 14px; }

/* ---------- alerts / flash ---------- */
.px-alert { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--surface); font-size: 14px; color: var(--text-2); }
.px-alert > i { font-size: 20px; flex: none; margin-top: -1px; }
.px-alert b, .px-alert strong { color: var(--text); }
.px-alert--ok { border-color: rgba(46, 229, 157, .3); background: var(--ok-soft); }
.px-alert--ok > i { color: var(--ok); }
.px-alert--error { border-color: rgba(255, 61, 113, .35); background: var(--hot-soft); }
.px-alert--error > i { color: var(--hot); }
.px-alert--warn { border-color: rgba(255, 176, 32, .35); background: var(--warn-soft); }
.px-alert--warn > i { color: var(--warn); }
.px-alert--info > i { color: var(--primary); }
.px-alert__body { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.px-alert__close { color: var(--text-3); font-size: 18px; }
.px-flash { margin-top: 18px; transition: opacity .4s, transform .4s; }
.px-flash.is-out { opacity: 0; transform: translateY(-6px); }

/* ---------- toast ---------- */
.px-toasts { position: fixed; right: 18px; bottom: 18px; z-index: 2000; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.px-toast {
    pointer-events: auto; display: flex; align-items: center; gap: 12px; min-width: 280px; max-width: 400px; padding: 14px 16px;
    border-radius: var(--r); background: color-mix(in srgb, var(--surface-2) 92%, transparent); border: 1px solid var(--line-2);
    box-shadow: var(--shadow-lg); backdrop-filter: blur(14px); font-size: 14px;
    transform: translateY(14px) scale(.98); opacity: 0; transition: .3s var(--ease);
}
.px-toast.is-in { transform: none; opacity: 1; }
.px-toast > i { font-size: 22px; color: var(--ok); }
.px-toast--error > i { color: var(--hot); }
.px-toast--info > i { color: var(--primary); }
.px-toast span { flex: 1; }
.px-toast button { color: var(--text-3); font-size: 18px; }

/* ---------- breadcrumb / page head ---------- */
.px-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--text-3); padding: 22px 0 0; }
.px-crumbs a:hover { color: var(--text); }
.px-crumbs i { font-size: 14px; }
.px-crumbs span:last-child { color: var(--text-2); }
.px-pagehead { padding: 28px 0 8px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.px-pagehead h1 { font-size: clamp(26px, 3.4vw, 40px); }
.px-pagehead p { color: var(--text-2); margin-top: 8px; max-width: 680px; }
.px-hero-band {
    position: relative; overflow: hidden; margin-top: 20px; padding: 40px; border-radius: var(--r-xl);
    background: radial-gradient(120% 140% at 100% 0%, var(--accent-soft), transparent 55%), radial-gradient(80% 120% at 0% 100%, var(--primary-soft), transparent 60%), var(--surface);
    border: 1px solid var(--line);
}
.px-hero-band::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 40px 40px; mask-image: linear-gradient(90deg, transparent, #000 70%); opacity: .6; pointer-events: none; }
.px-hero-band > * { position: relative; z-index: 1; }

/* ---------- section head ---------- */
.px-shead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.px-shead__t { display: flex; align-items: center; gap: 14px; min-width: 0; }
.px-shead__ic { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: var(--primary-soft); color: var(--primary); font-size: 22px; border: 1px solid var(--primary-line); }
.px-shead h2 { font-size: clamp(21px, 2.3vw, 28px); }
.px-shead p { color: var(--text-2); font-size: 14px; margin-top: 4px; }
.px-shead__act { display: flex; align-items: center; gap: 8px; flex: none; }

/* ---------- tabs ---------- */
.px-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; width: max-content; max-width: 100%; }
.px-tabs::-webkit-scrollbar { display: none; }
.px-tab { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--text-2); transition: .2s; white-space: nowrap; }
.px-tab:hover { color: var(--text); }
.px-tab i { font-size: 17px; }
.px-tab.is-active { background: var(--surface-3); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.px-tab.is-active i { color: var(--primary); }
.px-tabs--line { background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 0; width: 100%; gap: 24px; }
.px-tabs--line .px-tab { padding: 0; height: 48px; border-radius: 0; position: relative; }
.px-tabs--line .px-tab.is-active { background: none; box-shadow: none; }
.px-tabs--line .px-tab.is-active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--primary); border-radius: 2px; }
.px-pane { display: none; }
.px-pane.is-active { display: block; animation: px-fade .35s var(--ease); }
@keyframes px-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- rail (yatay kaydırmalı liste) ---------- */
.px-rail { position: relative; }
.px-rail__track {
    display: grid; grid-auto-flow: column; grid-auto-columns: var(--rail-col, calc((100% - 16px * 5) / 6)); gap: 16px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px 8px; margin: -4px -2px -8px;
    overscroll-behavior-x: contain;
}
.px-rail__track::-webkit-scrollbar { display: none; }
.px-rail__track > * { scroll-snap-align: start; min-width: 0; }
.px-rail__nav {
    position: absolute; top: 38%; z-index: 3; width: 42px; height: 42px; border-radius: 50%;
    display: grid; place-items: center; font-size: 22px; background: color-mix(in srgb, var(--surface-3) 90%, transparent);
    border: 1px solid var(--line-2); color: var(--text); box-shadow: var(--shadow); backdrop-filter: blur(8px); transition: .2s;
}
.px-rail__nav:hover { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.px-rail__nav--prev { left: -18px; }
.px-rail__nav--next { right: -18px; }
.px-rail__nav[disabled] { opacity: 0; pointer-events: none; }
.px-rail--5 { --rail-col: calc((100% - 16px * 4) / 5); }
.px-rail--4 { --rail-col: calc((100% - 16px * 3) / 4); }
.px-rail--3 { --rail-col: calc((100% - 16px * 2) / 3); }

/* ---------- product card ---------- */
.px-pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(186px, 1fr)); gap: 18px 16px; }
.px-pgrid--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.px-pgrid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.px-pgrid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.px-pc { position: relative; display: flex; flex-direction: column; min-width: 0; border-radius: var(--r); transition: transform .25s var(--ease); }
.px-pc__media {
    position: relative; display: block; aspect-ratio: 3 / 4; border-radius: var(--r); overflow: hidden;
    background: var(--surface-2); isolation: isolate; border: 1px solid var(--line);
}
.px-pc__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease), filter .3s; }
.px-pc__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .72)); opacity: .85; transition: .3s; z-index: 1; }
.px-pc:hover .px-pc__media img { transform: scale(1.06); }
.px-pc:hover .px-pc__media { border-color: var(--primary-line); }
.px-pc__tags { position: absolute; top: 10px; left: 10px; right: 10px; z-index: 2; display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-start; }
.px-pc__off { margin-left: auto; height: 26px; padding: 0 9px; display: inline-flex; align-items: center; border-radius: 8px; background: var(--hot); color: #fff; font: 800 12.5px/1 var(--font-display); letter-spacing: -.01em; box-shadow: 0 4px 14px rgba(255, 61, 113, .45); }
.px-pc__plat { position: absolute; left: 10px; bottom: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; color: #fff; padding: 4px 8px; border-radius: 7px; background: rgba(0, 0, 0, .55); backdrop-filter: blur(6px); max-width: calc(100% - 20px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.px-pc__plat i { font-size: 13px; color: var(--primary); }
.px-pc__rate { position: absolute; right: 10px; bottom: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 700; color: #fff; padding: 4px 7px; border-radius: 7px; background: rgba(0, 0, 0, .55); backdrop-filter: blur(6px); }
.px-pc__rate i { color: var(--star); font-size: 12px; }
.px-pc__fav { position: absolute; top: 10px; right: 10px; z-index: 3; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: rgba(0, 0, 0, .5); backdrop-filter: blur(6px); color: #fff; font-size: 17px; opacity: 0; transform: translateY(-4px); transition: .2s; }
.px-pc:hover .px-pc__fav, .px-pc__fav.is-active { opacity: 1; transform: none; }
.px-pc__fav.is-active { color: var(--hot); }
.px-pc:has(.px-pc__off) .px-pc__fav { top: 44px; }
.px-pc__body { padding: 12px 2px 0; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.px-pc__name { font-size: 14px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; color: #e9e9ef; }
.px-pc__name:hover { color: var(--primary); }
.px-pc__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: auto; }
.px-price { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.px-price del { font-size: 12.5px; color: var(--text-3); }
.px-price b { font: 700 18px/1.15 var(--font-display); letter-spacing: -.02em; color: var(--text); white-space: nowrap; }
.px-price--disc b { color: var(--primary); }
.px-pc__add { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text); font-size: 19px; transition: .2s var(--ease); position: relative; }
.px-pc__add:hover { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); transform: translateY(-2px); }
.px-pc__add.is-loading i { opacity: 0; }
.px-pc__add.is-loading::after { content: ''; position: absolute; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: px-spin .7s linear infinite; }
.px-pc--oos .px-pc__media img { filter: grayscale(.8) brightness(.7); }

/* list row variant */
.px-prow { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: var(--r-sm); transition: background .2s; }
.px-prow:hover { background: var(--surface-2); }
.px-prow img { width: 44px; height: 58px; object-fit: cover; border-radius: 8px; flex: none; background: var(--surface-2); }
.px-prow__b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.px-prow__n { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.px-prow__p { font: 700 14px/1 var(--font-display); color: var(--primary); }
.px-prow > i { color: var(--text-3); font-size: 18px; }

/* ---------- pagination ---------- */
.px-pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 40px; }
.px-pager a, .px-pager span { min-width: 42px; height: 42px; padding: 0 12px; display: inline-grid; place-items: center; border-radius: 11px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: 14px; color: var(--text-2); transition: .2s; }
.px-pager a:hover { color: var(--text); border-color: var(--line-2); }
.px-pager .is-active { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.px-pager .is-gap { background: none; border: 0; }

/* ---------- drawer / modal ---------- */
.px-overlay { position: fixed; inset: 0; z-index: 1500; background: rgba(4, 4, 8, .62); backdrop-filter: blur(4px); opacity: 0; visibility: hidden; transition: .3s; }
.px-drawer { position: fixed; top: 0; bottom: 0; right: 0; z-index: 1501; width: min(440px, 100%); background: var(--bg-2); border-left: 1px solid var(--line-2); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .4s var(--ease); box-shadow: var(--shadow-lg); }
.px-drawer--left { right: auto; left: 0; border-left: 0; border-right: 1px solid var(--line-2); transform: translateX(-100%); }
.px-drawer.is-open { transform: none; }
.px-drawer.is-open + .px-overlay, .px-overlay.is-open { opacity: 1; visibility: visible; }
.px-drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.px-drawer__head h2 { font-size: 18px; display: flex; align-items: center; gap: 10px; }
.px-drawer__head h2 small { font: 600 12px var(--font); color: var(--primary-ink); background: var(--primary); padding: 3px 8px; border-radius: 99px; }
.px-drawer__body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.px-drawer__foot { padding: 18px 20px; border-top: 1px solid var(--line); background: var(--surface); }
.px-x { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-size: 20px; color: var(--text-2); background: var(--surface); border: 1px solid var(--line); transition: .2s; }
.px-x:hover { color: var(--text); border-color: var(--line-2); }
.px-modal { position: fixed; inset: 0; z-index: 1600; display: grid; place-items: center; padding: 20px; opacity: 0; visibility: hidden; transition: .3s; }
.px-modal.is-open { opacity: 1; visibility: visible; }
.px-modal__bg { position: absolute; inset: 0; background: rgba(4, 4, 8, .72); backdrop-filter: blur(6px); }
.px-modal__panel { position: relative; width: min(520px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); transform: translateY(16px) scale(.98); transition: .35s var(--ease); }
.px-modal.is-open .px-modal__panel { transform: none; }
.px-modal__panel > .px-x { position: absolute; top: 14px; right: 14px; z-index: 2; }
body.px-lock { overflow: hidden; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.px-topbar { background: var(--bg); border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--text-2); position: relative; z-index: 60; }
.px-topbar__in { display: flex; align-items: center; gap: 20px; height: 38px; }
.px-ticker { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; overflow: hidden; }
.px-ticker__label { flex: none; display: inline-flex; align-items: center; gap: 7px; font-weight: 700; color: var(--text); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; }
.px-ticker__vp { flex: 1; min-width: 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 92%, transparent); }
.px-ticker__track { display: flex; width: max-content; animation: px-marquee var(--tk-speed, 40s) linear infinite; }
.px-ticker__vp:hover .px-ticker__track { animation-play-state: paused; }
.px-ticker__item { display: inline-flex; align-items: center; gap: 8px; padding-right: 40px; white-space: nowrap; }
.px-ticker__item b { color: var(--tk, var(--primary)); font-weight: 700; }
.px-ticker__item i { color: var(--tk, var(--primary)); }
.px-ticker__item:hover span { color: var(--text); }
@keyframes px-marquee { to { transform: translateX(-50%); } }
.px-topbar__links { display: flex; align-items: center; gap: 16px; flex: none; }
.px-topbar__links a { display: inline-flex; align-items: center; gap: 6px; transition: color .2s; }
.px-topbar__links a:hover { color: var(--text); }
.px-topbar__links a i { font-size: 14px; color: var(--primary); }
.px-topbar__sep { width: 1px; height: 14px; background: var(--line-2); }

.px-dd { position: relative; }
.px-dd__btn { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 8px; border-radius: 8px; color: var(--text-2); font-size: 12.5px; font-weight: 600; transition: .2s; }
.px-dd__btn:hover, .px-dd.is-open .px-dd__btn { color: var(--text); background: var(--surface); }
.px-dd__menu {
    position: absolute; top: calc(100% + 8px); right: 0; min-width: 200px; z-index: 80; padding: 6px;
    background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(-4px); transition: .2s var(--ease);
}
.px-dd.is-open .px-dd__menu { opacity: 1; visibility: visible; transform: none; }
.px-dd__item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border-radius: 9px; font-size: 13.5px; color: var(--text-2); text-align: left; transition: .15s; }
.px-dd__item:hover { background: var(--surface-3); color: var(--text); }
.px-dd__item.is-active { color: var(--primary); }
.px-dd__item i { font-size: 17px; }
.px-dd__item b { color: var(--text); font-weight: 600; }
.px-dd__sep { height: 1px; background: var(--line); margin: 6px 4px; }

.px-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(160%) blur(18px); border-bottom: 1px solid var(--line); transition: box-shadow .3s; }
.px-header.is-scrolled { box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.px-header__in { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.px-logo { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.px-logo img { height: 44px; width: auto; max-width: 210px; object-fit: contain; }
.px-logo__mark { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--primary); color: var(--primary-ink); font: 800 20px/1 var(--font-display); transform: rotate(-6deg); box-shadow: 0 6px 18px color-mix(in srgb, var(--primary) 35%, transparent); }
.px-logo__word { font: 700 23px/1 var(--font-display); letter-spacing: -.04em; }
.px-logo__word span { color: var(--primary); }

.px-search { position: relative; flex: 1; max-width: 640px; }
.px-search__box { position: relative; display: flex; align-items: center; height: 48px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-2); transition: .2s; }
.px-search__box:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); background: var(--surface-2); }
.px-search__box > i { position: absolute; left: 16px; font-size: 20px; color: var(--text-3); pointer-events: none; }
.px-search__input { flex: 1; height: 100%; padding: 0 16px 0 48px; background: transparent; border: 0; outline: none; font-size: 15px; min-width: 0; }
.px-search__input::placeholder { color: var(--text-3); }
.px-search__kbd { margin-right: 8px; font: 600 11px/1 var(--font); color: var(--text-3); padding: 5px 7px; border-radius: 6px; border: 1px solid var(--line-2); }
.px-search__go { margin-right: 5px; height: 38px; padding: 0 16px; border-radius: 10px; background: var(--primary); color: var(--primary-ink); font-weight: 700; font-size: 13.5px; display: none; }
.px-search__box:focus-within .px-search__kbd { display: none; }
.px-search__box:focus-within .px-search__go { display: inline-flex; align-items: center; }
.px-suggest {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 90; max-height: min(70vh, 560px); overflow-y: auto;
    background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 8px;
}
.px-suggest__label { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); padding: 10px 12px 6px; }
.px-suggest__item { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 11px; transition: .15s; }
.px-suggest__item:hover, .px-suggest__item.is-focus { background: var(--surface-3); }
.px-suggest__item img { width: 40px; height: 52px; border-radius: 7px; object-fit: cover; flex: none; background: var(--surface); }
.px-suggest__item--cat img { width: 40px; height: 40px; object-fit: contain; padding: 6px; }
.px-suggest__b { flex: 1; min-width: 0; }
.px-suggest__n { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.px-suggest__p { font-size: 13px; color: var(--text-2); display: flex; gap: 8px; align-items: baseline; margin-top: 2px; }
.px-suggest__p b { color: var(--primary); font-family: var(--font-display); }
.px-suggest__p del { color: var(--text-3); font-size: 12px; }
.px-suggest__all { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 6px; padding: 12px; border-radius: 11px; background: var(--surface); font-weight: 600; font-size: 14px; color: var(--primary); }
.px-suggest__empty { padding: 26px 16px; text-align: center; color: var(--text-2); font-size: 14px; }
.px-suggest__empty b { display: block; color: var(--text); margin-bottom: 4px; }

.px-actions { display: flex; align-items: center; gap: 6px; flex: none; margin-left: auto; }
.px-act { position: relative; height: 46px; min-width: 46px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border-radius: 13px; color: var(--text); transition: .2s; border: 1px solid transparent; }
.px-act:hover, .px-dd.is-open > .px-act { background: var(--surface); border-color: var(--line); }
.px-act > i { font-size: 22px; }
.px-act__t { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.px-act__t small { font-size: 11.5px; color: var(--text-3); }
.px-act__t b { font-size: 13.5px; font-weight: 600; }
.px-act__n { position: absolute; top: 5px; left: 28px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--hot); color: #fff; font: 700 10.5px/18px var(--font); text-align: center; box-shadow: 0 0 0 2px var(--bg); }
.px-act--cart { background: var(--primary); color: var(--primary-ink); padding: 0 16px 0 14px; border-color: var(--primary); }
.px-act--cart:hover { background: var(--primary); filter: brightness(1.06); box-shadow: 0 8px 24px color-mix(in srgb, var(--primary) 30%, transparent); }
.px-act--cart .px-act__n { background: var(--primary-ink); color: var(--primary); box-shadow: none; position: static; }
.px-act--cart b { font-weight: 700; }
.px-acc-menu { min-width: 260px; }
.px-acc-menu__head { display: flex; align-items: center; gap: 12px; padding: 10px 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.px-avatar { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 40%, var(--primary))); color: #fff; font: 700 15px/1 var(--font-display); flex: none; text-transform: uppercase; }
.px-avatar--lg { width: 64px; height: 64px; border-radius: 18px; font-size: 24px; }
.px-acc-menu__head b { display: block; font-size: 14px; }
.px-acc-menu__head small { font-size: 12.5px; color: var(--primary); font-weight: 600; }
.px-qlogin { min-width: 300px; padding: 16px; }
.px-qlogin h3 { font-size: 17px; }
.px-qlogin p { font-size: 13px; color: var(--text-2); margin: 4px 0 14px; }
.px-qlogin .px-field + .px-field { margin-top: 10px; }
.px-qlogin__row { display: flex; justify-content: space-between; align-items: center; margin: 12px 0; font-size: 12.5px; }
.px-qlogin__row a { color: var(--text-2); }
.px-qlogin__row a:hover { color: var(--primary); }
.px-qlogin__alt { margin-top: 12px; text-align: center; font-size: 13px; color: var(--text-2); }
.px-qlogin__alt a { color: var(--primary); font-weight: 600; }

/* notification popover */
.px-notif { width: 380px; padding: 0; }
.px-notif__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.px-notif__head b { font-size: 15px; }
.px-notif__head button { font-size: 12.5px; color: var(--primary); font-weight: 600; }
.px-notif__list { max-height: 380px; overflow-y: auto; padding: 6px; }
.px-notif__foot { display: block; text-align: center; padding: 12px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--text-2); }
.px-notif__foot:hover { color: var(--primary); }
.px-ni { display: flex; gap: 12px; padding: 11px 10px; border-radius: 11px; transition: .15s; position: relative; }
.px-ni:hover { background: var(--surface-3); }
.px-ni__ic { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--surface-3); color: var(--primary); font-size: 18px; }
.px-ni__ic--success { color: var(--ok); background: var(--ok-soft); }
.px-ni__ic--warning, .px-ni__ic--warn { color: var(--warn); background: var(--warn-soft); }
.px-ni__ic--danger, .px-ni__ic--error { color: var(--hot); background: var(--hot-soft); }
.px-ni__b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.px-ni__t { font-size: 13.5px; font-weight: 600; }
.px-ni__c { font-size: 12.5px; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.px-ni__time { font-size: 11.5px; color: var(--text-3); }
.px-ni.is-unread::after { content: ''; position: absolute; top: 16px; right: 12px; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.px-ni-empty { padding: 34px 16px; text-align: center; color: var(--text-2); font-size: 13.5px; }
.px-ni-empty i { font-size: 30px; color: var(--text-3); display: block; margin-bottom: 8px; }
.px-ni-empty b { display: block; color: var(--text); }

/* cart preview popover */
.px-cartpop { width: 360px; padding: 0; }
.px-cartpop__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 15px; }
.px-cartpop__head span { font-size: 12.5px; color: var(--text-2); }
.px-cartpop__list { padding: 6px; max-height: 320px; overflow-y: auto; }
.px-cartpop__foot { padding: 14px 16px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.px-cartpop__foot span { font-size: 13px; color: var(--text-2); }
.px-cartpop__foot span b { display: block; color: var(--text); font: 700 18px var(--font-display); }

/* nav */
.px-nav { border-top: 1px solid var(--line); }
.px-nav__in { display: flex; align-items: center; gap: 4px; height: 52px; }
.px-nav__all { display: inline-flex; align-items: center; gap: 9px; height: 38px; padding: 0 14px 0 12px; margin-right: 8px; border-radius: 11px; background: var(--surface-2); border: 1px solid var(--line-2); font-weight: 600; font-size: 14px; transition: .2s; }
.px-nav__all i { font-size: 18px; color: var(--primary); }
.px-nav__all:hover, .px-nav__item.is-open > .px-nav__all { border-color: var(--primary-line); background: var(--surface-3); }
.px-nav__list { display: flex; align-items: center; gap: 2px; min-width: 0; flex: 1; overflow-x: auto; scrollbar-width: none; }
.px-nav__list::-webkit-scrollbar { display: none; }
.px-nav__right { position: relative; }
.px-nav__right::before { content: ''; position: absolute; right: 100%; top: 0; bottom: 0; width: 48px; background: linear-gradient(90deg, transparent, var(--bg)); pointer-events: none; opacity: 0; transition: opacity .2s; }
.px-nav.is-overflow .px-nav__right::before { opacity: 1; }
.px-nav__link { padding: 0 10px; }
.px-nav__right { flex: none; }
.px-nav__item { position: static; }
.px-nav__link { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 12px; border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--text-2); transition: .2s; white-space: nowrap; }
.px-nav__link i { font-size: 17px; }
.px-nav__link .ri-arrow-down-s-line { font-size: 15px; opacity: .6; transition: transform .2s; }
.px-nav__link:hover, .px-nav__item.is-open > .px-nav__link { color: var(--text); background: var(--surface); }
.px-nav__item.is-open > .px-nav__link .ri-arrow-down-s-line { transform: rotate(180deg); }
.px-nav__link--hot { color: var(--primary); }
.px-nav__link--hot i { color: var(--primary); }
.px-nav__right { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.px-nav__badge { font: 700 10px/1 var(--font); padding: 3px 6px; border-radius: 5px; background: var(--hot); color: #fff; letter-spacing: .04em; }

/* mega */
.px-mega {
    position: absolute; left: 0; right: 0; top: 100%; z-index: 70;
    background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line-2);
    box-shadow: 0 30px 60px rgba(0, 0, 0, .55);
    opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .22s var(--ease);
}
.px-nav__item.is-open > .px-mega { opacity: 1; visibility: visible; transform: none; }
.px-mega__in { display: grid; grid-template-columns: 1fr 300px; gap: 32px; padding-top: 28px; padding-bottom: 32px; }
.px-mega__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.px-mega__head h3 { font-size: 22px; display: flex; align-items: center; gap: 12px; }
.px-mega__head h3 i { color: var(--primary); }
.px-mega__cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 22px 28px; }
.px-mega__grp h4 { font: 700 12px/1 var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 10px; }
.px-mega__grp h4 a:hover { color: var(--primary); }
.px-mega__grp ul { display: flex; flex-direction: column; gap: 1px; }
.px-mega__grp li a { display: flex; align-items: center; gap: 8px; padding: 6px 8px; margin: 0 -8px; border-radius: 8px; font-size: 14px; color: var(--text-2); transition: .15s; }
.px-mega__grp li a:hover { background: var(--surface); color: var(--text); }
.px-mega__grp li a:hover::after { content: '→'; margin-left: auto; color: var(--primary); }
.px-mega__tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.px-mega__tile { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 13px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-weight: 600; transition: .2s; }
.px-mega__tile:hover { border-color: var(--primary-line); background: var(--surface-2); }
.px-mega__tile img { width: 34px; height: 34px; object-fit: contain; border-radius: 9px; flex: none; }
.px-mega__tile i { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: var(--primary-soft); color: var(--primary); font-size: 18px; flex: none; }
.px-mega__side { display: flex; flex-direction: column; gap: 12px; }
.px-mega__promo { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 120px; padding: 16px; border-radius: var(--r); overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); isolation: isolate; }
.px-mega__promo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s var(--ease); }
.px-mega__promo::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, .85)); }
.px-mega__promo:hover img { transform: scale(1.05); }
.px-mega__promo small { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); }
.px-mega__promo b { font-size: 15px; }

/* "Tüm kategoriler" panel */
.px-allcats { display: grid; grid-template-columns: 260px 1fr; min-height: 380px; }
.px-allcats__side { border-right: 1px solid var(--line); padding: 20px 16px 20px 0; display: flex; flex-direction: column; gap: 2px; }
.px-allcats__root { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 11px; font-weight: 600; font-size: 14.5px; color: var(--text-2); transition: .15s; }
.px-allcats__root i:first-child { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--surface); font-size: 18px; color: var(--text-2); }
.px-allcats__root .ri-arrow-right-s-line { margin-left: auto; opacity: 0; transition: .15s; }
.px-allcats__root.is-active, .px-allcats__root:hover { background: var(--surface); color: var(--text); }
.px-allcats__root.is-active i:first-child { background: var(--primary); color: var(--primary-ink); }
.px-allcats__root.is-active .ri-arrow-right-s-line { opacity: 1; }
.px-allcats__panes { padding: 20px 0 20px 28px; }
.px-allcats__pane { display: none; }
.px-allcats__pane.is-active { display: block; animation: px-fade .25s var(--ease); }

/* mobile header pieces */
.px-burger { display: none; }
.px-mbar { display: none; }

/* mobile drawer menu */
.px-mnav__search { margin-bottom: 14px; }
.px-mnav__acc { border-bottom: 1px solid var(--line); }
.px-mnav__acc > summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 14px 4px; font-weight: 600; cursor: pointer; }
.px-mnav__acc > summary::-webkit-details-marker { display: none; }
.px-mnav__acc > summary i:first-child { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--surface); color: var(--primary); font-size: 18px; }
.px-mnav__acc > summary .ri-arrow-down-s-line { margin-left: auto; color: var(--text-3); transition: .2s; }
.px-mnav__acc[open] > summary .ri-arrow-down-s-line { transform: rotate(180deg); }
.px-mnav__sub { padding: 0 0 14px 48px; display: flex; flex-direction: column; gap: 2px; }
.px-mnav__sub a { padding: 8px 0; font-size: 14px; color: var(--text-2); }
.px-mnav__sub a:hover { color: var(--primary); }
.px-mnav__sub b { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin-top: 8px; }
.px-mnav__links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
.px-mnav__links a { display: flex; align-items: center; gap: 8px; padding: 12px; border-radius: 12px; background: var(--surface); font-size: 13.5px; font-weight: 500; }
.px-mnav__links a i { color: var(--primary); font-size: 18px; }
.px-mnav__label { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin: 22px 0 4px; }


/* kampanya bandı (Site Ayarları > Header & Kampanya bandı + Bannerlar > header_card) */
.px-camp { background: var(--bg); border-bottom: 1px solid var(--line); position: relative; z-index: 61; }
.px-camp__in { display: flex; gap: 10px; padding-top: 10px; padding-bottom: 10px; }
.px-camp__slides { position: relative; flex: 1 1 38%; min-width: 0; min-height: 56px; border-radius: var(--r); overflow: hidden; isolation: isolate; background: linear-gradient(110deg, color-mix(in srgb, var(--primary) 55%, var(--bg)), color-mix(in srgb, var(--accent) 35%, var(--bg))); border: 1px solid var(--primary-line); }
.px-camp__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; opacity: .55; }
.px-camp__slides::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, .15)); }
.px-camp__slide { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 0 18px; text-align: center; font: 700 15px/1.25 var(--font-display); letter-spacing: .02em; color: #fff; text-shadow: 0 2px 8px rgba(0, 0, 0, .5); opacity: 0; transform: translateY(12px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.px-camp__slide.is-active { opacity: 1; transform: none; }
.px-camp__slide.is-out { opacity: 0; transform: translateY(-12px); }
.px-camp__cards { flex: 1 1 62%; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 10px; }
.px-camp__card { position: relative; display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 56px; padding: 8px 12px 8px 8px; border-radius: var(--r); overflow: hidden; isolation: isolate; background: var(--surface); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); transition: .2s var(--ease); }
.px-camp__card::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, color-mix(in srgb, var(--c2) 70%, #000) 0%, color-mix(in srgb, var(--c2) 35%, transparent) 55%, transparent); opacity: .85; }
.px-camp__cbg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .45; transition: transform .5s var(--ease); }
.px-camp__card:hover { border-color: var(--c); transform: translateY(-1px); }
.px-camp__card:hover .px-camp__cbg { transform: scale(1.05); }
.px-camp__thumb { flex: none; width: 40px; height: 40px; border-radius: 10px; object-fit: cover; box-shadow: 0 4px 12px rgba(0, 0, 0, .4); }
.px-camp__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.px-camp__txt small { font: 700 10px var(--font); letter-spacing: .1em; text-transform: uppercase; color: #fff; opacity: .85; }
.px-camp__txt b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #fff; }
.px-camp__txt span { font-size: 12px; color: rgba(255, 255, 255, .78); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.px-camp__card > i { flex: none; color: #fff; opacity: .7; font-size: 16px; }
@media (max-width: 1024px) {
    .px-camp__cards { display: none; }
}
@media (max-width: 760px) {
    .px-camp__in { padding-top: 8px; padding-bottom: 8px; }
    .px-camp__slides { min-height: 44px; }
    .px-camp__slide { font-size: 13px; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.px-footer { position: relative; margin-top: 40px; background: var(--bg-2); border-top: 1px solid var(--line); overflow: hidden; }
.px-footer::before { content: ''; position: absolute; left: 50%; top: -280px; width: 900px; height: 420px; transform: translateX(-50%); background: radial-gradient(closest-side, var(--primary-soft), transparent); pointer-events: none; opacity: .7; }
.px-trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; padding: 34px 0; border-bottom: 1px solid var(--line); position: relative; }
.px-trust__i { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.px-trust__i > i { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 13px; background: var(--primary-soft); color: var(--primary); font-size: 22px; }
.px-trust__i b { display: block; font-size: 14.5px; }
.px-trust__i small { font-size: 12.5px; color: var(--text-2); }
.px-footer__main { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 36px; padding: 48px 0 36px; position: relative; }
.px-footer__brand p { color: var(--text-2); font-size: 14px; margin-top: 16px; max-width: 340px; }
.px-footer__contact { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; font-size: 13.5px; color: var(--text-2); }
.px-footer__contact a { display: inline-flex; align-items: center; gap: 8px; }
.px-footer__contact a:hover { color: var(--text); }
.px-footer__contact i { color: var(--primary); font-size: 16px; }
.px-footer h4 { font: 700 12.5px/1 var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--text); margin-bottom: 16px; }
.px-footer__links { display: flex; flex-direction: column; gap: 9px; font-size: 14px; color: var(--text-2); }
.px-footer__links a { transition: color .15s; display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.px-footer__links a:hover { color: var(--primary); }
.px-newsletter { margin-top: 22px; }
.px-newsletter form { display: flex; gap: 6px; padding: 5px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-2); }
.px-newsletter input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; padding: 0 10px; font-size: 14px; }
.px-newsletter .px-btn { height: 40px; }
.px-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 0 28px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-3); position: relative; }
.px-social { display: flex; gap: 8px; }
.px-social a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: var(--surface); border: 1px solid var(--line); font-size: 18px; color: var(--text-2); transition: .2s; }
.px-social a:hover { color: var(--primary-ink); background: var(--primary); border-color: var(--primary); transform: translateY(-2px); }
.px-footer__pay { max-height: 30px; width: auto; opacity: .75; filter: grayscale(1) brightness(1.6); transition: .3s; }
.px-footer__pay:hover { filter: none; opacity: 1; }

/* floating */
.px-fab { position: fixed; left: 18px; bottom: 18px; z-index: 900; display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 16px; background: linear-gradient(135deg, var(--hot), var(--accent)); color: #fff; box-shadow: 0 12px 30px rgba(255, 61, 113, .35); transition: .25s var(--ease); }
.px-fab:hover { transform: translateY(-3px); }
.px-fab__ic { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: rgba(255, 255, 255, .18); font-size: 20px; }
.px-fab b { display: block; font-size: 13.5px; line-height: 1.1; }
.px-fab small { font-size: 11px; opacity: .85; letter-spacing: .08em; }
.px-fab__x { position: absolute; top: -7px; right: -7px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--bg); color: var(--text-2); font-size: 13px; border: 1px solid var(--line-2); }
.px-cookie { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 1200; width: min(560px, calc(100% - 24px)); display: flex; align-items: center; gap: 16px; padding: 14px 16px; border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); font-size: 13.5px; color: var(--text-2); }
.px-cookie > i { font-size: 24px; color: var(--primary); }
.px-cookie p { flex: 1; }
.px-cookie a { color: var(--text); text-decoration: underline; }

/* welcome popup */
.px-welcome__panel { width: min(460px, 100%); text-align: center; }
.px-welcome__top { position: relative; padding: 40px 28px 26px; background: radial-gradient(120% 100% at 50% 0%, color-mix(in srgb, var(--primary) 26%, transparent), transparent 70%); overflow: hidden; }
.px-welcome__top::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(var(--line-2) 1px, transparent 1px); background-size: 16px 16px; mask-image: radial-gradient(circle at 50% 0, #000, transparent 75%); }
.px-welcome__top > * { position: relative; z-index: 1; }
.px-welcome__off { font: 800 clamp(40px, 9vw, 64px)/1 var(--font-display); letter-spacing: -.06em; color: var(--primary); margin: 10px 0 4px; }
.px-welcome__top h2 { font-size: 22px; }
.px-welcome__top p { color: var(--text-2); font-size: 14px; margin-top: 8px; }
.px-welcome__img { width: 100%; max-height: 260px; object-fit: cover; }
.px-welcome__bottom { padding: 22px 28px 28px; display: flex; flex-direction: column; gap: 12px; }
.px-coupon { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; border-radius: 14px; border: 1.5px dashed var(--primary-line); background: var(--primary-soft); }
.px-coupon span { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); text-align: left; }
.px-coupon code { flex: 1; font: 700 20px/1 var(--font-display); letter-spacing: .06em; color: var(--primary); text-align: left; }
.px-welcome__exp { font-size: 12.5px; color: var(--text-3); display: inline-flex; gap: 6px; justify-content: center; align-items: center; }

/* ==========================================================================
   RESPONSIVE (genel)
   ========================================================================== */
@media (max-width: 1200px) {
    .px-rail__track { --rail-col: calc((100% - 16px * 4) / 5); }
    .px-pgrid--6 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .px-act__t { display: none; }
    .px-footer__main { grid-template-columns: 1.3fr repeat(2, 1fr); }
    .px-footer__main > div:nth-child(n+4) { grid-column: span 1; }
}
@media (max-width: 1024px) {
    :root { --header-h: 64px; }
    .px-topbar__links, .px-nav { display: none; }
    .px-burger { display: grid; }
    .px-header__in { gap: 14px; }
    .px-act--hide-md { display: none; }
    .px-rail__track { --rail-col: calc((100% - 14px * 3) / 4); gap: 14px; }
    .px-pgrid--6, .px-pgrid--5 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .px-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .px-rail__nav { display: none; }
    .px-mbar {
        display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
        height: calc(64px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
        background: color-mix(in srgb, var(--bg-2) 92%, transparent); backdrop-filter: blur(18px); border-top: 1px solid var(--line-2);
    }
    .px-mbar a, .px-mbar button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 500; color: var(--text-2); }
    .px-mbar i { font-size: 22px; }
    .px-mbar .is-active { color: var(--primary); }
    .px-mbar__cart { color: var(--primary-ink) !important; }
    .px-mbar__cart .px-mbar__ic { width: 48px; height: 48px; margin-top: -22px; border-radius: 16px; display: grid; place-items: center; background: var(--primary); box-shadow: 0 8px 20px color-mix(in srgb, var(--primary) 35%, transparent), 0 0 0 5px var(--bg); }
    .px-mbar__cart .px-mbar__lb { color: var(--text-2); }
    .px-mbar__n { position: absolute; top: -18px; left: calc(50% + 12px); min-width: 18px; height: 18px; border-radius: 99px; background: var(--hot); color: #fff; font: 700 10.5px/18px var(--font); text-align: center; padding: 0 4px; }
    body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
    .px-fab { bottom: calc(80px + env(safe-area-inset-bottom)); }
    .px-toasts { bottom: calc(80px + env(safe-area-inset-bottom)); }
    .px-cookie { bottom: calc(76px + env(safe-area-inset-bottom)); }
}
@media (max-width: 760px) {
    :root { --gutter: 16px; }
    body { font-size: 14.5px; }
    .px-section { margin-top: 40px; }
    .px-header__in { gap: 10px; }
    .px-logo img { height: 30px; max-width: 130px; }
    .px-logo__word { font-size: 20px; }
    .px-logo__mark { width: 32px; height: 32px; font-size: 17px; }
    .px-search { position: absolute; left: 0; right: 0; top: 100%; padding: 0 var(--gutter) 12px; background: inherit; max-width: none; display: none; }
    .px-header.is-search .px-search { display: block; }
    .px-search-toggle { display: inline-flex !important; }
    .px-act { min-width: 42px; height: 42px; padding: 0 9px; }
    .px-act--cart b { display: none; }
    .px-act--cart { padding: 0 12px; }
    .px-act--hide-sm { display: none; }
    .px-rail__track { --rail-col: 44%; gap: 12px; }
    .px-pgrid, .px-pgrid--6, .px-pgrid--5, .px-pgrid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
    .px-pc__name { font-size: 13.5px; }
    .px-price b { font-size: 16px; }
    .px-pc__add { width: 38px; height: 38px; font-size: 17px; }
    .px-pc__fav { opacity: 1; transform: none; width: 30px; height: 30px; font-size: 15px; }
    .px-shead { align-items: center; }
    .px-shead p { display: none; }
    .px-shead__ic { width: 38px; height: 38px; font-size: 19px; border-radius: 11px; }
    .px-trust { grid-template-columns: 1fr 1fr; gap: 10px; padding: 24px 0; }
    .px-trust__i { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; }
    .px-footer__main { grid-template-columns: 1fr 1fr; gap: 28px 18px; padding-top: 36px; }
    .px-footer__brand { grid-column: 1 / -1; }
    .px-footer__bottom { flex-direction: column; text-align: center; }
    .px-form-grid { grid-template-columns: 1fr; }
    .px-card--pad, .px-card__body { padding: 18px; }
    .px-hero-band { padding: 26px 20px; border-radius: var(--r-lg); }
    .px-notif, .px-cartpop { width: calc(100vw - 24px); }
    .px-dd__menu { position: fixed; top: calc(var(--header-h) + 6px); left: 12px; right: 12px; min-width: 0; }
    .px-qlogin { min-width: 0; }
}
.px-search-toggle { display: none !important; }
@media (max-width: 760px) { .px-search-toggle { display: inline-flex !important; } }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ızgara öğeleri içerikleri yüzünden genişlemesin */
.px-footer__main > *, .px-pd > *, .px-pd__body > *, .px-checkout > *, .px-news > *, .px-acc > *, .px-corp > *, .px-catalog > *, .px-game > *, .px-nfeat > *, .px-finder > *, .px-showcase > *, .px-hero > *, .px-budget > *, .px-seo > *, .px-balance > * { min-width: 0; }
html { overflow-x: clip; }
@media (max-width: 760px) {
    .px-fab { padding: 6px; }
    .px-fab > span:not(.px-fab__ic) { display: none; }
}
