/* ==========================================================================
   MegaPets 2.0 — Single Product

   File:
   components/product/single-product/single-product.css
   ========================================================================== */

/* ==========================================================================
   NATIVE PRODUCT HERO
   ========================================================================== */

body.mp-single-product-page
div.product
.mp-single-product-hero,
body.mp-single-product-page
div.product
.mp-single-product-hero
* {
    box-sizing: border-box;
}

body.mp-single-product-page
div.product
.mp-single-product-hero {
    position: relative;
    width: 100%;
    margin: 0 0 52px;
}

body.mp-single-product-page
div.product
.mp-single-product-hero::after {
    display: table;
    clear: both;
    content: "";
}

body.mp-single-product-page
div.product
.mp-single-product-hero
> .ast-sticky-row {
    width: 100%;
}

body.mp-single-product-page
div.product
.mp-single-product-hero
.woocommerce-product-gallery {
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

body.mp-single-product-page
div.product
.mp-single-product-hero
.woocommerce-product-gallery__wrapper,
body.mp-single-product-page
div.product
.mp-single-product-hero
.woocommerce-product-gallery__image {
    margin: 0;
}

body.mp-single-product-page
div.product
.mp-single-product-hero
.woocommerce-product-gallery__image
a,
body.mp-single-product-page
div.product
.mp-single-product-hero
.woocommerce-product-gallery__image
img {
    display: block;
    width: 100%;
}

body.mp-single-product-page
div.product
.mp-single-product-hero
.woocommerce-product-gallery__image
img {
    border-radius: var(--mp-radius-small);
    background: transparent;
    box-shadow: none;
    cursor: default;
}

/*
 * Product photos remain a navigable slider, but are no longer links to the
 * original file and never display WooCommerce's full-screen trigger.
 */
body.mp-single-product-page
div.product
.mp-single-product-hero
.woocommerce-product-gallery__trigger {
    display: none !important;
}

body.mp-single-product-page
div.product
.mp-single-product-hero
.woocommerce-product-gallery__image
> a {
    pointer-events: none;
    cursor: default;
}

body.mp-single-product-page
div.product
.mp-single-product-hero
.flex-control-thumbs
img {
    border: 0;
    border-radius: var(--mp-radius-small);
    opacity: 0.62;
    transition:
        opacity var(--mp-duration-fast) var(--mp-ease);
}

body.mp-single-product-page
div.product
.mp-single-product-hero
.flex-control-thumbs
img.flex-active,
body.mp-single-product-page
div.product
.mp-single-product-hero
.flex-control-thumbs
img:hover {
    opacity: 1;
}

body.mp-single-product-page
div.product
.mp-single-product-hero
.summary {
    min-width: 0;
    padding: 6px clamp(16px, 2vw, 32px) 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--mp-color-grey);
    font-family: var(--mp-font-body);
}

/* ==========================================================================
   PRODUCT OFFER IDENTITY
   ========================================================================== */

body.mp-single-product-page
div.product
.mp-single-product-hero
.mp-single-product-offer-identity {
    text-align: center;
}

body.mp-single-product-page
div.product
.mp-single-product-hero
.mp-single-product-offer-title {
    margin: 0;
    color: var(--mp-color-dark);
    font-family: var(--mp-font-heading);
    font-size: clamp(28px, 2.2vw, 36px);
    font-weight: var(--mp-font-weight-medium);
    line-height: 1.08;
    letter-spacing: -.015em;
    text-transform: uppercase;
    text-wrap: balance;
}

body.mp-single-product-page
div.product
.mp-single-product-offer-title__main,
body.mp-single-product-page
div.product
.mp-single-product-offer-title__sub {
    display: block;
    min-width: 0;
    overflow-wrap: anywhere;
    hyphens: auto;
}

body.mp-single-product-page
div.product
.mp-single-product-offer-title__sub {
    margin-top: 8px;
    color: var(--mp-color-gold-dark);
    font-family: var(--mp-font-body);
    font-size: 14px;
    font-weight: var(--mp-font-weight-semibold);
    line-height: 1.2;
    letter-spacing: .16em;
    text-transform: uppercase;
}

body.mp-single-product-page
div.product
.mp-single-product-offer-divider {
    display: block;
    width: 48px;
    height: var(--mp-decorative-line-height);
    margin: 14px auto;
    border: 0;
    background: var(--mp-decorative-divider-line);
}

body.mp-single-product-page
div.product
.mp-single-product-hero
.woocommerce-product-rating {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    float: none;
    margin: 14px auto 0;
}

