/* Products Page Specific Styles */

:root {
    --sidebar-width: 280px;
    --card-bg-dark: #120e26;
    /* Darker card bg */
    --accent-purple: #8b5cf6;
    --accent-pink: #d946ef;
    --text-muted: #94a3b8;
}

body {
    background-color: #030014;
    /* Match main background */
    color: #fff;
    font-family: 'Outfit', sans-serif;
}

/* Products Hero Section */
/* Products Hero Section */
.products-hero {
    position: relative;
    padding-top: 150px;
    padding-bottom: 80px;
    text-align: center;
    overflow: hidden;
}

/* Breadcrumb: Left Aligned Match */
.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin-bottom: 50px;
    color: #94a3b8;
    font-size: 0.95rem;
    font-weight: 500;
}

.breadcrumb a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #fff;
}

.breadcrumb .separator {
    color: #475569;
    font-size: 0.8rem;
}

.breadcrumb .current {
    color: #fff;
    font-weight: 600;
}

/* Hero Content Standardized */
.hero-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 25px;
}

.hero-content p {
    color: #cbd5e1;
    font-size: 1.15rem;
    line-height: 1.7;
    max-width: 650px;
    margin: 0 auto 40px;
    font-weight: 300;
}

.gradient-text {
    background: linear-gradient(135deg, #a855f7 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-glow {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 100%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

/* Search Bar */
.search-container {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 8px 10px 8px 25px;
    backdrop-filter: blur(10px);
    width: 100%;
    max-width: 600px;
    transition: all 0.3s ease;
}

.search-container:focus-within {
    border-color: var(--accent-purple);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
}

.search-icon {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-right: 15px;
}

.search-container input {
    background: transparent;
    border: none;
    color: #fff;
    width: 100%;
    font-size: 1rem;
    outline: none;
}

.btn-search {
    background: linear-gradient(135deg, var(--accent-purple), #7c3aed);
    color: white;
    border: none;
    border-radius: 40px;
    padding: 12px 30px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-search:hover {
    transform: scale(1.05);
}

/* Layout Grid */
.products-layout {
    display: flex;
    gap: 40px;
    padding-bottom: 80px;
    position: relative;
    z-index: 1;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
}

.filter-group {
    margin-bottom: 40px;
}

.filter-group h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

/* Custom Checkbox */
.custom-checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: color 0.2s;
    user-select: none;
}

.custom-checkbox:hover {
    color: #fff;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    height: 20px;
    width: 20px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-right: 12px;
    position: relative;
    transition: all 0.2s;
}

.custom-checkbox input:checked~.checkmark {
    background-color: var(--accent-purple);
    border-color: var(--accent-purple);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.custom-checkbox input:checked~.checkmark:after {
    display: block;
}

/* Custom Radio */
.custom-radio {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 0.95rem;
    user-select: none;
}

.custom-radio:hover {
    color: #fff;
}

.custom-radio input {
    position: absolute;
    opacity: 0;
}

.radio-mark {
    height: 20px;
    width: 20px;
    background-color: transparent;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-right: 12px;
    position: relative;
    transition: all 0.2s;
}

.custom-radio input:checked~.radio-mark {
    border-color: var(--accent-purple);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.4);
}

.radio-mark:after {
    content: "";
    position: absolute;
    display: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-purple);
}

.custom-radio input:checked~.radio-mark:after {
    display: block;
}

/* Products Content Area */
.products-content {
    flex-grow: 1;
}

.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.tags {
    display: flex;
    gap: 10px;
}

.tag-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.tag-btn:hover,
.tag-btn.active {
    background: var(--accent-purple);
    border-color: var(--accent-purple);
    color: white;
}

.sort-dropdown {
    display: flex;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.sort-dropdown select {
    background: #0f0a1f;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    margin-left: 10px;
    outline: none;
    cursor: pointer;
}

/* Store Grid */
.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

/* Store Card */
.store-card {
    background: var(--card-bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.store-card:hover {
    transform: translateY(-8px);
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.6);
}

.card-media {
    position: relative;
    height: 250px;
    background: #1a162e;
    overflow: hidden;
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.store-card:hover .card-media img {
    transform: scale(1.1);
}

.status-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.status-badge.new {
    background: var(--accent-purple);
    color: white;
}

.status-badge.sale {
    background: #ef4444;
    color: white;
}

.wishlist-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 2;
}

.wishlist-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--accent-pink);
    transform: scale(1.1);
}

.card-details {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-details h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.card-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 15px;
}

.price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
}

.price-block {
    display: flex;
    flex-direction: column;
}

.old-price {
    font-size: 0.85rem;
    text-decoration: line-through;
    color: #64748b;
}

.actions {
    display: flex;
    gap: 8px;
}

.btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid rgba(139, 92, 246, 0.3);
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-icon:hover {
    background: var(--accent-purple);
    color: white;
}

.btn-primary-sm {
    background: linear-gradient(135deg, var(--accent-purple), #7c3aed);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(139, 92, 246, 0.3);
    transition: transform 0.2s;
}

.btn-primary-sm:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(139, 92, 246, 0.5);
}

/* --- MOBILE RESPONSIVE UPDATES (Matching Index Design) --- */
@media (max-width: 768px) {

    /* 1. Header & Navbar */
    .header {
        background: rgba(15, 23, 42, 0.95) !important;
        box-shadow: none !important;
        padding-top: 0;
        backdrop-filter: blur(10px);
        position: relative;
        z-index: 1000;
    }

    .header .container {
        padding: 0 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    /* Unhide Navbar Wrapper */
    .navbar {
        display: block !important;
        position: static;
        border: none;
        background: transparent;
        pointer-events: auto;
    }

    /* 2. Hamburger Menu (Rebuilt) */
    .hamburger {
        display: flex !important;
        align-items: center;
        justify-content: center;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        width: 45px;
        height: 45px;
        padding: 5px;
        color: #fff;
        font-size: 1.6rem;
        cursor: pointer;
        z-index: 9999;
        pointer-events: auto;
        border-radius: 8px;
        background: transparent;
    }

    /* 3. Mobile Menu List (Full Screen Opaque) */
    .nav-list {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        padding-top: 80px;
        left: 0;
        width: 100%;
        height: 100vh;
        background: #020617;
        padding-left: 20px;
        padding-right: 20px;
        gap: 25px;
        border-bottom: none;
        z-index: 9998 !important;
        overflow-y: auto;
        visibility: hidden;
        opacity: 0;
        transform: translateY(-20px);
        transition: all 0.3s ease-in-out;
    }

    .nav-list.active {
        visibility: visible !important;
        opacity: 1 !important;
        transform: translateY(0) !important;
    }

    .nav-link {
        pointer-events: auto;
        font-size: 1.5rem;
        padding: 15px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    /* 4. Products Hero Video (The Arc) */
    .product-hero-video {
        display: block !important;
        position: absolute;
        width: 260%;
        max-width: none;
        height: auto;
        /* Match Index Page Setting */
        top: -335px;
        left: 50%;
        transform: translateX(-50%) rotate(180deg);
        opacity: 1;
        mix-blend-mode: screen;
        z-index: 0;
        pointer-events: none;
    }

    /* 5. Hero Layout Adjustments */
    .products-hero {
        padding-top: 180px;
        /* Push content below the arc */
        padding-bottom: 50px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
        /* Smaller for mobile */
    }

    .breadcrumb {
        justify-content: center;
        /* Center breadcrumb on mobile */
    }
}

/* Responsive */
@media (max-width: 900px) {
    .products-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 20px;
        margin-bottom: 20px;
    }

    .filter-group {
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
        margin-bottom: 20px;
        align-items: center;
    }

    .filter-group h3 {
        width: 100%;
        margin-bottom: 10px;
    }

    .custom-checkbox,
    .custom-radio {
        margin-right: 15px;
    }

    .hero-center h1 {
        font-size: 2.5rem;
    }
}