/* ====================================
ARCHIVE HERO
==================================== */

.products-archive-hero,
.material-category-hero{
    background:
    linear-gradient(
        rgba(8,15,28,.88),
        rgba(8,15,28,.88)
    ),
    url('../images/raw-materials/raw-materials-banner.jpg');

    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;

    padding:140px 0;
}

.archive-hero-content,
.category-hero-content{
    max-width:950px;
    color:#fff;
}

.archive-hero-content h1,
.category-hero-content h1{
    font-size:72px;
    font-weight:800;
    line-height:1.1;
    margin:25px 0;
}

.archive-hero-content p,
.category-hero-content p{
    font-size:20px;
    line-height:1.9;
    color:#d7d7d7;
    max-width:850px;
}

/* ====================================
SEARCH FORM
==================================== */

.product-search-form{
    display:flex;
    max-width:700px;
    margin-top:40px;
    overflow:hidden;
    border-radius:14px;
    background:#fff;
}

.product-search-form input{
    flex:1;
    border:none;
    padding:18px 20px;
    font-size:16px;
    outline:none;
}

.product-search-form button{
    width:70px;
    border:none;
    background:#214f99;
    color:#fff;
    cursor:pointer;
    font-size:18px;
}

/* ====================================
COMMON
==================================== */

.section-tag{
    display:inline-block;
    background:#eaf1ff;
    color:#214f99;
    padding:8px 18px;
    border-radius:30px;
    font-size:13px;
    font-weight:700;
    letter-spacing:.5px;
}

.section-title{
    font-size:52px;
    font-weight:800;
    color:#111827;
    margin:20px 0;
}

.container{
    width:100%;
    max-width:1400px;
    margin:auto;
    padding:0 15px;
}

/* ====================================
MATERIAL CATEGORIES
==================================== */

.material-categories-section{
    padding:110px 0;
    background:#f8fafc;
}

.section-heading{
    text-align:center;
    margin-bottom:60px;
}

.category-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:25px;
}

.category-card{
    background:#fff;
    padding:35px;

    border-radius:22px;

    text-decoration:none;

    box-shadow:
    0 10px 30px rgba(0,0,0,.06);

    transition:.35s;
}

.category-card:hover{
    transform:translateY(-10px);
}

.category-card h3{
    color:#111827;
    margin-bottom:12px;
    font-size:24px;
}

.category-card span{
    color:#214f99;
    font-weight:700;
}

/* ====================================
PRODUCTS SECTION
==================================== */

.products-archive-section,
.category-products-section{
    padding:110px 0;
    background:#fff;
}

.products-layout{
    display:grid;
    grid-template-columns:320px 1fr;
    gap:40px;
    align-items:start;
}

/* ====================================
SIDEBAR
==================================== */

.products-sidebar{
    position:sticky;
    top:100px;
}

.product-sidebar-inner{
    display:flex;
    flex-direction:column;
    gap:25px;
}

.sidebar-card{
    background:#fff;

    border-radius:24px;

    padding:30px;

    box-shadow:
    0 10px 30px rgba(0,0,0,.06);
}

.sidebar-card h3{
    font-size:24px;
    color:#111827;
    margin-bottom:20px;
}

.sidebar-menu{
    list-style:none;
    margin:0;
    padding:0;
}

.sidebar-menu li{
    margin-bottom:8px;
}

.sidebar-menu a{
    display:block;

    padding:12px 15px;

    border-radius:10px;

    text-decoration:none;

    color:#555;

    transition:.3s;
}

.sidebar-menu a:hover{
    background:#214f99;
    color:#fff;
}

/* ====================================
PRODUCTS HEADER
==================================== */

.products-header{
    display:flex;
    justify-content:space-between;
    align-items:center;

    margin-bottom:35px;
}

.products-header h2{
    font-size:38px;
    color:#111827;
    margin:0;
}

.products-header span{
    color:#214f99;
    font-weight:700;
}

/* ====================================
PRODUCT GRID
==================================== */

.products-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:30px;
}

.product-card{
    background:#fff;

    border-radius:24px;

    overflow:hidden;

    box-shadow:
    0 10px 30px rgba(0,0,0,.06);

    transition:.35s;
}

.product-card:hover{
    transform:translateY(-10px);
}

.product-card a{
    text-decoration:none;
}

.product-image{
    height:260px;
    overflow:hidden;
}

.product-image img{
    width:100%;
    height:100%;
    object-fit:cover;

    transition:.5s;
}

.product-card:hover .product-image img{
    transform:scale(1.08);
}

.product-card-content{
    padding:25px;
}

.product-category{
    display:inline-block;

    background:#eef4ff;

    color:#214f99;

    padding:6px 12px;

    border-radius:30px;

    font-size:12px;
    font-weight:700;

    margin-bottom:15px;
}

.product-card-content h3{
    font-size:24px;
    color:#111827;
    margin-bottom:15px;
}

.product-card-content p{
    color:#667085;
    line-height:1.8;
    margin-bottom:20px;
}

.product-link{
    color:#214f99;
    font-weight:700;
}

/* ====================================
PAGINATION
==================================== */

.archive-pagination{
    margin-top:60px;
}

.archive-pagination .page-numbers{
    display:inline-block;

    margin:0 5px;

    padding:12px 18px;

    border-radius:10px;

    background:#f3f4f6;

    text-decoration:none;

    color:#111827;
}

.archive-pagination .current{
    background:#214f99;
    color:#fff;
}

/* ====================================
NO PRODUCTS
==================================== */

.no-products{
    background:#f8fafc;
    padding:60px;
    border-radius:24px;
    text-align:center;
}

/* ====================================
RESPONSIVE
==================================== */

@media(max-width:1200px){

    .category-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .products-grid{
        grid-template-columns:repeat(2,1fr);
    }

}

@media(max-width:991px){

    .products-layout{
        grid-template-columns:1fr;
    }

    .products-sidebar{
        position:relative;
        top:auto;
    }

    .archive-hero-content h1,
    .category-hero-content h1{
        font-size:52px;
    }

}

@media(max-width:768px){

    .category-grid,
    .products-grid{
        grid-template-columns:1fr;
    }

    .products-header{
        flex-direction:column;
        align-items:flex-start;
        gap:10px;
    }

    .archive-hero-content h1,
    .category-hero-content h1{
        font-size:38px;
    }

    .product-search-form{
        flex-direction:column;
    }

    .product-search-form button{
        width:100%;
        height:55px;
    }

    .section-title{
        font-size:34px;
    }

}

.products-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    margin-bottom:30px;
}

.product-search-box input{
    width:320px;
    padding:14px 18px;
    border:1px solid #dbe2ea;
    border-radius:12px;
    font-size:15px;
    outline:none;
}

.product-search-box input:focus{
    border-color:#214f99;
}

@media(max-width:768px){

    .products-header{
        flex-direction:column;
        align-items:flex-start;
    }

    .product-search-box input{
        width:100%;
    }

}