/* Variable Definitions */
html {
    scroll-behavior: smooth;
}

button,
a {
    transition: all 0.3s ease;
}

:root {
    /* Premium Palette - 2.0 */
    --primary: #F0A500;
    /* Rich Amber Gold */
    --primary-light: #FFD460;
    --secondary: #E4E5E9;
    /* Soft Platinum */
    --accent: #FF6B6B;
    /* Vibrant Coral for Price/Sales */

    --bg-dark: #080808;
    /* Deepest Black */
    --bg-card: rgba(30, 30, 30, 0.4);
    /* Glass Base */
    --bg-gradient: radial-gradient(circle at top center, #1a1a1a 0%, #000000 100%);

    --text-main: #FFFFFF;
    --text-muted: #B3B3B3;

    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.15);
    --glass-blur: blur(12px);

    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Outfit', sans-serif;

    --transition-fast: 0.3s ease;
    --transition-smooth: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    /* Reduced font weight for performance */
    font-weight: 500;
    letter-spacing: -0.01em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    /* Removed animation for performance */
}

/* @keyframes shine { ... } REMOVED */

/* Sales Banner */
.sales-banner {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--accent);
    color: #000;
    text-align: center;
    padding: 0.5rem;
    font-size: 0.9rem;
    font-weight: 700;
    z-index: 1100;
    border-bottom: 2px solid #000;
}

/* Header Adjustments for Banner */
header {
    top: 35px;
    /* Push down header */
    transition: top 0.3s;
}

/* Floating Command Bar */
.filters-container {
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 60px;
    padding: 0.8rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    max-width: 700px;
    margin: 0 auto 3rem !important;
    /* Center it */
}

/* Floating Inputs */
#searchInput {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0.5rem 1rem !important;
    font-size: 1.1rem !important;
    color: #fff !important;
}

#searchInput:focus {
    transform: none;
    box-shadow: none !important;
}

/* Category Pills REMOVED */

/* Wishlist Heart Button */
.wishlist-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--glass-border);
    color: #fff;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.wishlist-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.wishlist-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 0 15px rgba(255, 107, 107, 0.4);
}

.wishlist-btn i {
    font-size: 1.1rem;
    pointer-events: none;
    /* ensure click hits button */
}


/* Social Proof Toast */
.social-toast {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--primary);
    padding: 1rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    max-width: 350px;
    transform: translateX(-150%);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-toast.active {
    transform: translateX(0);
}

.toast-img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
}


.brand {
    font-size: 2rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-main);
}

.nav-links a {
    margin-left: 3rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Toast Notification */
#toast {
    visibility: hidden;
    min-width: 250px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 16px;
    position: fixed;
    z-index: 1000;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

#toast.show {
    visibility: visible;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

@keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }

    to {
        bottom: 30px;
        opacity: 1;
    }
}

@keyframes fadeout {
    from {
        bottom: 30px;
        opacity: 1;
    }

    to {
        bottom: 0;
        opacity: 0;
    }
}

/* Hero Section */
/* Hero Section - Ultra Premium */
.hero {
    min-height: 95vh;
    /* Taller presence */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 2rem 4rem;
    background: radial-gradient(circle at center, #111 0%, #000 90%);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Ambient Glow Background */
.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150vw;
    height: 150vh;
    background: radial-gradient(circle, rgba(240, 165, 0, 0.08) 0%, transparent 60%);
    animation: pulseGlow 8s ease-in-out infinite alternate;
    z-index: -1;
    pointer-events: none;
}

@keyframes pulseGlow {
    from {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }

    to {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 1;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 6rem;
    /* Massive Editorial Title */
    font-weight: 400;
    /* Thinner weights look more premium */
    line-height: 1;
    margin-bottom: 2rem;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, #fff 0%, #aaa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hero-content .gradient-text {
    /* Override for the span to pop */
    font-weight: 700;
    text-shadow: 0 0 40px rgba(240, 165, 0, 0.3);
}

.hero-content p {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 3rem;
    line-height: 1.6;
    opacity: 0.9;
}

.cta-btn {
    display: inline-block;
    padding: 1.2rem 3.5rem;
    background: transparent;
    border: 1px solid var(--primary);
    border-radius: 50px;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--primary);
    transition: width 0.4s ease;
    z-index: -1;
}

.cta-btn:hover {
    color: #000;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
}

.cta-btn:hover::before {
    width: 100%;
}

/* Products Grid */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.products {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
}

/* Glass-morphism Level 100 */
.product-card {
    background: #111;
    /* Fallback for low-end */
    background: linear-gradient(145deg, rgba(30, 30, 30, 0.9) 0%, rgba(20, 20, 20, 0.95) 100%);
    /* backdrop-filter removed for performance on main cards */
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    /* Top highlight */
    border-radius: 16px;
    /* Softer corners */
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: rgba(240, 165, 0, 0.4);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

/* Shine effect on card hover */
.product-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.05), transparent);
    transform: skewX(-25deg);
    transition: 0s;
}