body.mp-single-product-page
div.product
.mp-single-product-hero
.woocommerce-product-details__short-description {
    max-width: 38ch;
    margin: 0 auto;
    color: var(--mp-color-brown-chocolate);
    font-family: var(--mp-font-accent);
    font-size: 15px;
    font-style: italic;
    font-weight: var(--mp-font-weight-regular);
    line-height: 1.6;
    text-wrap: pretty;
}

body.mp-single-product-page
div.product
.mp-single-product-hero
.summary
.woocommerce-product-details__short-description
> :first-child {
    margin-top: 0;
}

body.mp-single-product-page
div.product
.mp-single-product-hero
.summary
.woocommerce-product-details__short-description
> :last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   PRODUCT OFFER FACTS AND PRICE
   ========================================================================== */

body.mp-single-product-page
div.product
.mp-single-product-hero
.mp-single-product-offer-facts {
    display: grid;
    gap: 6px;
    margin-top: 24px;
    padding: 13px 0;
    border-top: var(--mp-standard-separator-line-thickness)
        solid var(--mp-standard-separator-line-color);
    border-bottom: var(--mp-standard-separator-line-thickness)
        solid var(--mp-standard-separator-line-color);
}

body.mp-single-product-page
div.product
.mp-single-product-offer-fact,
body.mp-single-product-page
div.product
.mp-single-product-offer-price {
    display: grid;
    grid-template-columns: minmax(110px, 42%) minmax(0, 1fr);
    align-items: baseline;
    gap: 12px;
}

body.mp-single-product-page
div.product
.mp-single-product-offer-fact__label,
body.mp-single-product-page
div.product
.mp-single-product-offer-price__label {
    color: var(--mp-color-brown-chocolate);
    font-family: var(--mp-font-body);
    font-size: 13px;
    font-weight: var(--mp-font-weight-semibold);
    line-height: 1.35;
}

body.mp-single-product-page
div.product
.mp-single-product-offer-fact__value {
    color: var(--mp-color-dark);
    font-family: var(--mp-font-body);
    font-size: 14px;
    font-weight: var(--mp-font-weight-medium);
    line-height: 1.35;
    text-align: right;
}

body.mp-single-product-page
div.product
.mp-single-product-offer-fact__number {
    color: var(--mp-color-gold-dark);
    font-weight: var(--mp-font-weight-semibold);
    font-variant-numeric: lining-nums tabular-nums;
}

body.mp-single-product-page
div.product
.mp-single-product-offer-fact__unit {
    margin-left: 2px;
    color: var(--mp-color-brown-chocolate);
    font-size: 12px;
}

body.mp-single-product-page
div.product
.mp-single-product-offer-price {
    align-items: end;
    margin-top: 14px;
}

body.mp-single-product-page
div.product
.mp-single-product-offer-price__value {
    min-width: 0;
    text-align: right;
}

body.mp-single-product-page
div.product
.mp-single-product-offer-price__value
.price {
    margin: 0;
    color: var(--mp-color-dark);
    font-family: var(--mp-font-heading);
    font-size: clamp(27px, 2.1vw, 31px);
    font-weight: var(--mp-font-weight-regular);
    line-height: 1;
    white-space: normal;
}

body.mp-single-product-page
div.product
.mp-single-product-hero
.summary
.woocommerce-variation-availability
.stock {
    margin: 14px 0 0;
    color: var(--mp-color-brown-chocolate);
    font-size: 13px;
    font-weight: var(--mp-font-weight-semibold);
}

body.mp-single-product-page
div.product
.mp-single-product-hero
.summary
.product_meta {
    display: grid;
    gap: 5px;
    margin-top: 22px;
    padding-top: 16px;
    border-top: var(--mp-standard-separator-line-thickness)
        solid var(--mp-standard-separator-line-color);
    color: var(--mp-color-grey);
    font-size: 13px;
    line-height: 1.5;
}

body.mp-single-product-page
div.product
.mp-single-product-hero
.summary
.product_meta
a {
    color: var(--mp-color-brown-chocolate);
    text-decoration: none;
}

/* ==========================================================================
   NATIVE SIMPLE-PRODUCT PURCHASE FORM
   ========================================================================== */

body.mp-single-product-page
div.product.product-type-simple
.mp-single-product-hero
.summary
form.cart {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    align-items: stretch;
    min-height: 48px;
    margin: 18px 0 0;
    padding: 0;
    border: var(--mp-border-width) solid
        var(--mp-color-border-subtle);
    border-radius: var(--mp-radius);
    overflow: hidden;
    background: var(--mp-color-surface);
}

