/* =========================================================
   MHinspeya Combodeal — Complete Look design
   ========================================================= */

:root {
    --mh-combo-purple: #6f42c1;
    --mh-combo-purple-soft: #f3eefc;
    --mh-combo-red: #d32f2f;
    --mh-combo-red-soft: #fde8ea;
    --mh-combo-green: #2e7d32;
    --mh-combo-green-btn: #3a9140;
    --mh-combo-green-btn-hover: #2e7d32;
    --mh-combo-text: #1a1a1a;
    --mh-combo-muted: #6b7280;
    --mh-combo-border: #e5e7eb;
    --mh-combo-bg: #ffffff;
    --mh-combo-card: #ffffff;
    --mh-combo-radius: 12px;
    --mh-combo-radius-sm: 10px;
    --mh-combo-option-selected: var(--mh-combo-option-selected-outline, #6f42c1);
}

/* Override admin design tokens when present */
.combo-wrapper {
    --mh-combo-purple: var(--mh-combo-accent-color, #6f42c1);
    --mh-combo-purple-soft: var(--mh-combo-accent-soft-color, #f3eefc);
    --mh-combo-red: var(--mh-combo-discount-text-color, #d32f2f);
    --mh-combo-green-btn: var(--mh-combo-button-background, #3a9140);
    --mh-combo-green: var(--mh-combo-save-info-color, #2e7d32);
    --mh-combo-option-selected: var(--mh-combo-option-selected-outline, var(--mh-combo-purple, #6f42c1));
    background: var(--mh-combo-section-background, var(--mh-combo-bg));
    border: 1px solid var(--mh-combo-card-border-color, var(--mh-combo-border));
    border-radius: var(--mh-combo-radius);
    padding: 24px;
    margin: 28px 0;
    box-sizing: border-box;
    clear: both;
    width: 100%;
    font-family: inherit;
    color: var(--mh-combo-text);
}

.combo-wrapper *,
.combo-wrapper *::before,
.combo-wrapper *::after {
    box-sizing: border-box;
}

/* ---------- Header ---------- */
.combo-wrapper .combo-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.combo-wrapper .combo-header-left {
    flex: 1 1 280px;
    min-width: 0;
}

.combo-wrapper .combo-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 6px;
}

.combo-wrapper .combo-title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--mh-combo-heading-color, var(--mh-combo-text));
}

.combo-wrapper .combo-main-discount {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--mh-combo-purple-soft, #efe8f8);
    color: var(--mh-combo-purple, #6f42c1);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.combo-wrapper .combo-subtitle {
    margin: 0;
    font-size: 14px;
    color: var(--mh-combo-muted);
    line-height: 1.45;
}

.combo-wrapper .combo-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.combo-wrapper .combo-timer.small,
.combo-wrapper #combo-timer-right {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 0;
    border-radius: 10px;
    background: var(--mh-combo-timer-background, #d32f2f);
    color: var(--mh-combo-timer-text-color, #ffffff);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    box-shadow: 0 1px 4px rgba(211, 47, 47, 0.35);
}

.combo-wrapper .combo-timer.small:empty {
    display: none;
}

.combo-wrapper .combo-timer-label {
    font-weight: 500;
    color: inherit;
    opacity: 0.92;
}

.combo-wrapper .combo-view-all {
    display: none; /* design focuses on the look; keep URL available if needed */
}

/* ---------- Body: products + summary ----------
   Desktop (>=1201): products | summary side-by-side
   iPad/tablet (<=1200): products on top, Your Look below (reference) */
.combo-wrapper .combo-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: stretch;
}

.combo-wrapper .combo-body > .combo-products-row {
    grid-column: 1;
    min-width: 0;
}

.combo-wrapper .combo-body > .combo-summary {
    grid-column: 1;
}

@media (min-width: 1201px) {
    .combo-wrapper .combo-body,
    .combo-wrapper.list-page .combo-body {
        grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
        gap: 18px;
    }

    .combo-wrapper .combo-body > .combo-products-row,
    .combo-wrapper.list-page .combo-body > .combo-products-row {
        grid-column: 1;
        align-items: stretch;
    }

    /* Main card sits outside dashed group — offset to match border+padding inset */
    .combo-wrapper .combo-products-row > .combo-item[data-role="main"],
    .combo-wrapper .combo-products-row.hyva > .combo-item[data-role="main"] {
        margin-top: 12px;
        margin-bottom: 12px;
    }

    .combo-wrapper .combo-body > .combo-summary,
    .combo-wrapper.list-page .combo-body > .combo-summary {
        grid-column: 2;
        display: flex;
        flex-direction: column;
        grid-template-columns: none;
        grid-template-areas: none;
        align-self: stretch;
    }

    .combo-wrapper .combo-summary-toggle,
    .combo-wrapper .combo-summary-details,
    .combo-wrapper .combo-summary-checkout {
        grid-area: auto;
    }

    .combo-wrapper .combo-summary-checkout {
        margin-top: auto;
        padding-top: 8px;
    }
}

.combo-wrapper .combo-products-row,
.combo-wrapper .combo-products-row.hyva {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0;
    min-width: 0;
    width: 100%;
    overflow: visible;
    padding-bottom: 0;
}

/* Children group — dashed border on desktop only (reference).
   iPad/mobile flatten via display:contents in media queries. */
.combo-wrapper .combo-children-wrapper,
.combo-wrapper .combo-products-row.hyva .combo-children-wrapper,
.combo-wrapper .combo-products-row.hyva .combo-children-wrapper.child-1,
.combo-wrapper .combo-products-row.hyva .combo-children-wrapper.child-2,
.combo-wrapper .combo-products-row.hyva .combo-children-wrapper.child-3,
.combo-wrapper .combo-products-row.hyva .combo-children-wrapper.child-4,
.combo-wrapper .combo-products-row.hyva .combo-children-wrapper.child-5 {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0;
    position: relative;
    flex: 3 1 0;
    min-width: 0;
    max-width: none;
    width: auto;
    margin: 0;
    padding: 10px;
    border: 2px dashed var(--mh-combo-group-border-color, #c4b5e0);
    border-radius: 12px;
    background: transparent;
    box-sizing: border-box;
}

.combo-wrapper .combo-children-wrapper.child-1,
.combo-wrapper .combo-products-row.hyva .combo-children-wrapper.child-1 {
    flex-grow: 1;
}

.combo-wrapper .combo-children-wrapper.child-2,
.combo-wrapper .combo-products-row.hyva .combo-children-wrapper.child-2 {
    flex-grow: 2;
}

.combo-wrapper .combo-children-wrapper.child-3,
.combo-wrapper .combo-products-row.hyva .combo-children-wrapper.child-3 {
    flex-grow: 3;
}

.combo-wrapper .combo-children-wrapper.child-4,
.combo-wrapper .combo-products-row.hyva .combo-children-wrapper.child-4 {
    flex-grow: 4;
}

.combo-wrapper .combo-children-wrapper.child-5,
.combo-wrapper .combo-products-row.hyva .combo-children-wrapper.child-5 {
    flex-grow: 5;
}

.combo-wrapper .combo-border-overlay {
    display: none !important;
}

/* Legacy "=" between products and summary. Must stay hidden: it is a
   third child of the 2-column .combo-body grid, and display:flex breaks
   products | summary into a broken auto-placement layout in some themes. */
.combo-wrapper .combo-equals,
.combo-wrapper .combo-equals[style*="flex"],
.combo-wrapper .combo-equals.is-visible,
.combo-wrapper .combo-body > .combo-equals {
    display: none !important;
}

/* + icons belong between product cards only — never in summary / checkout */
.combo-wrapper .combo-summary::before,
.combo-wrapper .combo-summary::after,
.combo-wrapper .combo-summary-checkout::before,
.combo-wrapper .combo-summary-checkout::after {
    content: none !important;
    display: none !important;
}

/* ---------- Product card ---------- */
.combo-wrapper .combo-item,
.combo-wrapper .combo-products-row > .combo-item,
.combo-wrapper .combo-products-row > .combo-children-wrapper .combo-item,
.combo-wrapper .combo-products-row.hyva .combo-item {
    position: relative;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
    width: 100%;
    min-height: 0;
    height: auto;
    align-self: stretch;
    background: var(--mh-combo-card-background, var(--mh-combo-card));
    border: 1px solid var(--mh-combo-card-border-color, var(--mh-combo-border)) !important;
    border-radius: var(--mh-combo-radius-sm);
    box-shadow: none;
    padding: 12px 12px 14px;
    text-align: left;
    transition: opacity 0.2s ease;
    box-sizing: border-box;
    gap: 8px;
}

.combo-wrapper .combo-item > .combo-card-top {
    flex: 0 0 auto;
}

.combo-wrapper .combo-item > .combo-media {
    flex: 0 0 auto;
}

.combo-wrapper .combo-item > .combo-title-block {
    flex: 0 0 52px;
    height: 52px !important;
    max-height: 52px !important;
    min-height: 52px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
}

.combo-wrapper .combo-item > .combo-item-info {
    flex: 1 1 auto;
    display: flex !important;
    flex-direction: column;
    min-height: 0;
    width: 100%;
}

.combo-wrapper .combo-item[data-role="child"]:not(.active) {
    opacity: 0.45;
}

/* Purple + between cards (desktop/tablet horizontal — products row only) */
.combo-wrapper .combo-products-row > .combo-item[data-role="main"]:not(:last-child)::after,
.combo-wrapper .combo-products-row > .combo-children-wrapper .combo-item[data-role="child"]::before,
.combo-wrapper .combo-products-row > .combo-children-wrapper .combo-item:nth-child(2)::before,
.combo-wrapper .combo-products-row > .combo-children-wrapper > .combo-border-overlay + .combo-item::before {
    content: '+';
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: calc(12px + 26px + 8px + 105px);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--mh-combo-purple);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    z-index: 3;
    pointer-events: none;
    transform: translateY(-50%);
    box-shadow: 0 0 0 3px var(--mh-combo-bg);
}

.combo-wrapper .combo-products-row > .combo-item[data-role="main"]:not(:last-child)::after {
    right: -14px;
    left: auto;
}

.combo-wrapper .combo-children-wrapper .combo-item[data-role="child"] + .combo-item[data-role="child"] {
    margin-left: 28px;
}

.combo-wrapper .combo-products-row > .combo-children-wrapper .combo-item[data-role="child"]::before {
    left: -14px;
    right: auto;
}

/* First child already has + from main::after — hide duplicate */
.combo-wrapper .combo-children-wrapper > .combo-border-overlay + .combo-item::before,
.combo-wrapper .combo-products-row > .combo-children-wrapper > .combo-border-overlay + .combo-item::before,
.combo-wrapper .combo-children-wrapper > .combo-item:first-of-type::before {
    display: none !important;
}

/* Checkbox on child products — desktop: overlay image; mobile: under index (see ≤767) */
.combo-wrapper .combo-card-top-left .combo-check-label {
    position: absolute;
    top: calc(12px + 26px + 8px + 8px);
    left: calc(12px + 8px);
    z-index: 5;
    display: inline-flex;
    cursor: pointer;
    margin: 0;
    line-height: 0;
}

.combo-wrapper .combo-checkbox {
    position: absolute;
    inset: 0;
    opacity: 0;
    width: 22px;
    height: 22px;
    margin: 0;
    cursor: pointer;
    z-index: 2;
}

.combo-wrapper .combo-check-ui {
    display: inline-flex;
    width: 22px;
    height: 22px;
    border: 2px solid var(--mh-combo-purple);
    border-radius: 5px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    transition: background 0.15s ease, border-color 0.15s ease;
}

.combo-wrapper .combo-checkbox:checked + .combo-check-ui {
    background: var(--mh-combo-purple);
    border-color: var(--mh-combo-purple);
}

.combo-wrapper .combo-checkbox:checked + .combo-check-ui::after {
    content: '';
    display: block;
    width: 6px;
    height: 11px;
    margin: 2px auto 0;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.combo-wrapper .combo-check-label:hover .combo-check-ui {
    box-shadow: 0 0 0 3px rgba(111, 66, 193, 0.2);
}

/* Card chrome */
.combo-wrapper .combo-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
    min-height: 26px;
}

/* Desktop/iPad: CSS grid locks title / Size / Color / price rows across cards */
@media (min-width: 768px) {
    .combo-wrapper .combo-card-top {
        height: 26px;
        min-height: 26px;
        max-height: 26px;
        margin-bottom: 0 !important;
        overflow: hidden;
    }

    .combo-wrapper .combo-main-tag {
        width: 24px;
        height: 24px;
        padding: 0;
    }

    .combo-wrapper .combo-main-tag svg {
        width: 14px;
        height: 14px;
    }

    .combo-wrapper .combo-item,
    .combo-wrapper .combo-products-row > .combo-item,
    .combo-wrapper .combo-products-row > .combo-children-wrapper .combo-item,
    .combo-wrapper .combo-products-row.hyva .combo-item {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr);
        /* top | image | title | info */
        grid-template-rows: 26px auto 64px minmax(0, 1fr) !important;
        flex-direction: unset !important;
        align-items: stretch !important;
        gap: 8px !important;
    }

    .combo-wrapper .combo-item > .combo-card-top {
        grid-row: 1;
        grid-column: 1;
    }

    .combo-wrapper .combo-item > .combo-media {
        grid-row: 2;
        grid-column: 1;
        width: 100%;
        /* Fixed height so main vs children stay aligned (widths differ on desktop) */
        aspect-ratio: auto;
        height: 210px;
        min-height: 210px;
        max-height: 210px;
        overflow: hidden;
    }

    .combo-wrapper .combo-item > .combo-media img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
    }

    .combo-wrapper .combo-brand-line {
        display: block !important;
        height: 18px !important;
        min-height: 18px !important;
        max-height: 18px !important;
        overflow: hidden !important;
    }
    .combo-wrapper .combo-brand {
        display: block !important;
        font-size: 11px !important;
        font-weight: 700 !important;
        line-height: 18px !important;
        text-transform: uppercase;
        letter-spacing: .02em;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .combo-wrapper .combo-item > .combo-title-block {
        grid-row: 3;
        grid-column: 1;
        flex: none !important;
        align-self: stretch !important;
        height: 40px !important;
        min-height: 40px !important;
        max-height: 40px !important;
        overflow: hidden !important;
        min-width: 0 !important;
    }

    .combo-wrapper .combo-name-line {
        flex: 0 0 40px !important;
        height: 40px !important;
        max-height: 40px !important;
        min-height: 40px !important;
        overflow: hidden !important;
    }

    .combo-wrapper .combo-product-name,
    .combo-wrapper .combo-name-line a.combo-product-name {
        height: 40px !important;
        max-height: 40px !important;
        min-height: 40px !important;
        line-height: 20px !important;
        -webkit-line-clamp: 2 !important;
        line-clamp: 2 !important;
        overflow: hidden !important;
    }

    .combo-wrapper .combo-item > .combo-item-info {
        grid-row: 4;
        grid-column: 1;
        display: flex !important;
        flex-direction: column !important;
        min-height: 0 !important;
        min-width: 0 !important;
        height: 100%;
    }

    .combo-wrapper .combo-item .options {
        display: flex !important;
        flex-direction: column !important;
        flex: 0 0 auto !important;
        gap: 0 !important;
        min-width: 0 !important;
    }

    .combo-wrapper .combo-slot-size {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        width: auto !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 84px !important;
        max-height: none !important;
        overflow: visible !important;
    }

    .combo-wrapper .combo-slot-color {
        flex: 1 1 auto !important;
        min-width: 96px !important;
        width: auto !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 76px !important;
        max-height: none !important;
        overflow: visible !important;
    }

    .combo-wrapper .combo-item p.price {
        margin-top: auto !important;
        padding-top: 8px !important;
        min-height: 0 !important;
    }
}

.combo-wrapper .combo-card-top-left {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.combo-wrapper .combo-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--mh-combo-purple);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.combo-wrapper .combo-main-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border-radius: 50%;
    background: var(--mh-combo-purple-light, #f3eefc);
    color: var(--mh-combo-purple);
    flex-shrink: 0;
}

.combo-wrapper .combo-main-tag svg {
    width: 14px;
    height: 14px;
    display: block;
}

.combo-wrapper .combo-wish {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: #9ca3af;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    pointer-events: auto;
    position: relative;
    z-index: 5;
    line-height: 0;
    align-self: center;
}

.combo-wrapper .combo-wish svg {
    width: 18px !important;
    height: 18px !important;
    max-width: 18px;
    max-height: 18px;
}

.combo-wrapper .combo-wish.in-session,
.combo-wrapper .combo-wish.in-session svg {
    color: #6b7280;
}

.combo-wrapper .combo-wish.in-session svg {
    fill: currentColor;
}

/* Desktop/tablet: pin wishlist to card top-right (button lives in brand row markup) */
@media (min-width: 768px) {
    .combo-wrapper .combo-brand-line {
        overflow: visible !important;
        position: static !important;
    }

    .combo-wrapper .combo-brand-line .combo-wish {
        position: absolute !important;
        top: 12px !important;
        right: 12px !important;
        left: auto !important;
        bottom: auto !important;
        z-index: 6;
        width: 28px !important;
        height: 28px !important;
    }
}

/* Image */
.combo-wrapper .combo-media {
    position: relative;
    display: block;
    background: #f3f4f6;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    margin-bottom: 10px;
}

.combo-wrapper .combo-media > a {
    display: block;
    width: 100%;
    height: 100%;
}

.combo-wrapper .combo-media img,
.combo-wrapper .combo-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    margin: 0 auto;
}

.combo-wrapper .discount-badge {
    display: none;
    position: absolute;
    top: auto;
    bottom: 8px;
    right: 8px;
    left: auto;
    z-index: 2;
    background: var(--mh-combo-badge-background, var(--mh-combo-red));
    color: var(--mh-combo-badge-text-color, #fff);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 7px;
    border-radius: 6px;
    line-height: 1.2;
}

.combo-wrapper .discount-badge:not(:empty) {
    display: inline-block;
}

/* Info column — options + price only (title is a card grid row) */
.combo-wrapper .combo-item-info {
    display: flex !important;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
}

/* Title block — brand + name always same height on every card */
.combo-wrapper .combo-title-block {
    flex: 0 0 52px !important;
    height: 52px !important;
    max-height: 52px !important;
    min-height: 52px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100%;
    min-width: 0;
}

.combo-wrapper .combo-brand-line {
    flex: 0 0 18px !important;
    height: 18px !important;
    min-height: 18px !important;
    max-height: 18px !important;
    margin: 0 0 6px !important;
    overflow: hidden !important;
}

.combo-wrapper .combo-name-line {
    flex: 0 0 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    max-height: 34px !important;
    overflow: hidden !important;
    width: 100%;
    min-width: 0;
}

.combo-wrapper .combo-brand {
    display: block;
    height: 18px;
    max-height: 18px;
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 18px;
    text-transform: uppercase;
    color: var(--mh-combo-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.combo-wrapper .combo-product-name,
.combo-wrapper .combo-name-line a.combo-product-name {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 17px !important;
    height: 34px !important;
    max-height: 34px !important;
    min-height: 34px !important;
    color: var(--mh-combo-text) !important;
    text-decoration: none !important;
    text-transform: uppercase;
    word-break: break-word;
}

/* Legacy markup: title still uses h4 (do NOT hide — that breaks partial deploys) */
.combo-wrapper .combo-item-info > h4,
.combo-wrapper .combo-title-block > h4 {
    display: flex !important;
    flex-direction: column !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 52px !important;
    max-height: 52px !important;
    overflow: hidden !important;
}

.combo-wrapper .combo-item-info > h4 .combo-brand,
.combo-wrapper .combo-title-block > h4 .combo-brand {
    flex: 0 0 14px;
    height: 14px;
    margin: 0 0 4px;
}

.combo-wrapper .combo-item-info > h4 > a,
.combo-wrapper .combo-title-block > h4 > a {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 17px !important;
    max-height: 34px !important;
    color: var(--mh-combo-text) !important;
    text-decoration: none !important;
    text-transform: uppercase;
}

/* Options — fixed Size row then Color row on every card */
.combo-wrapper .combo-item .options {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto;
    min-height: 0;
    margin: 0;
    gap: 0;
}

.combo-wrapper .combo-slot {
    box-sizing: border-box;
    width: 100%;
}

.combo-wrapper .combo-slot-size {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    max-width: 100%;
    height: auto;
    min-height: 84px;
    max-height: none;
    overflow: visible;
}

.combo-wrapper .combo-slot-color {
    flex: 1 1 auto;
    min-width: 96px;
    width: auto;
    max-width: 100%;
    height: auto;
    min-height: 76px;
    max-height: none;
    overflow: visible;
}

.combo-wrapper .combo-slot-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    min-height: inherit;
}

.combo-wrapper .combo-more-sizes-spacer {
    display: block;
    height: 18px;
    min-height: 18px;
    visibility: hidden;
}

.combo-wrapper .combo-item .combo-options-spacer {
    display: none;
}

.combo-wrapper .option-group {
    margin-bottom: 0;
    flex: 0 0 auto;
}

.combo-wrapper .option-group.is-size {
    min-height: 0;
}

.combo-wrapper .option-group.is-color,
.combo-wrapper .option-group.combo-color-map {
    min-height: 0;
}

.combo-wrapper .option-group-label {
    display: block;
    margin: 0 0 4px;
    font-size: 11px;
    font-weight: 600;
    color: var(--mh-combo-muted);
    min-height: 14px;
    line-height: 14px;
}

.combo-wrapper .option-values {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    min-height: 38px;
    max-width: 100%;
    width: 100%;
    min-width: 0;
    padding: 4px 2px 6px;
    white-space: nowrap;
    box-sizing: border-box;
}

/* Size rows: horizontal scroll when expanded with many options */
.combo-wrapper .option-group.is-size:not(.is-collapsed) .option-values {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--mh-combo-group-border-color, #c4b5e0) transparent;
    -webkit-overflow-scrolling: touch;
}

.combo-wrapper .option-group.is-size:not(.is-collapsed) .option-values::-webkit-scrollbar {
    height: 4px;
}

.combo-wrapper .option-group.is-size:not(.is-collapsed) .option-values::-webkit-scrollbar-thumb {
    background: var(--mh-combo-group-border-color, #c4b5e0);
    border-radius: 4px;
}

.combo-wrapper .option-group.is-size.is-collapsed .option-values {
    overflow: visible;
}

/* Color row: single line, no visible scrollbar line */
.combo-wrapper .option-group.is-color,
.combo-wrapper .option-group:has(.color-swatch),
.combo-wrapper .option-group.combo-color-map {
    min-width: 0;
    max-width: 100%;
    width: 100%;
}

.combo-wrapper .option-group.is-color .option-values,
.combo-wrapper .option-group:has(.color-swatch) .option-values,
.combo-wrapper .option-group.combo-color-map .option-values {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: none; /* Firefox — hide the dark scrollbar line */
    -ms-overflow-style: none; /* IE/Edge */
    -webkit-overflow-scrolling: touch;
    padding: 4px 6px 4px 2px !important;
    min-height: 28px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    row-gap: 0;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

.combo-wrapper .option-group.is-color .option-values::-webkit-scrollbar,
.combo-wrapper .option-group:has(.color-swatch) .option-values::-webkit-scrollbar,
.combo-wrapper .option-group.combo-color-map .option-values::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
    background: transparent;
}

.combo-wrapper .option-group.is-color .option-values::-webkit-scrollbar-thumb,
.combo-wrapper .option-group:has(.color-swatch) .option-values::-webkit-scrollbar-thumb,
.combo-wrapper .option-group.combo-color-map .option-values::-webkit-scrollbar-thumb,
.combo-wrapper .option-group.is-color .option-values::-webkit-scrollbar-track,
.combo-wrapper .option-group:has(.color-swatch) .option-values::-webkit-scrollbar-track,
.combo-wrapper .option-group.combo-color-map .option-values::-webkit-scrollbar-track {
    display: none;
    background: transparent;
}

.combo-wrapper .option,
.combo-wrapper .option-group .option-values span.option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    width: auto;
    max-width: none;
    height: 32px;
    max-height: 32px;
    padding: 0 10px;
    margin: 0;
    border: 2px solid #b8bec8 !important;
    border-radius: 6px;
    background: #fff;
    color: var(--mh-combo-text);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: 0;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    cursor: pointer;
    outline: none !important;
    box-shadow: none !important;
    box-sizing: border-box;
    flex: 0 0 auto;
}

.combo-wrapper .option-group.is-size .option-values {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    max-width: 100% !important;
    scrollbar-width: thin;
    padding-bottom: 2px;
}

.combo-wrapper .option.selected:not(.color-swatch),
.combo-wrapper .option-group .option-values span.option.selected:not(.color-swatch) {
    background: #fff !important;
    color: var(--mh-combo-text) !important;
    border: 2px solid var(--mh-combo-option-selected, #6f42c1) !important;
    outline: none !important;
    border-radius: 6px;
    box-shadow: 0 0 0 1px var(--mh-combo-option-selected, #6f42c1) !important;
}

.combo-wrapper .option.color-swatch,
.combo-wrapper .combo-item .options .option-values span.option.color-swatch {
    width: 20px;
    height: 20px;
    min-width: 20px;
    max-width: 20px;
    flex: 0 0 20px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid #fff !important;
    box-shadow: 0 0 0 1px #ccc !important;
    background-color: transparent;
    color: transparent !important;
    font-size: 0;
    overflow: visible;
    position: relative;
    z-index: 0;
}

/* Strong visible ring — sizes use border fill; swatches must keep their color */
.combo-wrapper .option.color-swatch.selected,
.combo-wrapper .color-swatch.selected,
.combo-wrapper .option-group .option-values span.option.color-swatch.selected {
    border: 1px solid #666 !important;
    outline: none !important;
    outline-offset: 0;
    box-shadow: 0 0 0 1px #ccc !important;
    z-index: 2;
}

.combo-wrapper .combo-more-sizes {
    display: inline-block;
    margin-top: 2px;
    font-size: 12px;
    font-weight: 600;
    color: var(--mh-combo-purple);
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    line-height: 1.3;
    text-align: left;
}

.combo-wrapper .option-group:not(.is-collapsed) > .combo-more-sizes {
    display: none;
}

.combo-wrapper .option-group.is-collapsed .option:not(.selected) {
    display: none !important;
}

/* Price pinned to bottom — sale + MSRP on one row (reference layout) */
.combo-wrapper .combo-item p.price {
    display: flex !important;
    flex-direction: row !important;
    align-items: baseline !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
    margin: auto 0 0;
    padding-top: 10px;
    text-align: left;
    font-size: 15px;
    font-weight: 700;
    width: 100%;
    min-width: 0;
    min-height: 0;
    overflow: visible !important;
    line-height: 1.25;
    position: static !important;
}

.combo-wrapper .combo-item p.price .special-price,
.combo-wrapper .combo-item p.price .old-price,
.combo-wrapper .combo-item p.price .regular-price {
    position: static !important;
    inset: auto !important;
    display: inline !important;
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
    float: none !important;
}

.combo-wrapper .combo-item p.price .old-price {
    color: var(--mh-combo-old-price-color, #9ca3af) !important;
    text-decoration: line-through !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
}

.combo-wrapper .combo-item p.price .regular-price {
    color: var(--mh-combo-heading-color, #000) !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
}

.combo-wrapper .combo-item p.price .special-price {
    color: var(--mh-combo-final-price-color, var(--mh-combo-red)) !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
}

/* Theme global .old-price { position:relative } + ::after line — disable in combo */
.combo-wrapper .old-price,
.combo-wrapper .combo-item p.price .old-price,
.combo-wrapper .combo-summary .old-price {
    position: static !important;
}

.combo-wrapper .combo-item p.price .old-price::after,
.combo-wrapper .combo-item-info span.old-price::after,
.combo-wrapper .combo-summary .old-price::after,
.combo-summary p::after {
    display: none !important;
    content: none !important;
}

/* Desktop/iPad card grid: single-line price row at card bottom */
@media (min-width: 768px) {
    .combo-wrapper .combo-item p.price {
        min-height: 24px !important;
        padding-top: 8px !important;
    }
}

/* ---------- Summary “Your Look” — reference: features | price+ATC ---------- */
.combo-wrapper .combo-summary {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.9fr);
    grid-template-areas:
        "toggle checkout"
        "details checkout";
    gap: 12px 32px;
    align-items: start;
    margin: 0;
    min-width: 0;
    width: 100%;
    padding: 20px;
    background: var(--mh-combo-card);
    border: 1px solid var(--mh-combo-border);
    border-radius: var(--mh-combo-radius-sm);
    text-align: left;
    align-self: stretch;
}

.combo-wrapper .combo-summary-toggle {
    grid-area: toggle;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: default;
    text-align: left;
    color: inherit;
    font: inherit;
    pointer-events: none;
}

.combo-wrapper .combo-summary-toggle .combo-chevron {
    display: none;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.combo-wrapper .combo-summary-toggle-text {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.combo-wrapper .combo-summary-title {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: var(--mh-combo-text);
}

.combo-wrapper .combo-summary-count {
    margin: 0;
    font-size: 13px;
    color: var(--mh-combo-muted);
    font-weight: 500;
}

.combo-wrapper .combo-summary-details {
    grid-area: details;
    margin: 0;
}

.combo-wrapper .combo-summary-checkout {
    grid-area: checkout;
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    width: 100%;
    min-width: 0;
    margin-top: 0;
    padding-top: 0;
}

.combo-wrapper .combo-summary-features {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.combo-wrapper .combo-summary-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--mh-combo-text);
}

.combo-wrapper .combo-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--mh-combo-purple-soft);
    color: var(--mh-combo-purple);
    flex-shrink: 0;
    font-size: 12px;
}

.combo-wrapper .combo-summary-prices {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    width: 100%;
    min-width: 0;
    margin-top: 0;
    padding-top: 0;
}

/* Item expand chevron — mobile accordion only */
.combo-wrapper .combo-item-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--mh-combo-muted, #6b7280);
    cursor: pointer;
    flex-shrink: 0;
}

.combo-wrapper .combo-item-toggle svg {
    transition: transform 0.2s ease;
}

.combo-wrapper .combo-item.is-expanded .combo-item-toggle svg {
    transform: rotate(180deg);
}

/* Main-only / no discount: hide struck original, show single price */
.combo-wrapper .combo-summary-prices.is-plain-price .price-row-original {
    display: none !important;
}

.combo-wrapper .combo-summary .price-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-width: 0;
    margin: 0 0 4px;
    font-size: 13px;
}

.combo-wrapper .combo-summary .price-row-label {
    flex: 1 1 auto;
    min-width: 0;
    color: var(--mh-combo-muted);
    line-height: 1.3;
}

.combo-wrapper .combo-summary p#total-price,
.combo-wrapper .combo-summary .old-price#total-price {
    flex: 0 0 auto;
    display: block;
    position: static !important;
    width: auto;
    max-width: none;
    margin: 0 0 0 auto;
    padding: 0;
    color: var(--mh-combo-old-price-color, #9ca3af);
    text-decoration: line-through;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.25;
    text-align: right;
    white-space: nowrap;
    float: none !important;
}

.combo-wrapper .combo-summary .old-price#total-price::after {
    display: none !important;
    content: none !important;
}

.combo-wrapper .combo-summary .price-row-bundle {
    margin: 6px 0 2px;
}

.combo-wrapper .combo-summary .price-row-bundle .price-row-label {
    font-weight: 700;
    color: var(--mh-combo-text);
    font-size: 14px;
}

.combo-wrapper .combo-summary p#discounted-price,
.combo-wrapper .combo-summary .final-price {
    flex: 0 0 auto;
    display: block;
    position: static !important;
    width: auto;
    max-width: none;
    margin: 0 0 0 auto;
    padding: 0;
    color: var(--mh-combo-final-price-color, var(--mh-combo-red));
    font-size: clamp(20px, 2.5vw, 26px);
    font-weight: 800;
    line-height: 1.15;
    text-align: right;
    white-space: nowrap;
    float: none !important;
}

.combo-wrapper .combo-summary p#save-info,
.combo-wrapper .combo-summary .save-info {
    display: block !important;
    position: static !important;
    width: 100% !important;
    margin: 2px 0 12px !important;
    padding: 0 !important;
    color: var(--mh-combo-save-info-color, var(--mh-combo-green)) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    clear: both !important;
}

.combo-wrapper .combo-summary button#add-all-to-cart,
.combo-wrapper .combo-summary button.add-all-to-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 10px;
    padding: 14px 18px;
    border: 0;
    border-radius: var(--mh-combo-button-border-radius, 6px);
    background: var(--mh-combo-button-background, var(--mh-combo-green-btn));
    color: var(--mh-combo-button-text-color, #ffffff);
    font-size: var(--mh-combo-button-font-size, 15px);
    font-weight: 700;
    line-height: var(--mh-combo-button-line-height, 1.25);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.15s ease;
}

.combo-wrapper .combo-summary button#add-all-to-cart:hover,
.combo-wrapper .combo-summary button.add-all-to-cart:hover {
    background: var(--mh-combo-button-hover-background, var(--mh-combo-green-btn-hover));
}

.combo-wrapper .combo-summary button#add-all-to-cart:disabled,
.combo-wrapper .combo-summary button.add-all-to-cart:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.combo-wrapper .combo-summary-note {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 6px;
    margin: 4px 0 0;
    font-size: clamp(9px, 2.2vw, 12px);
    color: var(--mh-combo-green);
    line-height: 1.2;
    white-space: nowrap;
    text-align: center;
    width: 100%;
    min-width: 0;
}

.combo-wrapper .combo-summary-note span {
    display: none;
}
p.combo-summary-note {
    display: none!important;
}

.combo-wrapper .combo-summary-note svg {
    flex-shrink: 0;
    width: clamp(12px, 2.5vw, 16px);
    height: clamp(12px, 2.5vw, 16px);
}

.combo-wrapper .combo-children-wrapper .combo-item {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
}

/* ---------- Loader / success ---------- */
.combo-loader {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.85);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.combo-loader-inner {
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.combo-loader .spinner {
    width: 42px;
    height: 42px;
    border: 4px solid #ddd;
    border-top-color: #000;
    border-radius: 50%;
    animation: comboSpin 0.8s linear infinite;
    margin: 0 auto 10px;
}

@keyframes comboSpin {
    to { transform: rotate(360deg); }
}

.combo-success-message {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
}

.combo-success-inner {
    background: #28a745;
    color: #fff;
    padding: 14px 18px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.combo-unavailable-wrapper { margin: 20px 0; }
.combo-unavailable-box {
    padding: 15px 20px;
    border: 1px solid #d6d6d6;
    background: #fafafa;
}
.combo-unavailable-box strong {
    display: block;
    font-size: 16px;
    color: #333;
    margin-bottom: 6px;
}
.combo-unavailable-box p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

/* ---------- iPad ~1024: equal cards, summary below (no dashed group) ---------- */
@media (max-width: 1200px) {
    .combo-wrapper .combo-body,
    .combo-wrapper.list-page .combo-body {
        grid-template-columns: 1fr;
    }

    .combo-wrapper .combo-body > .combo-products-row,
    .combo-wrapper .combo-body > .combo-summary {
        grid-column: 1;
    }

    .combo-wrapper .combo-children-wrapper,
    .combo-wrapper .combo-products-row.hyva .combo-children-wrapper,
    .combo-wrapper .combo-products-row.hyva .combo-children-wrapper.child-1,
    .combo-wrapper .combo-products-row.hyva .combo-children-wrapper.child-2,
    .combo-wrapper .combo-products-row.hyva .combo-children-wrapper.child-3,
    .combo-wrapper .combo-products-row.hyva .combo-children-wrapper.child-4,
    .combo-wrapper .combo-products-row.hyva .combo-children-wrapper.child-5 {
        display: contents;
        border: 0;
        padding: 0;
        margin: 0;
        background: transparent;
    }

    .combo-wrapper .combo-item,
    .combo-wrapper .combo-products-row > .combo-item,
    .combo-wrapper .combo-products-row > .combo-children-wrapper .combo-item,
    .combo-wrapper .combo-products-row.hyva .combo-item {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        max-width: none !important;
    }

    .combo-wrapper .combo-summary {
        display: grid;
        grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.9fr);
        grid-template-areas:
            "toggle checkout"
            "details checkout";
        gap: 10px 24px;
    }

    .combo-wrapper .combo-summary-toggle { grid-area: toggle; }
    .combo-wrapper .combo-summary-details { grid-area: details; margin: 0; }
    .combo-wrapper .combo-summary-checkout { grid-area: checkout; margin-top: 0; padding-top: 0; }

    .combo-wrapper .combo-summary button#add-all-to-cart,
    .combo-wrapper .combo-summary button.add-all-to-cart {
        width: 100%;
        justify-content: center;
    }
}

/* ---------- Phone / small tablet ≤767: stacked image|details rows ---------- */
@media (max-width: 767px) {
    .combo-wrapper {
        padding: 16px 14px 18px;
    }

    /* Header: title left, timer right */
    .combo-wrapper .combo-header {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-start;
        justify-content: space-between;
        gap: 10px 16px;
    }

    .combo-wrapper .combo-header-left {
        flex: 1 1 220px;
        min-width: 0;
    }

    .combo-wrapper .combo-header-right {
        flex: 0 0 auto;
        width: auto;
        margin-left: auto;
    }

    .combo-wrapper #combo-timer-right,
    .combo-wrapper .combo-timer.small {
        width: auto;
        max-width: 100%;
        justify-content: center;
        box-sizing: border-box;
        font-size: 12px;
        padding: 8px 10px;
    }

    .combo-wrapper .combo-title {
        font-size: 20px;
    }

    .combo-wrapper .combo-summary {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: none !important;
        grid-template-areas: none !important;
        /* Override iPad grid align-items:start so checkout stretches full width */
        align-items: stretch !important;
        gap: 0;
        max-width: none;
        width: 100%;
        padding: 14px;
        box-sizing: border-box;
    }

    .combo-wrapper .combo-summary-toggle,
    .combo-wrapper .combo-summary-details,
    .combo-wrapper .combo-summary-checkout {
        grid-area: auto !important;
        width: 100% !important;
        max-width: none !important;
        align-self: stretch !important;
        box-sizing: border-box;
    }

    .combo-wrapper .combo-summary-prices {
        width: 100%;
    }

    .combo-wrapper .combo-summary .price-row {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
    }

    .combo-wrapper .combo-summary .price-row-label {
        flex: 1 1 auto;
        min-width: 0;
    }

    .combo-wrapper .combo-summary .price-row .old-price,
    .combo-wrapper .combo-summary .price-row .final-price,
    .combo-wrapper .combo-summary .price-row p#total-price,
    .combo-wrapper .combo-summary .price-row p#discounted-price {
        flex: 0 0 auto;
        margin: 0 0 0 auto;
        text-align: right;
        width: auto;
        max-width: none;
        position: static !important;
        float: none !important;
        white-space: nowrap;
    }

    .combo-wrapper .combo-summary-note {
        width: 100%;
        justify-content: center;
        text-align: center;
        white-space: nowrap;
        flex-wrap: nowrap;
    }

    /* Features behind chevron; pricing always visible (tablet only; phone uses is-collapsed) */
    .combo-wrapper .combo-summary-toggle {
        pointer-events: auto;
        cursor: pointer;
        padding-bottom: 8px;
        border-bottom: 1px solid var(--mh-combo-border, #e5e7eb);
        margin-bottom: 10px;
    }

    .combo-wrapper .combo-summary-toggle .combo-chevron {
        display: inline-block !important;
    }
}

@media (max-width: 767px) {
    .combo-wrapper .combo-summary:not(.is-features-open) .combo-summary-details {
        display: none !important;
    }

    .combo-wrapper .combo-summary.is-features-open .combo-summary-toggle .combo-chevron {
        transform: rotate(180deg);
    }
}

@media (max-width: 767px) {
    .combo-wrapper .combo-summary-checkout {
        margin-top: 0;
        padding-top: 0;
    }

    .combo-wrapper .combo-summary button#add-all-to-cart,
    .combo-wrapper .combo-summary button.add-all-to-cart {
        width: 100%;
        justify-content: center;
        white-space: nowrap;
        font-size: clamp(12px, 3.2vw, 15px);
        letter-spacing: 0.01em;
        padding-left: 12px;
        padding-right: 12px;
    }

    .combo-wrapper .combo-summary p#discounted-price,
    .combo-wrapper .combo-summary .final-price {
        font-size: 24px;
    }

    .combo-wrapper .combo-products-row,
    .combo-wrapper .combo-products-row.hyva {
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        align-items: stretch !important;
        gap: 16px !important;
        width: 100% !important;
    }

    .combo-wrapper .combo-children-wrapper,
    .combo-wrapper .combo-products-row.hyva .combo-children-wrapper,
    .combo-wrapper .combo-products-row.hyva .combo-children-wrapper.child-1,
    .combo-wrapper .combo-products-row.hyva .combo-children-wrapper.child-2,
    .combo-wrapper .combo-products-row.hyva .combo-children-wrapper.child-3,
    .combo-wrapper .combo-products-row.hyva .combo-children-wrapper.child-4,
    .combo-wrapper .combo-products-row.hyva .combo-children-wrapper.child-5 {
        display: flex !important;
        flex-direction: column !important;
        flex: none !important;
        width: 100% !important;
        max-width: none !important;
        gap: 16px !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
    }

    /* [index/check] [image] [details] */
    .combo-wrapper .combo-item,
    .combo-wrapper .combo-products-row > .combo-item,
    .combo-wrapper .combo-products-row > .combo-children-wrapper .combo-item,
    .combo-wrapper .combo-products-row.hyva .combo-item {
        display: grid !important;
        grid-template-columns: 28px minmax(0, 92px) minmax(0, 1fr) !important;
        grid-template-rows: auto auto !important;
        flex-direction: unset !important;
        flex: none !important;
        width: 100% !important;
        max-width: none !important;
        gap: 6px 10px !important;
        padding: 12px !important;
        align-items: start;
        --combo-mobile-stack-gap: 16px;
        --combo-mobile-image-width: 92px;
    }

    /* Desktop horizontal layout indents — must not apply on stacked mobile cards */
    .combo-wrapper .combo-children-wrapper .combo-item[data-role="child"] + .combo-item[data-role="child"],
    .combo-wrapper .combo-children-wrapper .combo-item[data-role="child"] {
        margin-left: 0 !important;
    }

    .combo-wrapper .combo-item > .combo-card-top {
        grid-column: 1 !important;
        grid-row: 1 / 3 !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 8px !important;
        margin: 0 !important;
        min-height: 0 !important;
        padding-top: 2px;
    }

    .combo-wrapper .combo-card-top-left {
        flex-direction: column !important;
        align-items: center !important;
        gap: 6px !important;
    }

    .combo-wrapper .combo-main-tag {
        width: 24px;
        height: 24px;
        padding: 0;
    }

    .combo-wrapper .combo-main-tag svg {
        width: 13px;
        height: 13px;
    }

    .combo-wrapper .combo-item-toggle {
        display: none !important;
    }

    .combo-wrapper .combo-item > .combo-media {
        grid-column: 2 !important;
        grid-row: 1 / 3 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        align-self: center !important;
        justify-self: center !important;
        width: 100% !important;
        max-width: var(--combo-mobile-image-width, 92px) !important;
        margin: 0 auto !important;
        aspect-ratio: auto !important;
        background: transparent !important;
        border-radius: 0 !important;
        overflow: visible !important;
        position: relative !important;
    }

    .combo-wrapper .combo-item > .combo-media > a {
        display: block !important;
        width: 100% !important;
        aspect-ratio: 3 / 4 !important;
        border-radius: 8px !important;
        overflow: hidden !important;
        background: #f3f4f6 !important;
        flex: 0 0 auto !important;
    }

    .combo-wrapper .combo-item > .combo-media img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center center !important;
    }

    /* Stack tick under product count (same rail as main-item star) */
    .combo-wrapper .combo-card-top-left .combo-check-label {
        position: static !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
        display: inline-flex !important;
        margin: 0 !important;
        z-index: auto;
        flex-shrink: 0;
    }

    /* Badge below image — no overlap on photo */
    .combo-wrapper .combo-item > .combo-media .discount-badge {
        position: static !important;
        top: auto !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        display: inline-block !important;
        margin: 4px 0 0 !important;
        flex-shrink: 0 !important;
        align-self: center !important;
        font-size: 9px !important;
        padding: 2px 5px !important;
        line-height: 1.2 !important;
        border-radius: 4px !important;
        white-space: nowrap !important;
    }

    .combo-wrapper .combo-item > .combo-media .discount-badge:empty {
        display: none !important;
        margin: 0 !important;
    }

    .combo-wrapper .combo-item > .combo-title-block {
        grid-column: 3 !important;
        grid-row: 1 !important;
        flex: none !important;
        height: auto !important;
        max-height: none !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 2px !important;
    }

    .combo-wrapper .combo-item > .combo-item-info {
        grid-column: 3 !important;
        grid-row: 2 !important;
        display: flex !important;
        flex-direction: column !important;
        min-height: 0;
        width: 100%;
    }

    /* Brand + wishlist share one row (360–767) */
    .combo-wrapper .combo-brand-line {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 22px !important;
        align-items: center !important;
        column-gap: 6px !important;
        width: 100% !important;
        min-width: 0 !important;
        height: 20px !important;
        min-height: 20px !important;
        max-height: 20px !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        position: static !important;
        flex: none !important;
    }

    .combo-wrapper .combo-brand-line .combo-brand {
        grid-column: 1 !important;
        display: flex !important;
        align-items: center !important;
        min-width: 0 !important;
        height: 20px !important;
        max-height: 20px !important;
        margin: 0 !important;
        padding: 0 !important;
        font-size: 10px !important;
        font-weight: 700 !important;
        line-height: 1 !important;
        text-transform: uppercase;
        letter-spacing: 0.03em;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .combo-wrapper .combo-brand-line .combo-wish {
        grid-column: 2 !important;
        position: static !important;
        inset: auto !important;
        top: auto !important;
        right: auto !important;
        left: auto !important;
        bottom: auto !important;
        transform: none !important;
        flex: none !important;
        align-self: center !important;
        justify-self: end !important;
        width: 22px !important;
        height: 22px !important;
        min-width: 22px !important;
        max-width: 22px !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .combo-wrapper .combo-brand-line .combo-wish svg {
        width: 16px !important;
        height: 16px !important;
        max-width: 16px !important;
        max-height: 16px !important;
    }

    .combo-wrapper .combo-brand {
        display: flex !important;
        align-items: center !important;
        font-size: 10px !important;
        font-weight: 700 !important;
        line-height: 1 !important;
        height: 20px !important;
        text-transform: uppercase;
        letter-spacing: 0.03em;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .combo-wrapper .combo-name-line {
        flex: none !important;
        height: auto !important;
        overflow: visible !important;
    }

    .combo-wrapper .combo-product-name,
    .combo-wrapper .combo-title-block > h4 > a {
        font-size: 13px !important;
        line-height: 17px !important;
        height: auto !important;
        max-height: 34px !important;
        -webkit-line-clamp: 2 !important;
    }

    .combo-wrapper .combo-slot-size,
    .combo-wrapper .combo-slot-color {
        flex: 0 0 auto !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    /* Keep ≥3 color swatches on one row; hide scrollbar line */
    .combo-wrapper .option-group.is-color .option-values,
    .combo-wrapper .option-group:has(.color-swatch) .option-values,
    .combo-wrapper .option-group.combo-color-map .option-values {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        padding: 4px 6px 4px 2px !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
        border: 0 !important;
    }

    .combo-wrapper .option-group.is-color .option-values::-webkit-scrollbar,
    .combo-wrapper .option-group:has(.color-swatch) .option-values::-webkit-scrollbar,
    .combo-wrapper .option-group.combo-color-map .option-values::-webkit-scrollbar {
        display: none !important;
        height: 0 !important;
    }

    .combo-wrapper .option.color-swatch,
    .combo-wrapper .combo-item .options .option-values span.option.color-swatch {
        width: 26px;
        height: 26px;
        min-width: 26px;
        flex: 0 0 26px;
    }

    .combo-wrapper .combo-item > .combo-item-info,
    .combo-wrapper .combo-item .options {
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .combo-wrapper .combo-item p.price {
        margin-top: 8px;
        padding-top: 0;
    }

    /* Hide desktop horizontal + on mobile */
    .combo-wrapper .combo-item[data-role="child"]::before,
    .combo-wrapper .combo-item[data-role="main"]::after,
    .combo-wrapper .combo-products-row > .combo-item[data-role="main"]::after,
    .combo-wrapper .combo-products-row > .combo-children-wrapper .combo-item[data-role="child"]::before,
    .combo-wrapper .combo-products-row > .combo-children-wrapper .combo-item:nth-child(2)::before,
    .combo-wrapper .combo-products-row > .combo-children-wrapper > .combo-border-overlay + .combo-item::before {
        display: none !important;
    }

    /*
     * Stacked mobile: + centered horizontally in the gap between cards.
     * Resets desktop main-item positioning (right:-14px / top:calc(...)).
     */
    .combo-wrapper .combo-products-row > .combo-item:not(:last-child)::after,
    .combo-wrapper .combo-products-row > .combo-item[data-role="main"]:not(:last-child)::after,
    .combo-wrapper .combo-children-wrapper .combo-item:not(:last-child)::after {
        content: '+' !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 100% !important;
        bottom: auto !important;
        left: 50% !important;
        right: auto !important;
        width: 26px;
        height: 26px;
        margin: 0 !important;
        margin-top: calc(var(--combo-mobile-stack-gap) / 2) !important;
        border-radius: 50%;
        background: var(--mh-combo-purple);
        color: #fff;
        font-size: 16px;
        font-weight: 700;
        line-height: 1;
        transform: translate(-50%, -50%) !important;
        z-index: 4;
        pointer-events: none;
        box-shadow: 0 0 0 3px #fff;
    }
}

/* ---------- Phone ≤480: keep same row layout as 481–767 (lighter polish only) ---------- */
@media (max-width: 480px) {
    .combo-wrapper {
        padding: 14px 12px 16px;
        margin: 16px 0;
    }

    .combo-wrapper .combo-title {
        font-size: 18px;
    }

    .combo-wrapper .combo-products-row,
    .combo-wrapper .combo-products-row.hyva,
    .combo-wrapper .combo-children-wrapper,
    .combo-wrapper .combo-products-row.hyva .combo-children-wrapper {
        gap: 14px !important;
    }

    .combo-wrapper .combo-item,
    .combo-wrapper .combo-products-row > .combo-item,
    .combo-wrapper .combo-products-row > .combo-children-wrapper .combo-item,
    .combo-wrapper .combo-products-row.hyva .combo-item {
        /* Same 3-col row as ≤767 — do not switch to accordion */
        grid-template-columns: 26px minmax(0, 84px) minmax(0, 1fr) !important;
        padding: 10px !important;
        gap: 6px 8px !important;
        --combo-mobile-stack-gap: 14px;
        --combo-mobile-image-width: 84px;
    }

    .combo-wrapper .combo-item > .combo-media {
        max-width: var(--combo-mobile-image-width, 84px) !important;
    }

    .combo-wrapper .combo-item-toggle {
        display: none !important;
    }

    .combo-wrapper .combo-item > .combo-item-info {
        display: flex !important;
    }

    .combo-wrapper .combo-product-name,
    .combo-wrapper .combo-title-block > h4 > a {
        font-size: 12px !important;
        line-height: 18px !important;
    }

    .combo-wrapper .combo-summary p#discounted-price,
    .combo-wrapper .combo-summary .final-price {
        font-size: 22px;
    }

    .combo-wrapper .combo-products-row > .combo-item:not(:last-child)::after,
    .combo-wrapper .combo-products-row > .combo-item[data-role="main"]:not(:last-child)::after,
    .combo-wrapper .combo-children-wrapper .combo-item:not(:last-child)::after {
        width: 24px;
        height: 24px;
        font-size: 15px;
    }
}

/* =========================================================
   Related / upsell carousel title alignment
   Theme sets -webkit-line-clamp:unset which lets long names
   push prices down. Restore 2-line clamp on PDP carousels.
   ========================================================= */
.catalog-product-view .mgz-carousel form.item .product-info a.product-item-link,
.catalog-product-view .mgz-carousel-nav-position-center_split form.item .product-info a.product-item-link {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-height: 44px !important;
    min-height: 44px !important;
    line-height: 22px !important;
    white-space: normal !important;
    word-break: break-word;
}

.catalog-product-view .mgz-carousel form.item .product-info,
.catalog-product-view .mgz-carousel .owl-item .item.product.product-item {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.catalog-product-view .mgz-carousel form.item .product-info .price-box {
    margin-top: auto;
}


.combo-wrapper a.combo-color-variant-link {
    display: none !important;
}

/* Combodeal-owned color dots (color_map + upsell colorways) */
.combo-wrapper .combo-color-map .combo-color-dot,
.combo-wrapper .combo-color-dot {
    display: inline-block;
    position: relative;
    height: 20px;
    width: 20px;
    min-width: 20px;
    border: 1px solid #fff;
    border-radius: 10px;
    margin: 0 6px 0 0;
    box-shadow: 0 0 0 1px #ccc;
    box-sizing: border-box;
    vertical-align: middle;
    cursor: default;
    pointer-events: auto;
}

.combo-wrapper .combo-color-map .combo-color-dot.is-current,
.combo-wrapper .combo-color-dot.is-current {
    border: 1px solid #666;
    box-shadow: 0 0 0 1px #ccc;
}

/* Color name on hover */
.combo-wrapper .combo-color-dot[data-color-name]:hover::after,
.combo-wrapper .option.color-swatch[data-color-name]:hover::after {
    content: attr(data-color-name);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%);
    white-space: nowrap;
    background: #222;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    padding: 4px 8px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    z-index: 20;
    pointer-events: none;
}

.combo-wrapper .option.color-swatch {
    position: relative;
}
