/**
 * DESIGN SHOPEE MODERNO - CSS PARA PÁGINA DE VENDAS
 * Versão: 2.0
 * Otimizado para Conversão e Vendas
 */

/* ========================================
   VARIÁVEIS CSS GLOBAIS
   ======================================== */
:root {
    --primary-color: #EE4D2D;
    --primary-hover: #D73211;
    --primary-light: #FFEEE8;
    --secondary-color: #FF6B35;
    --accent-color: #FFB800;
    --success-color: #26AA99;
    --danger-color: #EE4D2D;
    --dark-color: #222222;
    --text-primary: #333333;
    --text-secondary: #757575;
    --text-muted: #999999;
    --bg-light: #F5F5F5;
    --bg-card: #FFFFFF;
    --border-color: #E8E8E8;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --shadow-hover: 0 8px 25px rgba(238,77,45,0.2);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --transition-fast: all 0.2s ease;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   RESET E BASE
   ======================================== */
.shopee-page * {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    box-sizing: border-box;
}

.shopee-page {
    background: var(--bg-light);
    min-height: 100vh;
    padding-bottom: 60px;
}

/* ========================================
   BARRA DE FILTROS FLUTUANTE MODERNA
   ======================================== */
.filter-bar-sticky {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 12px 0;
    margin: 0 -15px 20px;
    transition: var(--transition);
}

.filter-bar-sticky.scrolled {
    box-shadow: var(--shadow-md);
}

.filter-bar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-search-box {
    flex: 1;
    min-width: 200px;
    max-width: 400px;
    position: relative;
}

.filter-search-box input {
    width: 100%;
    height: 40px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 0 45px 0 15px;
    font-size: 14px;
    transition: var(--transition);
    background: var(--bg-light);
}

.filter-search-box input:focus {
    border-color: var(--primary-color);
    background: var(--bg-card);
    outline: none;
    box-shadow: 0 0 0 3px rgba(238,77,45,0.1);
}

.filter-search-box button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: none;
    background: var(--primary-color);
    color: white;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.filter-search-box button:hover {
    background: var(--primary-hover);
}

.filter-categories {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 4px 0;
}

.filter-categories::-webkit-scrollbar {
    display: none;
}

.filter-category-btn {
    flex-shrink: 0;
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.filter-category-btn:hover,
.filter-category-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.filter-sort-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.filter-sort-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.filter-sort-btn {
    padding: 8px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-sort-btn:hover,
.filter-sort-btn.active {
    background: var(--primary-light);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.filter-favorites-group {
    display: flex;
    align-items: center;
    margin-left: 10px;
}

.filter-favorites-btn {
    padding: 8px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-favorites-btn:hover {
    background: var(--primary-light);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.filter-favorites-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.filter-favorites-btn.active i {
    color: white;
}

.filter-cart-btn {
    position: relative;
    padding: 10px 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    text-decoration: none;
}

.filter-cart-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
}

.filter-cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    min-width: 20px;
    height: 20px;
    background: var(--accent-color);
    color: var(--dark-color);
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
}

/* ========================================
   GRID DE PRODUTOS MODERNO - ESTILO SHOPEE
   ======================================== */
.products-grid-shopee {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 0;
}

@media (min-width: 1600px) {
    .products-grid-shopee {
        grid-template-columns: repeat(5, 1fr);
        gap: 18px;
    }
}

@media (max-width: 1400px) {
    .products-grid-shopee {
        grid-template-columns: repeat(4, 1fr);
        gap: 14px;
    }
}

@media (max-width: 1100px) {
    .products-grid-shopee {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .products-grid-shopee {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

@media (max-width: 400px) {
    .products-grid-shopee {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

/* ========================================
   CARD DE PRODUTO - DESIGN CONVERSÃO MÁXIMA
   ======================================== */
.product-card-shopee {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    border: 2px solid transparent;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.product-card-shopee:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(238,77,45,0.2);
    border-color: var(--primary-color);
}

/* Imagem do Produto - MAIOR */
.product-card-image {
    position: relative;
    width: 100%;
    padding-top: 110%; /* Proporção maior para imagem */
    overflow: hidden;
    background: linear-gradient(180deg, #FFFFFF 0%, #F8F8F8 100%);
}

.product-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 10px;
}

.product-card-shopee:hover .product-card-image img {
    transform: scale(1.12);
}

/* Badges e Tags - MAIS IMPACTANTES */
.product-badges {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 10px;
    z-index: 5;
}

.badge-discount {
    background: linear-gradient(135deg, #EE4D2D 0%, #FF6B35 100%);
    color: white;
    padding: 6px 12px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(238,77,45,0.4);
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.badge-new {
    background: linear-gradient(135deg, #00C853 0%, #26AA99 100%);
    color: white;
    padding: 6px 12px;
    border-radius: var(--radius-md);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0,200,83,0.4);
}

.badge-hot {
    background: linear-gradient(135deg, #FF512F 0%, #DD2476 100%);
    color: white;
    padding: 6px 12px;
    border-radius: var(--radius-md);
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 5px;
    animation: hotGlow 1.5s ease infinite;
    box-shadow: 0 4px 15px rgba(255,81,47,0.5);
    text-transform: uppercase;
}

.badge-hot i {
    animation: fireFlicker 0.5s ease infinite alternate;
}

@keyframes fireFlicker {
    0% { transform: scale(1) rotate(-5deg); }
    100% { transform: scale(1.2) rotate(5deg); }
}

@keyframes hotGlow {
    0%, 100% { 
        box-shadow: 0 4px 15px rgba(255,81,47,0.5);
    }
    50% { 
        box-shadow: 0 6px 25px rgba(255,81,47,0.7);
    }
}

.badge-free-shipping {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: linear-gradient(135deg, #26AA99 0%, #00C853 100%);
    color: white;
    padding: 5px 10px;
    border-radius: var(--radius-md);
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 3px 10px rgba(38,170,153,0.4);
    text-transform: uppercase;
}

/* Conteúdo do Card - MAIOR E MAIS IMPACTANTE */
.product-card-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
    background: linear-gradient(180deg, #FFFFFF 0%, #FAFAFA 100%);
}

.product-card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.5;
    margin: 0 0 12px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 45px;
    letter-spacing: -0.2px;
}

.product-card-title a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

.product-card-title a:hover {
    color: var(--primary-color);
}

/* Área de Preços - DESTAQUE MAIOR */
.product-card-pricing {
    margin-top: auto;
    background: linear-gradient(135deg, #FFF5F2 0%, #FFEBE5 100%);
    padding: 12px;
    border-radius: var(--radius-md);
    margin-bottom: 12px;
}

.product-price-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.product-price-current {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-align: center;
}

/* Estilo para "A partir de" - Funciona tanto como filho quanto como irmão */
.product-price-current .price-from,
.product-price-current > .price-from,
.price-from {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 2px;
    line-height: 1.2;
}

.product-price-original {
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: line-through;
}

/* Informações Extras - MAIS VISÍVEIS */
.product-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 12px;
    border-top: 2px solid var(--border-color);
}

.product-sold-count {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    background: var(--bg-light);
    padding: 4px 10px;
    border-radius: 20px;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #FFF8E1 0%, #FFECB3 100%);
    padding: 4px 10px;
    border-radius: 20px;
}

.product-rating i {
    font-size: 12px;
    color: #FF9800;
}

.product-rating span {
    font-size: 13px;
    color: var(--dark-color);
    font-weight: 700;
}

/* Barra de Vendas (Estilo Flash Sale) - MAIOR */
.product-sales-bar {
    margin-top: 10px;
    background: linear-gradient(90deg, #FFE5DE 0%, #FFD4C9 100%);
    border-radius: 12px;
    height: 24px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(238,77,45,0.2);
}

.sales-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #FF6B35, #FF8B67);
    border-radius: 12px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 2px 8px rgba(238,77,45,0.3);
}

.sales-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.sales-bar-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 11px;
    font-weight: 800;
    color: #FFFFFF;
    text-transform: uppercase;
    white-space: nowrap;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    letter-spacing: 0.5px;
}

/* Botão de Ação Rápida - MAIOR E MAIS IMPACTANTE */
.product-quick-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 50%, transparent 100%);
    padding: 60px 12px 14px;
    display: flex;
    gap: 10px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card-shopee:hover .product-quick-actions {
    opacity: 1;
    transform: translateY(0);
}

.btn-quick-add {
    flex: 1;
    padding: 14px 16px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #FF6B35 100%);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(238,77,45,0.4);
}

.btn-quick-add:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, #E85A2A 100%);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(238,77,45,0.5);
}

.btn-quick-add i {
    font-size: 16px;
}

.btn-quick-view {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.95);
    color: var(--text-primary);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 18px;
}

.btn-quick-view:hover {
    background: white;
    color: var(--primary-color);
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* ========================================
   INFINITE SCROLL - INDICADORES
   ======================================== */
.infinite-scroll-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    gap: 15px;
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loader-text {
    font-size: 14px;
    color: var(--text-secondary);
}

.infinite-scroll-end {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 14px;
}

.infinite-scroll-end i {
    font-size: 32px;
    margin-bottom: 10px;
    display: block;
    color: var(--border-color);
}

/* ========================================
   SEÇÃO DE OFERTAS RELÂMPAGO (FLASH SALE)
   ======================================== */
.flash-sale-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #FF8B67 100%);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 25px;
    box-shadow: var(--shadow-lg);
}

.flash-sale-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: rgba(0,0,0,0.1);
}

.flash-sale-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.flash-sale-title i {
    font-size: 22px;
    animation: flash-icon 1s ease infinite;
}

@keyframes flash-icon {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.flash-countdown {
    display: flex;
    align-items: center;
    gap: 6px;
}

.countdown-label {
    color: white;
    font-size: 12px;
    font-weight: 500;
    margin-right: 8px;
}

.countdown-box {
    background: var(--dark-color);
    color: white;
    min-width: 36px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 700;
}

.countdown-separator {
    color: white;
    font-weight: 700;
}

.flash-sale-products {
    display: flex;
    gap: 12px;
    padding: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.flash-sale-products::-webkit-scrollbar {
    display: none;
}

.flash-product-card {
    flex: 0 0 160px;
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    scroll-snap-align: start;
    transition: var(--transition);
    cursor: pointer;
}

.flash-product-card:hover {
    transform: scale(1.05);
}

.flash-product-image {
    position: relative;
    height: 160px;
    background: #FAFAFA;
}

.flash-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.flash-discount-tag {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--accent-color);
    color: var(--dark-color);
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 0 0 0 var(--radius-md);
}

.flash-product-info {
    padding: 12px;
    text-align: center;
}

.flash-product-price {
    color: var(--primary-color);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.flash-progress-bar {
    background: var(--primary-light);
    border-radius: 10px;
    height: 18px;
    overflow: hidden;
    position: relative;
}

.flash-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #FF8B67);
    border-radius: 10px;
}

.flash-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 10px;
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap;
}

/* ========================================
   SEÇÃO DE CATEGORIAS RÁPIDAS
   ======================================== */
.categories-quick-section {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: var(--shadow-sm);
}

.categories-quick-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.categories-quick-title::before {
    content: '';
    width: 4px;
    height: 18px;
    background: var(--primary-color);
    border-radius: 2px;
}

.categories-quick-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 15px;
}

@media (max-width: 1200px) {
    .categories-quick-grid {
        grid-template-columns: repeat(8, 1fr);
    }
}

@media (max-width: 992px) {
    .categories-quick-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 576px) {
    .categories-quick-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }
}

.category-quick-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition);
    padding: 10px 5px;
    border-radius: var(--radius-md);
}

.category-quick-item:hover {
    background: var(--bg-light);
    transform: translateY(-3px);
}

.category-quick-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary-color);
    overflow: hidden;
}

.category-quick-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-quick-name {
    font-size: 12px;
    color: var(--text-primary);
    text-align: center;
    line-height: 1.3;
}

/* ========================================
   SEÇÃO DE SUGESTÕES DIÁRIAS
   ======================================== */
.daily-discover-section {
    margin-bottom: 25px;
}

.daily-discover-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 20px 0;
    position: relative;
}

