/* ==========================================================================
   MOBILESHOP PRO - CLEAN PREMIUM RETAIL DESIGN SYSTEM
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
    --bg-midnight: #f5f7fb;
    --bg-surface: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.92);
    --glass-bg: rgba(255, 255, 255, 0.86);
    --glass-border: rgba(15, 23, 42, 0.1);
    --glass-border-glow: rgba(20, 184, 166, 0.3);

    --neon-cyan: #0f766e;
    --neon-blue: #2563eb;
    --neon-violet: #4f46e5;
    --neon-purple: #7c3aed;
    --neon-mint: #10b981;
    --neon-pink: #f97316;
    --neon-gold: #f59e0b;

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;

    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-full: 999px;

    --backdrop-blur: blur(16px);
    --shadow-glass: 0 16px 40px rgba(15, 23, 42, 0.1);
    --shadow-glow: 0 18px 45px rgba(20, 184, 166, 0.16);
    --transition-spring: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background-color: var(--bg-midnight);
    background-image: 
        radial-gradient(circle at 15% 15%, rgba(0, 242, 254, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 45%, rgba(121, 40, 202, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 50% 85%, rgba(0, 223, 162, 0.06) 0%, transparent 50%);
    background-attachment: fixed;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Custom Retail Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-midnight);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    border: 2px solid var(--bg-midnight);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--neon-cyan);
    box-shadow: 0 0 10px var(--neon-cyan);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.25s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header Styles */
.header {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--shadow-glass);
    transition: background 0.3s ease, border 0.3s ease;
}

/* Sliding Ticker Bar */
.sliding-ticker-bar {
    background: linear-gradient(90deg, #120a2a, #2f1454, #120a2a);
    color: var(--neon-gold);
    overflow: hidden;
    white-space: nowrap;
    padding: 6px 0;
    font-size: 12px;
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    letter-spacing: 0.5px;
}

.ticker-content {
    display: inline-block;
    padding-left: 100%;
    animation: tickerAnim 22s linear infinite;
}

@keyframes tickerAnim {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

.top-bar {
    background: rgba(11, 15, 25, 0.8);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 30px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--glass-border);
}

.admin-portal-link {
    color: var(--neon-cyan);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
}

.admin-portal-link:hover {
    color: var(--neon-mint);
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 30px;
    gap: 20px;
}

.search-bar {
    flex-grow: 1;
    max-width: 620px;
    display: flex;
    position: relative;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: var(--backdrop-blur);
    transition: all 0.3s var(--transition-spring);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
}

.search-bar:focus-within {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.25), inset 0 2px 4px rgba(0,0,0,0.4);
    background: rgba(255, 255, 255, 0.07);
}

.search-bar input {
    flex-grow: 1;
    padding: 12px 24px;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: var(--text-primary);
    font-family: var(--font-body);
}

.search-bar input::placeholder {
    color: var(--text-muted);
}

.search-bar button {
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-blue));
    color: #0b0f19;
    font-weight: 700;
    border: none;
    padding: 0 26px;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 15px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin: 3px;
}

.search-bar button:hover {
    transform: scale(1.03);
    box-shadow: 0 0 15px var(--neon-cyan);
}

/* Instant Search Dropdown */
.predictive-search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-glass);
    padding: 12px;
    display: none;
    z-index: 999;
}

.predictive-search-dropdown.active {
    display: block;
    animation: fadeInDown 0.25s var(--transition-spring);
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.user-actions {
    display: flex;
    gap: 22px;
    align-items: center;
}

.user-actions a {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: var(--radius-full);
    border: 1px solid transparent;
    transition: all 0.25s ease;
}

.user-actions a:hover {
    color: var(--neon-cyan);
    border-color: var(--glass-border);
    background: rgba(255, 255, 255, 0.05);
}

.user-actions i {
    font-size: 18px;
}

.cart-icon {
    position: relative;
}

.cart-count {
    background: linear-gradient(135deg, var(--neon-pink), var(--neon-violet));
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 10px;
    box-shadow: 0 0 10px var(--neon-pink);
    position: relative;
    top: -2px;
}

/* Category Navigation Bar */
.category-nav {
    background: rgba(11, 15, 25, 0.9);
    border-top: 1px solid var(--glass-border);
    padding: 0 30px;
    overflow-x: auto;
}

.category-nav ul {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 48px;
}

.category-nav li a {
    padding: 8px 16px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-secondary);
    border-radius: var(--radius-full);
    white-space: nowrap;
    transition: all 0.25s ease;
}

