/* ═══════════════════════════════════════════════════════════
   shop-ui.css — Theme-aware styles for /shop module
   Responds to data-bs-theme="light | dark" on html/body.
   ═══════════════════════════════════════════════════════════ */

/* ── Theme tokens ─────────────────────────────────────────── */
:root,
[data-bs-theme="light"] {
    --sh-bg: #f3f5fb;
    --sh-surface: #ffffff;
    --sh-surface-2: #eef0f7;
    --sh-surface-3: #e3e7f0;
    --sh-border: rgba(0, 0, 0, .07);
    --sh-border-h: rgba(0, 0, 0, .14);
    --sh-text: #111827;
    --sh-muted: #6b7280;
    --sh-faint: #9ca3af;
    --sh-accent: #3b82f6;
    --sh-accent-h: #2563eb;
    --sh-price: #15803d;
    --sh-price-old: #9ca3af;
    --sh-sale: #ef4444;
    --sh-nav: rgba(255, 255, 255, .88);
    --sh-shadow-s: 0 1px 4px rgba(0, 0, 0, .05), 0 2px 8px rgba(0, 0, 0, .03);
    --sh-shadow: 0 4px 16px rgba(0, 0, 0, .08), 0 1px 4px rgba(0, 0, 0, .04);
    --sh-shadow-l: 0 8px 32px rgba(0, 0, 0, .11), 0 2px 8px rgba(0, 0, 0, .05);
    --sh-skel-a: #e5e7eb;
    --sh-skel-b: #f3f4f6;
    --sh-transition: background-color .25s, color .25s, border-color .25s, box-shadow .25s;
}

[data-bs-theme="dark"] {
    --sh-bg: #0c0e15;
    --sh-surface: #161923;
    --sh-surface-2: #1e2130;
    --sh-surface-3: #262a3c;
    --sh-border: rgba(255, 255, 255, .06);
    --sh-border-h: rgba(255, 255, 255, .13);
    --sh-text: #e8ecf5;
    --sh-muted: #7b879e;
    --sh-faint: #4c5570;
    --sh-accent: #60a5fa;
    --sh-accent-h: #93c5fd;
    --sh-price: #4ade80;
    --sh-price-old: #4c5570;
    --sh-sale: #f87171;
    --sh-nav: rgba(22, 25, 35, .9);
    --sh-shadow-s: 0 1px 4px rgba(0, 0, 0, .3), 0 2px 8px rgba(0, 0, 0, .2);
    --sh-shadow: 0 4px 16px rgba(0, 0, 0, .4), 0 1px 4px rgba(0, 0, 0, .25);
    --sh-shadow-l: 0 8px 32px rgba(0, 0, 0, .55), 0 2px 8px rgba(0, 0, 0, .3);
    --sh-skel-a: #1e2130;
    --sh-skel-b: #262a3c;
    --sh-transition: background-color .25s, color .25s, border-color .25s, box-shadow .25s;
}

/* ── Base ─────────────────────────────────────────────────── */
body {
    background: var(--sh-bg) !important;
    color: var(--sh-text) !important;
    transition: var(--sh-transition);
}

#app {
    background: var(--sh-bg);
    min-height: 100vh;
}

/* ── Navigation ───────────────────────────────────────────── */
.sh-nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1030;
    background: var(--sh-nav);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--sh-border);
    transition: var(--sh-transition);
}

.sh-nav-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    height: 56px;
}

.sh-nav-title {
    flex: 1;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--sh-text);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

.sh-nav-btn {
    flex-shrink: 0;
    background: none;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.05rem;
    color: var(--sh-text);
    transition: background .18s;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    position: relative;
}

.sh-nav-btn:hover {
    background: var(--sh-surface-3);
    color: var(--sh-text);
}

.sh-nav-btn .badge {
    font-size: .55rem;
    padding: 2px 4px;
}

.sh-search-bar {
    padding: 0 14px 10px;
}

.sh-search-bar .input-group {
    background: var(--sh-surface-2);
    border-radius: 12px;
    border: 1px solid var(--sh-border-h);
    overflow: hidden;
}

.sh-search-bar input {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: var(--sh-text) !important;
    font-size: .88rem;
    padding: 9px 14px;
}

