/* Reset e configurações gerais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

:root {
    --black: #ffffff; /* page background */
    --white: #111827; /* main text color */
    --gray-900: #f8fafc; /* surfaces */
    --gray-800: #f1f5f9;
    --gray-850: #eef2f6;
    --gray-700: #e5e7eb;
    --gray-600: #d1d5db;
    --gray-500: #9ca3af;
    --gray-400: #6b7280;
    --gray-300: #4b5563;
    --gray-200: #374151; /* used for subtle dark accents */
    --pink-600: #db2777;
    --pink-500: #ec4899;
    --pink-700: #be185d;
    --yellow-400: #fbbf24;
    --amber-400: #fbbf24;
    --green-500: #10b981;
    /* Altura do header fixa para cálculo de espaços e evitar overlay */
    --header-height: 72px;
}

body {
    background-color: var(--black);
    color: var(--white);
}

html {
    scroll-behavior: smooth;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(40px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slideDown {
    from { transform: translateY(-40px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slideInRight {
    from { transform: translateX(20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInLeft {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes scaleIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes slideDown {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.animate-slide-up {
    animation: slideUp 0.8s ease-out forwards;
}

.animate-slide-down {
    animation: slideDown 0.8s ease-out forwards;
}

.animate-slide-right {
    animation: slideInRight 0.8s ease-out forwards;
}

.animate-slide-left {
    animation: slideInLeft 0.8s ease-out forwards;
}

.animate-scale {
    animation: scaleIn 0.6s ease-out forwards;
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-pulse-delay {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    animation-delay: 1s;
}

/* Componentes reutilizáveis */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-weight: 700;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(to right, var(--pink-600), var(--pink-500));
    color: var(--white);
    border: 2px solid var(--yellow-400);
    box-shadow: 0 20px 25px -5px rgba(219, 39, 119, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(to right, var(--pink-700), var(--pink-600));
    transform: translateY(-2px);
    box-shadow: 0 25px 30px -5px rgba(219, 39, 119, 0.4);
}

/* Stronger pink accents for primary and add-to-cart buttons */
.btn-primary,
.product-action-btn.add-to-cart {
    box-shadow: 0 12px 30px rgba(236,72,153,0.12);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--pink-600);
    color: var(--pink-500);
}

.btn-outline:hover {
    background-color: rgba(219, 39, 119, 0.1);
}

.btn-lg {
    padding: 1.5rem 3rem;
    font-size: 1.125rem;
}

.btn-black {
    background-color: var(--black);
    color: var(--white);
    border: 2px solid var(--yellow-400);
}

.btn-black:hover {
    background-color: var(--gray-900);
}

/* Input */
.input {
    width: 100%;
    padding: 1.5rem 3rem;
    background-color: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: 9999px;
    color: var(--gray-800);
    font-size: 1rem;
}

.input:focus {
    outline: none;
    border-color: var(--pink-600);
    box-shadow: 0 0 0 4px rgba(236,72,153,0.07);
}

/* Improved focus styles for accessibility with pink accents */
button:focus, a:focus, input:focus, .product-action-btn:focus {
    outline: 3px solid rgba(236,72,153,0.12);
    outline-offset: 2px;
}

.input::placeholder {
    color: var(--gray-500);
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 1rem;
    background-color: var(--pink-600);
    color: var(--white);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    border: 2px solid var(--yellow-400);
}

/* Separator */
.separator {
    height: 1px;
    background-color: var(--gray-800);
    margin: 1.5rem 0;
}

/* Header/Nav */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(6px);
    z-index: 1000;
    border-bottom: 1px solid rgba(236,72,153,0.06); /* subtle pink tint */
}

/* Garante que o conteúdo não fique coberto pelo header */
body { padding-top: var(--header-height); }

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem; /* pad apenas horizontalmente para manter altura estável */
    max-width: 1280px;
    margin: 0 auto;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 3.5rem;
    height: 3.5rem;
    background: linear-gradient(to bottom right, var(--pink-600), var(--pink-500));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid var(--yellow-400);
    box-shadow: 0 10px 15px -3px rgba(219, 39, 119, 0.3);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text h1 {
    font-size: 1.875rem;
    font-weight: 900;
    letter-spacing: -0.025em;
}

.logo-text span {
    font-size: 1rem;
    color: var(--pink-500);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

/* Mobile nav toggle - hidden on desktop, shown on mobile via media query */
/* IMPORTANTE: Por padrão, o nav-toggle fica ESCONDIDO (display: none) */
.nav-toggle {
    display: none; /* Escondido por padrão */
    background: transparent;
    border: none;
    color: var(--white);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    padding: 0.25rem 0.5rem;
    margin-left: 0.5rem;
}

.nav-link {
    color: var(--gray-300);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--pink-500);
}

.nav-link.active {
    color: var(--pink-500);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--pink-500);
    border-radius: 9999px;
}

.cart-icon {
    position: relative;
    background-color: #ffffff;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.18s ease, transform 0.12s ease;
    padding: 0.1rem;
    border: 1px solid rgba(16,24,39,0.06);
    box-shadow: 0 4px 14px rgba(16,24,39,0.06);
}

.cart-icon:focus {
    outline: 2px solid rgba(236,72,153,0.14);
    outline-offset: 2px;
}

.cart-icon i {
    font-size: 1.05rem;
    color: black;
    line-height: 1;
}

.cart-icon:hover {
    transform: translateY(-2px);
    background-color: var(--gray-800);
}

/* Notification: fallback styling in case scripts use the `.notification` class */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #4CAF50;
    color: white;
    padding: 12px 16px;
    border-radius: 6px;
    z-index: 1000;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background-color: var(--pink-600);
    color: var(--white);
    font-size: 0.68rem;
    font-weight: 700;
    width: 1.05rem;
    height: 1.05rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.35);
}

/* Section */
.section {
    padding: 5rem 0;
}

.section-title-container {
    text-align: center;
    margin-bottom: 3rem;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(219, 39, 119, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    margin-bottom: 1rem;
}

.section-badge-icon {
    color: var(--pink-500);
    width: 1rem;
    height: 1rem;
}

.section-badge-text {
    color: var(--pink-500);
    font-weight: 500;
    font-size: 0.875rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.section-description {
    color: var(--gray-400);
    max-width: 32rem;
    margin: 0 auto;
}

/* Contact Section */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: var(--gray-800);
    padding: 30px;
    border-radius: 10px;
}

.contact-item i {
    font-size: 40px;
    color: var(--pink-500);
}

.contact-item h3 {
    font-size: 20px;
    margin-bottom: 5px;
}

.contact-item p {
    color: var(--gray-400);
}

/* Footer */
.footer {
    background-color: var(--gray-900);
    border-top: 1px solid var(--gray-800);
    padding: 3rem 0;
    margin-top: 5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--pink-500);
}

.footer-text {
    color: var(--gray-400);
    line-height: 1.6;
}

.footer-links {
    list-style: none;
}

.footer-link {
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.3s ease;
    margin-bottom: 0.5rem;
    display: block;
}

.footer-link:hover {
    color: var(--pink-500);
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icon {
    width: 2.5rem;
    height: 2.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--pink-600);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid var(--gray-800);
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* Banner Promocional */
.site-banner {
    padding: 2.5rem 0;
    background: transparent;
}
.site-banner .container {
    max-width: 1280px;
}
.site-banner-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
    object-fit: cover;
}
/* Ajustes responsivos */
@media (min-width: 1024px) {
    .site-banner { padding: 3.5rem 0; }
    .site-banner-image { max-height: 260px; }
}
@media (max-width: 768px) {
    .site-banner { padding: 1rem 0; }
    .site-banner-image { max-height: 160px; border-radius: 8px; }
}

/* ==================== RESPONSIVIDADE ==================== */

/* TELAS GRANDES (desktop) - default */
/* Em telas grandes, o menu deve ser visível sempre */
.nav-links {
    display: flex;
    gap: 2rem;
}

/* TELAS PEQUENAS (mobile) */
@media (max-width: 768px) {
    /* Esconde os links do menu em mobile por padrão */
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #ffffff;
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem 1.25rem;
        z-index: 999;
        animation: scaleIn 0.12s ease;
        border-bottom: 1px solid var(--gray-800);
    }
    
    /* Mostra o botão hamburguer apenas em mobile */
    .nav-toggle {
        display: inline-flex;
    }
    
    /* Quando o menu é aberto no mobile */
    .nav-links.open {
        display: flex;
    }

    .nav-links.open .nav-link {
        color: #000000 !important;
        padding: 0.5rem 0.25rem;
        border-radius: 6px;
    }

    .nav-links.open .nav-link:hover {
        background: rgba(255,255,255,0.02);
    }

    .nav-links.open .nav-link.active::after {
        display: none;
    }
    
    /* Ajustes no header para telas pequenas */
    .logo-text h1 { font-size: 1.1rem; }
    .logo-text span { font-size: 0.75rem; }
    .logo-icon { width: 2.2rem; height: 2.2rem; }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .cta-title {
        font-size: 1.875rem;
    }
    
    .product-name {
        font-size: 1.875rem;
    }
    
    .current-price {
        font-size: 2rem;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
}

/* TELAS MÉDIAS (tablets) - opcional */
@media (max-width: 1024px) and (min-width: 769px) {
    /* Em tablets, o menu ainda pode ser horizontal */
    .nav-links {
        gap: 1.5rem;
    }
    
    .nav-toggle {
        display: none; /* Continua escondido em tablets */
    }
}