/* =====================================================
   REVENDA DIGITAL - Stylesheet
   Design: Neon / Gradiente / Moderno
   ===================================================== */

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --purple: #9b59b6;
    --purple-dark: #7d3c98;
    --purple-light: #c39bd3;
    --red: #e74c3c;
    --red-dark: #c0392b;
    --blue: #3498db;
    --blue-dark: #2980b9;
    --green: #2ecc71;
    --yellow: #f39c12;
    --bg-dark: #0a0a1a;
    --bg-card: rgba(255, 255, 255, 0.04);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --text-muted: rgba(255, 255, 255, 0.35);
    --border: rgba(255, 255, 255, 0.08);
    --glow-purple: rgba(155, 89, 182, 0.4);
    --glow-red: rgba(231, 76, 60, 0.4);
    --glow-blue: rgba(52, 152, 219, 0.3);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--purple), var(--red), var(--purple));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 5s ease infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.accent {
    color: var(--purple);
}

/* =====================================================
   LOADER
   ===================================================== */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.6s, visibility 0.6s;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.loader-content span {
    font-size: 18px;
    font-weight: 600;
    background: linear-gradient(135deg, var(--purple), var(--red));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(155, 89, 182, 0.15);
    border-top-color: var(--purple);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* =====================================================
   HEADER
   ===================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    /* Transparente no topo padrão */
    transition: all 0.4s ease;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
}

.header.scrolled {
    background: rgba(10, 10, 26, 0.6);
    /* Efeito de transparência vidrada */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}

.logo {
    display: block;
    text-decoration: none;
    position: relative;
    width: 70px;
    /* Espaço reservado para empurrar o menu para o lado */
    height: 40px;
    /* Mantém o header fininho */
}

.logo-img {
    height: 180px;
    /* Dobrado a pedido do usuário */
    width: auto;
    display: block;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    /* Centraliza a logo gigante vazando o header pra baixo e pra cima */
    transition: transform 0.3s;
    filter: drop-shadow(0 0 15px rgba(0, 255, 255, 0.2));
}

.logo:hover .logo-img {
    transform: translateY(-50%) scale(1.05);
}

.nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--purple), var(--red));
    transition: width 0.3s;
}

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

.cart-btn {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 16px;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    font-size: 18px;
}

.cart-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--purple);
    box-shadow: 0 0 20px var(--glow-purple);
}

.cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: linear-gradient(135deg, var(--red), var(--purple));
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.cart-count.pulse {
    animation: cartPulse 0.4s;
}

@keyframes cartPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.4);
    }

    100% {
        transform: scale(1);
    }
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
    border-radius: 2px;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 26, 0.98);
    backdrop-filter: blur(20px);
    padding: 20px;
    z-index: 999;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 15px;
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.mobile-menu a:hover {
    color: var(--text-primary);
}

/* =====================================================
   HERO
   ===================================================== */
/* Camadas do Hero (banner dinâmico via admin) */
.hero {
    position: relative;
    width: 100%;
    margin-top: 70px;
    /* Impede que o header fixo cubra o topo da imagem */
    aspect-ratio: 16 / 9;
    max-height: 100vh;
    /* Para evitar que fique absurdamente gigante em telas ultrawide */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg,
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    object-fit: fill;
    /* Para as tags de video, force preenchimento sem corte */
    z-index: 1;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-bg.active,
.hero-video.active {
    opacity: 1;
    z-index: 2;
}

/* Indicadores do Carrossel */
.carousel-indicators {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 5;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid transparent;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

.carousel-dot.active {
    background: var(--purple);
    border-color: rgba(255, 255, 255, 0.9);
    transform: scale(1.25);
    box-shadow: 0 0 10px rgba(155, 89, 182, 0.5);
}

.desktop-bg,
.desktop-carousel {
    display: block;
}

.mobile-bg,
.mobile-carousel {
    display: none;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(155, 89, 182, 0.12), transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulseGlow 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 2;
}

@keyframes pulseGlow {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.8;
    }
}

.hero-content {
    position: relative;
    z-index: 3;
    color: white;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    background: rgba(231, 76, 60, 0.15);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: var(--red);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 25px;
    animation: fadeInDown 0.8s;
}

.hero-title {
    font-size: clamp(32px, 6vw, 64px);
    font-weight: 900;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 15px;
    letter-spacing: -1px;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3), 0 0 10px rgba(155, 89, 182, 0.3);
    animation: fadeInUp 0.8s 0.2s both;
}

