/*
 * WooCommerce: catalogue and product detail pages
 * Kept separate from the editorial archive/single styles by design.
 */
.ms-woocommerce {
    padding: 34px 0 72px;
    background: #f8fbfb;
}

.ms-woocommerce__breadcrumbs {
    margin-bottom: 20px;
    color: #6e7c7a;
    font-size: 14px;
}

.ms-woocommerce__breadcrumbs .woocommerce-breadcrumb {
    margin: 0;
}

.ms-woocommerce__breadcrumbs a {
    color: #0b6f78;
    text-decoration: none;
}

.ms-woocommerce__hero {
    padding: 34px 42px;
    margin-bottom: 34px;
    border: 1px solid #dce8e6;
    border-radius: 24px;
    background: linear-gradient(115deg, #e9f7f5 0%, #ffffff 66%);
}

.ms-woocommerce__title,
.ms-woocommerce .product_title {
    margin: 0;
    color: #075f70;
    font-size: clamp(30px, 3.4vw, 48px);
    line-height: 1.16;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}

.ms-woocommerce__intro {
    max-width: 850px;
    margin-top: 14px;
    color: #415a58;
    font-size: 17px;
    line-height: 1.65;
}

.ms-woocommerce .woocommerce-notices-wrapper {
    margin-bottom: 20px;
}

.ms-woocommerce .woocommerce-info,
.ms-woocommerce .woocommerce-message,
.ms-woocommerce .woocommerce-error {
    border: 1px solid #b9ddd8;
    border-top: 0;
    border-radius: 12px;
    background: #fff;
    color: #254947;
}

.ms-woocommerce .woocommerce-info::before,
.ms-woocommerce .woocommerce-message::before {
    color: #0b8d96;
}

.ms-woocommerce .woocommerce-result-count {
    margin: 10px 0 24px;
    color: #5d716f;
}

.ms-woocommerce .woocommerce-ordering {
    margin: 0 0 24px;
}

.ms-woocommerce .woocommerce-ordering select {
    min-height: 42px;
    padding: 0 34px 0 14px;
    border: 1px solid #b8dcda;
    border-radius: 10px;
    background: #fff;
    color: #185a61;
}

.ms-woocommerce .woocommerce ul.products,
.ms-woocommerce .woocommerce-page ul.products {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
    clear: both;
    margin: 0;
    padding: 0;
}

.ms-woocommerce .woocommerce ul.products::before,
.ms-woocommerce .woocommerce ul.products::after {
    display: none;
}

.ms-woocommerce .woocommerce ul.products li.product,
.ms-woocommerce .woocommerce-page ul.products li.product {
    display: flex;
    float: none;
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 0 0 22px;
    overflow: hidden;
    border: 1px solid #d9e8e6;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(8, 88, 96, .07);
    flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.ms-woocommerce .woocommerce ul.products li.product:hover {
    transform: translateY(-4px);
    border-color: #79bdc2;
    box-shadow: 0 14px 30px rgba(8, 88, 96, .13);
}

.ms-woocommerce .woocommerce ul.products li.product > a:first-child {
    display: block;
    overflow: hidden;
    background: #eef6f5;
}

.ms-woocommerce .woocommerce ul.products li.product a img {
    display: block;
    width: 100%;
    height: 218px;
    margin: 0;
    object-fit: cover;
    transition: transform .25s ease;
}

.ms-woocommerce .woocommerce ul.products li.product:hover a img {
    transform: scale(1.035);
}

.ms-woocommerce .woocommerce ul.products li.product .woocommerce-loop-product__title {
    margin: 20px 20px 8px;
    padding: 0;
    color: #075f70;
    font-size: 19px;
    line-height: 1.35;
    font-weight: 700;
}

.ms-woocommerce .woocommerce ul.products li.product .price {
    min-height: 24px;
    margin: 0 20px 16px;
    color: #e68613;
    font-size: 16px;
    font-weight: 700;
}

.ms-woocommerce .woocommerce ul.products li.product .button,
.ms-woocommerce .woocommerce ul.products li.product .added_to_cart {
    align-self: flex-start;
    margin: auto 20px 0;
    padding: 10px 18px;
    border-radius: 999px;
    background: #0b7d86;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
}

.ms-woocommerce .woocommerce ul.products li.product .button:hover {
    background: #075f70;
}

/* The Customizer supplies broad heading/button rules after this stylesheet.
   Re-assert the catalogue card component at the same scope so Woo loops keep
   the theme's compact title, fixed cover image and pill CTA. */
#page #content .ms-woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 28px !important;
    margin: 0 !important;
    padding: 0 !important;
}

#page #content .ms-woocommerce ul.products::before,
#page #content .ms-woocommerce ul.products::after {
    display: none !important;
}

