/* ===== CSS Variables ===== */
:root {
    --primary-color: #d4af37;
    --secondary-color: #1a1a1a;
    --accent-color: #c9a961;
    --text-color: #ffffff;
    --text-dark: #1a1a1a;
    --bg-dark: #0a0a0a;
    --bg-light: #f5f5f5;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-dark);
    color: var(--text-color);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Playfair Display', serif;
}

/* ===== Top Bar ===== */
.topbar {
    background: rgba(0, 0, 0, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.6rem 0;
    font-size: 0.85rem;
}

.topbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar-left {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.social-link {
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.social-link:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.topbar-right {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.topbar-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    font-size: 0.85rem;
}

.topbar-link:hover {
    color: var(--primary-color);
}

.topbar-link svg {
    flex-shrink: 0;
}

.track-order {
    padding: 0.4rem 1rem;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 4px;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.track-order:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--primary-color);
}


/* ===== Navigation ===== */
.navbar {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.2rem 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.nav-logo {
    flex-shrink: 0;
}

.nav-logo h1 {
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: 2px;
    cursor: pointer;
    transition: var(--transition);
}

.nav-logo h1:hover {
    transform: scale(1.05);
}

/* Search Bar in Center */
.nav-search {
    flex: 1;
    max-width: 600px;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 0.3rem 0.3rem 0.3rem 1.5rem;
    transition: var(--transition);
}

.nav-search:focus-within {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-color);
    font-size: 0.95rem;
    padding: 0.6rem 0;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.search-submit-btn {
    background: var(--primary-color);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.search-submit-btn:hover {
    background: var(--accent-color);
    transform: scale(1.1);
}

.search-submit-btn svg {
    color: var(--text-dark);
}

/* Right Side Actions */
.nav-actions {
    display: flex;
    gap: 1.2rem;
    align-items: center;
    flex-shrink: 0;
}

.wishlist-btn,
.cart-btn,
.profile-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.wishlist-btn:hover,
.cart-btn:hover,
.profile-btn:hover {
    background: rgba(212, 175, 55, 0.15);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.wishlist-count,
.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary-color);
    color: var(--text-dark);
    min-width: 18px;
    height: 18px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0 5px;
}

/* ===== Category Menu Bar ===== */
.category-menubar {
    position: sticky;
    top: 76px;
    width: 100%;
    z-index: 999;
    background: rgba(26, 26, 26, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition);
}

.navbar.nav-hidden {
    transform: translateY(-100%);
}

.category-menubar.nav-hidden {
    transform: translateY(-150%);
}

.category-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.category-item {
    position: relative;
}

.category-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 1.5rem;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 6px;
    transition: var(--transition);
}

.category-link:hover {
    background: rgba(212, 175, 55, 0.2);
    color: var(--primary-color);
}

.category-link .arrow-down {
    transition: var(--transition);
}

.category-item:hover .category-link .arrow-down {
    transform: rotate(180deg);
}

/* Quick Links */
.category-quick-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 400;
    padding: 1rem 0;
    position: relative;
    transition: var(--transition);
    white-space: nowrap;
}

.category-quick-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.category-quick-link:hover {
    color: var(--primary-color);
}

.category-quick-link:hover::after {
    width: 100%;
}

.category-quick-link.sale {
    color: #ff4444;
    font-weight: 600;
}

.category-quick-link.sale::after {
    background: #ff4444;
}

/* Mega Dropdown */
.mega-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100vw;
    max-width: 1200px;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin-top: 0.5rem;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

.category-item:hover .mega-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
}

.dropdown-column {
    min-width: 0;
}

.dropdown-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.subcategory-group {
    margin-bottom: 1.5rem;
}

.subcategory-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.6rem 0;
    transition: var(--transition);
}

.subcategory-link:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.subcategory-link svg {
    opacity: 0;
    transition: var(--transition);
}

.subcategory-link:hover svg {
    opacity: 1;
}

.child-category {
    padding-left: 1rem;
    margin-top: 0.5rem;
    border-left: 2px solid rgba(212, 175, 55, 0.2);
}

.child-category a {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.88rem;
    padding: 0.5rem 0 0.5rem 1rem;
    transition: var(--transition);
}

.child-category a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