.category-nav li a:hover,
.category-nav li a.active {
    color: var(--neon-cyan);
    background: rgba(0, 242, 254, 0.1);
    box-shadow: 0 0 12px rgba(0, 242, 254, 0.15);
}

.nav-deals a {
    color: var(--neon-gold) !important;
    font-weight: 700 !important;
}

.nav-deals a:hover {
    background: rgba(255, 183, 3, 0.15) !important;
}

.nav-dept-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(17, 24, 39, 0.96);
    backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-glass);
    display: none;
    padding: 20px;
    gap: 30px;
    z-index: 99999;
}

.nav-dept-dropdown:hover .dropdown-menu {
    display: flex;
    animation: fadeInDown 0.25s ease;
}

.dropdown-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 170px;
}

.dropdown-column a {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dropdown-column a:hover {
    color: var(--neon-cyan);
}

/* Layout Containers */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Section Headers */
.section-header {
    margin-bottom: 24px;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-header h2 i {
    color: var(--neon-cyan);
    text-shadow: 0 0 12px var(--neon-cyan);
}

/* Hero 3D Showcase Section */
.hero-section {
    position: relative;
    padding: 20px;
    max-width: 1400px;
    margin: 20px auto 0;
}

.hero-slider-container {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-glass), var(--shadow-glow);
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.9), rgba(11, 15, 25, 0.95));
    min-height: 440px;
}

.hero-slides-track {
    position: relative;
    height: 100%;
    min-height: 440px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s var(--transition-spring), visibility 0.6s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px 60px;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-image {
    width: 45%;
    max-height: 380px;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    animation: float3D 6s ease-in-out infinite;
}

@keyframes float3D {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(1deg); }
}

.hero-sale-badge {
    max-width: 50%;
    z-index: 2;
}

.badge-tag {
    display: inline-block;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-blue));
    color: #0b0f19;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    letter-spacing: 1px;
    margin-bottom: 16px;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
}

.hero-sale-badge h2 {
    font-family: var(--font-heading);
    font-size: 44px;
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: 14px;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #ffffff, var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-sale-badge p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 26px;
    line-height: 1.5;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-mint));
    color: #0b0f19;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 800;
    padding: 14px 28px;
    border-radius: var(--radius-full);
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.3);
    transition: all 0.3s var(--transition-spring);
}

.hero-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 30px var(--neon-cyan);
}

.hero-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(17, 24, 39, 0.8);
    backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.hero-slider-btn:hover {
    background: var(--neon-cyan);
    color: #0b0f19;
    box-shadow: 0 0 15px var(--neon-cyan);
}

.prev-slide { left: 20px; }
.next-slide { right: 20px; }

.hero-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.hero-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-dots .dot.active {
    width: 28px;
    border-radius: 10px;
    background: var(--neon-cyan);
    box-shadow: 0 0 10px var(--neon-cyan);
}

/* Category Cards Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 18px;
}

.category-item {
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    transition: all 0.3s var(--transition-spring);
}

.category-item:hover {
    transform: translateY(-6px);
    border-color: var(--neon-cyan);
    box-shadow: 0 10px 25px rgba(0, 242, 254, 0.15);
}

.category-icon img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--glass-border);
}

.category-name {
    font-family: var(--font-heading);
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-primary);
}

/* High-Tech Product Cards with 3D Tilt */
.carousel-container, .side-carousel-wrapper {
    position: relative;
}

