/* ==================== Catálogo de produtos - VISUAL ESCURO FUTURISTA ==================== */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --success-color: #10b981;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* ==================== FUNDO ESCURO IGUAL AO PRODUTO.PHP ==================== */
body {
    background: #0a0e27;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(102, 126, 234, 0.15) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(118, 75, 162, 0.15) 0%, transparent 20%),
        radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.08) 0%, transparent 50%);
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ==================== NAVBAR FUTURISTA ==================== */
.navbar-custom {
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(102, 126, 234, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: white !important;
    text-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
}

.navbar-brand i {
    color: #667eea;
    margin-right: 8px;
}

.nav-link {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 500;
    transition: all 0.3s;
    padding: 0.5rem 1rem !important;
}

.nav-link:hover {
    color: white !important;
    background: rgba(102, 126, 234, 0.2);
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.3);
}

/* ==================== CABEÇALHO DA PÁGINA ==================== */
.page-header {
    text-align: center;
    margin: 3rem 0;
    padding: 0 1rem;
}

.page-header h1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #10b981 50%, #667eea 75%, #764ba2 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
    animation: gradientShift 3s ease infinite;
    filter: drop-shadow(0 0 20px rgba(102, 126, 234, 0.5));
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.page-header .lead {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.home-shortcuts {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0 auto 1.75rem;
    flex-wrap: wrap;
}

.home-shortcut {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(102, 126, 234, 0.35);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.25) 100%);
    box-shadow: 0 8px 24px rgba(8, 12, 32, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.home-shortcut:hover {
    transform: translateY(-2px);
    border-color: rgba(16, 185, 129, 0.55);
    box-shadow: 0 12px 28px rgba(16, 185, 129, 0.2);
    color: #ffffff;
}

.home-shortcut.is-active {
    border-color: rgba(16, 185, 129, 0.7);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25) 0%, rgba(102, 126, 234, 0.22) 100%);
    box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.45) inset, 0 10px 25px rgba(16, 185, 129, 0.24);
}

.page-header .btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: 2px solid rgba(16, 185, 129, 0.3);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
    transition: all 0.3s;
}

.page-header .btn-success:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(16, 185, 129, 0.6);
}

/* ==================== SEÇÃO DE FILTROS ==================== */
.filters-section {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(30px);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(102, 126, 234, 0.2) inset;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.filters-section .form-label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filters-section .form-label i {
    color: #667eea;
}

.filters-section .form-control,
.filters-section .form-select {
    background: rgba(10, 14, 39, 0.6);
    border: 2px solid rgba(102, 126, 234, 0.3);
    color: rgba(255, 255, 255, 0.9);
    padding: 12px 18px;
    border-radius: 12px;
    transition: all 0.3s;
}

.filters-section .form-control:focus,
.filters-section .form-select:focus {
    background: rgba(10, 14, 39, 0.8);
    border-color: #667eea;
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.25);
    color: white;
}

.filters-section .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.filters-section .form-select option {
    background: #0a0e27;
    color: white;
}

.btn-view-product {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 12px;
    font-weight: 700;
    transition: all 0.3s;
    width: 100%;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-view-product:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.6);
}

