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

:root {
    --primary-color: #0066ff;
    --secondary-color: #00d4ff;
    --bg-dark: #0a0a0a;
    --bg-darker: #000000;
    --bg-card: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --border-color: #2a2a2a;
    --success-color: #00ff88;
    --warning-color: #ffaa00;
    --error-color: #ff3366;
    --menu-hover: #0066ff;
    --top-bar-bg: #0066ff;
    --top-bar-text: #ffffff;
}

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

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Premium */
.premium-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-darker);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    margin-bottom: 0;
}

.header-top {
    background: var(--top-bar-bg);
    padding: 10px 0;
    text-align: center;
}

.header-promo {
    font-size: 13px;
    font-weight: 500;
    color: var(--top-bar-text);
}

.header-main {
    padding: 8px 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.logo h1 {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -1px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.main-nav {
    display: flex;
    gap: 32px;
    flex: 1;
    justify-content: center;
}

.main-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.main-nav a:hover {
    color: var(--menu-hover);
}

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

.header-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.icon-btn {
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.icon-btn:hover {
    background: var(--bg-card);
    transform: translateY(-2px);
}

.cart-count {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--primary-color);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* Hero Section */
.hero-section {
    height: 500px;
    background-color: var(--hero-bg, #0a0a0a);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin-top: 0;
    padding: 0;
}

.hero-slide {
    background: var(--hero-gradient, none);
    height: 100%;
    width: 100%;
    position: relative;
}

.hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: transform 0.5s ease;
}

/* Ensure content stays on top and is accessible */
.hero-content {
    position: relative;
    z-index: 10;
    padding: 2rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Visual editor banners - posicionamento controlado pelos estilos inline */
/* Removida a regra que forçava posição central - agora usa configuração do editor */

.hero-title {
    font-size: 64px;
    font-weight: 900;
    margin-bottom: 16px;
    letter-spacing: -2px;
}

/* Apply gradient ONLY to banners WITHOUT visual editor */
.hero-slide:not([style*="text-align"]) .hero-title {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Banners com editor visual - cores controladas pelos estilos inline do editor */
/* Apenas remove o gradiente padrão */
.hero-slide .hero-content[style*="text-align"] .hero-title,
.hero-slide .hero-content[style*="text-align"] .hero-subtitle {
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-weight: 400;
}

.btn-primary {
    display: inline-block;
    padding: 16px 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 102, 255, 0.4);
}

/* Secondary Banners */
.secondary-banners-section {
    padding: 45px 0 60px;
}

.secondary-banners-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.secondary-banner-link {
    text-decoration: none;
    display: block;
}

.secondary-banner {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 1;
    background: var(--bg-card);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.secondary-banner:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border-color: var(--primary-color);
}

.secondary-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.secondary-banner:hover img {
    transform: scale(1.1);
}

.secondary-banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: white;
    padding: 24px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.secondary-banner:hover .secondary-banner-overlay {
    transform: translateY(0);
}

.secondary-banner-overlay h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.secondary-banner-overlay p {
    font-size: 14px;
    margin: 0;
    opacity: 0.9;
    color: var(--text-secondary);
}

/* Products Section */
.products-section {
    padding: 80px 0;
}

.products-section.alt-bg {
    background: var(--bg-darker);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -1px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    font-weight: 400;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border-color: var(--primary-color);
}

.product-image {
    position: relative;
    width: 100%;
    height: 300px;
    background: var(--bg-darker);
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--primary-color);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-badge.new {
    background: var(--success-color);
    color: var(--bg-darker);
}

.product-badge.promo {
    background: var(--warning-color);
    color: var(--bg-darker);
}

.product-info {
    padding: 24px;
}

.product-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
    line-height: 1.4;
}

.product-price {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.btn-add-cart,
.btn-view-options {
    width: 100%;
    padding: 14px;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 12px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-add-cart:hover,
.btn-view-options:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.3);
}

.btn-add-cart:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-success {
    animation: btnPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

    50% {
        transform: scale(1.05);
    }

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

/* Footer Premium */
.premium-footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px;
    margin-top: 80px;
}

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

.footer-col h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col p {
    color: var(--text-secondary);
    line-height: 1.8;
}

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

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

.footer-col ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
}

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

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

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

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
}

@media (max-width: 1024px) {
    .mobile-menu-toggle {
        display: flex;
    }
}

/* Mobile Menu Drawer & Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-drawer {
    position: fixed;
    top: 0;
    right: -350px;
    width: 300px;
    height: 100%;
    background: var(--bg-darker);
    z-index: 2001;
    padding: 30px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

.mobile-menu-drawer.active {
    right: 0;
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
}

.close-btn {
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 24px;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mobile-nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

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

.drawer-footer {
    margin-top: auto;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.drawer-footer p {
    color: var(--text-secondary);
    font-size: 12px;
}

@media (max-width: 1024px) {
    .main-nav {
        display: none;
    }

    .hero-title {
        font-size: 48px;
    }

    .section-title {
        font-size: 32px;
    }

    .secondary-banners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .section-title {
        font-size: 28px;
    }

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

    .secondary-banners-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Hide banners marked to be hidden on mobile */
    .hide-on-mobile {
        display: none !important;
    }

    /* Hide WhatsApp phone number on mobile, show only icon */
    .whatsapp-btn span {
        display: none;
    }

    .whatsapp-btn {
        padding: 0.5rem !important;
        min-width: 40px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: auto !important;
        min-height: unset;
    }

    .hero-slide {
        height: auto;
        display: none;
        position: relative;
    }

    .hero-slide.active {
        display: block;
    }

    .hero-bg-img {
        position: relative !important;
        height: auto !important;
        object-fit: contain !important;
        display: block;
        width: 100%;
    }

    /* Mobile: hero-content - mantém posicionamento do editor */
    .hero-content {
        z-index: 10;
        pointer-events: none;
        /* NÃO sobrescreve: position, top, left, flex-direction, align-items, justify-content, padding */
        /* Esses valores vêm dos estilos inline do editor */
    }

    .hero-text {
        pointer-events: auto;
    }
}

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

/* Header Responsive Adjustments */
.header-logo-img {
    max-height: 80px;
    width: auto;
    transition: all 0.3s ease;
}

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

    .header-logo-img {
        max-height: 40px;
    }

    .header-actions {
        gap: 8px;
    }

    .icon-btn {
        padding: 6px;
    }

    /* Adjust user menu/profile in header to be more compact */
    .user-menu-container,
    .profile-icon {
        margin-right: 0.5rem !important;
    }

    /* Hide the text "Olá, Nome" or "Bem-vindo Entrar" on mobile, keep icon? 
       Actually user might want to keep it simple. Let's start with sizing. */
    .user-menu-container span,
    .profile-icon div {
        display: none !important;
    }

    .user-link,
    .profile-icon {
        gap: 0 !important;
    }
}