.product-card:hover::after {
    left: 150%;
    transition: 0.8s ease;
}

.product-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: #2a2a2a;
}

.product-info {
    padding: 1.5rem;
}

.product-cat {
    font-size: 0.8rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    display: block;
}

.product-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent);
}

.card-btn {
    width: 100%;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s;
    border-radius: 4px;
}

.card-btn:hover {
    background: var(--text-main);
    color: #000;
    border-color: var(--text-main);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: #0a0a0a;
    width: 90%;
    max-width: 500px;
    padding: 3rem;
    border-radius: 0;
    border: 1px solid var(--primary);
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
}

.close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
}

.modal form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.modal input,
.modal textarea,
.modal select {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-main);
    font-size: 1rem;
}

.modal input:focus {
    outline: none;
    border-color: var(--primary);
}

.modal button[type="submit"] {
    padding: 1rem;
    background: #25D366;
    /* WhatsApp Green */
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
}

.modal button[type="submit"]:hover {
    background: #1faf53;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #25D366;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 900;
    transition: transform 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.whatsapp-float:hover {
    transform: translateY(-5px);
}

/* Cart Float */
.cart-float {
    position: fixed;
    bottom: 7rem;
    /* Above WhatsApp button */
    right: 2rem;
    background: var(--primary);
    color: #000;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.4);
    z-index: 900;
    cursor: pointer;
    transition: transform 0.3s;
}

.cart-float:hover {
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: red;
    color: white;
    font-size: 0.8rem;
    font-weight: 800;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-card);
}

/* Cart Modal Specifics */
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    border-bottom: 1px solid var(--glass-border);
}

.cart-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 1rem;
}

.cart-item-info {
    flex-grow: 1;
}

.cart-item-remove {
    color: #ff4d4d;
    cursor: pointer;
    padding: 0.5rem;
}

/* Glass Footer */
footer {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
    border-top: 1px solid var(--glass-border);
    margin-top: 6rem;
    background: linear-gradient(to top, #000 0%, rgba(10, 10, 10, 0.8) 100%);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 10;
}

/* Living Background - Animated Orbs REMOVED */

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
        flex-wrap: wrap;
        margin-top: 1rem;
        background: rgba(0, 0, 0, 0.5);
        padding: 0.5rem;
        border-radius: 20px;
    }

    .nav-links a {
        margin-left: 0.5rem;
        margin-right: 0.5rem;
        font-size: 0.8rem;
    }

    /* Mobile 2-Column Grid (Perfected) */
    .container {
        padding: 2rem 1rem;
    }

    /* .products rule moved to specific breakpoints below */

    .product-card {
        border-radius: 12px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    }

    .product-img {
        height: 160px;
    }

    .product-info {
        padding: 1rem;
    }

    .product-cat {
        display: block;
        /* Show category again */
        font-size: 0.7rem;
        margin-bottom: 0.3rem;
    }

    .product-title {
        font-size: 1rem;
        white-space: normal;
        margin-bottom: 0.5rem;
    }

    .product-price {
        font-size: 1.1rem;
        color: var(--accent);
    }

    .card-btn {
        padding: 0.6rem;
        font-size: 0.9rem;
        margin-top: 0.8rem;
    }

    .cta-btn {
        font-size: 0.9rem !important;
        padding: 0.6rem !important;
    }

    /* Mobile Adjustments for New Features */
    .sales-banner {
        font-size: 0.7rem;
    }

    header {
        top: 30px;
    }

    .social-toast {
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
        width: auto;
        max-width: none;
    }


    /* Tablet & Mobile Grid Adjustments */
    @media (max-width: 1200px) {
        .products {
            grid-template-columns: repeat(3, 1fr);
        }
    }

    @media (max-width: 500px) {
        .container {
            padding: 1rem 0.5rem;
        }

        .products {
            grid-template-columns: repeat(2, 1fr);
            gap: 0.5rem;
        }

        .product-card {
            border-radius: 8px;
        }

        .product-img {
            height: 120px;
        }

        .product-info {
            padding: 0.5rem;
        }

        .product-cat {
            font-size: 0.6rem;
            margin-bottom: 0.2rem;
        }

        .product-title {
            font-size: 0.85rem;
            margin-bottom: 0.3rem;
            line-height: 1.2;
        }

        .product-price {
            font-size: 0.95rem;
        }

        .card-btn {
            padding: 0.4rem;
            font-size: 0.8rem;
            margin-top: 0.5rem;
        }
    }
}

/* Loading Spinner */
.spinner-container {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Progress Bar */
#scrollProgress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    z-index: 2000;
    transition: width 0.1s;
    box-shadow: 0 0 10px var(--primary);
}

/* Back to Top Button REMOVED */

/* Cart Float */
.cart-float {
    bottom: 8.5rem !important;
    /* Higher up */
}

/* Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 0.6s linear;
    background-color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Ensure buttons have relative position for ripple */
.cta-btn,
.card-btn,
.filter-btn,
.pill {
    position: relative;
    overflow: hidden;
}