.hero-subtitle {
    font-size: clamp(14px, 2.5vw, 18px);
    color: var(--text-secondary);
    letter-spacing: 3px;
    margin-bottom: 15px;
    animation: fadeInUp 0.8s 0.4s both;
}

.hero-desc {
    font-size: 18px;
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.7;
    margin-bottom: 30px;
    animation: fadeInUp 0.8s 0.5s both;
}

.hero-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 35px;
    animation: fadeInUp 0.8s 0.6s both;
}

.price-old {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    text-decoration: line-through;
}

.price-current {
    font-size: 48px;
    font-weight: 900;
    color: var(--green);
    text-shadow: 0 0 30px rgba(46, 204, 113, 0.3);
}

.price-current small {
    font-size: 24px;
}

.price-badge {
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    color: #fff;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--purple), var(--red));
    color: #fff;
    padding: 16px 40px;
    border-radius: 14px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: var(--transition);
    box-shadow: 0 10px 40px var(--glow-purple);
    border: none;
    cursor: pointer;
    animation: fadeInUp 0.8s 0.7s both;
}

.btn-hero:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 50px var(--glow-purple);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 50px;
    animation: fadeInUp 0.8s 0.9s both;
}

.hero-stat {
    text-align: center;
}

.hero-stat strong {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
}

.hero-stat span {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =====================================================
   SEÇÃO GENÉRICA
   ===================================================== */
.section {
    padding: 80px 0;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: clamp(24px, 4vw, 38px);
    font-weight: 800;
    margin-bottom: 10px;
}

.section-desc {
    text-align: center;
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 50px;
}

/* =====================================================
   CATEGORIAS
   ===================================================== */
.categorias-grid {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.categoria-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px 28px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
}

.categoria-card:hover,
.categoria-card.active {
    background: rgba(155, 89, 182, 0.1);
    border-color: var(--purple);
    color: var(--text-primary);
    box-shadow: 0 0 25px var(--glow-purple);
    transform: translateY(-2px);
}

.cat-icon {
    font-size: 28px;
}

/* =====================================================
   PRODUTOS GRID
   ===================================================== */
.produtos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.produto-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.produto-card:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: rgba(155, 89, 182, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3),
        0 0 30px var(--glow-purple);
}

.produto-card .badge-destaque {
    position: absolute;
    top: 14px;
    right: 14px;
    background: linear-gradient(135deg, var(--red), var(--purple));
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    z-index: 2;
}

.produto-card .badge-desconto {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--green);
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    z-index: 2;
}

.produto-img-container {
    height: 180px;
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.1), rgba(231, 76, 60, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.produto-img-container img,
.produto-img-container video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s;
    border-radius: 8px;
}

.produto-card:hover .produto-img-container img,
.produto-card:hover .produto-img-container video {
    transform: scale(1.1);
}

.produto-img-container .emoji-placeholder {
    font-size: 64px;
    filter: drop-shadow(0 0 15px var(--glow-purple));
}

.produto-info {
    padding: 20px;
}

