/* ===================================================
   69SHOP.IN - REDESIGNED CATEGORY PAGE STYLES
   Modern, elegant design with animations
   =================================================== */

/* ===== RESET SIDEBAR CONFLICTS ===== */
/* Override shop.css sidebar styles for category pages */
.category-page-wrapper .filters-sidebar,
.category-page-wrapper aside,
.category-page-wrapper .shop-sidebar {
    display: none !important;
}

/* Hide any sidebar elements on category pages */
body:has(.category-page-wrapper) .filters-sidebar,
body:has(.category-page-wrapper) .filters-overlay {
    display: none !important;
}

/* ===== SMOOTH SCROLLING ===== */
html {
    scroll-behavior: smooth;
}

/* ===== CATEGORY NAVIGATION ===== */
.category-nav {
    background: linear-gradient(to right, rgba(255,255,255,0.98), rgba(248,250,252,0.98));
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 100px;
    z-index: 90;
    padding: 16px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-nav.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.category-nav-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-nav-inner::-webkit-scrollbar {
    display: none;
}

.category-nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 50px;
    text-decoration: none;
    color: #4a5568;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.category-nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s ease;
}

.category-nav-item:hover::before {
    left: 100%;
}

.category-nav-item:hover {
    background: rgba(0, 102, 255, 0.08);
    color: var(--blue-primary);
    border-color: rgba(0, 102, 255, 0.2);
    transform: translateY(-2px);
}

.category-nav-item.active {
    background: linear-gradient(135deg, #0066ff 0%, #00a3ff 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 8px 25px rgba(0, 102, 255, 0.35);
    transform: scale(1.02);
}

.category-nav-item i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.category-nav-item:hover i {
    transform: scale(1.15) rotate(-5deg);
}

/* ===== CATEGORY HERO - REDESIGNED ===== */
.category-hero {
    position: relative;
    min-height: 70vh;
    height: auto;
    display: flex;
    align-items: center;
    padding: 120px 0 100px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    overflow: hidden;
}

.category-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 100%);
}

.category-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 20, 60, 0.7) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 50, 100, 0.5) 100%);
    z-index: 1;
}

/* Animated particles */
.category-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.1) 1px, transparent 1px),
                      radial-gradient(circle at 80% 70%, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: particleFloat 20s linear infinite;
    z-index: 2;
    pointer-events: none;
}

@keyframes particleFloat {
    0% { transform: translateY(0); }
    100% { transform: translateY(-60px); }
}

/* Hero backgrounds per category */
.fashion-hero { background-image: url('https://images.unsplash.com/photo-1441984904996-e0b6ba687e04?auto=format&fit=crop&w=1920&q=80'); }
.electronics-hero { background-image: url('https://images.unsplash.com/photo-1518770660439-4636190af475?auto=format&fit=crop&w=1920&q=80'); }
.home-hero { background-image: url('https://images.unsplash.com/photo-1586023492125-27b2c045efd7?auto=format&fit=crop&w=1920&q=80'); }
.beauty-hero { background-image: url('https://images.unsplash.com/photo-1522335789203-aabd1fc54bc9?auto=format&fit=crop&w=1920&q=80'); }
.sports-hero { background-image: url('https://images.unsplash.com/photo-1517836357463-d25dfeac3438?auto=format&fit=crop&w=1920&q=80'); }
.groceries-hero { background-image: url('https://images.unsplash.com/photo-1542838132-92c53300491e?auto=format&fit=crop&w=1920&q=80'); }
.books-hero { background-image: url('https://images.unsplash.com/photo-1495446815901-a7297e633e8d?auto=format&fit=crop&w=1920&q=80'); }
.toys-hero { background-image: url('https://images.unsplash.com/photo-1558060370-d644479cb6f7?auto=format&fit=crop&w=1920&q=80'); }
.automotive-hero { background-image: url('https://images.unsplash.com/photo-1489824904134-891ab64532f1?auto=format&fit=crop&w=1920&q=80'); }
.jewelry-hero { background-image: url('https://images.unsplash.com/photo-1515562141207-7a88fb7ce338?auto=format&fit=crop&w=1920&q=80'); }

