/* --- BASE STYLE --- */
:root {
    --active-color: #960018; 
    --bg-color: #f5f5f5; 
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Rajdhani', sans-serif !important;
}

body {
    font-family: 'Rajdhani', sans-serif !important;
    font-weight: 300;
    background-color: var(--bg-color);
    color: #080808;
    cursor: none;
    overflow-x: hidden;
    position: relative;
}

/* --- FADE OVERLAYS --- */
.fade-overlay-top, .fade-overlay-bottom {
    display: none; /* Hidden by default */
}

body.products-page .fade-overlay-top,
body.info-page .fade-overlay-top {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 94px;
    background: linear-gradient(to bottom, var(--bg-color) 20%, rgba(245, 245, 245, 0) 100%);
    z-index: 50; 
    pointer-events: none;
}

body.products-page .fade-overlay-bottom,
body.info-page .fade-overlay-bottom {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px; /* Reduced from 110px */
    background: linear-gradient(to top, var(--bg-color) 10%, rgba(245, 245, 245, 0) 100%);
    z-index: 50; 
    pointer-events: none;
}

/* --- BACKGROUND GRAIN --- */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 2; 
}

.container {
    position: relative;
    /* z-index: 10; REMOVED to allow children to escape stacking context */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

/* Content Layers (Below Overlay) */
main, .info-container, .products-container, .gallery-container, .preorder-container, .notify-container {
    position: relative;
    z-index: 3; 
}

/* UI Layers (Above Overlay) */
.logo-container, .mini-logo-container, .main-nav, .mobile-menu-toggle, .mobile-nav-overlay {
    z-index: 1000 !important;
}

/* --- LINKS --- */
a {
    text-decoration: none;
    color: inherit;
    cursor: none;
    font-family: 'Rajdhani', sans-serif !important;
    font-weight: 300;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

a:hover {
    color: var(--active-color);
    font-weight: 300;
    text-decoration: none;
}

a.active {
    color: var(--active-color) !important;
    font-weight: 300;
    text-decoration: underline;
    text-underline-offset: 8px;
    text-decoration-thickness: 2px;
}

strong, b, .highlight {
    color: var(--active-color);
    font-weight: 300;
}

/* --- NAVIGATION --- */
.main-nav {
    display: flex;
    gap: 25px; 
    font-size: 1.3rem; 
    font-family: 'Rajdhani', sans-serif !important;
    font-weight: 300;
    text-transform: lowercase;
    position: relative;
    align-items: center;
    justify-content: center; /* Restore default centered alignment */
    z-index: 1000; 
    width: auto; /* Changed from 100% to allow centering */
}

/* Specific centering for internal pages relative to the left visual section (at 25% screen width) */
body:not(.home-page) .main-nav {
    position: fixed;
    top: 20px;
    left: 25%; /* Align with the visual section center of product pages */
    transform: translateX(-50%);
    width: auto;
}

.leaves-icon {
    width: 13px; /* Set to 13px */
    height: auto;
    vertical-align: middle;
    transition: opacity 0.3s ease;
    filter: brightness(0.05); /* Match the dark text color #080808 */
}

/* --- EFFECTS DROPDOWN --- */
.effects-nav-item {
    position: relative;
    display: inline-block;
}

.effects-dropdown {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center icons horizontally */
    gap: 12px;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: transparent; 
    padding: 10px 10px; /* Reduced padding */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 1001;
    border: none;
    box-shadow: none; 
    margin-top: 5px; /* Moved higher (from 10px) */
}

.effects-nav-item:hover .effects-dropdown,
.effects-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(2px);
}

.effect-option {
    cursor: none;
    transition: transform 0.3s ease, opacity 0.3s ease, filter 0.3s ease;
    opacity: 0.3;
    height: auto;
    filter: brightness(0.05);
}

.effect-option[data-effect="leaves"] {
    width: 13px; /* Leaf icon size */
}

.effect-option[data-effect="snow"] {
    width: 18px; /* Increased snow icon size to 18px */
}

.effect-option:hover, .effect-option.active {
    opacity: 1;
    transform: scale(1.2);
    filter: brightness(0) sepia(1) hue-rotate(-50deg) saturate(5); 
}

.effect-option:hover, .effect-option.active {
    opacity: 1;
    transform: scale(1.2);
    filter: brightness(0) sepia(1) hue-rotate(-50deg) saturate(5); /* Slight tint for active */
}

.nav-item {
    position: relative;
    display: inline-block;
    height: 100%;
}

.dropdown-content {
    display: block;
    position: absolute;
    background-color: transparent; /* Changed from var(--bg-color) to transparent */
    min-width: 160px;
    box-shadow: none;
    z-index: 1001;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 15px 0;
    border: none;
    text-align: center;
    pointer-events: none;
}

.nav-item:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.dropdown-content a {
    color: #080808;
    padding: 4px 0; /* Compacted from 8px */
    text-decoration: none;
    display: block;
    font-size: 16px; /* Increased by 3px from 13px */
    white-space: nowrap;
    opacity: 1 !important;
    filter: none !important;
}

.dropdown-content a:hover {
    color: var(--active-color);
    background-color: rgba(150, 0, 24, 0.05);
}

/* --- CUSTOM CURSOR --- */
#custom-cursor {
    position: fixed;
    width: 10px;
    height: 10px;
    border: 1px solid #080808;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

@media (hover: none) and (pointer: coarse) {
    #custom-cursor { display: none; }
    body { cursor: auto !important; }
    a, button { cursor: pointer !important; }
}

#custom-cursor.vertical-morph {
    width: 9px;
    height: 24px;
    border-radius: 4px;
    background-color: rgba(150, 0, 24, 0.2);
    border-color: var(--active-color);
}

