/* ==================================================
   ILLADELPH SPIRITS — SHOP PAGE
   ================================================== */


/* ==================================================
   GENERAL
   ================================================== */

body.post-type-archive-product .site-content {
    background: #ffffff;
}


/* Hide default WooCommerce archive controls */

body.woocommerce-shop .woocommerce-result-count,
body.woocommerce-shop .woocommerce-ordering {
    display: none !important;
}


/* Hide old Customify Shop title / page header */

body.woocommerce-shop .page-header,
body.woocommerce-shop .page-header--item,
body.woocommerce-shop .page-titlebar {
    display: none !important;
}


/* Hide grid / list switcher */

body.woocommerce-shop .wc-view-switcher,
body.woocommerce-shop .wc-view-switcher-wrap,
body.woocommerce-shop .woocommerce-view-switcher,
body.woocommerce-shop .shop-view-switcher,
body.woocommerce-shop .product-view-switcher {
    display: none !important;
}


/* ==================================================
   SHOP INTRO
   ================================================== */

.illadelph-shop-intro {
    position: relative;

    max-width: 1400px;

    margin: 0 auto 42px;
    padding: 0 20px;
}


.illadelph-shop-hero {
    max-width: 950px;

    margin: 20px auto 35px;

    text-align: center;
}


.illadelph-shop-hero h1 {
    margin: 0 0 18px;

    font-size: 40px;
    line-height: 1.2;
    font-weight: 600;
}


.illadelph-shop-hero p {
    margin: 8px 0;

    font-size: 17px;
    line-height: 1.7;
}


.illadelph-shop-hero .illadelph-shop-lead {
    font-size: 20px;
}


/* ==================================================
   BENEFITS
   ================================================== */

.illadelph-shop-benefits {
    display: flex;
    justify-content: center;
    align-items: stretch;

    gap: 12px;

    max-width: 1200px;

    margin: 30px auto 35px;
}


.illadelph-shop-benefit {
    flex: 1 1 0;
    min-width: 0;

    padding: 20px 14px;

    text-align: center;

    background: #f7fbff;

    border: 1px solid #d9e6f2;
    border-radius: 14px;
}


.illadelph-shop-benefit strong {
    display: block;

    margin-bottom: 7px;

    font-size: 17px;
    line-height: 1.3;
}


.illadelph-shop-benefit span {
    display: block;

    font-size: 13px;
    line-height: 1.5;
}


/* ==================================================
   LOCAL COURIER
   ================================================== */

.illadelph-shop-delivery {
    display: flex;
    align-items: flex-start;

    gap: 16px;

    max-width: 1050px;

    margin: 35px auto;
    padding: 25px 30px;

    color: #003a5c;

    background: #eaf7ff;

    border: 1px solid #bfe2f5;
    border-radius: 16px;
}


.illadelph-shop-delivery-icon {
    flex: 0 0 auto;

    font-size: 25px;
    line-height: 1.2;
}


.illadelph-shop-delivery-content strong {
    display: block;

    margin-bottom: 6px;

    font-size: 20px;
}


.illadelph-shop-delivery-content p {
    margin: 0;

    font-size: 15px;
    line-height: 1.65;
}


/* ==================================================
   CHOOSE YOUR CASE
   ================================================== */

.illadelph-choose-case {
    margin: 45px 0 30px;

    text-align: center;

    font-size: 30px;
    line-height: 1.3;
}


/* ==================================================
   SHOP CART ICON
   ================================================== */

body.woocommerce-shop .illadelph-shop-cart-wrap {
    display: flex;
    justify-content: flex-end;

    max-width: 1200px;

    margin: 0 auto 5px;
}