.carousel-track, .product-grid {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 10px 4px 20px 4px;
    scroll-behavior: smooth;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.product-card {
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 18px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s var(--transition-spring), border-color 0.3s ease, box-shadow 0.3s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.product-card:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 12px 30px rgba(0, 242, 254, 0.2);
}

.product-image {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 14px;
    background: rgba(0, 0, 0, 0.2);
}

.product-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, var(--neon-violet), var(--neon-pink));
    color: #fff;
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    box-shadow: 0 0 10px rgba(121, 40, 202, 0.4);
}

.product-title {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.35;
    height: 40px;
    overflow: hidden;
}

.product-price-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 14px;
}

.current-price {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 800;
    color: var(--neon-cyan);
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
}

.old-price {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.add-to-cart-btn {
    width: 100%;
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.15), rgba(79, 172, 254, 0.15));
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 800;
    padding: 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s ease;
}

.add-to-cart-btn:hover {
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-blue));
    color: #0b0f19;
    box-shadow: 0 0 15px var(--neon-cyan);
}

/* Banner Grids */
.banner-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.banner {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-glass);
    height: 220px;
}

.banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.banner:hover img {
    transform: scale(1.06);
}

.promo-pill-badge {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: rgba(11, 15, 25, 0.85);
    backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 800;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
}

/* Flash Sale & Digital Flip Timer Section */
.flash-sale-section {
    background: linear-gradient(135deg, rgba(121, 40, 202, 0.15), rgba(0, 242, 254, 0.1));
    border: 1px solid var(--neon-violet);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin: 30px auto;
    max-width: 1400px;
    box-shadow: 0 0 30px rgba(121, 40, 202, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.flash-sale-info h3 {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 900;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.flip-timer-container {
    display: flex;
    gap: 14px;
}

.flip-unit {
    background: rgba(11, 15, 25, 0.9);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    text-align: center;
    min-width: 65px;
    box-shadow: var(--shadow-glass);
}

.flip-val {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 900;
    color: var(--neon-cyan);
}

.flip-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* Interactive Spec Comparison Matrix */
.spec-matrix-section {
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin: 40px auto;
    max-width: 1400px;
}

.matrix-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.matrix-scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.matrix-table th, .matrix-table td {
    padding: 16px;
    text-align: center;
    border-bottom: 1px solid var(--glass-border);
    font-size: 14px;
    color: var(--text-secondary);
}

.matrix-table th {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 800;
    color: var(--neon-cyan);
    background: rgba(0, 0, 0, 0.2);
}

.matrix-table td strong {
    color: var(--text-primary);
}

/* Slide-over Cart Drawer */
.cart-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cart-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 420px;
    height: 100%;
    background: var(--bg-surface);
    border-left: 1px solid var(--glass-border);
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transform: translateX(100%);
    transition: transform 0.4s var(--transition-spring);
}

.cart-drawer-overlay.active .cart-drawer {
    transform: translateX(0);
}

.shipping-progress-bar {
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full);
    height: 8px;
    overflow: hidden;
    margin: 14px 0;
}

.shipping-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-mint));
    width: 65%;
    border-radius: var(--radius-full);
    transition: width 0.5s ease;
}

/* Slide-in Glass Toast System */
.toast-container {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.glass-toast {
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--neon-cyan);
    box-shadow: 0 10px 30px rgba(0, 242, 254, 0.25);
    border-radius: var(--radius-md);
    padding: 14px 20px;
    color: var(--text-primary);
    font-size: 13.5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: toastSlideIn 0.35s var(--transition-spring);
}

@keyframes toastSlideIn {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Footer Styles */
.main-footer {
    background: rgba(7, 10, 18, 0.95);
    border-top: 1px solid var(--glass-border);
    padding-top: 50px;
    margin-top: 60px;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
}

.footer-links h4 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 18px;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: var(--text-secondary);
    font-size: 13.5px;
}

