/* ===== CSS Variables ===== */
:root {
    /* Colors */
    --primary-bg: #0a0a0a;
    --secondary-bg: #1a1a1a;
    --card-bg: #151515;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --accent-1: #0037ff;
    --accent-2: #f80f07;
    --accent-3: #00ff88;
    --border-color: #333333;
    --success: #00ff88;
    --warning: #ffaa00;
    --danger: #ff3366;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--accent-1) 0%, var(--accent-2) 100%);
    --gradient-secondary: linear-gradient(135deg, #b00904 0%, #051e7a 100%);
    --gradient-success: linear-gradient(135deg, var(--accent-3) 0%, #00cc66 100%);
    
    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-secondary: 'Orbitron', sans-serif;
    
    /* Spacing */
    --section-padding: 3rem 2rem;
    --container-max-width: 1400px;
    
    /* Effects */
    --glow-primary: 0 0 30px rgba(0, 55, 255, 0.5);
    --glow-secondary: 0 0 30px rgba(248, 15, 7, 0.5);
}

/* ===== Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
}
/* ===== Loading Screen ===== */
.loading-screen {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1rem;
}

.loading-content {
    position: relative;
    text-align: center;
    width: 100%;
    max-width: 450px;
}


.loading-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    text-align: center;
}

.loading-logo img {
    width: 100%;
    max-width: 350px;
    height: auto;
    object-fit: contain;
    margin-bottom: 1.5rem;
    mask-image: linear-gradient(to right, black var(--reveal, 0%), transparent 0%);
    -webkit-mask-image: linear-gradient(to right, black var(--reveal, 0%), transparent 0%);
    /* Show whole logo faintly first */
    opacity: 0.3; 
    filter: brightness(0.7);

    /* Mask setup to reveal full brightness area */
    --reveal: 0%;
    -webkit-mask-image: linear-gradient(to right, #fff var(--reveal), transparent var(--reveal));
    mask-image: linear-gradient(to right, #fff var(--reveal), transparent var(--reveal));
}

.loading-logo img.full-visible {
    /* When finished loading */
    opacity: 1;
    filter: brightness(1);
}

.loading-logo img.glow {
    filter: brightness(1) drop-shadow(0 0 15px rgba(17, 0, 255, 0.9))
                       drop-shadow(0 0 35px rgba(255, 72, 0, 0.8))
                       drop-shadow(0 0 20px rgba(255, 0, 0, 0.7));
}




.loading-bar {
    width: 100%;
    max-width: 300px;
    height: 6px;
    background: rgba(255,255,255,0.15);
    border-radius: 3px;
    margin: 0 auto 1rem;
    overflow: hidden;
}

.loading-progress {
    height: 100%;
    background: var(--gradient-primary);
    width: 0%;
    transition: width 0.3s ease;
}

.loading-screen p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Fade-out animation */
.loading-screen.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* ✅ Mobile Optimization */
@media (max-width: 400px) {
    .loading-logo {
        max-width: 250px;
    }
    .loading-bar {
        max-width: 220px;
        height: 5px;
    }
    .loading-screen p {
        font-size: 0.85rem;
    }
}

/* ===== Filter Sidebar ===== */
.filter-sidebar {
    position: fixed;
    top: 0;
    left: -400px;
    width: 350px;
    height: 100vh;
    background: var(--secondary-bg);
    border-right: 1px solid var(--border-color);
    z-index: 1000;
    transition: left 0.3s ease;
    overflow-y: auto;
}

.filter-sidebar.active {
    left: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--primary-bg);
    position: sticky;
    top: 0;
    z-index: 10;
}

.sidebar-header h3 {
    font-family: var(--font-secondary);
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.close-sidebar {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.close-sidebar:hover {
    background: rgba(255, 255, 255, 0.1);
}

.sidebar-content {
    padding: 1.5rem;
    padding-bottom: 2rem;
}

/* ===== Main Content ===== */
.main-content {
    transition: margin-left 0.3s ease;
    margin-top: 8%;
}

.main-content.sidebar-open {
    margin-left: 350px;
}

/* ===== Header Styles ===== */
.products-header {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    padding: 2rem 0 1.5rem;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.products-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(0, 55, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(248, 15, 7, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.header-content {
    position: relative;
    z-index: 2;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.filter-toggle {
    background: var(--gradient-primary);
    color: #000;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 55, 255, 0.4);
}

.page-title {
    font-family: var(--font-secondary);
    font-size: 2.5rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    flex: 1;
    margin: 0 2rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.page-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 1.5rem;
}

/* ===== Search Filter ===== */
.search-container {
    position: relative;
    display: flex;
    gap: 0.5rem;
}

.search-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-1);
}

.search-btn {
    background: var(--gradient-primary);
    border: none;
    border-radius: 8px;
    color: #000;
    padding: 0.8rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 55, 255, 0.4);
}

/* ===== Category Buttons ===== */
.category-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.category-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 600;
    text-align: left;
}

.category-btn:hover {
    background: rgba(0, 55, 255, 0.1);
    border-color: var(--accent-1);
    transform: translateX(5px);
}

.category-btn.active {
    background: var(--gradient-primary);
    color: #000;
    border-color: var(--accent-1);
}

/* ===== Subcategory Grid ===== */
.subcategory-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    margin-top: 1rem;
}

.subcategory-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

.subcategory-item:hover {
    background: rgba(0, 55, 255, 0.1);
    border-color: var(--accent-1);
    transform: translateY(-2px);
}

.subcategory-item.active {
    background: var(--gradient-primary);
    color: #000;
    border-color: var(--accent-1);
}

.subcategory-item i {
    font-size: 1.2rem;
    color: var(--accent-1);
}

.subcategory-item.active i {
    color: #000;
}

.subcategory-item span {
    font-size: 0.8rem;
    font-weight: 600;
}

/* ===== Filter Groups ===== */
.filter-group {
    background: rgba(21, 21, 21, 0.8);
    border-radius: 12px;
    padding: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 1.5rem;
}

.filter-group-title {
    font-family: var(--font-secondary);
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group-title i {
    color: var(--accent-1);
}

/* Price Range Slider */
.price-range {
    margin-top: 1rem;
}

.price-inputs {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.price-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    padding: 0.5rem;
    width: 45%;
    text-align: center;
}

.price-slider {
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.price-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: var(--gradient-primary);
    border-radius: 50%;
    cursor: pointer;
}

/* Filter Actions */
.filter-actions {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1rem;
}

.filter-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.filter-btn.primary {
    background: var(--gradient-primary);
    color: #000;
}

.filter-btn.secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Active Filters Display */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
}

.active-filter-tag {
    background: var(--gradient-primary);
    color: #000;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
}

.active-filter-tag i {
    cursor: pointer;
    font-size: 0.7rem;
}

.clear-filters {
    background: rgba(248, 15, 7, 0.2);
    color: var(--accent-2);
    border: 1px solid rgba(248, 15, 7, 0.3);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.clear-filters:hover {
    background: rgba(248, 15, 7, 0.3);
}

/* ===== Products Showcase ===== */
.products-showcase {
    padding: 2rem 0;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

@media(max-width: 768px) {
    .results-header .results-count,.results-header .active-filter-tag {
        display: none;
    }
    .results-header button {
        margin: 1rem 0;
        font-size: 0.6rem;
    }
}


.results-count {
    font-size: 1rem;
    color: var(--text-secondary);
}




/* Category Sections */
.category-section {
    margin-bottom: 4rem;
    display: none;
}

.category-section.active {
    display: block;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.category-title {
    font-family: var(--font-secondary);
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Subcategory Sections */
.subcategory-section {
    margin-bottom: 3rem;
}

.subcategory-title {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding-left: 1rem;
    border-left: 4px solid var(--accent-1);
}

/* Products Swiper Container */
.products-swiper-container {
    position: relative;
    padding: 0 1rem;
}

.products-swiper {
    width: 100%;
    padding: 1rem 0 3rem;
}

.products-swiper .swiper-wrapper {
    align-items: stretch;
}

.products-swiper .swiper-slide {
    height: auto;
    display: flex;
    justify-content: center;
}

/* Swiper Navigation */
.products-swiper .swiper-button-next,
.products-swiper .swiper-button-prev {
    width: 50px;
    height: 50px;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-primary);
    transition: all 0.3s ease;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.products-swiper .swiper-button-next:hover,
.products-swiper .swiper-button-prev:hover {
    background: var(--accent-1);
    border-color: var(--accent-1);
    color: #000;
    transform: translateY(-50%) scale(1.1);
}

.products-swiper .swiper-button-next::after,
.products-swiper .swiper-button-prev::after {
    font-size: 1.2rem;
    font-weight: bold;
}

.products-swiper .swiper-button-prev {
    left: -25px;
}

.products-swiper .swiper-button-next {
    right: -25px;
}

/* Pentagon Card Styles */
.pentagon-card {
    position: relative;
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    clip-path: polygon(
        5% 0%,    /* top left */
        95% 0%,   /* top right */
        100% 5%,  /* right top */
        100% 95%, /* right bottom */
        95% 100%, /* bottom right */
        5% 100%,  /* bottom left */
        0% 95%,   /* left bottom */
        0% 5%     /* left top */
    );
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid transparent;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.pentagon-card::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: linear-gradient(135deg, 
        rgba(0, 55, 255, 0.1) 0%,
        rgba(248, 15, 7, 0.05) 50%,
        rgba(0, 55, 255, 0.1) 100%);
    clip-path: polygon(
        5% 0%,
        95% 0%,
        100% 5%,
        100% 95%,
        95% 100%,
        5% 100%,
        0% 95%,
        0% 5%
    );
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pentagon-card:hover {
    transform: translateY(-10px);
    border: 1px solid;
}

.pentagon-card:hover::before {
    opacity: 1;
}

/* Card Border Elements */
.card-border {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 2;
}

.card-border div {
    position: absolute;
    background: var(--gradient-primary);
    opacity: 0;
    transition: all 0.3s ease;
}

.border-top {
    top: 0;
    left: 5%;
    right: 5%;
    height: 2px;
    transform: scaleX(0);
    transform-origin: left;
}

.border-right {
    top: 5%;
    bottom: 5%;
    right: 0;
    width: 2px;
    transform: scaleY(0);
    transform-origin: top;
}

.border-bottom {
    bottom: 0;
    left: 5%;
    right: 5%;
    height: 2px;
    transform: scaleX(0);
    transform-origin: right;
}

.border-left {
    top: 5%;
    bottom: 5%;
    left: 0;
    width: 2px;
    transform: scaleY(0);
    transform-origin: bottom;
}

/* Corner Elements */
.corner-tl, .corner-tr, .corner-br, .corner-bl {
    width: 15px;
    height: 15px;
    background: var(--gradient-primary);
    clip-path: polygon(0 0, 100% 0, 100% 100%);
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.corner-tl {
    top: 0;
    left: 0;
    clip-path: polygon(0 0, 100% 0, 0 100%);
}

.corner-tr {
    top: 0;
    right: 0;
    clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.corner-br {
    bottom: 0;
    right: 0;
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.corner-bl {
    bottom: 0;
    left: 0;
    clip-path: polygon(0 0, 100% 100%, 0 100%);
}

.pentagon-card:hover .border-top,
.pentagon-card:hover .border-bottom {
    transform: scaleX(1);
    opacity: 1;
}

.pentagon-card:hover .border-left,
.pentagon-card:hover .border-right {
    transform: scaleY(1);
    opacity: 1;
}

.pentagon-card:hover .corner-tl,
.pentagon-card:hover .corner-tr,
.pentagon-card:hover .corner-br,
.pentagon-card:hover .corner-bl {
    transform: scale(1);
    opacity: 1;
}

/* Card Glow Effect */
.card-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, 
        rgb(0, 55, 255) 0%,
        rgba(248, 15, 7, 0.2) 30%,
        transparent 70%);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    filter: blur(20px);
}

.pentagon-card:hover .card-glow {
    opacity: 1;
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.1);
    }
}




.product-image {
    position: relative;
    margin-bottom: 1.5rem;
    height: 150px; /* ✅ FIXED HEIGHT */
    clip-path: polygon(
        5% 0%, 95% 0%, 100% 5%, 100% 95%,
        95% 100%, 5% 100%, 0% 95%, 0% 5%
    );
    overflow: hidden;
}

.image-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.image-container img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity .4s ease-in-out, transform .4s ease;
}

/* Front & back */
.image-container .img-front { opacity: 1; z-index: 2; }
.image-container .img-back { opacity: 0; z-index: 1; }

/* Hover fade */
.pentagon-card:hover .img-front { opacity: 0; }
.pentagon-card:hover .img-back { opacity: 1; }

/* ✅ Final hover expansion */
.pentagon-card:hover .image-container img {
    transform: scale(1.1) rotate(1deg);
}

/* Product Content */
.product-content {
    height: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.product-title {
    font-family: var(--font-secondary);
    font-weight: 700;
    margin-bottom: 0.8rem;
    background: white;
    color: transparent;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Number of lines to display */
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    background-clip:text ;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.7rem;
}

.product-description {
    color: var(--text-secondary);
    font-size: 0.6rem;
    line-height: 1.5;
    max-height: 3.6rem;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}


/*
 * Styles for Product Card Image Hover Gallery
 */


.product-image .image-container .gallery-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Or 'cover', depending on your preference */
    
    /* --- The Transition --- */
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    
    background-color: #000; /* Background for 'contain' */
}

/* The first image (primary) is visible by default */
.product-image .image-container .gallery-image.is-primary,
.product-image .image-container .gallery-image.active {
    opacity: 1;
    z-index: 2; /* Ensure active image is on top */
}




/* Product Features */
.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.feature-tag {
    background: rgba(0, 55, 255, 0.15);
    color: var(--accent-1);
    padding: 0.3rem 0.6rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(0, 55, 255, 0.3);
    clip-path: polygon(
        15% 0%,
        85% 0%,
        100% 15%,
        100% 85%,
        85% 100%,
        15% 100%,
        0% 85%,
        0% 15%
    );
}

/* Product Price */
.product-price {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 0.8rem;
}

.current-price {
    font-size: 0.7rem;
    font-weight: 700;
    color:rgb(128, 141, 190);
    font-family: var(--font-secondary);
    text-shadow: 0 0 10px rgba(0, 55, 255, 0.5);
}

.original-price {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-decoration: line-through;
}

.discount {
    background: rgb(40, 179, 40);
    color: #000;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    margin-left: 0.5rem;
}

/* Delivery Info */
.delivery-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
    color: #00ff00;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.delivery-info i {
    font-size: 0.9rem;
    animation: boltPulse 2s ease-in-out infinite;
}

@keyframes boltPulse {
    0%, 100% {
        transform: scale(1);
        color: #00ff00;
    }
    50% {
        transform: scale(1.2);
        color: var(--accent-1);
    }
}

/* Product Badge */
.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--gradient-primary);
    color: #000;
    padding: 0.4rem 0.8rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 3;
    clip-path: polygon(
        15% 0%,
        85% 0%,
        100% 15%,
        100% 85%,
        85% 100%,
        15% 100%,
        0% 85%,
        0% 15%
    );
    box-shadow: 0 4px 15px rgba(0, 55, 255, 0.3);
}

.product-badge.hot {
    background: linear-gradient(135deg, #ff0000, #ff6b6b);
}

.product-badge.sale {
    background: linear-gradient(135deg, #00ff00, #00cc00);
}

.product-badge.new {
    background: linear-gradient(135deg, #0037ff, #00a2ff);
}

/* Product Rating */
.product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.rating-stars {
    display: flex;
    gap: 0.2rem;
}

.rating-stars i {
    color: #ffd700;
    font-size: 0.8rem;
}

.rating-value {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Product Actions */
.product-actions {
    display: flex;
    gap: 0.8rem;
    margin-top: auto;
}

.action-btn {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding:  0.5rem 0rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.1rem;
    font-size: 0.8rem;
}

.add-to-cart-btn i,.add-to-cart-btn span{
    font-size: 0.8rem;
}

.action-btn.primary {
    background: var(--gradient-primary);
    color: #000;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.action-btn.secondary:hover {
    background: rgba(0, 55, 255, 0.1);
    border-color: var(--accent-1);
}

/* Quick View Modal */
.quick-view-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.quick-view-modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    background: var(--card-bg);
    border: 2px solid var(--accent-1);
    border-radius: 20px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 10001;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10002;
}

.close-modal:hover {
    background: var(--accent-1);
    color: #000;
}

.modal-body {
    padding: 2rem;
}

/* Back Home */
.back-home {
    padding: 2rem 0;
    background: var(--secondary-bg);
    border-top: 1px solid var(--border-color);
    position: relative;
    z-index: 100;
}

.back-home-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    padding: 1rem 2rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
}

.back-home-btn:hover {
    border-color: var(--accent-1);
    color: var(--accent-1);
    transform: translateX(-5px);
}

/* No Results State */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    grid-column: 1 / -1;
}

.no-results-icon {
    font-size: 4rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.no-results h3 {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.no-results p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* ===== Category Products Grid ===== */
.category-products-showcase {
    padding: 2rem 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.load-more-container {
    text-align: center;
    margin: 2rem 0;
}

.load-more-btn {
    background: var(--gradient-primary);
    color: #000;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--glow-primary);
}

.load-more-btn i {
    display: none;
}

.load-more-btn.loading i {
    display: inline-block;
    animation: spin 1s linear infinite;
}

.load-more-btn.loading span {
    opacity: 0.7;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.back-btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.back-btn:hover {
    background: rgba(0, 55, 255, 0.1);
    border-color: var(--accent-1);
    transform: translateX(-5px);
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .filter-sidebar {
        width: 320px;
        left: -320px;
    }
    
    .main-content.sidebar-open {
        margin-left: 320px;
    }
    
    .products-swiper .swiper-button-prev {
        left: -15px;
    }
    
    .products-swiper .swiper-button-next {
        right: -15px;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
        margin: 0 1rem;
    }
    
    .header-top {
        flex-direction: column;
        gap: 1rem;
    }
    
    .filter-toggle {
        align-self: flex-start;
    }
    
    .header-actions {
        align-self: flex-end;
    }
    
    .filter-sidebar {
        width: 100%;
        left: -100%;
    }

    
    .main-content.sidebar-open {
        margin-left: 0;
        transform: translateX(100%);
    }
    
    /* .products-swiper .swiper-button-next,
    .products-swiper .swiper-button-prev {
        display: none;
    } */
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .category-title {
        font-size: 1.5rem;
    }
    
    .subcategory-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .sidebar-content {
        padding: 1rem;
    }
    
    .filter-group {
        padding: 1rem;
    }
    
    .products-swiper-container {
        padding: 0 0.5rem;
    }
    
    .pentagon-card {
        padding: 1rem;
        max-width: 280px;
    }
    
    .category-buttons {
        gap: 0.5rem;
    }
    
    .category-btn {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
}


/* ===== Dynamic Sections ===== */
.dynamic-section {
    margin-bottom: 4rem;
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-count {
    background: var(--gradient-primary);
    color: #000;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-left: 1rem;
}

/* Category Navigation */
.category-nav {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.category-nav-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category-nav-btn:hover {
    background: rgba(0, 55, 255, 0.1);
    color: var(--text-primary);
    border-color: var(--accent-1);
}

.category-nav-btn.active {
    background: var(--gradient-primary);
    color: #000;
    border-color: var(--accent-1);
}

/* View More Button */
.section-header-with-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.view-more-btn {
    background: var(--gradient-primary);
    color: #000;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
}

.view-more-btn:hover {
    transform: translateX(5px);
    box-shadow: var(--glow-primary);
}

.view-more-btn i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.view-more-btn:hover i {
    transform: translateX(3px);
}

/* Section Quick Navigation */
.section-quick-nav {
    position: sticky;
    top: 100px;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    z-index: 100;
    margin-bottom: 2rem;
}

.quick-nav-container {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.5rem 0;
}

.quick-nav-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.quick-nav-item:hover {
    background: rgba(0, 55, 255, 0.1);
    color: var(--text-primary);
    border-color: var(--accent-1);
}

.quick-nav-item.active {
    background: var(--gradient-primary);
    color: #000;
    border-color: var(--accent-1);
}

/* Empty Section State */
.empty-section {
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 2px dashed var(--border-color);
}

.empty-section-icon {
    font-size: 3rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.empty-section h4 {
    font-family: var(--font-secondary);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.empty-section p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Section Progress */
.section-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.progress-bar {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

/* Enhanced Section Headers */
.section-header-enhanced {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.section-title-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.section-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.section-title {
    font-family: var(--font-secondary);
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.section-stats {
    display:none;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-1);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Category Highlight */
.category-highlight {
    position: relative;
    overflow: hidden;
}

/* .category-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
} */

.category-highlight.components::before {
    background: var(--gradient-primary);
}

/* .category-highlight.accessories::before {
    background: linear-gradient(135deg, #00ff88, #00cc66);
} */

.category-highlight.gears::before {
    background: linear-gradient(135deg, #ff3366, #ff0066);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation for Sections */
.section-loading {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.section-loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .section-header-enhanced {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .section-stats {
        align-self: stretch;
        justify-content: space-between;
    }
    
    
    .section-header-with-action {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .subcategory-title{
        font-size: 1.2rem;
    }

   .section-title {
        font-size: 1rem;
    }
    
    .quick-nav-container {
        padding: 0.5rem;
    }
    
    .quick-nav-item {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .category-nav {
        gap: 0.5rem;
    }
    
    .category-nav-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .section-title-group {
        flex-direction: row;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .section-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
   .section-title {
        font-size: 1rem;
    }
    
    .section-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .stat-item {
        text-align: left;
    }
}

/* ===== Filter Sidebar Custom Scrollbar ===== */
.filter-sidebar::-webkit-scrollbar {
    width: 8px;
    background: var(--secondary-bg);
}

.filter-sidebar::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,55,255,0.3);
}

.filter-sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--accent-1);
}

.filter-sidebar {
    scrollbar-width: thin;
    scrollbar-color: var(--accent-1) var(--secondary-bg);
}


/* --- NEW: Back to Top Button --- */
.back-to-top-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 999; /* Below header (1000) and sidebar (1001) */
    
    background: var(--gradient-primary);
    color: #fff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    
    display: flex;
    justify-content: center;
    align-items: center;
    
    font-size: 1.2rem;
    text-decoration: none;
    
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.back-to-top-btn.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top-btn:hover {
    filter: brightness(1.2);
    box-shadow: var(--glow-primary);
    text-decoration: none;
    color: #fff;
}



