/* ================= HOMEPAGE ENHANCEMENTS CSS ================= */
/* Additional styles for enhanced homepage functionality */

/* ================= PERFORMANCE & LOADING ================= */
/* Skeleton Loading States */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 8px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text {
    height: 1rem;
    margin-bottom: 0.5rem;
}

.skeleton-text.short { width: 60%; }
.skeleton-text.medium { width: 80%; }
.skeleton-text.long { width: 100%; }

.skeleton-image {
    height: 200px;
    width: 100%;
}

.skeleton-card {
    padding: 1rem;
    border-radius: 12px;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Lazy Loading Image Styles */
.lazy-image {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazy-image.loaded {
    opacity: 1;
}


/* ================= FAQ SECTION ================= */
.faq-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #1e293b;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: #f8f9fa;
}

.faq-question.active {
    background: #3b82f6;
    color: white;
}

.faq-icon {
    transition: transform 0.3s ease;
    color: #3b82f6;
}

.faq-question.active .faq-icon {
    transform: rotate(180deg);
    color: white;
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.faq-answer.active {
    padding: 1.5rem;
    max-height: 200px;
}

.faq-answer p {
    margin: 0;
    color: #64748b;
    line-height: 1.6;
}


/* ================= FLOATING CONTACT BUTTON ================= */
.floating-contact-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
}

.floating-contact-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
    color: white;
}

.floating-contact-btn::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25d366, #128c7e);
    opacity: 0.3;
    animation: pulse 2s infinite;
    z-index: -1;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.1; }
    100% { transform: scale(1); opacity: 0.3; }
}


/* ================= SCROLL PROGRESS ================= */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #22c55e);
    z-index: 9999;
    transition: width 0.1s ease;
}

/* ================= ENHANCED PRODUCT CARDS ================= */
.enhanced-product-card {
    position: relative;
    overflow: visible;
}

.product-card-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.enhanced-product-card:hover .product-card-actions {
    opacity: 1;
}

.product-action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.product-action-btn.wishlist {
    background: rgba(239, 68, 68, 0.9);
    color: white;
}

.product-action-btn.compare {
    background: rgba(59, 130, 246, 0.9);
    color: white;
}

.product-action-btn:hover {
    transform: scale(1.1);
}

.product-action-btn.active {
    background: #22c55e;
}


/* ================= MICRO-INTERACTIONS ================= */
.micro-bounce:hover {
    animation: microBounce 0.6s ease;
}

@keyframes microBounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.micro-scale:hover {
    transform: scale(1.05);
}

.micro-glow:hover {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

/* ================= HERO CAROUSEL ENHANCEMENTS ================= */

/* Carousel Section */
/* .hero-carousel-section {
    position: relative;
    width: 100%;
    min-height: 80vh;
    max-height: 90vh;
    overflow: hidden;
    z-index: 1;
} */

/* Carousel Container */
/* #heroCarousel {
    height: 70vh;
    max-height: 80vh;
    position: relative;
    width: 100%;
} */

/* Carousel styles are now fully handled in index.php for better responsiveness and consistency */
/* Removed duplicate styles to avoid conflicts */

/* Carousel badge styles are handled in index.php */

/* Carousel title and subtitle styles are fully handled in index.php */

/* Carousel buttons styles are fully handled in index.php */

/* Carousel controls and indicators are fully handled in index.php */

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Carousel item transitions are handled in index.php */

/* ================= RESPONSIVE DESIGN ================= */

/* Responsive styles for carousel are now handled in index.php */
/* This ensures consistency and avoids conflicts */

@media (max-width: 768px) {
    .quick-view-btn {
        width: 100%;
        justify-content: center;
    }
    
    .floating-contact-btn {
        bottom: 80px;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}