/* ===== VARIÁVEIS CSS ===== */
:root {
    /* Cores principais */
    --primary-color: #fef037; /* Amarelo */
    --secondary-color: #DC143C; /* Vermelho */
    --accent-color: #FFD700; /* Dourado */
    
    /* Cores de fundo */
    --bg-dark: #1a1a1a;
    --bg-darker: #0f0f0f;
    --bg-light: #2a2a2a;
    --bg-lighter: #3a3a3a;
    
    /* Cores de texto */
    --text-white: #ffffff;
    --text-light: #f0f0f0;
    --text-gray: #cccccc;
    --text-dark: #666666;
    
    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, #ffeb3b 100%);
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color) 0%, #FF4500 100%);
    --gradient-dark: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
    
    /* Tipografia */
    --font-primary: 'Orbitron', sans-serif;
    --font-secondary: 'Roboto', sans-serif;
    
    /* Espaçamentos */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
    
    /* Bordas */
    --border-radius: 8px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
    
    /* Sombras */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.25);
    
    /* Transições */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ===== RESET E CONFIGURAÇÕES BÁSICAS ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Prevenir overflow horizontal em todos os elementos */
*, *::before, *::after {
    max-width: 100%;
}

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

body {
    font-family: var(--font-secondary);
    line-height: 1.6;
    color: var(--text-white);
    background-color: var(--bg-dark);
    overflow-x: hidden;
    padding-top: 80px;
    max-width: 100vw;
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    width: 100%;
    box-sizing: border-box;
}

/* ===== TIPOGRAFIA ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: 3.5rem;
    font-weight: 900;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
}

h3 {
    font-size: 1.8rem;
    font-weight: 600;
}

h4 {
    font-size: 1.4rem;
    font-weight: 500;
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-gray);
}

/* ===== BOTÕES ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-lg);
    border: none;
    border-radius: var(--border-radius);
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left var(--transition-slow);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #000000;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--gradient-secondary);
    color: var(--text-white);
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: #000000;
    transform: translateY(-2px);
}

.btn-large {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1.1rem;
}

/* ===== HEADER E NAVEGAÇÃO ===== */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
}

.navbar {
    padding: var(--spacing-sm) 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
}

.nav-link {
    text-decoration: none;
    color: var(--text-white);
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition-normal);
    position: relative;
    padding: var(--spacing-xs) 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

/* Botão de Acesso Administrativo */
.admin-access {
    color: #ff6b6b !important;
    font-size: 18px;
    padding: 8px 12px !important;
    border-radius: 50%;
    background: rgba(255, 107, 107, 0.1);
    border: 2px solid rgba(255, 107, 107, 0.3);
    transition: all 0.3s ease;
    position: relative;
}

.admin-access:hover {
    color: #ff4757 !important;
    background: rgba(255, 107, 107, 0.2);
    border-color: #ff4757;
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.admin-access::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff6b6b, #ffa502, #ff6b6b);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.admin-access:hover::before {
    opacity: 0.3;
    animation: adminGlow 2s infinite;
}

@keyframes adminGlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.nav-cart {
    position: relative;
}

.cart-icon {
    color: var(--text-white);
    font-size: 1.2rem;
    text-decoration: none;
    transition: color var(--transition-normal);
}

.cart-icon:hover {
    color: var(--primary-color);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--secondary-color);
    color: var(--text-white);
    font-size: 0.7rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== WHATSAPP FLUTUANTE ===== */
.whatsapp-float {
    position: fixed;
    bottom: var(--spacing-lg);
    right: var(--spacing-lg);
    z-index: 1000;
}

.whatsapp-float a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: #000000;
    border-radius: 50%;
    font-size: 1.5rem;
    text-decoration: none;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
    animation: pulse 2s infinite;
}

.whatsapp-float a:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(254, 240, 55, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(254, 240, 55, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(254, 240, 55, 0);
    }
}

/* ===== BOTÃO VOLTAR AO TOPO ===== */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: #000000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--bg-dark);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.back-to-top i {
    font-size: 1.2rem;
    font-weight: bold;
}

/* ===== HAMBURGER MENU ===== */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-white);
    transition: var(--transition-normal);
}

.hamburger.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* ===== SEÇÕES ===== */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xxl);
}

.section-header h2 {
    color: var(--text-white);
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-header p {
    color: var(--text-gray);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-darker);
    padding: var(--spacing-xxl) 0 var(--spacing-lg);
    margin-top: var(--spacing-xxl);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-section h3,
.footer-section h4 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    font-family: var(--font-primary);
}

.logo-footer {
    width: 120px;
    height: auto;
    margin-bottom: var(--spacing-md);
    opacity: 0.9;
    transition: all var(--transition-normal);
}

.logo-footer:hover {
    opacity: 1;
    transform: scale(1.05);
}

.footer-section p {
    color: var(--text-gray);
    margin-bottom: var(--spacing-md);
}

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

.footer-section ul li {
    margin-bottom: var(--spacing-xs);
}