#page #content .ms-woocommerce ul.products li.product {
    display: flex !important;
    flex-direction: column !important;
    float: none !important;
    width: auto !important;
    min-height: 100% !important;
    margin: 0 !important;
    overflow: hidden !important;
    border: 1px solid #d9e8e6 !important;
    border-radius: 18px !important;
    background: #fff !important;
}

#page #content .ms-woocommerce ul.products li.product > a:first-child {
    display: block !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #eef6f5 !important;
}

#page #content .ms-woocommerce ul.products li.product a img {
    display: block !important;
    width: 100% !important;
    height: 218px !important;
    min-height: 218px !important;
    margin: 0 !important;
    object-fit: cover !important;
    object-position: center !important;
}

#page #content .ms-woocommerce ul.products li.product .woocommerce-loop-product__title {
    margin: 20px 20px 8px !important;
    padding: 0 !important;
    color: var(--ms-heading, #075f70) !important;
    font-family: var(--ms-font-heading, Arial, sans-serif) !important;
    font-size: var(--ms-font-size-h3, 22px) !important;
    font-weight: var(--ms-font-heading-weight, 700) !important;
    line-height: 1.35 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

#page #content .ms-woocommerce ul.products li.product .button,
#page #content .ms-woocommerce ul.products li.product .added_to_cart {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    align-self: flex-start !important;
    min-height: 42px !important;
    margin: auto 20px 0 !important;
    padding: 9px 18px !important;
    border: 1.5px solid rgba(11, 111, 120, .42) !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, .92), rgba(11, 111, 120, .12)) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .86), 0 4px 14px rgba(11, 111, 120, .08) !important;
    color: var(--ms-primary-dark, #075f70) !important;
    font-family: var(--ms-font-body, Arial, sans-serif) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
}

#page #content .ms-woocommerce ul.products li.product .button:hover,
#page #content .ms-woocommerce ul.products li.product .added_to_cart:hover {
    border-color: rgba(179, 246, 242, .72) !important;
    background: linear-gradient(135deg, #1098a4, #0b6f78) !important;
    color: #fff !important;
}

@media (max-width: 980px) {
    #page #content .ms-woocommerce ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 640px) {
    #page #content .ms-woocommerce ul.products {
        grid-template-columns: 1fr !important;
    }

    #page #content .ms-woocommerce ul.products li.product a img {
        height: 230px !important;
        min-height: 230px !important;
    }
}

.ms-woocommerce .woocommerce nav.woocommerce-pagination {
    margin-top: 42px;
}

.ms-woocommerce .woocommerce nav.woocommerce-pagination ul {
    border: 0;
}

.ms-woocommerce .woocommerce nav.woocommerce-pagination ul li {
    margin: 0 3px;
    border: 0;
}

.ms-woocommerce .woocommerce nav.woocommerce-pagination ul li a,
.ms-woocommerce .woocommerce nav.woocommerce-pagination ul li span {
    min-width: 38px;
    padding: 9px;
    border: 1px solid #cce5e2;
    border-radius: 9px;
    color: #075f70;
}

.ms-woocommerce .woocommerce nav.woocommerce-pagination ul li span.current,
.ms-woocommerce .woocommerce nav.woocommerce-pagination ul li a:hover {
    border-color: #0b7d86;
    background: #0b7d86;
    color: #fff;
}