.category-hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    animation: heroFadeIn 1s ease-out;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(15px);
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 20px rgba(255,255,255,0.1); }
    50% { box-shadow: 0 0 30px rgba(255,255,255,0.2); }
}

.category-hero h1 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
    background: linear-gradient(to right, #fff, rgba(255,255,255,0.9));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.category-hero p {
    font-size: 1.15rem;
    opacity: 0.95;
    line-height: 1.8;
    margin-bottom: 35px;
    max-width: 600px;
}

.category-hero-stats {
    display: flex;
    gap: 50px;
    animation: statsSlideIn 1s ease-out 0.3s both;
}

@keyframes statsSlideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.stat-item {
    display: flex;
    flex-direction: column;
    position: relative;
    padding-left: 20px;
}

.stat-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 40px;
    background: linear-gradient(to bottom, #0066ff, #00a3ff);
    border-radius: 4px;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== PAGE WRAPPER ===== */
.category-page-wrapper {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    flex: 1;
    min-height: 0;
    position: relative;
    z-index: 1;
}

/* Decorative elements */
.category-page-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(180deg, rgba(0,102,255,0.03) 0%, transparent 100%);
    pointer-events: none;
}

/* ===== CATEGORY SECTIONS ===== */
.category-section {
    padding: 70px 0;
    position: relative;
    z-index: 2;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.section-header-left {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.section-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-nav-arrows {
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.1);
    background: white;
    color: #4a5568;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.section-nav-btn:hover {
    background: var(--blue-primary);
    border-color: var(--blue-primary);
    color: white;
    transform: scale(1.05);
}

.section-nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.section-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--blue-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 10px 20px;
    border-radius: 50px;
    background: rgba(0, 102, 255, 0.08);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.section-view-all:hover {
    background: var(--blue-primary);
    color: white;
}

.section-view-all i {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

.section-view-all:hover i {
    transform: translateX(4px);
}

.section-title-wrap {
    display: flex;
    align-items: center;
    gap: 18px;
}

.section-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #0066ff 0%, #00a3ff 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.3);
    position: relative;
}

.section-icon::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 18px;
    background: linear-gradient(135deg, #0066ff, #00a3ff);
    z-index: -1;
    opacity: 0.3;
    animation: iconGlow 2s ease-in-out infinite;
}

@keyframes iconGlow {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.5; }
}

.section-header h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0;
}

.section-subtitle {
    color: #718096;
    font-size: 1rem;
    margin-top: 6px;
}

.product-count-badge {
    background: linear-gradient(135deg, #edf2f7, #e2e8f0);
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #4a5568;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* ===== TRENDING SECTION ===== */
.trending-section {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    overflow: hidden;
    position: relative;
    z-index: 2;
}

/* Section header with HOT badge */
.section-header .hot-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-left: 12px;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
    animation: hotPulse 2s infinite;
}

@keyframes hotPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Trending carousel navigation */
.trending-section .carousel-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.trending-section .carousel-nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.1);
    background: white;
    color: #4a5568;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.trending-section .carousel-nav-btn:hover {
    background: var(--blue-primary);
    border-color: var(--blue-primary);
    color: white;
    transform: scale(1.05);
}

.trending-section .view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--blue-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px 20px;
    border-radius: 50px;
    background: rgba(0, 102, 255, 0.08);
    transition: all 0.3s ease;
}

.trending-section .view-all-link:hover {
    background: var(--blue-primary);
    color: white;
    gap: 12px;
}

.trending-section .view-all-link i {
    transition: transform 0.3s ease;
}

.trending-section .view-all-link:hover i {
    transform: translateX(4px);
}

