/* ==========================================================================
   IDRISSI STORE — متجر إدريسي (المتجر متعدد التجار للأجهزة المساحية الجديدة)
   Reuses the academy layout classes (academy.css, loaded first) and swaps its
   light-blue identity for a dedicated violet one under `.store-page`.
   ========================================================================== */

.store-page {
    --ac-50: #f5f3ff;
    --ac-100: #ede9fe;
    --ac-200: #ddd6fe;
    --ac-300: #c4b5fd;
    --ac-400: #a78bfa;
    --ac-500: #8b5cf6;
    --ac-600: #7c3aed;
    --ac-700: #6d28d9;
    --ac-800: #5b21b6;
    --ac-900: #4c1d95;
    --ac-ink: #1e1537;
    --ac-muted: #6b6485;
    --ac-page: #faf9ff;
    --ac-border: #e9e3fb;
    --ac-shadow: 0 10px 30px -12px rgba(109, 40, 217, 0.28);
}

[data-theme='dark'] .store-page {
    --ac-50: rgba(167, 139, 250, 0.08);
    --ac-100: rgba(167, 139, 250, 0.14);
    --ac-200: rgba(167, 139, 250, 0.24);
    --ac-600: #a78bfa;
    --ac-700: #c4b5fd;
    --ac-900: #ede9fe;
    --ac-ink: #eeeaf8;
    --ac-muted: #ada6c4;
    --ac-surface: #1a1726;
    --ac-page: #12101b;
    --ac-border: rgba(196, 181, 253, 0.16);
    --ac-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6);
}

