/*
|--------------------------------------------------------------------------
| Matec Super Store - Product Card
|--------------------------------------------------------------------------
*/

.mtc-product-card {
    position: relative;

    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 0;

    width: 100%;
    min-width: 0;
    height: 100%;
    min-height: 100%;
    padding: 0;
    overflow: hidden;

    border: 1px solid var(--mtc-color-border-subtle, rgba(0, 0, 0, 0.08));
    border-radius: var(--mtc-radius-lg, 18px);

    background: var(--mtc-color-card-bg, var(--mtc-color-surface, #fbf5eb));
    color: var(--mtc-color-text, #1f1f1f);

    box-shadow: var(--mtc-shadow-sm, 0 8px 24px rgba(0, 0, 0, 0.045));

    transition:
        transform var(--mtc-transition-fast, 160ms ease),
        box-shadow var(--mtc-transition-fast, 160ms ease),
        border-color var(--mtc-transition-fast, 160ms ease);
}

.mtc-product-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--mtc-shadow-md, 0 14px 32px rgba(0, 0, 0, 0.075));
}

.mtc-product-card *,
.mtc-product-card *::before,
.mtc-product-card *::after {
    box-sizing: border-box;
}

/*
|--------------------------------------------------------------------------
| Elementor / Equal Height Compatibility
|--------------------------------------------------------------------------
*/

.elementor-widget-matec_product_card,
.elementor-widget-matec_product_card .elementor-widget-container {
    width: 100%;
    height: 100%;
}

.e-loop-item,
.e-loop-item > .elementor-section,
.e-loop-item > .elementor,
.e-loop-item .elementor-widget-wrap {
    min-height: 100%;
}

.e-loop-item .elementor-widget-matec_product_card {
    align-self: stretch;
}

/*
|--------------------------------------------------------------------------
| Media / Gallery
|--------------------------------------------------------------------------
*/

.mtc-product-card__media {
    position: relative;

    width: 100%;
    min-width: 0;
    aspect-ratio: 1 / 1;
    overflow: hidden;

    background: var(--mtc-color-skeleton, #e9e0d0);
}

.mtc-product-card--ratio-1-1 .mtc-product-card__media {
    aspect-ratio: 1 / 1;
}

.mtc-product-card--ratio-4-5 .mtc-product-card__media {
    aspect-ratio: 4 / 5;
}

.mtc-product-card--ratio-3-4 .mtc-product-card__media {
    aspect-ratio: 3 / 4;
}

.mtc-product-card--ratio-16-9 .mtc-product-card__media {
    aspect-ratio: 16 / 9;
}

.mtc-product-card__media-link {
    position: relative;

    display: block;

    width: 100%;
    height: 100%;

    color: inherit;
    text-decoration: none;
}

.mtc-product-card__slide {
    position: absolute;
    inset: 0;

    opacity: 0;
    pointer-events: none;

    transition:
        opacity var(--mtc-transition-base, 220ms ease),
        transform var(--mtc-transition-base, 220ms ease);
}

.mtc-product-card__slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.mtc-product-card__slide[hidden] {
    display: block;
    opacity: 0;
    pointer-events: none;
}

.mtc-product-card__image,
.mtc-product-card__slide img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    transition:
        transform var(--mtc-transition-base, 220ms ease),
        opacity var(--mtc-transition-base, 220ms ease);
}

.mtc-product-card:hover .mtc-product-card__image,
.mtc-product-card:hover .mtc-product-card__slide img {
    transform: scale(1.035);
}

.mtc-product-card__image-placeholder {
    width: 100%;
    height: 100%;
    background:
        linear-gradient(
            135deg,
            var(--mtc-color-skeleton, #eee9df),
            var(--mtc-color-surface-muted, #f8f3ea)
        );
}

/*
|--------------------------------------------------------------------------
| Favorite Button
|--------------------------------------------------------------------------
*/

.mtc-product-card__favorite {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 8;

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

    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    padding: 0;

    border: 1px solid var(--mtc-color-border-subtle, rgba(0, 0, 0, 0.12));
    border-radius: 999px;

    appearance: none;
    -webkit-appearance: none;

    background: color-mix(in srgb, var(--mtc-color-surface, #fff) 92%, transparent);
    color: var(--mtc-color-text-soft, #5d715f);

    box-shadow: var(--mtc-shadow-sm, 0 8px 18px rgba(0, 0, 0, 0.08));
    backdrop-filter: blur(8px);

    cursor: pointer;

    transition:
        transform var(--mtc-transition-fast, 160ms ease),
        background-color var(--mtc-transition-fast, 160ms ease),
        color var(--mtc-transition-fast, 160ms ease),
        border-color var(--mtc-transition-fast, 160ms ease);
}

.mtc-product-card__favorite:hover {
    transform: translateY(-1px) scale(1.04);
    background: var(--mtc-color-surface, #fff);
    color: var(--mtc-color-danger, #ef4444);
}

.mtc-product-card__favorite:focus {
    outline: none;
}

.mtc-product-card__favorite:focus-visible {
    outline: 2px solid var(--mtc-color-focus, #7aa7ff);
    outline-offset: 2px;
}

.mtc-product-card__favorite-icon {
    display: block;
    width: 20px;
    height: 20px;
    color: currentColor;
}

.mtc-product-card__favorite-icon--full {
    display: none;
    fill: currentColor;
}

.mtc-product-card__favorite-icon--empty {
    display: block;
    fill: none;
    stroke: currentColor;
}

.mtc-product-card__favorite.is-active,
.mtc-product-card__favorite[aria-pressed="true"] {
    color: var(--mtc-color-danger, #ef4444);
    border-color: color-mix(in srgb, var(--mtc-color-danger, #ef4444) 32%, transparent);
}

.mtc-product-card__favorite.is-active .mtc-product-card__favorite-icon--empty,
.mtc-product-card__favorite[aria-pressed="true"] .mtc-product-card__favorite-icon--empty {
    display: none;
}

.mtc-product-card__favorite.is-active .mtc-product-card__favorite-icon--full,
.mtc-product-card__favorite[aria-pressed="true"] .mtc-product-card__favorite-icon--full {
    display: block;
}

/*
|--------------------------------------------------------------------------
| Gallery Controls
|--------------------------------------------------------------------------
*/

.mtc-product-card__gallery-button {
    position: absolute;
    top: 50%;
    z-index: 7;

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

    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
    padding: 0;

    border: 1px solid var(--mtc-color-border-subtle, rgba(0, 0, 0, 0.08));
    border-radius: 999px;

    background: color-mix(in srgb, var(--mtc-color-surface, #fff) 90%, transparent) !important;
    color: var(--mtc-color-primary, #5d715f) !important;

    box-shadow: var(--mtc-shadow-sm, 0 8px 18px rgba(0, 0, 0, 0.08));
    backdrop-filter: blur(8px);

    transform: translateY(-50%);

    cursor: pointer;

    transition:
        transform var(--mtc-transition-fast, 160ms ease),
        background-color var(--mtc-transition-fast, 160ms ease),
        color var(--mtc-transition-fast, 160ms ease),
        opacity var(--mtc-transition-fast, 160ms ease);
}

.mtc-product-card__gallery-button:hover {
    background: var(--mtc-color-primary, #5d715f) !important;
    color: var(--mtc-color-text-inverse, #fff) !important;
    transform: translateY(-50%) !important;
}

.mtc-product-card__gallery-button--prev {
    left: 10px;
}

.mtc-product-card__gallery-button--next {
    right: 10px;
}

.mtc-product-card__gallery-button svg {
    width: 18px;
    height: 18px;
}

/*
|--------------------------------------------------------------------------
| Badges
|--------------------------------------------------------------------------
*/

.mtc-product-card__badges {
    position: absolute;
    left: 12px;
    bottom: 12px;
    z-index: 6;

    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.mtc-product-card__badges .mtc-badge {
    min-height: 24px;
    padding: 5px 10px;

    border-radius: 999px;

    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

.mtc-badge--sale {
    background: var(--mtc-color-sale-soft, #fff2c8);
    color: var(--mtc-color-sale, #c79700);
}

/*
|--------------------------------------------------------------------------
| Content / Panels / Equal Height
|--------------------------------------------------------------------------
| Objetivo:
| - Todos los panels ocupan el mismo alto disponible.
| - El body de cada panel ocupa 100%.
| - Los hijos se distribuyen verticalmente con space-evenly.
|--------------------------------------------------------------------------
*/

.mtc-product-card__content {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);

    width: 100%;
    min-width: 0;
    min-height: 0;
    height: 100%;
}

.mtc-product-card__panels {
    display: grid;

    width: 100%;
    min-width: 0;
    min-height: 260px;
    height: 100%;

    /*
    | Esta es la altura base del área de contenido bajo tabs.
    | Subila o bajala según el diseño final.
    */
    grid-template-rows: minmax(260px, 1fr);
}

.mtc-product-card__panel {
    grid-area: 1 / 1;

    display: none;

    width: 100%;
    min-width: 0;
    min-height: 260px;
    height: 100%;
}

.mtc-product-card__panel.is-active {
    display: grid;
    grid-template-rows: minmax(0, 1fr);

    width: 100%;
    min-width: 0;
    min-height: 260px;
    height: 100%;
}

.mtc-product-card__body {
    display: grid;

    width: 100%;
    min-width: 0;
    min-height: 260px;
    height: 100%;

    padding: 14px 16px 16px;

    /*
    | Space-evenly vertical real.
    | Reparte todos los hijos dentro del alto disponible.
    */
    align-content: space-between;
    justify-content: stretch;
    align-items: center;

    row-gap: 8px;
}

/*
| En el panel main NO usamos grid-template-rows fijas.
| Si lo usamos, rompe el space-evenly natural.
*/
.mtc-product-card__panel[data-mtc-product-panel="main"].is-active .mtc-product-card__body {
    grid-template-rows: none;
}

/*
| Compra como bloque normal dentro del reparto vertical.
| No la fuerces abajo si querés space-evenly.
*/
.mtc-product-card__purchase {
    width: 100%;
    align-self: center;
    margin-top: 0;
}

/*
| Paneles informativos: misma altura, contenido centrado y distribuido.
*/
.mtc-product-card__panel[data-mtc-product-panel="description"].is-active .mtc-product-card__body,
.mtc-product-card__panel[data-mtc-product-panel="ingredients"].is-active .mtc-product-card__body,
.mtc-product-card__panel[data-mtc-product-panel="benefits"].is-active .mtc-product-card__body,
.mtc-product-card__panel[data-mtc-product-panel="offer"].is-active .mtc-product-card__body {
    align-content: space-evenly;
    align-items: center;
}

/*
|--------------------------------------------------------------------------
| Tabs
|--------------------------------------------------------------------------
*/

.mtc-product-card__tabs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: center;
    gap: 8px;

    padding: 10px 12px;

    border-bottom: 1px solid var(--mtc-color-border-subtle, rgba(0, 0, 0, 0.08));
    background: var(--mtc-color-surface-muted, #f6efe3);
}

.mtc-product-card__tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-width: 0;
    min-height: 38px;
    padding: 0;

    border: 1px solid transparent;
    border-radius: 999px;

    appearance: none;
    -webkit-appearance: none;

    background: transparent;
    color: var(--mtc-color-text-soft, #5d715f);

    font-family: var(--mtc-font-family-base, inherit);
    line-height: 1;

    cursor: pointer;

    transition:
        background-color var(--mtc-transition-fast, 160ms ease),
        color var(--mtc-transition-fast, 160ms ease),
        border-color var(--mtc-transition-fast, 160ms ease),
        transform var(--mtc-transition-fast, 160ms ease);
}

.mtc-product-card__tab:hover,
.mtc-product-card__tab.is-active {
    background: var(--mtc-color-surface, #fff);
    color: var(--mtc-color-primary, #5d715f);
    border-color: var(--mtc-color-border-subtle, rgba(0, 0, 0, 0.12));
}

.mtc-product-card__tab:hover {
    transform: translateY(-1px);
}

.mtc-product-card__tab:focus {
    outline: none;
}

.mtc-product-card__tab:focus-visible {
    outline: 2px solid var(--mtc-color-focus, #7aa7ff);
    outline-offset: 2px;
}

.mtc-product-card__tab-icon {
    display: block;

    width: 22px;
    height: 22px;
    max-width: 22px;
    max-height: 22px;

    color: currentColor;
}

.mtc-product-card__tab-icon path,
.mtc-product-card__tab-icon polygon,
.mtc-product-card__tab-icon .cls-1 {
    fill: currentColor;
    stroke: none;
}

.mtc-product-card__tab-icon[fill="none"] path,
.mtc-product-card__tab svg[fill="none"] path {
    fill: none;
    stroke: currentColor;
}

.mtc-product-card__tab--sale {
    color: var(--mtc-color-sale, #c79700);
}

.mtc-product-card__tab--sale:hover,
.mtc-product-card__tab--sale.is-active {
    background: var(--mtc-color-sale-soft, #fff2c8);
    color: var(--mtc-color-sale, #c79700);
    border-color: color-mix(in srgb, var(--mtc-color-sale, #c79700) 24%, transparent);
}

/*
|--------------------------------------------------------------------------
| Product Card - centered tabs
|--------------------------------------------------------------------------
*/

.mtc-product-card__tabs.mtc-product-card__tabs--icons {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    gap: 12px;

    width: 100%;
    padding: 10px 12px;

    border-bottom: 1px solid var(--mtc-color-border-subtle, rgba(0, 0, 0, 0.08));
    background: var(--mtc-color-surface-muted, #f6efe3);
}

.mtc-product-card__tabs.mtc-product-card__tabs--icons .mtc-product-card__tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 44px;

    width: 44px;
    min-width: 44px;
    height: 38px;
    min-height: 38px;
    padding: 0;

    border-radius: 999px;
}

.mtc-product-card__tabs.mtc-product-card__tabs--icons .mtc-product-card__tab-icon {
    display: block;
    width: 22px;
    height: 22px;
    max-width: 22px;
    max-height: 22px;
}

/*
|--------------------------------------------------------------------------
| Product Card - equal panel height + vertical space-evenly
|--------------------------------------------------------------------------
*/

.mtc-product-card {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);

    height: 100%;
    min-height: 100%;
}

.mtc-product-card__content {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);

    height: 100%;
    min-height: 0;
}

.mtc-product-card__panels {
    display: grid;
    grid-template-rows: minmax(270px, 1fr);

    height: 100%;
    min-height: 270px;
}

.mtc-product-card__panel {
    grid-area: 1 / 1;

    display: none;

    height: 100%;
    min-height: 270px;
}

.mtc-product-card__panel.is-active {
    display: grid;
    grid-template-rows: minmax(0, 1fr);

    height: 100%;
    min-height: 270px;
}

/*
| Este es el punto clave:
| reparte categoría, título, tags, rating y compra en todo el alto.
*/
.mtc-product-card__body {
    display: grid;

    width: 100%;
    min-width: 0;

    height: 100%;
    min-height: 270px;

    padding: 14px 16px 16px;

    align-content: space-evenly;
    align-items: center;
    justify-items: stretch;

    row-gap: 8px;
}

/*
| Anulamos filas fijas anteriores.
| Si quedan grid-template-rows auto auto 1fr auto, rompe el space-evenly.
*/
.mtc-product-card__panel[data-mtc-product-panel="main"].is-active .mtc-product-card__body {
    grid-template-rows: none;
}

/*
| Que cada bloque use el ancho completo, pero se distribuya verticalmente.
*/
.mtc-product-card__category,
.mtc-product-card__title,
.mtc-product-card__tags,
.mtc-product-card__rating,
.mtc-product-card__purchase,
.mtc-product-card__section-title,
.mtc-product-card__description,
.mtc-product-card__benefits,
.mtc-product-card__body > a,
.mtc-product-card__body > .mtc-button,
.mtc-product-card__body > .mtc-badge {
    width: 100%;
}

/*
| La compra deja de ir forzada al fondo.
| Ahora participa del reparto space-evenly.
*/
.mtc-product-card__purchase {
    align-self: center;
    margin-top: 0;
}

/*
|--------------------------------------------------------------------------
| Dynamic add cart inside centered body
|--------------------------------------------------------------------------
*/

.mtc-product-card .mtc-dynamic-add-cart {
    width: 100%;
}

.mtc-product-card .mtc-dynamic-add-cart__actions {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    align-items: end;
    gap: 8px;

    width: 100%;
}

/*
|--------------------------------------------------------------------------
| Optional: center text blocks visually but keep commercial hierarchy
|--------------------------------------------------------------------------
*/

.mtc-product-card__category,
.mtc-product-card__title,
.mtc-product-card__rating {
    text-align: left;
}

.mtc-product-card__tags {
    justify-content: flex-start;
}

/*
|--------------------------------------------------------------------------
| Mobile
|--------------------------------------------------------------------------
*/

@media (max-width: 768px) {
    .mtc-product-card {
        height: auto;
        min-height: 0;
    }

    .mtc-product-card__content,
    .mtc-product-card__panels,
    .mtc-product-card__panel,
    .mtc-product-card__panel.is-active,
    .mtc-product-card__body {
        height: auto;
    }

    .mtc-product-card__panels,
    .mtc-product-card__panel,
    .mtc-product-card__panel.is-active,
    .mtc-product-card__body {
        min-height: 250px;
    }

    .mtc-product-card__body {
        align-content: space-evenly;
        align-items: center;
    }

    .mtc-product-card__tabs.mtc-product-card__tabs--icons {
        gap: 8px;
    }

    .mtc-product-card__tabs.mtc-product-card__tabs--icons .mtc-product-card__tab {
        flex-basis: 40px;
        width: 40px;
        min-width: 40px;
        height: 36px;
        min-height: 36px;
    }
}

/*
|--------------------------------------------------------------------------
| Product Info
|--------------------------------------------------------------------------
*/

.mtc-product-card__category {
    display: block;

    width: 100%;

    color: var(--mtc-color-text-muted, #b7b1a7);

    font-size: 14px;
    font-weight: var(--mtc-font-weight-semibold, 600);
    line-height: 1.15;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.mtc-product-card__title {
    text-transform: uppercase;
    width: 100%;
    margin: 0;

    color: var(--mtc-color-heading, #526654);

    font-family: var(--mtc-font-family-heading, inherit);
    font-size: 18px;
    font-weight: var(--mtc-font-weight-bold, 700);
    line-height: 1.18;
}

.mtc-product-card__title a {
    color: inherit;
    text-decoration: none;
}

.mtc-product-card__title a:hover {
    color: var(--mtc-color-link-hover, var(--mtc-color-primary, #5d715f));
}

.mtc-product-card__section-title {
    width: 100%;
    margin: 0;

    color: var(--mtc-color-heading, #526654);

    font-family: var(--mtc-font-family-heading, inherit);
    font-size: 15px;
    font-weight: var(--mtc-font-weight-bold, 700);
    line-height: 1.2;
}

.mtc-product-card__description {
    width: 100%;
    margin: 0;

    color: var(--mtc-color-text-soft, #657066);

    font-size: var(--mtc-font-size-sm, 13px);
    line-height: 1.45;
}

/*
|--------------------------------------------------------------------------
| Product Tags
|--------------------------------------------------------------------------
*/

.mtc-product-card__tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;

    width: 100%;
    margin: 0;
}

.mtc-product-card .mtc-product-card__tags a.mtc-product-card__tag,
.mtc-product-card .mtc-product-card__tags a.mtc-product-card__tag:link,
.mtc-product-card .mtc-product-card__tags a.mtc-product-card__tag:visited {
    --mtc-product-tag-color: var(--mtc-color-secondary, var(--mtc-secondary, #8a704c));
    --mtc-product-tag-text-color: var(--mtc-color-on-secondary, #fff);

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

    width: fit-content;
    max-width: 100%;
    min-height: 23px;
    padding: 5px 9px;

    border: 1px solid var(--mtc-product-tag-color);
    border-radius: 999px;

    background-color: var(--mtc-product-tag-color);
    background-image: none;
    color: var(--mtc-product-tag-text-color);

    font-size: 9px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    text-decoration: none;

    box-shadow: none;
    cursor: pointer;

    transition:
        background-color var(--mtc-transition-fast, 160ms ease),
        border-color var(--mtc-transition-fast, 160ms ease),
        color var(--mtc-transition-fast, 160ms ease),
        transform var(--mtc-transition-fast, 160ms ease);
}

.mtc-product-card .mtc-product-card__tags a.mtc-product-card__tag:hover,
.mtc-product-card .mtc-product-card__tags a.mtc-product-card__tag:focus,
.mtc-product-card .mtc-product-card__tags a.mtc-product-card__tag:focus-visible {
    background-color: transparent;
    background-image: none;
    border-color: var(--mtc-product-tag-color);
    color: var(--mtc-product-tag-color);
    text-decoration: none;
    transform: translateY(-1px);
}

.mtc-product-card .mtc-product-card__tags a.mtc-product-card__tag:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--mtc-product-tag-color) 35%, transparent);
    outline-offset: 2px;
}

/*
|--------------------------------------------------------------------------
| Product Rating
|--------------------------------------------------------------------------
*/

.mtc-product-card__rating {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 6px;

    width: 100%;
    min-width: 0;

    color: var(--mtc-color-warning, #d59b00);

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

.mtc-product-card__rating-stars {
    position: relative;

    display: inline-block;

    width: 72px;
    min-width: 72px;
    height: 14px;

    overflow: hidden;

    color: var(--mtc-color-warning, #d59b00);
    line-height: 14px;
    letter-spacing: 1px;
}

.mtc-product-card__rating-stars-base,
.mtc-product-card__rating-stars-fill {
    display: block;

    font-size: 13px;
    line-height: 14px;
    letter-spacing: 1px;
    white-space: nowrap;
}

.mtc-product-card__rating-stars-base {
    color: color-mix(in srgb, var(--mtc-color-warning, #d59b00) 24%, transparent);
}

.mtc-product-card__rating-stars-fill {
    position: absolute;
    top: 0;
    left: 0;

    width: 0;
    overflow: hidden;

    color: var(--mtc-color-warning, #d59b00);
}

.mtc-product-card__rating-score {
    color: var(--mtc-color-text, #1f1f1f);
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

.mtc-product-card__rating-count {
    color: var(--mtc-color-text-soft, #657066);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.mtc-product-card__rating .star-rating {
    float: none;
    margin: 0;
}

/*
|--------------------------------------------------------------------------
| Dynamic Add Cart
|--------------------------------------------------------------------------
*/

.mtc-dynamic-add-cart {
    display: grid;
    gap: 6px;

    width: 100%;
    min-width: 0;
}

.mtc-dynamic-add-cart__sale {
    display: flex;
}

.mtc-dynamic-add-cart__price {
    width: 100%;
    margin: 0;

    color: var(--mtc-color-text, #1f1f1f);

    font-size: 14px;
    font-weight: var(--mtc-font-weight-bold, 700);
    line-height: 1.2;
}

.mtc-dynamic-add-cart__price del {
    margin-right: 4px;
    color: var(--mtc-color-text-muted, #a9aaa5);
    font-weight: 400;
}

.mtc-dynamic-add-cart__price ins {
    color: var(--mtc-color-buy, var(--mtc-color-sale, #c79700));
    text-decoration: none;
}

.mtc-dynamic-add-cart__price .amount {
    color: inherit;
}

.mtc-dynamic-add-cart.is-on-sale .mtc-dynamic-add-cart__price ins {
    color: var(--mtc-color-sale, #c79700);
    text-decoration: none;
}

.mtc-dynamic-add-cart__form {
    display: grid;
    gap: 6px;

    width: 100%;
    min-width: 0;
}

.mtc-dynamic-add-cart__fallback,
.mtc-dynamic-add-cart > .mtc-btn {
    width: 100%;
}

/*
|--------------------------------------------------------------------------
| Variation Pills
|--------------------------------------------------------------------------
*/

.mtc-dynamic-add-cart__variation-group {
    display: grid;
    gap: 6px;

    min-width: 0;
}

.mtc-dynamic-add-cart__variation-pills {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;

    width: 100%;
}

.mtc-dynamic-add-cart__variation-pill {
    position: relative;

    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;

    min-width: 0;
    min-height: 38px;
    padding: 7px 12px;

    border: 1px solid var(--mtc-color-border, rgba(0, 0, 0, 0.12));
    border-radius: var(--mtc-radius-pill, 999px);

    appearance: none;
    -webkit-appearance: none;

    background: var(--mtc-color-surface, #fff);
    color: var(--mtc-color-text, #1f1f1f);

    font-family: var(--mtc-font-family-base, inherit);
    line-height: 1.1;

    cursor: pointer;

    transition:
        background-color var(--mtc-transition-fast, 160ms ease),
        border-color var(--mtc-transition-fast, 160ms ease),
        color var(--mtc-transition-fast, 160ms ease),
        opacity var(--mtc-transition-fast, 160ms ease),
        transform var(--mtc-transition-fast, 160ms ease),
        box-shadow var(--mtc-transition-fast, 160ms ease);
}

.mtc-dynamic-add-cart__variation-pill:hover:not(:disabled) {
    border-color: var(--mtc-color-primary, #5d715f);
    background: var(--mtc-color-primary-soft, #eef4ef);
    color: var(--mtc-color-primary, #5d715f);
    transform: translateY(-1px);
}

.mtc-dynamic-add-cart__variation-pill.is-active,
.mtc-dynamic-add-cart__variation-pill.is-selected,
.mtc-dynamic-add-cart__variation-pill[aria-pressed="true"] {
    border-color: var(--mtc-color-primary, #5d715f);
    background: var(--mtc-color-primary, #5d715f);
    color: var(--mtc-color-text-inverse, #fff);
    box-shadow: var(--mtc-shadow-brand, 0 8px 20px rgba(93, 113, 95, 0.22));
}

.mtc-dynamic-add-cart__variation-pill:focus {
    outline: none;
}

.mtc-dynamic-add-cart__variation-pill:focus-visible {
    outline: 2px solid var(--mtc-color-focus, #7aa7ff);
    outline-offset: 3px;
}

.mtc-dynamic-add-cart__variation-pill-label {
    font-size: 12px;
    font-weight: var(--mtc-font-weight-bold, 700);
    line-height: 1;
}

.mtc-dynamic-add-cart__variation-pill-state {
    font-size: 9px;
    font-weight: var(--mtc-font-weight-semibold, 600);
    line-height: 1;
    opacity: 0.78;
}

.mtc-dynamic-add-cart__variation-pill.is-possible::before,
.mtc-dynamic-add-cart__variation-pill.is-impossible::before {
    content: "";
    position: absolute;
    top: 6px;
    right: 7px;

    width: 6px;
    height: 6px;

    border-radius: 999px;
}

.mtc-dynamic-add-cart__variation-pill.is-possible::before {
    background: var(--mtc-color-success, #22c55e);
}

.mtc-dynamic-add-cart__variation-pill.is-impossible {
    opacity: 0.45;
    cursor: not-allowed;
    filter: grayscale(0.35);
}

.mtc-dynamic-add-cart__variation-pill.is-impossible::before {
    background: var(--mtc-color-danger, #ef4444);
}

/*
|--------------------------------------------------------------------------
| Add Cart Actions
|--------------------------------------------------------------------------
*/

.mtc-dynamic-add-cart__actions {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    align-items: end;
    gap: 8px;

    width: 100%;
    min-width: 0;
}

.mtc-dynamic-add-cart__quantity-field {
    display: grid;
    gap: 4px;

    width: 92px;
    min-width: 0;
}

.mtc-dynamic-add-cart__quantity-label,
.mtc-dynamic-add-cart__quantity-field .mtc-label {
    margin: 0;

    color: var(--mtc-color-text-soft, #657066);

    font-size: 10px;
    font-weight: var(--mtc-font-weight-regular, 400);
    line-height: 1.1;
}

.mtc-dynamic-add-cart__quantity-stepper {
    display: grid;
    grid-template-columns: 26px minmax(28px, 1fr) 26px;
    align-items: stretch;

    width: 100%;
    height: 36px;
    min-height: 36px;
    overflow: hidden;

    border: 1px solid var(--mtc-color-border, rgba(0, 0, 0, 0.14));
    border-radius: 999px;

    background: var(--mtc-color-surface, #fff);
}

.mtc-dynamic-add-cart__quantity-button,
button.mtc-dynamic-add-cart__quantity-button,
[type="button"].mtc-dynamic-add-cart__quantity-button {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 26px;
    height: 36px;
    min-width: 26px;
    min-height: 36px;

    padding: 0;
    margin: 0;

    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;

    appearance: none;
    -webkit-appearance: none;

    color: var(--mtc-color-text, #1f1f1f);

    font-family: var(--mtc-font-family-base, inherit);
    font-size: 15px;
    font-weight: 700;
    line-height: 1;

    text-align: center;
    vertical-align: middle;

    cursor: pointer;
    transform: none;

    transition:
        background-color var(--mtc-transition-fast, 160ms ease),
        color var(--mtc-transition-fast, 160ms ease),
        opacity var(--mtc-transition-fast, 160ms ease);
}

.mtc-dynamic-add-cart__quantity-button:hover:not(:disabled) {
    background: var(--mtc-color-surface-muted, #f7f2ea);
    color: var(--mtc-color-primary, #5d715f);
}

.mtc-dynamic-add-cart__quantity-button:disabled,
.mtc-dynamic-add-cart__quantity-button[aria-disabled="true"] {
    opacity: 0.3;
    cursor: not-allowed;
}

.mtc-dynamic-add-cart__quantity-button--decrease {
    padding-bottom: 2px;
}

.mtc-dynamic-add-cart__quantity-button--increase {
    padding-bottom: 1px;
}

.mtc-dynamic-add-cart__quantity {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-width: 0;
    height: 36px;
    min-height: 36px !important;
    max-height: 36px !important;
    padding: 0 !important;
    margin: 0;

    border: 0 !important;
    border-radius: 0 !important;

    appearance: textfield;
    -moz-appearance: textfield;

    background: transparent;
    box-shadow: none;
    color: var(--mtc-color-text, #1f1f1f);

    font-family: var(--mtc-font-family-base, inherit);
    font-size: 13px;
    font-weight: 800;
    line-height: 36px;
    text-align: center;
}

.mtc-dynamic-add-cart__quantity:focus {
    outline: none;
    box-shadow: none;
}

.mtc-dynamic-add-cart__quantity::-webkit-outer-spin-button,
.mtc-dynamic-add-cart__quantity::-webkit-inner-spin-button {
    margin: 0;
    appearance: none;
}

/*
|--------------------------------------------------------------------------
| Submit / Fallback
|--------------------------------------------------------------------------
*/

.mtc-dynamic-add-cart__submit,
button.mtc-dynamic-add-cart__submit,
[type="button"].mtc-dynamic-add-cart__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-width: 0;
    height: 36px;
    min-height: 36px;
    padding: 0 14px;

    border-radius: 999px;

    white-space: nowrap;
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;

    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

.mtc-dynamic-add-cart__submit.is-disabled,
.mtc-dynamic-add-cart__submit[aria-disabled="true"] {
    opacity: 0.62;
    cursor: not-allowed;
}

.mtc-dynamic-add-cart__submit.is-loading {
    opacity: 0.78;
    cursor: wait;
}

.mtc-dynamic-add-cart__submit.is-success {
    background: var(--mtc-color-success, #22c55e);
    color: var(--mtc-color-text-inverse, #fff);
}

.mtc-dynamic-add-cart__fallback,
.mtc-btn.mtc-dynamic-add-cart__fallback,
.mtc-dynamic-add-cart > .mtc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 38px;
    min-height: 38px;
    padding: 0 14px;

    border-radius: 999px;

    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
}

.mtc-dynamic-add-cart__status {
    min-height: 0;
    margin: 0;

    color: var(--mtc-color-text-soft, #657066);

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

/*
|--------------------------------------------------------------------------
| Stock Notification
|--------------------------------------------------------------------------
*/

.mtc-dynamic-add-cart__stock-notice {
    display: grid;
    gap: 7px;

    width: 100%;
    padding: 10px;

    border: 1px solid var(--mtc-color-border-subtle, rgba(0, 0, 0, 0.08));
    border-radius: var(--mtc-radius-md, 14px);

    background: var(--mtc-color-surface-muted, #f8f3ea);
}

.mtc-dynamic-add-cart__stock-badge {
    justify-self: start;
}

.mtc-dynamic-add-cart__stock-text {
    margin: 0;

    color: var(--mtc-color-text-soft, #657066);

    font-size: 12px;
    line-height: 1.35;
}

.mtc-dynamic-add-cart__notify-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px;

    width: 100%;
}

.mtc-dynamic-add-cart__notify-email {
    width: 100%;
    min-width: 0;
    height: 36px;
    min-height: 36px;
    padding: 0 11px;

    border: 1px solid var(--mtc-color-border, rgba(0, 0, 0, 0.14));
    border-radius: 999px;

    background: var(--mtc-color-surface, #fff);
    color: var(--mtc-color-text, #1f1f1f);

    font-size: 12px;
    line-height: 36px;
}

.mtc-dynamic-add-cart__notify-email:focus {
    outline: none;
    border-color: var(--mtc-color-primary, #5d715f);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--mtc-color-primary, #5d715f) 18%, transparent);
}

.mtc-dynamic-add-cart__notify-submit {
    height: 36px;
    min-height: 36px;
    padding: 0 13px;

    border-radius: 999px;

    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.mtc-dynamic-add-cart__notify-status {
    min-height: 0;
    margin: 0;

    color: var(--mtc-color-text-soft, #657066);

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

/*
|--------------------------------------------------------------------------
| Benefits
|--------------------------------------------------------------------------
*/

.mtc-product-card__benefits {
    display: grid;
    gap: 8px;

    width: 100%;
    padding: 0;
    margin: 0;

    list-style: none;
}

.mtc-product-card__benefits li {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 8px;
    align-items: start;

    color: var(--mtc-color-text-soft, #657066);

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

.mtc-product-card__benefit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 18px;
    height: 18px;

    border-radius: 999px;

    background: var(--mtc-color-success-soft, #dcfce7);
    color: var(--mtc-color-success, #22c55e);

    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

/*
|--------------------------------------------------------------------------
| WooCommerce Compatibility
|--------------------------------------------------------------------------
*/

.mtc-product-card .added_to_cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 38px;

    margin-top: 7px;
    padding: 0 14px;

    border: 1px solid var(--mtc-color-border, rgba(0, 0, 0, 0.14));
    border-radius: 999px;

    background: var(--mtc-color-button-light-bg, #fff);
    color: var(--mtc-color-button-light-text, #1f1f1f);

    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
}

/*
|--------------------------------------------------------------------------
| States
|--------------------------------------------------------------------------
*/

.mtc-product-card.is-out-of-stock {
    opacity: 1;
}

.mtc-product-card.is-out-of-stock .mtc-product-card__image,
.mtc-product-card.is-out-of-stock .mtc-product-card__slide img {
    filter: grayscale(0.6);
}

.mtc-product-card.is-out-of-stock .mtc-product-card__media::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;

    background: color-mix(in srgb, var(--mtc-color-surface, #fff) 18%, transparent);

    pointer-events: none;
}

/*
|--------------------------------------------------------------------------
| Compact / Horizontal Variants
|--------------------------------------------------------------------------
*/

.mtc-product-card--compact .mtc-product-card__panels,
.mtc-product-card--compact .mtc-product-card__panel,
.mtc-product-card--compact .mtc-product-card__panel.is-active,
.mtc-product-card--compact .mtc-product-card__body {
    min-height: 230px;
}

.mtc-product-card--compact .mtc-product-card__body {
    padding: 12px;
}

.mtc-product-card--compact .mtc-product-card__title {
    font-size: 14px;
}

.mtc-product-card--compact .mtc-product-card__tabs {
    padding: 8px;
}

.mtc-product-card--horizontal {
    grid-template-columns: 42% minmax(0, 1fr);
    grid-template-rows: 1fr;
}

.mtc-product-card--horizontal .mtc-product-card__media {
    height: 100%;
    aspect-ratio: auto;
}

.mtc-product-card--horizontal .mtc-product-card__content {
    min-height: 100%;
}

/*
|--------------------------------------------------------------------------
| Responsive
|--------------------------------------------------------------------------
*/

@media (max-width: 1024px) {
    .mtc-product-card__body {
        padding: 13px 14px 15px;
    }

    .mtc-product-card__title {
        font-size: 14px;
    }

    .mtc-dynamic-add-cart__actions {
        grid-template-columns: 88px minmax(0, 1fr);
    }

    .mtc-dynamic-add-cart__quantity-field {
        width: 88px;
    }
}

@media (max-width: 768px) {
    .mtc-product-card {
        height: auto;
        min-height: 0;
    }

    .mtc-product-card__content,
    .mtc-product-card__panels,
    .mtc-product-card__panel,
    .mtc-product-card__panel.is-active,
    .mtc-product-card__body {
        height: auto;
    }

    .mtc-product-card__panels,
    .mtc-product-card__panel,
    .mtc-product-card__panel.is-active,
    .mtc-product-card__body {
        min-height: 240px;
    }

    .mtc-product-card__body {
        align-content: space-evenly;
        align-items: center;
    }

    .mtc-product-card__purchase {
        align-self: center;
        margin-top: 0;
    }

    .mtc-product-card__tabs {
        padding: 8px;
        gap: 5px;
    }

    .mtc-product-card__tab {
        min-height: 36px;
    }

    .mtc-product-card__tab-icon {
        width: 20px;
        height: 20px;
    }

    .mtc-product-card--horizontal {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }

    .mtc-product-card--horizontal .mtc-product-card__media {
        aspect-ratio: 1 / 1;
    }
}

@media (max-width: 480px) {
    .mtc-product-card__panels,
    .mtc-product-card__panel,
    .mtc-product-card__panel.is-active,
    .mtc-product-card__body {
        min-height: 230px;
    }

    .mtc-product-card__body {
        row-gap: 7px;
        padding: 12px;
    }

    .mtc-product-card__title {
        font-size: 14px;
    }

    .mtc-product-card__favorite {
        width: 34px;
        height: 34px;
        min-width: 34px;
        min-height: 34px;
    }

    .mtc-product-card__favorite-icon {
        width: 18px;
        height: 18px;
    }

    .mtc-dynamic-add-cart__actions {
        grid-template-columns: 86px minmax(0, 1fr);
        gap: 7px;
    }

    .mtc-dynamic-add-cart__quantity-field {
        width: 86px;
    }

    .mtc-dynamic-add-cart__quantity-stepper {
        grid-template-columns: 25px minmax(26px, 1fr) 25px;
    }

    .mtc-dynamic-add-cart__quantity-button {
        width: 25px;
        min-width: 25px;
        font-size: 13px;
    }

    .mtc-dynamic-add-cart__submit,
    button.mtc-dynamic-add-cart__submit,
    [type="button"].mtc-dynamic-add-cart__submit {
        padding-inline: 10px;
        font-size: 11px;
    }

    .mtc-dynamic-add-cart__notify-form {
        grid-template-columns: 1fr;
    }

    .mtc-dynamic-add-cart__notify-submit {
        width: 100%;
    }
}