/*
Theme Name: Premium E-Commerce Theme
Description: A high-end glassmorphic dark-themed e-commerce design for WordPress.
Version: 1.0
Author: DeepMind Antigravity
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=DM+Sans:wght@400;500;600;700&family=Lora:wght@400;500&family=JetBrains+Mono&display=swap');

:root, html[data-theme="light"] {
    /* Colors - Light Theme (Default) */
    --color-bg: #FAFAF7;
    --color-surface: #FFFFFF;
    --color-surface-alt: #F4F2ED;
    --color-primary: #2A6B72;
    --color-primary-hover: #1E5159;
    --color-accent: #E89B3A;
    --color-accent-light: #FDE8CC;
    --color-secondary: #8FAF9B;
    --color-text: #1C1C1E;
    --color-text-secondary: #5C6370;
    --color-text-muted: #9CA3AF;
    --color-border: #E4E6EB;
    --color-success: #3D9E6E;
    --color-warning: #D4870A;
    --color-error: #C0392B;
    --color-info: #4A7FBD;
    --color-header-bg: rgba(255, 255, 255, 0.85);
    --color-hover-bg: rgba(42, 107, 114, 0.08);
    --color-card-border-hover: rgba(42, 107, 114, 0.3);
    --color-card-shadow-hover: rgba(42, 107, 114, 0.15);
    --primary-glow: rgba(42, 107, 114, 0.15);
}

html[data-theme="dark"] {
    /* Colors - Dark Theme (Obsidian) */
    --color-bg: #0F172A;
    --color-surface: #1E293B;
    --color-surface-alt: #0B0F19;
    --color-primary: #6366F1;
    --color-primary-hover: #4F46E5;
    --color-accent: #F59E0B;
    --color-accent-light: #312E81;
    --color-secondary: #818CF8;
    --color-text: #F8FAFC;
    --color-text-secondary: #94A3B8;
    --color-text-muted: #64748B;
    --color-border: #334155;
    --color-success: #10B981;
    --color-warning: #F59E0B;
    --color-error: #EF4444;
    --color-info: #3B82F6;
    --color-header-bg: rgba(15, 23, 42, 0.85);
    --color-hover-bg: rgba(99, 102, 241, 0.15);
    --color-card-border-hover: rgba(99, 102, 241, 0.4);
    --color-card-shadow-hover: rgba(99, 102, 241, 0.25);
    --primary-glow: rgba(99, 102, 241, 0.25);
}

html[data-theme="cyberpunk"] {
    /* Colors - Cyberpunk Theme (Neon Grid) */
    --color-bg: #0B0F19;
    --color-surface: #121829;
    --color-surface-alt: #080B13;
    --color-primary: #D946EF;
    --color-primary-hover: #C084FC;
    --color-accent: #06B6D4;
    --color-accent-light: #3B0764;
    --color-secondary: #A855F7;
    --color-text: #FDF4FF;
    --color-text-secondary: #E9D5FF;
    --color-text-muted: #701A75;
    --color-border: #2E1065;
    --color-success: #10B981;
    --color-warning: #F59E0B;
    --color-error: #EF4444;
    --color-info: #06B6D4;
    --color-header-bg: rgba(11, 15, 25, 0.85);
    --color-hover-bg: rgba(217, 70, 239, 0.15);
    --color-card-border-hover: rgba(217, 70, 239, 0.5);
    --color-card-shadow-hover: rgba(217, 70, 239, 0.35);
    --primary-glow: rgba(217, 70, 239, 0.35);
}