.sh-search-bar input::placeholder {
    color: var(--sh-faint);
}

.sh-search-bar .btn {
    background: none;
    border: none;
    color: var(--sh-muted);
    padding: 0 12px;
}

/* ── Hero Banner ──────────────────────────────────────────── */
.sh-hero {
    position: relative;
    padding: 36px 20px 30px;
    text-align: center;
    overflow: hidden;
    background: var(--sh-hero-grad, linear-gradient(135deg, #667eea, #764ba2));
}

.sh-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .12);
    pointer-events: none;
}

[data-bs-theme="light"] .sh-hero::after {
    background: rgba(0, 0, 0, .06);
}

.sh-hero>* {
    position: relative;
    z-index: 1;
}

.sh-hero-avatar {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .22);
    backdrop-filter: blur(6px);
    border: 3px solid rgba(255, 255, 255, .55);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin: 0 auto 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .22);
}

.sh-hero h2 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 4px;
    text-shadow: 0 1px 8px rgba(0, 0, 0, .25);
}

.sh-hero-loc {
    color: rgba(255, 255, 255, .8);
    font-size: .82rem;
    margin-bottom: 18px;
}

.sh-hero-stats {
    display: flex;
    justify-content: center;
    gap: 36px;
    margin-bottom: 20px;
}

.sh-stat-val {
    display: block;
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.sh-stat-lbl {
    display: block;
    font-size: .62rem;
    color: rgba(255, 255, 255, .7);
    text-transform: uppercase;
    letter-spacing: .07em;
    margin-top: 3px;
}

.sh-hero-btns {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.sh-hero-btns .btn {
    border-radius: 24px;
    font-size: .78rem;
    font-weight: 700;
    padding: 7px 18px;
    border: 2px solid rgba(255, 255, 255, .5);
    color: #fff;
    background: rgba(255, 255, 255, .15);
    backdrop-filter: blur(4px);
    transition: background .18s, border-color .18s;
}

.sh-hero-btns .btn:hover {
    background: rgba(255, 255, 255, .3);
    border-color: rgba(255, 255, 255, .9);
    color: #fff;
}

.sh-hero-btns .btn-follow {
    background: #fff;
    color: #1a1a2e;
    border-color: #fff;
}

.sh-hero-btns .btn-follow:hover {
    background: rgba(255, 255, 255, .88);
    color: #1a1a2e;
}

.sh-hero-btns .btn-follow.following {
    background: rgba(255, 255, 255, .15);
    color: #fff;
    border-color: rgba(255, 255, 255, .5);
}

/* ── Category Pills ───────────────────────────────────────── */
.sh-cats {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px 14px;
    background: var(--sh-surface);
    border-bottom: 1px solid var(--sh-border);
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: sticky;
    top: 56px;
    z-index: 200;
    transition: var(--sh-transition);
}

.sh-cats::-webkit-scrollbar {
    display: none;
}

.cat-pill {
    flex-shrink: 0;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: .76rem;
    font-weight: 600;
    border: 1.5px solid var(--sh-border-h);
    background: transparent;
    color: var(--sh-muted);
    cursor: pointer;
    transition: all .18s;
    white-space: nowrap;
    line-height: 1.5;
}

.cat-pill:hover {
    border-color: var(--sh-accent);
    color: var(--sh-accent);
}

.cat-pill.active {
    background: var(--sh-accent);
    border-color: var(--sh-accent);
    color: #fff;
    box-shadow: 0 2px 10px rgba(59, 130, 246, .3);
}

/* ── Products Toolbar ─────────────────────────────────────── */
.sh-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px 6px;
    gap: 10px;
}

.sh-toolbar-lbl {
    font-size: .78rem;
    color: var(--sh-muted);
}

.sh-sort {
    font-size: .76rem;
    padding: 5px 10px;
    border-radius: 8px;
    border: 1px solid var(--sh-border-h);
    background: var(--sh-surface);
    color: var(--sh-text);
    cursor: pointer;
    outline: none;
    transition: var(--sh-transition);
}

.sh-sort:focus {
    border-color: var(--sh-accent);
}

/* ── Product Cards ────────────────────────────────────────── */
.pcard {
    background: var(--sh-surface) !important;
    border: 1px solid var(--sh-border) !important;
    border-radius: 14px !important;
    overflow: hidden;
    box-shadow: var(--sh-shadow-s) !important;
    transition: transform .22s ease, box-shadow .22s ease !important;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.pcard:hover {
    transform: translateY(-5px) !important;
    box-shadow: var(--sh-shadow) !important;
}

.pcard-img-wrap {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: var(--sh-surface-2);
}

.pcard-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
    display: block;
}

.pcard:hover .pcard-img-wrap img {
    transform: scale(1.06);
}

.pcard-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--sh-sale);
    color: #fff;
    font-size: .63rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    z-index: 2;
    letter-spacing: .03em;
}