.daily-discover-header::before,
.daily-discover-header::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.daily-discover-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.daily-discover-title i {
    font-size: 20px;
}

/* ========================================
   RESPONSIVIDADE MOBILE
   ======================================== */
@media (max-width: 768px) {
    .filter-bar-container {
        flex-direction: column;
        gap: 12px;
    }
    
    .filter-search-box {
        max-width: 100%;
        order: 1;
    }
    
    .filter-categories {
        order: 2;
        width: 100%;
    }
    
    .filter-sort-group {
        order: 3;
        width: 100%;
        justify-content: space-between;
        margin-left: 0;
    }
    
    .filter-cart-btn {
        order: 0;
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 999;
        border-radius: 50%;
        width: 56px;
        height: 56px;
        padding: 0;
        justify-content: center;
        box-shadow: var(--shadow-lg);
    }
    
    .filter-cart-btn span {
        display: none;
    }
    
    .product-card-content {
        padding: 8px;
    }
    
    .product-card-title {
        font-size: 12px;
        min-height: 32px;
    }
    
    .product-price-current {
        font-size: 14px;
    }
    
    .product-quick-actions {
        display: none;
    }
    
    .flash-sale-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .flash-product-card {
        flex: 0 0 130px;
    }
    
    .flash-product-image {
        height: 130px;
    }
}

