/* =========================================================
   THE ENGINEERS GROUP - SHOP PAGE
   Premium WooCommerce Shop Styling
   ========================================================= */


/* ---------------------------------------------------------
   SHOP PAGE MAIN AREA
   --------------------------------------------------------- */

.woocommerce-shop .site-main,
.woocommerce-shop .content-area {
    width: 100%;
}


/* ---------------------------------------------------------
   SHOP TITLE
   --------------------------------------------------------- */

.woocommerce-shop .woocommerce-products-header {
    padding: 28px 0 18px;
    margin: 0;
}

.woocommerce-shop .woocommerce-products-header__title,
.woocommerce-shop h1.page-title {
    position: relative;

    margin: 0 0 8px;
    padding-left: 18px;

    font-size: 42px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -1px;

    color: #10233f;

    text-align: left;
}


/* Golden line beside Shop */

.woocommerce-shop h1.page-title::before {
    content: "";

    position: absolute;
    left: 0;
    top: 5px;

    width: 5px;
    height: 42px;

    border-radius: 10px;

    background: linear-gradient(
        180deg,
        #d6a600,
        #f3c623
    );
}


/* ---------------------------------------------------------
   PRODUCT RESULT TEXT
   --------------------------------------------------------- */

.woocommerce-shop .woocommerce-result-count {
    margin: 0 0 22px;

    font-size: 16px;
    font-weight: 500;

    color: #667085;
}


/* ---------------------------------------------------------
   SORTING
   --------------------------------------------------------- */

.woocommerce-shop .woocommerce-ordering {
    margin: 0 0 24px;
}

.woocommerce-shop .woocommerce-ordering select {
    min-width: 220px;

    padding: 12px 42px 12px 16px;

    border: 1px solid #d9e0ea;
    border-radius: 12px;

    background: #ffffff;

    color: #26364d;

    font-size: 15px;
    font-weight: 600;

    outline: none;

    cursor: pointer;

    transition: all 0.25s ease;
}

.woocommerce-shop .woocommerce-ordering select:hover,
.woocommerce-shop .woocommerce-ordering select:focus {
    border-color: #d6a600;

    box-shadow: 0 0 0 3px rgba(214, 166, 0, 0.10);
}


/* ---------------------------------------------------------
   PRODUCT GRID
   --------------------------------------------------------- */

.woocommerce-shop ul.products {
    display: grid !important;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 28px;

    margin: 0 !important;
    padding: 0 !important;

    list-style: none;
}


/* Remove WooCommerce default widths */

.woocommerce-shop ul.products li.product {
    float: none !important;

    width: auto !important;

    margin: 0 !important;

    padding: 0 !important;
}


/* ---------------------------------------------------------
   PRODUCT CARD
   --------------------------------------------------------- */

.woocommerce-shop ul.products li.product.product-card {
    display: flex;

    flex-direction: column;

    overflow: hidden;

    background: #ffffff;

    border: 1px solid #e2e7ef;

    border-radius: 18px;

    box-shadow:
        0 5px 18px rgba(16, 35, 63, 0.06);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}


/* Hover */

.woocommerce-shop ul.products li.product.product-card:hover {
    transform: translateY(-6px);

    border-color: rgba(214, 166, 0, 0.45);

    box-shadow:
        0 16px 35px rgba(16, 35, 63, 0.12);
}


/* ---------------------------------------------------------
   PRODUCT IMAGE
   --------------------------------------------------------- */

.woocommerce-shop .product-image {
    display: block;

    width: 100%;

    aspect-ratio: 1 / 1.08;

    overflow: hidden;

    background: #f5f7fa;
}


.woocommerce-shop .product-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    margin: 0 !important;

    transition: transform 0.45s ease;
}


/* Image zoom */

.woocommerce-shop .product-card:hover .product-image img {
    transform: scale(1.035);
}


/* ---------------------------------------------------------
   PRODUCT CONTENT
   --------------------------------------------------------- */

