/* WooCommerce Global Styles */

/* Reset default margins and paddings for WooCommerce pages */
body.woocommerce,
body.woocommerce-page {
    margin: 0;
    padding: 0;
    font-family: 'Heebo', sans-serif;
    color: #414042;
    background-color: #f9f9f9;
}

/* Container Styling */
body.woocommerce .site-content,
body.woocommerce-page .site-content,
body.woocommerce .content-area,
body.woocommerce-page .content-area,
body.woocommerce .site-main,
body.woocommerce-page .site-main {
    max-width: 90%;
    width: 95%;
    margin: 0 auto;
    padding: 20px;
}

/* Breadcrumb Navigation */
body.woocommerce .woocommerce-breadcrumb,
body.woocommerce-page .woocommerce-breadcrumb {
    font-size: 14px;
    margin: 10px auto;
    text-align: left;
    width: 75%;
}

/* Page Title */
body.woocommerce .woocommerce-products-header__title,
body.woocommerce-page .woocommerce-products-header__title {
    font-family: 'jaf-facitweb', sans-serif;
    font-size: 48px;
    color: #0063a8;
    margin-bottom: 30px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

body.woocommerce #primary .woocommerce-products-header,
body.woocommerce-page .woocommerce-products-header {
    all: unset; /* Remove all inherited styles */
    position: relative !important;
    z-index: auto !important;
}

body.woocommerce-account #primary header.entry-header,
body.woocommerce-page header.entry-header,
body.woocommerce-cart header.entry-header,
body.woocommerce-checkout header.entry-header,

{    all: unset; /* Remove all inherited styles */
    position: relative !important;
    z-index: auto !important;
    margin-bottom: 20px;
}

body.woocommerce-account #primary .entry-header .entry-title,
body.woocommerce-cart #primary .entry-header .entry-title,
body.woocommerce-checkout #primary .entry-header .entry-title{
        color: #0063a8;
}


/* Adjust Page Title for smaller screens */
@media screen and (max-width: 1200px) {
    body.woocommerce .woocommerce-products-header__title,
    body.woocommerce-page .woocommerce-products-header__title {
        font-size: 40px;
        margin-bottom: 25px;
    }
}

@media screen and (max-width: 992px) {
    body.woocommerce .woocommerce-products-header__title,
    body.woocommerce-page .woocommerce-products-header__title {
        font-size: 36px;
        margin-bottom: 20px;
    }
}

@media screen and (max-width: 768px) {
    body.woocommerce .woocommerce-products-header__title,
    body.woocommerce-page .woocommerce-products-header__title {
        font-size: 32px;
        margin-bottom: 15px;
    }
}

@media screen and (max-width: 576px) {
    body.woocommerce .woocommerce-products-header__title,
    body.woocommerce-page .woocommerce-products-header__title {
        font-size: 28px;
        margin-bottom: 10px;
    }
}

/* Adjust Header Titles for smaller screens */
@media screen and (max-width: 1200px) {
    .wp-block-cover__inner-container .wp-block-heading {
        font-size: 32px;
        margin-bottom: 18px;
    }
}

@media screen and (max-width: 992px) {
    .wp-block-cover__inner-container .wp-block-heading {
        font-size: 28px;
        margin-bottom: 16px;
    }
}

@media screen and (max-width: 768px) {
    .wp-block-cover__inner-container .wp-block-heading {
        font-size: 24px;
        margin-bottom: 14px;
    }
}

@media screen and (max-width: 576px) {
    .wp-block-cover__inner-container .wp-block-heading {
        font-size: 20px;
        margin-bottom: 12px;
    }
}

/* Product Grid */
body.woocommerce ul.products,
body.woocommerce-page ul.products {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    list-style: none;
    margin: 0 auto;
    padding: 0;
    justify-content: center;
}

/* Product Cards */
body.woocommerce ul.products li.product,
body.woocommerce-page ul.products li.product {
    width: 25%;
    max-width: 300px;
    padding: 10px;
    box-sizing: border-box;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: auto;
    margin-bottom: 20px;
}

/* Adjust Product Cards for tablet screens */
@media screen and (max-width: 1200px) {
    body.woocommerce ul.products li.product,
    body.woocommerce-page ul.products li.product {
        width: 33.33%; /* Three products per row */
    }
}