/* ── Re-theme hard-coded academy colors ─────────────────────────────── */
.store-page .btn-ac { box-shadow: 0 6px 16px -6px rgba(109, 40, 217, .6); }
.store-page .btn-ac:hover { box-shadow: 0 10px 22px -8px rgba(109, 40, 217, .7); }
.store-page .ac-hero {
    background:
        radial-gradient(1200px 400px at 100% 0%, rgba(167, 139, 250, .35), transparent 60%),
        linear-gradient(160deg, #f5f3ff 0%, #ede9fe 45%, #ddd6fe 100%);
    color: #4c1d95;
    border-bottom-color: #ddd6fe;
}
[data-theme='dark'] .store-page .ac-hero {
    background:
        radial-gradient(1200px 400px at 100% 0%, rgba(167, 139, 250, .2), transparent 60%),
        linear-gradient(160deg, #141022 0%, #1d1533 60%, #261a46 100%);
    color: #ede9fe;
    border-bottom-color: rgba(196, 181, 253, .15);
}
.store-page .ac-hero::before {
    background-image:
        linear-gradient(rgba(109, 40, 217, .07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(109, 40, 217, .07) 1px, transparent 1px);
}
.store-page .ac-hero-badge { border-color: #ddd6fe; color: #6d28d9; }
[data-theme='dark'] .store-page .ac-hero-badge { background: rgba(139, 92, 246, .12); border-color: rgba(196, 181, 253, .25); color: #c4b5fd; }
.store-page .ac-hero-title .ac-mark::after { background: rgba(167, 139, 250, .35); }
.store-page .ac-hero-sub { color: #5b21b6; }
[data-theme='dark'] .store-page .ac-hero-sub { color: #ddd6fe; }
.store-page .ac-hero-stat { border-color: #ddd6fe; }
[data-theme='dark'] .store-page .ac-hero-stat { background: rgba(139, 92, 246, .08); border-color: rgba(196, 181, 253, .2); }
.store-page .ac-tabs .active { box-shadow: 0 2px 8px -2px rgba(109, 40, 217, .35); }
.store-page .form-control:focus, .store-page .form-select:focus { border-color: var(--ac-400); box-shadow: 0 0 0 .2rem rgba(167, 139, 250, .22); }
.store-page .ac-detail-hero { background: linear-gradient(160deg, #3b0764, #5b21b6 55%, #7c3aed); }
.store-page .ac-detail-hero a { color: #ddd6fe; }
[data-theme='dark'] .store-page .ac-detail-hero {
    background:
        radial-gradient(900px 320px at 100% 0%, rgba(167, 139, 250, .16), transparent 60%),
        linear-gradient(160deg, #141022 0%, #1d1533 60%, #261a46 100%);
    border-bottom: 1px solid rgba(196, 181, 253, .15);
}
.store-page .ac-detail-hero .lead { color: #ede9fe; }
.store-page .ac-group-option input:checked + .ac-group-card { box-shadow: 0 0 0 3px rgba(167, 139, 250, .25); }

/* ── Unified Store Sub-Navigation ───────────────────────────────────── */
.store-page .st-subnav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .65rem;
    flex-wrap: wrap;
    padding: .5rem .65rem;
    border-radius: 16px;
    background: var(--ac-surface, #fff);
    border: 1px solid var(--ac-border);
    box-shadow: 0 4px 16px -8px rgba(109, 40, 217, .12);
    margin-bottom: 1.5rem;
}
.store-page .st-subnav-links,
.store-page .st-subnav-actions {
    display: flex;
    align-items: center;
    gap: .35rem;
    flex-wrap: wrap;
}
.store-page .st-subnav a {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .48rem .9rem;
    border-radius: 11px;
    font-size: .86rem;
    font-weight: 800;
    color: var(--ac-ink);
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.store-page .st-subnav a i { color: var(--ac-600); font-size: .88rem; transition: color .2s ease; }
.store-page .st-subnav a:hover { background: var(--ac-50); color: var(--ac-700) !important; }
.store-page .st-subnav a.active {
    background: linear-gradient(135deg, var(--ac-600), var(--ac-700)) !important;
    color: #ffffff !important;
    box-shadow: 0 6px 14px -6px rgba(109, 40, 217, .55);
}
.store-page .st-subnav a.active span,
.store-page .st-subnav a.active i { color: #ffffff !important; }
.store-page .st-subnav-merchant {
    background: var(--ac-50);
    border: 1px solid var(--ac-200);
}
.store-page .st-subnav-admin {
    background: #fef3c7;
    color: #92400e !important;
    border: 1px solid #fde68a;
}
.store-page .st-subnav-admin i { color: #d97706 !important; }
[data-theme='dark'] .store-page .st-subnav-admin,
[data-bs-theme='dark'] .store-page .st-subnav-admin {
    background: rgba(245, 158, 11, .14);
    color: #fbbf24 !important;
    border-color: rgba(245, 158, 11, .3);
}
.store-page .st-nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 800;
    background: var(--ac-100);
    color: var(--ac-700);
}
.store-page .st-nav-badge--danger { background: #ef4444; color: #fff; }
.store-page .st-subnav a.active .st-nav-badge { background: rgba(255, 255, 255, .22); color: #fff; }

/* ── Hero Ecosystem Flow & Trust Card ───────────────────────────────── */
.st-ecosystem-flow {
    display: flex;
    align-items: center;
    gap: .55rem;
    flex-wrap: wrap;
    margin: 1rem 0 1.25rem;
}
.st-eco-node {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .5rem .8rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, .75);
    border: 1px solid var(--ac-200);
    backdrop-filter: blur(8px);
}
.st-eco-node--platform {
    background: #fff;
    border-color: var(--ac-400);
    box-shadow: 0 4px 12px -4px rgba(109, 40, 217, .2);
}
[data-theme='dark'] .st-eco-node,
[data-bs-theme='dark'] .st-eco-node {
    background: rgba(26, 23, 38, .75);
    border-color: rgba(196, 181, 253, .2);
}
.st-eco-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--ac-100);
    color: var(--ac-700);
    font-size: .9rem;
    flex-shrink: 0;
}
.st-eco-node strong { display: block; font-size: .82rem; font-weight: 800; color: var(--ac-ink); line-height: 1.2; }
.st-eco-node small { display: block; font-size: .7rem; color: var(--ac-muted); }
.st-eco-arrow { color: var(--ac-500); font-size: .8rem; opacity: .75; }

.st-hero-card {
    border-radius: 20px;
    padding: 1.35rem;
    box-shadow: 0 18px 38px -16px rgba(76, 29, 149, .24);
}
.st-hero-card-head {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding-bottom: .9rem;
    margin-bottom: .9rem;
    border-bottom: 1px solid var(--ac-border);
}
.st-hero-shield {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--ac-600), var(--ac-800));
    color: #fff;
    font-size: 1.15rem;
    flex-shrink: 0;
}
.st-hero-merchant-box {
    margin-top: .85rem;
    padding: .9rem 1rem;
    border-radius: 14px;
    background: var(--ac-50);
    border: 1px dashed var(--ac-300);
}

/* ── Product gallery ────────────────────────────────────────────────── */
.st-gallery-main { aspect-ratio: 4 / 3; background: var(--ac-50); border-radius: var(--ac-radius); overflow: hidden; display: grid; place-items: center; border: 1px solid var(--ac-border); }
.st-gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.st-gallery-main .st-placeholder { font-size: 4rem; color: var(--ac-300); }
.st-thumbs { display: flex; gap: .5rem; margin-top: .6rem; overflow-x: auto; padding-bottom: .25rem; }
.st-thumbs button { flex: 0 0 72px; height: 56px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; background: var(--ac-50); transition: border-color .2s ease, transform .2s ease; }
.st-thumbs button.active { border-color: var(--ac-500); transform: translateY(-2px); }
.st-thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* ── Specs & facts ──────────────────────────────────────────────────── */
.st-specs { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--ac-border); border-radius: 12px; overflow: hidden; }
.st-specs th, .st-specs td { padding: .65rem .9rem; border-bottom: 1px solid var(--ac-border); font-size: .92rem; vertical-align: top; }
.st-specs tr:last-child th, .st-specs tr:last-child td { border-bottom: 0; }
.st-specs th { width: 38%; background: var(--ac-50); color: var(--ac-muted); font-weight: 700; }
.st-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .65rem; }
.st-fact { border: 1px solid var(--ac-border); border-radius: 12px; padding: .7rem .85rem; background: var(--ac-surface); transition: border-color .2s ease; }
.st-fact:hover { border-color: var(--ac-300); }
.st-fact small { display: block; color: var(--ac-muted); font-size: .75rem; font-weight: 700; margin-bottom: .15rem; }
.st-fact strong { font-size: .95rem; }
.st-fact i { color: var(--ac-500); margin-inline-end: .3rem; }
.st-badge-verified { display: inline-flex; align-items: center; gap: .3rem; background: #dcfce7; color: #15803d; border-radius: 999px; padding: .18rem .65rem; font-size: .74rem; font-weight: 800; }
.st-badge-featured { display: inline-flex; align-items: center; gap: .3rem; background: #fef3c7; color: #b45309; border-radius: 999px; padding: .18rem .65rem; font-size: .74rem; font-weight: 800; }
[data-theme='dark'] .st-badge-verified,
[data-bs-theme='dark'] .st-badge-verified { background: rgba(34, 197, 94, .16); color: #4ade80; }
[data-theme='dark'] .st-badge-featured,
[data-bs-theme='dark'] .st-badge-featured { background: rgba(245, 158, 11, .16); color: #fbbf24; }

/* ── Store cards (v4) ─────────────────────────────────────────────────
   No cover photo (wide covers crop badly at card size): a short patterned
   band with the logo centred on it. Featured stores are told apart by the
   whole card (warm gold surface + border), not only the pill. Heart saves
   the store to favorites. */
.st-store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1.5rem; }
.st-store-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--ac-border);
    border-radius: 20px;
    background: var(--ac-surface, #fff);
    box-shadow: 0 2px 10px -4px rgba(30, 16, 60, .08);
    transition: transform .25s cubic-bezier(.16, 1, .3, 1), box-shadow .25s ease, border-color .25s ease;
}
.st-store-card:hover {
    transform: translateY(-4px);
    border-color: var(--ac-300);
    box-shadow: 0 18px 36px -18px rgba(76, 29, 149, .35);
}
.st-sc-link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.st-sc-link:focus-visible { outline: 3px solid var(--ac-400); outline-offset: -3px; }

/* Featured: the whole card is gold-toned */
.st-store-card.featured {
    border: 1.5px solid #f5c451;
    background: linear-gradient(180deg, #fffbeb 0%, #fff7e0 55%, #fffdf6 100%);
    box-shadow: 0 10px 28px -16px rgba(217, 119, 6, .55);
}
.st-store-card.featured:hover { border-color: #f59e0b; box-shadow: 0 20px 38px -18px rgba(217, 119, 6, .6); }

/* Band */
.st-store-card-band {
    position: relative;
    height: 74px;
    flex-shrink: 0;
    background-image:
        radial-gradient(rgba(255, 255, 255, .18) 1.2px, transparent 1.3px),
        linear-gradient(135deg, #3b0764 0%, #6d28d9 55%, #a78bfa 100%);
    background-size: 16px 16px, cover;
    background-repeat: repeat, no-repeat;
}
.st-store-card.featured .st-store-card-band {
    background-image:
        radial-gradient(rgba(255, 255, 255, .28) 1.2px, transparent 1.3px),
        linear-gradient(135deg, #92400e 0%, #d97706 50%, #fbbf24 100%);
}
.st-sc-featured {
    position: absolute;
    top: .65rem;
    inset-inline-start: .7rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .26rem .7rem .26rem .6rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .95);
    color: #92400e;
    font-size: .72rem;
    font-weight: 800;
    line-height: 1.2;
    box-shadow: 0 6px 14px -6px rgba(120, 53, 15, .6);
}
.st-sc-featured i { font-size: .7rem; color: #f59e0b; }
.st-sc-save {
    position: absolute;
    top: .55rem;
    inset-inline-end: .6rem;
    z-index: 2;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: #6b7280;
    font-size: .95rem;
    box-shadow: 0 6px 14px -6px rgba(30, 16, 60, .45);
    transition: transform .2s ease, color .2s ease;
}
.st-sc-save:hover { transform: scale(1.08); color: #e11d48; }
.st-sc-save.saved { color: #e11d48; }

/* Body (centred identity) */
.st-store-card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    padding: 0 1.1rem 1.1rem;
}
.st-store-logo {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    object-fit: contain;
    border-radius: 18px;
    border: 3px solid var(--ac-surface, #fff);
    background: #fff;
    box-shadow: 0 6px 14px -6px rgba(30, 16, 60, .28);
    color: var(--ac-700);
    font-size: 1.4rem;
    font-weight: 900;
}
.st-store-card .st-store-logo {
    width: 76px;
    height: 76px;
    margin-top: -38px;
    margin-bottom: .55rem;
    position: relative;
    border-radius: 20px;
    border: 4px solid var(--ac-surface, #fff);
    background: #fff;
    box-shadow: 0 8px 18px -6px rgba(30, 16, 60, .28);
    color: var(--ac-700);
    font-size: 1.6rem;
    font-weight: 900;
}
span.st-store-logo { background: var(--ac-100); }
.st-store-card.featured .st-store-logo { border-color: #fff7e0; }
.st-store-card-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    max-width: 100%;
    min-width: 0;
    margin: 0 0 .45rem;
    font-size: 1.08rem;
    font-weight: 800;
    color: var(--ac-ink);
    line-height: 1.3;
}
.st-sc-verified { flex-shrink: 0; color: #1d9bf0; font-size: .95rem; }

.st-store-card-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin-bottom: .65rem; }
.st-sc-chip {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .2rem .6rem;
    border-radius: 999px;
    background: var(--ac-50);
    color: var(--ac-muted);
    font-size: .74rem;
    font-weight: 700;
}
.st-sc-chip i { font-size: .7rem; color: var(--ac-500); }
.st-sc-chip-rating i { color: #f59e0b; }
.st-sc-chip-verified { background: #e0f2fe; color: #0369a1; }
.st-sc-chip-verified i { color: #0284c7; }
.st-store-card.featured .st-sc-chip:not(.st-sc-chip-verified) { background: rgba(251, 191, 36, .18); color: #92400e; }
.st-store-card.featured .st-sc-chip:not(.st-sc-chip-verified) i { color: #d97706; }

.st-store-card-spec {
    margin: 0 0 .9rem;
    font-size: .82rem;
    line-height: 1.55;
    color: var(--ac-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Footer */
.st-store-card-foot {
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-top: auto;
    padding-top: .8rem;
    border-top: 1px solid var(--ac-border);
    font-size: .8rem;
}
.st-store-card.featured .st-store-card-foot { border-top-color: rgba(217, 119, 6, .22); }
.st-store-card-count { font-weight: 700; color: var(--ac-muted); }
.st-store-card-count i { color: var(--ac-500); margin-inline-end: .3rem; }
.st-store-card-cta {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .42rem .9rem;
    border-radius: 999px;
    background: var(--ac-50);
    color: var(--ac-700);
    font-weight: 800;
    transition: background-color .2s ease, color .2s ease, gap .25s ease;
}
.st-store-card.featured .st-store-card-cta { background: #fde68a; color: #78350f; }
.st-store-card-cta i { font-size: .72rem; transition: transform .25s cubic-bezier(.34, 1.56, .64, 1); }
.st-store-card:hover .st-store-card-cta { background: var(--ac-600); color: #fff; gap: .55rem; }
.st-store-card.featured:hover .st-store-card-cta { background: #d97706; color: #fff; }
[dir="rtl"] .st-store-card:hover .st-store-card-cta i,
html[lang="ar"] .st-store-card:hover .st-store-card-cta i { transform: translateX(-3px); }
[dir="ltr"] .st-store-card:hover .st-store-card-cta i,
html:not([dir="rtl"]):not([lang="ar"]) .st-store-card:hover .st-store-card-cta i { transform: translateX(3px); }

/* Dark mode */
[data-theme='dark'] .st-sc-chip-verified,
[data-bs-theme='dark'] .st-sc-chip-verified { background: rgba(14, 165, 233, .16); color: #7dd3fc; }
[data-theme='dark'] .st-sc-chip-verified i,
[data-bs-theme='dark'] .st-sc-chip-verified i { color: #38bdf8; }
[data-theme='dark'] .st-store-card,
[data-bs-theme='dark'] .st-store-card { box-shadow: none; }
[data-theme='dark'] .st-store-card.featured,
[data-bs-theme='dark'] .st-store-card.featured { background: linear-gradient(180deg, rgba(120, 53, 15, .32) 0%, var(--ac-surface, #1f1c24) 70%); border-color: rgba(245, 158, 11, .55); }
[data-theme='dark'] .st-store-card.featured .st-store-logo,
[data-bs-theme='dark'] .st-store-card.featured .st-store-logo { border-color: var(--ac-surface, #1f1c24); }

/* ── Compare bar (Floating Dock Redesigned) ─────────────────────────── */
.st-compare-bar {
    position: fixed;
    inset-inline: 1rem;
    bottom: 1.25rem;
    z-index: 1040;
    display: flex;
    justify-content: center;
    pointer-events: none;
    animation: stCompareSlideUp .3s cubic-bezier(.16, 1, .3, 1);
}
.st-compare-bar[hidden] { display: none !important; }
@keyframes stCompareSlideUp {
    from { opacity: 0; transform: translateY(18px) scale(.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.st-compare-dock {
    pointer-events: auto;
    width: 100%;
    max-width: 680px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .75rem 1rem .75rem 1.15rem;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(30, 16, 60, .96) 0%, rgba(59, 7, 100, .95) 60%, rgba(76, 29, 149, .96) 100%);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(167, 139, 250, .35);
    box-shadow: 0 20px 42px -12px rgba(46, 16, 101, .55), 0 0 0 1px rgba(255, 255, 255, .08) inset;
    color: #fff;
}
.st-cmp-info {
    display: flex;
    align-items: center;
    gap: .85rem;
    min-width: 0;
}
.st-cmp-icon {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .22);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #e9d5ff;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.st-cmp-badge {
    position: absolute;
    top: -6px;
    inset-inline-end: -6px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    font-size: .75rem;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #2e1065;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
}
.st-cmp-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.st-cmp-title {
    font-size: .92rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
}
.st-cmp-sub {
    font-size: .75rem;
    color: rgba(233, 213, 255, .82);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.st-cmp-actions {
    display: flex;
    align-items: center;
    gap: .55rem;
    flex-shrink: 0;
}
.st-cmp-clear {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .5rem .8rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .85);
    font-size: .78rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.st-cmp-clear:hover {
    background: rgba(239, 68, 68, .22);
    border-color: rgba(248, 113, 113, .45);
    color: #fecaca;
}
.st-cmp-cta {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .55rem 1.1rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
    border: 1px solid rgba(255, 255, 255, .25);
    color: #fff !important;
    font-size: .85rem;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 8px 18px -6px rgba(124, 58, 237, .65);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.st-cmp-cta:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
    box-shadow: 0 10px 22px -6px rgba(168, 85, 247, .85);
}
@media (max-width: 575.98px) {
    .st-compare-dock { padding: .65rem .85rem; gap: .6rem; border-radius: 16px; }
    .st-cmp-sub { display: none; }
    .st-cmp-clear span { display: none; }
    .st-cmp-clear { padding: .5rem .65rem; }
}
/* ── Product Card Details CTA (.st-prod-cta) — Matches .st-store-card-cta ── */
.st-prod-cta {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-weight: 800;
    font-size: .82rem;
    color: var(--ac-600, #7c3aed) !important;
    text-decoration: none !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: .35rem .25rem;
    white-space: nowrap;
    cursor: pointer;
    transition: all .25s ease;
}

.st-prod-cta i {
    font-size: .75rem;
    transition: transform .25s cubic-bezier(.34, 1.56, .64, 1);
}

.st-prod-cta:hover,
.st-prod-card:hover .st-prod-cta {
    color: var(--ac-700, #6d28d9) !important;
    gap: .55rem;
}

[dir="rtl"] .st-prod-cta:hover i,
html[lang="ar"] .st-prod-cta:hover i,
[dir="rtl"] .st-prod-card:hover .st-prod-cta i,
html[lang="ar"] .st-prod-card:hover .st-prod-cta i {
    transform: translateX(-3px);
}

[dir="ltr"] .st-prod-cta:hover i,
html:not([dir="rtl"]):not([lang="ar"]) .st-prod-cta:hover i,
[dir="ltr"] .st-prod-card:hover .st-prod-cta i,
html:not([dir="rtl"]):not([lang="ar"]) .st-prod-card:hover .st-prod-cta i {
    transform: translateX(3px);
}

/* ── Secondary Action Buttons (.btn-ac-soft: compare, share, save) ── */
.store-page .btn-ac-soft,
.btn-ac-soft,
.btn.btn-ac-soft {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    padding: .5rem .85rem;
    font-size: .84rem;
    font-weight: 700;
    line-height: 1.3;
    border-radius: 12px;
    background: var(--ac-100, #ede9fe) !important;
    color: var(--ac-700, #6d28d9) !important;
    border: 1px solid rgba(124, 58, 237, 0.18) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    cursor: pointer;
    transition: all .2s cubic-bezier(.16, 1, .3, 1);
}

.store-page .btn-ac-soft:hover,
.btn-ac-soft:hover,
.btn.btn-ac-soft:hover {
    background: var(--ac-200, #ddd6fe) !important;
    color: var(--ac-800, #5b21b6) !important;
    border-color: rgba(124, 58, 237, 0.32) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px -2px rgba(109, 40, 217, 0.18);
}

.store-page .btn-ac-soft:active,
.btn-ac-soft:active,
.btn.btn-ac-soft:active {
    transform: translateY(0) scale(0.98);
}

/* Compare button active state */
.btn-ac-soft.js-st-compare.active,
.btn.btn-ac-soft.js-st-compare.active,
.store-page .btn-ac-soft.js-st-compare.active,
.js-st-compare.active,
.hv2-round-btn.js-st-compare.active {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%) !important;
    color: #ffffff !important;
    border-color: #6d28d9 !important;
    box-shadow: 0 4px 14px -3px rgba(124, 58, 237, 0.5) !important;
}

.btn-ac-soft.js-st-compare.active i,
.btn.btn-ac-soft.js-st-compare.active i,
.store-page .btn-ac-soft.js-st-compare.active i {
    color: #ffffff !important;
}

/* Save / Wishlist button saved state */
.btn-ac-soft.js-st-save.saved,
.btn.btn-ac-soft.js-st-save.saved,
.store-page .btn-ac-soft.js-st-save.saved {
    background: rgba(239, 68, 68, 0.12) !important;
    color: #dc2626 !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
}

.btn-ac-soft.js-st-save.saved i,
.btn.btn-ac-soft.js-st-save.saved i,
.store-page .btn-ac-soft.js-st-save.saved i {
    color: #dc2626 !important;
}

/* Dark mode */
[data-theme='dark'] .store-page .btn-ac-soft,
[data-bs-theme='dark'] .store-page .btn-ac-soft,
[data-theme='dark'] .btn-ac-soft,
[data-bs-theme='dark'] .btn-ac-soft {
    background: rgba(167, 139, 250, 0.12) !important;
    color: #c4b5fd !important;
    border-color: rgba(167, 139, 250, 0.22) !important;
    box-shadow: none;
}

[data-theme='dark'] .store-page .btn-ac-soft:hover,
[data-bs-theme='dark'] .store-page .btn-ac-soft:hover,
[data-theme='dark'] .btn-ac-soft:hover,
[data-bs-theme='dark'] .btn-ac-soft:hover {
    background: rgba(167, 139, 250, 0.22) !important;
    color: #ede9fe !important;
    border-color: rgba(167, 139, 250, 0.38) !important;
}

[data-theme='dark'] .btn-ac-soft.js-st-compare.active,
[data-bs-theme='dark'] .btn-ac-soft.js-st-compare.active,
[data-theme='dark'] .store-page .btn-ac-soft.js-st-compare.active,
[data-bs-theme='dark'] .store-page .btn-ac-soft.js-st-compare.active {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%) !important;
    color: #ffffff !important;
    border-color: rgba(196, 181, 253, 0.4) !important;
    box-shadow: 0 4px 16px -2px rgba(124, 58, 237, 0.6) !important;
}

/* ── Cart & checkout ────────────────────────────────────────────────── */
.st-cart-group { border: 1px solid var(--ac-border); border-radius: var(--ac-radius); background: var(--ac-surface); overflow: hidden; }
.st-cart-group + .st-cart-group { margin-top: 1rem; }
.st-cart-group > header { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .75rem 1rem; background: var(--ac-50); border-bottom: 1px solid var(--ac-border); }
.st-cart-row { display: flex; gap: .85rem; align-items: center; padding: .8rem 1rem; border-bottom: 1px dashed var(--ac-border); }
.st-cart-row:last-child { border-bottom: 0; }
.st-cart-row img, .st-cart-thumb { width: 72px; height: 56px; object-fit: cover; border-radius: 10px; background: var(--ac-100); flex-shrink: 0; display: grid; place-items: center; color: var(--ac-400); }
.st-cart-row.unavailable { opacity: .55; }
.st-qty { width: 76px; text-align: center; }
.st-method { display: block; cursor: pointer; }
.st-method input { display: none; }
.st-method span { display: flex; gap: .5rem; align-items: center; border: 1px solid var(--ac-border); border-radius: 12px; padding: .55rem .8rem; font-weight: 700; font-size: .9rem; background: var(--ac-surface); transition: border-color .2s ease, background-color .2s ease; }
.st-method input:checked + span { border-color: var(--ac-500); background: var(--ac-50); box-shadow: 0 0 0 3px rgba(167, 139, 250, .22); }

/* ── Order Stepper & Timeline ───────────────────────────────────────── */
.store-page .st-stepper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: .5rem;
    margin-bottom: 1.5rem;
}
.store-page .st-stepper .ac-step {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .65rem .85rem;
    border-radius: 12px;
}
.store-page .st-step-dot {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    font-weight: 800;
    background: var(--ac-100);
    color: var(--ac-700);
    flex-shrink: 0;
}
.store-page .ac-step.done .st-step-dot { background: #16a34a; color: #fff; }
.store-page .ac-step.current .st-step-dot { background: #fff; color: var(--ac-700); }

.st-timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.st-timeline::before { content: ''; position: absolute; inset-inline-start: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--ac-border); }
.st-timeline li { position: relative; padding-inline-start: 1.6rem; padding-bottom: .8rem; font-size: .88rem; }
.st-timeline li::before { content: ''; position: absolute; inset-inline-start: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--ac-surface); border: 3px solid var(--ac-500); }
.st-timeline time { color: var(--ac-muted); font-size: .76rem; display: block; }

/* ── Merchant Dashboard KPI Tiles & Tabs ────────────────────────────── */
.store-page .st-dash-tabs a {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}
.store-page .st-kpi-tile {
    display: flex;
    align-items: center;
    gap: .85rem;
    text-align: start;
    padding: 1rem 1.1rem;
}
.store-page .st-kpi-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--ac-100);
    color: var(--ac-700);
    font-size: 1.1rem;
    flex-shrink: 0;
}
.store-page .st-kpi-tile--warn .st-kpi-icon { background: #fef3c7; color: #d97706; }
.store-page .st-kpi-tile--info .st-kpi-icon { background: #e0f2fe; color: #0284c7; }
.store-page .st-kpi-tile--ok .st-kpi-icon { background: #dcfce7; color: #15803d; }
.store-page .st-kpi-tile--danger .st-kpi-icon { background: #fee2e2; color: #dc2626; }

.st-chart { display: flex; align-items: flex-end; gap: .6rem; height: 150px; padding-top: .5rem; }
.st-chart-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .3rem; height: 100%; justify-content: flex-end; }
.st-chart-col span.bar { width: 100%; max-width: 44px; background: linear-gradient(180deg, var(--ac-400), var(--ac-600)); border-radius: 8px 8px 3px 3px; min-height: 3px; }
.st-chart-col small { font-size: .7rem; color: var(--ac-muted); }

/* ── Store Categories Grid (Redesigned) ─────────────────────────────── */
.store-page .st-cat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.store-page .st-cat-card {
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: 1rem 1.15rem;
    border-radius: 16px;
    background: var(--ac-surface, #fff);
    border: 1px solid var(--ac-border);
    text-decoration: none;
    color: var(--ac-ink);
    position: relative;
    overflow: hidden;
    transition: transform .25s cubic-bezier(.16, 1, .3, 1), border-color .25s ease, box-shadow .25s ease, background-color .25s ease;
}
.store-page .st-cat-card::before {
    content: "";
    position: absolute;
    inset-block: 0;
    inset-inline-start: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--ac-400), var(--ac-700));
    opacity: 0;
    transition: opacity .25s ease;
}
.store-page .st-cat-icon {
    width: 48px;
    height: 48px;
    border-radius: 13px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--ac-50);
    border: 1px solid var(--ac-200);
    color: var(--ac-600);
    font-size: 1.2rem;
    transition: background-color .25s ease, color .25s ease, transform .25s ease, border-color .25s ease;
}
.store-page .st-cat-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}
.store-page .st-cat-title {
    font-size: .96rem;
    font-weight: 800;
    color: var(--ac-ink);
    line-height: 1.4;
    white-space: normal;
    overflow: visible;
    word-break: break-word;
    transition: color .2s ease;
}
.store-page .st-cat-meta {
    font-size: .76rem;
    font-weight: 700;
    color: var(--ac-muted);
    margin-top: .18rem;
}
.store-page .st-cat-arrow {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--ac-50);
    color: var(--ac-500);
    font-size: .72rem;
    transition: background-color .25s ease, color .25s ease, transform .25s ease;
}
.store-page .st-cat-card:hover {
    transform: translateY(-3px);
    border-color: var(--ac-400);
    box-shadow: var(--ac-shadow);
}
.store-page .st-cat-card:hover::before { opacity: 1; }
.store-page .st-cat-card:hover .st-cat-icon {
    background: linear-gradient(135deg, var(--ac-600), var(--ac-700));
    border-color: transparent;
    color: #fff;
    transform: scale(1.06);
}
.store-page .st-cat-card:hover .st-cat-title { color: var(--ac-700); }
.store-page .st-cat-card:hover .st-cat-arrow {
    background: var(--ac-100);
    color: var(--ac-700);
    transform: translateX(-3px);
}
[dir='ltr'] .store-page .st-cat-card:hover .st-cat-arrow { transform: translateX(3px); }

.store-page .st-cat-card.active {
    background: linear-gradient(135deg, var(--ac-600), var(--ac-800));
    border-color: var(--ac-700);
    color: #fff;
    box-shadow: var(--ac-shadow);
}
.store-page .st-cat-card.active .st-cat-icon {
    background: rgba(255, 255, 255, .18);
    border-color: rgba(255, 255, 255, .28);
    color: #fff;
}
.store-page .st-cat-card.active .st-cat-title { color: #fff; }
.store-page .st-cat-card.active .st-cat-meta { color: rgba(255, 255, 255, .82); }
.store-page .st-cat-card.active .st-cat-arrow {
    background: rgba(255, 255, 255, .2);
    color: #fff;
}
@media (max-width: 991.98px) {
    .store-page .st-cat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 575.98px) {
    .store-page .st-cat-grid {
        grid-template-columns: 1fr;
        gap: .65rem;
    }
    .store-page .st-cat-card { padding: .8rem .95rem; gap: .75rem; }
    .store-page .st-cat-icon { width: 42px; height: 42px; font-size: 1.05rem; border-radius: 11px; }
    .store-page .st-cat-title { font-size: .9rem; }
}

/* ── Store Filter Sidebar (Redesigned) ──────────────────────────────── */
.store-page .st-filter-card {
    background: var(--ac-surface, #fff);
    border: 1px solid var(--ac-border);
    border-radius: 20px;
    box-shadow: var(--ac-shadow-sm);
    overflow: hidden;
    position: sticky;
    top: 5.25rem;
}
.store-page .st-filter-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    padding: 1rem 1.15rem;
    background: linear-gradient(135deg, var(--ac-50) 0%, rgba(124, 58, 237, .05) 100%);
    border-bottom: 1px solid var(--ac-border);
}
[data-theme='dark'] .store-page .st-filter-head,
[data-bs-theme='dark'] .store-page .st-filter-head {
    background: rgba(124, 58, 237, .12);
}
.store-page .st-filter-title {
    display: flex;
    align-items: center;
    gap: .75rem;
}
.store-page .st-filter-title .st-filter-title-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
    border: 1px solid rgba(255, 255, 255, .22);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .95rem;
    line-height: 1;
    box-shadow: 0 6px 16px -4px rgba(124, 58, 237, .5);
    flex-shrink: 0;
}
.store-page .st-filter-title .st-filter-title-icon i {
    color: #ffffff;
    line-height: 1;
}
.store-page .st-filter-title-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.store-page .st-filter-title strong {
    display: block;
    font-size: .96rem;
    font-weight: 800;
    color: var(--ac-ink);
    line-height: 1.25;
}
.store-page .st-filter-title-sub {
    display: block;
    font-size: .74rem;
    font-weight: 600;
    color: var(--ac-muted);
    margin-top: .12rem;
}
.store-page .st-filter-reset-pill {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .3rem .65rem;
    border-radius: 999px;
    background: rgba(239, 68, 68, .1);
    color: #dc2626;
    font-size: .74rem;
    font-weight: 800;
    text-decoration: none;
    transition: background-color .2s ease, transform .2s ease;
}
.store-page .st-filter-reset-pill:hover {
    background: rgba(239, 68, 68, .18);
    transform: translateY(-1px);
}
.store-page .st-filter-body {
    padding: 1.1rem 1.15rem;
}
.store-page .st-filter-group {
    margin-bottom: 1.05rem;
    padding-bottom: 1.05rem;
    border-bottom: 1px dashed var(--ac-border);
}
.store-page .st-filter-group.mb-0 {
    border-bottom: 0;
    padding-bottom: 0;
}
.store-page .st-filter-label {
    display: flex;
    align-items: center;
    gap: .45rem;
    font-size: .82rem;
    font-weight: 800;
    color: var(--ac-ink);
    margin-bottom: .5rem;
}
.store-page .st-filter-label i {
    color: var(--ac-600);
    font-size: .8rem;
    width: 16px;
    text-align: center;
}
.store-page .st-filter-select,
.store-page .st-price-field .form-control {
    border-radius: 12px;
    border: 1px solid var(--ac-border);
    background-color: var(--ac-surface-soft, #faf8ff);
    font-size: .86rem;
    font-weight: 600;
    color: var(--ac-ink);
    padding: .55rem .8rem;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.store-page .st-filter-select:focus,
.store-page .st-price-field .form-control:focus {
    border-color: var(--ac-500);
    background-color: var(--ac-surface, #fff);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, .14);
}
.store-page .st-price-range {
    display: flex;
    align-items: center;
    gap: .45rem;
}
.store-page .st-price-field {
    flex: 1;
    min-width: 0;
}
.store-page .st-price-sep {
    color: var(--ac-muted);
    font-weight: 700;
    font-size: .85rem;
}
/* Quick Toggles */
.store-page .st-filter-toggles {
    display: flex;
    flex-direction: column;
    gap: .45rem;
}
.store-page .st-toggle-item {
    display: block;
    cursor: pointer;
    margin: 0;
}
.store-page .st-toggle-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.store-page .st-toggle-box {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .55rem .75rem;
    border-radius: 12px;
    border: 1px solid var(--ac-border);
    background: var(--ac-surface-soft, #faf8ff);
    transition: all .2s ease;
}
.store-page .st-toggle-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--ac-100);
    color: var(--ac-600);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .78rem;
    flex-shrink: 0;
    transition: all .2s ease;
}
.store-page .st-toggle-text {
    flex: 1;
    font-size: .82rem;
    font-weight: 700;
    color: var(--ac-ink);
}
.store-page .st-toggle-check {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 1.5px solid var(--ac-border);
    background: var(--ac-surface, #fff);
    color: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .68rem;
    transition: all .2s ease;
}
.store-page .st-toggle-item:hover .st-toggle-box {
    border-color: var(--ac-300);
}
.store-page .st-toggle-input:checked + .st-toggle-box {
    border-color: var(--ac-500);
    background: var(--ac-50);
    box-shadow: 0 4px 12px -6px rgba(124, 58, 237, .28);
}
[data-theme='dark'] .store-page .st-toggle-input:checked + .st-toggle-box,
[data-bs-theme='dark'] .store-page .st-toggle-input:checked + .st-toggle-box {
    background: rgba(124, 58, 237, .16);
}
.store-page .st-toggle-input:checked + .st-toggle-box .st-toggle-icon {
    background: var(--ac-600);
    color: #fff;
}
.store-page .st-toggle-input:checked + .st-toggle-box .st-toggle-check {
    background: var(--ac-600);
    border-color: var(--ac-600);
    color: #fff;
}
.store-page .st-filter-foot {
    padding: .9rem 1.15rem 1.1rem;
    background: var(--ac-surface-soft, #faf8ff);
    border-top: 1px solid var(--ac-border);
    display: flex;
    flex-direction: column;
    gap: .5rem;
}
.store-page .st-filter-submit {
    padding: .68rem 1rem;
    border-radius: 12px;
    font-weight: 800;
    box-shadow: 0 8px 18px -6px rgba(124, 58, 237, .45);
}
.store-page .st-filter-clear-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .45rem .75rem;
    border-radius: 10px;
    font-size: .8rem;
    font-weight: 700;
    color: var(--ac-muted);
    text-decoration: none;
    transition: color .2s ease, background-color .2s ease;
}
.store-page .st-filter-clear-btn:hover {
    color: #dc2626;
    background: rgba(239, 68, 68, .08);
}

/* ── Compare Page Matrix (/store/compare/) ──────────────────────────── */
.store-page .st-cmp-hero {
    padding: 2.25rem 0 2.75rem;
}
.store-page .st-cmp-hero-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}
.store-page .st-cmp-hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .55rem;
}
.store-page .st-cmp-counter-pill {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .45rem .85rem;
    border-radius: 10px;
    background: var(--ac-surface, #fff);
    border: 1px solid var(--ac-border);
    color: var(--ac-700);
    font-size: .82rem;
    font-weight: 800;
}
.store-page .st-cmp-clear-page {
    border-radius: 10px;
    font-weight: 700;
    padding: .45rem .85rem;
}

.store-page .st-cmp-notice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding: .95rem 1.2rem;
    border-radius: 16px;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #fde68a;
    color: #92400e;
}
[data-theme='dark'] .store-page .st-cmp-notice,
[data-bs-theme='dark'] .store-page .st-cmp-notice {
    background: rgba(245, 158, 11, .12);
    border-color: rgba(245, 158, 11, .28);
    color: #fcd34d;
}
.store-page .st-cmp-notice-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(245, 158, 11, .2);
    color: #d97706;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.store-page .st-cmp-matrix-wrap {
    background: var(--ac-surface, #fff);
    border: 1px solid var(--ac-border);
    border-radius: 22px;
    box-shadow: var(--ac-shadow-sm);
    overflow: hidden;
}
.store-page .st-cmp-matrix {
    border-collapse: separate;
    border-spacing: 0;
}
.store-page .st-cmp-matrix thead th {
    vertical-align: top;
    padding: 1.15rem;
    background: var(--ac-surface-soft, #faf8ff);
    border-bottom: 2px solid var(--ac-border);
    border-inline-end: 1px solid var(--ac-border);
}
.store-page .st-cmp-matrix thead th:last-child {
    border-inline-end: 0;
}
.store-page .st-cmp-corner {
    min-width: 210px;
    width: 220px;
}
.store-page .st-cmp-corner-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    padding: .5rem .25rem;
}
.store-page .st-cmp-corner-icon {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--ac-600), var(--ac-700));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    margin-bottom: .75rem;
    box-shadow: 0 8px 18px -6px rgba(124, 58, 237, .45);
}
.store-page .st-cmp-corner-box strong {
    font-size: 1.02rem;
    font-weight: 900;
    color: var(--ac-ink);
    margin-bottom: .3rem;
}
.store-page .st-cmp-corner-box small {
    font-size: .78rem;
    font-weight: 600;
    color: var(--ac-muted);
    line-height: 1.55;
}

.store-page .st-cmp-prod-col {
    min-width: 250px;
    max-width: 310px;
}
.store-page .st-cmp-prod-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: .9rem;
    border-radius: 16px;
    background: var(--ac-surface, #fff);
    border: 1px solid var(--ac-border);
    box-shadow: 0 6px 18px -8px rgba(76, 29, 149, .1);
}
.store-page .st-cmp-remove-form {
    position: absolute;
    top: .55rem;
    inset-inline-end: .55rem;
    z-index: 2;
}
.store-page .st-cmp-remove-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(220, 38, 38, .2);
    background: rgba(254, 226, 226, .85);
    color: #dc2626;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    cursor: pointer;
    transition: all .2s ease;
}
.store-page .st-cmp-remove-btn:hover {
    background: #dc2626;
    color: #fff;
    transform: scale(1.08);
}
.store-page .st-cmp-prod-media {
    position: relative;
    height: 140px;
    border-radius: 12px;
    background: radial-gradient(circle at 50% 45%, #ffffff 0%, #f5f3ff 100%);
    border: 1px solid rgba(124, 58, 237, .08);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .75rem;
    margin-bottom: .75rem;
    text-decoration: none;
}
[data-theme='dark'] .store-page .st-cmp-prod-media,
[data-bs-theme='dark'] .store-page .st-cmp-prod-media {
    background: radial-gradient(circle at 50% 45%, #262136 0%, #171324 100%);
}
.store-page .st-cmp-prod-media img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform .3s ease;
}
.store-page .st-cmp-prod-media:hover img {
    transform: scale(1.06);
}
.store-page .st-cmp-prod-ph {
    font-size: 2.2rem;
    color: var(--ac-300);
}
.store-page .st-cmp-discount-tag {
    position: absolute;
    bottom: .45rem;
    inset-inline-start: .45rem;
    padding: .15rem .5rem;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: .68rem;
    font-weight: 900;
}
.store-page .st-cmp-prod-kicker {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .35rem;
    margin-bottom: .35rem;
}
.store-page .st-cmp-brand-pill {
    padding: .12rem .5rem;
    border-radius: 6px;
    background: var(--ac-100);
    color: var(--ac-700);
    font-size: .68rem;
    font-weight: 800;
}
.store-page .st-cmp-model-pill {
    padding: .12rem .45rem;
    border-radius: 6px;
    background: var(--ac-surface-soft, #f8fafc);
    border: 1px solid var(--ac-border);
    color: var(--ac-muted);
    font-size: .68rem;
    font-weight: 700;
}
.store-page .st-cmp-prod-title {
    font-size: .92rem;
    font-weight: 800;
    color: var(--ac-ink) !important;
    text-decoration: none;
    line-height: 1.4;
    margin-bottom: .6rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.store-page .st-cmp-prod-title:hover {
    color: var(--ac-600) !important;
}
.store-page .st-cmp-prod-price {
    margin-top: auto;
    padding-top: .5rem;
    border-top: 1px dashed var(--ac-border);
    margin-bottom: .65rem;
}
.store-page .st-cmp-prod-price del {
    display: block;
    font-size: .72rem;
    color: var(--ac-muted);
}
.store-page .st-cmp-prod-price strong {
    font-size: 1.05rem;
    font-weight: 900;
    color: var(--ac-700);
}
.store-page .st-cmp-prod-price strong span {
    font-size: .74rem;
    color: var(--ac-muted);
}
.store-page .st-cmp-prod-actions {
    display: flex;
    gap: .4rem;
}

/* Matrix Body Rows */
.store-page .st-cmp-matrix tbody th,
.store-page .st-cmp-matrix tbody td {
    padding: .85rem 1.1rem;
    border-bottom: 1px solid var(--ac-border);
    border-inline-end: 1px solid var(--ac-border);
    font-size: .88rem;
}
.store-page .st-cmp-matrix tbody td:last-child {
    border-inline-end: 0;
}
.store-page .st-cmp-matrix tbody tr:last-child th,
.store-page .st-cmp-matrix tbody tr:last-child td {
    border-bottom: 0;
}
.store-page .st-cmp-matrix tbody th {
    background: var(--ac-surface-soft, #faf8ff);
    font-weight: 800;
    color: var(--ac-ink);
    white-space: nowrap;
}
.store-page .st-cmp-matrix tbody th i {
    width: 20px;
    color: var(--ac-600);
    margin-inline-end: .4rem;
    text-align: center;
}
.store-page .st-cmp-section-row td {
    background: linear-gradient(90deg, var(--ac-100) 0%, var(--ac-50) 100%);
    color: var(--ac-800);
    font-weight: 900;
    font-size: .82rem;
    letter-spacing: .02em;
    padding: .6rem 1.1rem !important;
    border-inline-end: 0 !important;
}
[data-theme='dark'] .store-page .st-cmp-section-row td,
[data-bs-theme='dark'] .store-page .st-cmp-section-row td {
    background: rgba(124, 58, 237, .18);
    color: #ddd6fe;
}
.store-page .st-cmp-val-price {
    font-size: 1rem;
    font-weight: 900;
    color: var(--ac-700);
}
.store-page .st-cmp-save-pill {
    display: inline-block;
    margin-inline-start: .4rem;
    padding: .1rem .45rem;
    border-radius: 999px;
    background: #dcfce7;
    color: #15803d;
    font-size: .7rem;
    font-weight: 800;
}
.store-page .st-cmp-inline-code {
    display: inline-block;
    margin-inline-start: .35rem;
    padding: .1rem .45rem;
    border-radius: 6px;
    background: var(--ac-50);
    border: 1px solid var(--ac-200);
    color: var(--ac-700);
    font-size: .75rem;
    font-weight: 700;
}
.store-page .st-cmp-store-link {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-weight: 800;
    color: var(--ac-ink) !important;
    text-decoration: none;
}
.store-page .st-cmp-store-link:hover {
    color: var(--ac-600) !important;
}
.store-page .st-cmp-store-link img,
.store-page .st-cmp-store-avatar {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    object-fit: cover;
    flex-shrink: 0;
}
.store-page .st-cmp-store-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--ac-100);
    color: var(--ac-700);
    font-size: .72rem;
}
.store-page .st-cmp-pill {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .22rem .65rem;
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 800;
}
.store-page .st-cmp-pill--brand { background: var(--ac-100); color: var(--ac-700); }
.store-page .st-cmp-pill--ok { background: #dcfce7; color: #15803d; }
.store-page .st-cmp-pill--danger { background: #fee2e2; color: #dc2626; }
.store-page .st-cmp-pill--amber { background: #fef3c7; color: #b45309; }
[data-theme='dark'] .store-page .st-cmp-pill--ok,
[data-bs-theme='dark'] .store-page .st-cmp-pill--ok { background: rgba(34, 197, 94, .18); color: #4ade80; }
[data-theme='dark'] .store-page .st-cmp-pill--amber,
[data-bs-theme='dark'] .store-page .st-cmp-pill--amber { background: rgba(245, 158, 11, .2); color: #fbbf24; }

.store-page .st-cmp-pdf-link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .28rem .7rem;
    border-radius: 8px;
    background: rgba(220, 38, 38, .08);
    border: 1px solid rgba(220, 38, 38, .2);
    color: #dc2626 !important;
    font-size: .78rem;
    font-weight: 800;
    text-decoration: none;
    transition: all .2s ease;
}
.store-page .st-cmp-pdf-link:hover {
    background: #dc2626;
    color: #fff !important;
}
.store-page .st-cmp-acc-list {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
}
.store-page .st-cmp-acc-chip {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .2rem .55rem;
    border-radius: 8px;
    background: var(--ac-50);
    border: 1px solid var(--ac-border);
    color: var(--ac-ink);
    font-size: .75rem;
    font-weight: 700;
}
.store-page .st-cmp-acc-chip i {
    color: #16a34a;
    font-size: .68rem;
}
.store-page .st-cmp-empty {
    padding: 3.5rem 1.5rem;
    max-width: 560px;
    margin: 1rem auto 2rem;
}
.store-page .st-cmp-empty-icon {
    width: 68px;
    height: 68px;
    border-radius: 20px;
    background: var(--ac-100);
    color: var(--ac-600);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

/* ── Store Breadcrumb Redesign ───────────────────────────────────────── */
.st-breadcrumb {
    display: flex;
    align-items: center;
}

.st-breadcrumb-list {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .4rem;
    padding: .35rem .85rem;
    margin: 0;
    list-style: none;
    background: rgba(255, 255, 255, 0.94) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.95) !important;
    border-radius: 999px;
    box-shadow: 0 4px 14px -2px rgba(30, 10, 60, 0.2);
}

.st-breadcrumb-item {
    display: inline-flex;
    align-items: center;
    font-size: .8rem;
    font-weight: 800;
}

.st-breadcrumb-item a,
.store-page .ac-detail-hero .st-breadcrumb-item a {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: #4c1d95 !important;
    text-decoration: none !important;
    padding: .2rem .5rem;
    border-radius: 6px;
    font-weight: 800 !important;
    transition: all .2s ease;
}

.st-breadcrumb-item a:hover,
.store-page .ac-detail-hero .st-breadcrumb-item a:hover {
    color: #2e1065 !important;
    background: rgba(124, 58, 237, 0.14) !important;
}

.st-breadcrumb-item a i,
.store-page .ac-detail-hero .st-breadcrumb-item a i {
    font-size: .75rem;
    color: #6d28d9 !important;
}

.st-breadcrumb-sep,
.store-page .ac-detail-hero .st-breadcrumb-sep {
    display: inline-flex;
    align-items: center;
    color: #7c3aed !important;
    font-size: .65rem;
    user-select: none;
}

[data-theme='dark'] .st-breadcrumb-list,
[data-bs-theme='dark'] .st-breadcrumb-list {
    background: rgba(26, 23, 38, 0.85) !important;
    border-color: rgba(196, 181, 253, 0.25) !important;
    box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.5) !important;
}

[data-theme='dark'] .st-breadcrumb-item a,
[data-bs-theme='dark'] .st-breadcrumb-item a,
[data-theme='dark'] .store-page .ac-detail-hero .st-breadcrumb-item a,
[data-bs-theme='dark'] .store-page .ac-detail-hero .st-breadcrumb-item a {
    color: #ede9fe !important;
}

[data-theme='dark'] .st-breadcrumb-item a:hover,
[data-bs-theme='dark'] .st-breadcrumb-item a:hover,
[data-theme='dark'] .store-page .ac-detail-hero .st-breadcrumb-item a:hover,
[data-bs-theme='dark'] .store-page .ac-detail-hero .st-breadcrumb-item a:hover {
    color: #ffffff !important;
    background: rgba(167, 139, 250, 0.22) !important;
}

[data-theme='dark'] .st-breadcrumb-item a i,
[data-bs-theme='dark'] .st-breadcrumb-item a i,
[data-theme='dark'] .store-page .ac-detail-hero .st-breadcrumb-item a i,
[data-bs-theme='dark'] .store-page .ac-detail-hero .st-breadcrumb-item a i {
    color: #c4b5fd !important;
}

[data-theme='dark'] .st-breadcrumb-sep,
[data-bs-theme='dark'] .st-breadcrumb-sep,
[data-theme='dark'] .store-page .ac-detail-hero .st-breadcrumb-sep,
[data-bs-theme='dark'] .store-page .ac-detail-hero .st-breadcrumb-sep {
    color: #a78bfa !important;
}

/* ── Quantity Selector Redesign ─────────────────────────────────────── */
.st-qty-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .65rem .85rem;
    background: var(--ac-50, #f5f3ff);
    border: 1px solid var(--ac-border, #e9e3fb);
    border-radius: 14px;
}

.st-qty-header {
    display: flex;
    flex-direction: column;
    gap: .15rem;
}

.st-qty-label {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .84rem;
    font-weight: 800;
    color: var(--ac-ink, #1e1537);
    margin: 0;
}

.st-qty-label i {
    color: var(--ac-600, #7c3aed);
    font-size: .85rem;
}

.st-qty-stock-pill {
    font-size: .72rem;
    font-weight: 700;
    color: var(--ac-muted, #6b6485);
}

.st-qty-stock-pill strong {
    color: var(--ac-700, #6d28d9);
}

.st-qty-control {
    display: inline-flex;
    align-items: center;
    background: var(--ac-surface, #ffffff);
    border: 1.5px solid var(--ac-border, #e9e3fb);
    border-radius: 11px;
    padding: 3px;
    box-shadow: 0 2px 6px -1px rgba(109, 40, 217, 0.08);
}

.st-qty-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: var(--ac-700, #6d28d9);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease, transform .15s ease;
}

.st-qty-btn:hover {
    background: var(--ac-100, #ede9fe);
    color: var(--ac-900, #4c1d95);
    transform: scale(1.05);
}

.st-qty-btn:active {
    transform: scale(0.92);
}

.st-qty-field {
    width: 44px;
    height: 32px;
    border: none;
    background: transparent;
    text-align: center;
    font-size: .95rem;
    font-weight: 800;
    color: var(--ac-ink, #1e1537);
    outline: none;
    padding: 0;
    -moz-appearance: textfield;
}

.st-qty-field::-webkit-outer-spin-button,
.st-qty-field::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Dark mode for quantity selector */
[data-theme='dark'] .st-qty-wrapper {
    background: rgba(167, 139, 250, 0.06);
    border-color: rgba(196, 181, 253, 0.16);
}

[data-theme='dark'] .st-qty-label {
    color: #ede9fe;
}

[data-theme='dark'] .st-qty-stock-pill {
    color: #ada6c4;
}

[data-theme='dark'] .st-qty-stock-pill strong {
    color: #c4b5fd;
}

[data-theme='dark'] .st-qty-control {
    background: #1a1726;
    border-color: rgba(196, 181, 253, 0.2);
    box-shadow: 0 2px 6px -1px rgba(0, 0, 0, 0.4);
}

[data-theme='dark'] .st-qty-btn {
    color: #c4b5fd;
}

[data-theme='dark'] .st-qty-btn:hover {
    background: rgba(167, 139, 250, 0.18);
    color: #fff;
}

[data-theme='dark'] .st-qty-field {
    color: #fff;
}

/* ══════════════════════════════════════════════════════════════════════
   Same Model at Other Stores (.st-alt-sellers)
   ══════════════════════════════════════════════════════════════════════ */
.st-alt-sellers {
    margin-top: 1.5rem;
    padding: 1.15rem 1.1rem;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(245, 243, 255, 0.6) 0%, rgba(255, 255, 255, 0.8) 100%);
    border: 1px solid var(--ac-border, #e9e3fb);
    box-shadow: 0 2px 10px -2px rgba(109, 40, 217, 0.05);
}

.st-alt-sellers-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .95rem;
}

.st-alt-sellers-title {
    display: flex;
    align-items: center;
    gap: .7rem;
    min-width: 0;
}

.st-alt-sellers-icon {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--ac-100, #ede9fe) 0%, #ddd6fe 100%);
    color: var(--ac-700, #6d28d9);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .92rem;
    flex-shrink: 0;
    box-shadow: 0 2px 6px -1px rgba(109, 40, 217, 0.15);
}

.st-alt-sellers-heading {
    font-size: .92rem;
    font-weight: 800;
    color: var(--ac-ink, #1e1537);
    margin: 0;
    line-height: 1.25;
}

.st-alt-sellers-sub {
    display: block;
    font-size: .73rem;
    color: var(--ac-muted, #6b6485);
    margin-top: 2px;
}

.st-alt-sellers-badge {
    padding: .22rem .65rem;
    border-radius: 999px;
    background: #ffffff;
    color: var(--ac-700, #6d28d9);
    font-size: .72rem;
    font-weight: 800;
    white-space: nowrap;
    border: 1px solid rgba(124, 58, 237, 0.18);
    box-shadow: 0 1px 3px rgba(109, 40, 217, 0.08);
}

.st-alt-sellers-list {
    display: flex;
    flex-direction: column;
    gap: .55rem;
}

.st-alt-seller-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .7rem .85rem;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid var(--ac-border, #e9e3fb);
    box-shadow: 0 1px 4px rgba(109, 40, 217, 0.04);
    text-decoration: none !important;
    color: inherit !important;
    transition: all .22s cubic-bezier(.16, 1, .3, 1);
}

.st-alt-seller-card:hover {
    background: #ffffff;
    border-color: var(--ac-400, #a78bfa);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px -4px rgba(109, 40, 217, 0.12);
}

.st-alt-seller-info {
    display: flex;
    align-items: center;
    gap: .7rem;
    min-width: 0;
}

.st-alt-seller-logo {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    object-fit: cover;
    background: var(--ac-100, #ede9fe);
    border: 1px solid rgba(124, 58, 237, 0.12);
    flex-shrink: 0;
}

.st-alt-seller-logo--initial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1rem;
    color: var(--ac-700, #6d28d9);
}

.st-alt-seller-meta {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    min-width: 0;
}

.st-alt-seller-name {
    display: flex;
    align-items: center;
    gap: .35rem;
    font-size: .86rem;
    font-weight: 800;
    color: var(--ac-ink, #1e1537);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.st-alt-seller-badges {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}

.st-alt-tag {
    font-size: .69rem;
    font-weight: 700;
    color: var(--ac-muted, #6b6485);
    display: inline-flex;
    align-items: center;
    gap: .25rem;
}

.st-alt-tag i {
    font-size: .65rem;
    color: var(--ac-500, #8b5cf6);
}

.st-alt-tag--warranty i {
    color: #16a34a;
}

.st-alt-seller-action {
    display: flex;
    align-items: center;
    gap: .65rem;
    flex-shrink: 0;
}

.st-alt-seller-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.15;
}

.st-alt-price-label {
    font-size: .65rem;
    font-weight: 700;
    color: var(--ac-muted, #6b6485);
}

.st-alt-price-val {
    font-size: .95rem;
    font-weight: 900;
    color: var(--ac-ink, #1e1537);
    letter-spacing: -0.01em;
}

.st-alt-price-cur {
    font-size: .68rem;
    font-weight: 700;
    color: var(--ac-600, #7c3aed);
}

.st-alt-seller-arrow {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    background: var(--ac-50, #f5f3ff);
    color: var(--ac-600, #7c3aed);
    border: 1px solid rgba(124, 58, 237, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .7rem;
    transition: all .2s ease;
}

.st-alt-seller-card:hover .st-alt-seller-arrow {
    background: var(--ac-600, #7c3aed);
    color: #ffffff;
    border-color: var(--ac-600, #7c3aed);
    transform: translateX(-3px);
}

[dir="ltr"] .st-alt-seller-card:hover .st-alt-seller-arrow,
html:not([dir="rtl"]):not([lang="ar"]) .st-alt-seller-card:hover .st-alt-seller-arrow {
    transform: translateX(3px);
}

/* Dark mode support */
[data-theme='dark'] .st-alt-sellers,
[data-bs-theme='dark'] .st-alt-sellers {
    background: linear-gradient(180deg, rgba(26, 23, 38, 0.8) 0%, rgba(20, 17, 30, 0.9) 100%);
    border-color: rgba(196, 181, 253, 0.16);
    box-shadow: 0 4px 14px -2px rgba(0, 0, 0, 0.4);
}

[data-theme='dark'] .st-alt-sellers-icon,
[data-bs-theme='dark'] .st-alt-sellers-icon {
    background: rgba(167, 139, 250, 0.16);
    color: #c4b5fd;
    box-shadow: none;
}

[data-theme='dark'] .st-alt-sellers-heading,
[data-bs-theme='dark'] .st-alt-sellers-heading {
    color: #ede9fe;
}

[data-theme='dark'] .st-alt-sellers-sub,
[data-bs-theme='dark'] .st-alt-sellers-sub {
    color: #ada6c4;
}

[data-theme='dark'] .st-alt-sellers-badge,
[data-bs-theme='dark'] .st-alt-sellers-badge {
    background: #1a1726;
    color: #c4b5fd;
    border-color: rgba(196, 181, 253, 0.22);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

[data-theme='dark'] .st-alt-seller-card,
[data-bs-theme='dark'] .st-alt-seller-card {
    background: #1a1726;
    border-color: rgba(196, 181, 253, 0.15);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

[data-theme='dark'] .st-alt-seller-card:hover,
[data-bs-theme='dark'] .st-alt-seller-card:hover {
    background: #231e34;
    border-color: rgba(196, 181, 253, 0.35);
    box-shadow: 0 6px 18px -3px rgba(0, 0, 0, 0.6);
}

[data-theme='dark'] .st-alt-seller-logo,
[data-bs-theme='dark'] .st-alt-seller-logo {
    background: rgba(167, 139, 250, 0.14);
    border-color: rgba(196, 181, 253, 0.18);
}

[data-theme='dark'] .st-alt-seller-logo--initial,
[data-bs-theme='dark'] .st-alt-seller-logo--initial {
    color: #c4b5fd;
}

[data-theme='dark'] .st-alt-seller-name,
[data-bs-theme='dark'] .st-alt-seller-name {
    color: #ede9fe;
}

[data-theme='dark'] .st-alt-tag,
[data-bs-theme='dark'] .st-alt-tag {
    color: #ada6c4;
}

[data-theme='dark'] .st-alt-price-label,
[data-bs-theme='dark'] .st-alt-price-label {
    color: #ada6c4;
}

[data-theme='dark'] .st-alt-price-val,
[data-bs-theme='dark'] .st-alt-price-val {
    color: #ffffff;
}

[data-theme='dark'] .st-alt-price-cur,
[data-bs-theme='dark'] .st-alt-price-cur {
    color: #c4b5fd;
}

[data-theme='dark'] .st-alt-seller-arrow,
[data-bs-theme='dark'] .st-alt-seller-arrow {
    background: rgba(167, 139, 250, 0.12);
    color: #c4b5fd;
    border-color: rgba(196, 181, 253, 0.18);
}

[data-theme='dark'] .st-alt-seller-card:hover .st-alt-seller-arrow,
[data-bs-theme='dark'] .st-alt-seller-card:hover .st-alt-seller-arrow {
    background: #7c3aed;
    color: #ffffff;
    border-color: #7c3aed;
}

@media (max-width: 480px) {
    .st-alt-seller-card {
        padding: .6rem .7rem;
    }
    .st-alt-seller-logo {
        width: 32px;
        height: 32px;
    }
    .st-alt-seller-name {
        font-size: .8rem;
    }
    .st-alt-price-val {
        font-size: .85rem;
    }
}



/* ── Enhancement: Cards sizing, Brand grid, Store profile fix, Step counter fix ── */

/* 1. Prevent duplicate numbers in track steps */
.store-page .st-stepper .ac-step::before {
    display: none !important;
}

/* 2. Enlarge Product Cards and Grid in Store Catalog */
.store-page .ac-grid {
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)) !important;
    gap: 1.5rem !important;
}
.store-page .st-prod-card {
    border-radius: 20px;
}
.store-page .st-prod-media {
    height: 235px !important;
    padding: 1.25rem 1.25rem 2rem !important;
}
.store-page .st-prod-img {
    max-height: 180px !important;
}

/* 5. Category Image Thumbnails in Browse by Category */
.st-cat-img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    border-radius: 8px;
}
.st-cat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--ac-50, #f5f3ff);
    color: var(--ac-600, #7c3aed);
    font-size: 1.25rem;
    flex-shrink: 0;
    overflow: hidden;
}

/* 6. Brand Grid & Cards (Browse by Brand) */
.st-brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}
.st-brand-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.1rem .85rem;
    background: var(--ac-surface, #fff);
    border: 1px solid var(--ac-border, #e2e8f0);
    border-radius: 16px;
    text-decoration: none !important;
    color: var(--ac-ink, #1e293b) !important;
    transition: all .25s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}
.st-brand-card:hover {
    transform: translateY(-4px);
    border-color: var(--ac-400, #a78bfa);
    box-shadow: 0 10px 24px -8px rgba(124, 58, 237, 0.18);
}
.st-brand-card.active {
    border-color: var(--ac-600, #7c3aed);
    background: var(--ac-50, #f5f3ff);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
}
.st-brand-logo-wrap {
    width: 72px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: .6rem;
}
.st-brand-logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.st-brand-logo-fallback {
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--ac-600, #7c3aed);
    background: var(--ac-100, #ede9fe);
    padding: .4rem .8rem;
    border-radius: 10px;
    letter-spacing: 1px;
}
.st-brand-name {
    font-size: .88rem;
    font-weight: 700;
    text-align: center;
}

/* 7. Cart Quantity Stepper Input */
.st-cart-qty-stepper {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    border-radius: 8px;
    overflow: hidden;
}
.st-cart-qty-stepper input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
    font-weight: 800 !important;
    color: #0f172a !important;
}
.st-cart-qty-stepper input[type=number]::-webkit-inner-spin-button,
.st-cart-qty-stepper input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* 8. Hero Media (GIF / Image) Support */
.st-hero.st-hero--has-media {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    position: relative !important;
}
.st-hero.st-hero--has-media::before,
.st-hero.st-hero--has-media::after {
    display: none !important;
}

/* 9. Fix Merchant Logo Stretching on Product Cards and Swiper Slides */
.st-prod-merchant-logo-wrap {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
    flex: 0 0 36px !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    background: #fff !important;
    border: 1px solid rgba(124, 58, 237, 0.15) !important;
}
.st-prod-merchant-logo,
.home-v2 .st-prod-merchant-logo,
.swiper-slide .st-prod-merchant-logo,
.swiper-slide:hover .st-prod-merchant-logo {
    display: block !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    max-width: 32px !important;
    max-height: 32px !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: contain !important;
    border-radius: 50% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
    transform: none !important;
    transition: none !important;
}

/* 10. Product Card Watermark & Width Fit */
.home-v2.hv2-embed {
    width: 100% !important;
}
.st-prod-card {
    width: 100% !important;
}
.st-prod-media {
    position: relative !important;
    overflow: hidden !important;
    width: 100% !important;
}
.st-prod-watermark {
    position: absolute !important;
    bottom: 8px !important;
    right: 10px !important;
    inset-inline-end: 10px !important;
    z-index: 3 !important;
    pointer-events: none !important;
    user-select: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
}
[dir="rtl"] .st-prod-watermark {
    right: 10px !important;
    left: auto !important;
}
[dir="ltr"] .st-prod-watermark {
    right: 10px !important;
    left: auto !important;
}
.st-prod-watermark-img {
    width: 36px !important;
    height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
    object-fit: contain !important;
    opacity: 0.72 !important;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5)) !important;
    transform: none !important;
    transition: opacity .25s ease, transform .25s ease !important;
}
.st-prod-card:hover .st-prod-watermark-img,
.st-cmp-prod-media:hover .st-prod-watermark-img {
    opacity: 0.95 !important;
    transform: scale(1.08) !important;
}
[data-theme='dark'] .st-prod-watermark-img,
[data-bs-theme='dark'] .st-prod-watermark-img {
    opacity: 0.8 !important;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.7)) brightness(1.1) !important;
}
.st-prod-watermark-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 2px 7px !important;
    background: rgba(15, 23, 42, 0.65) !important;
    color: #ffffff !important;
    border-radius: 6px !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    opacity: 0.82 !important;
    max-width: 130px !important;
    transition: opacity .25s ease, background-color .25s ease !important;
}
.st-prod-card:hover .st-prod-watermark-badge,
.st-cmp-prod-media:hover .st-prod-watermark-badge {
    opacity: 0.98 !important;
    background: rgba(15, 23, 42, 0.82) !important;
}
.st-prod-watermark-badge i {
    font-size: 0.65rem !important;
    opacity: 0.85 !important;
}
.st-prod-watermark-text {
    font-size: 0.68rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    transform: none !important;
    opacity: 1 !important;
}
.st-gallery-main {
    position: relative !important;
    overflow: hidden !important;
}
.st-prod-watermark--detail {
    bottom: 16px !important;
    right: 18px !important;
    inset-inline-end: 18px !important;
}
.st-prod-watermark--detail .st-prod-watermark-img {
    width: 54px !important;
    height: 54px !important;
    max-width: 54px !important;
    max-height: 54px !important;
    opacity: 0.75 !important;
}
.st-prod-watermark--detail .st-prod-watermark-badge {
    padding: 4px 10px !important;
    border-radius: 8px !important;
    max-width: 220px !important;
}
.st-prod-watermark--detail .st-prod-watermark-badge i {
    font-size: 0.75rem !important;
}
.st-prod-watermark--detail .st-prod-watermark-text {
    font-size: 0.78rem !important;
}
.st-prod-img {
    position: relative !important;
    z-index: 2 !important;
    width: 100% !important;
    max-width: 100% !important;
}
.st-prod-media .hv2-media-badges,
.st-prod-media .st-prod-actions,
.st-prod-media .st-prod-discount,
.st-prod-media .st-prod-warranty {
    position: absolute !important;
    z-index: 4 !important;
}



/* ── Browse by category: image cards (category image set from admin) ── */
.store-page .st-cat-card--image {
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    gap: 0;
}
.store-page .st-cat-card--image .st-cat-photo {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--ac-50, #f5f3ff);
    overflow: hidden;
}
.store-page .st-cat-card--image .st-cat-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}
.store-page .st-cat-card--image:hover .st-cat-photo img { transform: scale(1.05); }
.store-page .st-cat-card--image .st-cat-info { padding: .85rem 1rem; }
.store-page .st-cat-card--image .st-cat-arrow {
    position: absolute;
    inset-block-end: .85rem;
    inset-inline-end: 1rem;
}

/* ── Product card media: photo fills the card + store-logo watermark ───────
   Scoped to .hv2-embed .st-prod-card (the shared _product_card.html) so it
   wins over the older .home-v2 / .store-page rules in both stylesheets.
   The full photo is shown (contain, never cropped) over a blurred copy of
   itself, so the media area is always filled edge to edge. */
.hv2-embed .st-prod-card .st-prod-media {
    position: relative !important;
    height: auto !important;
    aspect-ratio: 4 / 3;
    padding: 0 !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #fff !important;
}
.hv2-embed .st-prod-card .st-prod-media--photo::before {
    content: "";
    position: absolute;
    inset: -24px;
    z-index: 0;
    background-image: var(--st-prod-bg);
    background-size: cover;
    background-position: center;
    filter: blur(18px) saturate(1.1);
    opacity: .55;
    transform: scale(1.1);
}
.hv2-embed .st-prod-card .st-prod-img {
    position: relative !important;
    z-index: 1 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    filter: none !important;
}

/* Watermark: centred, translucent store logo over the photo */
.hv2-embed .st-prod-card .st-prod-media .st-prod-watermark {
    position: absolute !important;
    inset: 0 !important;
    top: 0 !important; right: 0 !important; bottom: 0 !important; left: 0 !important;
    z-index: 2 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    pointer-events: none !important;
    user-select: none !important;
}
.hv2-embed .st-prod-card .st-prod-media .st-prod-watermark-img {
    width: 42% !important;
    height: auto !important;
    max-width: 42% !important;
    max-height: 48% !important;
    object-fit: contain !important;
    opacity: .2 !important;
    mix-blend-mode: multiply;            /* drops white logo backgrounds on light photos */
    filter: grayscale(.15) !important;
    transform: none !important;
    transition: opacity .25s ease !important;
}
.hv2-embed .st-prod-card:hover .st-prod-media .st-prod-watermark-img {
    opacity: .28 !important;
    transform: none !important;
}
/* No logo → store name as a faint diagonal text watermark */
.hv2-embed .st-prod-card .st-prod-media .st-prod-watermark--text .st-prod-watermark-badge {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    padding: 0 !important;
    max-width: 80% !important;
    opacity: 1 !important;
    transform: rotate(-18deg);
    gap: .4rem !important;
    color: rgba(15, 23, 42, .2) !important;
}
.hv2-embed .st-prod-card .st-prod-media .st-prod-watermark--text .st-prod-watermark-badge i,
.hv2-embed .st-prod-card .st-prod-media .st-prod-watermark--text .st-prod-watermark-text {
    color: rgba(15, 23, 42, .2) !important;
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    opacity: 1 !important;
}
.hv2-embed .st-prod-card .st-prod-media .hv2-media-badges,
.hv2-embed .st-prod-card .st-prod-media .st-prod-actions,
.hv2-embed .st-prod-card .st-prod-media .st-prod-discount,
.hv2-embed .st-prod-card .st-prod-media .st-prod-warranty {
    z-index: 4 !important;
}

[data-theme='dark'] .hv2-embed .st-prod-card .st-prod-media,
[data-bs-theme='dark'] .hv2-embed .st-prod-card .st-prod-media {
    background: #171324 !important;
}
[data-theme='dark'] .hv2-embed .st-prod-card .st-prod-media .st-prod-watermark-img,
[data-bs-theme='dark'] .hv2-embed .st-prod-card .st-prod-media .st-prod-watermark-img {
    mix-blend-mode: normal;
    opacity: .22 !important;
}
[data-theme='dark'] .hv2-embed .st-prod-card .st-prod-media .st-prod-watermark--text .st-prod-watermark-badge i,
[data-theme='dark'] .hv2-embed .st-prod-card .st-prod-media .st-prod-watermark--text .st-prod-watermark-text,
[data-bs-theme='dark'] .hv2-embed .st-prod-card .st-prod-media .st-prod-watermark--text .st-prod-watermark-badge i,
[data-bs-theme='dark'] .hv2-embed .st-prod-card .st-prod-media .st-prod-watermark--text .st-prod-watermark-text {
    color: rgba(255, 255, 255, .22) !important;
}


/* ==========================================================================
   Store detail page (v2) — contained cover, identity bar with inline stats,
   sticky sidebar with collapsible policies. Reuses .st-sc-* chips/pill from
   the store card.
   ========================================================================== */
.sd-hero {
    margin-top: 1.25rem;
    border: 1px solid var(--ac-border);
    border-radius: 24px;
    background: var(--ac-surface, #fff);
    overflow: hidden;
    box-shadow: 0 10px 30px -22px rgba(30, 16, 60, .35);
}
.sd-hero.featured {
    border-color: rgba(245, 158, 11, .55);
    box-shadow: 0 0 0 1px rgba(245, 158, 11, .15), 0 14px 34px -22px rgba(217, 119, 6, .5);
}
.sd-cover {
    position: relative;
    height: clamp(150px, 22vw, 260px);
    background: linear-gradient(135deg, #3b0764 0%, #6d28d9 55%, #a78bfa 100%) center / cover no-repeat;
}
/* No cover photo: a shorter band with a soft dot pattern instead of a tall empty block. */
.sd-cover:not([style]) {
    height: clamp(110px, 11vw, 150px);
    background-image:
        radial-gradient(rgba(255, 255, 255, .16) 1.2px, transparent 1.3px),
        linear-gradient(135deg, #3b0764 0%, #6d28d9 55%, #a78bfa 100%);
    background-size: 18px 18px, cover;
    background-repeat: repeat, no-repeat;
    background-position: 0 0, center;
}
.sd-hero.featured .sd-cover:not([style]) {
    background-image:
        radial-gradient(rgba(255, 255, 255, .2) 1.2px, transparent 1.3px),
        linear-gradient(135deg, #78350f 0%, #d97706 55%, #fbbf24 100%);
    background-size: 18px 18px, cover;
    background-repeat: repeat, no-repeat;
    background-position: 0 0, center;
}
.sd-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(15, 8, 30, .25) 0%, rgba(15, 8, 30, 0) 40%, rgba(15, 8, 30, .22) 100%);
    pointer-events: none;
}
.sd-featured { top: 1rem; inset-inline-start: auto; inset-inline-end: 1rem; background: linear-gradient(135deg, #fde68a 0%, #f59e0b 100%); color: #451a03; font-size: .78rem; padding: .35rem .85rem .35rem .75rem; }

.sd-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 1rem 1.5rem;
    padding: 0 1.5rem 1.35rem;
}
.sd-id {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    flex: 1 1 380px;
    min-width: 0;
}
.sd-logo {
    width: 108px;
    height: 108px;
    margin-top: -54px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    object-fit: cover;
    border-radius: 24px;
    border: 5px solid var(--ac-surface, #fff);
    background: var(--ac-100);
    box-shadow: 0 12px 28px -10px rgba(30, 16, 60, .4);
    color: var(--ac-700);
    font-size: 2.4rem;
    font-weight: 900;
}
.sd-id-text { min-width: 0; padding-top: .9rem; }
.sd-name {
    display: flex;
    align-items: center;
    gap: .45rem;
    margin: 0 0 .5rem;
    font-size: clamp(1.35rem, 2.4vw, 1.75rem);
    font-weight: 900;
    line-height: 1.25;
    color: var(--ac-ink);
}
.sd-name > span { overflow-wrap: anywhere; }
.sd-verified { flex-shrink: 0; color: #1d9bf0; font-size: 1.15rem; }
.sd-meta { display: flex; flex-wrap: wrap; gap: .4rem; }

.sd-stats {
    display: flex;
    border: 1px solid var(--ac-border);
    border-radius: 16px;
    background: var(--ac-50);
    overflow: hidden;
}
.sd-stat {
    min-width: 96px;
    padding: .65rem 1rem;
    text-align: center;
}
.sd-stat + .sd-stat { border-inline-start: 1px solid var(--ac-border); }
.sd-stat strong {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .3rem;
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--ac-700);
    line-height: 1.2;
}
.sd-stat strong i { font-size: .9rem; color: #f59e0b; }
.sd-stat span { font-size: .74rem; font-weight: 700; color: var(--ac-muted); white-space: nowrap; }
.sd-edit { align-self: center; }
/* .ac-subnav pulls itself up over the academy hero (-28px); not here. */
.sd-page .st-subnav { margin-top: 0; margin-bottom: .5rem; }

/* Panels */
.sd-panel {
    background: var(--ac-surface, #fff);
    border: 1px solid var(--ac-border);
    border-radius: 18px;
    padding: 1.15rem 1.25rem;
}
.sd-panel + .sd-panel { margin-top: 1rem; }
.sd-panel-title {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin-bottom: .85rem;
    font-size: 1rem;
    font-weight: 800;
    color: var(--ac-ink);
}
.sd-panel-title > i {
    width: 30px;
    height: 30px;
    display: inline-grid;
    place-items: center;
    border-radius: 9px;
    background: var(--ac-50);
    color: var(--ac-600);
    font-size: .85rem;
}
.sd-about-text { white-space: pre-line; color: var(--ac-ink); line-height: 1.85; font-size: .93rem; }
.sd-count {
    display: inline-grid;
    place-items: center;
    min-width: 1.9em;
    padding: .05rem .5rem;
    border-radius: 999px;
    background: var(--ac-50);
    color: var(--ac-700);
    font-size: .8rem;
    font-weight: 800;
    vertical-align: middle;
}
.sd-section-head { margin: 1.75rem 0 1rem; }
.sd-section-head h2 { margin: .15rem 0 0; font-size: 1.4rem; font-weight: 900; color: var(--ac-ink); }
.sd-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.sd-empty { display: flex; flex-direction: column; align-items: center; gap: .6rem; padding: 2.5rem 1rem; color: var(--ac-muted); text-align: center; }
.sd-empty i { font-size: 2rem; color: var(--ac-300); }

/* Sidebar */
@media (min-width: 992px) {
    .sd-side { position: sticky; top: 90px; }
}
.sd-ic {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: inline-grid;
    place-items: center;
    border-radius: 10px;
    background: var(--ac-50);
    color: var(--ac-600);
    font-size: .85rem;
}
.sd-ic-wa { background: #dcfce7; color: #16a34a; }
.sd-contacts { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; font-size: .88rem; }
.sd-contacts li { display: flex; align-items: center; gap: .65rem; min-width: 0; }
.sd-lock {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    padding: .8rem .9rem;
    border-radius: 14px;
    border: 1px dashed var(--ac-300);
    background: var(--ac-50);
    color: var(--ac-muted);
    font-size: .84rem;
    line-height: 1.6;
}
.sd-pay { display: flex; flex-direction: column; gap: .45rem; }
.sd-pay-item {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .55rem .75rem;
    border-radius: 12px;
    border: 1px solid var(--ac-border);
    font-size: .84rem;
    font-weight: 700;
    color: var(--ac-ink);
}
.sd-pay-item i { color: var(--ac-600); width: 1.1rem; text-align: center; }

.sd-acc { border: 1px solid var(--ac-border); border-radius: 12px; }
.sd-acc + .sd-acc { margin-top: .5rem; }
.sd-acc summary {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .65rem .85rem;
    cursor: pointer;
    list-style: none;
    font-size: .88rem;
    font-weight: 800;
    color: var(--ac-ink);
}
.sd-acc summary::-webkit-details-marker { display: none; }
.sd-acc summary i { color: var(--ac-600); width: 1.1rem; text-align: center; }
.sd-acc summary::after {
    content: "\f107";
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free";
    font-weight: 900;
    margin-inline-start: auto;
    color: var(--ac-muted);
    transition: transform .2s ease;
}
.sd-acc[open] summary::after { transform: rotate(180deg); }
.sd-acc[open] summary { border-bottom: 1px solid var(--ac-border); }
.sd-acc p {
    margin: 0;
    padding: .7rem .85rem .85rem;
    white-space: pre-line;
    font-size: .84rem;
    line-height: 1.75;
    color: var(--ac-muted);
}

.sd-review { display: flex; gap: .7rem; padding: .7rem 0; }
.sd-review + .sd-review { border-top: 1px solid var(--ac-border); }
.sd-avatar {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ac-500), var(--ac-700));
    color: #fff;
    font-weight: 800;
    font-size: .9rem;
}
.sd-review-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; font-size: .86rem; }
.sd-stars { color: #f59e0b; font-size: .78rem; letter-spacing: 1px; white-space: nowrap; }
.sd-review p { margin: .2rem 0 0; font-size: .84rem; color: var(--ac-muted); line-height: 1.6; }

[data-theme='dark'] .sd-ic-wa,
[data-bs-theme='dark'] .sd-ic-wa { background: rgba(34, 197, 94, .16); color: #4ade80; }
[data-theme='dark'] .sd-hero,
[data-bs-theme='dark'] .sd-hero { box-shadow: none; }

@media (max-width: 767.98px) {
    .sd-bar { padding: 0 1rem 1.1rem; }
    .sd-id { flex-direction: column; align-items: flex-start; gap: .4rem; flex-basis: 100%; }
    .sd-logo { width: 88px; height: 88px; margin-top: -44px; border-radius: 20px; font-size: 2rem; }
    .sd-id-text { padding-top: 0; }
    .sd-stats { width: 100%; }
    .sd-stat { flex: 1; min-width: 0; padding: .55rem .4rem; }
    .sd-edit { width: 100%; }
    .sd-actions { width: 100%; }
    .sd-actions .btn { flex: 1; }
}

/* Store page: actions + product search / filters */
.sd-actions { display: flex; gap: .5rem; align-self: center; flex-wrap: wrap; }
.sd-save.saved, .sd-save.saved i { color: #e11d48 !important; }
.sd-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .6rem;
    padding: .9rem;
    margin-bottom: 1.25rem;
    border: 1px solid var(--ac-border);
    border-radius: 18px;
    background: var(--ac-surface, #fff);
}
.sd-filters .form-select { width: auto; min-width: 150px; flex: 0 1 auto; border-radius: 12px; }
.sd-filter-search { position: relative; flex: 1 1 260px; }
.sd-filter-search i { position: absolute; top: 50%; transform: translateY(-50%); inset-inline-start: .85rem; color: var(--ac-500); font-size: .85rem; }
.sd-filter-search .form-control { padding-inline-start: 2.3rem; border-radius: 12px; }
.sd-filter-toggles { display: flex; flex-wrap: wrap; gap: .4rem; }
.sd-toggle { margin: 0; cursor: pointer; }
.sd-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.sd-toggle span { display: inline-flex; align-items: center; gap: .35rem; padding: .42rem .75rem; border-radius: 999px; border: 1px solid var(--ac-border); background: var(--ac-50); color: var(--ac-muted); font-size: .8rem; font-weight: 700; }
.sd-toggle span i { font-size: .72rem; color: var(--ac-500); }
.sd-toggle input:checked + span { background: var(--ac-600); border-color: var(--ac-600); color: #fff; }
.sd-toggle input:checked + span i { color: #fff; }
.sd-toggle input:focus-visible + span { outline: 2px solid var(--ac-400); outline-offset: 2px; }
@media (max-width: 575.98px) {
    .sd-filters .form-select { flex: 1 1 calc(50% - .3rem); min-width: 0; }
    .sd-filters > .btn { flex: 1; }
}

/* ── Buyer ⇄ merchant inquiries ─────────────────────────────────────── */
.st-inq-list { overflow: hidden; }
.st-inq-thread { display: flex; align-items: center; gap: .7rem; padding: .8rem 1rem; border-bottom: 1px solid var(--ac-border); color: var(--ac-ink) !important; text-decoration: none; }
.st-inq-thread:last-child { border-bottom: 0; }
.st-inq-thread:hover { background: var(--ac-50); }
.st-inq-thread.active { background: var(--ac-50); box-shadow: inset 3px 0 0 var(--ac-600); }
[dir="rtl"] .st-inq-thread.active { box-shadow: inset -3px 0 0 var(--ac-600); }
.st-inq-thread img, .st-inq-ph { width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; object-fit: contain; background: #fff; border: 1px solid var(--ac-border); }
.st-inq-ph { display: grid; place-items: center; color: var(--ac-500); background: var(--ac-50); }
.st-inq-chat { display: flex; flex-direction: column; }
.st-inq-head { display: flex; align-items: center; gap: .75rem; padding-bottom: .8rem; margin-bottom: .8rem; border-bottom: 1px solid var(--ac-border); }
.st-inq-head img { width: 46px; height: 46px; border-radius: 12px; object-fit: contain; background: #fff; border: 1px solid var(--ac-border); }
.st-inq-body { max-height: 460px; min-height: 240px; overflow-y: auto; display: flex; flex-direction: column; gap: .8rem; padding: .25rem; }
.st-inq-msg { display: flex; flex-direction: column; align-items: flex-start; max-width: 82%; }
.st-inq-msg.mine { align-self: flex-end; align-items: flex-end; }
.st-inq-bubble { padding: .6rem .9rem; border-radius: 16px; background: var(--ac-50); color: var(--ac-ink); line-height: 1.6; overflow-wrap: anywhere; }
.st-inq-msg.mine .st-inq-bubble { background: var(--ac-600); color: #fff; }
.st-inq-msg small { font-size: .72rem; margin-top: .2rem; }
.st-inq-form { display: flex; gap: .5rem; align-items: flex-end; margin-top: 1rem; }
.st-inq-form textarea { resize: none; }
.st-installments-pill { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .7rem; border-radius: 999px; background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; font-size: .8rem; font-weight: 700; }

/* ── Browse by category: image tiles (image on top + title) ─────────── */
.store-page .st-cat-grid.st-scroll-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 1rem;
}
.st-cat-tile {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--ac-border);
    border-radius: 18px;
    background: var(--ac-surface, #fff);
    color: var(--ac-ink) !important;
    text-decoration: none !important;
    box-shadow: 0 2px 10px -4px rgba(30, 16, 60, .08);
    transition: transform .25s cubic-bezier(.16, 1, .3, 1), box-shadow .25s ease, border-color .25s ease;
}
.st-cat-tile:hover { transform: translateY(-4px); border-color: var(--ac-300); box-shadow: 0 16px 30px -16px rgba(76, 29, 149, .35); }
.st-cat-tile.active { border-color: var(--ac-600); box-shadow: 0 0 0 3px rgba(124, 58, 237, .2); }
.st-cat-tile-media {
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
    background: #f8f7fc;
    overflow: hidden;
}
.st-cat-tile-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.st-cat-tile:hover .st-cat-tile-media img { transform: scale(1.05); }
.st-cat-tile-media.is-empty {
    background-image:
        radial-gradient(rgba(255, 255, 255, .2) 1.2px, transparent 1.3px),
        linear-gradient(135deg, #4c1d95 0%, #7c3aed 60%, #a78bfa 100%);
    background-size: 16px 16px, cover;
    color: #fff;
    font-size: 2.3rem;
}
.st-cat-tile-title { padding: .7rem .85rem 0; font-weight: 800; font-size: .95rem; line-height: 1.35; }
.st-cat-tile-meta { padding: .15rem .85rem .8rem; font-size: .76rem; color: var(--ac-muted); }

/* Mobile: categories and brands scroll sideways in one row */
@media (max-width: 767.98px) {
    .store-page .st-scroll-row,
    .store-page .st-cat-grid.st-scroll-row,
    .store-page .st-brand-grid.st-scroll-row {
        display: flex;
        flex-wrap: nowrap;
        gap: .75rem;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        margin-inline: calc(var(--bs-gutter-x, 1.5rem) * -.5);
        padding: .25rem calc(var(--bs-gutter-x, 1.5rem) * .5) .6rem;
    }
    .store-page .st-scroll-row::-webkit-scrollbar { display: none; }
    .store-page .st-scroll-row > * { scroll-snap-align: start; flex: 0 0 auto; }
    .store-page .st-cat-grid.st-scroll-row > .st-cat-tile { width: 150px; }
    .store-page .st-brand-grid.st-scroll-row > .st-brand-card { width: 118px; padding: .85rem .6rem; }
    .st-cat-tile-title { font-size: .86rem; }
}

/* Merchant dashboard: labelled quick price / stock edit + labelled actions */
.st-quick-edit { display: flex; align-items: flex-end; gap: .5rem; flex-wrap: wrap; }
.st-quick-field { display: flex; flex-direction: column; gap: .2rem; margin: 0; width: 150px; }
.st-quick-field--qty { width: 105px; }
.st-quick-field span { font-size: .72rem; font-weight: 700; color: var(--ac-muted); }
.st-quick-field .form-control { text-align: center; }
.st-quick-save { white-space: nowrap; }
.st-row-actions { display: flex; flex-wrap: wrap; gap: .3rem; min-width: 220px; }
.st-row-actions .btn { display: inline-flex; align-items: center; gap: .3rem; font-size: .76rem; padding: .3rem .55rem; }
.st-rates-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .5rem .9rem; }
.st-rate-row { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin: 0; padding: .45rem .6rem; border: 1px solid var(--ac-border); border-radius: 12px; background: var(--ac-50); }
.st-rate-row span { font-weight: 700; font-size: .86rem; }
.st-rate-row .form-control { width: 100px; text-align: center; }
.st-upload-rules { display: grid; gap: .35rem; padding: .75rem .9rem; border-radius: 12px; background: var(--ac-50); border: 1px dashed var(--ac-200); font-size: .8rem; color: var(--ac-muted); }
.st-upload-rules i { width: 1.1rem; color: var(--ac-600); margin-inline-end: .35rem; }
.st-upload-rules strong { color: var(--ac-ink); margin-inline-end: .25rem; }

/* Order price summary: what is paid now vs on delivery */
.st-sum-pay { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: .8rem; padding: .75rem .9rem; border-radius: 14px; background: linear-gradient(135deg, var(--ac-600), var(--ac-500)); color: #fff; }
.st-sum-pay span { font-weight: 700; font-size: .88rem; }
.st-sum-pay strong { font-size: 1.25rem; font-weight: 900; white-space: nowrap; }
.st-sum-pay strong small { font-size: .75rem; font-weight: 700; opacity: .85; }
.st-sum-rest { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: .45rem; padding: .55rem .9rem; border-radius: 12px; background: var(--ac-50); border: 1px dashed var(--ac-200); font-size: .84rem; }
.st-sum-rest strong { white-space: nowrap; }

/* ── Compare: side tab on mobile (store notes 169) ──────────────────────
   The bottom dock collided with the page's floating buttons (scroll-top,
   chat, «أضف»). On phones only a slim tab on the screen edge shows; tapping
   it opens the dock beside it. Desktop keeps the bottom dock. */
.st-cmp-tab { display: none; }
@media (max-width: 767.98px) {
    .st-compare-bar {
        inset: auto;
        top: 50%;
        inset-inline-start: 0;
        bottom: auto;
        transform: translateY(-50%);
        align-items: center;
        gap: .45rem;
        animation: none;
    }
    .st-cmp-tab {
        pointer-events: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: .3rem;
        padding: .75rem .45rem .6rem;
        border: 0;
        border-start-end-radius: 18px;
        border-end-end-radius: 18px;
        background: linear-gradient(160deg, #7c3aed 0%, #4c1d95 100%);
        color: #fff;
        font-size: .7rem;
        font-weight: 800;
        line-height: 1;
        box-shadow: 0 10px 24px -10px rgba(76, 29, 149, .7);
    }
    .st-cmp-tab i { font-size: 1rem; }
    .st-cmp-tab .st-cmp-tab-chev { font-size: .75rem; opacity: .85; transition: transform .2s ease; }
    .st-cmp-tab-count {
        min-width: 20px; height: 20px; padding: 0 5px;
        border-radius: 999px;
        background: linear-gradient(135deg, #f59e0b, #d97706);
        display: inline-flex; align-items: center; justify-content: center;
        font-size: .7rem;
    }
    .st-compare-bar.is-open .st-cmp-tab-chev { transform: scaleX(-1); }
    .st-compare-dock { display: none; }
    .st-compare-bar.is-open .st-compare-dock {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: min(300px, calc(100vw - 4.75rem));
        padding: .85rem;
        gap: .75rem;
        animation: stCompareSlideUp .2s ease;
    }
    .st-compare-bar.is-open .st-cmp-sub { display: block; white-space: normal; }
    .st-compare-bar.is-open .st-cmp-actions { justify-content: space-between; }
    .st-compare-bar.is-open .st-cmp-cta { flex: 1; justify-content: center; }
}

/* ── Checkout: product lines with their own discount code (notes 199) ── */
.st-co-items { display: grid; gap: .6rem; }
.st-co-item {
    padding: .65rem .75rem;
    border: 1px solid var(--ac-line, #ede9fe);
    border-radius: 12px;
    background: var(--ac-surface, #fff);
}
.st-co-thumb {
    width: 46px; height: 46px; flex-shrink: 0;
    border-radius: 10px; object-fit: cover;
    border: 1px solid var(--ac-line, #ede9fe);
    background: #fff;
    display: inline-flex; align-items: center; justify-content: center;
}
.st-co-coupon .input-group-text { background: #f5f3ff; color: var(--ac-600, #7c3aed); border-color: #ddd6fe; }
.st-co-coupon .form-control { border-color: #ddd6fe; text-transform: uppercase; }

/* ── Product form: preview / live page link (notes 171) ─────────────── */
.st-preview-bar {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem;
    padding: .7rem .9rem; margin-bottom: 1rem;
    border-radius: 12px;
    border: 1px dashed #c4b5fd;
    background: #faf5ff;
    font-size: .88rem;
}

/* ── Merchant dashboard: close store (notes 196) ─────────────────────── */
.st-danger-zone {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 1rem 1.15rem;
    border-radius: 16px;
    border: 1px solid #fecaca;
    background: linear-gradient(180deg, #fff7f7 0%, #fff 100%);
}
.st-danger-zone-text { display: flex; gap: .8rem; align-items: flex-start; flex: 1 1 320px; }
.st-danger-zone-text strong { display: block; color: #b91c1c; }
.st-danger-zone-text small { color: #6b7280; line-height: 1.6; }
.st-danger-zone-icon {
    width: 42px; height: 42px; flex-shrink: 0;
    border-radius: 12px;
    background: #fee2e2; color: #dc2626;
    display: inline-flex; align-items: center; justify-content: center;
}
.st-btn-danger-outline {
    border: 1.5px solid #dc2626; color: #dc2626; background: #fff;
    border-radius: 12px; font-weight: 700; padding: .5rem 1.1rem;
}
.st-btn-danger-outline:hover { background: #dc2626; color: #fff; }
[data-theme='dark'] .st-danger-zone,
[data-bs-theme='dark'] .st-danger-zone { background: rgba(127, 29, 29, .18); border-color: rgba(248, 113, 113, .35); }
[data-theme='dark'] .st-preview-bar,
[data-bs-theme='dark'] .st-preview-bar { background: rgba(76, 29, 149, .18); }
[data-theme='dark'] .st-btn-danger-outline,
[data-bs-theme='dark'] .st-btn-danger-outline { background: transparent; }