.produto-categoria {
    font-size: 11px;
    font-weight: 600;
    color: var(--purple);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.produto-nome {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.3;
}

.produto-descricao {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 14px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.produto-preco-container {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 10px;
}

.produto-preco-original {
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.produto-preco {
    font-size: 24px;
    font-weight: 800;
    color: var(--green);
}

.produto-preco small {
    font-size: 14px;
}

.produto-estoque {
    font-size: 12px;
    margin-bottom: 14px;
}

.produto-estoque.normal {
    color: var(--text-muted);
}

.produto-estoque.baixo {
    color: var(--yellow);
    font-weight: 600;
}

.produto-acoes {
    display: flex;
    gap: 10px;
    align-items: center;
}

.qty-control {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.qty-btn {
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: rgba(155, 89, 182, 0.2);
}

.qty-value {
    width: 36px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    background: none;
    border: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    padding: 8px 0;
}

.btn-comprar {
    flex: 1;
    padding: 10px 16px;
    background: linear-gradient(135deg, var(--purple), var(--red));
    border: none;
    border-radius: var(--radius-sm);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    letter-spacing: 0.3px;
}

.btn-comprar:hover {
    box-shadow: 0 5px 25px var(--glow-purple);
    transform: translateY(-1px);
}

.btn-comprar:active {
    transform: scale(0.97);
}

/* =====================================================
   BENEFÍCIOS
   ===================================================== */
.beneficios-section {
    background: radial-gradient(ellipse at 50% 50%, rgba(155, 89, 182, 0.05) 0%, transparent 60%);
}

.beneficios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.beneficio-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
    transition: var(--transition);
}

.beneficio-card:hover {
    transform: translateY(-5px);
    border-color: rgba(155, 89, 182, 0.3);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.beneficio-icon {
    font-size: 40px;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 15px var(--glow-purple));
}

.beneficio-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
}

.beneficio-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* =====================================================
   CTA SECTION
   ===================================================== */
.cta-section {
    padding: 60px 0;
}

.cta-card {
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.15), rgba(231, 76, 60, 0.1));
    border: 1px solid rgba(155, 89, 182, 0.2);
    border-radius: 24px;
    padding: 60px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(155, 89, 182, 0.1), transparent 70%);
    top: -100px;
    right: -100px;
    border-radius: 50%;
}

.cta-card h2 {
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 800;
    margin-bottom: 15px;
    position: relative;
}

.cta-card p {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 30px;
    position: relative;
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid var(--border);
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 10px;
}

.footer-links h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.footer-links a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    padding: 4px 0;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--purple);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 13px;
}

/* =====================================================
   CARRINHO SIDEBAR
   ===================================================== */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    max-width: 100%;
    height: 100vh;
    background: #111128;
    border-left: 1px solid var(--border);
    z-index: 2001;
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.cart-header h3 {
    font-size: 18px;
    font-weight: 700;
}

.cart-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text-primary);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition);
}

.cart-close:hover {
    background: rgba(231, 76, 60, 0.2);
    color: var(--red);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
}

.cart-empty {
    text-align: center;
    padding: 40px 0;
    color: var(--text-muted);
}

.cart-empty p {
    margin-top: 12px;
    font-size: 15px;
    color: var(--text-secondary);
}

.cart-empty small {
    font-size: 13px;
}

.cart-item {
    display: flex;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    animation: fadeInRight 0.3s;
}

.cart-item-img {
    width: 55px;
    height: 55px;
    background: rgba(155, 89, 182, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.cart-item-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--green);
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.cart-item-qty button {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: none;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
}

.cart-item-qty button:hover {
    background: rgba(155, 89, 182, 0.2);
    border-color: var(--purple);
}

.cart-item-qty span {
    font-size: 14px;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--red);
    cursor: pointer;
    font-size: 18px;
    padding: 5px;
    opacity: 0.6;
    transition: var(--transition);
    align-self: flex-start;
}

.cart-item-remove:hover {
    opacity: 1;
}

.cart-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.2);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 16px;
}

.cart-total strong {
    font-size: 22px;
    color: var(--green);
}

.btn-finalizar {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}

.btn-finalizar:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
}

/* =====================================================
   PROVA SOCIAL
   ===================================================== */