/* ========================================
   ANIMAÇÕES DE ENTRADA
   ======================================== */
.product-card-shopee {
    animation: fadeInUp 0.4s ease backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animação escalonada para os cards */
.product-card-shopee:nth-child(1) { animation-delay: 0.05s; }
.product-card-shopee:nth-child(2) { animation-delay: 0.1s; }
.product-card-shopee:nth-child(3) { animation-delay: 0.15s; }
.product-card-shopee:nth-child(4) { animation-delay: 0.2s; }
.product-card-shopee:nth-child(5) { animation-delay: 0.25s; }
.product-card-shopee:nth-child(6) { animation-delay: 0.3s; }

/* ========================================
   SKELETON LOADING
   ======================================== */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.skeleton-image {
    width: 100%;
    padding-top: 100%;
}

.skeleton-text {
    height: 14px;
    margin: 10px;
}

.skeleton-price {
    height: 20px;
    width: 60%;
    margin: 10px;
}

/* ========================================
   MENSAGEM VAZIO
   ======================================== */
.empty-products {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
}

.empty-products-icon {
    font-size: 64px;
    color: var(--border-color);
    margin-bottom: 20px;
}

.empty-products-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.empty-products-text {
    font-size: 14px;
    color: var(--text-muted);
}

/* ========================================
   BOTÃO VOLTAR AO TOPO
   ======================================== */
.back-to-top {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    z-index: 998;
}

.back-to-top.visible {
    display: flex;
}

.back-to-top:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* ========================================
   ESTILOS ADICIONAIS PARA CONVERSÃO
   ======================================== */

/* Pulse Animation para Carrinho */
.pulse-animation {
    animation: pulse 0.6s ease;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

/* Hover Effect nos Cards - SUPER IMPACTANTE */
.product-card-shopee::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--primary-color), #FF6B35, #FFB800, var(--primary-color));
    border-radius: calc(var(--radius-lg) + 2px);
    opacity: 0;
    z-index: -1;
    transition: var(--transition);
    background-size: 300% 300%;
}

