@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800;900&family=Oswald:wght@500;700&display=swap');

:root {
    /* Spartan Dark Base */
    --h-gold: 42;
    --h-red: 0;
    
    --primary: hsl(var(--h-gold), 100%, 50%); /* Dourado / Amarelo Vibrante */
    --primary-dark: hsl(var(--h-gold), 100%, 35%);
    --accent:   hsl(var(--h-red), 85%, 55%); /* Vermelho Impacto */
    
    --bg-main: hsl(0, 0%, 5%); /* Preto Master */
    --bg-card: hsl(0, 0%, 10%); /* Preto Carvão */
    --bg-card-hover: hsl(0, 0%, 15%);
    
    --text-main: hsl(0, 0%, 100%); /* Absolute White */
    --text-muted: hsl(0, 0%, 65%);
    
    --border: rgba(255, 255, 255, 0.1);
    --border-glow: 0 0 15px rgba(255, 170, 0, 0.2);
    
    --font-heading: 'Oswald', sans-serif; /* Impacto brutalista */
    --font-body: 'Outfit', sans-serif;
    
    --radius-lg: 0px; /* Brutalismo - arestas vivas */
    --radius-md: 0px;
    --transition: cubic-bezier(0.19, 1, 0.22, 1);
}

/* --- Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Menu Desktop/Mobile --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 1000;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

header.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    height: 70px;
}

.logo img {
    height: 45px;
    transition: var(--transition);
    filter: drop-shadow(0 0 10px rgba(255, 170, 0, 0.3));
}

/* --- Hero Section - Spartan Power --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px;
    background: #000;
    /* Fundo pode receber uma imagem depois via inline style ou pseudo element, mas o dark garante robustez */
    background-image: radial-gradient(circle at center, hsl(0, 0%, 15%) 0%, var(--bg-main) 100%);
    overflow: hidden;
    border-bottom: 2px solid var(--primary);
}

.hero-content {
    max-width: 1000px;
    text-align: center;
    z-index: 2;
}

.hero-content h1 {
    font-size: clamp(3.5rem, 10vw, 7rem);
    line-height: 0.9;
    margin-bottom: 1rem;
    color: var(--text-main);
    text-shadow: 0 5px 20px rgba(0,0,0,0.8);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s var(--transition) forwards;
}

.hero-content h1 span {
    color: var(--primary);
    display: block;
}

.hero-content p {
    font-size: 1.4rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 3rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s var(--transition) 0.2s forwards;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s var(--transition) 0.4s forwards;
}

/* --- Buttons - Brutal --- */
.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    background: var(--primary);
    color: #000;
    text-decoration: none;
    border-radius: var(--radius-md); /* Quadradão */
    font-weight: 900;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: 2px solid var(--primary);
    box-shadow: 0 0 15px rgba(255, 170, 0, 0.4);
}

.btn-cta:hover {
    background: #000;
    color: var(--primary);
    box-shadow: 0 0 25px rgba(255, 170, 0, 0.6);
    transform: scale(1.05);
}

.btn-cta.outline {
    background: transparent;
    border: 2px solid var(--text-main);
    color: var(--text-main);
    box-shadow: none;
}

.btn-cta.outline:hover {
    background: var(--text-main);
    color: #000;
}

/* --- Sections --- */
.section-title {
    padding: 100px 20px 40px;
    text-align: center;
}

.section-title h2 {
    font-size: 4rem;
    color: var(--text-main);
    margin-bottom: 5px;
    line-height: 1;
}

.section-title h2 span {
    color: var(--primary);
}

.section-title p {
    color: var(--primary);
    font-size: 1.2rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 700;
}

/* --- Categories Matrix --- */
.categories-container {
    padding: 0 20px 60px;
    display: flex;
    justify-content: center;
}

.categories-nav {
    display: flex;
    gap: 10px;
    padding: 4px;
    background: transparent;
    overflow-x: auto;
    scrollbar-width: none;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1200px;
}

.categories-nav::-webkit-scrollbar { display: none; }

.cat-btn {
    padding: 12px 24px;
    border: 1px solid var(--border);
    background: #000;
    color: var(--text-muted);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s ease;
}

.cat-btn:hover {
    border-color: var(--primary);
    color: var(--text-main);
}

.cat-btn.active {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(255, 170, 0, 0.3);
}

/* --- Product Grid - Hardcore --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px 100px;
}

.product-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 24px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    background: var(--bg-card-hover);
    border-color: rgba(255, 170, 0, 0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.product-card:hover::before {
    transform: scaleX(1);
}

/* Frasco Container - FIX CORTES */
.img-container {
    width: 100%;
    height: 300px; /* Fix height for consistency, remove aspect-ratio to avoid rigid box */
    background: transparent; 
    margin-bottom: 24px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Circle behind product */
.img-container::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 170, 0, 0.15) 0%, transparent 70%);
    z-index: 0;
}