.footer-links ul li a:hover {
    color: var(--neon-cyan);
}

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    text-align: center;
    padding: 20px;
    font-size: 13px;
    color: var(--text-muted);
}

/* Responsiveness */
@media (max-width: 992px) {
    .main-header { flex-wrap: wrap; }
    .search-bar { order: 3; max-width: 100%; margin: 10px 0 0 0; }
    .hero-slide { flex-direction: column; text-align: center; padding: 30px; }
    .hero-image { width: 100%; max-height: 240px; margin-top: 20px; }
    .hero-sale-badge { max-width: 100%; }
}

/* ==========================================================================
   CLEAN PREMIUM THEME REFRESH
   ========================================================================== */

body {
    background-image:
        linear-gradient(180deg, #f8fafc 0%, #eef6f5 42%, #f5f7fb 100%),
        radial-gradient(circle at 12% 8%, rgba(20, 184, 166, 0.1) 0%, transparent 34%),
        radial-gradient(circle at 88% 18%, rgba(37, 99, 235, 0.08) 0%, transparent 32%);
}

::-webkit-scrollbar-thumb:hover {
    box-shadow: 0 8px 18px rgba(20, 184, 166, 0.18);
}

.header {
    background: rgba(255, 255, 255, 0.88);
}

.sliding-ticker-bar {
    background: linear-gradient(90deg, #0f766e, #2563eb, #0f766e);
    color: #ffffff;
}

.top-bar,
.category-nav {
    background: rgba(248, 250, 252, 0.9);
}

.search-bar,
.predictive-search-dropdown,
.hero-slider-btn,
.flip-unit {
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
}

.search-bar:focus-within {
    box-shadow: 0 14px 30px rgba(20, 184, 166, 0.16);
}

.search-bar button,
.hero-btn,
.add-to-cart-btn:hover {
    color: #ffffff;
}

.user-actions a:hover,
.category-nav li a:hover,
.category-nav li a.active {
    background: rgba(20, 184, 166, 0.08);
    box-shadow: 0 8px 18px rgba(20, 184, 166, 0.12);
}

.dropdown-menu,
.glass-toast {
    background: rgba(255, 255, 255, 0.98);
}

.cart-count,
.discount-badge {
    box-shadow: 0 10px 20px rgba(249, 115, 22, 0.2);
}

.section-header h2 i,
.current-price {
    text-shadow: none;
}

.hero-slider-container {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(229, 246, 244, 0.94)),
        radial-gradient(circle at 82% 18%, rgba(37, 99, 235, 0.14), transparent 32%);
    box-shadow: var(--shadow-glass), var(--shadow-glow);
}

.hero-image {
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.18);
}

.badge-tag {
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(20, 184, 166, 0.18);
}

