/* ============================================
   LOJA KINGS - CLONE
   CSS3 Responsivo com Animações - CORRIGIDO
   ============================================ */

/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Cores Primárias */
    --color-black: #000000;
    --color-white: #FFFFFF;
    --color-purple: #8B3A8B;
    --color-pink: #D946A6;
    
    /* Cores Secundárias */
    --color-green: #10B981;
    --color-red: #EF4444;
    --color-orange: #F97316;
    --color-gray-light: #F3F4F6;
    --color-gray-medium: #6B7280;
    --color-gray-dark: #1F2937;
    
    /* WhatsApp */
    --color-whatsapp: #25D366;
    
    /* Tipografia */
    --font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Espaçamentos */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 40px;
    --spacing-xl: 60px;
    
    /* Transições */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

html {
    scroll-behavior: smooth;
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-black);
    background-color: var(--color-white);
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 1440px) {
    .container {
        max-width: 1440px;
        margin: 0 auto;
    }
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition-fast);
}

/* ============================================
   ANNOUNCEMENT BAR
   ============================================ */

.announcement-bar {
    background-color: var(--color-black);
    color: var(--color-white);
    padding: var(--spacing-xs) 0;
    overflow: hidden;
    position: relative;
}

.announcement-slider {
    display: flex;
    animation: slideAnnouncement 20s linear infinite;
}

.announcement-slider p {
    white-space: nowrap;
    padding: 0 var(--spacing-md);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

@keyframes slideAnnouncement {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================
   HEADER
   ============================================ */

.header {
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-gray-light);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: var(--spacing-md) 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
}

.menu-toggle,
.search-toggle {
    display: none;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.logo-img {
    max-width: 150px;
    height: auto;
}

@media (max-width: 768px) {
    .logo-img {
        max-width: 120px;
    }
}

.icon-crown {
    width: 32px;
    height: 32px;
}

.logo-text {
    font-size: 28px;
    letter-spacing: 3px;
}

.logo-subtitle {
    font-size: 10px;
    letter-spacing: 2px;
    font-weight: 600;
}

.nav-desktop {
    display: none;
}

.header-actions {
    display: none;
}

@media (min-width: 768px) {
    .btn-icon svg {
        width: 24px;
        height: 24px;
    }
}

.cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--color-purple);
    color: var(--color-white);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
}

/* ============================================
   HERO SLIDER - CORREÇÃO DE EMPILHAMENTO
   ============================================ */

.hero-slider {
    position: relative;
    height: 300px;
    overflow: hidden;
    width: 100%;
}

@media (min-width: 768px) {
    .hero-slider {
        height: 400px;
    }
}

@media (min-width: 1024px) {
    .hero-slider {
        height: 500px;
    }
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

/* MUDANÇA 1: Removemos o display:flex para não ficarem lado a lado */
.slider-track {
    position: relative;
    width: 100%;
    height: 100%;
}

/* MUDANÇA 2: Usamos position absolute para empilhar as cartas */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0; /* Começa invisível */
    transition: opacity 0.6s ease;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Quando ganha a classe .active via Javascript, fica visível */
.slide.active {
    opacity: 1;
    z-index: 2;
}

/* Garante que a imagem ocupe o espaço todo */
.slide picture,
.slide .slide-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* ESTILO DOS BOTÕES DO SLIDER - CORRIGIDO */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--color-black);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;     /* Adicionado aqui para funcionar no mobile */
    justify-content: center; /* Adicionado aqui para funcionar no mobile */
    z-index: 10;
    transition: var(--transition-normal);
}

@media (min-width: 768px) {
    .slider-btn {
        width: 42px;
        height: 42px;
    }
}

@media (min-width: 1024px) {
    .slider-btn {
        width: 48px;
        height: 48px;
    }
}

.slider-btn:hover {
    background-color: var(--color-white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.slider-prev {
    left: var(--spacing-sm);
}

.slider-next {
    right: var(--spacing-sm);
}

.slider-btn svg {
    width: 24px;
    height: 24px;
}

.slider-dots {
    position: absolute;
    bottom: var(--spacing-md);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    transition: var(--transition-fast);
}

.dot.active {
    background-color: var(--color-white);
    width: 32px;
    border-radius: 6px;
}

/* ============================================
   BENEFITS BAR
   ============================================ */

.benefits-bar {
    background-color: var(--color-black);
    color: var(--color-white);
    padding: var(--spacing-md) 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    text-align: left;
    flex-direction: column;
}

@media (min-width: 768px) {
    .benefit-item {
        flex-direction: row;
    }
}

.benefit-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    stroke: var(--color-white);
}

@media (min-width: 768px) {
    .benefit-icon {
        width: 40px;
        height: 40px;
    }
}

.benefit-item p {
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
}

@media (min-width: 768px) {
    .benefit-item p {
        font-size: 14px;
        text-align: left;
    }
}

/* ============================================
   PRODUCTS SECTION
   ============================================ */

.products-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-gray-light);
}