/* Adjust Product Cards for smaller screens */
@media screen and (max-width: 992px) {
    body.woocommerce ul.products li.product,
    body.woocommerce-page ul.products li.product {
        width: 50%; /* Two products per row */
    }
}

/* Adjust Product Cards for mobile screens */
@media screen and (max-width: 480px) {
    body.woocommerce ul.products,
    body.woocommerce-page ul.products {
        gap: 10px; /* Reduce gap between products */
    }

    body.woocommerce ul.products li.product,
    body.woocommerce-page ul.products li.product {
        width: 100%;
        max-width: none;
        padding: 10px; /* Reduce padding for wider appearance */
        margin: 0 auto; /* Center the product card */
    }
}

/* Product Images */
body.woocommerce ul.products li.product img,
body.woocommerce-page ul.products li.product img {
    max-width: 100%;
    height: 180px;
    object-fit: cover;
    margin: 0 auto 10px;
}

/* Adjust Product Images for mobile */
@media screen and (max-width: 480px) {
    body.woocommerce ul.products li.product img,
    body.woocommerce-page ul.products li.product img {
        width: 100%;
        height: auto;
    }
}

/* Product Titles */
body.woocommerce ul.products li.product h2.woocommerce-loop-product__title,
body.woocommerce-page ul.products li.product h2.woocommerce-loop-product__title {
    color: #0063a8;
    text-align: center;
    margin-bottom: 10px;
    height: auto;
    overflow: visible;
    display: block;
    line-height: 1.2;
    font-size: 16px;
}

/* Adjust Product Titles for mobile */
@media screen and (max-width: 480px) {
    body.woocommerce ul.products li.product h2.woocommerce-loop-product__title,
    body.woocommerce-page ul.products li.product h2.woocommerce-loop-product__title {
        font-size: 18px;
        margin-bottom: 8px;
    }
}

/* Product Prices */
body.woocommerce ul.products li.product .price,
body.woocommerce-page ul.products li.product .price {
    font-size: 14px;
    color: #414042;
    margin: 10px 0;
}

/* Add to Cart Buttons */
body.woocommerce ul.products li.product .button,
body.woocommerce-page ul.products li.product .button {
    background-color: #0063a8;
    color: #fff;
    padding: 10px 20px;
    text-transform: uppercase;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: auto;
    align-self: center;
    border-radius: 5px;
}

/* Adjust Button Size for mobile */
@media screen and (max-width: 480px) {
    body.woocommerce ul.products li.product .button,
    body.woocommerce-page ul.products li.product .button {
        padding: 12px 24px;
        font-size: 16px;
    }
}

body.woocommerce ul.products li.product .button:hover,
body.woocommerce-page ul.products li.product .button:hover {
    background-color: #004f86;
}

/* Uniform Card Heights */
body.woocommerce ul.products li.product .woocommerce-LoopProduct-link,
body.woocommerce-page ul.products li.product .woocommerce-LoopProduct-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

/* Pagination */
body.woocommerce .woocommerce-pagination,
body.woocommerce-page .woocommerce-pagination {
    text-align: center;
    margin: 40px 0;
}

/* Fix alignment for .wp-block-cover.is-position-top-center */
.wp-block-cover.is-position-top-center {
    align-items: flex-end !important;
}

/* Ensure the inner container takes full height */
.wp-block-cover.is-position-top-center .wp-block-cover__inner-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* Increase the dimming effect on cover backgrounds */
.wp-block-cover .wp-block-cover__background.has-background-dim::before {
    background-color: rgba(0, 0, 0, 0.7) !important;
}

/* Style links inside cover blocks to look like buttons */
.wp-block-cover .wp-block-cover__inner-container a {
    background-color: #0063a8;
    color: #fff !important;
    padding: 15px 30px;
    text-transform: uppercase;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    display: inline-block;
    margin-top: 20px;
    text-decoration: none;
}

.wp-block-cover .wp-block-cover__inner-container a:hover {
    background-color: #004f86;
    transform: translateY(-3px);
}

/* Adjust Container Styling for mobile */
@media screen and (max-width: 480px) {
    body.woocommerce .site-content,
    body.woocommerce-page .site-content,
    body.woocommerce .content-area,
    body.woocommerce-page .content-area,
    body.woocommerce .site-main,
    body.woocommerce-page .site-main {
        max-width: 100%;
        width: 100%;
        margin: 0;
        padding: 10px;
    }
}