/* --- PRIVACY PAGE --- */
.privacy-container {
    max-width: 800px;
    margin: 150px auto;
    padding: 0 40px;
    text-align: left;
    opacity: 0;
    transition: opacity 1s ease;
}

.privacy-container h1 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-transform: lowercase;
    text-align: center;
}

.privacy-container h2 {
    font-size: 1.4rem;
    margin: 30px 0 15px 0;
    text-transform: lowercase;
    color: var(--active-color);
}

.privacy-container p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #333;
}

/* --- UNIFIED FOOTER (INTERNAL PAGES) --- */
.unified-footer {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 0.8rem;
    text-transform: lowercase;
    opacity: 0;
    transition: opacity 1s ease; /* Removed delay, matched standard fade time */
    z-index: 2000;
    pointer-events: none;
    white-space: nowrap;
}

.unified-footer.visible {
    opacity: 1;
    pointer-events: auto;
}

.footer-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-separator {
    color: #080808;
    opacity: 0.5;
    font-size: 0.9rem;
    font-weight: 300;
}

/* Reusing existing button styles within the new structure */
.unified-footer button, .unified-footer a {
    background: none;
    border: none;
    font-family: 'Rajdhani', sans-serif !important;
    font-weight: 300;
    font-size: inherit;
    color: #080808;
    cursor: none;
    text-decoration: none;
}

/* Specific underline for Privacy Policy */
.unified-footer a[href="privacy.html"] {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.unified-footer button:hover, .unified-footer a:hover {
    color: var(--active-color);
}

.unified-footer .lang-btn.active {
    text-decoration: underline;
    text-underline-offset: 4px;
    color: var(--active-color) !important;
    font-weight: 600;
}

/* --- UNIFIED FOOTER GLOBAL --- */
/* Legacy controls removed. Unified footer applies to all pages. */

/* --- MOBILE MEDIA QUERY --- */
@media (max-width: 768px) {
    .unified-footer {
        bottom: 20px;
        font-size: 0.7rem;
        gap: 10px;
        flex-wrap: wrap; /* Allow wrapping on very small screens */
    }
    
    .footer-separator {
        display: inline-block;
        margin: 0 2px;
    }

    .main-nav {
        gap: 15px;
        font-size: 1rem;
        padding: 0 10px;
    }
    
    .fade-overlay-top, .fade-overlay-bottom {
        height: 180px;
    }

    .dropdown-content {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        background: transparent;
        display: none;
        opacity: 1;
        visibility: visible;
        padding: 5px 0;
    }
    .nav-item.active-mobile .dropdown-content {
        display: block;
    }
}