.product-card img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Garantir que o pote não seja cortado */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1;
    filter: drop-shadow(0 15px 20px rgba(0,0,0,0.4));
}

.product-card:hover img {
    transform: scale(1.15) translateY(-10px);
}

.category-tag {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
    font-family: var(--font-heading);
}

.product-info h3 {
    font-size: 1.6rem;
    margin-bottom: 8px;
    line-height: 1.1;
    color: var(--text-main);
}

.short-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 300;
    line-height: 1.4;
    margin-bottom: 20px;
}

.btn-view {
    width: 100%;
    padding: 15px;
    margin-top: 24px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-main);
    border-radius: var(--radius-md);
    font-weight: 700;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.product-card:hover .btn-view {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
}

/* --- Modal - Hardcore Dark --- */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    width: 100%;
    max-width: 1100px;
    max-height: 90vh;
    border-radius: var(--radius-md);
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    box-shadow: 0 0 50px rgba(0,0,0,0.8);
    position: relative;
    animation: modalScale 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow-y: auto; /* Scroll GERAL do modal pra nao cortar em mobile */
}

@keyframes modalScale {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.modal-img {
    background: #050505;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-right: 1px solid var(--border);
}

.modal-img::before {
    content: 'KING';
    position: absolute;
    font-size: 12rem;
    font-family: var(--font-heading);
    color: rgba(255, 255, 255, 0.02);
    font-weight: 900;
    transform: rotate(-90deg);
    left: -50px;
}

.modal-img img {
    width: 100%;
    height: 100%;
    max-height: 500px;
    object-fit: contain;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.6));
    z-index: 2;
}

.modal-info {
    padding: 50px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.modal-info h2 {
    font-size: 3.5rem;
    margin-bottom: 16px;
    line-height: 1.1;
    color: var(--primary);
}

.modal-info p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.benefits-list {
    margin: 32px 0 40px;
}

.benefits-list h4 {
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-family: var(--font-heading);
}

.benefits-list ul {
    list-style: none;
}

.benefits-list li {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 500;
    font-size: 1.1rem;
}

.benefits-list li::before {
    content: '■'; /* Brutal bullet */
    color: var(--primary);
    font-size: 0.8rem;
}

.btn-interest {
    width: 100%;
    padding: 22px;
    background: var(--primary);
    color: #000;
    text-align: center;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 900;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 2px solid var(--primary);
}

.btn-interest:hover {
    background: #000;
    color: var(--primary);
    box-shadow: 0 0 20px rgba(255, 170, 0, 0.4);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 10;
    transition: all 0.2s;
}

.close-modal:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    transform: rotate(90deg);
}

/* --- Footer --- */
footer {
    background: #000;
    border-top: 1px solid var(--border);
    color: white;
    padding: 80px 40px 40px;
    text-align: center;
}

.footer-logo {
    height: 70px;
    margin-bottom: 30px;
    filter: drop-shadow(0 0 10px rgba(255,170,0,0.2));
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: var(--border); }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* --- Scroll To Top Btn --- */
.scroll-top {
    position: fixed;
    bottom: -80px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    text-decoration: none;
    z-index: 1500;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid var(--primary);
    border-radius: var(--radius-md);
}

.scroll-top.visible {
    bottom: 30px;
}

.scroll-top:hover {
    background: #000;
    color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 170, 0, 0.4);
}

/* --- Mobile Responsiveness --- */
@media (max-width: 1000px) {
    .modal-content {
        display: flex;
        flex-direction: column;
        max-height: 90vh;
        overflow-y: auto; /* Permitir scroll dentro do mobile */
    }
    .modal-img { 
        width: 100%;
        height: 250px; 
        padding: 20px;
        border-right: none;
        border-bottom: 1px solid var(--border);
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .modal-img img {
        margin: 0 auto;
        display: block;
    }
    .modal-img::before { display: none; }
    .modal-info { width: 100%; padding: 30px; overflow-y: visible; /* Scroll global gerencia */ }
    .hero-content h1 { font-size: 4rem; }
    .section-title h2 { font-size: 3rem; }
}

@media (max-width: 768px) {
    .hero { padding: 100px 20px 60px; }
    .hero-content h1 { font-size: 3.5rem; }
    .hero-content p { font-size: 1.1rem; }
    .hero-btns { flex-direction: column; width: 100%; }
    .btn-cta { width: 100%; justify-content: center; }
    .product-grid { grid-template-columns: 1fr; padding: 0 20px 80px; }
    .categories-nav { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; }
}

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