/* ============================================================
   SH CITY STORE — DESIGN REFRESH LAYER
   Hero · Best Sellers · Promo · Ribbons · Quick View ·
   Skeletons · Scroll reveal · Section headers · Scroll-top ·
   Accent themes · Global scrollbar · Micro-interactions
   ============================================================ */

/* ─────────────────────────────────────────────
   ACCENT THEMES  (overrides core purple variables)
   ───────────────────────────────────────────── */
html[data-accent="cyan"] {
    --p300:#67e8f9; --p400:#22d3ee; --p500:#06b6d4; --p600:#0891b2; --p700:#0e7490; --p800:#155e75;
    --glow-sm: 0 0 16px rgba(34,211,238,0.35);
    --glow-md: 0 0 32px rgba(34,211,238,0.45), 0 0 64px rgba(34,211,238,0.18);
    --glow-lg: 0 0 60px rgba(34,211,238,0.55), 0 0 120px rgba(34,211,238,0.22);
}
html[data-accent="crimson"] {
    --p300:#fda4af; --p400:#fb7185; --p500:#f43f5e; --p600:#e11d48; --p700:#be123c; --p800:#9f1239;
    --glow-sm: 0 0 16px rgba(244,63,94,0.35);
    --glow-md: 0 0 32px rgba(244,63,94,0.45), 0 0 64px rgba(244,63,94,0.18);
    --glow-lg: 0 0 60px rgba(244,63,94,0.55), 0 0 120px rgba(244,63,94,0.22);
}
html[data-accent="emerald"] {
    --p300:#6ee7b7; --p400:#34d399; --p500:#10b981; --p600:#059669; --p700:#047857; --p800:#065f46;
    --glow-sm: 0 0 16px rgba(16,185,129,0.35);
    --glow-md: 0 0 32px rgba(16,185,129,0.45), 0 0 64px rgba(16,185,129,0.18);
    --glow-lg: 0 0 60px rgba(16,185,129,0.55), 0 0 120px rgba(16,185,129,0.22);
}

/* ─────────────────────────────────────────────
   GLOBAL CUSTOM SCROLLBAR
   ───────────────────────────────────────────── */
html { scrollbar-width: thin; scrollbar-color: var(--p700) transparent; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--p600), var(--p800));
    border-radius: 10px;
    border: 2px solid var(--bg2);
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(var(--p500), var(--p700)); }

/* ─────────────────────────────────────────────
   HERO REDESIGN
   ───────────────────────────────────────────── */
.home-hero { position: relative; overflow: hidden; }

.home-hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.45;
    pointer-events: none;
    z-index: 0;
    animation: shOrbFloat 14s ease-in-out infinite alternate;
}
.home-hero > .home-hero-orb { position: absolute; z-index: 0; }
.home-hero-orb.orb-1 {
    width: 360px; height: 360px;
    top: -90px; left: -60px;
    background: radial-gradient(circle, var(--p500), transparent 70%);
}
.home-hero-orb.orb-2 {
    width: 300px; height: 300px;
    bottom: -80px; right: -40px;
    background: radial-gradient(circle, var(--p700), transparent 70%);
    animation-delay: -5s;
}
@keyframes shOrbFloat {
    0%   { transform: translate(0,0) scale(1); }
    100% { transform: translate(40px,30px) scale(1.15); }
}
.home-hero > * { position: relative; z-index: 1; }

/* hero logo */
.home-hero-logo {
    display: block;
    width: auto;
    height: 120px;
    max-width: 70%;
    margin: 0 auto 24px;
    object-fit: contain;
    filter: drop-shadow(0 0 24px rgba(168,85,247,0.5));
    animation: shLogoIn 0.8s var(--ease-spring) both, shLogoFloat 5s ease-in-out 0.8s infinite alternate;
}
@keyframes shLogoIn {
    from { opacity: 0; transform: translateY(-16px) scale(0.85); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes shLogoFloat {
    from { transform: translateY(0); }
    to   { transform: translateY(-8px); }
}
@media (max-width: 768px) {
    .home-hero-logo { height: 88px; }
}

/* animated counter pop */
.stat-number.sh-counting { will-change: contents; }

/* ─────────────────────────────────────────────
   SECTION TITLE — refreshed (inline icon + gradient)
   ───────────────────────────────────────────── */
.section-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-bottom: 50px;
}

.section-title .category-icon {
    margin: 0 !important;
    width: 60px; height: 60px;
    border-radius: 18px;
    background: transparent;
    border: 1px solid var(--border2);
    color: var(--p400);
    font-size: 1.45rem;
    box-shadow: var(--glow-sm);
    position: relative;
    overflow: hidden;
}
.section-title .category-icon::after { content: none; }

.section-title h2 {
    position: relative;
    display: inline-block;
    margin: 0 !important;
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(120deg, var(--tx1) 30%, var(--p400) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.section-title h2::after { display: none; }   /* remove old underline */

.section-title .subtitle {
    flex-basis: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 6px;
    color: var(--tx3);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    letter-spacing: 0.06em;
}
.section-title .subtitle::before,
.section-title .subtitle::after {
    content: '';
    width: 44px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--border2));
}
.section-title .subtitle::after { transform: scaleX(-1); }

@media (max-width: 600px) {
    .section-title .subtitle::before,
    .section-title .subtitle::after { width: 22px; }
}

/* ─────────────────────────────────────────────
   BEST SELLERS CAROUSEL
   ───────────────────────────────────────────── */
.home-featured { margin: 64px auto 0; max-width: 1360px; }

.home-featured-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}
.home-featured-head h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--tx1);
    display: flex; align-items: center; gap: 10px;
}
.home-featured-head h2 i { color: var(--p400); }
.home-featured-nav { display: flex; gap: 8px; }
.home-featured-nav button {
    width: 40px; height: 40px;
    border-radius: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--tx2);
    cursor: pointer;
    transition: all 0.22s var(--ease);
}
.home-featured-nav button:hover { border-color: var(--border2); color: var(--p300); box-shadow: var(--glow-sm); }