.hero-sale-badge h2 {
    background: linear-gradient(135deg, #0f172a, #0f766e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-btn {
    box-shadow: 0 14px 26px rgba(20, 184, 166, 0.22);
}

.hero-btn:hover {
    box-shadow: 0 18px 35px rgba(20, 184, 166, 0.3);
}

.hero-slider-btn:hover {
    color: #ffffff;
    box-shadow: 0 12px 22px rgba(20, 184, 166, 0.2);
}

.hero-dots .dot {
    background: rgba(15, 23, 42, 0.18);
}

.hero-dots .dot.active {
    box-shadow: 0 8px 16px rgba(20, 184, 166, 0.2);
}

.category-item,
.product-card,
.spec-matrix-section,
.admin-table-card,
.banner {
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.category-item:hover,
.product-card:hover {
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.12);
}

.product-image {
    background: #eef2f7;
}

.promo-pill-badge {
    background: rgba(255, 255, 255, 0.9);
}

.flash-sale-section {
    background: linear-gradient(135deg, rgba(255, 247, 237, 0.96), rgba(236, 253, 245, 0.96));
    border-color: rgba(249, 115, 22, 0.26);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.matrix-table th {
    background: rgba(20, 184, 166, 0.08);
}

.cart-drawer-overlay {
    background: rgba(15, 23, 42, 0.35);
}

.cart-drawer {
    box-shadow: -20px 0 45px rgba(15, 23, 42, 0.18);
}

.shipping-progress-bar {
    background: rgba(15, 23, 42, 0.08);
}

.main-footer {
    background: #0f172a;
}

.footer-links h4 {
    color: #ffffff;
}

.category-banner {
    background: linear-gradient(135deg, #0f766e, #2563eb) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.category-banner h1 {
    color: #ffffff !important;
}

.modal-card {
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

/* ==========================================================================
   STORE PAGE LAYOUTS + MOBILE RESPONSIVENESS
   ========================================================================== */

.page-content {
    width: 100%;
}

.breadcrumb {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 14px;
}

.breadcrumb a {
    color: var(--neon-cyan);
    font-weight: 800;
}

.page-title {
    font-family: var(--font-heading);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.08;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.category-layout,
.cart-layout,
.checkout-layout {
    display: grid;
    align-items: start;
    gap: 24px;
}

.category-layout {
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
}

.cart-layout,
.checkout-layout {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
}

.filter-sidebar,
.cart-items-section,
.cart-summary-card,
.checkout-form-section,
.checkout-block,
.checkout-summary-section .cart-summary-card,
.category-toolbar,
.modal-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.filter-sidebar,
.cart-items-section,
.cart-summary-card,
.checkout-block,
.category-toolbar {
    padding: 22px;
}

.filter-group + .filter-group,
.checkout-block + .checkout-block {
    margin-top: 18px;
}

.filter-group h3,
.cart-summary-card h2,
.checkout-block h2 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 900;
}

.filter-group h3,
.cart-summary-card h2 {
    font-size: 19px;
    margin-bottom: 14px;
}

.filter-group li {
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
}

.price-inputs,
.promo-box,
.quantity-control,
.category-toolbar,
.sort-by,
.summary-line,
.summary-total,
.checkout-item-mini,
.trust-badges,
.cart-actions {
    display: flex;
    align-items: center;
}

.price-inputs {
    gap: 8px;
    margin-bottom: 12px;
}

.price-inputs input,
.promo-box input,
.form-group input,
.form-group select,
.sort-by select {
    width: 100%;
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    background: #ffffff;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 14px;
    outline: 0;
}

.price-inputs input,
.promo-box input,
.form-group input,
.form-group select,
.sort-by select {
    padding: 12px 13px;
}

.filter-btn,
.promo-box button,
.checkout-btn,
.continue-btn,
.clear-btn,
.modal-btn {
    border: 0;
    border-radius: 10px;
    font-family: var(--font-heading);
    font-weight: 900;
    cursor: pointer;
    text-align: center;
}

.filter-btn,
.promo-box button,
.checkout-btn,
.modal-btn {
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-blue)) !important;
    color: #ffffff;
}

.filter-btn {
    width: 100%;
    padding: 12px;
}

.category-banner {
    padding: clamp(22px, 5vw, 34px) !important;
    overflow: hidden;
}

.category-banner h1 {
    font-family: var(--font-heading);
    font-size: clamp(27px, 5vw, 42px);
    line-height: 1.08;
    margin-bottom: 8px;
}

.category-banner p {
    max-width: 760px;
    line-height: 1.55;
}

.category-toolbar {
    justify-content: space-between;
    margin-bottom: 18px;
}

.result-count,
.sort-by {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 700;
}

.sort-by {
    gap: 10px;
}

.category-grid-view {
    overflow: visible;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table th,
.cart-table td {
    padding: 15px 12px;
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-secondary);
    text-align: left;
    vertical-align: middle;
    font-size: 14px;
}

.cart-table th {
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-weight: 900;
}

.product-cell {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 260px;
}

.product-cell img {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    object-fit: cover;
    background: #eef2f7;
}

.product-info h3,
.mini-details h4 {
    color: var(--text-primary);
    font-family: var(--font-heading);
    line-height: 1.25;
}

.product-info h3 {
    font-size: 15px;
    margin-bottom: 4px;
}

.sku,
.mini-details span,
.guarantee-text {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
}

.quantity-control {
    width: max-content;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    overflow: hidden;
    background: #ffffff;
}

.qty-btn,
.qty-input,
.remove-btn {
    border: 0;
    background: transparent;
    color: var(--text-primary);
}

.qty-btn {
    width: 34px;
    height: 34px;
    cursor: pointer;
    font-weight: 900;
}

.qty-input {
    width: 38px;
    text-align: center;
    font-weight: 800;
}

.remove-btn {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    cursor: pointer;
    color: #ef4444;
}

.remove-btn:hover {
    background: rgba(239, 68, 68, 0.08);
}

.cart-actions {
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.continue-btn,
.clear-btn {
    padding: 12px 16px;
    font-size: 14px;
}

.continue-btn {
    background: rgba(20, 184, 166, 0.1);
    color: var(--neon-cyan);
}

.clear-btn {
    background: rgba(239, 68, 68, 0.08);
    color: #dc2626;
}

.cart-summary-card {
    position: sticky;
    top: 156px;
}

.summary-line,
.summary-total {
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-secondary);
}

.summary-total {
    border-bottom: 0;
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 900;
}

.free-shipping {
    color: var(--neon-mint);
}

.promo-box {
    gap: 8px;
    margin: 16px 0;
}

.promo-box button {
    flex: 0 0 auto;
    padding: 12px 14px;
}

.checkout-btn {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 14px 18px;
    margin-top: 16px;
    text-decoration: none;
}

.trust-badges {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-top: 16px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
}

.checkout-form-section {
    background: transparent;
    border: 0;
    box-shadow: none;
}

.checkout-block h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    margin-bottom: 18px;
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 14px;
    flex: 0 0 auto;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.form-group {
    min-width: 0;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 7px;
}

.radio-options {
    display: grid;
    gap: 12px;
}

.radio-card {
    display: flex;
    align-items: center;
    gap: 13px;
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    background: #ffffff;
    padding: 15px;
    cursor: pointer;
}

.radio-card.selected,
.radio-card:has(input:checked) {
    border-color: var(--neon-cyan);
    background: rgba(20, 184, 166, 0.08);
}

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

.radio-info strong {
    color: var(--text-primary);
    line-height: 1.3;
}

.radio-info p {
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 4px;
    line-height: 1.4;
}

.radio-price {
    color: var(--neon-cyan);
    font-weight: 900;
    white-space: nowrap;
}

.checkout-items-list {
    display: grid;
    gap: 14px;
}

.checkout-item-mini {
    gap: 12px;
    align-items: flex-start;
}

.checkout-item-mini img {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    flex: 0 0 auto;
}

.mini-details {
    min-width: 0;
    flex: 1;
}

.mini-details h4 {
    font-size: 14px;
    margin-bottom: 4px;
}

.checkout-item-mini strong {
    white-space: nowrap;
    color: var(--text-primary);
}

.margin-top {
    margin-top: 14px;
}

.guarantee-text {
    margin-top: 13px;
    text-align: center;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(15, 23, 42, 0.42);
    backdrop-filter: blur(10px);
}

.modal-overlay.active {
    display: flex;
}

.modal-card {
    width: min(460px, 100%);
    padding: 28px;
    text-align: center;
    color: var(--text-primary);
}

.modal-card h2 {
    font-family: var(--font-heading);
    margin: 12px 0 8px;
}

.modal-card p {
    color: var(--text-secondary);
    line-height: 1.5;
}

.modal-btn {
    padding: 12px 18px;
    color: #ffffff;
}

@media (max-width: 1100px) {
    .cart-layout,
    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .cart-summary-card {
        position: static;
    }
}

@media (max-width: 860px) {
    .category-layout {
        grid-template-columns: 1fr;
    }

    .filter-sidebar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .filter-group + .filter-group {
        margin-top: 0;
    }
}

@media (max-width: 640px) {
    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    .top-bar {
        justify-content: center;
        padding: 7px 12px;
        text-align: center;
        line-height: 1.35;
    }

    .top-bar-right {
        display: none;
    }

    .main-header {
        padding: 12px 14px;
        gap: 12px;
    }

    .logo {
        flex: 1 1 auto;
        min-width: 0;
    }

    .logo a,
    .brand-logo-link {
        max-width: 100%;
    }

    .logo span:first-child,
    .brand-logo-link span:first-child {
        font-size: 18px !important;
    }

    .user-actions {
        width: auto;
        order: 2;
        justify-content: flex-end;
        gap: 6px;
        flex: 0 0 auto;
    }

    .user-actions a {
        width: 38px;
        height: 38px;
        flex: 0 0 38px;
        justify-content: center;
        padding: 0;
        font-size: 12px;
        gap: 5px;
    }

    .user-actions a:not(.cart-icon) {
        font-size: 0;
    }

    .cart-icon {
        font-size: 0 !important;
    }

    .cart-count {
        font-size: 10px;
        padding: 1px 6px;
        position: absolute;
        top: -4px;
        right: -4px;
    }

    .user-actions i {
        font-size: 16px;
    }

    .search-bar {
        order: 3;
        flex-basis: 100%;
        min-width: 0;
        margin-top: 4px;
    }

    .search-bar input {
        min-width: 0;
        padding: 11px 14px;
        font-size: 13px;
    }

    .search-bar button {
        padding: 0 16px;
        flex: 0 0 auto;
    }

    .category-nav {
        padding: 0 10px;
    }

    .category-nav ul {
        gap: 4px;
        height: 44px;
        min-width: max-content;
    }

    .category-nav li a {
        padding: 8px 11px;
        font-size: 12.5px;
    }

    .nav-divider {
        display: none;
    }

    .dropdown-menu {
        position: fixed;
        left: 10px;
        right: 10px;
        top: auto;
        flex-direction: column;
        gap: 10px;
        max-height: 70vh;
        overflow-y: auto;
    }

    .container {
        padding: 26px 14px;
    }

    .page-title {
        margin-bottom: 18px;
    }

    .hero-section {
        padding: 12px;
        margin-top: 10px;
    }

    .hero-slider-container,
    .hero-slides-track {
        min-height: 560px;
    }

    .hero-slide {
        padding: 34px 18px 58px;
        justify-content: center;
    }

    .hero-sale-badge h2 {
        font-size: clamp(30px, 10vw, 38px);
    }

    .hero-sale-badge p {
        font-size: 14px;
    }

    .hero-image {
        max-height: 230px;
    }

    .hero-slider-btn {
        width: 38px;
        height: 38px;
    }

    .prev-slide {
        left: 10px;
    }

    .next-slide {
        right: 10px;
    }

    .flash-sale-section {
        margin: 18px 12px;
        padding: 20px;
        align-items: flex-start;
    }

    .flash-sale-info h3 {
        font-size: 21px;
    }

    .flip-timer-container {
        width: 100%;
        gap: 8px;
    }

    .flip-unit {
        flex: 1;
        min-width: 0;
        padding: 9px 8px;
    }

    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .category-item {
        padding: 13px 10px;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .carousel-track {
        gap: 12px;
        scroll-snap-type: x mandatory;
    }

    .carousel-track .product-card {
        min-width: 76vw;
        scroll-snap-align: start;
    }

    .product-card {
        padding: 12px;
    }

    .product-image img {
        height: 150px;
    }

    .product-title {
        height: auto;
        min-height: 38px;
        font-size: 13px;
    }

    .current-price {
        font-size: 16px;
    }

    .old-price {
        font-size: 12px;
    }

    .add-to-cart-btn {
        font-size: 12px;
        padding: 9px 7px;
    }

    .spec-matrix-section {
        width: calc(100% - 28px);
        max-width: calc(100% - 28px);
        padding: 18px;
        margin: 26px 14px;
        overflow: hidden;
    }

    .spec-matrix-section .section-header {
        padding: 0;
    }

    .spec-matrix-section .section-header h2 {
        font-size: 21px;
        line-height: 1.2;
        align-items: flex-start;
    }

    .matrix-scroll {
        margin-top: 14px;
        border: 1px solid var(--glass-border);
        border-radius: 12px;
        background: #ffffff;
    }

    .matrix-table {
        min-width: 620px;
        margin-top: 0;
    }

    .matrix-table th,
    .matrix-table td {
        padding: 12px 10px;
        font-size: 12.5px;
        white-space: normal;
    }

    .banner-grid-3 {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .banner {
        height: 180px;
    }

    .category-banner {
        margin-bottom: 16px !important;
    }

    .category-toolbar,
    .cart-actions,
    .radio-card,
    .checkout-item-mini {
        align-items: stretch;
    }

    .category-toolbar {
        flex-direction: column;
        gap: 12px;
    }

    .sort-by {
        width: 100%;
        align-items: center;
        justify-content: space-between;
    }

    .sort-by select {
        max-width: 190px;
    }

    .filter-sidebar {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .cart-items-section,
    .cart-summary-card,
    .checkout-block,
    .category-toolbar {
        padding: 18px;
        border-radius: 14px;
    }

    .cart-table,
    .cart-table thead,
    .cart-table tbody,
    .cart-table tr,
    .cart-table td {
        display: block;
        width: 100%;
    }

    .cart-table thead {
        display: none;
    }

    .cart-item-row {
        position: relative;
        padding: 16px 0;
        border-bottom: 1px solid var(--glass-border);
    }

    .cart-table td {
        border-bottom: 0;
        padding: 8px 0;
    }

    .product-cell {
        min-width: 0;
        padding-right: 42px !important;
    }

    .product-cell img {
        width: 66px;
        height: 66px;
    }

    .price-cell,
    .subtotal-cell,
    .qty-cell {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .price-cell::before {
        content: "Price";
    }

    .qty-cell::before {
        content: "Quantity";
    }

    .subtotal-cell::before {
        content: "Subtotal";
    }

    .price-cell::before,
    .qty-cell::before,
    .subtotal-cell::before {
        color: var(--text-muted);
        font-size: 12px;
        font-weight: 900;
        text-transform: uppercase;
    }

    .action-cell {
        position: absolute;
        top: 13px;
        right: 0;
        width: auto !important;
    }

    .cart-actions {
        flex-direction: column;
    }

    .continue-btn,
    .clear-btn {
        width: 100%;
    }

    .promo-box {
        flex-direction: column;
    }

    .promo-box button {
        width: 100%;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .checkout-block h2 {
        align-items: flex-start;
        font-size: 18px;
        line-height: 1.25;
    }

    .radio-card {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
    }

    .radio-price {
        grid-column: 2;
    }

    .checkout-item-mini {
        display: grid;
        grid-template-columns: 58px minmax(0, 1fr);
    }

    .checkout-item-mini strong {
        grid-column: 2;
        white-space: normal;
    }

    .cart-drawer {
        max-width: 100%;
        padding: 22px 16px;
    }

    .toast-container {
        left: 12px;
        right: 12px;
        top: auto;
        bottom: 16px;
    }

    .glass-toast {
        width: 100%;
    }

    .dynamic-island-container {
        display: none;
    }

    .main-footer {
        margin-top: 34px;
        padding-top: 32px;
    }

    .footer-top {
        gap: 24px;
        padding-bottom: 28px;
    }
}

@media (max-width: 380px) {
    .product-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .carousel-track .product-card {
        min-width: 84vw;
    }

    .user-actions a {
        font-size: 11px;
    }
}