.woocommerce-shop .product-content {
    display: flex;

    flex-direction: column;

    flex: 1;

    padding: 22px 22px 20px;
}


/* ---------------------------------------------------------
   PRODUCT TITLE
   --------------------------------------------------------- */

.woocommerce-shop .product-content h3 {
    margin: 0 0 16px;

    min-height: 72px;

    font-size: 20px;
    line-height: 1.42;
    font-weight: 750;

    color: #101828;
}


.woocommerce-shop .product-content h3 a {
    color: #101828;

    text-decoration: none;

    transition: color 0.25s ease;
}


.woocommerce-shop .product-content h3 a:hover {
    color: #c89500;
}


/* ---------------------------------------------------------
   PRICE
   --------------------------------------------------------- */

.woocommerce-shop .product-content .price {
    display: flex;

    align-items: center;

    gap: 12px;

    flex-wrap: wrap;

    margin: 0 0 20px;

    font-size: 21px;
    font-weight: 800;

    color: #c89400;
}


/* Old price */

.woocommerce-shop .product-content .price del {
    font-size: 16px;

    font-weight: 500;

    color: #a5a9af;

    opacity: 1;
}


/* Sale price */

.woocommerce-shop .product-content .price ins {
    text-decoration: none;

    color: #c89400;
}


/* ---------------------------------------------------------
   PREMIUM ADD TO CART BUTTON
   --------------------------------------------------------- */

.woocommerce-shop .product-content .cart-btn {
    position: relative;

    display: flex !important;

    align-items: center;
    justify-content: center;

    width: 100%;

    min-height: 52px;

    margin-top: auto;

    padding: 13px 20px;

    border: 0 !important;

    border-radius: 12px;

    background: linear-gradient(
        135deg,
        #10233f 0%,
        #173b66 100%
    ) !important;

    color: #ffffff !important;

    font-size: 16px;

    font-weight: 700;

    letter-spacing: 0.2px;

    text-decoration: none !important;

    box-shadow:
        0 7px 18px rgba(16, 35, 63, 0.18);

    overflow: hidden;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}


/* Golden shine */

.woocommerce-shop .product-content .cart-btn::before {
    content: "";

    position: absolute;

    top: 0;
    left: -120%;

    width: 70%;
    height: 100%;

    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.18),
        transparent
    );

    transform: skewX(-20deg);

    transition: left 0.6s ease;
}


/* Button hover */

.woocommerce-shop .product-content .cart-btn:hover {
    transform: translateY(-2px);

    background: linear-gradient(
        135deg,
        #c89400 0%,
        #e3b51b 100%
    ) !important;

    color: #ffffff !important;

    box-shadow:
        0 10px 24px rgba(200, 148, 0, 0.28);
}


.woocommerce-shop .product-content .cart-btn:hover::before {
    left: 140%;
}


/* Button active */

.woocommerce-shop .product-content .cart-btn:active {
    transform: translateY(0);
}


/* ---------------------------------------------------------
   CART ICON
   --------------------------------------------------------- */

.woocommerce-shop .product-content .cart-btn::after {
    content: "→";

    margin-left: 10px;

    font-size: 19px;
    font-weight: 800;

    transition: transform 0.25s ease;
}


.woocommerce-shop .product-content .cart-btn:hover::after {
    transform: translateX(4px);
}


/* ---------------------------------------------------------
   HIDE DEFAULT WOOCOMMERCE BUTTON ARROW
   --------------------------------------------------------- */

.woocommerce-shop .product-content .cart-btn.loading::after {
    margin-left: 8px;
}


/* ---------------------------------------------------------
   TABLET
   --------------------------------------------------------- */

@media (max-width: 1100px) {

    .woocommerce-shop ul.products {
        grid-template-columns: repeat(3, minmax(0, 1fr));

        gap: 22px;
    }

    .woocommerce-shop .product-content {
        padding: 19px;
    }

    .woocommerce-shop .product-content h3 {
        font-size: 18px;

        min-height: 78px;
    }

}