/* Single product */
.ms-woocommerce--single .ms-woocommerce__content {
    padding: 36px;
    border: 1px solid #d9e8e6;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(8, 88, 96, .06);
}

.ms-woocommerce .woocommerce div.product {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(330px, .9fr);
    gap: 42px;
}

.ms-woocommerce .woocommerce div.product .woocommerce-product-gallery,
.ms-woocommerce .woocommerce div.product div.images,
.ms-woocommerce .woocommerce div.product .summary {
    float: none;
    width: auto;
    margin: 0;
}

.ms-woocommerce .woocommerce div.product .woocommerce-product-gallery img,
.ms-woocommerce .woocommerce div.product div.images img {
    width: 100%;
    border-radius: 16px;
}

.ms-woocommerce .woocommerce div.product .summary {
    align-self: start;
}

.ms-woocommerce .woocommerce div.product .product_title {
    font-size: clamp(28px, 3vw, 42px);
}

/* Product descriptions are authored in WooCommerce's editor. Keep that
   document's headings, paragraphs, links and lists readable, without the
   editorial single-post typography or forced uppercase/bold treatments. */
.ms-woocommerce .woocommerce-product-details__short-description,
.ms-woocommerce .woocommerce-Tabs-panel {
    color: #2f4543;
    font-family: inherit;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
}

.ms-woocommerce .woocommerce-product-details__short-description > :first-child,
.ms-woocommerce .woocommerce-Tabs-panel > :first-child {
    margin-top: 0;
}

.ms-woocommerce .woocommerce-product-details__short-description h1,
.ms-woocommerce .woocommerce-product-details__short-description h2,
.ms-woocommerce .woocommerce-product-details__short-description h3,
.ms-woocommerce .woocommerce-product-details__short-description h4,
.ms-woocommerce .woocommerce-Tabs-panel h1,
.ms-woocommerce .woocommerce-Tabs-panel h2,
.ms-woocommerce .woocommerce-Tabs-panel h3,
.ms-woocommerce .woocommerce-Tabs-panel h4 {
    margin: 1.45em 0 .55em;
    color: #075f70;
    font-family: inherit;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0;
    text-transform: none;
}

.ms-woocommerce .woocommerce-product-details__short-description h1,
.ms-woocommerce .woocommerce-Tabs-panel h1 { font-size: 30px !important; }
.ms-woocommerce .woocommerce-product-details__short-description h2,
.ms-woocommerce .woocommerce-Tabs-panel h2 { font-size: 26px !important; }
.ms-woocommerce .woocommerce-product-details__short-description h3,
.ms-woocommerce .woocommerce-Tabs-panel h3 { font-size: 22px !important; }
.ms-woocommerce .woocommerce-product-details__short-description h4,
.ms-woocommerce .woocommerce-Tabs-panel h4 { font-size: 19px !important; }

/* The global page builder adds !important heading sizes under #page #content.
   Match that scope only inside Woo editor output so product copy retains its
   own heading hierarchy instead of inheriting oversized article headings. */
#page #content .ms-woocommerce .woocommerce-product-details__short-description h1,
#page #content .ms-woocommerce .woocommerce-Tabs-panel h1 { font-size: 30px !important; line-height: 1.3 !important; }
#page #content .ms-woocommerce .woocommerce-product-details__short-description h2,
#page #content .ms-woocommerce .woocommerce-Tabs-panel h2 { font-size: 26px !important; line-height: 1.3 !important; }
#page #content .ms-woocommerce .woocommerce-product-details__short-description h3,
#page #content .ms-woocommerce .woocommerce-Tabs-panel h3 { font-size: 22px !important; line-height: 1.35 !important; }
#page #content .ms-woocommerce .woocommerce-product-details__short-description h4,
#page #content .ms-woocommerce .woocommerce-Tabs-panel h4 { font-size: 19px !important; line-height: 1.4 !important; }