html[data-theme="sunset"] {
    /* Colors - Sunset Theme (Warm Coral) */
    --color-bg: #1E112A;
    --color-surface: #2A1B35;
    --color-surface-alt: #140A1C;
    --color-primary: #FF4B72;
    --color-primary-hover: #E12D53;
    --color-accent: #FFB830;
    --color-accent-light: #4A1525;
    --color-secondary: #FF7B90;
    --color-text: #FFF0F3;
    --color-text-secondary: #FFB3C1;
    --color-text-muted: #800F2F;
    --color-border: #442E54;
    --color-success: #10B981;
    --color-warning: #F59E0B;
    --color-error: #EF4444;
    --color-info: #3B82F6;
    --color-header-bg: rgba(30, 17, 42, 0.85);
    --color-hover-bg: rgba(255, 75, 114, 0.15);
    --color-card-border-hover: rgba(255, 75, 114, 0.4);
    --color-card-shadow-hover: rgba(255, 75, 114, 0.25);
    --primary-glow: rgba(255, 75, 114, 0.25);
}

:root {
    /* Legacy variable mappings to make the rest of style.css automatically work */
    --bg-primary: var(--color-bg);
    --bg-secondary: var(--color-surface-alt);
    --card-bg: var(--color-surface);
    --border-color: var(--color-border);
    --text-primary: var(--color-text);
    --text-secondary: var(--color-text-secondary);
    --primary-color: var(--color-primary);
    --secondary-color: var(--color-secondary);
    --success-color: var(--color-success);
    --error-color: var(--color-error);

    /* Typography */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-heading: 'DM Sans', 'Helvetica Neue', sans-serif;
    --font-body: 'Lora', Georgia, serif;
    --font-code: 'JetBrains Mono', 'Fira Code', monospace;
    --font-sans: var(--font-body);

    /* Spacing */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;
    --space-24: 96px;
    --space-32: 128px;

    /* Radius */
    --radius-xs: 4px;
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.07);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.09);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.11);
    --shadow-xl: 0 16px 64px rgba(0, 0, 0, 0.14);

    /* Transitions */
    --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-enter: cubic-bezier(0, 0, 0.2, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration-fast: 100ms;
    --duration-base: 200ms;
    --duration-slow: 300ms;
}

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

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.65;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Header */
header {
    background: var(--color-header-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 20px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

nav a {
    font-weight: 500;
    font-size: 15px;
}

.cart-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.cart-count {
    position: absolute;
    top: -10px;
    right: -12px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 8px var(--primary-glow);
}

/* Shop Section / Main */
main {
    flex: 1;
    padding: 60px 0;
}

.hero {
    text-align: center;
    margin-bottom: 60px;
}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.hero p {
    color: var(--text-secondary);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--card-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-card-border-hover);
    box-shadow: 0 12px 30px var(--color-card-shadow-hover);
}

.product-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: #1e293b;
    border-bottom: 1px solid var(--border-color);
}

.product-details {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.product-desc {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 20px;
    flex: 1;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.product-price {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
}

.btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.25);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(139, 92, 246, 0.4);
    opacity: 0.95;
}

.btn:active {
    transform: translateY(0);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    box-shadow: none;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: none;
    border-color: rgba(255, 255, 255, 0.2);
}

/* Cart Page */
.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
}

.cart-table th,
.cart-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.cart-table th {
    color: var(--text-secondary);
    font-weight: 600;
}

.cart-item-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-item-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.qty-input {
    width: 60px;
    padding: 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: white;
    text-align: center;
}

.btn-remove {
    background: transparent;
    color: var(--error-color);
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.cart-summary {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
}

.cart-summary h3 {
    font-size: 24px;
}

/* Checkout Form styling */
.checkout-layout {
    display: grid;
    grid-template-columns: 2fr 1.2fr;
    gap: 40px;
    margin-top: 40px;
}

.checkout-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--color-surface);
    border: 1.5px solid var(--color-border);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 16px;
    transition: border 200ms var(--ease-standard), box-shadow 200ms var(--ease-standard);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(42, 107, 114, 0.15);
}

textarea.form-control {
    height: auto;
    resize: vertical;
}

.summary-list {
    list-style: none;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

/* Footer */
footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 80px;
}