body.woocommerce-shop .illadelph-shop-cart {
    position: relative;

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

    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    min-height: 46px !important;
    max-width: 46px !important;
    max-height: 46px !important;

    margin: 0 !important;
    padding: 0 !important;

    background: #102e5e;

    border-radius: 50%;

    text-decoration: none !important;

    box-sizing: border-box;

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


body.woocommerce-shop .illadelph-shop-cart:hover {
    transform: translateY(-2px);

    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
}


body.woocommerce-shop .illadelph-shop-cart-icon {
    display: block;

    font-size: 22px;
    line-height: 1;
}


body.woocommerce-shop .illadelph-cart-count {
    position: absolute;

    top: -6px;
    right: -6px;

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

    min-width: 20px;
    height: 20px;

    padding: 0 5px;

    background: #e53935;
    color: #ffffff;

    border: 2px solid #ffffff;
    border-radius: 999px;

    font-size: 11px;
    font-weight: 700;
    line-height: 1;

    box-sizing: border-box;
}


/* ==================================================
   PRODUCT GRID
   ================================================== */

body.woocommerce-shop ul.products,
body.woocommerce-shop ul.products.wc-grid-view {
    display: grid !important;

    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;

    gap: 24px !important;

    align-items: stretch !important;

    width: 100% !important;
    max-width: 820px !important;

    margin: 0 auto 60px !important;
    padding: 0 !important;
}


body.woocommerce-shop ul.products::before,
body.woocommerce-shop ul.products::after {
    display: none !important;
}


/* ==================================================
   PRODUCT COLUMN
   ================================================== */

body.woocommerce-shop ul.products > li.product,
body.woocommerce-shop ul.products > li.product.customify-col {
    display: flex !important;

    float: none !important;
    clear: none !important;

    width: 100% !important;
    max-width: none !important;
    height: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    background: transparent !important;

    border: 0 !important;

    box-shadow: none !important;
}


/* ==================================================
   PRODUCT CARD
   ================================================== */

body.woocommerce-shop .wc-product-inner {
    position: relative;

    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;

    width: 100% !important;
    height: 100% !important;
    min-height: 500px !important;

    padding: 22px 24px 24px !important;

    text-align: center;

    background: #ffffff;

    border: 1px solid #e1e7ec;
    border-radius: 16px;

    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.035);

    box-sizing: border-box;

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


body.woocommerce-shop .wc-product-inner:hover {
    transform: translateY(-3px);

    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.075);
}


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

body.woocommerce-shop .wc-product-inner img {
    display: block;

    width: auto !important;
    height: 195px !important;
    max-width: 100% !important;
    max-height: 195px !important;

    margin: 0 auto 12px !important;

    object-fit: contain !important;
}


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

body.woocommerce-shop .wc-product-inner .product-category {
    display: block;

    min-height: 22px;

    margin: 0 0 4px !important;

    color: #666666;

    font-size: 12px !important;

    letter-spacing: 1.2px;
    text-transform: uppercase;
}


/* ==================================================
   BADGE SLOT
   ================================================== */

body.woocommerce-shop .illadelph-badge-slot {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 30px;

    margin: 0 0 6px;
}


/* Invisible slot for 6 Bottle Case */

body.woocommerce-shop .illadelph-badge-slot-empty {
    visibility: hidden;
}


/* ==================================================
   BEST VALUE
   ================================================== */

body.woocommerce-shop .illadelph-best-value-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 6px 13px;

    color: #102e5e;

    background: #eaf7ff;

    border: 1px solid #b9dff5;
    border-radius: 999px;

    font-size: 11px;
    font-weight: 700;
    line-height: 1;

    letter-spacing: 0.6px;
    text-transform: uppercase;
}


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

body.woocommerce-shop .wc-product-inner .woocommerce-loop-product__title,
body.woocommerce-shop .wc-product-inner .wc-product-title,
body.woocommerce-shop .wc-product-inner .product-title {
    display: flex;
    align-items: center;
    justify-content: center;

    max-width: 330px;
    min-height: 76px;

    margin: 5px auto 6px !important;

    color: #102e5e !important;

    font-size: 18px !important;
    line-height: 1.35 !important;
    font-weight: 500;

    text-align: center;
}


/* Corporate title color */