.product-card-shopee:hover::before {
    opacity: 1;
    animation: gradientBorder 2s ease infinite;
}

@keyframes gradientBorder {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.product-card-shopee::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    pointer-events: none;
}

.product-card-shopee:hover::after {
    border-color: var(--primary-color);
}

/* Efeito de Glow no Card */
.product-card-shopee:hover {
    box-shadow: 
        0 20px 40px rgba(238,77,45,0.2),
        0 0 60px rgba(238,77,45,0.1);
}

/* Overlay de Favorito */
.product-favorite-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.95);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 6;
    transition: var(--transition);
    opacity: 0;
    transform: scale(0.8);
}

.product-card-shopee:hover .product-favorite-btn {
    opacity: 1;
    transform: scale(1);
}

.product-favorite-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.product-favorite-btn i {
    font-size: 16px;
    color: var(--primary-color);
    transition: var(--transition-fast);
}

.product-favorite-btn:hover i {
    color: white;
}

.product-favorite-btn.active i {
    color: var(--primary-color);
}

.product-favorite-btn.active {
    background: #FFF0ED;
}

/* Badge de Mais Vendido */
.badge-bestseller {
    background: linear-gradient(135deg, #FF9500, #FF5E3A);
    color: white;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 4px;
}

.badge-bestseller i {
    font-size: 11px;
}

/* Efeito Shine na Barra de Vendas */
.sales-bar-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    animation: shine 2s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Tooltip de Preço com Desconto */
.price-tooltip {
    position: relative;
    display: inline-block;
}

.price-tooltip::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--dark-color);
    color: white;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
}