/* Notifications / Alerts */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #10b981;
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
    z-index: 10000;
    display: none;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

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

    /* ==========================================
   E-COMMERCE HIGH FIDELITY PREMIUM STYLING
   ========================================== */

    /* Glass Utility Cladding */
    .glass {
        background: var(--card-bg);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-lg);
        padding: 24px;
        box-shadow: var(--shadow-sm);
        transition: box-shadow 250ms var(--ease-standard);
    }

    .glass:hover {
        box-shadow: var(--shadow-md);
    }

    /* Glass Header Styling */
    .glass-header {
        background: var(--color-header-bg);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--border-color);
        position: sticky;
        top: 0;
        z-index: 1000;
        padding: 15px 0;
    }

    .logo-highlight {
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        font-weight: 900;
    }

    .header-search-container {
        flex: 1;
        max-width: 400px;
        margin: 0 40px;
    }

    .header-search-form {
        display: flex;
        position: relative;
        width: 100%;
    }

    .header-search-form input {
        width: 100%;
        padding: 10px 45px 10px 18px;
        border-radius: 20px;
        background: var(--bg-secondary);
        border: 1px solid var(--border-color);
        color: var(--text-primary);
        font-size: 14px;
        outline: none;
        transition: all 0.3s ease;
    }

    .header-search-form input:focus {
        background: var(--card-bg);
        border-color: var(--primary-color);
        box-shadow: 0 0 10px var(--primary-glow);
    }

    .header-search-form button {
        position: absolute;
        right: 5px;
        top: 50%;
        transform: translateY(-50%);
        background: transparent;
        border: none;
        color: var(--text-secondary);
        cursor: pointer;
        padding: 8px;
    }

    .header-search-form button:hover {
        color: var(--primary-color);
    }

    /* Badges & Icon Counters */
    .badge {
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
        color: white;
        font-size: 11px;
        font-weight: 700;
        padding: 2px 7px;
        border-radius: 10px;
        margin-left: 5px;
        display: inline-block;
        vertical-align: middle;
        box-shadow: 0 0 10px var(--primary-glow);
    }

    .wishlist-icon-wrapper,
    .cart-icon-wrapper {
        display: flex;
        align-items: center;
        color: var(--text-secondary);
        transition: color 0.3s;
    }

    .wishlist-icon-wrapper:hover,
    .cart-icon-wrapper:hover {
        color: var(--text-primary);
    }

    /* Home Hero Slider */
    .hero-slider {
        position: relative;
        height: 520px;
        overflow: hidden;
        margin-bottom: 60px;
        border-bottom: 1px solid var(--border-color);
    }

    .slider-wrapper {
        width: 100%;
        height: 100%;
        position: relative;
    }

    .slide {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        visibility: hidden;
        background-size: cover;
        background-position: center;
        transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
        display: flex;
        align-items: center;
        z-index: 1;
    }

    .slide.active {
        opacity: 1;
        visibility: visible;
        z-index: 2;
    }

    .slide-content {
        max-width: 650px;
        z-index: 10;
    }

    .slide-tag {
        font-size: 12px;
        font-weight: 800;
        letter-spacing: 2px;
        color: var(--secondary-color);
        background: rgba(236, 72, 153, 0.1);
        padding: 4px 10px;
        border-radius: 4px;
        display: inline-block;
        margin-bottom: 20px;
    }

    .slide-title {
        font-size: 54px;
        font-weight: 900;
        line-height: 1.1;
        margin-bottom: 20px;
        letter-spacing: -1.5px;
        text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    }

    .slide-desc {
        font-size: 18px;
        color: var(--text-secondary);
        margin-bottom: 30px;
        text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    }

    .slide-actions {
        display: flex;
        gap: 15px;
    }

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

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

    .slider-dots .dot.active {
        background: var(--primary-color);
        box-shadow: 0 0 10px var(--primary-glow);
    }

    /* Category grid */
    .section-header {
        text-align: center;
        margin-bottom: 40px;
    }

    .section-header h2 {
        font-size: 32px;
        font-weight: 800;
        letter-spacing: -0.5px;
        margin-bottom: 10px;
    }

    .section-header p {
        color: var(--text-secondary);
        font-size: 16px;
    }

    .category-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
        margin-bottom: 60px;
    }

    .category-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        transition: all 0.3s ease;
        cursor: pointer;
    }

    .category-card:hover {
        transform: translateY(-5px);
        border-color: rgba(139, 92, 246, 0.3);
        box-shadow: 0 10px 25px rgba(139, 92, 246, 0.15);
    }

    .category-icon {
        font-size: 36px;
        margin-bottom: 15px;
    }

    .category-card h3 {
        font-size: 18px;
        font-weight: 700;
        margin-bottom: 5px;
    }

    .category-meta {
        font-size: 12px;
        color: var(--text-secondary);
    }

    /* High Fidelity Product Cards */
    .wpec-wishlist-btn {
        position: absolute;
        top: 15px;
        right: 15px;
        background: rgba(15, 23, 42, 0.6);
        border: 1px solid var(--border-color);
        color: white;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 10;
        transition: all 0.3s ease;
    }

    .wpec-wishlist-btn:hover {
        background: rgba(239, 68, 68, 0.2);
        border-color: var(--error-color);
        color: var(--error-color);
    }

    .wpec-wishlist-btn.active {
        background: rgba(239, 68, 68, 0.2);
        border-color: var(--error-color);
        color: var(--error-color);
    }

    .wpec-wishlist-btn.active svg {
        fill: var(--error-color);
    }

    .product-meta-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 8px;
    }

    .product-brand {
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: var(--secondary-color);
    }

    .product-rating {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        font-size: 12px;
        font-weight: 600;
        color: var(--text-primary);
    }

    /* Buttons and Global Tokens */
    .wpec-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-family: var(--font-heading);
        font-weight: 600;
        font-size: 15px;
        padding: 12px 24px;
        border-radius: var(--radius-md);
        border: none;
        cursor: pointer;
        transition: background 200ms ease, transform 100ms ease, box-shadow 200ms ease;
        text-align: center;
    }

    .wpec-btn:active {
        transform: scale(0.98);
    }

    .wpec-btn-primary {
        background: var(--color-primary);
        color: white;
    }

    .wpec-btn-primary:hover {
        background: var(--color-primary-hover);
        color: white;
    }

    .wpec-btn-secondary {
        background: transparent;
        border: 1.5px solid var(--color-primary);
        color: var(--color-primary);
    }

    .wpec-btn-secondary:hover {
        background: var(--color-accent-light);
        color: var(--color-primary-hover);
        border-color: var(--color-primary-hover);
    }

    /* Promo Banner */
    .promo-banner-section {
        margin: 80px auto;
    }

    .promo-banner {
        display: grid;
        grid-template-columns: 1.2fr 1fr;
        align-items: center;
        gap: 40px;
        padding: 40px 60px;
        overflow: hidden;
    }

    .promo-content h2 {
        font-size: 36px;
        font-weight: 800;
        margin-bottom: 15px;
        letter-spacing: -0.5px;
    }

    .promo-content p {
        color: var(--text-secondary);
        font-size: 16px;
        margin-bottom: 25px;
        line-height: 1.7;
    }

    .promo-img {
        width: 100%;
        height: 250px;
        object-fit: cover;
        border-radius: 12px;
        border: 1px solid var(--border-color);
    }

    /* PLP Filter Sidebar and Layout */
    .plp-layout {
        display: grid;
        grid-template-columns: 260px 1fr;
        gap: 40px;
    }

    .filter-sidebar {
        position: sticky;
        top: 100px;
        height: fit-content;
    }

    .filter-group {
        margin-bottom: 30px;
        padding-bottom: 20px;
        border-bottom: 1px solid var(--border-color);
    }

    .filter-group h4 {
        font-size: 15px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-bottom: 15px;
        color: var(--text-primary);
    }

    .filter-list {
        list-style: none;
    }

    .filter-list li {
        margin-bottom: 10px;
    }

    .filter-checkbox {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 14px;
        color: var(--text-secondary);
        cursor: pointer;
        transition: color 0.3s;
    }

    .filter-checkbox:hover {
        color: var(--text-primary);
    }

    .filter-checkbox input[type="checkbox"] {
        accent-color: var(--primary-color);
    }

    .plp-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 30px;
    }

    .plp-header h1 {
        font-size: 28px;
        font-weight: 800;
    }

    .plp-controls {
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .sort-select {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid var(--border-color);
        color: white;
        padding: 8px 16px;
        border-radius: 8px;
        outline: none;
        cursor: pointer;
    }

    /* Pagination */
    .pagination {
        display: flex;
        justify-content: center;
        gap: 10px;
        margin-top: 50px;
    }

    .page-number {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 8px;
        border: 1px solid var(--border-color);
        color: var(--text-secondary);
        font-weight: 600;
        transition: all 0.3s;
    }

    .page-number:hover,
    .page-number.active {
        background: var(--primary-color);
        color: white;
        border-color: var(--primary-color);
        box-shadow: 0 4px 10px var(--primary-glow);
    }

    /* PDP (Product Detail Page) Layout */
    .pdp-layout {
        display: grid;
        grid-template-columns: 1.1fr 1fr;
        gap: 50px;
        align-items: start;
    }

    .pdp-gallery {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .pdp-main-image {
        width: 100%;
        height: 450px;
        object-fit: cover;
        border-radius: 16px;
        border: 1px solid var(--border-color);
    }

    .pdp-thumbnails {
        display: flex;
        gap: 12px;
    }

    .pdp-thumb {
        width: 80px;
        height: 80px;
        object-fit: cover;
        border-radius: 8px;
        border: 1.5px solid transparent;
        cursor: pointer;
        transition: border 0.3s;
    }

    .pdp-thumb.active,
    .pdp-thumb:hover {
        border-color: var(--primary-color);
    }

    .pdp-brand {
        font-size: 14px;
        font-weight: 700;
        color: var(--secondary-color);
        text-transform: uppercase;
        letter-spacing: 1.5px;
        margin-bottom: 10px;
    }

    .pdp-title {
        font-size: 38px;
        font-weight: 800;
        letter-spacing: -0.5px;
        line-height: 1.2;
        margin-bottom: 15px;
    }

    .pdp-rating-row {
        display: flex;
        align-items: center;
        gap: 15px;
        margin-bottom: 25px;
        padding-bottom: 20px;
        border-bottom: 1px solid var(--border-color);
    }

    .pdp-rating-stars {
        color: #facc15;
        display: flex;
        gap: 4px;
    }

    .pdp-price {
        font-size: 32px;
        font-weight: 900;
        margin-bottom: 25px;
    }

    .pdp-buy-box {
        margin-top: 30px;
        padding: 24px;
        border-radius: 12px;
        border: 1px solid var(--border-color);
    }

    .stock-status {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        font-size: 14px;
        font-weight: 600;
        margin-bottom: 20px;
    }

    .stock-indicator {
        width: 8px;
        height: 8px;
        border-radius: 50%;
    }

    .stock-in {
        background-color: var(--success-color);
    }

    .stock-out {
        background-color: var(--error-color);
    }

    .qty-selector {
        display: flex;
        align-items: center;
        gap: 15px;
        margin-bottom: 25px;
    }

    .qty-btn {
        width: 36px;
        height: 36px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid var(--border-color);
        border-radius: 6px;
        color: white;
        cursor: pointer;
        font-weight: bold;
    }

    .pdp-actions {
        display: flex;
        gap: 15px;
    }

    .pdp-actions button {
        flex: 1;
    }

    /* Specification Accordion */
    .pdp-tabs {
        margin-top: 50px;
    }

    .tab-headers {
        display: flex;
        gap: 30px;
        border-bottom: 1px solid var(--border-color);
        margin-bottom: 25px;
    }

    .tab-btn {
        background: transparent;
        border: none;
        color: var(--text-secondary);
        font-size: 16px;
        font-weight: 700;
        padding-bottom: 12px;
        cursor: pointer;
        position: relative;
    }

    .tab-btn.active {
        color: var(--text-primary);
    }

    .tab-btn.active::after {
        content: '';
        position: absolute;
        bottom: -1px;
        left: 0;
        width: 100%;
        height: 2px;
        background: var(--primary-color);
    }

    .tab-panel {
        display: none;
    }

    .tab-panel.active {
        display: block;
    }

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

    .spec-table td {
        padding: 12px;
        border-bottom: 1px solid var(--border-color);
        font-size: 14px;
    }

    .spec-table td.spec-label {
        font-weight: 600;
        color: var(--text-secondary);
        width: 30%;
    }

    /* Reviews List & Rating form */
    .reviews-grid {
        display: grid;
        grid-template-columns: 1.2fr 1fr;
        gap: 40px;
    }

    .review-item {
        border-bottom: 1px solid var(--border-color);
        padding: 20px 0;
    }

    .review-header {
        display: flex;
        justify-content: space-between;
        margin-bottom: 10px;
    }

    .review-author {
        font-weight: 700;
    }

    .review-stars {
        color: #facc15;
    }

    .review-comment {
        color: var(--text-secondary);
        font-size: 14px;
    }

    .rating-form {
        padding: 24px;
        background: rgba(255, 255, 255, 0.02);
        border-radius: 12px;
        border: 1px solid var(--border-color);
    }

    .rating-input-row {
        display: flex;
        gap: 10px;
        margin-bottom: 15px;
    }

    .rating-star-btn {
        background: transparent;
        border: none;
        font-size: 24px;
        color: var(--text-secondary);
        cursor: pointer;
    }

    .rating-star-btn.active,
    .rating-star-btn:hover {
        color: #facc15;
    }

    /* Search results query tag feedback */
    .search-meta {
        margin-bottom: 30px;
        font-size: 16px;
        color: var(--text-secondary);
    }

    .query-tag {
        color: var(--secondary-color);
        font-weight: bold;
    }

    .empty-search-box {
        text-align: center;
        padding: 80px 40px;
    }

    .empty-search-box h2 {
        font-size: 24px;
        margin-bottom: 15px;
    }

    /* Checkout Step Funnel (Accordion) */
    .checkout-steps {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .checkout-step {
        border-bottom: none;
    }

    .step-header {
        display: flex;
        align-items: center;
        gap: 15px;
        cursor: pointer;
        padding: 18px 24px;
        background: rgba(255, 255, 255, 0.02);
        border-radius: 12px;
        border: 1px solid var(--border-color);
    }

    .step-number {
        width: 28px;
        height: 28px;
        border-radius: 50%;
        background: var(--primary-color);
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
        font-size: 13px;
    }

    .step-title {
        font-size: 16px;
        font-weight: 700;
    }

    .step-content {
        display: none;
        padding: 24px;
        border-top: none;
    }

    .step-content.active {
        display: block;
    }

    /* Mock Stripe Credit card iframe styling */
    .stripe-iframe-mock {
        border: 1px solid var(--border-color);
        border-radius: 8px;
        padding: 16px;
        background: rgba(15, 23, 42, 0.8);
        margin-top: 15px;
    }

    .cc-row {
        display: grid;
        grid-template-columns: 2fr 1fr 1fr;
        gap: 15px;
    }

    /* Order Confirmation Timeline */
    .success-card {
        text-align: center;
        max-width: 600px;
        margin: 50px auto;
    }

    .success-icon {
        font-size: 64px;
        color: var(--success-color);
        margin-bottom: 25px;
    }

    .delivery-timeline {
        margin-top: 40px;
        padding: 24px;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid var(--border-color);
    }

    .timeline {
        display: flex;
        justify-content: space-between;
        position: relative;
        margin-top: 25px;
    }

    .timeline::after {
        content: '';
        position: absolute;
        top: 15px;
        left: 0;
        width: 100%;
        height: 4px;
        background: rgba(255, 255, 255, 0.08);
        z-index: 1;
    }

    .timeline-progress {
        position: absolute;
        top: 15px;
        left: 0;
        width: 33%;
        height: 4px;
        background: var(--success-color);
        z-index: 2;
        transition: width 1s;
    }

    .timeline-step {
        display: flex;
        flex-direction: column;
        align-items: center;
        z-index: 10;
    }

    .timeline-dot {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: var(--bg-secondary);
        border: 3px solid var(--border-color);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        margin-bottom: 10px;
        transition: all 0.3s;
    }

    .timeline-step.active .timeline-dot {
        border-color: var(--success-color);
        color: var(--success-color);
    }

    .timeline-label {
        font-size: 12px;
        font-weight: 600;
        color: var(--text-secondary);
    }

    /* Auth Pages Login/Signup Grid */
    .auth-container {
        max-width: 480px;
        margin: 40px auto;
    }

    .auth-tabs {
        display: flex;
        border-bottom: 1px solid var(--border-color);
        margin-bottom: 30px;
    }

    .auth-tab-btn {
        flex: 1;
        text-align: center;
        padding: 15px;
        font-weight: 700;
        color: var(--text-secondary);
        cursor: pointer;
        transition: color 0.3s;
    }

    .auth-tab-btn.active {
        color: var(--text-primary);
        border-bottom: 2px solid var(--primary-color);
    }

    .auth-form-panel {
        display: none;
    }

    .auth-form-panel.active {
        display: block;
    }

    .oauth-options {
        margin-top: 35px;
        text-align: center;
        border-top: 1px solid var(--border-color);
        padding-top: 25px;
    }

    .oauth-btn {
        display: inline-flex;
        align-items: center;
        gap: 12px;
        width: 100%;
        padding: 12px;
        border-radius: 8px;
        border: 1px solid var(--border-color);
        background: rgba(255, 255, 255, 0.03);
        color: white;
        cursor: pointer;
        font-weight: 600;
        margin-top: 12px;
        justify-content: center;
        transition: background 0.3s;
    }

    .oauth-btn:hover {
        background: rgba(255, 255, 255, 0.08);
    }

    /* Dashboard Hub Grid */
    .dashboard-layout {
        display: grid;
        grid-template-columns: 240px 1fr;
        gap: 40px;
    }

    .dashboard-nav {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .db-tab-btn {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 18px;
        border-radius: 8px;
        color: var(--text-secondary);
        font-weight: 600;
        transition: all 0.3s;
        cursor: pointer;
    }

    .db-tab-btn:hover,
    .db-tab-btn.active {
        background: rgba(139, 92, 246, 0.1);
        color: var(--text-primary);
    }

    .dashboard-content-panel {
        display: none;
    }

    .dashboard-content-panel.active {
        display: block;
    }

    /* Addresses and Orders manager lists */
    .address-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .address-card {
        border-radius: 12px;
        border: 1px solid var(--border-color);
        padding: 20px;
        background: rgba(255, 255, 255, 0.01);
    }

    .address-actions {
        display: flex;
        gap: 12px;
        margin-top: 15px;
    }

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

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

    .orders-table th {
        color: var(--text-secondary);
    }

    /* FAQ Accordion Lists */
    .faq-accordion {
        display: flex;
        flex-direction: column;
        gap: 15px;
        margin-top: 30px;
    }

    .faq-item {
        border-radius: 10px;
        border: 1px solid var(--border-color);
        overflow: hidden;
    }

    .faq-question {
        padding: 18px 24px;
        background: rgba(255, 255, 255, 0.02);
        cursor: pointer;
        font-weight: 700;
        display: flex;
        justify-content: space-between;
    }

    .faq-answer {
        padding: 20px 24px;
        display: none;
        color: var(--text-secondary);
        font-size: 14px;
        border-top: 1px solid var(--border-color);
        line-height: 1.7;
    }

    /* Glass footer directories styling */
    .glass-footer {
        background: var(--bg-secondary);
        border-top: 1px solid var(--border-color);
        padding: 60px 0 20px 0;
        margin-top: 80px;
    }

    .footer-grid {
        display: grid;
        grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
        gap: 40px;
        margin-bottom: 40px;
    }

    .footer-brand .footer-logo {
        font-size: 24px;
        font-weight: 800;
        margin-bottom: 15px;
        display: inline-block;
    }

    .brand-tagline {
        font-size: 14px;
        color: var(--text-secondary);
        line-height: 1.6;
        margin-bottom: 20px;
    }

    .social-links {
        display: flex;
        gap: 12px;
    }

    .social-links a {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid var(--border-color);
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--text-secondary);
        transition: all 0.3s;
    }

    .social-links a:hover {
        background: var(--primary-color);
        color: white;
        box-shadow: 0 0 10px var(--primary-glow);
    }

    .footer-links-col h3,
    .footer-newsletter h3 {
        font-size: 16px;
        font-weight: 700;
        margin-bottom: 20px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .footer-links-col ul {
        list-style: none;
    }

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

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

    .footer-links-col ul a:hover {
        color: var(--text-primary);
    }

    .footer-newsletter p {
        font-size: 14px;
        color: var(--text-secondary);
        margin-bottom: 20px;
    }

    .newsletter-form {
        display: flex;
        gap: 10px;
    }

    .newsletter-form input {
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid var(--border-color);
        padding: 10px 14px;
        border-radius: 8px;
        color: white;
        font-size: 14px;
        outline: none;
        flex: 1;
    }

    .newsletter-form input:focus {
        border-color: var(--primary-color);
    }

    .footer-bottom {
        border-top: 1px solid var(--border-color);
        padding-top: 20px;
        font-size: 13px;
        color: rgba(255, 255, 255, 0.3);
    }

    .footer-bottom-flex {
        display: flex;
        justify-content: space-between;
    }

    .engine-tag {
        font-family: monospace;
    }

    /* Responsive Overrides */
    @media (max-width: 991px) {
        .pdp-layout {
            grid-template-columns: 1fr;
        }

        .plp-layout {
            grid-template-columns: 1fr;
        }

        .dashboard-layout {
            grid-template-columns: 1fr;
        }

        .checkout-layout {
            grid-template-columns: 1fr;
        }

        .promo-banner {
            grid-template-columns: 1fr;
            padding: 30px;
        }

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

    @media (max-width: 767px) {
        .header-container {
            flex-direction: column;
            gap: 15px;
        }

        .header-search-container {
            margin: 10px 0;
            max-width: 100%;
            width: 100%;
        }

        .slide-title {
            font-size: 36px;
        }

        .slide-content {
            text-align: center;
        }

        .slide-actions {
            justify-content: center;
        }

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

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

/* ==========================================
   THEME SWITCHER STYLING
   ========================================== */
.theme-switcher-item {
    position: relative;
    display: inline-block;
}

.theme-toggle-btn {
    background: var(--color-surface-alt);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
}

.theme-toggle-btn:hover {
    background: var(--color-hover-bg);
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.theme-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--color-surface);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: none;
    flex-direction: column;
    min-width: 140px;
    padding: 8px;
    z-index: 10000;
    backdrop-filter: blur(12px);
}

.theme-dropdown.show {
    display: flex;
    animation: themeFadeIn 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.theme-dropdown button {
    background: transparent;
    border: none;
    color: var(--text-primary);
    padding: 8px 12px;
    text-align: left;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.theme-dropdown button:hover {
    background: var(--color-hover-bg);
    color: var(--primary-color);
    padding-left: 16px;
}

.theme-dropdown button.active {
    background: var(--color-accent-light);
    color: var(--primary-color);
    font-weight: 700;
}