/*
 * Modern, Responsive CSS for loja3.php
 * Mobile-first design with enhanced features
 */

/* Import theme colors from PHP */
:root {
 
}
/* Base Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f8fafc;
    color: #2d3748;
}
/* Header Styles */
.sticky-header {
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
/* Product Card Enhancements */
.product-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e2e8f0;
}
.product-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}
/* Carousel Improvements */
.carousel-container {
    width: 100%;
    height: 100%;
}

.carousel-media {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.carousel-slide {
    transition: opacity 0.4s ease-in-out;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Ensure carousel stays below buttons */
}

.carousel-slide img,
.carousel-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.carousel-dot {
    transition: all 0.2s ease;
    z-index: 10;
}

.carousel-prev,
.carousel-next {
    z-index: 15 !important;
}
.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    z-index: 10 !important; /* Force buttons above carousel */
}

.btn-primary:hover {
    background-color: var(--secondary-color, var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.ring-primary {
    --tw-ring-color: var(--primary-color);
}

.btn-secondary {
    background-color: #6b7280;
    color: white;
    border: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    z-index: 10 !important; /* Force buttons above carousel */
}
/* Badge Styles */
.badge-promotion,
.badge-free-shipping {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
/* Loading Animation */
.loading-spinner {
    border: 3px solid #f3f4f6;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
}
/* Button Styles */
.btn-primary,
.btn-secondary {
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}
/* Active Filter Badges */
.filter-badge {
    background-color: #eff6ff;
    color: #1e40af;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.filter-badge .clear-filter {
    color: #6366f1;
    cursor: pointer;
}
/* Mobile Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.overlay-menu {
    background-color: white;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    max-height: 85vh;
    overflow-y: auto;
}
/* Responsive Design */
@media (min-width: 768px) {
    .product-card {
        flex-direction: row !important;
    }
    /* Show sidebar toggle button on desktop */
    .sidebar-toggle {
        display: flex !important;
    }
}

@media (max-width: 767px) {
    /* Mobile-specific adjustments */
    .carousel-media {
        height: 250px;
        margin-bottom: 48px; /* Space for buttons below carousel */
    }
    .badge-promotion,
    .badge-free-shipping {
        position: absolute;
        top: 10px;
        right: 10px;
        z-index: 10;
    }
    /* Hide sidebar toggle on mobile */
    .sidebar-toggle {
        display: none !important;
    }
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}
/* Focus styles for accessibility */
*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}
/* Text truncation for descriptions */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* Card hover effects */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
