/* --- 1. THE GLOBAL AESTHETIC --- */
:root {
    --bg-void: #000000;
    --neon-cyan: #ff6f00;
    --text-main: #ffffff;
    --text-muted: #888888;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: system-ui, -apple-system, sans-serif; }
body { background-color: var(--bg-void); color: var(--text-main); overflow-x: hidden; }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: #222; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--neon-cyan); }

.mono-tag { font-family: 'Courier New', Courier, monospace; color: var(--neon-cyan); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; }

/* --- 2. THE GLASS NAVBAR --- */
.glass-nav {
    position: fixed; top: 0; width: 100%; padding: 20px 40px; display: flex; justify-content: space-between; align-items: center;
    background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--glass-border); z-index: 1000;
}
.logo { font-size: 1.5rem; font-weight: 900; letter-spacing: 2px; }
.nav-links a { color: var(--text-muted); text-decoration: none; margin: 0 15px; font-weight: 500; transition: color 0.3s ease; }
.nav-links a:hover { color: var(--text-main); }
.nav-icons { display: flex; align-items: center; }
.nav-icons .icon { margin-left: 20px; cursor: pointer; transition: color 0.3s ease, text-shadow 0.3s ease; }
.nav-icons .icon:hover { color: var(--neon-cyan); text-shadow: 0 0 8px var(--neon-cyan); }

