*{
    box-sizing:border-box;
    margin:0;
    padding:0;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:Arial,Helvetica,sans-serif;
    background:#f7f7f7;
    color:#171717;
}

header{
    background:#d90000;
    color:white;
    position:sticky;
    top:0;
    z-index:1000;
}

.navbar{
    max-width:1200px;
    margin:auto;
    padding:16px 20px;
    display:flex;
    align-items:center;
    gap:30px;
}

.logo{
    font-size:23px;
    font-weight:900;
    margin-right:auto;
}

nav{
    display:flex;
    gap:25px;
}

nav a{
    color:white;
    text-decoration:none;
    font-weight:bold;
}

.wa-header{
    background:white;
    color:#d90000;
    padding:10px 17px;
    border-radius:8px;
    text-decoration:none;
    font-weight:bold;
}


/* HERO */

.hero{
    background:linear-gradient(
        90deg,
        #9e0000,
        #df0000
    );
    color:white;
}

.hero-content{
    max-width:1200px;
    min-height:500px;
    margin:auto;
    padding:70px 20px;
    display:flex;
    align-items:center;
}

.hero-label{
    font-size:13px;
    font-weight:bold;
    letter-spacing:2px;
}

.hero h1{
    font-size:58px;
    max-width:750px;
    margin:20px 0;
    line-height:1.05;
}

.hero h1 span{
    display:block;
}

.hero p{
    max-width:600px;
    font-size:18px;
    line-height:1.7;
    margin-bottom:30px;
}

.hero-button{
    display:inline-block;
    background:white;
    color:#d00000;
    padding:15px 25px;
    border-radius:8px;
    text-decoration:none;
    font-weight:bold;
}


/* CONTENT */

.container{
    max-width:1200px;
    margin:auto;
    padding:70px 20px;
}

.section-head{
    display:flex;
    justify-content:space-between;
    align-items:end;
    gap:20px;
}

.small-title{
    color:#d00000;
    font-size:13px;
    font-weight:bold;
    letter-spacing:2px;
}

h2{
    font-size:35px;
    margin-top:8px;
}


/* SEARCH */

.search input{
    width:280px;
    padding:14px 17px;
    border:1px solid #ddd;
    border-radius:8px;
    font-size:15px;
    outline:none;
}


/* CATEGORY */

.categories{
    display:flex;
    gap:10px;
    margin:30px 0;
    flex-wrap:wrap;
}

.category{
    padding:11px 20px;
    background:white;
    border:1px solid #ddd;
    border-radius:30px;
    cursor:pointer;
    font-weight:bold;
}

.category.active,
.category:hover{
    background:#d90000;
    color:white;
    border-color:#d90000;
}


/* PRODUCTS */

.products{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:22px;
}

.product-card{
    background:white;
    border-radius:14px;
    overflow:hidden;
    box-shadow:0 5px 20px rgba(0,0,0,.07);
    transition:.2s;
}

.product-card:hover{
    transform:translateY(-4px);
}

.product-image{
    width:100%;
    height:220px;
    background:#eee;
    display:flex;
    justify-content:center;
    align-items:center;
    overflow:hidden;
}

.product-image img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.no-image{
    color:#999;
    font-size:25px;
    font-weight:bold;
}

.product-info{
    padding:18px;
}

.product-category{
    font-size:12px;
    color:#777;
    text-transform:uppercase;
    font-weight:bold;
}

.product-info h3{
    margin:8px 0;
    font-size:20px;
}

.price{
    color:#d00000;
    font-size:19px;
    font-weight:bold;
    margin-bottom:12px;
}

.product-info .promo{
    display:inline-block;
    background:#fff0f0;
    color:#d00000;
    padding:5px 8px;
    border-radius:5px;
    font-size:12px;
    font-weight:bold;
    margin-bottom:12px;
}

.product-actions{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:8px;
    margin-top:10px;
}

.product-actions button{
    padding:12px 8px;
    border:none;
    border-radius:8px;
    font-weight:bold;
    cursor:pointer;
}

.btn-detail{
    background:#eee;
    color:#222;
}

.btn-buy{
    background:#d00000;
    color:white;
}

.btn-buy:hover{
    background:#b00000;
}


/* LOADING */

.loading{
    padding:40px;
    text-align:center;
    color:#777;
}


/* EMPTY */

.empty{
    text-align:center;
    padding:40px;
    color:#777;
}

.empty-products{
    grid-column:1/-1;
    text-align:center;
    padding:50px 20px;
    background:white;
    border-radius:14px;
}

.hidden{
    display:none!important;
}


/* PROMO */

.promo{
    background:#171717;
    color:white;
    padding:70px 20px;
}

.promo>div{
    max-width:1000px;
    margin:auto;
}