.home-featured-track {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 6px 2px 18px;
    scrollbar-width: none;
}
.home-featured-track::-webkit-scrollbar { display: none; }
.home-featured-track .glass-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
}

/* ─────────────────────────────────────────────
   PROMO BANNER
   ───────────────────────────────────────────── */
.home-promo {
    position: relative;
    margin: 64px auto 0;
    max-width: 1360px;
    border-radius: 26px;
    overflow: hidden;
    padding: 48px 44px;
    background:
        radial-gradient(circle at 18% 20%, rgba(168,85,247,0.28), transparent 55%),
        radial-gradient(circle at 85% 90%, rgba(124,58,237,0.32), transparent 55%),
        linear-gradient(120deg, var(--bg3), var(--bg2));
    border: 1px solid var(--border2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    box-shadow: var(--glow-md);
}
.home-promo::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
    pointer-events: none;
}
.home-promo-text { position: relative; z-index: 1; max-width: 560px; }
.home-promo-tag {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 20px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.home-promo-text h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 12px;
}
.home-promo-text h2 .hl {
    background: linear-gradient(135deg, var(--p300), var(--p500));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.home-promo-text p { color: var(--tx2); font-size: 0.95rem; line-height: 1.6; }
.home-promo-cta { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.home-promo-price {
    font-family: var(--font-display);
    font-weight: 800;
    color: #fff;
    font-size: 1.1rem;
}
.home-promo-price s { color: var(--tx3); font-weight: 500; margin-right: 8px; }
.home-promo-btn {
    padding: 15px 34px;
    border-radius: 14px;
    border: none;
    background: #fff;
    color: var(--p800);
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    letter-spacing: 0.02em;
    transition: all 0.28s var(--ease);
    display: inline-flex; align-items: center; gap: 8px;
}
.home-promo-btn:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(0,0,0,0.45); }

/* ─────────────────────────────────────────────
   PRODUCT RIBBONS (NEW / HOT / SALE)
   ───────────────────────────────────────────── */
.sh-ribbon {
    position: absolute;
    top: 12px; right: -34px;
    z-index: 6;
    transform: rotate(45deg);
    width: 130px;
    text-align: center;
    padding: 5px 0;
    font-family: var(--font-display);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    pointer-events: none;
}
.sh-ribbon-new  { background: linear-gradient(135deg, #0891b2, #06b6d4); }
.sh-ribbon-hot  { background: linear-gradient(135deg, #e11d48, #f43f5e); }
.sh-ribbon-sale { background: linear-gradient(135deg, #d97706, #f59e0b); color:#1a1208; }

/* keep ribbon clipped to card corner */
.car-card, .glass-card, .weapon-card { overflow: hidden; }

/* ─────────────────────────────────────────────
   QUICK VIEW OVERLAY BUTTON
   ───────────────────────────────────────────── */
.sh-quick-view {
    position: absolute;
    left: 50%; top: 40%;
    transform: translate(-50%, -50%) scale(0.85);
    z-index: 5;
    padding: 10px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(7,5,15,0.78);
    backdrop-filter: blur(8px);
    color: #fff;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s var(--ease);
    white-space: nowrap;
}
.car-card:hover .sh-quick-view,
.glass-card:hover .sh-quick-view,
.weapon-card:hover .sh-quick-view {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}
.sh-quick-view:hover { border-color: var(--p400); box-shadow: var(--glow-sm); }
/* position quick view over the media area */
.car-card .sh-quick-view { top: 95px; }
.weapon-card .sh-quick-view { top: 70px; }
.glass-card .sh-quick-view { top: 105px; }

/* ─────────────────────────────────────────────
   IMAGE SKELETON LOADER
   ───────────────────────────────────────────── */
.car-image, .card-image {
    background-image: linear-gradient(100deg, var(--bg3) 30%, rgba(168,85,247,0.10) 50%, var(--bg3) 70%);
    background-size: 200% 100%;
    animation: shShimmer 1.4s linear infinite;
}
@keyframes shShimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
img.car-image, .card-image img, .weapon-image, .dance-image { transition: opacity 0.45s ease; }
.sh-img-loading { opacity: 0; }
.sh-img-loaded  { opacity: 1; }
/* stop shimmer once loaded */
.car-image.sh-img-loaded { animation: none; }
.card-image.sh-loaded { animation: none; }

/* ─────────────────────────────────────────────
   SCROLL REVEAL
   ───────────────────────────────────────────── */
.sh-reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.sh-reveal.sh-in { opacity: 1; transform: translateY(0); }

/* ─────────────────────────────────────────────
   SCROLL TO TOP
   ───────────────────────────────────────────── */
.sh-scrolltop {
    position: fixed;
    bottom: 28px; right: 28px;
    width: 48px; height: 48px;
    border-radius: 14px;
    border: 1px solid var(--border2);
    background: var(--bg3);
    color: var(--p300);
    font-size: 1rem;
    cursor: pointer;
    z-index: 4000;
    opacity: 0;
    transform: translateY(20px) scale(0.8);
    pointer-events: none;
    transition: all 0.35s var(--ease);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4), var(--glow-sm);
}
.sh-scrolltop.show { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.sh-scrolltop:hover { background: var(--p700); color: #fff; transform: translateY(-3px) scale(1.05); }

/* move toast above scroll-top so they don't overlap */
.toast { bottom: 90px !important; }

/* ─────────────────────────────────────────────
   ACCENT SWITCHER
   ───────────────────────────────────────────── */
.sh-accent {
    position: fixed;
    bottom: 28px; left: 28px;
    z-index: 4000;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 16px;
    background: rgba(7,5,15,0.82);
    backdrop-filter: blur(14px);
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    transform: translateX(-120%);
    transition: transform 0.4s var(--ease);
}
.sh-accent.open { transform: translateX(0); }
.sh-accent-toggle {
    position: fixed;
    bottom: 28px; left: 28px;
    z-index: 4001;
    width: 48px; height: 48px;
    border-radius: 14px;
    border: 1px solid var(--border2);
    background: var(--bg3);
    color: var(--p300);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.35s var(--ease);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4), var(--glow-sm);
}
.sh-accent-toggle:hover { transform: rotate(45deg); color: #fff; background: var(--p700); }
.sh-accent.open + .sh-accent-toggle { opacity: 0; pointer-events: none; }

.sh-accent-dot {
    width: 28px; height: 28px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.sh-accent-dot:hover { transform: scale(1.15); }
.sh-accent-dot.active { border-color: #fff; }
.sh-accent-dot[data-accent="purple"]  { background: #a855f7; }
.sh-accent-dot[data-accent="cyan"]    { background: #22d3ee; }
.sh-accent-dot[data-accent="crimson"] { background: #f43f5e; }
.sh-accent-dot[data-accent="emerald"] { background: #10b981; }
.sh-accent-close {
    width: 28px; height: 28px;
    border-radius: 8px;
    background: none;
    border: none;
    color: var(--tx3);
    cursor: pointer;
    font-size: 0.85rem;
}
.sh-accent-close:hover { color: var(--tx1); }

/* ─────────────────────────────────────────────
   MICRO-INTERACTIONS
   ───────────────────────────────────────────── */
.sh-ripple-host { position: relative; overflow: hidden; }
.sh-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    transform: scale(0);
    animation: shRipple 0.6s ease-out;
    pointer-events: none;
}
@keyframes shRipple { to { transform: scale(2.6); opacity: 0; } }

.sh-cart-badge.sh-bounce { animation: shBadgeBounce 0.5s var(--ease-spring); }
@keyframes shBadgeBounce {
    0% { transform: scale(1); }
    40% { transform: scale(1.5); }
    70% { transform: scale(0.85); }
    100% { transform: scale(1); }
}

/* ─────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────── */
@media (max-width: 768px) {
    .home-promo { padding: 36px 26px; }
    .home-promo-text h2 { font-size: 1.5rem; }
    .home-featured-track .glass-card { flex: 0 0 240px; }
    .sh-accent, .sh-accent-toggle { bottom: 20px; left: 20px; }
    .sh-scrolltop { bottom: 20px; right: 20px; }
}