/* --- 3. THE HERO SECTION --- */
.hero-section {
    margin: 100px 20px 40px 20px; padding: 120px 20px; border-radius: 24px; border: 1px solid var(--glass-border);
    background: linear-gradient(to bottom, transparent, #000), radial-gradient(circle at center, #111 0%, #000 100%); text-align: center; position: relative;
    opacity: 0; animation: heroReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-section h1 { font-size: clamp(3rem, 8vw, 6rem); font-weight: 900; line-height: 1.1; margin: 20px 0; letter-spacing: -2px; }
.cta-button { background-color: var(--neon-cyan); color: #000; border: none; padding: 16px 40px; border-radius: 50px; font-size: 1.1rem; font-weight: 800; cursor: pointer; transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1); margin-top: 20px; }
.cta-button:hover { transform: scale(1.05); }

/* --- 4. THE PRODUCT GRID --- */
.showroom { padding: 0 40px 100px 40px; }
.showroom-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 30px; border-bottom: 1px solid var(--glass-border); padding-bottom: 15px; }
.timestamp { color: var(--text-muted); font-size: 0.9rem; }
.grid { display: grid; grid-template-columns: 1fr; gap: 30px; }
@media (min-width: 768px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .grid { grid-template-columns: repeat(4, 1fr); } }

/* --- 5. THE FLAT PRODUCT CARDS --- */
.glass-card { background: var(--glass-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--glass-border); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; }
.glass-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(255, 102, 0, 0.922); border-color: rgba(0, 242, 255, 0.3); }
.card-image-area { height: 250px; background: linear-gradient(to bottom, #1a1a1a, #050505); display: flex; justify-content: center; align-items: center; position: relative; cursor: pointer; }
.placeholder-phone { font-size: 5rem; display: inline-block; animation: float 4s ease-in-out infinite; }
.neon-backlight { position: absolute; width: 100px; height: 100px; background: var(--neon-cyan); filter: blur(60px); opacity: 0; transition: opacity 0.4s ease; }
.glass-card:hover .neon-backlight { opacity: 0.4; }
.card-data { padding: 20px; flex-grow: 1; }
.product-name { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; }
.card-meta { display: flex; justify-content: space-between; align-items: center; }
.price { font-weight: 800; font-size: 1.1rem; }
.grab-button { width: 100%; padding: 15px; background: #ffffff; color: #000000; border: none; font-weight: 800; font-size: 1rem; cursor: pointer; transition: background-color 0.15s ease, color 0.15s ease; }
.grab-button:hover { background: var(--neon-cyan); color: #000000; }

/* --- 6. ANIMATIONS & MICRO-INTERACTIONS --- */
@keyframes heroReveal { 0% { opacity: 0; transform: scale(0.95); } 100% { opacity: 1; transform: scale(1); } }
@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-12px); } 100% { transform: translateY(0px); } }

/* --- 7. SEARCH UI --- */
.search-container { display: inline-flex; align-items: center; position: relative; }
#search-input { width: 0; opacity: 0; border: none; background: rgba(0, 0, 0, 0.5); color: var(--text-main); padding: 8px 0; border-radius: 20px; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); outline: none; border: 1px solid transparent; font-size: 0.9rem; }
#search-input.active { width: 200px; opacity: 1; padding: 8px 16px; border-color: var(--neon-cyan); margin-right: 10px; box-shadow: 0 0 15px rgba(0, 242, 255, 0.2); }

/* --- 8. CART INTERFACE --- */
.cart-page { padding: 120px 40px 100px 40px; }
.cart-layout { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: start; }
@media (min-width: 992px) { .cart-layout { grid-template-columns: 2fr 1fr; } }
.cart-item { flex-direction: row; align-items: center; padding: 20px 30px; margin-bottom: 20px; }
.cart-item .placeholder-phone { font-size: 3rem; margin-right: 30px; animation: none; }
.cart-item-info { flex-grow: 1; }
.cart-item-price { font-weight: 800; font-size: 1.2rem; margin-right: 30px; }
.remove-btn { background: none; border: none; color: var(--text-muted); font-size: 1.5rem; cursor: pointer; transition: color 0.2s ease; }
.remove-btn:hover { color: #ff3366; }
.cart-summary { padding: 40px; }
.cart-summary h3 { margin-bottom: 30px; font-size: 1.5rem; border-bottom: 1px solid var(--glass-border); padding-bottom: 15px; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 20px; font-size: 1.1rem; color: var(--text-muted); }
.summary-total { border-top: 1px solid var(--glass-border); padding-top: 20px; margin-top: 20px; font-weight: 900; font-size: 1.5rem; color: var(--neon-cyan); }

/* --- 9. CATEGORY FILTERS & SORTING --- */
.category-filters { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 20px; margin-bottom: 20px; -ms-overflow-style: none; scrollbar-width: none; }
.category-filters::-webkit-scrollbar { display: none; }
.filter-btn { background: var(--glass-bg); border: 1px solid var(--glass-border); color: var(--text-main); padding: 10px 24px; border-radius: 30px; font-size: 0.95rem; font-weight: 600; cursor: pointer; white-space: nowrap; transition: all 0.3s ease; }
.filter-btn:hover { border-color: var(--neon-cyan); color: var(--neon-cyan); }
.filter-btn.active { background: var(--neon-cyan); color: #000; border-color: var(--neon-cyan); box-shadow: 0 0 15px rgba(0, 242, 255, 0.3); }
.sort-container { display: flex; justify-content: flex-end; margin-bottom: 20px; padding-right: 10px; }
#sort-select { background: var(--glass-bg); color: var(--text-main); border: 1px solid var(--glass-border); padding: 10px 16px; border-radius: 8px; font-size: 0.95rem; font-weight: 600; outline: none; cursor: pointer; backdrop-filter: blur(10px); transition: border-color 0.3s ease; }
#sort-select:hover { border-color: var(--neon-cyan); }
#sort-select option { background: #111; color: #fff; }

/* --- 10. SELL FORM UI --- */
.input-group { margin-bottom: 25px; display: flex; flex-direction: column; text-align: left; width: 100%; }
.input-group label { font-size: 0.9rem; font-weight: 600; color: var(--text-muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 1px; }
.input-group input, .input-group select, .input-group textarea { background: rgba(0, 0, 0, 0.5); border: 1px solid var(--glass-border); color: var(--text-main); padding: 15px; border-radius: 8px; font-size: 1rem; outline: none; transition: all 0.3s ease; }
.input-group input:focus, .input-group select:focus, .input-group textarea:focus { border-color: var(--neon-cyan); box-shadow: 0 0 15px rgba(0, 242, 255, 0.15); }
.input-group select option { background: #111; color: #fff; }

/* --- 11. MOBILE MENU --- */
.mobile-menu-overlay { position: fixed; top: 0; right: -100%; width: 100%; height: 100vh; background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); z-index: 2000; display: flex; flex-direction: column; justify-content: center; align-items: center; transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.mobile-menu-overlay.active { right: 0; }
.close-menu { position: absolute; top: 30px; right: 30px; background: none; border: none; color: var(--text-main); font-size: 2.5rem; cursor: pointer; transition: color 0.3s ease; }
.close-menu:hover { color: var(--neon-cyan); }
.mobile-nav-links { display: flex; flex-direction: column; text-align: center; gap: 40px; }
.mobile-nav-links a { color: var(--text-main); text-decoration: none; font-size: 2.5rem; font-weight: 900; letter-spacing: 2px; transition: color 0.3s ease, transform 0.3s ease; }
.mobile-nav-links a:hover { color: var(--neon-cyan); transform: scale(1.1); }
@media (max-width: 768px) { .nav-links { display: none; } .glass-nav { padding: 15px 20px; } }
@media (min-width: 769px) { .mobile-menu { display: none; } }

/* --- 12. PRODUCT DETAIL PAGE --- */
.back-btn { background: none; border: none; color: var(--text-muted); font-size: 1rem; font-weight: 600; cursor: pointer; margin-bottom: 30px; transition: color 0.3s ease; }
.back-btn:hover { color: var(--neon-cyan); }
.product-detail-grid { display: grid; grid-template-columns: 1fr; gap: 50px; align-items: center; }
@media (min-width: 992px) { .product-detail-grid { grid-template-columns: 1fr 1fr; } }
.detail-stage { height: 500px; display: flex; justify-content: center; align-items: center; position: relative; background: linear-gradient(to bottom, #111, #000); }
.massive-icon { font-size: 12rem; z-index: 10; animation: float 5s ease-in-out infinite; }
.massive-neon-glow { position: absolute; width: 250px; height: 250px; background: var(--neon-cyan); filter: blur(120px); opacity: 0.2; }
.detail-info { padding: 20px 0; }
.specs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; margin-bottom: 40px; }
.spec-item { background: rgba(255, 255, 255, 0.03); padding: 15px; border-radius: 12px; border: 1px solid var(--glass-border); transition: border-color 0.3s ease; }
.spec-item:hover { border-color: rgb(255, 106, 0); }
.spec-label { display: block; font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 5px; }
.spec-value { font-size: 1.05rem; font-weight: 700; color: var(--neon-cyan); }
/* --- 16. LIQUID GLASS & TILE LAYOUTS --- */

/* The Liquid Glass Card Base */
.liquid-tile {
    position: relative;
    background: rgba(15, 15, 15, 0.4); /* Very dark, transparent base */
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 32px;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.4s ease;
    z-index: 1;
}

/* The Animated Liquid Glow Underneath */
.liquid-tile::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    /* A radial gradient that looks like a glowing orb */
    background: radial-gradient(circle at center, rgb(255, 115, 0) 0%, transparent 50%);
    animation: liquidShift 10s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
    opacity: 0; /* Hidden by default */
    transition: opacity 0.6s ease;
}

/* Trigger the liquid effect on hover */
.liquid-tile:hover {
    transform: scale(1.02) translateY(-10px);
    border-color: rgb(255, 98, 0);
}

.liquid-tile:hover::before {
    opacity: 1; /* Fades in the moving liquid */
}

/* The fluid motion animation */
@keyframes liquidShift {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); }
    50% { transform: translate(15%, 20%) scale(1.5) rotate(90deg) skew(10deg); }
    100% { transform: translate(-10%, -15%) scale(1.2) rotate(180deg) skew(-10deg); }
}

/* Horizontal Scrolling Track */
.horizontal-track {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 20px 40px 60px 40px;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none; 
    scrollbar-width: none; 
}

.horizontal-track::-webkit-scrollbar { display: none; }

.horizontal-track .liquid-tile {
    min-width: 85vw; /* Takes up most of the screen on phones */
    height: 500px;
    scroll-snap-align: center;
}

/* Desktop sizing for horizontal track */
@media (min-width: 992px) {
    .horizontal-track .liquid-tile {
        min-width: 60vw;
        height: 600px;
    }
}

/* Vertical Bento Box Grid */
.bento-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 0 40px 100px 40px;
}

@media (min-width: 768px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    /* Make the first tile span both columns to look massive */
    .bento-grid .liquid-tile:first-child {
        grid-column: span 2;
        height: 400px;
    }
}

/* Image styling inside the tiles */
.liquid-tile img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    z-index: -2;
    opacity: 0.5; /* Dims the image so the neon text pops */
    transition: opacity 0.4s ease, transform 0.8s ease;
}

.liquid-tile:hover img {
    opacity: 0.3; /* Dims it further on hover so the liquid glow takes over */
    transform: scale(1.05);
}

.tile-content {
    z-index: 2;
}

.tile-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 10px;
}
/* --- 17. CHECKOUT MODAL UI --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 3000;
    display: none; /* Hidden until Javascript opens it */
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* When Javascript adds this class, the modal fades in */
.modal-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.modal-content {
    width: 100%;
    max-width: 450px;
    padding: 40px;
    text-align: center;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 20px; right: 20px;
    background: none; border: none;
    color: var(--text-muted); font-size: 1.5rem;
    cursor: pointer; transition: 0.3s;
}

.close-modal:hover { color: var(--neon-cyan); }

/* The Google Button */
.google-btn {
    width: 100%; padding: 15px; border-radius: 50px;
    background: white; color: black; border: none;
    font-size: 1.1rem; font-weight: 800; cursor: pointer;
    display: flex; justify-content: center; align-items: center; gap: 10px;
    transition: 0.3s;
}

.google-btn:hover { background: #f1f1f1; transform: scale(1.02); }
.google-btn img { width: 24px; height: 24px; }

/* The Skip Button */
.skip-btn {
    width: 100%; padding: 15px; border-radius: 50px;
    background: transparent; color: var(--text-muted); border: 1px solid var(--glass-border);
    font-size: 1rem; font-weight: 600; cursor: pointer; transition: 0.3s;
}

.skip-btn:hover { color: white; border-color: white; }
/* --- 18. VENDOR DASHBOARD UI --- */
.dashboard-body {
    display: flex;
    height: 100vh;
    overflow: hidden; /* Stops the whole page from scrolling, only the main panel scrolls */
    background: #050505;
}

.dashboard-sidebar {
    width: 250px;
    background: rgba(0, 0, 0, 0.8);
    border-right: 1px solid var(--glass-border);
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex-grow: 1;
}

.sidebar-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.sidebar-nav a:hover, .sidebar-nav a.active {
    background: var(--glass-bg);
    color: var(--text-main);
}

.dashboard-main {
    flex-grow: 1;
    padding: 40px;
    overflow-y: auto; /* Allows the right side to scroll independently */
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

/* On large screens, split the dashboard 40/60 */
@media (min-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 4fr 6fr;
    }
}

/* Customizing the Color Picker */
.color-picker {
    -webkit-appearance: none;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    background: none;
}
.color-picker::-webkit-color-swatch-wrapper { padding: 0; }
.color-picker::-webkit-color-swatch { border: 1px solid var(--glass-border); border-radius: 50%; }

/* The Inventory Table */
.inventory-table {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.table-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 50px;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
}

.table-header {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 5px;
}

.tiny-thumb {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.status-badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.status-badge.live {
    background: rgba(0, 242, 255, 0.1);
    color: var(--neon-cyan);
    border: 1px solid rgba(0, 242, 255, 0.3);
}

.status-badge.draft {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: 1px solid var(--glass-border);
}
/* --- 19. DASHBOARD SPA VIEWS & ANALYTICS --- */
.view-section {
    display: none; /* Hide all sections by default */
    animation: fadeIn 0.4s ease;
}

.view-section.active {
    display: block; /* Only show the active one */
}

.stat-card {
    padding: 30px;
    text-align: center;
    border-top: 3px solid var(--neon-cyan); /* Nice accent line */
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--neon-cyan);
    line-height: 1;
}
/* --- 20. MARKETPLACE PLATFORM UI --- */

/* The Dropdown Logo */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: rgba(10, 10, 10, 0.95);
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.5);
    z-index: 2000;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    top: 40px;
}