.section-title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 2px;
    text-align: center;
    margin-bottom: var(--spacing-lg);
    color: var(--color-gray-dark);
}

@media (min-width: 768px) {
    .section-title {
        font-size: 28px;
    }
}

@media (min-width: 1024px) {
    .section-title {
        font-size: 32px;
    }
}

.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

.product-card {
    background-color: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: var(--transition-normal);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }
.product-card:nth-child(6) { animation-delay: 0.6s; }
.product-card:nth-child(7) { animation-delay: 0.7s; }
.product-card:nth-child(8) { animation-delay: 0.8s; }

.product-badges {
    position: relative;
    z-index: 5;
}

.badge {
    position: absolute;
    top: 12px;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 4px;
    color: var(--color-white);
}

.badge-green {
    background-color: var(--color-green);
    left: 12px;
}

.badge-purple {
    background-color: var(--color-purple);
    right: 12px;
}

.badge-red {
    background-color: var(--color-red);
    right: 12px;
}

.product-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-image img,
.product-image picture {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.logo-img {
    width: 100%;
    height: auto;
    max-width: 200px;
}

@media (max-width: 768px) {
    .logo-img {
        max-width: 150px;
    }
}

.product-sizes {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px;
    border-bottom: 1px solid var(--color-gray-light);
}

@media (min-width: 768px) {
    .product-sizes {
        gap: 8px;
        padding: var(--spacing-sm);
    }
}

/* ESTILO DOS BOTÕES DE TAMANHO - CORRIGIDO */
.size-btn {
    width: 32px;
    height: 32px;
    border: 2px solid var(--color-gray-light);
    font-size: 12px;
    border-radius: 4px;
    font-weight: 600;
    transition: var(--transition-fast);
}

@media (min-width: 768px) {
    .size-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
}

.size-btn:hover {
    border-color: var(--color-purple);
    color: var(--color-purple);
    transform: scale(1.05);
}

.product-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 8px;
    padding-bottom: 8px;
    line-height: 1.3;
}

@media (min-width: 768px) {
    .product-title {
        font-size: 14px;
        padding: var(--spacing-sm);
    }
}

.product-prices {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 0 var(--spacing-sm);
}

.price-old {
    font-size: 12px;
    color: var(--color-gray-medium);
    text-decoration: line-through;
}

@media (min-width: 768px) {
    .price-old {
        font-size: 14px;
    }
}

.price-current {
    font-size: 16px;
    font-weight: 800;
    color: var(--color-purple);
}

@media (min-width: 768px) {
    .price-current {
        font-size: 20px;
    }
}

.product-installment {
    font-size: 12px;
    color: var(--color-gray-medium);
    padding: 4px var(--spacing-sm);
    padding-bottom: var(--spacing-sm);
}

.btn-buy {
    display: block;
    width: calc(100% - 16px);
    margin: 0 8px 8px;
    padding: 10px;
    background: linear-gradient(135deg, var(--color-purple) 0%, var(--color-pink) 100%);
    color: var(--color-white);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-align: center;
    border-radius: 4px;
    transition: var(--transition-normal);
}

@media (min-width: 768px) {
    .btn-buy {
        width: calc(100% - 32px);
        margin: 0 var(--spacing-sm) var(--spacing-sm);
        padding: 14px;
        font-size: 14px;
        letter-spacing: 1px;
    }
}

.btn-buy:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(139, 58, 139, 0.3);
}

/* ============================================
   PROMO BANNERS
   ============================================ */

.promo-banners {
    padding: var(--spacing-xl) 0;
}

.banners-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

.banner-card {
    min-height: 400px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
    position: relative;
    overflow: hidden;
}

.banner-content {
    text-align: center;
    color: var(--color-white);
    z-index: 2;
}

.banner-content h2 {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: 2px;
    line-height: 1.1;
    margin-bottom: var(--spacing-sm);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.banner-content p {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    display: inline-block;
    background-color: var(--color-white);
    color: var(--color-black);
    padding: 14px 32px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: var(--transition-normal);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-white);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--color-gray-dark);
    margin-bottom: var(--spacing-md);
}

/* ============================================
   MEDIA SECTION
   ============================================ */

.media-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-gray-light);
}

.media-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

.media-card {
    background-color: var(--color-white);
    padding: var(--spacing-md);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: var(--transition-normal);
}

.media-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.media-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--color-gray-dark);
}