.price-tooltip:hover::before {
    opacity: 1;
    visibility: visible;
}

/* Indicador de Estoque Baixo */
.low-stock-warning {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #FF6B35;
    font-size: 11px;
    font-weight: 600;
    margin-top: 6px;
}

.low-stock-warning i {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Card de Produto para Mobile - MANTÉM IMPACTO */
@media (max-width: 768px) {
    .product-card-content {
        padding: 12px;
    }
    
    .product-card-title {
        font-size: 13px;
        min-height: 36px;
        -webkit-line-clamp: 2;
    }
    
    .product-price-current {
        font-size: 18px;
    }
    
    .product-card-pricing {
        padding: 10px;
    }
    
    .product-sales-bar {
        height: 20px;
        margin-top: 8px;
    }
    
    .sales-bar-text {
        font-size: 10px;
    }
    
    .product-card-meta {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }
    
    .product-sold-count,
    .product-rating {
        justify-content: center;
    }
    
    /* Badge de urgência - tablets */
    .badge-urgency {
        bottom: 8px;
        right: 8px;
        padding: 5px 10px;
        font-size: 9px;
        gap: 4px;
        /* Manter visível por padrão */
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .badge-urgency i {
        font-size: 9px;
    }
}

@media (max-width: 480px) {
    .product-card-content {
        padding: 10px;
    }
    
    .product-card-title {
        font-size: 12px;
        min-height: 32px;
    }
    
    .product-price-current {
        font-size: 16px;
    }
    
    .product-card-pricing {
        padding: 8px;
        margin-bottom: 8px;
    }
    
    .product-sales-bar {
        height: 18px;
        margin-top: 6px;
    }
    
    .sales-bar-text {
        font-size: 9px;
    }
    
    .product-card-meta {
        display: flex;
        padding-top: 8px;
        margin-top: 8px;
    }
    
    .product-badges {
        padding: 6px;
    }
    
    .badge-discount {
        font-size: 11px;
        padding: 4px 8px;
    }
    
    .badge-hot {
        font-size: 9px;
        padding: 4px 8px;
    }
    
    /* Badge de urgência - telas muito pequenas */
    .badge-urgency {
        bottom: 6px;
        right: 6px;
        padding: 4px 8px;
        font-size: 8px;
        gap: 3px;
        max-width: calc(100% - 12px);
        /* Manter visível por padrão */
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .badge-urgency i {
        font-size: 8px;
    }
    
    .product-quick-actions {
        padding: 40px 8px 10px;
    }
    
    .btn-quick-add {
        padding: 10px 12px;
        font-size: 12px;
    }
    
    .btn-quick-view {
        width: 40px;
        height: 40px;
    }
    
    /* Badge de urgência responsiva - REMOVIDA (duplicada) */
}

/* Animação de Carregamento de Cards */
.product-card-shopee.loading {
    opacity: 0;
    transform: translateY(30px);
}

.product-card-shopee.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Efeito de Ripple no Botão de Compra */
.btn-quick-add {
    position: relative;
    overflow: hidden;
}

.btn-quick-add::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-quick-add:active::after {
    width: 200%;
    height: 200%;
}

/* Modo Dark (Opcional) */
@media (prefers-color-scheme: dark) {
    .shopee-page-dark {
        --bg-light: #1a1a1a;
        --bg-card: #2d2d2d;
        --text-primary: #ffffff;
        --text-secondary: #b0b0b0;
        --border-color: #404040;
    }
}

/* Toast de Adicionado ao Carrinho */
.cart-toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--success-color);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    z-index: 9999;
    opacity: 0;
    transition: var(--transition);
}

.cart-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.cart-toast i {
    font-size: 18px;
}

/* Indicador de Frete Grátis */
.free-shipping-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #E8F5E9;
    color: var(--success-color);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    font-size: 10px;
    font-weight: 600;
    margin-top: 6px;
}

.free-shipping-indicator i {
    font-size: 11px;
}

/* Garantia e Selos de Confiança */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    margin-top: 25px;
}

.trust-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.trust-badge-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 20px;
}