.btn-outline-secondary {
    background: rgba(102, 126, 234, 0.1);
    border: 2px solid rgba(102, 126, 234, 0.3);
    color: rgba(255, 255, 255, 0.9);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-outline-secondary:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: #667eea;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* ==================== GRID DE PRODUTOS ==================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* ==================== CARDS DE PRODUTOS ==================== */
.card-produto {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(30px);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(102, 126, 234, 0.2) inset;
    border: 1px solid rgba(102, 126, 234, 0.2);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-produto:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(102, 126, 234, 0.4) inset,
        0 0 30px rgba(102, 126, 234, 0.2);
}

/* ===== CARD EM DESTAQUE - CORES ALTERNADAS (ROXO E VERDE) ===== */

/* Card Destaque ROXO (padrão - 1º, 3º, 5º...) */
.card-produto.destaque {
    background: linear-gradient(145deg, #1a0d2e 0%, #2d1b4e 100%);
    border: 3px solid #764ba2;
    box-shadow: 
        0 20px 60px rgba(118, 75, 162, 0.5),
        0 0 40px rgba(118, 75, 162, 0.3),
        0 0 0 1px rgba(118, 75, 162, 0.4) inset;
    position: relative;
    overflow: hidden;
}

/* Card Destaque VERDE (alternado - 2º, 4º, 6º...) */
.card-produto.destaque:nth-child(even) {
    background: linear-gradient(145deg, #0a2e1a 0%, #1b4e2d 100%);
    border: 3px solid #10b981;
    box-shadow: 
        0 20px 60px rgba(16, 185, 129, 0.5),
        0 0 40px rgba(16, 185, 129, 0.3),
        0 0 0 1px rgba(16, 185, 129, 0.4) inset;
}

.card-produto.destaque .card-body {
    background: transparent;
    position: relative;
    z-index: 2;
}

.card-produto.destaque .product-image-container {
    position: relative;
    z-index: 2;
    border-bottom: 3px solid rgba(118, 75, 162, 0.5);
}

.card-produto.destaque:nth-child(even) .product-image-container {
    border-bottom: 3px solid rgba(16, 185, 129, 0.5);
}

/* Título do produto em destaque - ROXO */
.card-produto.destaque .product-title {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    font-size: 1.25rem;
    filter: drop-shadow(0 0 10px rgba(118, 75, 162, 0.5));
}

/* Título do produto em destaque - VERDE (alternado) */
.card-produto.destaque:nth-child(even) .product-title {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.5));
}

/* Preço do card destaque - ROXO */
.card-produto.destaque .price-current {
    color: #a78bfa;
    font-weight: 900;
    font-size: 2.2rem;
    text-shadow: 0 0 20px rgba(167, 139, 250, 0.6);
}

/* Preço do card destaque - VERDE (alternado) */
.card-produto.destaque:nth-child(even) .price-current {
    color: #34d399;
    text-shadow: 0 0 20px rgba(52, 211, 153, 0.6);
}

/* Informações do card destaque */
.card-produto.destaque .product-info,
.card-produto.destaque .price-old,
.card-produto.destaque .price-installment,
.card-produto.destaque .product-description {
    color: rgba(255, 255, 255, 0.95);
}

.card-produto.destaque .product-info i {
    color: #a78bfa;
    filter: drop-shadow(0 0 8px rgba(167, 139, 250, 0.5));
}

.card-produto.destaque:nth-child(even) .product-info i {
    color: #34d399;
    filter: drop-shadow(0 0 8px rgba(52, 211, 153, 0.5));
}

/* Badges do card destaque - ROXO */
.card-produto.destaque .badge-variation {
    background: rgba(167, 139, 250, 0.25);
    border: 1px solid rgba(167, 139, 250, 0.6);
    color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 12px rgba(167, 139, 250, 0.4);
}

/* Badges do card destaque - VERDE (alternado) */
.card-produto.destaque:nth-child(even) .badge-variation {
    background: rgba(52, 211, 153, 0.25);
    border: 1px solid rgba(52, 211, 153, 0.6);
    box-shadow: 0 0 12px rgba(52, 211, 153, 0.4);
}

.card-produto.destaque .badge-variation.tamanho {
    background: rgba(245, 158, 11, 0.3);
    border-color: rgba(245, 158, 11, 0.6);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
}

/* Badge de promoção no card destaque */
.card-produto.destaque .badge-promocao {
    box-shadow: 
        0 0 20px rgba(255, 71, 87, 0.8),
        0 4px 12px rgba(255, 71, 87, 0.4);
}

/* Botão do card destaque - ROXO */
.card-produto.destaque .btn-add-product {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
    border: 1px solid rgba(102, 126, 234, 0.4);
}

/* Botão do card destaque - VERDE (alternado) */
.card-produto.destaque:nth-child(even) .btn-add-product {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.card-produto.destaque .btn-add-product:hover {
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.7);
    transform: translateY(-4px);
}

.card-produto.destaque:nth-child(even) .btn-add-product:hover {
    box-shadow: 0 12px 35px rgba(16, 185, 129, 0.7);
}

.card-produto.destaque:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 25px 70px rgba(118, 75, 162, 0.7),
        0 0 60px rgba(118, 75, 162, 0.5),
        0 0 0 2px rgba(118, 75, 162, 0.6) inset;
}