.media-card p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-gray-medium);
    margin-bottom: var(--spacing-sm);
}

.btn-link {
    display: inline-block;
    color: var(--color-purple);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: var(--transition-fast);
}

.btn-link:hover {
    color: var(--color-pink);
    text-decoration: underline;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background-color: var(--color-black);
    color: var(--color-white);
}

.newsletter-section {
    background-color: var(--color-gray-light);
    padding: var(--spacing-lg) 0;
}

.newsletter-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    align-items: center;
}

.newsletter-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    text-align: center;
}

.newsletter-info svg {
    width: 48px;
    height: 48px;
}

.newsletter-info p {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-gray-dark);
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    width: 100%;
    max-width: 500px;
}

.newsletter-form input {
    padding: 14px;
    border: 2px solid var(--color-gray-medium);
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
}

.btn-newsletter {
    padding: 14px;
    background: linear-gradient(135deg, #FCD34D 0%, #F59E0B 100%);
    color: var(--color-black);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: var(--transition-normal);
}

.btn-newsletter:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(245, 158, 11, 0.3);
}

.footer-content {
    padding: var(--spacing-xl) 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-sm);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    font-size: 14px;
    color: var(--color-gray-medium);
    transition: var(--transition-fast);
}

.footer-col ul li a:hover {
    color: var(--color-white);
}

.social-icons {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.social-icons a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-gray-dark);
    border-radius: 50%;
    transition: var(--transition-normal);
}

.social-icons a:hover {
    background-color: var(--color-purple);
    transform: translateY(-4px);
}

.social-icons svg {
    width: 20px;
    height: 20px;
}

.contact-info {
    list-style: none;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-sm);
    font-size: 14px;
    color: var(--color-gray-medium);
}

.contact-info svg {
    width: 18px;
    height: 18px;
}

.subfooter {
    border-top: 1px solid var(--color-gray-dark);
    padding: var(--spacing-md) 0;
    text-align: center;
}

.subfooter p {
    font-size: 12px;
    color: var(--color-gray-medium);
    margin-bottom: 4px;
}

/* ============================================
WHATSAPP FLOAT BUTTON
   ============================================ */

.whatsapp-float {
    position: fixed;
    bottom: var(--spacing-md);
    right: var(--spacing-md);
    width: 60px;
    height: 60px;
    background-color: var(--color-whatsapp);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 999;
    animation: pulse 2s infinite;
    transition: var(--transition-normal);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: var(--color-white);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.7);
    }
}

/* ============================================
   COOKIE BANNER
   ============================================ */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--color-white);
    border-top: 2px solid var(--color-gray-light);
    padding: var(--spacing-sm);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    z-index: 998;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.cookie-banner p {
    font-size: 14px;
    line-height: 1.4;
}

.btn-cookie {
    padding: 10px 24px;
    background-color: var(--color-purple);
    color: var(--color-white);
    font-size: 14px;
    font-weight: 700;
    border-radius: 4px;
    transition: var(--transition-fast);
}

.btn-cookie:hover {
    background-color: var(--color-pink);
}

/* ============================================
   MOBILE OVERRIDES & FIXES
   ============================================ */

@media (max-width: 480px) {
    .header-content {
        justify-content: center;
        gap: 10px;
    }

    .menu-toggle span, 
    .search-toggle span {
        display: none;
    }

    .logo {
        min-width: auto;
        order: -1;
        width: 100%;
        margin-bottom: 10px;
    }

    .header-actions {
        gap: 4px;
    }

    .products-grid {
        grid-template-columns: 1fr;
        padding: 0 10px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input {
        width: 100%;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */

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

/* ============================================
   RESPONSIVE - TABLET (768px+)
   ============================================ */

@media (min-width: 768px) {
    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .banners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .media-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .newsletter-content {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .newsletter-form {
        flex-direction: row;
    }
    
    .newsletter-form input {
        flex: 1;
    }
    
    .btn-newsletter {
        flex-shrink: 0;
    }
}

/* ============================================
   RESPONSIVE - DESKTOP (1024px+)
   ============================================ */

@media (min-width: 1024px) {
    .nav-desktop {
        display: flex;
    }
    
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .slide-content h2 {
        font-size: 64px;
    }
    
    .slide-content p {
        font-size: 24px;
    }
    
    .section-title {
        font-size: 40px;
    }
}

/* ============================================
   RESPONSIVE - LARGE DESKTOP (1440px+)
   ============================================ */

@media (min-width: 1440px) {
    .container {
        padding: 0 var(--spacing-lg);
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.hidden {
    display: none !important;
}

.fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .announcement-bar,
    .header,
    .hero-slider,
    .whatsapp-float,
    .cookie-banner {
        display: none;
    }
}