/* ==========================
   GOLEIRO DE ÓCULOS
   ========================== */

:root{
    --yellow:#ffc400;
    --yellow-hover:#ffdb4d;
    --black:#000000;
    --dark:#111111;
    --dark-2:#1a1a1a;
    --white:#ffffff;
    --gray:#cccccc;
    --border:#2c2c2c;
    --shadow:0 10px 30px rgba(0,0,0,.35);
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    background:var(--black);
    color:var(--white);
    font-family:'Roboto',sans-serif;
    line-height:1.6;
}

img{
    max-width:100%;
    display:block;
}

a{
    text-decoration:none;
    color:inherit;
}

ul{
    list-style:none;
}

.container{
    width:90%;
    max-width:1200px;
    margin:0 auto;
}

/* ==========================
   HEADER
   ========================== */

header{
    background:#000;
    border-bottom:2px solid #ffc400;
    position:sticky;
    top:0;
    z-index:999;
}

.nav-container{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:4px 0;
}

.logo img{
    width:220px;
    height:auto;
    display:block;
}

nav ul{
    display:flex;
    gap:30px;
}

nav a{
    font-family:'Oswald',sans-serif;
    text-transform:uppercase;
    font-size:1rem;
    transition:.3s;
}

nav a:hover{
    color:var(--yellow);
}

/* ==========================
   HERO
   ========================== */

.hero{
    position:relative;
    min-height:650px;
    background:url("../img/banner-desktop.png") center center;
    background-size:cover;
    display:flex;
    align-items:center;
}

.overlay{
    position:absolute;
    inset:0;
    background:
    linear-gradient(
        rgba(0,0,0,.85),
        rgba(0,0,0,.65)
    );
}

.hero-content{
    position:relative;
    z-index:2;
}

.hero-text{
    max-width:650px;
}

.hero h1{
    font-family:'Oswald',sans-serif;
    font-size:4rem;
    text-transform:uppercase;
    line-height:1.1;
    margin-bottom:20px;
}

.hero p{
    font-size:1.2rem;
    color:#eee;
    margin-bottom:30px;
}

/* ==========================
   BOTÕES
   ========================== */

.btn{
    display:inline-block;
    background:var(--yellow);
    color:#000;
    padding:14px 28px;
    border-radius:8px;
    font-weight:700;
    transition:.3s;
}

.btn:hover{
    background:var(--yellow-hover);
    transform:translateY(-2px);
}

/* ==========================
   SEÇÕES
   ========================== */

section{
    padding:70px 0;
}

section h2{
    font-family:'Oswald',sans-serif;
    text-transform:uppercase;
    font-size:2.3rem;
    margin-bottom:30px;
    color:var(--yellow);
}

.sobre-site{
    background:var(--dark);
}

.sobre-site p{
    max-width:900px;
    font-size:1.1rem;
    color:#ddd;
}

/* ==========================
   BUSCA
   ========================== */

.busca{
    padding:40px 0;
    background:#0d0d0d;
}

#searchInput{
    width:100%;
    padding:18px;
    border-radius:10px;
    border:none;
    background:#1d1d1d;
    color:white;
    font-size:1rem;
    outline:none;
}

#searchInput:focus{
    border:1px solid var(--yellow);
}

/* ==========================
   PRODUTOS
   ========================== */

.products-grid{
    display:grid;
    grid-template-columns:
    repeat(auto-fit,minmax(280px,1fr));
    gap:25px;
}

.product-card{
    background:var(--dark);
    border:1px solid var(--border);
    border-radius:14px;
    overflow:hidden;
    transition:.3s;
    box-shadow:var(--shadow);
}

.product-card:hover{
    transform:translateY(-6px);
    border-color:var(--yellow);
}

.product-card img{
    width:100%;
    height:260px;
    object-fit:cover;
    background:#fff;
}

.product-info{
    padding:20px;
}

.product-info h3{
    font-family:'Oswald',sans-serif;
    text-transform:uppercase;
    font-size:1.4rem;
    margin-bottom:10px;
}

.product-info p{
    color:#ddd;
    margin-bottom:20px;
    min-height:90px;
}

.product-info .btn{
    width:100%;
    text-align:center;
}

/* ==========================
   DESTAQUES
   ========================== */

.destaques{
    background:#0d0d0d;
}

/* ==========================
   DICAS
   ========================== */

.conteudo{
    background:var(--dark);
}

.content-grid{
    display:grid;
    grid-template-columns:
    repeat(auto-fit,minmax(280px,1fr));
    gap:25px;
}

.content-grid article{
    background:#181818;
    border-left:5px solid var(--yellow);
    padding:25px;
    border-radius:10px;
}

.content-grid h3{
    margin-bottom:15px;
    font-family:'Oswald',sans-serif;
}

.content-grid p{
    color:#ddd;
}

/* ==========================
   FOOTER
   ========================== */

footer{
    background:#050505;
    border-top:2px solid var(--yellow);
}

.footer-content{
    display:grid;
    grid-template-columns:
    repeat(auto-fit,minmax(220px,1fr));
    gap:40px;
    padding:50px 0;
}

.footer-content h4{
    color:var(--yellow);
    margin-bottom:15px;
    font-family:'Oswald',sans-serif;
}

.footer-content ul li{
    margin-bottom:10px;
}

.footer-content a:hover{
    color:var(--yellow);
}

.copyright{
    text-align:center;
    padding:20px;
    border-top:1px solid #222;
    color:#999;
    font-size:.9rem;
}

.logo{
    margin:0;
    padding:0;
    line-height:0;
}

/* ==========================
   LOADING
   ========================== */

.loading{
    text-align:center;
    padding:50px;
    color:#ccc;
}

/* ==========================
   RESPONSIVO
   ========================== */

@media(max-width:900px){

    .nav-container{
        flex-direction:column;
        gap:20px;
    }

    nav ul{
        flex-wrap:wrap;
        justify-content:center;
        gap:15px;
    }

    .hero{
        min-height:500px;
    }

    .hero h1{
        font-size:2.8rem;
    }

}

@media(max-width:600px){

    .container{
        width:94%;
    }

    .hero{
        min-height:450px;
    }

    .hero h1{
        font-size:2.2rem;
    }

    .hero p{
        font-size:1rem;
    }

    section h2{
        font-size:1.8rem;
    }

    .product-card img{
        height:220px;
    }

}

@media(max-width:768px){

    .products-grid{
        grid-template-columns:repeat(2,1fr);
        gap:10px;
    }

    .product-card{
        border-radius:10px;
    }

    .product-card img{
        height:120px;
        object-fit:contain;
        padding:8px;
    }

    .product-info{
        padding:10px;
    }

    .product-info h3{
        font-size:0.95rem;
        line-height:1.2;
    }

    .product-info p{
        font-size:0.8rem;
        min-height:auto;
        margin-bottom:10px;
    }

    .product-info .btn{
        font-size:0.75rem;
        padding:10px 5px;
    }

    .product-info p{
        display:none;
    }

    .hero{
        background:url("../img/banner-mobile.png") center center;
        background-size:cover;
        min-height:500px;
    }

    .logo img{
        width:140px;
        height:auto;
    }

    .nav-container{
        flex-direction:column;
        gap:6px;
        padding:5px 0;
    }

    nav ul{
        gap:18px;
        margin:0;
        padding:0;
    }

}

.hero-small{
    min-height:350px;
}