.pcard-wish {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--sh-surface);
    border: none;
    box-shadow: var(--sh-shadow-s);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .88rem;
    transition: transform .2s;
    color: var(--sh-muted);
}

.pcard-wish:hover {
    transform: scale(1.2);
}

.pcard-wish.wishlisted {
    color: #ef4444;
}

.pcard-quick {
    position: absolute;
    inset: auto 0 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .62), transparent);
    padding: 18px 12px 10px;
    display: flex;
    justify-content: center;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .2s, transform .2s;
    z-index: 2;
}

.pcard:hover .pcard-quick {
    opacity: 1;
    transform: translateY(0);
}

.pcard-quick-btn {
    background: rgba(255, 255, 255, .95);
    color: #111;
    border: none;
    border-radius: 20px;
    font-size: .7rem;
    font-weight: 700;
    padding: 5px 16px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}

.pcard-quick-btn:hover {
    background: #fff;
}

.pcard-body {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.pcard-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: .81rem;
    font-weight: 600;
    color: var(--sh-text);
    text-decoration: none;
    line-height: 1.35;
    margin-bottom: 7px;
    flex: 1;
    transition: color .15s;
}

.pcard-title:hover {
    color: var(--sh-accent);
}

.pcard-prices {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 9px;
}

.pcard-price {
    font-weight: 800;
    font-size: .93rem;
    color: var(--sh-price);
}

.pcard-lprice {
    font-size: .71rem;
    text-decoration: line-through;
    color: var(--sh-price-old);
}

.pcard-actions {
    display: flex;
    gap: 6px;
    margin-top: auto;
}

.pcard-cart-btn {
    flex: 1;
    background: var(--sh-accent);
    color: #fff;
    border: none;
    border-radius: 9px;
    font-size: .72rem;
    font-weight: 700;
    padding: 7px 10px;
    cursor: pointer;
    transition: background .18s, opacity .18s;
    letter-spacing: .02em;
}

.pcard-cart-btn:hover {
    background: var(--sh-accent-h);
}

.pcard-cart-btn:active {
    opacity: .8;
}

.pcard-share-btn {
    width: 33px;
    flex-shrink: 0;
    background: var(--sh-surface-2);
    border: 1px solid var(--sh-border);
    border-radius: 9px;
    cursor: pointer;
    color: var(--sh-muted);
    font-size: .78rem;
    transition: background .18s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pcard-share-btn:hover {
    background: var(--sh-surface-3);
}

/* ── Skeleton ─────────────────────────────────────────────── */
.sh-skel-card {
    background: var(--sh-surface);
    border: 1px solid var(--sh-border);
    border-radius: 14px;
    overflow: hidden;
}

.sh-skel {
    background: linear-gradient(90deg, var(--sh-skel-a) 25%, var(--sh-skel-b) 50%, var(--sh-skel-a) 75%);
    background-size: 200% 100%;
    animation: sh-shimmer 1.6s infinite;
    border-radius: 6px;
}

.sh-skel-img {
    aspect-ratio: 1/1;
    border-radius: 0;
}

.sh-skel-line {
    height: 10px;
    margin: 8px 12px;
}

.sh-skel-line.w75 {
    margin-right: 28%;
}

.sh-skel-line.w50 {
    margin-right: 50%;
}

@keyframes sh-shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ── Cart Drawer ──────────────────────────────────────────── */
.offcanvas {
    background: var(--sh-surface) !important;
    color: var(--sh-text) !important;
    border-color: var(--sh-border) !important;
}

.offcanvas-header {
    border-bottom: 1px solid var(--sh-border);
}

.sh-cart-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--sh-surface-2);
    border: 1px solid var(--sh-border);
    border-radius: 12px;
}