/* ---------------------------------------------------------
   MOBILE - 2 COLUMNS
   --------------------------------------------------------- */

@media (max-width: 767px) {

    .woocommerce-shop .woocommerce-products-header {
        padding: 20px 0 12px;
    }

    .woocommerce-shop .woocommerce-products-header__title,
    .woocommerce-shop h1.page-title {
        font-size: 30px;

        padding-left: 14px;

        margin-bottom: 6px;
    }

    .woocommerce-shop h1.page-title::before {
        width: 4px;

        height: 32px;

        top: 3px;
    }


    .woocommerce-shop .woocommerce-result-count {
        font-size: 14px;

        margin-bottom: 16px;
    }


    .woocommerce-shop .woocommerce-ordering {
        float: none !important;

        width: 100%;

        margin-bottom: 20px;
    }


    .woocommerce-shop .woocommerce-ordering select {
        width: 100%;

        min-width: 0;
    }


    .woocommerce-shop ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 14px;
    }


    .woocommerce-shop ul.products li.product.product-card {
        border-radius: 13px;
    }


    .woocommerce-shop .product-content {
        padding: 15px 14px 14px;
    }


    .woocommerce-shop .product-content h3 {
        font-size: 16px;

        line-height: 1.4;

        min-height: 67px;

        margin-bottom: 12px;

        display: -webkit-box;

        -webkit-line-clamp: 3;

        -webkit-box-orient: vertical;

        overflow: hidden;
    }


    .woocommerce-shop .product-content .price {
        gap: 7px;

        font-size: 17px;

        margin-bottom: 14px;
    }


    .woocommerce-shop .product-content .price del {
        font-size: 14px;
    }


    .woocommerce-shop .product-content .cart-btn {
        min-height: 46px;

        padding: 10px 8px;

        border-radius: 10px;

        font-size: 14px;
    }


    .woocommerce-shop .product-content .cart-btn::after {
        font-size: 16px;

        margin-left: 6px;
    }

}


/* ---------------------------------------------------------
   VERY SMALL MOBILE
   --------------------------------------------------------- */

@media (max-width: 400px) {

    .woocommerce-shop ul.products {
        gap: 10px;
    }

    .woocommerce-shop .product-content {
        padding: 12px 10px 11px;
    }

    .woocommerce-shop .product-content h3 {
        font-size: 15px;

        min-height: 63px;
    }

    .woocommerce-shop .product-content .price {
        font-size: 16px;
    }

    .woocommerce-shop .product-content .cart-btn {
        font-size: 13px;

        min-height: 44px;
    }

}/* =========================================================
   FIX PRODUCT IMAGE EMPTY SPACE
   ========================================================= */

.woocommerce-shop .product-image {
    display: flex;
    align-items: stretch;
    justify-content: stretch;

    width: 100%;
    height: auto;

    aspect-ratio: 1 / 1 !important;

    overflow: hidden;

    padding: 0 !important;
    margin: 0 !important;

    line-height: 0;

    background: #f5f7fa;
}

.woocommerce-shop .product-image img {
    display: block !important;

    width: 100% !important;
    height: 100% !important;

    min-width: 100%;
    min-height: 100%;

    margin: 0 !important;
    padding: 0 !important;

    object-fit: cover;

    vertical-align: top;
}/* =========================================
   FIX: REMOVE EMPTY FIRST GRID COLUMN
   ========================================= */

.woocommerce ul.products::before,
.woocommerce ul.products::after,
.woocommerce-page ul.products::before,
.woocommerce-page ul.products::after {
    display: none !important;
    content: none !important;
}


/* =========================================
   SHOP PRODUCT GRID
   ========================================= */

.woocommerce ul.products,
.woocommerce-page ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 28px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}


/* PRODUCT CARD */

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
    float: none !important;
}/* =========================================
   TABLET
   ========================================= */