body.mp-single-product-page
div.product.product-type-simple
.mp-single-product-hero
.summary
form.cart
.quantity {
    flex: 0 0 108px;
    float: none;
    margin: 0;
    border-right: var(--mp-border-width) solid
        var(--mp-color-border-subtle);
}

body.mp-single-product-page
div.product.product-type-simple
.mp-single-product-hero
.summary
form.cart
.qty {
    width: 100%;
    min-height: 48px;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: var(--mp-color-surface);
    color: var(--mp-color-dark);
    font-family: var(--mp-font-body);
    font-size: 15px;
    box-shadow: none;
}

body.mp-single-product-page
div.product
.mp-single-product-hero
.summary
.single_add_to_cart_button {
    display: inline-flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    margin: 0;
    padding: 12px 20px;
    border: 0;
    border-radius: var(--mp-radius);
    background: var(--mp-action-primary-background);
    color: #fff;
    font-family: var(--mp-font-body);
    font-size: 15px;
    font-weight: var(--mp-font-weight-semibold);
    line-height: 1.25;
    text-decoration: none;
    box-shadow: none;
    transition:
        background var(--mp-duration-fast) ease,
        box-shadow var(--mp-duration-fast) ease,
        transform var(--mp-duration-fast) ease;
}

body.mp-single-product-page
div.product.product-type-simple
.mp-single-product-hero
.summary
form.cart
.single_add_to_cart_button {
    border-radius: 0;
}

body.mp-single-product-page
div.product.product-type-simple
.mp-single-product-hero
.summary
form.cart
:is(button, input):focus-visible {
    outline-offset: -3px;
}

body.mp-single-product-page
div.product
.mp-single-product-hero
.summary
.woocommerce-variation-add-to-cart
.single_add_to_cart_button {
    float: none;
    width: auto;
    max-width: 100%;
    white-space: normal;
}

body.mp-single-product-page
div.product
.mp-single-product-hero
.summary
.single_add_to_cart_button::before {
    display: block;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    background: currentColor;
    content: "";
    -webkit-mask:
        url("../../../assets/icons/mp-cart.svg")
        center / contain no-repeat;
    mask:
        url("../../../assets/icons/mp-cart.svg")
        center / contain no-repeat;
}

body.mp-single-product-page
div.product
.mp-single-product-hero
.summary
.single_add_to_cart_button:hover {
    background: var(--mp-action-primary-background-hover);
    color: #fff;
}

body.mp-single-product-page
div.product
.mp-single-product-hero
.summary
.single_add_to_cart_button:active {
    background: var(--mp-action-primary-background-active);
    color: #fff;
    transform: translateY(1px);
}

body.mp-single-product-page
div.product
.mp-single-product-hero
.summary
.single_add_to_cart_button.disabled,
body.mp-single-product-page
div.product
.mp-single-product-hero
.summary
.single_add_to_cart_button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

body.mp-single-product-page
div.product
.mp-single-product-preparing {
    margin: 18px 0 0;
    padding: 12px 0;
    border-top: var(--mp-standard-separator-line-thickness)
        solid var(--mp-standard-separator-line-color);
    border-bottom: var(--mp-standard-separator-line-thickness)
        solid var(--mp-standard-separator-line-color);
    background: transparent;
    color: var(--mp-color-brown-chocolate);
    font-family: var(--mp-font-body);
    font-size: 14px;
    font-weight: var(--mp-font-weight-semibold);
}

/* ==========================================================================
   NATIVE PRODUCT TABS
   ========================================================================== */

body.mp-single-product-page
.woocommerce-tabs
> ul.tabs:has(> li:only-child) {
    display: none;
}

body.mp-single-product-page
div.product
.woocommerce-tabs,
body.mp-single-product-page
div.product
#tab-description,
body.mp-single-product-page
div.product
.woocommerce-Tabs-panel--description,
body.mp-single-product-page
div.product
.woocommerce-product-details__description {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

/* ==========================================================================
   PRODUCT DESCRIPTION GRID
   ========================================================================== */

body.mp-single-product-page
div.product
.mp-product-description--enhanced {
    box-sizing: border-box;
    width: 100%;
    max-width: 1320px;
    margin-top: 28px;
    margin-right: auto;
    margin-bottom: 28px;
    margin-left: auto;
    padding: 18px;
    border-radius: 22px;
    background: #fffdfb;
}

body.mp-single-product-page
div.product
.mp-product-details-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 16px;
    width: 100%;
    margin: 0;
}