.card-produto.destaque:nth-child(even):hover {
    box-shadow: 
        0 25px 70px rgba(16, 185, 129, 0.7),
        0 0 60px rgba(16, 185, 129, 0.5),
        0 0 0 2px rgba(16, 185, 129, 0.6) inset;
}

/* ===== FIM DO DESIGN ESPECIAL PARA DESTAQUE ===== */

/* ==================== CONTAINER DE IMAGEM DO PRODUTO ==================== */
.product-image-container {
    position: relative;
    width: 100%;
    padding-top: 75%; /* Aspect ratio 4:3 */
    overflow: hidden;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

.product-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-image {
    min-width: 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Botões de navegação do carrossel */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(10, 14, 39, 0.8);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(102, 126, 234, 0.3);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.carousel-btn:hover {
    background: rgba(102, 126, 234, 0.3);
    border-color: #667eea;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

/* Indicadores do carrossel */
.carousel-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.carousel-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-indicator.active {
    background: #667eea;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.6);
    width: 24px;
    border-radius: 4px;
}

/* ==================== CORPO DO CARD ==================== */
.card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 0.75rem;
    line-height: 1.4;
    transition: color 0.3s ease;
    cursor: pointer;
}

/* Hover laranja no título */
.product-title:hover {
    color: #f97316;
    text-shadow: 0 0 20px rgba(249, 115, 22, 0.5);
}

/* Título do produto em destaque (mantém o gradiente animado) */
.card-produto.destaque .product-title {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #10b981 50%, #667eea 75%, #764ba2 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    font-size: 1.25rem;
    animation: gradientShift 3s ease infinite;
    filter: drop-shadow(0 0 15px rgba(102, 126, 234, 0.5));
}

/* Hover laranja no título do produto em destaque */
.card-produto.destaque .product-title:hover {
    background: #f97316;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(249, 115, 22, 0.6));
    animation: none;
}

.product-info {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.product-info span {
    display: flex;
    align-items: center;
    gap: 5px;
    color: rgba(255, 255, 255, 0.7);
}

.product-info i {
    color: #667eea;
    font-size: 0.9rem;
}

.product-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==================== VARIAÇÕES ==================== */
.product-variations {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1rem;
}

.badge-variation {
    background: rgba(102, 126, 234, 0.15);
    border: 1px solid rgba(102, 126, 234, 0.3);
    color: rgba(255, 255, 255, 0.9);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.badge-variation.tamanho {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.3);
}

.badge-variation i {
    font-size: 0.7rem;
}

/* ==================== SEÇÃO DE PREÇOS ==================== */
.price-section {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(102, 126, 234, 0.2);
}

.price-current {
    font-size: 1.8rem;
    font-weight: 900;
    color: #10b981;
    text-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
    margin-bottom: 0.5rem;
}

.price-old {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: line-through;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.price-installment {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.15) 0%, rgba(234, 88, 12, 0.15) 100%);
    border: 1.5px solid rgba(249, 115, 22, 0.4);
    border-radius: 10px;
    padding: 9px 12px;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.80rem;
    font-weight: 600;
    margin-top: 0.1rem;
    margin-bottom: 1rem;
    display: inline-block;
    box-shadow: 
        0 4px 12px rgba(249, 115, 22, 0.2),
        0 0 0 1px rgba(249, 115, 22, 0.1) inset;
    backdrop-filter: blur(10px);
}ilter: blur(10px);


/* ==================== BADGES ==================== */
.badge-promocao {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #ff0844 0%, #ff4757 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 15px rgba(255, 8, 68, 0.4);
    z-index: 3;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

.badge-destaque {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    z-index: 3;
}

.badge-esgotado {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
    z-index: 3;
    animation: pulseEsgotado 2s ease-in-out infinite;
}

@keyframes pulseEsgotado {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.85;
        transform: scale(1.05);
    }
}

/* Ajustar posicionamento quando há múltiplos badges */
.badge-promocao ~ .badge-esgotado {
    top: 50px;
}

.badge-destaque ~ .badge-esgotado {
    top: 50px;
}

.badge-promocao ~ .badge-destaque ~ .badge-esgotado {
    top: 90px;
}

/* ==================== BOTÕES ==================== */
.btn-add-product {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-add-product:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
}

.btn-add-product.btn-unavailable {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    cursor: not-allowed;
    opacity: 0.7;
}

.btn-add-product.btn-unavailable:hover {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    transform: none;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

/* ==================== ESTADO VAZIO ==================== */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(30px);
    border-radius: 20px;
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(102, 126, 234, 0.2) inset;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.empty-state i {
    font-size: 5rem;
    color: rgba(102, 126, 234, 0.3);
    margin-bottom: 1.5rem;
}

.empty-state h3 {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 700;
    margin-bottom: 1rem;
}

.empty-state p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
}

/* ==================== PAGINAÇÃO ==================== */
.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
    padding: 2rem 0;
}

.pagination {
    display: flex;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pagination .page-item {
    margin: 0;
}

.pagination .page-link {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(30px);
    border: 2px solid rgba(102, 126, 234, 0.3);
    color: rgba(255, 255, 255, 0.9);
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
}

.pagination .page-link:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: #667eea;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.pagination .page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* ==================== CARRINHO FLUTUANTE ==================== */
.floating-cart {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

.cart-button {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 3px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 
        0 15px 40px rgba(102, 126, 234, 0.5),
        0 0 60px rgba(102, 126, 234, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.cart-button:hover {
    transform: scale(1.15) translateY(-5px);
    box-shadow: 
        0 20px 50px rgba(102, 126, 234, 0.7),
        0 0 80px rgba(102, 126, 234, 0.5);
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 900;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.5);
    border: 2px solid #0a0e27;
}

/* ==================== CARRINHO LATERAL (MANTIDO ORIGINAL) ==================== */
.cart-sidebar {
    position: fixed;
    right: -450px;
    top: 0;
    width: 450px;
    height: 100vh;
    background: white;
    box-shadow: -4px 0 24px rgba(0,0,0,0.15);
    z-index: 2000;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    right: 0;
}

.cart-sidebar-header {
    background: var(--primary-gradient);
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-sidebar-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
}

.cart-close,
.close-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-close:hover,
.close-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}

.cart-sidebar-body,
.cart-sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.cart-item {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
    position: relative;
}

.cart-item-content {
    display: flex;
    gap: 1rem;
    width: 100%;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    background: #e5e7eb;
}

.cart-item-info,
.cart-item-details {
    flex: 1;
}

.cart-item-title {
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.cart-item-detail,
.cart-item-info {
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.cart-item-price {
    font-weight: 700;
    color: #10b981;
    font-size: 1.1rem;
}

.cart-item-remove {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: #ef4444;
    border: none;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    transition: all 0.3s;
}

.cart-item-remove:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.cart-empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: #6c757d;
}

.cart-empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.cart-empty-state p {
    font-size: 1.1rem;
}

.cart-sidebar-footer {
    border-top: 2px solid #e5e7eb;
    padding: 1.5rem;
    background: white;
}

.cart-total {
    margin-bottom: 1rem;
}

.cart-total-label {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.cart-total-value {
    font-size: 2rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.cart-installment-options {
    margin-bottom: 1rem;
}

.cart-installment-options label {
    font-size: 0.85rem;
    color: #374151;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.installment-option {
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.installment-option:hover {
    border-color: var(--primary-color);
    background: rgba(102, 126, 234, 0.05);
}

.installment-option.selected {
    border-color: var(--primary-color);
    background: rgba(102, 126, 234, 0.1);
}

.installment-option-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1f2937;
}

.btn-checkout {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

/* ==================== MODAL DE SELEÇÃO ==================== */
.selection-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    padding: 1rem;
}

.selection-modal.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.selection-modal-content {
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(30px);
    border-radius: 20px;
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(102, 126, 234, 0.3) inset;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

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

.selection-modal-header {
    margin-bottom: 1.5rem;
}

.selection-modal-header h3 {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.selection-modal-header .product-price {
    color: #10b981;
    font-size: 1.8rem;
    font-weight: 900;
    text-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

.selection-group {
    margin-bottom: 1.5rem;
}

.selection-group label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.selection-group label i {
    color: #667eea;
}

.selection-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.selection-option {
    padding: 10px 18px;
    border: 2px solid rgba(102, 126, 234, 0.3);
    background: rgba(10, 14, 39, 0.6);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.selection-option:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.2);
}

.selection-option.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.selection-modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-modal-cancel {
    flex: 1;
    padding: 1rem;
    border: 2px solid rgba(102, 126, 234, 0.3);
    background: rgba(10, 14, 39, 0.6);
    color: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-modal-cancel:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.2);
}

.btn-modal-confirm {
    flex: 1;
    padding: 1rem;
    border: none;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-modal-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
}

/* ==================== MODAL DE AVISO ==================== */
.alert-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.7) !important;
    z-index: 4000 !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 1rem !important;
    backdrop-filter: blur(8px) !important;
}

.alert-modal.show {
    display: flex !important;
    animation: fadeIn 0.3s ease;
}

.alert-modal-content {
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(30px);
    border-radius: 20px;
    padding: 2rem;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(102, 126, 234, 0.3) inset;
    border: 1px solid rgba(102, 126, 234, 0.2);
    animation: slideUp 0.3s ease;
}

.alert-modal-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.alert-modal-icon.warning {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.4);
}

.alert-modal-icon.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.alert-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 0.5rem;
}

.alert-modal-message {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    line-height: 1.5;
}

.alert-modal-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 120px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.alert-modal-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

/* ==================== TOAST DE SUCESSO ==================== */
.success-toast {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
    z-index: 5000;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    transform: translateX(400px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.success-toast.show {
    transform: translateX(0);
}

.success-toast-icon {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.success-toast-message {
    flex: 1;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .home-shortcuts {
        gap: 10px;
    }

    .home-shortcut {
        width: 100%;
        justify-content: center;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .floating-cart {
        bottom: 1rem;
        right: 1rem;
    }
    
    .cart-button {
        width: 60px;
        height: 60px;
        font-size: 1.3rem;
    }
    
    .cart-badge {
        width: 26px;
        height: 26px;
        font-size: 0.75rem;
    }
    
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .alert-modal-content,
    .selection-modal-content {
        margin: 1rem;
    }
    
    .success-toast {
        top: 1rem;
        right: 1rem;
        left: 1rem;
        transform: translateY(-200px);
    }
    
    .success-toast.show {
        transform: translateY(0);
    }
    
    .filters-section {
        padding: 1.5rem;
    }
}

/* ==================== SCROLLBAR PERSONALIZADO ==================== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(10, 14, 39, 0.5);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* ==================== CORREÇÃO: NAVEGAÇÃO DO CARROSSEL ==================== */

/* Botões de navegação do carrossel - CORRIGIDO */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(10, 14, 39, 0.8);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(102, 126, 234, 0.3);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.carousel-nav:hover {
    background: rgba(102, 126, 234, 0.3);
    border-color: #667eea;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav.prev {
    left: 10px;
}

.carousel-nav.next {
    right: 10px;
}

/* Indicadores do carrossel - CORRIGIDO */
.carousel-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.carousel-dot.active {
    background: #667eea;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.6);
    width: 24px;
    border-radius: 4px;
}

/* Contador de imagens - POSICIONADO NA PARTE INFERIOR */
.image-count {
    position: absolute;
    bottom: 15px; /* Mais próximo da borda inferior */
    left: 10px;
    background: rgba(10, 14, 39, 0.9);
    backdrop-filter: blur(10px);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 3;
    border: 1px solid rgba(102, 126, 234, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.image-count i {
    color: #667eea;
}

/* Container do carrossel */
.product-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-image {
    min-width: 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .carousel-nav {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .carousel-nav.prev {
        left: 5px;
    }
    
    .carousel-nav.next {
        right: 5px;
    }
    
    .carousel-dot {
        width: 6px;
        height: 6px;
    }
    
    .carousel-dot.active {
        width: 20px;
    }
}