@media (max-width: 1024px) {

    .woocommerce ul.products,
    .woocommerce-page ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 18px !important;
    }

}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 600px) {

    .woocommerce ul.products,
    .woocommerce-page ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 14px !important;
    }

}/* =========================================================
   THE ENGINEERS GROUP
   SHOP PAGE DESIGN
   ========================================================= */


/* SHOP HERO
--------------------------------------------------------- */

.shop-hero {
    width: 100%;
    padding: 55px 20px 35px;
    background: linear-gradient(
        135deg,
        #f8fafc 0%,
        #ffffff 55%,
        #f5f8fc 100%
    );
    text-align: center;
    box-sizing: border-box;
}

.shop-hero-inner {
    max-width: 1100px;
    margin: 0 auto;
}


/* SMALL LABEL */

.shop-subtitle {
    display: inline-block;
    margin-bottom: 12px;
    padding: 7px 16px;
    border-radius: 30px;

    background: #fff7dc;
    color: #b88600;

    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}


/* MAIN TITLE */

.shop-title {
    margin: 0;

    color: #102f55;

    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -1px;
}


/* DESCRIPTION */

.shop-desc {
    max-width: 760px;
    margin: 18px auto 0;

    color: #64748b;

    font-size: 16px;
    line-height: 1.7;
}


/* GOLD LINE */

.shop-hero-line {
    width: 70px;
    height: 4px;

    margin: 24px auto 0;

    background: #d4a017;
    border-radius: 10px;
}


/* =========================================================
   PRODUCTS SECTION
   ========================================================= */

.shop-products-section {
    width: 100%;
    padding: 20px 20px 70px;
    box-sizing: border-box;
}

.shop-products-container {
    width: 100%;
    max-width: 1450px;
    margin: 0 auto;
}


/* =========================================================
   SHOP TOOLBAR
   ========================================================= */

.shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 28px;
    padding: 0 4px;
}


/* RESULT COUNT */

.shop-result-count {
    color: #64748b;

    font-size: 15px;
    font-weight: 600;
}


/* SORTING */

.shop-sorting {
    margin-left: auto;
}

.shop-sorting select {
    min-width: 210px;

    padding: 12px 40px 12px 16px;

    border: 1px solid #dbe3ec;
    border-radius: 12px;

    background: #ffffff;

    color: #334155;

    font-size: 14px;
    font-weight: 600;

    outline: none;

    cursor: pointer;

    transition: all 0.25s ease;
}

.shop-sorting select:hover {
    border-color: #d4a017;
}

.shop-sorting select:focus {
    border-color: #102f55;
    box-shadow: 0 0 0 3px rgba(16, 47, 85, 0.08);
}


/* =========================================================
   REMOVE DEFAULT WOOCOMMERCE SPACING
   ========================================================= */

.shop-products-container
ul.products {
    margin-top: 0 !important;
}


/* =========================================================
   PRODUCT GRID
   ========================================================= */

.shop-products-container
ul.products {
    display: grid !important;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 28px;

    padding: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;

    list-style: none;
}


/* IMPORTANT:
   WOOCOMMERCE DEFAULT WIDTH REMOVE */

.shop-products-container
ul.products li.product {
    width: auto !important;
    float: none !important;
    margin: 0 !important;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1100px) {

    .shop-products-container
    ul.products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 22px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .shop-hero {
        padding: 35px 16px 25px;
    }

    .shop-subtitle {
        font-size: 11px;
        padding: 6px 13px;
    }

    .shop-title {
        font-size: 32px;
    }

    .shop-desc {
        font-size: 14px;
        line-height: 1.6;
    }

    .shop-products-section {
        padding: 15px 8px 50px;
    }

    .shop-toolbar {
        flex-direction: column;
        align-items: stretch;

        gap: 12px;

        margin-bottom: 20px;
    }

    .shop-result-count {
        text-align: center;
    }

    .shop-sorting {
        width: 100%;
    }

    .shop-sorting select {
        width: 100%;
    }

    .shop-products-container
    ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .shop-products-container
    ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .shop-title {
        font-size: 28px;
    }

    .shop-desc {
        font-size: 13px;
    }

}