body.woocommerce-shop .wc-product-inner .woocommerce-loop-product__title a,
body.woocommerce-shop .wc-product-inner .wc-product-title a,
body.woocommerce-shop .wc-product-inner .product-title a {
    color: #102e5e !important;

    text-decoration: none !important;
}


body.woocommerce-shop .wc-product-inner .woocommerce-loop-product__title a:hover,
body.woocommerce-shop .wc-product-inner .wc-product-title a:hover,
body.woocommerce-shop .wc-product-inner .product-title a:hover {
    color: #0b2348 !important;
}


/* ==================================================
   PRICE PER BOTTLE
   ================================================== */

body.woocommerce-shop .illadelph-price-per-bottle {
    min-height: 20px;

    margin: 0 0 10px !important;

    color: #666666;

    font-size: 13px !important;
    line-height: 1.4;
}


body.woocommerce-shop .illadelph-price-per-bottle-best {
    color: #102e5e;

    font-weight: 600;
}


/* ==================================================
   PRODUCT TOTAL PRICE
   ================================================== */

body.woocommerce-shop .wc-product-inner .price {
    display: block;

    margin: 7px 0 9px !important;

    color: #1f1f1f !important;

    font-size: 20px !important;
    font-weight: 700;
}


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

body.woocommerce-shop .wc-product-inner .button,
body.woocommerce-shop .wc-product-inner a.button,
body.woocommerce-shop .wc-product-inner button.button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    min-width: 165px !important;
    min-height: 44px;

    margin-top: auto !important;

    padding: 11px 20px !important;

    background: #102e5e !important;
    background-color: #102e5e !important;

    color: #ffffff !important;

    border: 1px solid #102e5e !important;
    border-radius: 8px !important;

    box-shadow: none !important;

    font-weight: 600 !important;

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

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease !important;
}


body.woocommerce-shop .wc-product-inner .button:hover,
body.woocommerce-shop .wc-product-inner a.button:hover,
body.woocommerce-shop .wc-product-inner button.button:hover {
    background: #0b2348 !important;
    background-color: #0b2348 !important;

    color: #ffffff !important;

    border-color: #0b2348 !important;

    transform: translateY(-1px);
}


/* AJAX View Cart */

body.woocommerce-shop .added_to_cart {
    margin-top: 10px;

    color: #102e5e !important;

    font-weight: 600;
}


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

@media (max-width: 900px) {

    .illadelph-shop-benefits {
        flex-wrap: wrap;
    }


    .illadelph-shop-benefit {
        flex: 1 1 calc(50% - 12px);
    }

}


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

@media (max-width: 800px) {

    .illadelph-shop-intro {
        padding: 0 15px;
    }


    .illadelph-shop-hero h1 {
        font-size: 31px;
    }


    .illadelph-shop-hero .illadelph-shop-lead {
        font-size: 18px;
    }


    .illadelph-shop-benefits {
        display: grid;

        grid-template-columns: 1fr;

        gap: 10px;
    }


    .illadelph-shop-delivery {
        margin-top: 25px;
        margin-bottom: 30px;

        padding: 20px;
    }


    .illadelph-choose-case {
        margin-top: 35px;

        font-size: 26px;
    }


    body.woocommerce-shop ul.products,
    body.woocommerce-shop ul.products.wc-grid-view {
        grid-template-columns: 1fr !important;

        max-width: 500px !important;

        gap: 24px !important;
    }


    body.woocommerce-shop .wc-product-inner {
        min-height: auto !important;

        padding: 20px 18px 22px !important;
    }


    body.woocommerce-shop .wc-product-inner img {
        height: 180px !important;
        max-height: 180px !important;
    }


    body.woocommerce-shop .illadelph-badge-slot {
        height: 30px;
    }


    body.woocommerce-shop .wc-product-inner .woocommerce-loop-product__title,
    body.woocommerce-shop .wc-product-inner .wc-product-title,
    body.woocommerce-shop .wc-product-inner .product-title {
        min-height: auto;

        font-size: 20px !important;
    }


    body.woocommerce-shop .illadelph-shop-cart-wrap {
        padding-right: 5px;
    }

}