/* =========================================
   PRODUCT SHOW WRAPPER
========================================= */
.container:has(.showproduct-item) {
    max-width: 1280px !important;
}    
.showproduct-wrapper {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px 0 40px;
    box-sizing: border-box;
}


/* =========================================
   CATEGORY
========================================= */

.showproduct-category {
    width: 100%;
    margin-bottom: 45px;
}

.showproduct-wrapper h2 {
    font-size: 28px !important;
    line-height: 1.2;
    font-weight: 700;
    color: #12243a;
    margin: 0 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #eeeeee;
}


/* =========================================
   PRODUCTS GRID
========================================= */

.showproduct-wrapper {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
    width: 100%;
}

.showproduct-price span.woocommerce-Price-amount.amount {
    font-size: 16px;
}
/* =========================================
   PRODUCT CARD
========================================= */

.showproduct-item {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    padding: 20px;
    box-sizing: border-box;

    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.showproduct-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.10);
}


/* =========================================
   PRODUCT LINK
========================================= */

.showproduct-item > a:first-child {
    display: block;
    color: inherit;
    text-decoration: none;
}


/* =========================================
   PRODUCT IMAGE
========================================= */

.showproduct-image {
    width: 100%;
    height: 260px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f5f7f8;
    border-radius: 8px;

    overflow: hidden;
    margin-bottom: 18px;
}

.showproduct-image img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;

    display: block;

    transition: transform 0.35s ease;
}

.showproduct-item:hover .showproduct-image img {
    transform: scale(1.04);
}


/* =========================================
   PRODUCT TITLE
========================================= */

.showproduct-wrapper h3.showproduct-title {
    margin: 0;

    min-height: 52px;

    font-size: 15px !important;
    line-height: 1.45;
    font-weight: 700;

    color: #14263d;

    text-transform: uppercase;
}


/* =========================================
   PRICE
========================================= */

.showproduct-price {
    margin-top: 12px;
    margin-bottom: 20px;

    font-size: 26px;
    line-height: 1.2;
    font-weight: 800;

    color: #10243b;
}

.showproduct-price .woocommerce-Price-amount {
    font-size: inherit;
    font-weight: inherit;
}

.showproduct-price .woocommerce-Price-currencySymbol {
    font-size: inherit;
}


/* =========================================
   ADD TO CART
========================================= */

.showproduct-cart {
    margin-top: auto;
}

.showproduct-cart a.add_to_cart_button {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 48px;

    padding: 12px 18px;
    box-sizing: border-box;

    border: 0;
    border-radius: 8px;

    background: #ffca2a;
    color: #ffffff !important;

    font-size: 16px;
    line-height: 1.2;
    font-weight: 700;

    text-align: center;
    text-decoration: none !important;
    text-transform: uppercase;

    cursor: pointer;

    transition:
        background 0.25s ease,
        transform 0.2s ease;
}

.showproduct-cart a.add_to_cart_button:hover {
    background: #082b34;
    color: #ffffff !important;
    transform: translateY(-1px);
}


/* =========================================
   WOOCOMMERCE LOADING STATE
========================================= */

.showproduct-cart a.loading {
    opacity: 0.7;
    pointer-events: none;
}

.showproduct-cart a.added {
    background: #198754;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 1100px) {

    .showproduct-wrapper {
        grid-template-columns: repeat(3, minmax(0, 1fr));

    }

    .showproduct-image {
        height: 230px;
    }


    .showproduct-price {
        font-size: 23px;
    }
}


/* =========================================
   SMALL TABLET
========================================= */

@media (max-width: 800px) {

    .showproduct-wrapper {
        padding: 15px 0;
    }

    .showproduct-wrapper {
        grid-template-columns: repeat(2, minmax(0, 1fr));

    }

    .showproduct-image {
        height: 220px;
    }

    .showproduct-item {
        padding: 15px;
    }
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 550px) {

    .showproduct-wrapper {
        grid-template-columns: 1fr;
    }

    .showproduct-item {
        padding: 15px;
    }

    .showproduct-image {
        height: 260px;
    }

    .showproduct-title {
        min-height: auto;

    }

    .showproduct-price {
        font-size: 23px;
        margin-bottom: 16px;
    }

    .showproduct-cart a.add_to_cart_button {
        min-height: 50px;
        font-size: 15px;
    }
}