.prova-social-toast {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 900;
    transform: translateX(-120%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(20, 20, 40, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 14px 18px;
    max-width: 360px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.prova-social-toast.show {
    transform: translateX(0);
}

.ps-content {
    flex: 1;
    /* Permite que o texto expanda corretamente */
}

.ps-icon {
    font-size: 24px;
}

#provaSocialMsg {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 2px;
    color: var(--text-primary);
}

#provaSocialTempo {
    font-size: 11px;
    color: var(--text-secondary);
}

.ps-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 20px;
    padding: 0 4px;
    transition: var(--transition);
}

.ps-close:hover {
    color: var(--text-primary);
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s, transform 0.8s;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Particle */
.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(155, 89, 182, 0.4);
    border-radius: 50%;
    pointer-events: none;
    animation: floatParticle linear infinite;
}

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-20vh) scale(1);
        opacity: 0;
    }
}

/* =====================================================
   RESPONSIVO
   ===================================================== */
@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .logo-img {
        height: 130px;
        /* Ajuste mobile */
    }

    .hero {
        padding: 0;
        min-height: auto;
        aspect-ratio: 9 / 16;
        max-height: none;
    }

    .desktop-bg,
    .desktop-carousel {
        display: none;
    }

    .mobile-bg,
    .mobile-carousel {
        display: block;
    }

    .hero-title {
        letter-spacing: 0;
    }

    .hero-stats {
        gap: 20px;
        flex-wrap: wrap;
    }

    .hero-price {
        flex-wrap: wrap;
    }

    .price-current {
        font-size: 36px;
    }

    .categorias-grid {
        gap: 8px;
    }

    .categoria-card {
        padding: 14px 18px;
    }

    .produtos-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 16px;
    }

    .beneficios-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .cart-sidebar {
        width: 100%;
    }

    .prova-social-toast {
        left: 10px;
        right: 10px;
        bottom: 10px;
        max-width: calc(100% - 20px);
    }

    .cta-card {
        padding: 40px 20px;
    }

    .section {
        padding: 50px 0;
    }
}

@media (max-width: 480px) {
    .produtos-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        gap: 15px;
    }
}

/* =====================================================
   WELCOME MODAL (POPUP INICIAL)
   ===================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease-in-out;
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: var(--surface);
    width: 90%;
    max-width: 650px;
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.modal-overlay.open .modal-container {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: var(--red);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 28px;
    font-weight: bold;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: var(--transition);
    box-shadow: 0 0 20px rgba(231, 76, 60, 0.5);
}

.modal-close:hover {
    background: var(--red);
    color: white;
    transform: rotate(90deg);
}

.modal-content {
    padding: 40px 30px;
    text-align: center;
    position: relative;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--purple), transparent 70%);
    opacity: 0.15;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.modal-content>* {
    position: relative;
    z-index: 1;
}

/* Ajustes da estática antiga do hero para o modal */
.modal-content .hero-title {
    font-size: clamp(28px, 5vw, 42px);
    margin-bottom: 10px;
}

.modal-content .hero-desc {
    font-size: 16px;
    margin-bottom: 25px;
}

.modal-content .hero-price {
    margin-bottom: 25px;
}

.modal-content .hero-stats {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

@media (max-width: 600px) {
    .modal-content {
        padding: 70px 20px 30px;
        /* 70px no topo afasta o texto do botão X */
    }

    .modal-close {
        top: 10px;
        right: 15px;
        transform: scale(0.85);
        /* Deixa o botão X um pouco mais proporcional à tela pequena */
    }

    .modal-content .hero-stats {
        flex-direction: column;
        gap: 15px;
    }

    .modal-content .stat-item {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding-bottom: 15px;
    }

    .modal-content .stat-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .hero-stat strong {
        font-size: 18px;
    }

    .btn-hero {
        padding: 14px 30px;
        font-size: 14px;
    }
}