.sh-cart-thumb {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: var(--sh-surface-3);
    overflow: hidden;
    flex-shrink: 0;
}

.sh-cart-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sh-cart-info {
    flex: 1;
    min-width: 0;
}

.sh-cart-title {
    font-size: .81rem;
    font-weight: 600;
    color: var(--sh-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.sh-cart-price {
    font-size: .73rem;
    color: var(--sh-muted);
}

.sh-qty {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.sh-qty-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--sh-surface-3);
    border: 1px solid var(--sh-border);
    cursor: pointer;
    font-size: .95rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sh-text);
    transition: background .15s;
}

.sh-qty-btn:hover {
    background: var(--sh-border-h);
}

.sh-qty-val {
    min-width: 22px;
    text-align: center;
    font-size: .82rem;
    font-weight: 700;
    color: var(--sh-text);
}

.sh-cart-del {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: none;
    border: 1px solid var(--sh-border);
    cursor: pointer;
    color: var(--sh-sale);
    font-size: .72rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
    flex-shrink: 0;
}

.sh-cart-del:hover {
    background: rgba(239, 68, 68, .08);
}

/* ── Explore: Hero ────────────────────────────────────────── */
.sh-expl-hero {
    background: linear-gradient(135deg, #1a56db 0%, #7e3af2 100%);
    padding: 44px 20px 52px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

[data-bs-theme="dark"] .sh-expl-hero {
    background: linear-gradient(135deg, #1c3a6e 0%, #2d1b69 100%);
}

.sh-expl-hero::before {
    content: '';
    position: absolute;
    top: -40%;
    left: -15%;
    width: 65%;
    height: 180%;
    background: rgba(255, 255, 255, .05);
    border-radius: 50%;
    pointer-events: none;
}

.sh-expl-hero h1 {
    position: relative;
    z-index: 1;
    color: #fff;
    font-weight: 800;
    font-size: 1.7rem;
    margin-bottom: 6px;
}

.sh-expl-hero p {
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, .78);
    font-size: .86rem;
    margin: 0;
}

/* ── Explore: Floating Search ─────────────────────────────── */
.sh-expl-search {
    max-width: 500px;
    margin: -24px auto 0;
    padding: 0 16px;
    position: relative;
    z-index: 10;
}

.sh-expl-search .input-group {
    background: var(--sh-surface);
    border-radius: 14px;
    border: 1px solid var(--sh-border);
    box-shadow: var(--sh-shadow-l);
    overflow: hidden;
}

.sh-expl-search input {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: var(--sh-text) !important;
    padding: 13px 16px;
    font-size: .9rem;
}

.sh-expl-search input::placeholder {
    color: var(--sh-faint);
}

.sh-expl-search .btn {
    background: var(--sh-accent);
    border: none;
    color: #fff;
    padding: 0 18px;
    border-radius: 0;
}

.sh-expl-search .btn:hover {
    background: var(--sh-accent-h);
}

/* ── Explore: Location card ───────────────────────────────── */
.sh-loc-card {
    background: var(--sh-surface);
    border: 1px solid var(--sh-border);
    border-radius: 16px;
    padding: 22px 20px;
    margin: 20px 16px 4px;
    text-align: center;
    box-shadow: var(--sh-shadow-s);
}

.sh-loc-card h5 {
    color: var(--sh-text);
    font-weight: 700;
    margin-bottom: 6px;
    font-size: .95rem;
}

.sh-loc-card p {
    color: var(--sh-muted);
    font-size: .82rem;
    margin-bottom: 16px;
}

.sh-loc-detected {
    background: var(--sh-surface-2);
    border: 1px solid var(--sh-border);
    border-radius: 12px;
    padding: 14px 18px;
    text-align: center;
}

.sh-loc-detected h6 {
    color: var(--sh-text);
    font-weight: 700;
    margin-bottom: 3px;
    font-size: .9rem;
}

.sh-loc-detected small {
    color: var(--sh-muted);
    font-size: .78rem;
}

/* ── Explore: Country select ──────────────────────────────── */
.sh-expl-controls {
    padding: 0 16px 14px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.sh-country-sel {
    flex: 1;
    max-width: 260px;
    font-size: .82rem;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid var(--sh-border-h);
    background: var(--sh-surface);
    color: var(--sh-text);
    cursor: pointer;
    outline: none;
    transition: var(--sh-transition);
}

.sh-country-sel option {
    background: var(--sh-surface);
    color: var(--sh-text);
}

.sh-country-sel:focus {
    border-color: var(--sh-accent);
}

/* ── Explore: Shop Cards ──────────────────────────────────── */
.sh-shop-card {
    background: var(--sh-surface);
    border: 1px solid var(--sh-border);
    border-radius: 14px;
    padding: 18px 12px 14px;
    text-align: center;
    transition: transform .2s, box-shadow .2s;
    box-shadow: var(--sh-shadow-s);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}

.sh-shop-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sh-shadow);
}

.sh-shop-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.sh-shop-name {
    font-weight: 700;
    font-size: .85rem;
    color: var(--sh-text);
    margin-bottom: 5px;
    text-transform: capitalize;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    width: 100%;
    line-height: 1.3;
}

.sh-shop-tagline {
    font-size: .72rem;
    color: var(--sh-muted);
    margin-bottom: 10px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.sh-shop-follow {
    font-size: .67rem;
    color: var(--sh-faint);
    font-weight: 600;
}

/* ── Section Headings ─────────────────────────────────────── */
.sh-sec-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 16px 8px;
}

.sh-sec-head h5 {
    font-weight: 700;
    font-size: .95rem;
    color: var(--sh-text);
    margin: 0;
}

.sh-sec-head small {
    color: var(--sh-muted);
    font-size: .75rem;
}

/* ── Not Found Alert ──────────────────────────────────────── */
.sh-not-found {
    background: rgba(251, 191, 36, .08);
    border: 1px solid rgba(251, 191, 36, .28);
    border-radius: 12px;
    padding: 12px 16px;
    margin: 12px 16px 0;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: .84rem;
    color: var(--sh-text);
}

[data-bs-theme="dark"] .sh-not-found {
    background: rgba(120, 83, 15, .22);
    border-color: rgba(251, 191, 36, .18);
}

.sh-not-found .fa {
    color: #f59e0b;
    margin-top: 2px;
    flex-shrink: 0;
}

/* ── Empty States ─────────────────────────────────────────── */
.sh-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    text-align: center;
    color: var(--sh-muted);
}