.ms-woocommerce .woocommerce-product-details__short-description p,
.ms-woocommerce .woocommerce-product-details__short-description li,
.ms-woocommerce .woocommerce-Tabs-panel p,
.ms-woocommerce .woocommerce-Tabs-panel li {
    font-family: inherit;
    font-size: inherit;
    font-weight: 400;
    line-height: inherit;
    text-transform: none;
}

.ms-woocommerce .woocommerce-product-details__short-description ul,
.ms-woocommerce .woocommerce-product-details__short-description ol,
.ms-woocommerce .woocommerce-Tabs-panel ul,
.ms-woocommerce .woocommerce-Tabs-panel ol {
    margin: 0 0 1.2em 1.35em;
    padding: 0;
}

.ms-woocommerce .woocommerce-product-details__short-description a,
.ms-woocommerce .woocommerce-Tabs-panel a {
    color: #0b7d86;
    font-weight: inherit;
}

.ms-woocommerce .woocommerce-product-details__short-description strong,
.ms-woocommerce .woocommerce-Tabs-panel strong {
    font-weight: 700;
}

.ms-woocommerce .woocommerce div.product p.price,
.ms-woocommerce .woocommerce div.product span.price {
    margin: 18px 0;
    color: #e68613;
    font-size: 23px;
    font-weight: 800;
}

.ms-woocommerce .woocommerce .product_meta {
    padding-top: 18px;
    border-top: 1px solid #e1eeee;
    color: #58716f;
}

.ms-woocommerce .woocommerce .product_meta a {
    color: #0b7d86;
}

.ms-woocommerce .woocommerce div.product form.cart .button,
.ms-woocommerce .woocommerce a.button,
.ms-woocommerce .woocommerce button.button,
.ms-woocommerce .woocommerce input.button {
    border-radius: 999px;
    background: #e98b18;
    color: #fff;
    font-weight: 750;
}

.ms-woocommerce .woocommerce div.product form.cart .button:hover,
.ms-woocommerce .woocommerce a.button:hover,
.ms-woocommerce .woocommerce button.button:hover,
.ms-woocommerce .woocommerce input.button:hover {
    background: #cd7410;
    color: #fff;
}

.ms-woocommerce .woocommerce div.product .woocommerce-tabs,
.ms-woocommerce .woocommerce div.product .related,
.ms-woocommerce .woocommerce div.product .upsells {
    grid-column: 1 / -1;
    width: 100%;
}

.ms-woocommerce .woocommerce div.product .woocommerce-tabs ul.tabs {
    padding: 0;
}

.ms-woocommerce .woocommerce div.product .woocommerce-tabs ul.tabs::before {
    border-bottom-color: #d9e8e6;
}

.ms-woocommerce .woocommerce div.product .woocommerce-tabs ul.tabs li {
    border-color: #d9e8e6;
    background: #f4f9f8;
}

.ms-woocommerce .woocommerce div.product .woocommerce-tabs ul.tabs li.active {
    border-bottom-color: #fff;
    background: #fff;
}

.ms-woocommerce .woocommerce div.product .woocommerce-tabs .panel {
    color: #334d4b;
    line-height: 1.7;
}

@media (max-width: 980px) {
    .ms-woocommerce .woocommerce ul.products,
    .ms-woocommerce .woocommerce-page ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ms-woocommerce .woocommerce div.product {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 640px) {
    .ms-woocommerce {
        padding: 22px 0 48px;
    }

    .ms-woocommerce__hero,
    .ms-woocommerce--single .ms-woocommerce__content {
        padding: 24px 20px;
        border-radius: 18px;
    }

    .ms-woocommerce .woocommerce-result-count,
    .ms-woocommerce .woocommerce-ordering {
        float: none;
    }

    .ms-woocommerce .woocommerce ul.products,
    .ms-woocommerce .woocommerce-page ul.products {
        grid-template-columns: 1fr;
    }

    .ms-woocommerce .woocommerce ul.products li.product a img {
        height: 230px;
    }
}
