/* =========================================================
   THE ENGINEERS GROUP
   PRODUCT CATEGORY ARCHIVE
========================================================= */

.category-archive {
    background: #f8f9fc;
}

/* =========================================================
   HERO
========================================================= */

.category-hero {
    padding: 75px 20px 65px;
    text-align: center;
    background: linear-gradient(
        135deg,
        #f8f9fc 0%,
        #eef2fa 100%
    );
}

.category-hero-label {
    display: inline-block;
    margin-bottom: 15px;
    padding: 8px 18px;

    background: #fff7df;
    color: #b88600;

    border-radius: 30px;

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.category-hero h1 {
    margin: 0 0 15px;

    color: #0d2d73;

    font-size: 48px;
    line-height: 1.15;
    font-weight: 800;
}

.category-hero p {
    max-width: 700px;
    margin: 0 auto;

    color: #68748a;

    font-size: 17px;
    line-height: 1.7;
}

/* =========================================================
   PRODUCTS SECTION
========================================================= */

.category-products {
    padding: 65px 0 90px;
}

.category-products-header {
    display: flex;
    align-items: end;
    justify-content: space-between;

    margin-bottom: 35px;
}

.products-subtitle {
    display: block;

    margin-bottom: 8px;

    color: #b88600;

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.category-products-header h2 {
    margin: 0;

    color: #0d2d73;

    font-size: 32px;
    font-weight: 800;
}

.products-count {
    color: #68748a;

    font-size: 14px;
    font-weight: 600;
}

/* =========================================================
   PRODUCT GRID
========================================================= */

.category-product-grid {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 28px;
}

/* =========================================================
   PRODUCT CARD
========================================================= */

.category-product-grid .product {
    position: relative;

    display: flex;
    flex-direction: column;

    margin: 0 !important;
    padding: 0 !important;

    background: #ffffff;

    border: 1px solid #e7ebf3;
    border-radius: 20px;

    overflow: hidden;

    box-shadow: 0 12px 35px rgba(13, 45, 115, 0.08);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.category-product-grid .product:hover {
    transform: translateY(-7px);

    border-color: #d4a017;

    box-shadow: 0 22px 50px rgba(13, 45, 115, 0.14);
}

/* IMAGE */

.category-product-grid .product img {
    width: 100% !important;
    height: 360px !important;

    object-fit: cover;

    display: block;

    margin: 0 !important;

    transition: transform 0.4s ease;
}

.category-product-grid .product:hover img {
    transform: scale(1.04);
}

/* PRODUCT CONTENT */

.category-product-grid .product .woocommerce-loop-product__title {
    margin: 0 !important;
    padding: 20px 22px 8px !important;

    color: #0d2d73 !important;

    font-size: 19px !important;
    line-height: 1.45 !important;

    font-weight: 800 !important;
}

/* PRICE */

.category-product-grid .product .price {
    padding: 0 22px !important;

    color: #b88600 !important;

    font-size: 18px !important;
    font-weight: 800 !important;
}

/* ADD TO CART */

.category-product-grid .product .button {
    align-self: flex-start;

    margin: 18px 22px 22px !important;
    padding: 11px 18px !important;

    background: #0d2d73 !important;
    color: #ffffff !important;

    border-radius: 8px !important;

    font-size: 13px !important;
    font-weight: 700 !important;

    transition:
        background 0.3s ease,
        transform 0.3s ease;
}

.category-product-grid .product .button:hover {
    background: #b88600 !important;
    color: #ffffff !important;

    transform: translateY(-2px);
}

/* SALE BADGE */

.category-product-grid .product .onsale {
    top: 15px !important;
    left: 15px !important;
    right: auto !important;

    min-width: auto !important;
    min-height: auto !important;

    padding: 7px 12px !important;

    background: #d4a017 !important;
    color: #ffffff !important;

    border-radius: 20px !important;

    font-size: 11px !important;
    font-weight: 800 !important;
}

/* =========================================================
   EMPTY CATEGORY
========================================================= */

.category-empty {
    max-width: 600px;

    margin: 30px auto 0;
    padding: 60px 30px;

    text-align: center;

    background: #ffffff;

    border: 1px solid #e7ebf3;
    border-radius: 20px;
}

.category-empty h3 {
    margin: 0 0 10px;

    color: #0d2d73;

    font-size: 25px;
}

.category-empty p {
    margin-bottom: 25px;

    color: #68748a;
}

.category-empty a {
    display: inline-block;

    padding: 12px 20px;

    background: #0d2d73;
    color: #ffffff;

    border-radius: 8px;

    text-decoration: none;

    font-weight: 700;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    .category-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .category-product-grid .product img {
        height: 330px !important;
    }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .category-hero {
        padding: 55px 15px 45px;
    }

    .category-hero h1 {
        font-size: 36px;
    }

    .category-hero p {
        font-size: 14px;
    }

    .category-products {
        padding: 45px 10px 65px;
    }

    .category-products-header {
        align-items: flex-start;
        flex-direction: column;

        gap: 10px;

        margin-bottom: 25px;
    }

    .category-products-header h2 {
        font-size: 27px;
    }

    .category-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 12px;
    }

    .category-product-grid .product {
        border-radius: 15px;
    }

    .category-product-grid .product img {
        height: 230px !important;
    }

    .category-product-grid .product .woocommerce-loop-product__title {
        padding: 13px 12px 5px !important;

        font-size: 14px !important;
    }

    .category-product-grid .product .price {
        padding: 0 12px !important;

        font-size: 14px !important;
    }

    .category-product-grid .product .button {
        margin: 12px !important;

        padding: 9px 11px !important;

        font-size: 11px !important;
    }
}

/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 400px) {

    .category-hero h1 {
        font-size: 31px;
    }

    .category-product-grid .product img {
        height: 200px !important;
    }

    .category-product-grid .product .woocommerce-loop-product__title {
        font-size: 13px !important;
    }
}