.dropdown-content a {
    color: var(--text-main);
    padding: 15px 20px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.3s;
}

.dropdown-content a:hover {
    background-color: var(--neon-cyan);
    color: black;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* The Massive Central Search */
.massive-search-container {
    width: 100%;
    max-width: 700px;
    display: flex;
    margin: 40px auto 0 auto;
    box-shadow: 0 10px 30px rgba(0, 242, 255, 0.15);
    border-radius: 50px;
}

.massive-search-container input {
    flex-grow: 1;
    padding: 20px 30px;
    border: none;
    outline: none;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 1.2rem;
    border-radius: 50px 0 0 50px;
    backdrop-filter: blur(10px);
}

.massive-search-container button {
    padding: 20px 40px;
    background: var(--neon-cyan);
    color: black;
    border: none;
    font-weight: 900;
    font-size: 1.1rem;
    border-radius: 0 50px 50px 0;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.massive-search-container button:hover {
    transform: scale(1.02);
}

/* How It Works Grid */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.step-card {
    text-align: center;
    padding: 40px 20px;
}

.step-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--neon-cyan);
}
/* --- 21. AUTHENTICATION MODAL --- */
.auth-content {
    position: relative;
}

.auth-grid {
    display: grid;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .auth-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.auth-half {
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

/* The dark side for normal users */
.shopper-side {
    background: transparent;
}

/* The bright, highlighted side for businesses */
.vendor-side {
    background: var(--neon-cyan);
    color: black;
}

/* Subtle hover effects for the buttons */
.shopper-side .skip-btn:hover {
    background: white;
    color: black;
}

.vendor-side .cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}
/* --- 22. MODULAR STORE TABS & TOGGLES --- */
/* The Dashboard Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(255,255,255,0.1); transition: .4s; border-radius: 30px;
}
.slider:before {
    position: absolute; content: ""; height: 20px; width: 20px; left: 4px; bottom: 4px;
    background-color: white; transition: .4s; border-radius: 50%;
}
.toggle-switch input:checked + .slider { background-color: var(--neon-cyan); }
.toggle-switch input:checked + .slider:before { transform: translateX(22px); background-color: black; }

/* The Storefront Tab Navigation */
.store-tab-nav {
    display: flex; gap: 15px; overflow-x: auto; padding: 0 40px 20px 40px;
    border-bottom: 1px solid var(--glass-border); scrollbar-width: none;
}
.store-tab-nav::-webkit-scrollbar { display: none; }
.store-tab-btn {
    background: transparent; color: var(--text-muted); border: none; font-size: 1.1rem;
    font-weight: 600; cursor: pointer; white-space: nowrap; padding-bottom: 10px; transition: 0.3s;
}
.store-tab-btn.active {
    color: var(--text-main); border-bottom: 3px solid var(--neon-cyan);
}
.store-tab-content { display: none; padding: 40px; animation: fadeIn 0.4s ease; }
.store-tab-content.active { display: block; }
/* --- 23. GLOBAL SLIDE-OUT CART --- */

/* The dark, blurred background overlay */
.cart-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: rgba(0,0,0,0.6); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
    z-index: 2500; opacity: 0; visibility: hidden; transition: 0.3s ease;
}
.cart-overlay.active { opacity: 1; visibility: visible; }

/* The physical drawer hidden off-screen to the right */
.cart-drawer {
    position: fixed; top: 0; right: -100%; width: 100%; max-width: 400px; height: 100vh;
    background: #080808; border-left: 1px solid var(--glass-border);
    z-index: 3000; display: flex; flex-direction: column;
    transition: right 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: -15px 0 30px rgba(0,0,0,0.8);
}
.cart-drawer.active { right: 0; }

.cart-header {
    padding: 30px; border-bottom: 1px solid var(--glass-border);
    display: flex; justify-content: space-between; align-items: center;
}

.close-cart {
    background: none; border: none; color: var(--text-muted); font-size: 1.5rem;
    cursor: pointer; transition: 0.3s;
}
.close-cart:hover { color: var(--neon-cyan); transform: rotate(90deg); }

.cart-items-list {
    flex-grow: 1; overflow-y: auto; padding: 20px;
    display: flex; flex-direction: column; gap: 15px;
}

.cart-footer {
    padding: 30px; border-top: 1px solid var(--glass-border); background: #050505;
}

.cart-total-row {
    display: flex; justify-content: space-between; font-size: 1.5rem; margin-bottom: 20px;
}
