/* 
   Magia de Mulambo - Design System
   Color Palette: Deep Purple, Black, Indigo, Silver
*/

:root {
    --primary-color: #8E2DE2; /* Deeper Mystic Purple Start */
    --secondary-color: #4A00E0; /* Deeper Mystic Purple End */
    --gold: #D4AF37; /* Premium Gold */
    --gold-gradient: linear-gradient(135deg, #F9D423, #FF4E50);
    --gold-glow: 0 0 20px rgba(212, 175, 55, 0.4);
    --primary-hover: #9b4dff;
    --bg-dark: #070311; /* Deepest space purple instead of pure black */
    --bg-card: rgba(20, 10, 30, 0.65); /* For Glassmorphism */
    --text-light: #ffffff;
    --text-muted: #c1b3d6;
    --accent: #F9D423; /* Gold Accent */
    --white: #ffffff;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    --border-radius: 20px;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(212, 175, 55, 0.15); /* Subtly gold tinted border */
    --neon-glow: 0 0 20px rgba(142, 45, 226, 0.6);
}

/* Custom Cursor */
.custom-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease;
    mix-blend-mode: difference;
}

.custom-cursor-dot {
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    box-shadow: var(--neon-glow);
}

/* Background Particles Container */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at center, #1a0b2e 0%, #050505 100%);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--primary-color), var(--secondary-color));
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    background: radial-gradient(circle at center, #1a0b2e 0%, #070311 100%) no-repeat fixed;
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, .logo {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Header --- */
header {
    background-color: rgba(5, 5, 5, 0.8);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.top-bar {
    background-color: #000;
    padding: 8px 0;
    font-size: 12px;
    text-align: right;
}

.top-bar a {
    margin-left: 20px;
    color: var(--text-muted);
}

.top-bar a:hover {
    color: var(--primary-color);
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 28px;
    color: var(--primary-color);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav-menu ul {
    display: flex;
    gap: 30px;
}

.nav-menu a {
    font-weight: 500;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}

.logo img {
    display: block;
    max-width: 100%;
    color: var(--primary-color);
    font-family: 'Playfair Display', serif;
    font-weight: 800;
    font-size: 1.2rem;
}

.header-icons {
    display: flex;
    gap: 20px;
    align-items: center;
}

.cart-icon {
    position: relative;
    cursor: pointer;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: var(--primary-color);
    color: #000;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 50%;
}

/* --- Hero Banner --- */
.hero {
    height: 85vh;
    background: linear-gradient(to right, rgba(7, 3, 17, 0.8), rgba(7, 3, 17, 0.4)), url('../img/WhatsApp Image 2026-05-12 at 22.48.08 (9).jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax Effect */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to top, var(--bg-dark), transparent);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-light);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold), #f39c12);
    color: #000;
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 800;
    text-transform: uppercase;
    display: inline-block;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    letter-spacing: 2px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: all 0.6s ease;
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.6);
    filter: brightness(1.1);
}

.btn-primary:hover::after {
    left: 100%;
}

.btn-outline {
    background: transparent;
    color: var(--gold);
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 800;
    text-transform: uppercase;
    display: inline-block;
    transition: var(--transition);
    border: 2px solid var(--gold);
    cursor: pointer;
    letter-spacing: 2px;
}

.btn-outline:hover {
    background: var(--gold);
    color: #000;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.6);
}

.highlights-section {
    background-color: #000;
    padding: 40px 0;
    border-bottom: 1px solid var(--glass-border);
}

.highlights-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.highlight-item i {
    color: var(--primary-color);
    font-size: 24px;
}

.highlight-item h4 {
    color: var(--white);
    font-size: 1rem;
}

.highlight-item p {
    font-size: 12px;
    color: var(--text-muted);
}

/* --- Sections --- */
section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 4px;
    position: relative;
    display: inline-block;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.section-title h2::after {
    content: '✦';
    position: absolute;
    right: -45px;
    top: -10px;
    font-size: 2rem;
    color: var(--gold);
    filter: drop-shadow(0 0 10px var(--gold));
    animation: sparklePulse 2s infinite ease-in-out;
}

@keyframes sparklePulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 1; }
}

.section-title .divider {
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 0 auto;
}

/* --- Product Cards --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    background: linear-gradient(145deg, var(--bg-card), rgba(10, 5, 20, 0.8));
    backdrop-filter: blur(15px);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.product-img {
    height: 320px;
    overflow: hidden;
    position: relative;
}

.product-img::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(5,5,5,0.8), transparent);
}

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

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

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary-color);
    color: #000;
    font-size: 10px;
    font-weight: 800;
    padding: 5px 10px;
    border-radius: 20px;
    text-transform: uppercase;
}

.product-info {
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}

.product-cat {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 5px;
}

.product-name {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: var(--white);
    font-weight: 500;
    line-height: 1.4;
    height: 2.8em; /* 2 lines exactly */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-price {
    font-weight: 800;
    color: var(--gold);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.product-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

.product-actions .btn-view-product {
    padding: 10px 20px !important;
    font-size: 12px !important;
    flex: 1;
    text-align: center;
    border-radius: var(--border-radius);
    line-height: 1.2;
    cursor: pointer;
}

.product-actions .btn-add-cart {
    padding: 10px 20px !important;
    font-size: 12px !important;
    flex: 1;
    background: #000 !important;
    color: #fff !important;
    border: 1px solid var(--gold) !important;
    border-radius: var(--border-radius);
    text-align: center;
    line-height: 1.2;
    cursor: pointer;
    box-shadow: none !important;
    transition: var(--transition);
}

.product-actions .btn-add-cart:hover {
    background: var(--gold) !important;
    color: #000 !important;
    box-shadow: var(--gold-glow) !important;
}

/* --- Cart Sidebar --- */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 350px;
    height: 100%;
    background-color: var(--bg-card);
    z-index: 2000;
    box-shadow: -5px 0 15px rgba(0,0,0,0.5);
    transition: 0.4s ease;
    padding: 30px;
    display: flex;
    flex-direction: column;
}

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

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

.close-cart {
    cursor: pointer;
    font-size: 24px;
}

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

.cart-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 15px;
}

.cart-item-img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.cart-item-info h4 {
    font-size: 14px;
    margin-bottom: 5px;
}

.cart-item-price {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 14px;
}

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

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

/* --- Footer --- */
footer {
    background-color: #0a0a0a;
    padding: 60px 0 20px;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    margin-top: auto; /* Pin footer to bottom */
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a {
    color: var(--text-muted);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 12px;
    color: var(--text-muted);
}

/* --- WhatsApp Button --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(45deg, #25d366, #128c7e);
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    z-index: 999;
    transition: var(--transition);
}

/* Mystical Floating Moons */
.moon-float {
    position: absolute;
    opacity: 0.1;
    pointer-events: none;
    z-index: 0;
    animation: float 10s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* --- Newsletter --- */
.newsletter {
    background-color: var(--accent);
    text-align: center;
    padding: 60px 0;
}

.newsletter h2 {
    color: var(--white);
    margin-bottom: 20px;
}

.newsletter form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 10px;
}

.newsletter input {
    flex: 1;
    padding: 12px 20px;
    border-radius: 30px;
    border: none;
    outline: none;
}

/* --- Cookie Banner --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(30, 30, 30, 0.95);
    padding: 15px;
    text-align: center;
    z-index: 3000;
    border-top: 2px solid var(--primary-color);
    display: none;
}

.cookie-banner.show {
    display: block;
}

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

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

/* Responsive Checkout Form Grid */
.checkout-grid-1 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}
.checkout-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.checkout-grid-1-2 {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 15px;
}
.checkout-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
}
.checkout-grid-2-1 {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 15px;
}

