/* =========================
GLOBAL
========================= */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:Arial, sans-serif;
    background:#fff;
    color:#222;
    overflow-x:hidden;
}

img{
    max-width:100%;
    display:block;
}

a{
    text-decoration:none;
}

section{
    padding:70px 5%;
}

/* =========================
TOPBAR
========================= */
.topbar{
    background:#0d1b2a;
    color:#fff;
    min-height:50px;

    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:0 5%;
}

.contact-info{
    font-size:14px;
}

.icons{
    display:flex;
    gap:12px;
}

.icons a{
    width:36px;
    height:36px;

    border-radius:50%;
    background:#fff;

    display:flex;
    align-items:center;
    justify-content:center;

    color:#115dcc;
    transition:0.3s;
}

.icons a:hover{
    background:#115dcc;
    color:#fff;
}

/* =========================
HEADER
========================= */
.header{
    display:flex;
    align-items:center;
    justify-content:space-between;

    gap:25px;

    padding:18px 5%;

    flex-wrap:wrap;

    box-shadow:0 2px 10px rgba(0,0,0,0.06);
}

.logo img{
    width:75px;
}

/* SEARCH */
.search-box{
    flex:1;
    max-width:500px;
    position:relative;
}

.search-box input{
    width:100%;
    height:48px;

    border:none;
    outline:none;

    background:#f3f4f6;

    border-radius:40px;

    padding:0 55px 0 20px;

    font-size:15px;
}

.search-box button{
    position:absolute;
    right:6px;
    top:50%;

    transform:translateY(-50%);

    width:40px;
    height:40px;

    border:none;
    border-radius:50%;

    background:#115dcc;
    color:#fff;

    cursor:pointer;
}

/* ACTIONS */
.actions{
    display:flex;
    align-items:center;
    gap:18px;
}

.action-item{
    display:flex;
    align-items:center;
    gap:8px;

    color:#222;
    font-size:15px;
    font-weight:600;

    position:relative;
}

.action-item i{
    width:42px;
    height:42px;

    background:#f3f4f6;

    border-radius:50%;

    display:flex;
    align-items:center;
    justify-content:center;
}

#cart-count{
    position:absolute;
    top:-6px;
    right:-8px;

    background:red;
    color:#fff;

    font-size:11px;
    padding:3px 6px;

    border-radius:50%;
}

/* =========================
NAVBAR
========================= */
.navbar{
    background:#fff;

    display:flex;
    justify-content:center;

    padding:15px 5%;

    border-bottom:1px solid #eee;
}

.nav-links{
    display:flex;
    align-items:center;
    gap:40px;

    list-style:none;
}

.nav-links a{
    color:#222;
    font-weight:600;
    transition:0.3s;
}

.nav-links a:hover{
    color:#115dcc;
}

/* DROPDOWN */
.dropdown{
    position:relative;
}

.dropdown-menu{
    position:absolute;

    top:120%;
    left:0;

    background:#fff;

    min-width:180px;

    border-radius:10px;

    box-shadow:0 10px 25px rgba(0,0,0,0.08);

    padding:10px 0;

    opacity:0;
    visibility:hidden;

    transition:0.3s;

    z-index:100;
}

.dropdown:hover .dropdown-menu{
    opacity:1;
    visibility:visible;
}

.dropdown-menu li{
    list-style:none;
}

.dropdown-menu a{
    display:block;
    padding:12px 18px;
}

.dropdown-menu a:hover{
    background:#f5f5f5;
}

/* =========================
SLIDER
========================= */
.slider{
    position:relative;

    width:100%;
    height:500px;

    overflow:hidden;

    background:#f8f9fb;
}

.slide{
    display:none;
    height:100%;
}

.slide.active{
    display:flex;
    align-items:center;
    justify-content:center;
}

.slide img{
    width:100%;
    height:100%;

    object-fit:contain;
}

/* SLIDER BUTTONS */
.prev,
.next{
    position:absolute;
    top:50%;

    transform:translateY(-50%);

    width:50px;
    height:50px;

    border:none;
    border-radius:50%;

    background:rgba(0,0,0,0.5);

    color:#fff;

    font-size:24px;

    cursor:pointer;

    z-index:10;
}

.prev{
    left:20px;
}

.next{
    right:20px;
}

/* =========================
SECTION HEADERS
========================= */
.section-header,
.categories-header,
.articles-header{
    display:flex;
    justify-content:space-between;
    align-items:center;

    margin-bottom:30px;

    gap:20px;
}

.section-header h2,
.categories-header h2,
.articles-header h2,
.brands h2,
.commitment h2{
    font-size:34px;
    color:#115dcc;
}

.section-header a,
.categories-header a,
.articles-header a{
    color:#115dcc;
    font-weight:600;
}

/* =========================
PRODUCTS
========================= */
.product-container{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:25px;
}