.sh-empty-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: .55;
}

.sh-empty p {
    font-size: .86rem;
    margin-bottom: 16px;
}

/* ── CTA ──────────────────────────────────────────────────── */
.sh-cta {
    background: var(--sh-surface-2);
    border-top: 1px solid var(--sh-border);
    padding: 36px 20px;
    text-align: center;
}

.sh-cta h5 {
    color: var(--sh-text);
    font-weight: 700;
    margin-bottom: 6px;
}

.sh-cta p {
    color: var(--sh-muted);
    font-size: .84rem;
    margin-bottom: 16px;
}

/* ── Back to Top ──────────────────────────────────────────── */
#sh-back-top {
    position: fixed;
    bottom: 22px;
    right: 18px;
    z-index: 2000;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--sh-accent);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .82rem;
    box-shadow: 0 4px 14px rgba(59, 130, 246, .35);
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity .25s, transform .25s;
}

#sh-back-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* ── Theme Toggle ─────────────────────────────────────────── */
.sh-theme-btn {
    background: none;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    cursor: pointer;
    font-size: .95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sh-text);
    transition: background .18s, transform .3s;
    flex-shrink: 0;
}

.sh-theme-btn:hover {
    background: var(--sh-surface-3);
    transform: rotate(18deg);
}

/* ── Page fade-in ─────────────────────────────────────────── */
#app>header,
#app>main {
    animation: sh-in .25s ease both;
}

@keyframes sh-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Misc form overrides ──────────────────────────────────── */
.form-select,
.form-control {
    background-color: var(--sh-surface-2) !important;
    border-color: var(--sh-border-h) !important;
    color: var(--sh-text) !important;
}