/* Brand Link (for brands without subcategories) */
.brand-link {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    padding: 0.6rem 0;
    transition: var(--transition);
}

.brand-link:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

/* Brands Grid Dropdown */
.brands-grid-dropdown {
    padding: 2.5rem;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    max-width: 1000px;
}

.brand-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem 1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.brand-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), transparent);
    opacity: 0;
    transition: var(--transition);
}

.brand-card:hover::before {
    opacity: 1;
}

.brand-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.2);
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#threejs-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 2rem;
}

.hero-subtitle {
    font-size: 0.9rem;
    letter-spacing: 3px;
    color: var(--primary-color);
    text-transform: uppercase;
    font-weight: 500;
    display: block;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.5s;
}

.hero-title {
    font-size: 5rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff, var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.7s;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.9s;
}

.cta-btn {
    padding: 1rem 3rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border: none;
    color: var(--text-dark);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    opacity: 0;
    animation: fadeInUp 1s ease forwards 1.1s;
}

.cta-btn::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.6s;
}

.cta-btn:hover::before {
    left: 100%;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 2;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 1.3s;
}

.scroll-indicator span {
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.6);
    display: block;
    margin-bottom: 1rem;
}

.scroll-line {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, var(--primary-color), transparent);
    margin: 0 auto;
    animation: scrollLine 2s ease-in-out infinite;
}

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

    from {
        opacity: 0;
        transform: translateY(30px);
    }
}

@keyframes scrollLine {

    0%,
    100% {
        transform: scaleY(0);
        transform-origin: top;
    }

    50% {
        transform: scaleY(1);
        transform-origin: top;
    }
}

/* ===== Feature Cards Section ===== */
.feature-cards-section {
    padding: 4rem 0;
    background: linear-gradient(180deg, var(--bg-dark) 0%, #0f0f0f 100%);
    position: relative;
    overflow: hidden;
}

.feature-cards-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0.3;
}

.feature-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    position: relative;
    padding: 2.5rem 2rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), transparent);
    opacity: 0;
    transition: var(--transition);
    z-index: 0;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 20px 50px rgba(212, 175, 55, 0.15);
}

.feature-card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.feature-card:hover .feature-card-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Icon background gradients for each card */
.promotion-icon {
    background: linear-gradient(135deg, #d4af37, #c9a961);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

.bogo-icon {
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
}

.featured-icon {
    background: linear-gradient(135deg, #4ecdc4, #44a3a0);
    box-shadow: 0 10px 30px rgba(78, 205, 196, 0.3);
}

.preorder-icon {
    background: linear-gradient(135deg, #a78bfa, #8b5cf6);
    box-shadow: 0 10px 30px rgba(167, 139, 250, 0.3);
}

.feature-card-icon svg {
    color: var(--text-dark);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.feature-card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.8rem;
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.feature-card:hover .feature-card-title {
    color: var(--primary-color);
}

.feature-card-description {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.feature-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.feature-card-link:hover {
    gap: 0.8rem;
}

.feature-card-link svg {
    transition: var(--transition);
}

.feature-card:hover .feature-card-link svg {
    transform: translateX(5px);
}

/* Glow effect on hover for each card type */
.feature-card[data-card="1"]:hover {
    box-shadow: 0 20px 50px rgba(212, 175, 55, 0.25);
}

.feature-card[data-card="2"]:hover {
    box-shadow: 0 20px 50px rgba(255, 107, 107, 0.25);
}

.feature-card[data-card="3"]:hover {
    box-shadow: 0 20px 50px rgba(78, 205, 196, 0.25);
}

.feature-card[data-card="4"]:hover {
    box-shadow: 0 20px 50px rgba(167, 139, 250, 0.25);
}

/* ===== Flash Sale Section ===== */
.flash-sale-section {
    position: relative;
    padding: 3rem 0 5rem;
    /* Reduced top padding */
    background: #000000;
    overflow: hidden;
    min-height: 100vh;
}

/* Universe Background Container */
#universe-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.flash-sale-section .container {
    position: relative;
    z-index: 2;
}

/* Flash Sale Header */
.flash-sale-header {
    text-align: center;
    margin-bottom: 4rem;
}

.flash-sale-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    border-radius: 50px;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.4);
    animation: pulseGlow 2s ease-in-out infinite;
    margin-bottom: 1.5rem;
}

.flash-sale-badge svg {
    animation: lightning 1.5s ease-in-out infinite;
}

@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 10px 30px rgba(255, 107, 107, 0.4);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 10px 40px rgba(255, 107, 107, 0.6);
        transform: scale(1.05);
    }
}

@keyframes lightning {

    0%,
    100% {
        transform: rotate(0deg);
    }

    10%,
    30%,
    50% {
        transform: rotate(-10deg);
    }

    20%,
    40% {
        transform: rotate(10deg);
    }
}

.flash-sale-title {
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff, #d4af37, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

/* Countdown Timer */
.countdown-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.timer-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    min-width: 100px;
    position: relative;
    overflow: hidden;
}

.timer-unit::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.2), transparent);
    opacity: 0;
    transition: var(--transition);
}