.product-card{
    background:#fff;

    border-radius:20px;

    overflow:hidden;

    padding:18px;

    border:1px solid #eee;

    transition:0.3s;
}

.product-card:hover{
    transform:translateY(-5px);

    box-shadow:0 10px 30px rgba(0,0,0,0.08);
}

.img-box{
    width:100%;
    height:250px;

    display:flex;
    align-items:center;
    justify-content:center;
}

.img-box img{
    width:100%;
    height:100%;

    object-fit:contain;
}

.product-card h3{
    margin:18px 0 10px;
    font-size:20px;
}

.price{
    color:#115dcc;
    font-size:20px;
    font-weight:bold;

    margin-bottom:20px;
}

.add-btn{
    width:100%;
    height:48px;

    border:none;
    border-radius:40px;

    background:#115dcc;
    color:#fff;

    font-size:15px;
    font-weight:bold;

    cursor:pointer;

    transition:0.3s;
}

.add-btn:hover{
    background:#0b49a0;
}

/* =========================
CATEGORIES
========================= */
.categories-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:25px;
}

.category-card{
    border-radius:18px;
    overflow:hidden;

    transition:0.3s;
}

.category-card:hover{
    transform:translateY(-5px);
}

.category-card img{
    width:100%;
    height:250px;

    object-fit:cover;
}

.category-card h3{
    padding:15px 0;
    font-size:20px;
}

/* =========================
BRANDS
========================= */
.brands{
    background:#f5f7fa;
    text-align:center;
}

.brands-row{
    display:flex;
    justify-content:center;
    align-items:center;

    gap:40px;

    flex-wrap:wrap;

    margin-top:40px;
}

.brands-row img{
    height:55px;
    object-fit:contain;

    transition:0.3s;
}

.brands-row img:hover{
    transform:scale(1.05);
}

/* =========================
ARTICLES
========================= */
.articles-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:25px;
}

.article-card{
    background:#fff;

    border-radius:16px;

    overflow:hidden;

    box-shadow:0 5px 20px rgba(0,0,0,0.05);
}

.article-card img{
    width:100%;
    height:220px;

    object-fit:cover;
}

.article-content{
    padding:18px;
}

.article-content h3{
    font-size:18px;
    margin-bottom:10px;
}

.article-content p{
    color:#666;
    line-height:1.6;
}

.date{
    display:block;
    margin-bottom:10px;
    color:#999;
}

/* =========================
COMMITMENT
========================= */
.commitment{
    background:#f8f9fb;
}

.commitment p{
    max-width:850px;
    line-height:1.8;
    margin:20px 0;
}

.commitment ul{
    padding-left:20px;
}

.commitment li{
    margin-bottom:15px;
    line-height:1.7;
}

/* =========================
FOOTER
========================= */
.footer{
    background:#115dcc;
    color:#fff;

    padding:70px 5% 40px;
}

.footer-container{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:40px;
}

.footer-logo{
    width:120px;
    margin-bottom:20px;
}

.footer-col p{
    line-height:1.8;
}

.footer-col h3{
    margin-bottom:20px;
}

.footer-col a{
    display:block;
    color:#fff;

    margin-bottom:12px;

    transition:0.3s;
}

.footer-col a:hover{
    opacity:0.7;
}

.newsletter-box{
    display:flex;
    margin-top:15px;
}

.newsletter-box input{
    flex:1;

    height:45px;

    border:none;
    outline:none;

    padding:0 15px;

    border-radius:6px 0 0 6px;
}

.newsletter-box button{
    border:none;

    padding:0 18px;

    background:#0d1b2a;
    color:#fff;

    cursor:pointer;

    border-radius:0 6px 6px 0;
}

/* =========================
RESPONSIVE
========================= */
@media(max-width:1100px){

    .product-container,
    .categories-grid,
    .articles-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .footer-container{
        grid-template-columns:repeat(2,1fr);
    }
}

@media(max-width:768px){

    .topbar{
        flex-direction:column;
        gap:10px;
        padding:12px;
        text-align:center;
    }

    .header{
        flex-direction:column;
        align-items:stretch;
    }

    .actions{
        justify-content:center;
        flex-wrap:wrap;
    }

    .navbar{
        overflow-x:auto;
    }

    .nav-links{
        gap:20px;
        min-width:max-content;
    }

    .slider{
        height:320px;
    }

    .section-header,
    .categories-header,
    .articles-header{
        flex-direction:column;
        align-items:flex-start;
    }

    .section-header h2,
    .categories-header h2,
    .articles-header h2,
    .brands h2,
    .commitment h2{
        font-size:28px;
    }
}

@media(max-width:600px){

    .product-container,
    .categories-grid,
    .articles-grid,
    .footer-container{
        grid-template-columns:1fr;
    }

    .slider{
        height:250px;
    }

    .prev,
    .next{
        width:42px;
        height:42px;
    }

    .category-card img,
    .article-card img{
        height:220px;
    }
}