:root {
    /* Color Palette (HSL for modern control) */
    --clr-bg: 0 0% 4%;            /* Deep Black */
    --clr-surface: 0 0% 8%;       /* Dark Charcoal */
    --clr-text: 0 0% 98%;         /* Off White */
    --clr-text-muted: 0 0% 70%;
    --clr-primary: 262 70% 60%;   /* Royal Purple */
    --clr-accent: 330 80% 60%;    /* Deep Pink */
    --clr-success: 142 70% 50%;
    --clr-error: 0 80% 60%;
    
    /* Spacing Scale (Strict 8px Grid) */
    --space-1: 0.5rem;   /* 8px */
    --space-2: 1rem;     /* 16px */
    --space-3: 1.5rem;   /* 24px */
    --space-4: 2rem;     /* 32px */
    --space-6: 3rem;     /* 48px */
    --space-8: 4rem;     /* 64px */

    /* Typography */
    --ff-primary: 'Outfit', sans-serif;
    --ff-secondary: 'Inter', sans-serif;
    
    /* Layout */
    --container-max-width: 1200px;
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: hsl(var(--clr-bg));
    color: hsl(var(--clr-text));
    font-family: var(--ff-secondary);
    line-height: 1.6;
    overflow-x: hidden;
    opacity: 0;
    animation: fadeIn var(--transition-smooth) forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

h1, h2, h3, .logo {
    font-family: var(--ff-primary);
    font-weight: 600;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--space-2);
}

/* Modal Overlay (Age Gate) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    display: flex;
    align-items: flex-start; /* Start from top to allow scrolling */
    justify-content: center;
    backdrop-filter: blur(10px);
    transition: opacity var(--transition-smooth);
    overflow-y: auto; /* Enable scrolling */
    padding: var(--space-8) var(--space-2); /* Add space for the modal to breathe */
}

.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-content {
    background-color: hsl(var(--clr-surface));
    padding: var(--space-6);
    border-radius: var(--space-2);
    max-width: 500px;
    width: 100%; /* Ensure it takes full width on small screens */
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    position: relative; /* For the close button */
    margin: auto; /* Center horizontally/vertically if content is small */
}

.modal-content h1 {
    font-size: 2.5rem;
    margin-bottom: var(--space-2);
}

.modal-actions {
    display: flex;
    gap: var(--space-2);
    justify-content: center;
    margin-top: var(--space-4);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, hsl(var(--clr-primary)), hsl(var(--clr-accent)));
    color: white;
    padding: var(--space-1) var(--space-4);
    border: none;
    border-radius: 50px;
    font-family: var(--ff-primary);
    font-weight: 600;
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.btn-primary:hover {
    transform: scale(1.05);
}

.btn-secondary {
    background: transparent;
    color: hsl(var(--clr-text-muted));
    padding: var(--space-1) var(--space-4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-secondary:hover {
    border-color: white;
    color: white;
}

/* Layout Parts */
.main-header {
    padding: var(--space-2) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    letter-spacing: 2px;
    text-decoration: none;
    color: white;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: var(--space-4);
}

.nav-links a {
    text-decoration: none;
    color: hsl(var(--clr-text-muted));
    font-weight: 500;
    transition: color var(--transition-fast);
}

.nav-links a:hover {
    color: white;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: var(--space-1);
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: white;
    transition: var(--transition-fast);
}

.hero {
    padding: var(--space-8) 0;
    text-align: center;
}

.hero h2 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: var(--space-2);
}

.hero h2 span {
    background: linear-gradient(90deg, hsl(var(--clr-primary)), hsl(var(--clr-accent)));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-4);
}

.filters {
    display: flex;
    gap: var(--space-1);
}

.filter-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: hsl(var(--clr-text-muted));
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-btn.active, .filter-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border-color: white;
}

.hidden {
    display: none;
}

.empty-state {
    text-align: center;
    padding: var(--space-8) 0;
    color: hsl(var(--clr-text-muted));
}

.suggestion-grid {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    margin-top: var(--space-4);
}

.product-card-mini {
    width: 150px;
    text-align: center;
}

.product-card-mini img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: var(--space-1);
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
    }

    .hero h2 {
        font-size: 2.5rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-2);
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: hsl(var(--clr-bg));
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right var(--transition-smooth);
        z-index: 1000;
        border-left: 1px solid rgba(255, 255, 255, 0.05);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: var(--space-2) 0;
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    /* Animation for active toggle */
    .mobile-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

.btn-close {
    position: absolute;
    top: var(--space-2);
    right: var(--space-2);
    background: transparent;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.product-details h2 {
    font-size: 2.5rem;
    margin-bottom: var(--space-1);
}

.product-details .product-price {
    font-size: 1.5rem;
    margin-bottom: var(--space-3);
}

.product-details .product-desc {
    margin-bottom: var(--space-4);
    font-size: 1.1rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-4);
    margin-top: var(--space-4);
}

.guide-card {
    background: rgba(255, 255, 255, 0.02);
    padding: var(--space-3);
    border-radius: var(--space-2);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.guide-card h4 {
    font-size: 1.5rem;
    margin-bottom: var(--space-1);
}

.btn-link {
    background: none;
    border: none;
    color: hsl(var(--clr-primary));
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    margin-top: var(--space-2);
}

.guide-content h1, .guide-content h2, .guide-content h3 {
    margin: var(--space-3) 0 var(--space-1);
}

.guide-content p {
    margin-bottom: var(--space-2);
}

.guide-content ul {
    margin-left: var(--space-3);
    margin-bottom: var(--space-2);
}