body.mp-single-product-page
div.product
.mp-product-details-grid--media-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.mp-single-product-page
div.product
.mp-product-detail,
body.mp-single-product-page
div.product
.mp-product-detail-media {
    box-sizing: border-box;
    min-width: 0;
    margin: 0;
    border: 1px solid rgba(166, 118, 61, 0.18);
    border-radius: 16px;
    background: #fffaf5;
    box-shadow: none;
}

body.mp-single-product-page
div.product
.mp-product-detail {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 24px 26px 23px;
    overflow: hidden;
    color: #705d53;
    transition:
        border-color var(--mp-duration-normal) var(--mp-ease),
        box-shadow var(--mp-duration-normal) var(--mp-ease),
        transform var(--mp-duration-normal) var(--mp-ease);
}

body.mp-single-product-page
div.product
.mp-product-detail::after {
    content: none;
}

body.mp-single-product-page
div.product
.mp-product-detail.is-targeted {
    border-color: rgba(189, 135, 61, 0.58);
    box-shadow:
        0 0 0 3px rgba(189, 135, 61, 0.14),
        0 10px 24px rgba(91, 64, 51, 0.08);
    transform: translateY(-1px);
}

body.mp-single-product-page
div.product
.mp-product-detail__kicker {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 10px;
    color: #bd873d;
    font-family: var(--mp-font-body);
    font-size: 12px;
    font-weight: var(--mp-font-weight-medium);
    line-height: 1.35;
    letter-spacing: .09em;
    text-transform: uppercase;
}

body.mp-single-product-page
div.product
.mp-product-detail__kicker-dot {
    display: block;
    flex: 0 0 7px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #bd873d;
}

body.mp-single-product-page
div.product
.mp-product-detail__heading {
    min-width: 0;
    margin: 0 0 10px;
    color: #5b4033;
    font-family: var(--mp-font-heading);
    font-size: 25px;
    font-weight: var(--mp-font-weight-medium);
    line-height: 1.18;
    letter-spacing: 0;
    text-transform: none;
    text-wrap: balance;
    overflow-wrap: anywhere;
    scroll-margin-top:
        calc(
            var(--mp-site-header-sticky-offset-desktop)
            + 18px
        );
}

body.mp-single-product-page
div.product
.mp-product-detail__heading::before {
    content: none;
}

body.mp-single-product-page
div.product
.mp-product-detail__body {
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #705d53;
    font-family: var(--mp-font-body);
    font-size: 14px;
    font-weight: var(--mp-font-weight-regular);
    line-height: 1.68;
    box-shadow: none;
    overflow-wrap: anywhere;
}

body.mp-single-product-page
div.product
.mp-product-detail__body > :first-child {
    margin-top: 0;
}

body.mp-single-product-page
div.product
.mp-product-detail__body > :last-child {
    margin-bottom: 0;
}

body.mp-single-product-page
div.product
.mp-product-detail__body p,
body.mp-single-product-page
div.product
.mp-product-detail__body ul,
body.mp-single-product-page
div.product
.mp-product-detail__body ol {
    margin-top: 0;
    margin-bottom: 12px;
}

body.mp-single-product-page
div.product
.mp-product-detail__body img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: var(--mp-radius-small);
    background: transparent;
    box-shadow: none;
}