.trust-badge-text {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

@media (max-width: 768px) {
    .trust-badges {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .trust-badge {
        flex: 0 0 calc(50% - 10px);
    }
}

/* Contador de Pessoas Vendo */
.viewers-count {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--primary-color);
    margin-top: 6px;
}

.viewers-count i {
    animation: pulse 2s infinite;
}

/* ========================================
   BADGE DE URGÊNCIA - ÚLTIMAS UNIDADES
   ========================================
   IMPORTANTE: Esta badge deve estar SEMPRE VISÍVEL por padrão
   e APENAS desaparecer quando o usuário passar o mouse sobre o card.
   ======================================== */
.urgency-badge,
.badge-urgency {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: linear-gradient(135deg, #FF416C, #FF4B2B);
    color: white;
    padding: 6px 12px;
    border-radius: var(--radius-md);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    animation: urgencyPulse 1.5s infinite;
    animation-fill-mode: both;
    display: flex !important;
    align-items: center;
    gap: 5px;
    z-index: 10 !important;
    box-shadow: 0 4px 15px rgba(255,65,108,0.5);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    white-space: nowrap;
    max-width: calc(100% - 20px);
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
    /* ========================================
       ESTADO PADRÃO: SEMPRE VISÍVEL
       ======================================== */
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
}

/* ========================================
   ESTADO HOVER: ESCONDER BADGE
   A badge só desaparece quando o mouse está sobre o card
   ======================================== */
.product-card-shopee:hover .badge-urgency {
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(10px) !important;
    pointer-events: none !important;
}

.badge-urgency i {
    animation: fireFlicker 0.5s ease infinite alternate;
    flex-shrink: 0;
}

@keyframes urgencyPulse {
    0%, 100% { 
        box-shadow: 0 4px 15px rgba(255, 65, 108, 0.5);
    }
    50% { 
        box-shadow: 0 6px 25px rgba(255, 65, 108, 0.7);
    }
}

/* Indicador de Economia */
.price-economy {
    display: block;
    font-size: 11px;
    color: var(--success-color);
    font-weight: 700;
    margin-top: 6px;
    text-align: center;
    background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
}

/* Indicador de Pessoas Vendo */
.product-viewers {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 11px;
    color: var(--primary-color);
    margin-top: 10px;
    padding: 8px;
    background: linear-gradient(135deg, #FFF5F2 0%, #FFEBE5 100%);
    border-radius: var(--radius-md);
    font-weight: 600;
}

.product-viewers i {
    animation: viewerPulse 2s ease-in-out infinite;
}

@keyframes viewerPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

/* Estrelas de Rating - Visual Melhorado */
.product-rating i {
    font-size: 12px;
    color: #FFC107;
    margin-right: 1px;
    text-shadow: 0 1px 2px rgba(255,193,7,0.3);
}

.product-rating i.fa-star-o {
    color: #E0E0E0;
    text-shadow: none;
}

/* Botão Favorito Ativo */
.product-favorite-btn.active i,
.product-favorite-btn:hover i {
    animation: heartBeat 0.5s ease;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(1); }
    75% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Comparador de Preços */
.price-comparison {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.price-savings {
    font-size: 10px;
    color: var(--success-color);
    font-weight: 600;
}

/* Carrossel de Imagens do Produto (Preview) */
.product-image-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
    z-index: 3;
}

.product-image-dot {
    width: 6px;
    height: 6px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    transition: var(--transition-fast);
}

.product-image-dot.active {
    background: white;
    width: 16px;
    border-radius: 3px;
}

/* Personalização do Scrollbar */
.products-grid-shopee::-webkit-scrollbar,
.flash-sale-products::-webkit-scrollbar {
    height: 6px;
}

.products-grid-shopee::-webkit-scrollbar-track,
.flash-sale-products::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 3px;
}

.products-grid-shopee::-webkit-scrollbar-thumb,
.flash-sale-products::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.products-grid-shopee::-webkit-scrollbar-thumb:hover,
.flash-sale-products::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Efeito Confetti para Compra (adicionar via JS) */
.confetti {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
}

/* Preloader Elegante */
.page-preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.3s, visibility 0.3s;
}

.page-preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-logo {
    width: 60px;
    height: 60px;
    animation: preloaderBounce 1s ease infinite;
}

@keyframes preloaderBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