.form-select option {
    background: var(--sh-surface);
    color: var(--sh-text);
}

/* ── Checkout ─────────────────────────────────────────────── */
.sh-checkout-section {
    background: var(--sh-surface);
    border: 1px solid var(--sh-border);
    border-radius: 14px;
    padding: 18px 16px;
    margin: 16px 0 0;
}

.sh-checkout-section:first-child {
    margin-top: 16px;
}

.sh-checkout-heading {
    font-size: .88rem;
    font-weight: 700;
    color: var(--sh-text);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sh-checkout-heading .fa {
    color: var(--sh-accent);
    font-size: .82rem;
}

.sh-checkout-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.sh-checkout-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: var(--sh-surface-2);
    border: 1px solid var(--sh-border);
    border-radius: 10px;
}

.sh-checkout-subtotal {
    display: flex;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid var(--sh-border);
    font-weight: 700;
    font-size: .88rem;
    color: var(--sh-text);
}

.sh-checkout-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sh-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 480px) {
    .sh-field-row {
        grid-template-columns: 1fr;
    }
}

.sh-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sh-field label {
    font-size: .76rem;
    font-weight: 600;
    color: var(--sh-muted);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.sh-field input,
.sh-field select,
.sh-field textarea {
    padding: 9px 12px;
    border-radius: 10px;
    border: 1px solid var(--sh-border-h);
    background: var(--sh-surface-2);
    color: var(--sh-text);
    font-size: .85rem;
    outline: none;
    transition: border-color .2s;
}

.sh-field input:focus,
.sh-field select:focus,
.sh-field textarea:focus {
    border-color: var(--sh-accent);
}

.sh-field input::placeholder,
.sh-field textarea::placeholder {
    color: var(--sh-faint);
}

.sh-ship-info {
    background: var(--sh-surface-2);
    border: 1px solid var(--sh-border);
    border-radius: 10px;
    padding: 10px 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: .8rem;
    color: var(--sh-muted);
}

.sh-ship-info .fa {
    color: var(--sh-accent);
    margin-right: 4px;
}

.sh-totals-table {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sh-totals-row {
    display: flex;
    justify-content: space-between;
    font-size: .84rem;
    color: var(--sh-muted);
}

.sh-totals-final {
    border-top: 1.5px solid var(--sh-border-h);
    padding-top: 8px;
    margin-top: 4px;
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--sh-text);
}

.sh-checkout-submit {
    padding: 16px 0 24px;
}

.sh-checkout-alert {
    display: flex;
    gap: 10px;
    padding: 12px 14px;
    background: rgba(59, 130, 246, .06);
    border: 1px solid rgba(59, 130, 246, .18);
    border-radius: 10px;
    font-size: .82rem;
    color: var(--sh-text);
    align-items: flex-start;
}

[data-bs-theme="dark"] .sh-checkout-alert {
    background: rgba(59, 130, 246, .1);
    border-color: rgba(59, 130, 246, .22);
}

.sh-checkout-alert .fa {
    color: var(--sh-accent);
    margin-top: 2px;
    flex-shrink: 0;
}

/* ── Order Confirmation ───────────────────────────────────── */
.sh-order-success {
    text-align: center;
    max-width: 420px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sh-order-check {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    box-shadow: 0 6px 24px rgba(34, 197, 94, .35);
}

.sh-order-success h3 {
    color: var(--sh-text);
    font-weight: 800;
    margin-bottom: 6px;
}

.sh-order-success p {
    color: var(--sh-muted);
    font-size: .88rem;
}

.sh-order-details {
    background: var(--sh-surface);
    border: 1px solid var(--sh-border);
    border-radius: 12px;
    padding: 14px 18px;
    width: 100%;
    max-width: 300px;
    margin-top: 18px;
}

.sh-order-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: .82rem;
    border-bottom: 1px solid var(--sh-border);
}

.sh-order-detail-row:last-child {
    border-bottom: none;
}

.sh-order-detail-row span {
    color: var(--sh-muted);
}

.sh-order-detail-row strong {
    color: var(--sh-text);
}