:root {
    --var-theme-color: #0a60c5;
    --var-theme-color-secondary: #169d00;
    --bg-creme: #FBFBFA;
}

body {
    font-family: 'Jost', sans-serif;
    background-color: var(--bg-creme);
    color: #1a1a1a;
    overflow-x: hidden;
}

.font-regal { 
    font-family: 'Prata', serif; 
}

/* 1. Nav Container Layering Structure */
nav {
    z-index: 2000 !important;
    isolation: isolate;
}

/* 2. Mobile Responsive Drawer Configuration */
@media (max-width: 767px) {
    #mobile-wrapper {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: white;
        z-index: 2000;
        padding: 100px 40px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 30px rgba(0,0,0,0.15);
        display: flex;
        flex-direction: column;
    }
    #mobile-wrapper.active {
        right: 0;
    }
    .dropdown-menu { 
        display: block !important; 
        position: static !important; 
        opacity: 1 !important; 
        visibility: visible !important;
        padding-left: 1rem;
    }
}

/* 3. Global UI Overlays */
#nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s;
}
#nav-overlay.active { 
    opacity: 1; 
    visibility: visible; 
}

/* 4. Desktop Hover Systems & Dropdowns */
@media (min-width: 768px) {
    .dropdown:hover .dropdown-menu { 
        display: block; 
        animation: slideUp 0.5s; 
    }
}

@keyframes slideUp { 
    from { opacity: 0; transform: translateY(10px); } 
    to { opacity: 1; transform: translateY(0); } 
}

.dropdown {
    position: relative;
    padding-bottom: 10px;
    margin-bottom: -10px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 220px;
    background-color: white;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-top: 2px solid var(--var-theme-color); /* Updated variable hook to fix color fallback bug */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 50;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media (max-width: 767px) {
    .dropdown-menu {
        position: static !important;
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none !important;
    }
}

/* 5. Custom Themed Buttons */
.btn-premium {
    border: 1px solid var(--var-theme-color);
    color: var(--var-theme-color);
    padding: 12px 30px;
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 12px;
    font-weight: 600;
}
.btn-premium:hover {
    background: var(--var-theme-color);
    color: white;
    box-shadow: 0 10px 20px rgba(10, 96, 197, 0.2);
}

/* 6. Dynamic Image Cards */
.category-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.4s ease;
}
.category-card:hover {
    transform: translateY(-10px);
}
.category-image {
    height: 350px;
    width: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.category-card:hover .category-image {
    transform: scale(1.08);
}

/* 7. Typography Accents */
.title-line::after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background: var(--var-theme-color);
    margin: 15px auto;
}

/* 8. Utility Menu Micro-animations */
#mobile-menu:not(.hidden) {
    display: block;
    animation: fadeInDown 0.3s ease-out forwards;
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Swiper Custom Navigation Button Centering Overrides */
.swiper-button-prev, .swiper-button-next {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Clear out old pseudo-element font rule locks */
.swiper-button-prev::after, .swiper-button-next::after {
    display: none !important;
}

/* Typography-Based Category Layout Animations */
.text-category-card {
    transition: all 0.3s ease-in-out;
}

.text-category-card h3 {
    transition: color 0.3s ease;
}

.text-category-card div {
    transition: background-color 0.4s ease, transform 0.4s ease;
}

/* Subtle elevation lift on text hover */
.text-category-card:hover {
    transform: translateY(-4px);
}