.checkout-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.85);
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 20px 10px;
    overflow-y: auto;
    box-sizing: border-box;
}

.checkout-modal-content {
    background: linear-gradient(145deg, #100a1e, #070311);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: var(--border-radius);
    width: 100%;
    max-width: 600px;
    box-shadow: var(--shadow);
    position: relative;
    color: #fff;
    box-sizing: border-box;
    margin-top: 40px;
    margin-bottom: 40px;
}

/* --- Mobile --- */
.mobile-menu-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .container {
        width: 92%;
    }

    .top-bar {
        text-align: center;
        padding: 10px 0;
    }

    .top-bar a {
        margin: 0 10px;
        font-size: 11px;
    }

    .header-main {
        padding: 10px 0;
    }

    .logo img {
        height: 40px !important;
    }

    .logo span {
        font-size: 1rem !important;
        letter-spacing: 1px !important;
    }

    .logo {
        gap: 8px !important;
    }

    .nav-menu {
        display: none;
    }
    
    .nav-menu.active {
        display: block !important;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(5, 5, 5, 0.98);
        padding: 40px 20px;
        border-bottom: 2px solid var(--primary-color);
        backdrop-filter: blur(40px);
        -webkit-backdrop-filter: blur(40px);
        z-index: 1000;
        animation: slideInDown 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-menu.active ul {
        flex-direction: column;
        gap: 25px;
        text-align: center;
    }

    .nav-menu.active a {
        font-size: 18px;
        letter-spacing: 2px;
    }
    
    .mobile-menu-btn {
        display: block;
        font-size: 28px;
        color: var(--primary-color);
    }
    
    .hero {
        height: 70vh;
        padding: 0 20px;
    }

    .hero-content h1 {
        font-size: 2.2rem !important;
        line-height: 1.1;
    }

    .hero-content p {
        font-size: 1.1rem;
        margin-top: 15px;
    }
    
    .section-title h2 {
        font-size: 2.2rem;
        letter-spacing: 2px;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }

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

    .product-img {
        height: 220px;
    }

    .product-badge {
        font-size: 8px;
        padding: 4px 8px;
    }

    .product-info {
        padding: 15px;
    }

    .product-name {
        font-size: 0.95rem;
        line-height: 1.3;
        height: 2.6em; /* 2 lines exactly */
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .product-price {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }

    .btn-primary {
        padding: 12px 25px;
        font-size: 13px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 50px;
    }

    .footer-col {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-col h3 {
        margin-bottom: 15px;
    }

    .footer-bottom {
        padding: 30px 0;
    }

    .cart-sidebar {
        width: 100%;
        max-width: 100%;
        right: -100%;
        padding: 20px 15px;
    }

    section {
        padding: 50px 0;
    }

    .product-actions {
        flex-direction: column;
        gap: 8px;
    }

    .checkout-grid-2,
    .checkout-grid-1-2,
    .checkout-grid-3,
    .checkout-grid-2-1 {
        grid-template-columns: 1fr !important;
    }

    .checkout-modal-content {
        padding: 20px 15px;
        border-radius: 12px;
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .newsletter {
        padding: 60px 0;
    }

    .newsletter .container > div {
        padding: 40px 20px;
    }

    .newsletter h2 {
        font-size: 1.8rem;
    }

    .newsletter form {
        flex-direction: column;
        gap: 15px;
    }

    .newsletter input {
        border-radius: 30px;
    }

    .highlights-container {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .highlight-item {
        width: 100%;
        justify-content: center;
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Department Category Cards Hover Animation */
.dept-card {
    transition: var(--transition);
}
.dept-card:hover {
    transform: translateY(-8px) scale(1.03);
    border-color: var(--gold) !important;
    box-shadow: 0 15px 30px rgba(212, 175, 55, 0.15), var(--gold-glow);
}
.dept-card:hover .dept-icon {
    transform: scale(1.15) rotate(5deg);
    color: var(--white) !important;
}
.dept-icon {
    transition: var(--transition);
}