body.mp-single-product-page
div.product
.mp-product-detail__body
.wp-block-image,
body.mp-single-product-page
div.product
.mp-product-detail__body
.wp-block-gallery,
body.mp-single-product-page
div.product
.mp-product-detail__body
figure {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

body.mp-single-product-page
div.product
.mp-product-description-media-source {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 28px 0;
}

body.mp-single-product-page
div.product
.mp-product-detail-media {
    position: relative;
    display: flex;
    min-height: 238px;
    overflow: hidden;
    background: #fffaf5;
}

body.mp-single-product-page
div.product
.mp-product-detail-media__image {
    display: block;
    width: 100%;
    height: 100%;
    min-height: inherit;
    margin: 0;
    object-fit: cover;
    object-position: center;
    transition:
        transform var(--mp-duration-slow) var(--mp-ease);
}

@media (hover: hover) and (pointer: fine) {

    body.mp-single-product-page
    div.product
    .mp-product-detail-media:hover
    .mp-product-detail-media__image {
        transform: scale(1.025);
    }
}

/* ==========================================================================
   FOCUS AND NATIVE SALE BADGE
   ========================================================================== */

body.mp-single-product-page
div.product
.mp-single-product-hero
a:focus-visible,
body.mp-single-product-page
div.product
.mp-single-product-hero
button:focus-visible,
body.mp-single-product-page
div.product
.mp-single-product-hero
input:focus-visible {
    outline: 2px solid var(--mp-color-action-primary);
    outline-offset: 3px;
}

body.mp-single-product-page
div.product
.mp-single-product-hero
.onsale {
    position: absolute;
    top: 14px;
    right: auto;
    left: 14px;
    z-index: 3;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 7px 11px;
    border-radius: var(--mp-radius-pill);
    background: var(--mp-color-gold-dark);
    color: var(--mp-color-dark);
    font-family: var(--mp-font-body);
    font-size: 12px;
    font-weight: var(--mp-font-weight-semibold);
    line-height: 1;
}

@media (prefers-reduced-motion: reduce) {

    body.mp-single-product-page
    div.product
    .mp-product-detail,
    body.mp-single-product-page
    div.product
    .mp-product-detail-media__image {
        transition: none;
    }

    body.mp-single-product-page
    div.product
    .mp-product-detail.is-targeted,
    body.mp-single-product-page
    div.product
    .mp-product-detail-media:hover
    .mp-product-detail-media__image {
        transform: none;
    }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 640px) {

    body.mp-single-product-page
    div.product
    .mp-product-description--enhanced {
        padding: 10px;
        border-radius: 17px;
    }

    body.mp-single-product-page
    div.product
    .mp-product-details-grid,
    body.mp-single-product-page
    div.product
    .mp-product-details-grid--media-2,
    body.mp-single-product-page
    div.product
    .mp-product-description-media-source {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    body.mp-single-product-page
    div.product
    .mp-product-detail {
        padding: 21px 20px 20px;
    }

    body.mp-single-product-page
    div.product
    .mp-product-detail__heading {
        margin-bottom: 10px;
        font-size: 23px;
        scroll-margin-top:
            calc(
                var(--mp-site-header-clearance-mobile)
                + 12px
            );
    }

    body.mp-single-product-page
    div.product
    .mp-product-detail__body {
        font-size: 14px;
        line-height: 1.68;
    }

    body.mp-single-product-page
    div.product
    .mp-product-detail-media {
        min-height: 220px;
    }
}

@media (max-width: 544px) {

    body.mp-single-product-page
    div.product
    .mp-single-product-hero {
        margin-bottom: 34px;
    }

    body.mp-single-product-page
    div.product
    .mp-single-product-hero
    .woocommerce-product-gallery {
        padding: 0;
    }

    body.mp-single-product-page
    div.product
    .mp-single-product-hero
    .summary {
        padding: 22px 4px 0;
    }

    body.mp-single-product-page
    div.product
    .mp-single-product-offer-title {
        font-size: 28px;
    }

    body.mp-single-product-page
    div.product
    .mp-single-product-offer-title__sub {
        margin-top: 7px;
        font-size: 13px;
        letter-spacing: .14em;
    }

    body.mp-single-product-page
    div.product
    .mp-single-product-offer-divider {
        margin-top: 12px;
        margin-bottom: 12px;
    }

    body.mp-single-product-page
    div.product
    .mp-single-product-hero
    .summary
    .woocommerce-product-details__short-description {
        font-size: 14px;
        line-height: 1.55;
    }

    body.mp-single-product-page
    div.product
    .mp-single-product-offer-facts {
        margin-top: 20px;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    body.mp-single-product-page
    div.product
    .mp-single-product-offer-fact,
    body.mp-single-product-page
    div.product
    .mp-single-product-offer-price {
        grid-template-columns: minmax(96px, 40%) minmax(0, 1fr);
        gap: 10px;
    }

    body.mp-single-product-page
    div.product
    .mp-single-product-offer-fact__label,
    body.mp-single-product-page
    div.product
    .mp-single-product-offer-price__label {
        font-size: 12.5px;
    }

    body.mp-single-product-page
    div.product
    .mp-single-product-offer-fact__value {
        font-size: 13px;
    }

    body.mp-single-product-page
    div.product
    .mp-single-product-offer-price__value
    .price {
        font-size: 27px;
    }

    body.mp-single-product-page
    div.product.product-type-simple
    .mp-single-product-hero
    .summary
    form.cart
    .quantity {
        flex-basis: 96px;
        width: auto;
    }

    body.mp-single-product-page
    div.product.product-type-simple
    .mp-single-product-hero
    .summary
    form.cart
    .single_add_to_cart_button {
        flex: 1 1 auto;
        min-width: 0;
        width: auto;
        padding-right: 12px;
        padding-left: 12px;
        font-size: 14px;
    }
}