.timer-unit:hover::before {
    opacity: 1;
}

.timer-value {
    font-size: 3rem;
    font-weight: 700;
    color: #ff6b6b;
    font-family: 'Playfair Display', serif;
    line-height: 1;
    text-shadow: 0 0 20px rgba(255, 107, 107, 0.5);
}

.timer-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}

.timer-separator {
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: 700;
}

/* Flash Sale Grid */
.flash-sale-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    margin-top: 4rem;
}

/* Flash Product Card */
.flash-product-card {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.flash-product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(255, 107, 107, 0.1));
    opacity: 0;
    transition: var(--transition);
    z-index: 0;
}

.flash-product-card:hover::before {
    opacity: 1;
}

.flash-product-card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 30px 60px rgba(212, 175, 55, 0.3);
}

/* Discount Badge */
.flash-discount-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    color: #fff;
    padding: 0.3rem 0.7rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.75rem;
    z-index: 3;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* Flash Product Image */
.flash-product-image {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.flash-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.flash-product-card:hover .flash-product-image img {
    transform: scale(1.15) rotate(2deg);
}

.flash-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    opacity: 0.6;
    transition: var(--transition);
}

.flash-product-card:hover .flash-image-overlay {
    opacity: 0.8;
}

/* Flash Product Info */
.flash-product-info {
    padding: 1rem;
    position: relative;
    z-index: 1;
}

.flash-product-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.3rem;
    transition: var(--transition);
    line-height: 1.3;
}

.flash-product-card:hover .flash-product-name {
    color: var(--primary-color);
}

.flash-product-category {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.8rem;
}

/* Price Row */
.flash-price-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.flash-original-price {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: line-through;
}

.flash-sale-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ff6b6b;
    font-family: 'Playfair Display', serif;
}

/* Stock Info */
.flash-stock-info {
    margin-bottom: 0.8rem;
}

.stock-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.4rem;
}

.stock-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6b6b, #ff8e53);
    border-radius: 10px;
    transition: var(--transition);
    animation: fillPulse 2s ease-in-out infinite;
}

@keyframes fillPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }
}

.stock-text {
    font-size: 0.7rem;
    color: #ff6b6b;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Flash Add to Cart Button */
.flash-add-to-cart {
    width: 100%;
    padding: 0.6rem 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border: none;
    border-radius: 8px;
    color: var(--text-dark);
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.flash-add-to-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.6s;
}

.flash-add-to-cart:hover::before {
    left: 100%;
}

.flash-add-to-cart:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.4);
}

.flash-add-to-cart svg {
    width: 16px;
    height: 16px;
    transition: var(--transition);
}

.flash-add-to-cart:hover svg {
    transform: scale(1.2);
}