.promo span{
    color:#ff3a3a;
    font-size:13px;
    font-weight:bold;
    letter-spacing:2px;
}

.promo h2{
    font-size:40px;
    max-width:700px;
    margin:15px 0;
}

.promo p{
    max-width:650px;
    line-height:1.7;
    color:#ccc;
    margin-bottom:25px;
}

.promo-button{
    display:inline-block;
    background:#25D366;
    color:white;
    padding:14px 22px;
    border-radius:8px;
    text-decoration:none;
    font-weight:bold;
}


/* BLOG */

.blog-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:20px;
    margin-top:30px;
}

.blog-card{
    background:white;
    border-radius:12px;
    overflow:hidden;
    box-shadow:0 5px 20px rgba(0,0,0,.06);
}

.blog-card-image{
    width:100%;
    height:200px;
    background:#eee;
    object-fit:cover;
}

.blog-card-content{
    padding:20px;
}

.blog-card-content h3{
    margin-bottom:10px;
    font-size:20px;
}

.blog-card-content p{
    color:#666;
    line-height:1.6;
}

.blog-date{
    display:block;
    color:#d00000;
    font-size:12px;
    font-weight:bold;
    margin-bottom:8px;
}

.blog-button{
    margin-top:15px;
    width:100%;
    padding:11px;
    background:#d00000;
    color:white;
    border:none;
    border-radius:8px;
    font-weight:bold;
    cursor:pointer;
}


/* MODAL */

.modal{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.7);
    z-index:3000;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:20px;
}

.modal-box{
    width:100%;
    max-width:850px;
    max-height:90vh;
    overflow:auto;
    background:white;
    border-radius:15px;
    position:relative;
    padding:25px;
}

.close{
    position:absolute;
    right:15px;
    top:15px;
    width:40px;
    height:40px;
    border:none;
    background:white;
    border-radius:50%;
    font-size:25px;
    cursor:pointer;
    z-index:5;
}

.modal-gallery img{
    width:100%;
    max-height:430px;
    object-fit:cover;
    border-radius:10px;
    margin-bottom:12px;
}

.modal-gallery iframe{
    width:100%;
    min-height:350px;
    border:0;
    border-radius:10px;
}

.modal-info{
    padding-top:20px;
}

.modal-info>span{
    color:#777;
    font-size:13px;
}

.modal-info h2{
    font-size:32px;
}

.modal-price{
    color:#d00000;
    font-size:25px;
    font-weight:bold;
    margin:15px 0;
}

.modal-info p{
    line-height:1.7;
    margin-bottom:15px;
}

.colors{
    font-weight:bold;
    margin:20px 0;
}

.modal-wa{
    display:block;
    text-align:center;
    background:#25D366;
    color:white;
    padding:15px;
    border-radius:8px;
    text-decoration:none;
    font-weight:bold;
}


/* BLOG MODAL */

.blog-modal-box{
    max-width:800px;
}

.blog-modal-image{
    width:100%;
    max-height:400px;
    object-fit:cover;
    border-radius:10px;
}

.blog-modal-content{
    padding-top:20px;
}

.blog-modal-content h2{
    margin-bottom:20px;
}

#blogModalText{
    line-height:1.8;
    color:#444;
    white-space:pre-line;
}


/* FOOTER */

footer{
    background:#111;
    color:white;
    padding:45px 20px 20px;
}

.footer-inner{
    max-width:1200px;
    margin:auto;
    display:flex;
    justify-content:space-between;
    gap:30px;
}

.footer-inner p{
    color:#aaa;
    line-height:1.6;
}

.copyright{
    max-width:1200px;
    margin:30px auto 0;
    padding-top:20px;
    border-top:1px solid #333;
    color:#777;
}


/* MOBILE */

@media(max-width:900px){

    .products{
        grid-template-columns:repeat(2,1fr);
    }

    .hero h1{
        font-size:42px;
    }

}

@media(max-width:600px){

    nav{
        display:none;
    }

    .navbar{
        padding:12px 15px;
    }

    .hero-content{
        min-height:420px;
    }

    .hero h1{
        font-size:35px;
    }

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

    .section-head{
        align-items:stretch;
        flex-direction:column;
    }

    .search input{
        width:100%;
    }

    .products{
        grid-template-columns:repeat(2,1fr);
        gap:10px;
    }

    .product-image{
        height:160px;
    }

    .product-info{
        padding:12px;
    }

    .product-info h3{
        font-size:16px;
    }

    .price{
        font-size:16px;
    }

    .product-actions{
        grid-template-columns:1fr;
    }

    .promo h2{
        font-size:30px;
    }

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

    .footer-inner{
        flex-direction:column;
    }

}
