/* 
   Estilos customizados e complementares - Achadinhos da Shopee
   Otimizado para mobile-first, performance e animações fluidas
*/

:root {
    --shopee-orange: #EE4D2D;
    --shopee-orange-hover: #D73211;
    --shopee-gradient: linear-gradient(135deg, #FF5722 0%, #EE4D2D 50%, #E64A19 100%);
    --shopee-light: #FFF5F1;
    --gold: #FFB703;
    --text-dark: #1F2937;
}

/* Evitar scroll horizontal indesejado no mobile */
html, body {
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Suporte à área segura do iPhone (notch e barra inferior) */
.safe-bottom {
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
}

.bottom-nav-safe {
    padding-bottom: calc(4.5rem + env(safe-area-inset-bottom));
}

/* Ocultar barra de rolagem mantendo a rolagem horizontal ativa (Scroll Pills) */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Efeito Shimmer para Skeleton Loading */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

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

/* Card de Produto com Aspect Ratio 1:1 e micro-interações */
.product-card {
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:active {
    transform: scale(0.98);
}

@media (min-width: 768px) {
    .product-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 24px -10px rgba(238, 77, 45, 0.18);
    }
}

.product-card-img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    width: 100%;
}

/* Badge de Desconto com corte chanfrado estilo Shopee */
.discount-badge {
    background: linear-gradient(135deg, #FFB703 0%, #FB8500 100%);
    clip-path: polygon(0% 0%, 100% 0%, 100% 85%, 50% 100%, 0% 85%);
}

/* Botão de Compra com Pulso Sutil */
.btn-shopee-pulse {
    background: var(--shopee-gradient);
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px 0 rgba(238, 77, 45, 0.39);
}

.btn-shopee-pulse:hover {
    box-shadow: 0 6px 20px rgba(238, 77, 45, 0.5);
    filter: brightness(1.05);
}

/* Toast Notification flutuante */
#toastNotification {
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Modal Backdrop com Blur Moderno */
.modal-backdrop {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Animação de Batimento Cardíaco para Favoritos */
@keyframes heartPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.35); }
    100% { transform: scale(1); }
}

.heart-popped {
    animation: heartPop 0.3s ease-in-out;
}

/* Tag de Oferta Relâmpago */
.flash-badge {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .75; }
}
