/**
 * Product Cards — Leafy Market product / brand rails
 */

.product-cards__panel {
    position: relative;
}

.product-cards--bg-contain .product-cards__panel {
    padding: clamp(24px, 4vw, 40px);
    background: var(--white-97);
    border-radius: 28px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.product-cards--bg-full {
    background: var(--white-97);
}

.product-cards--bg-full .product-cards__panel {
    padding-block: 8px;
}

.product-cards__header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px 32px;
    margin-bottom: 28px;
}

.product-cards--align-center .product-cards__header {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.product-cards--align-left .product-cards__header {
    align-items: flex-start;
}

.product-cards__intro {
    min-width: 0;
    flex: 1 1 1;
}

.product-cards--align-left .product-cards__intro {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.product-cards--align-center .product-cards__intro {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.product-cards__eyebrow {
    margin: 0 0 10px;
}

.product-cards--align-left .product-cards__eyebrow {
    margin: 0 0 8px;
}

.product-cards__heading {
    margin: 0;
    color: var(--color-title);
    font-family: var(--entities-font);
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.product-cards--align-left .product-cards__heading {
    display: block;
    width: 100%;
    padding-bottom: 0;
    border-bottom: 0;
}

.product-cards--align-center .product-cards__heading {
    position: relative;
    padding-bottom: 0;
}

.product-cards--align-center .product-cards__heading::after {
    content: none;
}

.product-cards__description {
    margin-top: 12px;
    max-width: 42rem;
    color: var(--color-text-muted);
    font-size: 15px;
    line-height: 1.55;
}

.product-cards--align-left .product-cards__description {
    width: 100%;
    margin-top: 10px;
}

.product-cards__description p {
    margin: 0 0 0.6em;
}

.product-cards__description p:last-child {
    margin-bottom: 0;
}

.product-cards__header--has-filters {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
}

.product-cards--align-center .product-cards__header--has-filters {
    align-items: center;
}

.product-cards__header--has-filters .product-cards__intro {
    flex: 0 1 auto;
    width: 100%;
}

.product-cards__filters-wrap {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.product-cards__filters {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 8px 20px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0 0 2px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
}

.product-cards__filters::-webkit-scrollbar {
    display: none;
}

.product-cards--align-center .product-cards__filters {
    width: max-content;
    max-width: 100%;
    margin-inline: auto;
    justify-content: flex-start;
}

.product-cards__filter {
    flex: 0 0 auto;
    scroll-snap-align: start;
    white-space: nowrap;
    margin: 0;
    padding: 4px 0;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: var(--gray-40);
    font-family: var(--primary-font);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    cursor: pointer;
    transition: color var(--transition), border-color var(--transition);
}

.product-cards__filter:hover,
.product-cards__filter.is-active {
    color: var(--color-title);
    border-bottom-color: var(--color-primary);
}

.product-cards__grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-cards--cols-3 .product-cards__grid,
.product-cards--cols-4 .product-cards__grid,
.product-cards--cols-5 .product-cards__grid,
.product-cards--cols-6 .product-cards__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-cards__slider-wrap {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.product-cards__viewport {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    align-items: center;
    column-gap: 12px;
    width: 100%;
}

.product-cards__slider {
    position: relative;
    overflow: hidden;
    width: 100%;
    min-width: 0;
    grid-column: 2;
    grid-row: 1;
}

.product-cards__slider .swiper-wrapper {
    align-items: stretch;
}

.product-cards__slider .swiper-slide {
    height: auto;
    display: flex;
    box-sizing: border-box;
    overflow: visible;
}

.product-cards__slider .product-card {
    width: 100%;
    height: 100%;
}

.product-cards__nav {
    position: static;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    justify-self: center;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 999px;
    background: var(--white);
    color: var(--color-title);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    transform: none;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.product-cards__nav:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--white);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.product-cards__nav:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.product-cards__nav--prev {
    grid-column: 1;
    grid-row: 1;
}

.product-cards__nav--next {
    grid-column: 3;
    grid-row: 1;
}

.product-cards__nav.swiper-button-disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}

.product-cards__nav .rt-icon,
.product-cards__nav svg {
    width: 18px;
    height: 18px;
    pointer-events: none;
}

/* Swiper defaults .swiper-pagination to position:absolute — force it into normal flow below the slides. */
.product-cards__slider-wrap > .swiper-pagination.product-cards__pagination {
    position: static !important;
    inset: auto !important;
    bottom: auto !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    z-index: auto !important;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 2px 0 4px;
    width: 100%;
    height: auto;
}

.product-cards__slider-wrap > .swiper-pagination.product-cards__pagination .swiper-pagination-bullet {
    margin: 0 !important;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #d4d4d4;
    opacity: 1;
    transition: width 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}

.product-cards__slider-wrap > .swiper-pagination.product-cards__pagination .swiper-pagination-bullet:hover {
    background: #b0b0b0;
}

.product-cards__slider-wrap > .swiper-pagination.product-cards__pagination .swiper-pagination-bullet-active {
    width: 22px;
    background: var(--color-primary);
}

@media (max-width: 767px) {
    .product-cards__viewport {
        grid-template-columns: 36px minmax(0, 1fr) 36px;
        column-gap: 8px;
    }

    .product-cards__nav {
        width: 36px;
        height: 36px;
    }
}

.product-cards__empty {
    margin: 0;
    padding: 24px;
    color: var(--color-text-muted);
    text-align: center;
}

.product-cards__footer {
    margin-top: 24px;
    text-align: center;
}

.product-cards--align-left .product-cards__footer:not(.product-cards__footer--mobile) {
    text-align: left;
}

.product-cards__footer--mobile {
    display: none;
    text-align: center;
}

.product-cards__header-cta {
    flex: 0 0 auto;
    align-self: flex-start;
    padding-top: 4px;
}

/* -------------------------------------------------------------------------- */
/* Product card                                                               */
/* -------------------------------------------------------------------------- */

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 20px;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.product-card.is-filtered-out,
.product-cards .swiper-slide.is-filtered-out {
    display: none !important;
}

.product-card:hover {
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.1);
    z-index: 3;
}

.product-card__media {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    width: 100%;
    min-height: 0;
    overflow: hidden;
    background: var(--white-97);
    border-radius: 20px 20px 0 0;
}

.product-card__media::before {
    content: "";
    display: block;
    width: 100%;
    padding-bottom: 100%;
}

.product-card__in-cart {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: calc(100% - 64px);
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--color-primary, rgb(55, 178, 14));
    color: var(--white);
    font-family: var(--entities-font);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1;
    text-transform: uppercase;
    box-shadow: 0 4px 14px rgba(55, 178, 14, 0.28);
    pointer-events: none;
}

.product-card__in-cart[hidden] {
    display: none !important;
}

.product-card__in-cart .rt-icon,
.product-card__in-cart svg {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
}

.product-card__in-cart-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-card--hover .product-card__media {
    border-radius: 20px;
    flex: 1 1 auto;
}

.product-card__image-link {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
}

.product-card__image,
.product-card__media img {
    width: 100% !important;
    height: 100% !important;
    max-width: none;
    margin: 0 !important;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.product-card__image--placeholder,
.product-card__image.is-placeholder {
    display: block;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: linear-gradient(135deg, #f3f3f3, #e8e8e8);
    transform: none;
}

.product-card:hover .product-card__image.is-placeholder {
    transform: none;
}

.product-card:hover .product-card__image {
    transform: scale(1.04);
}

.product-cards__grid .product-card {
    height: 100%;
}

.product-card__body {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 14px 14px 18px;
    text-align: center;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    background: var(--white);
    border-radius: 0 0 20px 20px;
}

.product-card__title {
    margin: 0;
    min-width: 0;
    min-height: 2.7em;
    max-height: 2.7em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-family: var(--primary-font);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--color-title);
    overflow-wrap: anywhere;
    word-break: break-word;
}

.product-card__title a {
    color: inherit;
    text-decoration: none;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.product-card__title a:hover {
    color: var(--color-primary);
}

.product-card__price {
    margin: 0;
    min-width: 0;
    min-height: 1.2em;
    color: var(--color-primary);
    font-family: var(--entities-font);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.2;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
}

.product-card__price .price,
.product-card__price .woocommerce-Price-amount,
.product-card__price ins,
.product-card__price del,
.product-card__price bdi {
    white-space: normal;
}

.product-card__price del {
    color: var(--gray-50);
    font-weight: 600;
    margin-right: 6px;
}

.product-card__view {
    display: flex;
    justify-content: center;
    align-self: stretch;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin-block-start: auto;
    padding-inline: 16px;
}

.product-card__view .btn__icon {
    transition: transform 0.2s ease;
}

.product-card__view:hover .btn__icon {
    transform: translateX(3px);
}

.product-card__brand-badge {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 72px;
    padding: 4px;
    transition: opacity 0.2s ease;
}

.product-card--show:hover .product-card__brand-badge {
    opacity: 0;
}

.product-card__brand-logo {
    max-width: 64px;
    max-height: 32px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Shared actions rail */
.product-card__actions {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 6px 4px;
    list-style: none;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 999px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
    transform: translateY(4px);
}

.product-card:hover .product-card__actions,
.product-card:focus-within .product-card__actions {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.product-card__action {
    appearance: none;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: var(--color-title);
    border-radius: 999px;
    text-decoration: none;
    transition: background-color var(--transition), color var(--transition);
}

.product-card__action svg,
.product-card__action .rt-icon {
    pointer-events: none;
}

.product-card__action:hover {
    background: var(--white-95);
    color: var(--color-primary);
}

/* -------------------------------------------------------------------------- */
/* Show style — slide-up ATC bar + body dropdown                              */
/* -------------------------------------------------------------------------- */

.product-card--show .product-card__atc-bar {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    z-index: 2;
    flex: 0 0 auto;
    width: 100%;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
}

.product-card .added_to_cart {
    display: none !important;
}

.product-card__atc--cart {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 42px;
    margin: 0;
    padding: 0 12px;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: rgb(225, 74, 92);
    color: var(--white);
    font-family: var(--primary-font);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.product-card__atc--cart:hover {
    background: rgb(200, 60, 78);
    color: var(--white);
}

.product-card__atc--cart.loading {
    background: rgb(180, 55, 72);
    cursor: wait;
}

.product-card__atc--cart.added {
    background: var(--color-primary, rgb(55, 178, 14));
}

.product-card__atc--cart.is-error {
    background: #9b2c2c;
}

.product-card__atc--cart.added .product-card__atc-label {
    transform: none;
}

.product-card__atc--cart.added .product-card__atc-icon {
    transform: translateY(100%);
}

.product-card__atc--cart.loading .product-card__atc-label,
.product-card__atc--cart.loading .product-card__atc-icon {
    opacity: 0.55;
}

.product-card__atc-label,
.product-card__atc-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: inherit;
    transition: transform 0.25s ease, opacity 0.15s ease;
}

.product-card__atc-icon {
    position: absolute;
    inset: 0;
    transform: translateY(100%);
    pointer-events: none;
}

.product-card__atc--cart:hover .product-card__atc-label {
    transform: translateY(-100%);
}

.product-card__atc--cart:hover .product-card__atc-icon {
    transform: translateY(0);
}

.product-card__atc--cart .rt-icon,
.product-card__atc--cart svg {
    width: 20px;
    height: 20px;
    pointer-events: none;
}

.product-card--show .product-card__variation {
    width: 100%;
    min-height: 42px;
    flex: 0 0 auto;
}

.product-card--show .product-card__variation--empty {
    visibility: hidden;
    pointer-events: none;
}

.product-card--show .product-card__variation-select {
    display: block;
    width: 100%;
    min-height: 42px;
    padding: 10px 40px 10px 16px;
    border: 1px solid rgba(0, 0, 0, 0.14);
    border-radius: 999px;
    background-color: var(--white);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 14px;
    color: var(--color-title);
    font-family: var(--primary-font);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.product-card--show .product-card__variation-select:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.product-card--show .product-card__variation-select.is-attention {
    border-color: rgb(225, 74, 92);
    box-shadow: 0 0 0 3px rgba(225, 74, 92, 0.2);
    animation: product-card-variation-shake 0.45s ease;
}

.product-card--needs-variation .product-card__variation-select {
    border-color: rgb(225, 74, 92);
    box-shadow: 0 0 0 3px rgba(225, 74, 92, 0.2);
}

@keyframes product-card-variation-shake {
    0%,
    100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-4px);
    }
    75% {
        transform: translateX(4px);
    }
}

/* -------------------------------------------------------------------------- */
/* Hover style — dark info-alt overlay                                        */
/* -------------------------------------------------------------------------- */

.product-card--hover .product-card__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 38px;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.product-card--hover:hover .product-card__overlay,
.product-card--hover:focus-within .product-card__overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.product-card__overlay-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: 100%;
    max-width: 100%;
    text-align: center;
}

.product-card__overlay-title {
    color: var(--white);
    font-family: var(--entities-font);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none;
}

.product-card__overlay-title:hover {
    color: rgba(255, 255, 255, 0.85);
}

.product-card__price--overlay,
.product-card__price--overlay * {
    color: var(--white) !important;
    font-weight: 700;
}

.product-card__price--overlay {
    margin: 0;
    font-family: var(--entities-font);
    font-size: 15px;
    line-height: 1.2;
}

.product-card__price--overlay del {
    color: rgba(255, 255, 255, 0.55) !important;
    font-weight: 600;
    margin-right: 6px;
}

.product-card--hover .product-card__actions {
    top: 14px;
    right: 10px;
    gap: 8px;
    padding: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
}

.product-card--hover .product-card__action {
    color: rgba(255, 255, 255, 0.85);
}

.product-card--hover .product-card__action:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
}

.product-card--hover .product-card__variation {
    width: 100%;
}

.product-card--hover .product-card__variation-select {
    display: block;
    width: 100%;
    min-height: 40px;
    padding: 10px 40px 10px 16px;
    border: 0;
    border-radius: 999px;
    background-color: var(--white);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 14px;
    color: var(--color-title);
    font-family: var(--primary-font);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.product-card--hover .product-card__variation-select:focus {
    outline: 2px solid var(--white);
    outline-offset: 2px;
}

.product-card__atc--ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 52px;
    min-height: 40px;
    margin: 4px 0 0;
    padding: 8px 18px;
    border: 2px solid rgba(255, 255, 255, 0.95);
    border-radius: 4px;
    background: transparent;
    color: var(--white);
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.product-card__atc--ghost:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--white);
    color: var(--white);
}

.product-card__atc--ghost .rt-icon,
.product-card__atc--ghost svg {
    width: 20px;
    height: 20px;
    pointer-events: none;
}

@media (hover: none) {
    .product-card--show .product-card__atc-bar,
    .product-card--show .product-card__actions,
    .product-card--hover .product-card__overlay,
    .product-card--hover .product-card__actions {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
    }
}

/* -------------------------------------------------------------------------- */
/* Term / brand card                                                          */
/* -------------------------------------------------------------------------- */

.product-cards--style-terms .product-cards__slider .swiper-slide {
    min-width: 0;
}

.product-cards--grid.product-cards--style-terms:not(.is-slider-active) .product-cards__slider .swiper-slide {
    width: auto !important;
    align-self: stretch;
}

.product-term-card {
    width: 100%;
    height: 100%;
    min-width: 0;
}

.product-term-card__link {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    min-height: 0;
    padding: 18px;
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 20px;
    text-decoration: none;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.product-term-card__link:hover {
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.product-term-card__media {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
}

.product-term-card__image {
    max-width: 78%;
    max-height: 78%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.product-term-card__fallback {
    display: block;
    max-width: 100%;
    padding: 0 8px;
    color: var(--color-title);
    font-family: var(--entities-font);
    font-size: clamp(12px, 1.6vw, 14px);
    font-weight: 700;
    text-align: center;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

@media (min-width: 768px) {
    .product-cards--cols-2 .product-cards__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-cards--cols-3 .product-cards__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .product-cards--cols-4 .product-cards__grid,
    .product-cards--cols-5 .product-cards__grid,
    .product-cards--cols-6 .product-cards__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1100px) {
    .product-cards--cols-4 .product-cards__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .product-cards--cols-5 .product-cards__grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .product-cards--cols-6 .product-cards__grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

/* Grid mode on desktop: CSS grid, hide carousel chrome */
@media (min-width: 1024px) {
    .product-cards--grid:not(.is-slider-active) .product-cards__viewport {
        display: block;
    }

    .product-cards--grid:not(.is-slider-active) .product-cards__nav,
    .product-cards--grid:not(.is-slider-active) .product-cards__pagination {
        display: none;
    }

    .product-cards--grid:not(.is-slider-active) .product-cards__slider {
        overflow: visible;
    }

    .product-cards--grid:not(.is-slider-active) .product-cards__slider .swiper-wrapper {
        display: grid;
        gap: 16px;
        transform: none !important;
    }

    .product-cards--grid:not(.is-slider-active) .product-cards__slider .swiper-slide {
        width: auto !important;
        height: auto;
        margin: 0 !important;
    }

    .product-cards--grid.product-cards--cols-2:not(.is-slider-active) .swiper-wrapper {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-cards--grid.product-cards--cols-3:not(.is-slider-active) .swiper-wrapper {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .product-cards--grid.product-cards--cols-4:not(.is-slider-active) .swiper-wrapper {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .product-cards--grid.product-cards--cols-5:not(.is-slider-active) .swiper-wrapper {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .product-cards--grid.product-cards--cols-6:not(.is-slider-active) .swiper-wrapper {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

@media (max-width: 1023px) {
    .product-cards__filters {
        gap: 8px 16px;
        padding-inline: 2px;
    }

    .product-cards--align-left .product-cards__header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .product-cards--align-left .product-cards__intro {
        align-items: center;
        text-align: center;
    }

    .product-cards--align-left .product-cards__description {
        text-align: center;
        margin-inline: auto;
    }

    .product-cards--align-left .product-cards__header-cta {
        display: none;
    }

    .product-cards--align-left .product-cards__footer--mobile {
        display: flex;
        justify-content: center;
        margin-top: 20px;
    }

    .product-cards__filter {
        font-size: 13px;
    }

    .product-cards__viewport {
        grid-template-columns: 36px minmax(0, 1fr) 36px;
        column-gap: 8px;
    }

    .product-cards__nav {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 767px) {
    .product-cards--bg-contain .product-cards__panel {
        padding: 20px 16px;
        border-radius: 20px;
    }
}
