/* --- Global Styles (from header.php) --- */
body { 
    font-family: 'Inter', sans-serif; 
    background-color: #f8fafc; 
    padding-top: var(--header-height); /* Prevent content jump from fixed header */
}

:root { 
    --header-height: 0px; /* This will be set by global.js */
}

/* --- Brand Colors --- */
.ev-green { color: #10B981; }
.bg-ev-green { background-color: #10B981; }
.border-ev-green { border-color: #10B981; }
.hover\:bg-ev-green-dark:hover { background-color: #059669; }

/* --- Global Components & Utilities --- */

.fade-in-section { 
    opacity: 0; 
    transform: translateY(25px); 
    transition: opacity 0.6s ease-out, transform 0.6s ease-out; 
}
.fade-in-section.is-visible { 
    opacity: 1; 
    transform: translateY(0); 
}

.custom-select {
    -webkit-appearance: none; 
    -moz-appearance: none; 
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat; 
    background-position: right 0.75rem center; 
    background-size: 1.2em; 
    padding-right: 2.5rem;
}

.category-card { 
    transition: all 0.3s ease; 
}

/* --- Header Effects --- */
.header-hidden { 
    transform: translateY(-100%); 
}

/* --- Global Swiper (Slider) Styles --- */

.swiper-container { 
    width: 100%; 
}
.swiper-slide { 
    height: auto; 
    display: flex; 
    flex-direction: column; 
}
.swiper-slide > div, .swiper-slide > a { 
    height: 100%; 
}

/* Base styles for Swiper navigation buttons (hidden on mobile by default) */
.swiper-button-next, .swiper-button-prev {
    display: none; 
    position: absolute; 
    top: 50%; 
    transform: translateY(-50%);
    width: 44px; 
    height: 44px; 
    color: #6b7280; 
    z-index: 10; 
    cursor: pointer;
    transition: color 0.2s ease; 
    background: none;
}
.swiper-button-next:hover, .swiper-button-prev:hover { 
    color: #10B981; 
}
.swiper-button-next::after, .swiper-button-prev::after { 
    font-size: 24px; 
    font-weight: bold; 
}

/* --- Media Queries for Global Styles --- */

@media (min-width: 768px) {
    /* Show swiper buttons on desktop */
    .swiper-button-next, .swiper-button-prev { 
        display: flex; 
        align-items: center; 
        justify-content: center; 
    }
}

@media (max-width: 767px) {
    .swiper-container { 
        overflow: hidden; /* Allow slides to peek */
    }
    .swiper-slide { 
        width: 80%; /* Default mobile slide width */
        flex-shrink: 0; 
    }
    .swiper-slide > div, .swiper-slide > a { 
        box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.07), 0 1px 2px 0 rgba(0, 0, 0, 0.04); 
    }
}

@media (hover: hover) {
    .category-card:hover { 
        transform: translateY(-5px); 
        box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.1), 0 4px 6px -2px rgba(16, 185, 129, 0.05); 
        border-color: #10B981; 
    }
}