.footer-section ul li a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color var(--transition-normal);
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-light);
    color: var(--text-white);
    border-radius: 50%;
    text-decoration: none;
    transition: all var(--transition-normal);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.contato-info p {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-sm);
}

.contato-info i {
    color: var(--primary-color);
    width: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--bg-light);
    color: var(--text-dark);
}

.footer-bottom .desenvolvimento {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #888;
}

.footer-bottom .desenvolvimento a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: bold;
    color: #ffd700;
}

.footer-bottom .desenvolvimento a:hover {
    color: #ffed4e;
    text-decoration: none;
}

/* ===== ANIMAÇÕES ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

.animate-fade-in-left {
    animation: fadeInLeft 0.6s ease forwards;
}

.animate-fade-in-right {
    animation: fadeInRight 0.6s ease forwards;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--bg-dark);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        padding: var(--spacing-lg) 0;
        gap: var(--spacing-md);
    }

    .nav-menu.active {
        left: 0;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .container {
        padding: 0 var(--spacing-sm);
        max-width: 100vw;
        overflow-x: hidden;
    }

    .btn-large {
        padding: var(--spacing-sm) var(--spacing-lg);
        font-size: 1rem;
    }

    .whatsapp-float {
        bottom: var(--spacing-sm);
        right: var(--spacing-sm);
    }

    .whatsapp-float a {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .back-to-top {
        bottom: 80px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .back-to-top i {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .logo-img {
        height: 35px;
        max-width: 120px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .back-to-top {
        bottom: 70px;
        right: 15px;
        width: 40px;
        height: 40px;
    }
    
    .back-to-top i {
        font-size: 0.9rem;
    }
    
    .logo-footer {
        width: 100px;
    }
}

/* ===== MODAL DE LANÇAMENTO TRIUNFAL ===== */
.modal-lancamento {
    display: none !important;
    position: fixed !important;
    z-index: 999999 !important;
    left: 0 !important;
    top: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.9)) !important;
    backdrop-filter: blur(15px) !important;
    animation: modalEntradaTriunfal 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.modal-lancamento.show {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.modal-content {
    position: relative;
    max-width: 85%;
    max-height: 85%;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border: 4px solid #ffd700;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 
        0 0 0 8px rgba(255, 215, 0, 0.3),
        0 25px 80px rgba(0, 0, 0, 0.6),
        0 0 100px rgba(255, 215, 0, 0.2);
    animation: modalContentEntrada 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.3s both;
    transform-origin: center;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(145deg, #ffd700, #ffed4e);
    color: #1a1a1a;
    border: 4px solid #1a1a1a;
    font-size: 1.6rem;
    font-weight: 900;
    cursor: pointer;
    z-index: 100001;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 
        0 0 0 3px rgba(255, 215, 0, 0.3),
        0 8px 25px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(255, 215, 0, 0.3);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    animation: botaoPulso 2s infinite;
}

.modal-close:hover {
    background: linear-gradient(145deg, #ffed4e, #ffd700);
    color: #000000;
    transform: scale(1.2) rotate(90deg);
    box-shadow: 
        0 0 0 5px rgba(255, 215, 0, 0.5),
        0 12px 35px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(255, 215, 0, 0.5);
    border-color: #000000;
}

.modal-close:active {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 
        0 0 0 3px rgba(255, 215, 0, 0.7),
        0 6px 20px rgba(0, 0, 0, 0.5),
        0 0 15px rgba(255, 215, 0, 0.7);
}

.modal-image {
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
}

.modal-image img {
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.modal-image img:hover {
    transform: scale(1.02);
}

/* Animações triunfais */
@keyframes modalEntradaTriunfal {
    0% {
        opacity: 0;
        transform: scale(0.3) rotate(-10deg);
        backdrop-filter: blur(0px);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05) rotate(2deg);
        backdrop-filter: blur(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
        backdrop-filter: blur(15px);
    }
}

@keyframes modalContentEntrada {
    0% {
        opacity: 0;
        transform: scale(0.5) translateY(-100px) rotate(-15deg);
    }
    60% {
        opacity: 0.9;
        transform: scale(1.1) translateY(10px) rotate(3deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0) rotate(0deg);
    }
}

@keyframes botaoPulso {
    0% {
        box-shadow: 
            0 0 0 3px rgba(255, 215, 0, 0.3),
            0 8px 25px rgba(0, 0, 0, 0.4),
            0 0 20px rgba(255, 215, 0, 0.3);
    }
    50% {
        box-shadow: 
            0 0 0 6px rgba(255, 215, 0, 0.5),
            0 8px 25px rgba(0, 0, 0, 0.4),
            0 0 30px rgba(255, 215, 0, 0.5);
    }
    100% {
        box-shadow: 
            0 0 0 3px rgba(255, 215, 0, 0.3),
            0 8px 25px rgba(0, 0, 0, 0.4),
            0 0 20px rgba(255, 215, 0, 0.3);
    }
} 