/* ==================== CUSTOM ANIMATIONS ==================== */

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

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

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

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

.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.8s ease-out;
}

.animate-fade-in-right {
    animation: fadeInRight 0.8s ease-out;
}

.animate-slide-down {
    animation: slideDown 0.5s ease-out;
}

/* ==================== NAVBAR SCROLLED STATE ==================== */

.navbar-scrolled {
    background-color: rgba(27, 42, 74, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* ==================== SMOOTH SCROLL ==================== */

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* ==================== PRODUCT FILTER ==================== */

.product-card {
    transition: all 0.4s ease;
}

.product-card.hidden-card {
    display: none;
}

/* ==================== FILTER BUTTON ACTIVE STATE ==================== */

.filter-btn.active {
    background-color: #1B2A4A;
    color: white;
}

/* ==================== FLOATING WHATSAPP PULSE ==================== */

@keyframes pulse-slow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(34, 197, 94, 0);
    }
}

.animate-pulse-slow {
    animation: pulse-slow 2s infinite;
}

/* ==================== HOVER EFFECTS ==================== */

.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* ==================== SCROLLBAR CUSTOM ==================== */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #D4A017, #B8860B);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #B8860B, #8B6914);
}

/* ==================== RESPONSIVE ADJUSTMENTS ==================== */

@media (max-width: 768px) {
    .nav-text-color {
        color: white !important;
    }
}

/* ==================== STAR RATING ==================== */
.star-btn {
    transition: color 0.15s ease, transform 0.15s ease;
    cursor: pointer;
    user-select: none;
    color: #4B5563 !important;
}
.star-btn.gold {
    color: #FFCC33 !important;
}
.star-btn:hover {
    transform: scale(1.2);
}

/* ==================== LOADING ANIMATION ==================== */

.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
