/* ==========================================================================
   Store improvements (2026-09): cards, store filters, product page, home
   ========================================================================== */

/* ---------- product cards ---------- */
.product-card-desc {
    font-size: .88rem; line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.fw-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.fw-chip {
    font-size: .66rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
    padding: 3px 7px; border-radius: 6px; border: 1px solid var(--border);
    background: var(--surface-2); color: var(--muted);
}
.fw-qbcore { color: #FCA5A5; border-color: rgba(239, 68, 68, .3); }
.fw-qbox { color: #93C5FD; border-color: rgba(59, 130, 246, .3); }
.fw-esx { color: #FCD34D; border-color: rgba(245, 158, 11, .3); }
.fw-standalone { color: #86EFAC; border-color: rgba(34, 197, 94, .3); }

/* ---------- store ---------- */
.store-hero { padding: 48px 0 8px; }
.store-search { position: relative; max-width: 520px; margin-top: 22px; }
.store-search svg { position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.store-search input {
    width: 100%; height: 50px; padding: 0 16px 0 44px;
    border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface);
    color: var(--text); font: inherit;
}
.store-search input:focus { outline: none; border-color: var(--primary); box-shadow: var(--shadow-glow); }

.store-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 32px; align-items: start; }
.store-filters { position: sticky; top: 92px; }
.store-filters-toggle { display: none; }
.store-filters-body { display: grid; gap: 22px; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.filter-group h3 { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--text); margin-bottom: 10px; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 11px; border-radius: 999px; border: 1px solid var(--border);
    background: var(--surface-2); color: var(--muted); font-size: .84rem; font-weight: 600;
    transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.filter-chip:hover { color: var(--text); border-color: var(--primary); }
.filter-chip.is-active { color: #fff; background: rgba(99, 102, 241, .22); border-color: rgba(99, 102, 241, .6); }
.filter-chip span { color: var(--muted); font-size: .76rem; font-weight: 700; }
.filter-chip.is-active span { color: #C7D2FE; }
.filter-list { display: grid; gap: 2px; }
.filter-list a {
    display: flex; justify-content: space-between; gap: 8px;
    padding: 7px 10px; border-radius: var(--radius-sm); color: var(--muted); font-size: .9rem;
}
.filter-list a:hover { color: var(--text); background: var(--surface-2); }
.filter-list a.is-active { color: var(--text); background: rgba(99, 102, 241, .14); font-weight: 600; }
.filter-list a span { font-size: .78rem; opacity: .8; }
.store-docs-link { font-size: .86rem; color: var(--muted); padding-top: 6px; border-top: 1px solid var(--border); padding-top: 16px; }
.store-docs-link:hover { color: var(--text); }

.store-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.store-count { color: var(--muted); font-size: .92rem; }
.store-count strong { color: var(--text); }
.store-sort { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .88rem; }
.store-sort select { width: auto; }
.store-active { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; }
.store-clear { color: var(--muted); font-size: .85rem; text-decoration: underline; text-underline-offset: 3px; }
.store-clear:hover { color: var(--text); }
.store-empty { text-align: center; padding: 48px; display: grid; gap: 10px; justify-items: center; }

/* ---------- product page ---------- */
.product-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: flex-start; }
.product-hero-media.has-video { position: relative; cursor: pointer; }
.product-hero-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-play {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 22px 14px 16px; border-radius: 999px; border: 0; cursor: pointer;
    background: rgba(8, 9, 13, .78); color: #fff; font: 700 .95rem var(--font-sans);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
    transition: transform .2s var(--ease-out), background .2s ease;
}
.yt-play svg { width: 26px; height: 26px; padding: 4px; border-radius: 50%; background: #EF4444; }
.yt-play:hover { transform: translate(-50%, -50%) scale(1.05); background: rgba(8, 9, 13, .9); }

.pay-methods { display: grid; gap: 8px; margin-top: 12px; justify-items: center; text-align: center; }
.pay-secure { font-size: .8rem; color: var(--muted); }
.pay-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; }
.pay-list span {
    font-size: .68rem; font-weight: 700; padding: 3px 8px; border-radius: 6px;
    border: 1px solid var(--border); background: var(--surface-2); color: #CBD5E1;
}

.rich-text { max-width: 860px; color: #CBD5E1; line-height: 1.75; }
.rich-text > * + * { margin-top: 12px; }
.rich-text p { color: #CBD5E1; }
.rich-h { font-size: 1.12rem; color: var(--text); margin-top: 28px !important; }
.rich-list { padding-left: 4px; display: grid; gap: 6px; list-style: none; }
.rich-list li { position: relative; padding-left: 24px; }
.rich-list li::before {
    content: ""; position: absolute; left: 4px; top: .62em; width: 8px; height: 8px; border-radius: 2px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.sticky-buy {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: rgba(12, 14, 20, .96); border-top: 1px solid var(--border);
    box-shadow: 0 -12px 30px rgba(0, 0, 0, .45);
    transform: translateY(100%); transition: transform .25s var(--ease-out);
}
.sticky-buy.is-visible { transform: translateY(0); }
body.has-sticky-buy { padding-bottom: 64px; }
.sticky-buy-inner { display: flex; align-items: center; gap: 14px; padding: 10px 0; }
.sticky-buy-img { width: 64px; height: 36px; border-radius: 6px; object-fit: cover; border: 1px solid var(--border); }
.sticky-buy-info { display: grid; flex: 1; min-width: 0; }
.sticky-buy-info strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-buy-info span { color: var(--muted); font-size: .88rem; }

/* ---------- home ---------- */
.stats-strip { padding: 26px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: rgba(16, 18, 24, .55); }
.stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; text-align: center; }
.stat { display: grid; gap: 4px; }
.stat strong { font: 900 clamp(1.5rem, 3vw, 2.1rem) var(--font-display); background: linear-gradient(135deg, #fff, #A5B4FC); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--muted); font-size: .86rem; }

.how-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.how-step { position: relative; display: grid; gap: 8px; padding: 22px; }
.how-num { position: absolute; top: 14px; right: 16px; font: 900 2.2rem var(--font-display); color: rgba(99, 102, 241, .18); line-height: 1; }
.how-icon { font-size: 1.6rem; }
.how-step h3 { font-size: 1.05rem; }
.how-step p { font-size: .9rem; line-height: 1.55; }

/* ---------- footer ---------- */
.footer-pay { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 22px 0; margin-top: 36px; border-top: 1px solid var(--border); color: var(--muted); font-size: .85rem; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
    .product-layout { grid-template-columns: 1fr; gap: 24px; }
    .how-steps { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
    .store-layout { grid-template-columns: 1fr; gap: 16px; }
    .store-filters { position: static; }
    .store-filters-toggle { display: inline-flex; }
    .store-filters .store-filters-body { display: none; margin-top: 12px; }
    .store-filters.is-open .store-filters-body { display: grid; }
    .sticky-buy-docs { display: none; }
}
@media (max-width: 560px) {
    .how-steps { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-pay { justify-content: center; text-align: center; }
    .sticky-buy-img { display: none; }
}

/* ================================================================== navbar "About" dropdown */
.nav-drop { position: relative; }
.nav-drop-btn { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.nav-drop-btn:hover, .nav-drop.is-open .nav-drop-btn { color: var(--text); }
.nav-drop-btn svg { transition: transform .15s; }
.nav-drop.is-open .nav-drop-btn svg { transform: rotate(180deg); }
.nav-drop-menu {
    position: absolute; top: calc(100% + 14px); left: 50%; margin-left: -150px; width: 300px; z-index: 60;
    display: grid; gap: 4px; padding: 8px; border-radius: var(--radius-sm);
    background: rgba(14, 16, 22, .98); border: 1px solid var(--border); box-shadow: 0 18px 48px rgba(0, 0, 0, .45);
    opacity: 0; visibility: hidden; transition: opacity .15s, visibility .15s;
}
.nav-drop-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.nav-drop.is-open .nav-drop-menu { opacity: 1; visibility: visible; }
@media (hover: hover) and (min-width: 861px) {
    .nav-drop:hover .nav-drop-menu { opacity: 1; visibility: visible; }
    .nav-drop:hover .nav-drop-btn svg { transform: rotate(180deg); }
}
.nav-links .nav-drop-menu a { display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--text); }
.nav-links .nav-drop-menu a::after { display: none; }
.nav-links .nav-drop-menu a:hover { background: rgba(255, 255, 255, .05); }
.nav-drop-ico { width: 34px; height: 34px; flex-shrink: 0; display: grid; place-items: center; border-radius: 9px; background: rgba(129, 140, 248, .12); font-size: 16px; }
.nav-drop-menu strong { display: block; font-size: .92rem; font-weight: 700; }
.nav-drop-menu small { display: block; margin-top: 2px; font-size: .78rem; color: var(--muted); line-height: 1.35; }
@media (max-width: 860px) {
    .nav-drop { width: 100%; }
    .nav-drop-btn { width: 100%; justify-content: space-between; padding: 10px 0; }
    .nav-drop-menu { position: static; margin: 0; width: 100%; display: none; opacity: 1; visibility: visible; box-shadow: none; background: transparent; border: 0; padding: 0 0 6px 8px; }
    .nav-drop.is-open .nav-drop-menu { display: grid; }
}

/* ================================================================== "Why DRS" page */
.why-hero { padding: 72px 0 40px; text-align: center; }
.why-hero h1 { max-width: 820px; margin: 12px auto 0; font-size: clamp(2rem, 4.6vw, 3.3rem); line-height: 1.1; }
.why-hero .lead { max-width: 680px; margin: 18px auto 0; font-size: 1.1rem; }
.why-hero .hero-actions { justify-content: center; margin-top: 28px; }
.why-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; }
.why-pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px; font-size: .84rem; font-weight: 600; color: var(--text); background: rgba(255, 255, 255, .04); border: 1px solid var(--border); }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.why-card { padding: 24px; }
.why-card .why-ico { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; font-size: 22px; background: rgba(129, 140, 248, .12); margin-bottom: 14px; }
.why-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.why-card p { font-size: .95rem; }
.why-split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 36px; align-items: start; }
.why-list { list-style: none; display: grid; gap: 12px; margin-top: 20px; padding: 0; }
.why-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); line-height: 1.55; }
.why-list li::before { content: "✓"; flex-shrink: 0; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 7px; font-size: .78rem; font-weight: 800; color: #34d399; background: rgba(52, 211, 153, .12); }
.why-list li strong { color: var(--text); }
.why-compare { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; font-size: .93rem; }
.why-compare th, .why-compare td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.why-compare tr:last-child td { border-bottom: 0; }
.why-compare th { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: rgba(255, 255, 255, .03); }
.why-compare td { color: var(--muted); }
.why-compare td.bad::before { content: "✕ "; color: #f87171; font-weight: 800; }
.why-compare td.good { color: var(--text); }
.why-compare td.good::before { content: "✓ "; color: #34d399; font-weight: 800; }
.why-code { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
.why-code figure { margin: 0; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; background: rgba(8, 10, 14, .85); }
.why-code figcaption { padding: 9px 14px; font-size: .78rem; font-weight: 700; letter-spacing: .04em; border-bottom: 1px solid var(--border); }
.why-code figure.bad figcaption { color: #fca5a5; background: rgba(248, 113, 113, .08); }
.why-code figure.good figcaption { color: #6ee7b7; background: rgba(52, 211, 153, .08); }
.why-code pre { margin: 0; padding: 14px; font: 500 .8rem/1.6 ui-monospace, "JetBrains Mono", Consolas, monospace; color: #cbd5e1; white-space: pre; overflow-x: auto; }
.why-code .c { color: #64748b; }
.why-callout { margin-top: 18px; padding: 16px 18px; border-radius: var(--radius-sm); border: 1px solid rgba(248, 113, 113, .3); background: rgba(248, 113, 113, .06); color: var(--text); font-size: .95rem; line-height: 1.55; }
.why-callout strong { color: #fca5a5; }
.why-cta { text-align: center; padding: 44px 28px; }
.why-cta h2 { max-width: 640px; margin: 0 auto; }
.why-cta p { max-width: 560px; margin: 12px auto 0; }
.why-cta .hero-actions { justify-content: center; margin-top: 24px; }
@media (max-width: 860px) {
    .why-split, .why-code { grid-template-columns: 1fr; }
    .why-hero { padding: 48px 0 28px; }
}