/* View More Button (Desktop/Default) */
.flash-view-more-container {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.flash-view-more-btn {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 2.5rem;
    background: rgba(255, 255, 255, 0.05);
    /* Glass effect */
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    text-decoration: none;
    /* Ensure no underline */
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.flash-view-more-btn:hover {
    background: rgba(212, 175, 55, 0.15);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.flash-view-more-btn svg {
    transition: var(--transition);
}

.flash-view-more-btn:hover svg {
    transform: translateX(5px);
}

/* ===== Category Showcase Section ===== */
.category-showcase-section {
    position: relative;
    padding: 8rem 0;
    background: #0a0a0a;
    overflow: hidden;
}

@keyframes simpleBgPulse {
    0% {
        transform: scale(1);
        opacity: 0.3;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 0.3;
    }
}

.category-bg-3d {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    opacity: 0.6;
    /* Slight transparency for background feel */
}

/* Simple background animation layer */
.category-bg-3d::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(100, 70, 0, 0.15) 0%, transparent 60%);
    animation: simpleBgPulse 8s ease-in-out infinite;
    z-index: -1;
    pointer-events: none;
}

/* Reuse parallax overlay but adjusted for 3D */
.category-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(10, 10, 10, 0.9) 0%, rgba(10, 10, 10, 0.4) 50%, rgba(10, 10, 10, 0.9) 100%);
    z-index: 1;
    pointer-events: none;
    /* Allow interaction with 3D scene if needed */
}