.trending-carousel {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 16px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.trending-carousel::-webkit-scrollbar {
    display: none;
}

.trending-carousel .product-card {
    flex: 0 0 280px;
    min-width: 280px;
}

/* Ensure trending product images are colorful */
.trending-carousel .product-image img {
    filter: none !important;
    -webkit-filter: none !important;
}

.trending-carousel .product-card {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.trending-carousel .product-card:nth-child(1) { animation-delay: 0.1s; }
.trending-carousel .product-card:nth-child(2) { animation-delay: 0.2s; }
.trending-carousel .product-card:nth-child(3) { animation-delay: 0.3s; }
.trending-carousel .product-card:nth-child(4) { animation-delay: 0.4s; }
.trending-carousel .product-card:nth-child(5) { animation-delay: 0.5s; }
.trending-carousel .product-card:nth-child(6) { animation-delay: 0.6s; }

/* ===== TRENDING CARD CLICKABLE LINKS ===== */
.trending-carousel .product-image-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.trending-carousel .product-name-link {
    text-decoration: none;
    color: inherit;
}

.trending-carousel .product-name-link:hover .product-name {
    color: var(--blue-primary, #0066ff);
}

/* Trending badge style */
.trending-carousel .badge-trending {
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Trending card CTA buttons */
.trending-carousel .product-cta {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding: 0 4px;
}

.trending-carousel .btn-add-cart {
    flex: 1;
    padding: 10px 16px;
    background: linear-gradient(135deg, #0066ff 0%, #00a3ff 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.trending-carousel .btn-add-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 102, 255, 0.35);
}

.trending-carousel .btn-view-product {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    color: #4a5568;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.trending-carousel .btn-view-product:hover {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    color: white;
    border-color: transparent;
    transform: scale(1.05);
}

/* Quick view button in trending cards */
.trending-carousel .quick-view-btn {
    background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.8) 100%);
    color: white;
}

.trending-carousel .quick-view-btn:hover {
    background: linear-gradient(135deg, #0066ff 0%, #00a3ff 100%);
    transform: scale(1.1);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== FILTER BAR - REDESIGNED ===== */
.category-filter-bar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    padding: 20px 0;
    position: sticky;
    top: 136px;
    z-index: 85;
    transition: all 0.3s ease;
}

.category-filter-bar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.filter-bar-inner {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.filter-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #4a5568;
    white-space: nowrap;
}

.filter-group select {
    padding: 12px 45px 12px 18px;
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    background: #fff;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234a5568' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    transition: all 0.3s ease;
    min-width: 180px;
}

.filter-group select:hover {
    border-color: rgba(0, 102, 255, 0.3);
}

.filter-group select:focus {
    outline: none;
    border-color: var(--blue-primary);
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.1);
}

.filter-tags {
    display: flex;
    gap: 10px;
    margin-left: auto;
    flex-wrap: wrap;
}

.filter-tag {
    padding: 12px 24px;
    background: linear-gradient(135deg, #f7fafc, #edf2f7);
    border: 2px solid transparent;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.filter-tag::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(0, 102, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.filter-tag:hover::before {
    width: 200%;
    height: 200%;
}

.filter-tag:hover {
    color: var(--blue-primary);
    border-color: rgba(0, 102, 255, 0.2);
    transform: translateY(-2px);
}

.filter-tag.active {
    background: linear-gradient(135deg, #0066ff 0%, #00a3ff 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(0, 102, 255, 0.3);
}

.filter-tag.active::before {
    display: none;
}

/* ===== PRODUCTS SECTION ===== */
.products-section {
    background: #ffffff;
    position: relative;
    z-index: 3;
}

/* ===== PRODUCTS GRID - REDESIGNED ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
    position: relative;
    z-index: 5;
}

/* ===== PRODUCT CARD - MODERN DESIGN ===== */
.product-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.product-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(135deg, transparent, rgba(0,102,255,0.1), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.product-card:hover::before {
    opacity: 1;
}

.product-image {
    position: relative;
    padding-top: 100%;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    overflow: hidden;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.product-badges {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 2;
}

.product-badge {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-new {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.badge-sale {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.badge-trending {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.product-actions {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 2;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateX(0);
}

.product-action-btn {
    width: 44px;
    height: 44px;
    background: white;
    border: none;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #718096;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.product-action-btn:hover {
    color: var(--blue-primary);
    transform: scale(1.1);
}

.product-action-btn.in-wishlist {
    color: #ef4444;
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
}

.product-content {
    padding: 24px;
}

.product-brand {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--blue-primary);
    margin-bottom: 8px;
}

.product-name {
    font-size: 1rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.rating-stars {
    color: #fbbf24;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.rating-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: #4a5568;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.price-current {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1a202c;
}

.price-original {
    font-size: 0.9rem;
    color: #a0aec0;
    text-decoration: line-through;
}

.price-discount {
    font-size: 0.8rem;
    font-weight: 600;
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    padding: 4px 10px;
    border-radius: 6px;
}

/* ===== PRODUCT CTA BUTTONS - MODERN DESIGN ===== */
.product-cta {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.btn-add-cart {
    flex: 1;
    padding: 14px 20px;
    background: linear-gradient(135deg, #0066ff 0%, #00a3ff 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-add-cart::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.btn-add-cart:hover::before {
    left: 100%;
}

.btn-add-cart:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 102, 255, 0.4);
}

.btn-add-cart:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 102, 255, 0.3);
}

.btn-add-cart i {
    font-size: 0.95rem;
    transition: transform 0.3s ease;
}

.btn-add-cart:hover i {
    transform: scale(1.15) rotate(-5deg);
}

.btn-quick-view {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    color: #4a5568;
    border: 2px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-quick-view:hover {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    color: white;
    border-color: transparent;
    transform: scale(1.05);
}

.btn-quick-view i {
    font-size: 1rem;
}

/* Legacy add-to-cart-btn for backwards compatibility */
.add-to-cart-btn {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.add-to-cart-btn:hover {
    background: linear-gradient(135deg, #0066ff 0%, #00a3ff 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 102, 255, 0.3);
}

.add-to-cart-btn i {
    transition: transform 0.3s ease;
}

.add-to-cart-btn:hover i {
    transform: scale(1.2);
}

/* ===== BRANDS SECTION ===== */
.brands-section {
    background: #fff;
    position: relative;
    z-index: 2;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.brand-card {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 20px;
    padding: 30px 24px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 2px solid transparent;
}

.brand-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 102, 255, 0.2);
    background: #fff;
}

.brand-logo {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.brand-card span {
    font-size: 0.8rem;
    color: #718096;
}

/* ===== PROMO BANNER ===== */
.promo-banner-section {
    padding-bottom: 90px;
    background: #fff;
    position: relative;
    z-index: 2;
}

.promo-banner {
    background: linear-gradient(135deg, #0066ff 0%, #00a3ff 100%);
    border-radius: 32px;
    padding: 50px 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    overflow: hidden;
    position: relative;
}

.promo-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.promo-banner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: 10%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.promo-content {
    position: relative;
    z-index: 1;
    max-width: 500px;
    color: white;
}

.promo-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.promo-content h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.3;
}

.promo-content p {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.7;
    margin-bottom: 28px;
}

.promo-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: white;
    color: var(--blue-primary);
    padding: 16px 32px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.promo-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.promo-image {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.promo-image img {
    width: 280px;
    height: 200px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 80px 40px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 24px;
}

.empty-state-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 2.5rem;
    color: #94a3b8;
}

.empty-state h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 12px;
}

.empty-state p {
    color: #718096;
    margin-bottom: 24px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #0066ff 0%, #00a3ff 100%);
    color: white;
    padding: 14px 28px;
    border: none;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.35);
}

/* ===== QUICK VIEW MODAL ===== */
.quick-view-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.quick-view-overlay.active {
    opacity: 1;
    visibility: visible;
}

.quick-view-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: white;
    border-radius: 28px;
    max-width: 900px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}

.quick-view-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.quick-view-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: #f1f5f9;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    font-size: 1.1rem;
    color: #64748b;
    transition: all 0.2s ease;
}

.quick-view-close:hover {
    background: #e2e8f0;
    color: #1a202c;
}

/* ===== FOOTER STYLES FOR CATEGORY PAGES ===== */
.site-footer {
    background: linear-gradient(180deg, #1a202c 0%, #0f141a 100%);
    color: #a0aec0;
    padding: 70px 0 30px;
    margin-top: auto;
    position: relative;
    z-index: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h4 {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 14px;
}

.footer-col ul li a {
    color: #a0aec0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-col ul li a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 14px;
}

.social-links a {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a0aec0;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--blue-primary);
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom p {
    font-size: 0.9rem;
    margin: 0;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .promo-banner {
        flex-direction: column;
        text-align: center;
        padding: 40px 30px;
    }

    .promo-content {
        max-width: 100%;
    }

    .category-hero-stats {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .category-hero {
        min-height: 60vh;
        padding: 100px 0 80px;
        background-attachment: scroll;
    }

    .category-hero h1 {
        font-size: 2.2rem;
    }

    .category-hero-stats {
        flex-wrap: wrap;
        gap: 24px;
    }

    .stat-item {
        width: calc(50% - 12px);
    }

    .filter-bar-inner {
        gap: 16px;
    }

    .filter-tags {
        margin-left: 0;
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 8px;
    }

    .filter-tag {
        flex-shrink: 0;
        padding: 10px 18px;
    }

    .products-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }

    .product-card {
        border-radius: 14px;
    }

    .product-image-wrapper,
    .product-image {
        height: 140px;
        padding-top: 0;
    }
    
    .product-image img {
        height: 100%;
        object-fit: cover;
    }

    .product-content {
        padding: 12px;
    }
    
    .product-brand {
        font-size: 0.65rem;
        margin-bottom: 4px;
    }

    .product-name {
        font-size: 0.82rem;
        margin-bottom: 6px;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
        line-height: 1.3;
    }
    
    .product-rating {
        margin-bottom: 8px;
    }
    
    .product-rating .rating-stars {
        font-size: 0.7rem;
    }
    
    .product-rating .rating-value {
        font-size: 0.7rem;
    }
    
    .product-price {
        margin-bottom: 10px;
        flex-wrap: wrap;
        gap: 6px;
    }

    .price-current {
        font-size: 1rem;
    }
    
    .price-original {
        font-size: 0.7rem;
    }
    
    .price-discount {
        font-size: 0.65rem;
        padding: 2px 6px;
    }
    
    /* Compact Add to Cart Button for Mobile */
    .add-to-cart-btn,
    .btn-add-cart {
        padding: 10px 12px;
        font-size: 0.8rem;
        border-radius: 10px;
        gap: 6px;
    }
    
    .add-to-cart-btn i,
    .btn-add-cart i {
        font-size: 0.85rem;
    }
    
    .product-cta {
        gap: 8px;
        margin-top: 10px;
    }
    
    .btn-quick-view {
        width: 40px;
        height: 40px;
        min-width: 40px;
        border-radius: 10px;
    }
    
    .btn-quick-view i {
        font-size: 0.85rem;
    }
    
    /* Quick Actions on Mobile */
    .product-actions {
        top: 8px;
        right: 8px;
    }
    
    .product-action-btn {
        width: 32px;
        height: 32px;
        border-radius: 8px;
    }

    .category-section {
        padding: 50px 0;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .section-icon {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }

    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .promo-image img {
        width: 100%;
        height: 180px;
    }
}

@media (max-width: 480px) {
    .category-nav-item {
        padding: 10px 16px;
        font-size: 0.8rem;
    }

    .category-hero {
        min-height: 55vh;
        padding: 90px 0 60px;
    }

    .category-hero h1 {
        font-size: 1.8rem;
    }

    .category-badge {
        font-size: 0.7rem;
        padding: 8px 16px;
    }

    .stat-value {
        font-size: 1.8rem;
    }

    .filter-group select {
        min-width: 140px;
        padding: 10px 35px 10px 14px;
    }

    .products-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
    
    .product-card {
        border-radius: 12px;
    }
    
    .product-image-wrapper,
    .product-image {
        height: 120px;
        padding-top: 0;
    }

    .product-content {
        padding: 10px;
    }

    .product-brand {
        font-size: 0.6rem;
        margin-bottom: 3px;
    }

    .product-name {
        font-size: 0.75rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        margin-bottom: 5px;
        line-height: 1.25;
    }
    
    .product-rating {
        margin-bottom: 6px;
        gap: 4px;
    }
    
    .product-rating .rating-stars {
        font-size: 0.6rem;
        letter-spacing: 1px;
    }
    
    .product-rating .rating-value {
        font-size: 0.65rem;
    }
    
    .product-price {
        margin-bottom: 8px;
        gap: 4px;
    }
    
    .price-current {
        font-size: 0.95rem;
    }
    
    .price-original {
        font-size: 0.65rem;
    }
    
    .price-discount {
        display: none;
    }

    /* Compact Square Add to Cart Button for Small Mobile */
    .add-to-cart-btn,
    .btn-add-cart {
        padding: 10px;
        font-size: 0.75rem;
        border-radius: 10px;
        width: 100%;
        justify-content: center;
    }
    
    .add-to-cart-btn span,
    .btn-add-cart span {
        display: none;
    }
    
    .add-to-cart-btn i,
    .btn-add-cart i {
        font-size: 0.9rem;
    }
    
    .product-cta {
        gap: 6px;
        margin-top: 8px;
    }
    
    .btn-quick-view {
        display: none;
    }
    
    .product-quick-actions {
        gap: 4px;
    }
    
    .quick-action-btn {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }

    .promo-banner {
        padding: 30px 20px;
        border-radius: 20px;
    }

    .promo-content h3 {
        font-size: 1.4rem;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-section {
    animation: fadeInUp 0.6s ease-out;
}

/* Stagger animation for cards */
.products-grid .product-card {
    animation: fadeInUp 0.5s ease-out backwards;
}

.products-grid .product-card:nth-child(1) { animation-delay: 0.1s; }
.products-grid .product-card:nth-child(2) { animation-delay: 0.15s; }
.products-grid .product-card:nth-child(3) { animation-delay: 0.2s; }
.products-grid .product-card:nth-child(4) { animation-delay: 0.25s; }
.products-grid .product-card:nth-child(5) { animation-delay: 0.3s; }
.products-grid .product-card:nth-child(6) { animation-delay: 0.35s; }
.products-grid .product-card:nth-child(7) { animation-delay: 0.4s; }
.products-grid .product-card:nth-child(8) { animation-delay: 0.45s; }

/* Scroll-triggered animations */
.category-section.in-view {
    animation: fadeInUp 0.6s ease-out;
}

/* Loading shimmer effect */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.loading-shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* ===== CART SIDEBAR FOR CATEGORY PAGES ===== */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    max-width: 90vw;
    height: 100%;
    background: white;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    border-bottom: 1px solid #eee;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
}

.cart-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0;
}

.close-cart {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #f1f5f9;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-cart:hover {
    background: #e2e8f0;
    color: #1a202c;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.cart-empty {
    text-align: center;
    padding: 60px 20px;
    color: #718096;
}

.cart-empty i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.3;
}

.cart-empty p {
    font-size: 1.1rem;
    margin-bottom: 24px;
}

.cart-empty .btn-shop {
    display: inline-block;
    padding: 12px 28px;
    background: var(--blue-primary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cart-empty .btn-shop:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 102, 255, 0.3);
}

.cart-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 16px;
    margin-bottom: 12px;
    position: relative;
}

.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
    background: white;
}

.cart-item-details {
    flex: 1;
}

.cart-item-details h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cart-item-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--blue-primary);
    margin-bottom: 8px;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-item-qty button {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: white;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.cart-item-qty button:hover {
    background: var(--blue-primary);
    border-color: var(--blue-primary);
    color: white;
}

.cart-item-qty span {
    min-width: 24px;
    text-align: center;
    font-weight: 600;
}

.cart-item-remove {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #cbd5e0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cart-item-remove:hover {
    background: #fee2e2;
    color: #ef4444;
}

.cart-footer {
    padding: 20px 24px;
    border-top: 1px solid #eee;
    background: white;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 1.1rem;
    font-weight: 600;
}

.cart-total span:last-child {
    font-size: 1.4rem;
    color: var(--blue-primary);
}

.checkout-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #0066ff 0%, #00a3ff 100%);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 102, 255, 0.4);
}

/* ===== PROFILE SIDEBAR FOR CATEGORY PAGES ===== */
.profile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.profile-overlay.active {
    opacity: 1;
    visibility: visible;
}

.profile-sidebar {
    position: fixed;
    top: 0;
    right: -380px;
    width: 360px;
    max-width: 90vw;
    height: 100%;
    background: white;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.profile-sidebar.active {
    right: 0;
}

.profile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    border-bottom: 1px solid #eee;
}

.profile-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0;
}

.close-profile {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #f1f5f9;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-profile:hover {
    background: #e2e8f0;
    color: #1a202c;
}

.profile-content {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

.profile-info {
    text-align: center;
    margin-bottom: 32px;
}

.profile-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue-primary), #00a3ff);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 600;
    margin: 0 auto 16px;
}

.profile-name-large {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 4px;
}

.profile-email {
    color: #718096;
    font-size: 0.9rem;
}

.profile-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.profile-menu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    color: #4a5568;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.profile-menu li a:hover {
    background: #f1f5f9;
    color: var(--blue-primary);
}

.profile-menu li a i {
    width: 20px;
    text-align: center;
}

.profile-actions {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #eee;
}

.btn-login {
    width: 100%;
    padding: 14px;
    background: var(--blue-primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background: #0052cc;
}

/* ===== QUICK VIEW MODAL FOR CATEGORY PAGES ===== */
.quick-view-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.quick-view-overlay.active {
    opacity: 1;
    visibility: visible;
}

.quick-view-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    background: white;
    border-radius: 24px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
    z-index: 1001;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.quick-view-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.quick-view-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    color: #1a202c;
    cursor: pointer;
    z-index: 10;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.quick-view-close:hover {
    background: white;
    transform: rotate(90deg);
}

.quick-view-content {
    overflow-y: auto;
    max-height: 90vh;
}

/* Responsive cart sidebar */
@media (max-width: 480px) {
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .profile-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .section-header-right {
        width: 100%;
        justify-content: flex-end;
    }
    
    .section-view-all {
        font-size: 0.8rem;
        padding: 8px 14px;
    }
    
    .section-nav-btn {
        width: 36px;
        height: 36px;
    }
}

/* ===== MOBILE CATEGORY NAV - BOTTOM SHEET STYLE ===== */
@media (max-width: 768px) {
    /* Mobile category toggle button */
    .mobile-category-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        padding: 14px 20px;
        background: linear-gradient(135deg, #0066ff 0%, #00a3ff 100%);
        color: white;
        border: none;
        font-size: 0.95rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .mobile-category-toggle:hover {
        background: linear-gradient(135deg, #0055dd 0%, #0092dd 100%);
    }
    
    .mobile-category-toggle i {
        transition: transform 0.3s ease;
    }
    
    .mobile-category-toggle.expanded i.fa-chevron-down {
        transform: rotate(180deg);
    }

    /* Hide category nav by default on mobile */
    .category-nav {
        position: relative;
        top: auto;
        padding: 0;
        background: white;
        border-bottom: 1px solid rgba(0,0,0,0.08);
    }
    
    .category-nav .container {
        padding: 0;
    }
    
    .category-nav-inner {
        display: none;
        flex-direction: column;
        gap: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease, padding 0.3s ease;
    }
    
    .category-nav-inner.expanded {
        display: flex;
        max-height: 500px;
        padding: 12px 0;
        border-top: 1px solid rgba(0,0,0,0.05);
    }
    
    .category-nav-item {
        width: 100%;
        padding: 14px 20px;
        border-radius: 0;
        background: transparent;
        border: none;
        border-bottom: 1px solid rgba(0,0,0,0.04);
        justify-content: flex-start;
        font-size: 0.95rem;
    }
    
    .category-nav-item:last-child {
        border-bottom: none;
    }
    
    .category-nav-item:hover {
        background: rgba(0, 102, 255, 0.05);
        transform: none;
    }
    
    .category-nav-item.active {
        background: rgba(0, 102, 255, 0.1);
        color: var(--blue-primary);
        box-shadow: none;
        transform: none;
        border-left: 4px solid var(--blue-primary);
    }
    
    .category-nav-item::before {
        display: none;
    }

    /* Filter bar mobile collapsible */
    .category-filter-bar {
        position: relative;
        top: auto;
        padding: 0;
    }
    
    .mobile-filter-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 14px 20px;
        background: #f8fafc;
        color: #4a5568;
        border: none;
        font-size: 0.9rem;
        font-weight: 600;
        cursor: pointer;
    }
    
    .mobile-filter-toggle i {
        transition: transform 0.3s ease;
    }
    
    .mobile-filter-toggle.expanded i.fa-chevron-down {
        transform: rotate(180deg);
    }
    
    .filter-bar-inner {
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease, padding 0.3s ease;
    }
    
    .filter-bar-inner.expanded {
        display: flex;
        max-height: 400px;
        padding: 16px;
        background: #f8fafc;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .filter-group label {
        display: block;
        margin-bottom: 6px;
    }
    
    .filter-group select {
        width: 100%;
        min-width: auto;
    }
    
    .filter-tags {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin: 0;
    }
    
    .filter-tag {
        flex: 0 0 auto;
    }
    
    /* HIDE FILTER BAR COMPLETELY ON MOBILE */
    .category-filter-bar {
        display: none !important;
    }
    
    /* Fix hero section overlap - add proper spacing */
    .category-hero {
        margin-top: 0 !important;
        padding-top: 30px !important;
        min-height: auto !important;
        padding-bottom: 40px !important;
    }
    
    .category-nav {
        position: relative !important;
        top: 0 !important;
        padding: 8px 0;
    }
    
    /* Compact header on mobile - fixed at top */
    .header {
        padding: 10px 0 !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1000 !important;
        background: var(--primary-black, #1A1A1A) !important;
    }
    
    /* Center logo only on mobile - THIS IS CRITICAL */
    .header-content {
        justify-content: center !important;
        padding: 8px 0 !important;
    }
    
    /* Center the logo properly */
    .header .logo {
        margin: 0 auto !important;
    }
    
    .header-actions,
    .mobile-menu-toggle,
    .search-mobile-toggle,
    .search-container,
    .user-profile-btn,
    .cart-btn,
    .wishlist-header-btn {
        display: none !important;
    }
    
    /* Body padding for fixed header and bottom nav */
    body {
        padding-top: 70px !important;
        padding-bottom: 80px !important;
    }
    
    /* Add space between sections */
    .category-section {
        margin-top: 20px;
    }
    
    .trending-section {
        margin-top: 0;
    }
}

/* Desktop: hide mobile toggles */
@media (min-width: 769px) {
    .mobile-category-toggle,
    .mobile-filter-toggle {
        display: none !important;
    }
    
    .category-nav-inner,
    .filter-bar-inner {
        display: flex !important;
        max-height: none !important;
    }
}

/* ===== MOBILE BOTTOM NAVIGATION FOR CATEGORY PAGES ===== */
.category-mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    padding: 8px 0;
    padding-bottom: max(8px, env(safe-area-inset-bottom));
}

.category-mobile-nav-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 500px;
    margin: 0 auto;
}

.category-mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    text-decoration: none;
    color: #666666;
    font-size: 0.7rem;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
    border-radius: 12px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.category-mobile-nav-item i {
    font-size: 1.25rem;
    transition: all 0.2s ease;
}

.category-mobile-nav-item span {
    font-size: 0.65rem;
    letter-spacing: 0.3px;
}

.category-mobile-nav-item:hover,
.category-mobile-nav-item.active {
    color: #0066ff;
}

.category-mobile-nav-item.active {
    background: rgba(0, 102, 255, 0.08);
}

.category-mobile-nav-item .nav-badge {
    position: absolute;
    top: 2px;
    right: 8px;
    background: #ff4444;
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

@media (max-width: 768px) {
    .category-mobile-nav {
        display: block;
    }
}