.category-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.category-subtitle {
    display: block;
    color: var(--primary-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.category-title {
    font-size: 2.5rem;
    /* Smaller than main titles */
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.category-view-more-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}

.category-view-more-btn:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.category-products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    /* 5 Products in a row */
    gap: 1.2rem;
    position: relative;
    z-index: 2;
}

/* Ensure category cards match flash cards exactly */
.category-card {
    /* Inherit all .flash-product-card styles */
    /* Only ensure background is consistent */
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.category-card:hover {
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Responsive for Category Showcase */
@media (max-width: 1200px) {
    .category-products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .category-showcase-section {
        padding: 4rem 0;
    }

    .category-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .category-view-more-btn {
        align-self: flex-end;
    }

    .category-products-grid {
        display: flex;
        /* Slider on mobile */
        overflow-x: auto;
        gap: 1rem;
        padding-bottom: 1.5rem;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

}

.category-products-grid::-webkit-scrollbar {
    display: none;
}


/* ===== All Products Section ===== */
.all-products-section {
    position: relative;
    padding: 8rem 0;
    background: #050505;
    /* Slightly darker than category section */
    overflow: hidden;
}

.all-products-bg-3d {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.5;
}

.all-products-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    /* 6 Columns as requested */
    gap: 1rem;
    /* Slightly reduced gap for 6 items */
    position: relative;
    z-index: 2;
}

.all-product-card {
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.03) !important;
}

.all-product-card:hover {
    border-color: rgba(212, 175, 55, 0.2) !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

@media (max-width: 1400px) {
    .all-products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1100px) {
    .all-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 800px) {
    .all-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .all-products-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 products in a row on mobile */
        gap: 0.5rem;
        /* Reduced gap */
    }

    /* FIX: Reset min-width from flash sale styles to prevent overflow */
    .all-products-grid .all-product-card {
        min-width: 0 !important;
        width: 100% !important;
    }

    /* Compact styling for mobile 2-column grid */
    .all-products-grid .flash-product-info {
        padding: 0.5rem;
    }

    .all-products-grid .flash-product-name {
        font-size: 0.75rem;
        /* Smaller font */
        margin-bottom: 0.2rem;
    }

    .all-products-grid .flash-product-category {
        font-size: 0.6rem;
        margin-bottom: 0.4rem;
    }

    .all-products-grid .flash-sale-price {
        font-size: 0.9rem;
    }

    .all-products-grid .flash-add-to-cart {
        padding: 0.4rem 0.2rem;
        font-size: 0.7rem;
    }

    .all-products-grid .flash-product-image {
        height: 120px;
        /* Reducing image height for compactness */
    }
}

/* ===== Collection Section ===== */
.collection {
    padding: 8rem 0;
    background: linear-gradient(180deg, var(--bg-dark) 0%, #1a1a1a 100%);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.section-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ===== Filter Buttons ===== */
.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.8rem 2rem;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--text-color);
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-dark);
}

/* ===== Products Grid ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
}

.product-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), transparent);
    opacity: 0;
    transition: var(--transition);
    z-index: 0;
}

.product-card:hover::before {
    opacity: 1;
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.2);
}

.product-image {
    width: 100%;
    height: 320px;
    position: relative;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.product-info {
    padding: 1.5rem;
    position: relative;
    z-index: 1;
}

.product-category {
    font-size: 0.85rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.product-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--text-color);
}

.product-price {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.product-actions {
    display: flex;
    gap: 1rem;
}

.quick-view-btn,
.add-to-cart-btn {
    flex: 1;
    padding: 0.8rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.quick-view-btn {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.quick-view-btn:hover {
    background: var(--primary-color);
    color: var(--text-dark);
}

.add-to-cart-btn {
    background: var(--primary-color);
    color: var(--text-dark);
}

.add-to-cart-btn:hover {
    background: var(--accent-color);
    transform: scale(1.05);
}

/* ===== About Section ===== */
.about {
    padding: 8rem 0;
    background: var(--bg-dark);
}

.about-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-subtitle {
    font-size: 0.9rem;
    letter-spacing: 3px;
    color: var(--primary-color);
    text-transform: uppercase;
    font-weight: 500;
    display: block;
    margin-bottom: 1rem;
}

.about-title {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.about-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 3rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 4rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3.5rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ===== Cart Sidebar ===== */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    height: 100vh;
    background: rgba(26, 26, 26, 0.98);
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 2000;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    padding: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    font-size: 1.5rem;
    color: var(--text-color);
}

.close-cart {
    background: transparent;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
}

.close-cart:hover {
    color: var(--primary-color);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.cart-item-price {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
}

.remove-item {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.remove-item:hover {
    color: #ff4444;
}

.cart-footer {
    padding: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.total-amount {
    color: var(--primary-color);
}

.checkout-btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    border: none;
    border-radius: 8px;
    color: var(--text-dark);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.checkout-btn:hover {
    background: var(--accent-color);
    transform: scale(1.02);
}

.empty-cart {
    text-align: center;
    padding: 3rem 0;
    color: rgba(255, 255, 255, 0.5);
}

/* ===== Product Modal ===== */
.product-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
}

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

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    background: rgba(26, 26, 26, 0.95);
    border-radius: 20px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
    z-index: 2;
}

.close-modal:hover {
    background: var(--primary-color);
    color: var(--text-dark);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 3rem;
}

.modal-image {
    border-radius: 12px;
    overflow: hidden;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-details h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.modal-category {
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.modal-price {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 2rem;
}

.modal-description {
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
}

.add-to-cart-modal {
    width: 100%;
    padding: 1.2rem;
    background: var(--primary-color);
    border: none;
    border-radius: 8px;
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.add-to-cart-modal:hover {
    background: var(--accent-color);
    transform: scale(1.02);
}

/* ===== Modern Mega Footer ===== */
.modern-footer {
    background: #020202;
    padding-top: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.95rem;
}

/* Newsletter Section */
.footer-newsletter {
    background: linear-gradient(180deg, #0a0a0a 0%, #020202 100%);
    padding: 4rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.newsletter-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.newsletter-text h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.newsletter-text p {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-form {
    flex: 1;
    max-width: 500px;
}

.input-group {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 0.3rem;
    transition: var(--transition);
}

.input-group:focus-within {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
}

.input-group input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.8rem 1.5rem;
    color: var(--text-color);
    outline: none;
    font-size: 1rem;
}

.input-group button {
    background: var(--primary-color);
    color: var(--text-dark);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.input-group button:hover {
    background: var(--accent-color);
    transform: translateX(2px);
}

/* Footer Main */
.footer-main {
    padding: 5rem 0;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
}

.footer-col h4 {
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Brand Column */
.footer-logo {
    display: flex;
    align-items: baseline;
    margin-bottom: 1rem;
}

.footer-logo h2 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.logo-dot {
    color: var(--primary-color);
    font-size: 2rem;
    line-height: 0;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    transition: var(--transition);
    border: 1px solid transparent;
}

.social-icon:hover {
    background: var(--primary-color);
    color: var(--text-dark);
    transform: translateY(-3px);
}

/* Links */
.footer-nav {
    list-style: none;
}

.footer-nav li {
    margin-bottom: 0.8rem;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.footer-nav a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

/* Contact Info */
.contact-info {
    list-style: none;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1.2rem;
}

.contact-info svg {
    color: var(--primary-color);
    flex-shrink: 0;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.copyright p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

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

.divider {
    color: rgba(255, 255, 255, 0.2);
}

/* Footer Responsive */
@media (max-width: 1024px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

    .newsletter-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }

    .newsletter-form {
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 600px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .footer-legal {
        justify-content: center;
    }
}

/* ===== Responsive ===== */

/* Tablet Landscape */
@media (max-width: 1024px) {
    .category-container {
        overflow-x: auto;
        scrollbar-width: none;
    }

    .category-container::-webkit-scrollbar {
        display: none;
    }

    .dropdown-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Flash Sale Section - Tablet */
    .flash-sale-section {
        padding: 5rem 0;
    }

    .flash-sale-title {
        font-size: 2.5rem;
    }

    .countdown-timer {
        gap: 1rem;
        flex-wrap: wrap;
    }

    .timer-unit {
        padding: 1.2rem 1.5rem;
        min-width: 80px;
    }

    .timer-value {
        font-size: 2.2rem;
    }

    .timer-separator {
        font-size: 2rem;
    }

    .flash-sale-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .flash-product-card {
        border-radius: 20px;
    }

    .flash-product-image {
        height: 250px;
    }

    .flash-product-info {
        padding: 1.5rem;
    }

    .flash-product-name {
        font-size: 1.3rem;
    }

    /* Brands grid for tablets */
    .brands-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.8rem;
    }

    .brand-card {
        padding: 1.2rem 0.8rem;
        font-size: 0.9rem;
    }
}

/* Tablet Portrait & Mobile Landscape */
@media (max-width: 768px) {

    /* Topbar */
    .topbar {
        padding: 0.5rem 0;
        font-size: 0.75rem;
    }

    .topbar-container {
        padding: 0 1rem;
    }

    .topbar-left {
        gap: 0.6rem;
    }

    .topbar-right {
        gap: 0.6rem;
    }

    .topbar-link span {
        display: none;
    }

    .topbar-link {
        padding: 0.3rem;
    }

    .track-order {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }

    .social-link svg {
        width: 14px;
        height: 14px;
    }

    /* Navbar */
    .navbar {
        padding: 1rem 0;
    }

    .nav-container {
        padding: 0 1rem;
        gap: 0.8rem;
    }

    .nav-logo h1 {
        font-size: 1.4rem;
    }

    .nav-search {
        max-width: none;
        padding: 0.2rem 0.2rem 0.2rem 1rem;
    }

    .search-input {
        font-size: 0.85rem;
        padding: 0.5rem 0;
    }

    .search-submit-btn {
        width: 35px;
        height: 35px;
    }

    .nav-actions {
        gap: 0.6rem;
    }

    .wishlist-btn,
    .cart-btn,
    .profile-btn {
        width: 38px;
        height: 38px;
    }

    .wishlist-btn svg,
    .cart-btn svg,
    .profile-btn svg {
        width: 20px;
        height: 20px;
    }

    /* Category Menu Mobile */
    .category-menubar {
        top: 68px;
    }

    .category-container {
        padding: 0 1rem;
        gap: 1rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Hide "All Brands" dropdown on mobile */
    .category-item {
        display: none;
    }

    .category-link {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
        white-space: nowrap;
    }

    .category-quick-link {
        font-size: 0.85rem;
        padding: 0.8rem 0;
        white-space: nowrap;
    }

    /* Mega Dropdown Mobile */
    .mega-dropdown {
        left: 0;
        right: 0;
        width: 100vw;
        max-width: none;
        padding: 1.5rem;
        margin-top: 0;
        border-radius: 0;
    }

    .dropdown-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Brands Grid Mobile */
    .brands-grid-dropdown {
        padding: 1.5rem 1rem;
    }

    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
        max-width: none;
    }

    .brand-card {
        padding: 1.2rem 0.5rem;
        font-size: 0.88rem;
        border-radius: 10px;
        /* Mobile specific: ensure clickable and proper touch target */
        pointer-events: auto;
        cursor: pointer;
        -webkit-tap-highlight-color: rgba(212, 175, 55, 0.2);
        user-select: none;
        -webkit-user-select: none;
        /* Better touch target */
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        /* Active state for mobile */
        touch-action: manipulation;
    }

    /* Mobile active/pressed state */
    .brand-card:active {
        background: rgba(212, 175, 55, 0.15);
        transform: scale(0.98);
        border-color: var(--primary-color);
    }

    /* Hero Section */
    .hero {
        height: 80vh;
    }

    .hero-content {
        padding: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.8rem;
        letter-spacing: 2px;
    }

    .hero-title {
        font-size: 2.8rem;
        margin-bottom: 1rem;
    }

    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }

    .cta-btn {
        padding: 0.9rem 2.5rem;
        font-size: 0.95rem;
    }

    /* Feature Cards Section */
    .feature-cards-section {
        padding: 3rem 0;
    }

    .feature-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .feature-card {
        padding: 2rem 1.5rem;
    }

    .feature-card-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 1.2rem;
    }

    .feature-card-icon svg {
        width: 35px;
        height: 35px;
    }

    .feature-card-title {
        font-size: 1.15rem;
    }

    .feature-card-description {
        font-size: 0.9rem;
    }

    /* Collection Section */
    .collection {
        padding: 5rem 0;
    }

    .section-header {
        margin-bottom: 3rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .filter-buttons {
        margin-bottom: 3rem;
        gap: 0.8rem;
    }

    .filter-btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.88rem;
    }

    /* Products Grid */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* About Section */
    .about {
        padding: 5rem 0;
    }

    .about-title {
        font-size: 2.2rem;
    }

    .about-description {
        font-size: 1rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Cart Sidebar */
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }

    /* Product Modal */
    .modal-content {
        width: 95%;
        max-width: none;
        margin: 1rem;
    }

    .modal-body {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }

    /* Footer */
    .footer {
        padding: 3rem 0 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Mobile Portrait */
@media (max-width: 480px) {

    /* Topbar - hide on very small screens */
    .topbar {
        display: none;
    }

    /* Navbar ultra compact */
    .navbar {
        padding: 0.8rem 0;
    }

    .nav-container {
        padding: 0 0.8rem;
        gap: 0.5rem;
    }

    .nav-logo h1 {
        font-size: 1.2rem;
    }

    .nav-search {
        padding: 0.15rem 0.15rem 0.15rem 0.8rem;
    }

    .search-input {
        font-size: 0.8rem;
        padding: 0.4rem 0;
    }

    .search-submit-btn {
        width: 32px;
        height: 32px;
    }

    .nav-actions {
        gap: 0.4rem;
    }

    .wishlist-btn,
    .cart-btn,
    .profile-btn {
        width: 34px;
        height: 34px;
    }

    /* Category Menu */
    .category-menubar {
        top: 60px;
    }

    .category-container {
        padding: 0 0.8rem;
        gap: 0.8rem;
    }

    .category-link {
        padding: 0.7rem 1rem;
        font-size: 0.85rem;
    }

    .category-quick-link {
        font-size: 0.8rem;
        padding: 0.7rem 0;
    }

    /* Brands Grid - single column on very small screens */
    .brands-grid {
        grid-template-columns: 1fr;
    }

    .brand-card {
        padding: 1rem;
        font-size: 0.9rem;
        /* Mobile specific: ensure clickable and proper touch target */
        pointer-events: auto;
        cursor: pointer;
        -webkit-tap-highlight-color: rgba(212, 175, 55, 0.2);
        user-select: none;
        -webkit-user-select: none;
        /* Better touch target */
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        /* Active state for mobile */
        touch-action: manipulation;
    }

    /* Mobile active/pressed state for very small screens */
    .brand-card:active {
        background: rgba(212, 175, 55, 0.15);
        transform: scale(0.98);
        border-color: var(--primary-color);
    }

    /* Hero */
    .hero {
        height: 70vh;
    }

    .hero-content {
        padding: 1rem;
    }

    .hero-title {
        font-size: 2.2rem;
        line-height: 1.1;
    }

    .hero-description {
        font-size: 0.9rem;
    }

    .cta-btn {
        padding: 0.8rem 2rem;
        font-size: 0.9rem;
    }

    /* Feature Cards Section Mobile */
    .feature-cards-section {
        padding: 2.5rem 0;
    }

    .feature-cards-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .feature-card {
        padding: 1.8rem 1.2rem;
        border-radius: 20px;
    }

    .feature-card-icon {
        width: 65px;
        height: 65px;
        margin-bottom: 1rem;
    }

    .feature-card-icon svg {
        width: 32px;
        height: 32px;
    }

    .feature-card-title {
        font-size: 1.1rem;
    }

    .feature-card-description {
        font-size: 0.88rem;
    }

    /* Sections */
    .collection,
    .about {
        padding: 4rem 0;
    }

    .container {
        padding: 0 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    .about-title {
        font-size: 1.8rem;
    }

    .filter-buttons {
        gap: 0.6rem;
    }

    .filter-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }

    /* Products */
    .products-grid {
        gap: 1.5rem;
    }

    /* Flash Sale Section - Mobile */
    .flash-sale-section {
        padding: 4rem 0;
        min-height: auto;
    }

    .flash-sale-header {
        margin-bottom: 3rem;
    }

    .flash-sale-badge {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }

    .flash-sale-badge svg {
        width: 18px;
        height: 18px;
    }

    .flash-sale-title {
        font-size: 2rem;
    }

    .countdown-timer {
        gap: 0.8rem;
        margin-top: 2rem;
    }

    .timer-unit {
        padding: 1rem 1.2rem;
        min-width: 70px;
    }

    .timer-value {
        font-size: 1.8rem;
    }

    .timer-label {
        font-size: 0.75rem;
    }

    .timer-separator {
        font-size: 1.5rem;
    }

    .flash-sale-grid {
        display: flex;
        /* Changed from grid to flex for slider */
        overflow-x: auto;
        gap: 1rem;
        margin-top: 2rem;
        padding-bottom: 2rem;
        /* Space for scrollbar/shadow */
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        /* Smooth scrolling on iOS */
        scrollbar-width: none;
        /* Hide scrollbar Firefox */
    }

    .flash-sale-grid::-webkit-scrollbar {
        display: none;
        /* Hide scrollbar Chrome/Safari */
    }

    .flash-product-card {
        min-width: 0;
        /* Fixed width for slider items */
        scroll-snap-align: center;
        border-radius: 16px;
    }

    /* Adjust padding for mobile view */
    .flash-sale-section {
        padding: 2rem 0 4rem;
        min-height: auto;
    }

    /* View More Button Styles */
    .flash-view-more-container {
        display: flex;
        justify-content: center;
        margin-top: 2rem;
    }

    .flash-view-more-btn {
        display: flex;
        align-items: center;
        gap: 0.8rem;
        padding: 0.8rem 2rem;
        background: transparent;
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: #fff;
        border-radius: 50px;
        font-size: 0.95rem;
        font-weight: 500;
        cursor: pointer;
        transition: var(--transition);
        backdrop-filter: blur(10px);
    }

    .flash-view-more-btn:hover {
        background: rgba(255, 255, 255, 0.1);
        border-color: var(--primary-color);
        color: var(--primary-color);
        transform: translateY(-3px);
    }

    .flash-view-more-btn svg {
        transition: var(--transition);
    }

    .flash-view-more-btn:hover svg {
        transform: translateX(5px);
    }

    .flash-product-card {
        border-radius: 16px;
    }

    .flash-discount-badge {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }

    .flash-product-image {
        height: 220px;
    }

    .flash-product-info {
        padding: 1.2rem;
    }

    .flash-product-name {
        font-size: 1.2rem;
    }

    .flash-product-category {
        font-size: 0.85rem;
    }

    .flash-price-row {
        gap: 0.8rem;
    }

    .flash-original-price {
        font-size: 1rem;
    }

    .flash-sale-price {
        font-size: 1.5rem;
    }

    .flash-add-to-cart {
        padding: 0.9rem 1.5rem;
        font-size: 0.9rem;
    }

    .product-card {
        border-radius: 15px;
    }

    .product-image {
        height: 260px;
    }

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

    .quick-view-btn,
    .add-to-cart-btn {
        width: 100%;
        padding: 0.9rem;
    }

    /* Cart */
    .cart-header h3 {
        font-size: 1.3rem;
    }

    .cart-item {
        padding: 1rem;
    }

    /* Footer */
    .footer {
        padding: 2.5rem 0 1.5rem;
    }

    .footer-section h3,
    .footer-section h4 {
        font-size: 1rem;
    }
}

/* Landscape orientation optimization */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        height: 100vh;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .scroll-indicator {
        display: none;
    }
}