﻿.m-storefront {
    --storefront-page-pad: clamp(1rem, 4vw, 4.5rem);
    --storefront-section-gap: clamp(2rem, 5vw, 4.5rem);
    --storefront-template-accent: var(--m-context-accent-color);
    --storefront-template-accent-strong: var(--m-context-accent-color-active);
    --storefront-template-contrast: var(--m-context-text-strong);
    --storefront-template-top-bg: var(--m-slot-c8-surface, var(--m-context-surface-soft));
    --storefront-template-top-text: var(--m-context-text-soft);
    --storefront-template-header-bg: var(--m-context-surface);
    --storefront-template-header-text: var(--m-context-text);
    --storefront-template-nav-bg: transparent;
    --storefront-template-button-bg: var(--m-context-accent-color);
    --storefront-template-button-text: var(--m-context-accent-text-inverse);
    --m-context-accent-contrast: var(--storefront-template-button-text);
    --storefront-template-button-radius: 8px;
    --storefront-template-card-radius: 8px;
    --storefront-template-shadow: var(--m-context-shadow);
    --storefront-template-search-bg: var(--m-context-surface-soft);
    min-height: 100vh;
    overflow-x: clip;
    background: var(--m-context-surface-soft);
    color: var(--m-context-text);
}

.m-storefront-shell {
    overflow-x: clip;
}

/* Bookable products keep the regular product layout and replace option rails with appointment selection. */
.m-product-booking{display:grid;min-width:0;max-width:100%;gap:12px;padding:14px;border:1px solid var(--m-storefront-border,#e4e7ec);border-radius:18px;background:#fff}
.m-product-booking__heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.m-product-booking__heading>div{display:grid;gap:3px}.m-product-booking__heading span{font-size:12px;color:#667085}.m-product-booking__heading strong{font-size:13px;color:#111827}.m-product-booking__duration,.m-product-booking__capacity{display:inline-flex;align-items:center;gap:5px;padding:5px 9px;border-radius:999px;background:#f3e8ff;color:#7e22ce;font-size:11px;font-weight:700;white-space:nowrap}
.m-product-booking__navigation{display:grid;grid-template-columns:1fr 1fr;align-items:end;gap:8px}.m-product-booking__navigation label{display:grid;gap:4px;font-size:11px;color:#667085}.m-product-booking__navigation select{min-height:36px;border:1px solid #e4e7ec;border-radius:10px;background:#fff;padding:6px 9px;color:#344054;font:inherit}.m-product-booking__status{display:inline-flex;padding:5px 8px;border-radius:999px;font-size:11px;font-weight:700}.m-product-booking__status.is-available{background:#dcfae6;color:#067647}.m-product-booking__status.is-unavailable{background:#f2f4f7;color:#667085}.m-product-booking__table tr.is-unavailable{opacity:.62}.m-product-booking__choice:disabled{cursor:not-allowed;border-color:#e4e7ec;background:#f2f4f7;color:#98a2b3}
.m-product-booking-quantity{display:grid;gap:5px;min-width:130px}.m-product-booking-quantity__label{font-size:11px;color:#667085;font-weight:700}
.m-product-booking__table-wrap{width:100%;max-width:100%;max-height:300px;overflow:auto;border:1px solid #edf0f5;border-radius:14px}.m-product-booking__table{width:100%;table-layout:fixed;border-collapse:collapse;font-size:12px}.m-product-booking__table th{position:sticky;top:0;z-index:1;padding:9px 10px;background:#f8fafc;color:#667085;text-align:start;font-weight:700}.m-product-booking__table td{padding:9px 10px;border-top:1px solid #edf0f5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.m-product-booking__table tr.is-selected{background:#faf5ff}.m-product-booking__choice{border:1px solid #d8b4fe;border-radius:10px;background:#fff;color:#7e22ce;padding:6px 10px;font-weight:700;cursor:pointer}.m-product-booking__choice:hover,.m-product-booking__choice.is-selected{background:#8b2fa8;border-color:#8b2fa8;color:#fff}.m-product-booking__empty{display:flex;align-items:center;justify-content:center;gap:8px;padding:24px;color:#667085}
@media(max-width:640px){.m-product-booking{padding:10px;border-radius:14px}.m-product-booking__heading{align-items:flex-start}.m-product-booking__table{font-size:11px}.m-product-booking__table th,.m-product-booking__table td{padding:8px 7px}.m-product-booking__capacity{padding:4px 6px}.m-product-booking__table-wrap{max-height:260px}}
.m-product-booking__table tr[data-booking-choice]{cursor:pointer;background:var(--m-state-bg);color:var(--m-state-text);outline:none}.m-product-booking__table tr[data-booking-choice]:hover{background:var(--m-state-hover-bg)}.m-product-booking__table tr[data-booking-choice]:focus-visible{box-shadow:inset 0 0 0 2px var(--m-state-accent)}.m-product-booking__table tr[data-booking-choice].is-unavailable{cursor:not-allowed;opacity:.62}.m-product-booking__selection-mark{display:inline-grid;place-items:center;inline-size:24px;block-size:24px;border:1px solid var(--m-state-border);border-radius:50%;color:transparent}.m-product-booking__table tr.is-selected{background:var(--m-state-selected-bg)}.m-product-booking__table tr.is-selected .m-product-booking__selection-mark{background:var(--m-state-accent);color:var(--m-state-icon)}

/* Storefront catalog and engagement surfaces. */
.m-storefront-catalog {
    display: grid;
    gap: 1.25rem;
    padding: var(--storefront-section-gap) var(--storefront-page-pad);
    border-block: 1px solid var(--m-context-border);
    background: var(--m-context-surface-soft);
}

.m-storefront-catalog__head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1.5rem;
}

.m-storefront-catalog__head p,
.m-storefront-catalog__head h2,
.m-storefront-catalog__head span {
    margin: 0;
}

.m-storefront-catalog__head p {
    margin-block-end: .45rem;
    color: var(--m-context-accent-color);
    font-weight: 850;
}

.m-storefront-catalog__head h2 {
    color: var(--m-context-text-strong);
    font-size: clamp(1.65rem, 3vw, 2.8rem);
    line-height: 1.15;
}

.m-storefront-catalog__head div > span {
    display: block;
    margin-block-start: .6rem;
    color: var(--m-context-text-soft);
}

.m-storefront-catalog__all,
.m-storefront-product-card__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    color: var(--m-context-accent-color);
    font-weight: 850;
}

.m-storefront-catalog__filters {
    display: flex;
    gap: .6rem;
    padding-block-end: .25rem;
    overflow-x: auto;
    scrollbar-width: thin;
}

.m-storefront-catalog__filters button,
.m-storefront-catalog__filters a {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    min-height: 40px;
    padding: .55rem .8rem;
    border: 1px solid var(--m-context-border);
    border-radius: 999px;
    background: var(--m-context-surface);
    color: var(--m-context-text-soft);
    white-space: nowrap;
    cursor: pointer;
}

.m-storefront-catalog__filters button.is-active,
.m-storefront-catalog__filters a:hover {
    border-color: var(--m-context-accent-color);
    background: var(--m-context-accent-soft);
    color: var(--m-context-accent-color);
}

.m-storefront-catalog__filters small {
    display: grid;
    place-items: center;
    min-width: 22px;
    min-height: 22px;
    border-radius: 999px;
    background: var(--m-context-surface-muted);
    color: var(--m-context-text-muted);
}

.m-storefront-categories {
    min-width: 0;
}

.m-storefront-categories__head,
.m-storefront-categories__actions {
    display: flex;
    align-items: center;
}

.m-storefront-categories__head {
    justify-content: space-between;
    gap: 1rem;
    margin-block-end: .85rem;
}

.m-storefront-categories__head h3 {
    margin: 0;
    color: var(--m-context-text-strong);
    font-size: 1.05rem;
}

.m-storefront-categories__actions {
    gap: .4rem;
}

.m-storefront-categories__actions button,
.m-storefront-categories__actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    min-height: 36px;
    border: 1px solid var(--m-context-border);
    border-radius: 10px;
    background: var(--m-context-surface);
    color: var(--m-context-text-strong);
    cursor: pointer;
}

.m-storefront-categories__actions a {
    gap: .35rem;
    padding-inline: .75rem;
    color: var(--m-context-accent-color);
    font-size: .8rem;
    font-weight: 850;
}

.m-storefront-categories__rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(132px, calc((100% - 4.2rem) / 7));
    gap: .7rem;
    overflow-x: auto;
    padding-block-end: .35rem;
    overscroll-behavior-inline: contain;
    scroll-behavior: smooth;
    scroll-snap-type: inline mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--m-context-border-strong) transparent;
}

.m-storefront-category-card {
    display: grid;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--m-context-border);
    border-radius: var(--storefront-template-card-radius);
    background: var(--m-context-surface);
    color: var(--m-context-text);
    scroll-snap-align: start;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.m-storefront-category-card:hover,
.m-storefront-category-card:focus-visible {
    transform: translateY(-2px);
    border-color: var(--m-context-border-strong);
    box-shadow: var(--m-context-shadow-hover);
}

.m-storefront-category-card__media {
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--m-context-surface-muted);
}

.m-storefront-category-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}

.m-storefront-category-card:hover .m-storefront-category-card__media img {
    transform: scale(1.04);
}

.m-storefront-category-card__body {
    display: grid;
    gap: .2rem;
    padding: .65rem;
    text-align: center;
}

.m-storefront-category-card__body strong {
    overflow: hidden;
    color: var(--m-context-text-strong);
    font-size: .86rem;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.m-storefront-category-card__body small {
    color: var(--m-context-text-muted);
    font-size: .72rem;
}

.m-storefront-catalog__grid {
    display: grid;
    grid-template-columns: repeat(var(--storefront-catalog-columns, 4), minmax(0, 1fr));
    gap: 1rem;
}

.m-storefront-product-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--m-context-border);
    border-radius: var(--storefront-template-card-radius);
    background: var(--m-context-surface);
    box-shadow: var(--m-context-shadow);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.m-storefront-product-card:hover {
    transform: translateY(-3px);
    border-color: var(--m-context-border-strong);
    box-shadow: var(--m-context-shadow-hover);
}

.m-storefront-product-card__media {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--m-context-surface-muted);
    color: var(--m-context-accent-color);
}

.m-storefront-product-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}

.m-storefront-product-card:hover .m-storefront-product-card__media img {
    transform: scale(1.035);
}

.m-storefront-product-card__media > i {
    font-size: clamp(2.25rem, 5vw, 4rem);
}

.m-storefront-product-card__media > span {
    position: absolute;
    inset-block-start: .7rem;
    inset-inline-start: .7rem;
    padding: .3rem .55rem;
    border-radius: 999px;
    background: var(--m-context-accent-color);
    color: var(--m-context-accent-text-inverse);
    font-size: .72rem;
    font-weight: 900;
}

.m-storefront-product-card__body {
    display: grid;
    gap: .7rem;
    padding: 1rem;
}

.m-storefront-product-card__body small {
    color: var(--m-context-text-muted);
}

.m-storefront-product-card__body h3 {
    min-height: 2.5em;
    margin: 0;
    color: var(--m-context-text-strong);
    font-size: 1rem;
    line-height: 1.3;
}

.m-storefront-product-card__body h3 a {
    color: inherit;
}

.m-storefront-product-card__price {
    display: flex;
    align-items: baseline;
    gap: .55rem;
    color: var(--m-context-accent-color);
}

.m-storefront-product-card__price del {
    color: var(--m-context-text-muted);
    font-size: .82rem;
}

.m-storefront-product-card__action {
    justify-content: space-between;
    min-height: 38px;
    padding-block-start: .7rem;
    border-block-start: 1px solid var(--m-context-border-subtle);
}

.m-storefront-catalog__empty {
    display: grid;
    place-items: center;
    gap: .75rem;
    min-height: 220px;
    padding: 2rem;
    border: 1px dashed var(--m-context-border-strong);
    border-radius: var(--storefront-template-card-radius);
    color: var(--m-context-text-muted);
    text-align: center;
}

.m-storefront-catalog__empty i {
    color: var(--m-context-accent-color);
    font-size: 3rem;
}

.m-storefront-catalog__rows {
    display: grid;
    gap: clamp(1.4rem, 3vw, 2.5rem);
}

.m-storefront-product-row {
    min-width: 0;
    padding: clamp(.85rem, 2vw, 1.25rem);
    border: 1px solid var(--m-context-border);
    border-radius: calc(var(--storefront-template-card-radius) + 4px);
    background: var(--m-context-surface);
    box-shadow: var(--m-context-shadow);
}

.m-storefront-product-row--deals {
    background: linear-gradient(135deg, color-mix(in srgb, var(--m-context-accent-soft), #fff 45%), var(--m-context-surface));
}

.m-storefront-product-row__head,
.m-storefront-product-row__actions {
    display: flex;
    align-items: center;
}

.m-storefront-product-row__head {
    justify-content: space-between;
    gap: 1rem;
    margin-block-end: 1rem;
}

.m-storefront-product-row__head h3,
.m-storefront-product-row__head p {
    margin: 0;
}

.m-storefront-product-row__head h3 {
    color: var(--m-context-text-strong);
    font-size: clamp(1.1rem, 2vw, 1.45rem);
}

.m-storefront-product-row__head p {
    margin-block-start: .3rem;
    color: var(--m-context-text-muted);
    font-size: .86rem;
}

.m-storefront-deal-countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
}

.m-storefront-deal-countdown__unit {
    position: relative;
    display: grid;
    place-items: center;
    width: 52px;
    min-width: 52px;
    height: 58px;
    color: var(--m-context-text-strong);
}

.m-storefront-deal-countdown__unit svg {
    position: absolute;
    inset-block-start: 0;
    width: 44px;
    height: 44px;
    overflow: visible;
    transform: rotate(-90deg);
}

.m-storefront-deal-countdown__track,
.m-storefront-deal-countdown__progress {
    fill: none;
    stroke-width: 3;
}

.m-storefront-deal-countdown__track {
    stroke: var(--m-context-border);
}

.m-storefront-deal-countdown__progress {
    stroke: var(--m-context-accent-color);
    stroke-linecap: round;
    transition: stroke-dashoffset .35s linear;
}

.m-storefront-deal-countdown__unit strong {
    position: relative;
    margin-block-start: 12px;
    font-size: .78rem;
    font-variant-numeric: tabular-nums;
}

.m-storefront-deal-countdown__unit small {
    align-self: end;
    color: var(--m-context-text-muted);
    font-size: .58rem;
    line-height: 1;
}

.m-storefront-deal-countdown[data-countdown-ended="1"] {
    opacity: .55;
}

.m-storefront-product-row__actions {
    gap: .45rem;
}

.m-storefront-product-row__actions button,
.m-storefront-product-row__actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    min-height: 36px;
    border: 1px solid var(--m-context-border);
    border-radius: 10px;
    background: var(--m-context-surface);
    color: var(--m-context-text-strong);
    cursor: pointer;
}

.m-storefront-product-row__actions a {
    gap: .35rem;
    padding-inline: .8rem;
    color: var(--m-context-accent-color);
    font-size: .82rem;
    font-weight: 850;
}

.m-storefront-product-row__rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(190px, calc((100% - 5rem) / 6));
    gap: 1rem;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-behavior: smooth;
    scroll-snap-type: inline mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--m-context-border-strong) transparent;
}

.m-storefront-product-row__rail .m-storefront-product-card {
    scroll-snap-align: start;
    box-shadow: none;
}

.m-storefront-product-row__rail .m-storefront-product-card__media {
    aspect-ratio: 1 / 1;
}

.m-storefront-product-row__rail .m-storefront-product-card__body {
    padding: .8rem;
}

@media (max-width: 900px) {
    .m-storefront-product-row__rail {
        grid-auto-columns: minmax(180px, 38vw);
    }
}

@media (max-width: 600px) {
    .m-storefront-catalog {
        gap: .9rem;
    }

    .m-storefront-product-row__head {
        flex-wrap: wrap;
    }

    .m-storefront-deal-countdown {
        order: 3;
        width: 100%;
        justify-content: flex-start;
    }

    .m-storefront-deal-countdown__unit {
        width: 46px;
        min-width: 46px;
    }

    .m-storefront-catalog__head > div > span,
    .m-storefront-product-row__head p,
    .m-storefront-product-row__actions button {
        display: none;
    }

    .m-storefront-product-row {
        padding: .7rem;
        border-radius: 14px;
    }

    .m-storefront-product-row__rail {
        grid-auto-columns: minmax(154px, 46vw);
        gap: .65rem;
    }

    .m-storefront-product-row__actions a {
        border: 0;
        padding-inline: .25rem;
        white-space: nowrap;
    }

    .m-storefront-product-row__rail .m-storefront-product-card__action {
        display: none;
    }
}

.m-storefront-product-detail {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
    gap: clamp(1.5rem, 4vw, 4rem);
    padding: var(--storefront-section-gap) var(--storefront-page-pad);
    background: var(--m-context-surface-soft);
}

.m-storefront-product-detail__media {
    overflow: hidden;
    min-height: 420px;
    border: 1px solid var(--m-context-border);
    border-radius: var(--storefront-template-card-radius);
    background: var(--m-context-surface-muted);
}

.m-storefront-product-gallery {
    display: grid;
    align-content: start;
    gap: .75rem;
    min-width: 0;
}

.m-storefront-product-gallery__thumbs {
    display: flex;
    gap: .65rem;
    overflow-x: auto;
    padding: .15rem .15rem .35rem;
    scrollbar-width: thin;
}

.m-storefront-product-gallery__thumb {
    flex: 0 0 76px;
    width: 76px;
    height: 76px;
    padding: 4px;
    overflow: hidden;
    border: 1px solid var(--m-context-border);
    border-radius: 10px;
    background: var(--m-context-surface);
    cursor: pointer;
}

.m-storefront-product-gallery__thumb.is-active {
    border-color: var(--m-context-accent-color);
    box-shadow: 0 0 0 2px var(--m-context-accent-soft);
}

.m-storefront-product-gallery__thumb img {
    width: 100%;
    height: 100%;
    border-radius: 7px;
    object-fit: cover;
}

.m-storefront-product-detail__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.m-storefront-product-detail__content {
    display: grid;
    align-content: center;
    gap: 1rem;
}

.m-storefront-product-detail__content > p,
.m-storefront-product-detail__content h1 {
    margin: 0;
}

.m-storefront-product-detail__content > p,
.m-storefront-product-detail__back {
    color: var(--m-context-text-muted);
}

.m-storefront-product-detail__content h1 {
    color: var(--m-context-text-strong);
    font-size: clamp(2rem, 4vw, 3.5rem);
}

.m-storefront-product-detail__price {
    display: flex;
    align-items: baseline;
    gap: .8rem;
    color: var(--m-context-accent-color);
    font-size: 1.5rem;
}

.m-storefront-product-detail__price del {
    color: var(--m-context-text-muted);
    font-size: 1rem;
}

.m-storefront-product-detail__stock {
    width: fit-content;
    padding: .45rem .7rem;
    border-radius: 999px;
    background: var(--m-context-accent-soft);
    color: var(--m-context-accent-color);
    font-weight: 800;
}

.m-storefront-product-detail__description {
    color: var(--m-context-text-soft);
    line-height: 1.8;
}

.m-storefront-product-detail__actions form {
    display: flex;
    gap: .65rem;
}

.m-storefront-product-detail__actions input,
.m-storefront-product-detail__actions select,
.m-storefront-product-detail__actions button,
.m-storefront-cart input,
.m-storefront-cart button {
    min-height: 42px;
    border: 1px solid var(--m-context-border);
    border-radius: 8px;
    background: var(--m-context-surface);
    color: var(--m-context-text);
}

.m-storefront-product-detail__actions input,
.m-storefront-product-detail__actions select,
.m-storefront-cart input {
    width: 82px;
    padding: .55rem .7rem;
}

.m-storefront-product-detail__actions select {
    width: min(100%, 360px);
    padding: .55rem .7rem;
}

.m-storefront-product-detail__label {
    width: fit-content;
    padding: .35rem .7rem;
    border-radius: 999px;
    font-weight: 800;
}

.m-storefront-product-detail__policies {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
}

.m-storefront-product-detail__policies span {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .45rem .65rem;
    border: 1px solid var(--m-context-border);
    border-radius: 8px;
    color: var(--m-context-text-soft);
}

.m-storefront-smart-bar {
    position: fixed;
    z-index: 80;
    inset-inline: clamp(.75rem, 3vw, 2.5rem);
    bottom: calc(1rem + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    align-items: center;
    gap: .8rem;
    max-width: 980px;
    margin-inline: auto;
    padding: .65rem;
    border: 1px solid color-mix(in srgb, var(--smart-text) 16%, transparent);
    border-radius: 14px;
    background: var(--smart-bg);
    color: var(--smart-text);
    box-shadow: 0 18px 46px rgba(15, 23, 42, .22);
}

.m-storefront-smart-bar--blur {
    background: color-mix(in srgb, var(--smart-bg) 72%, transparent);
    backdrop-filter: blur(18px);
}

.m-storefront-smart-bar img {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 9px;
}

.m-storefront-smart-bar div {
    display: grid;
    gap: .15rem;
}

.m-storefront-smart-bar button {
    min-height: 42px;
    padding: .55rem .9rem;
    border: 0;
    border-radius: 9px;
    background: var(--smart-button);
    color: var(--smart-button-text);
    font-weight: 800;
    cursor: pointer;
}

.m-storefront-product-detail__actions button,
.m-storefront-cart button {
    padding: .6rem 1rem;
    cursor: pointer;
}

.m-storefront-product-detail__actions button {
    border-color: var(--m-context-accent-color);
    background: var(--m-context-accent-color);
    color: var(--m-context-accent-text-inverse);
    font-weight: 850;
}

.m-storefront-cart {
    display: grid;
    gap: 1.25rem;
    padding: var(--storefront-section-gap) var(--storefront-page-pad);
    background: var(--m-context-surface-soft);
}

.m-storefront-cart__head,
.m-storefront-cart__layout,
.m-storefront-cart__items article {
    display: flex;
    gap: 1rem;
}

.m-storefront-cart__head {
    align-items: end;
    justify-content: space-between;
}

.m-storefront-cart__head p,
.m-storefront-cart__head h1 {
    margin: 0;
}

.m-storefront-cart__head p {
    color: var(--m-context-accent-color);
    font-weight: 800;
}

.m-storefront-cart__head h1 {
    color: var(--m-context-text-strong);
    font-size: clamp(2rem, 4vw, 3rem);
}

.m-storefront-cart__layout {
    align-items: start;
}

.m-storefront-cart__items {
    display: grid;
    flex: 1;
    gap: .75rem;
}

.m-storefront-cart__items article,
.m-storefront-cart aside,
.m-storefront-cart__notice {
    padding: 1rem;
    border: 1px solid var(--m-context-border);
    border-radius: var(--storefront-template-card-radius);
    background: var(--m-context-surface);
}

.m-storefront-cart__items article {
    align-items: center;
}

.m-storefront-cart__items article img {
    width: 82px;
    height: 82px;
    object-fit: cover;
    border-radius: 8px;
}

.m-storefront-cart__items article > div {
    display: grid;
    flex: 1;
    gap: .35rem;
}

.m-storefront-cart__items article form {
    display: flex;
    gap: .4rem;
}

.m-storefront-cart aside {
    display: grid;
    gap: 1rem;
    min-width: min(320px, 100%);
}

.m-storefront-cart aside strong {
    color: var(--m-context-accent-color);
    font-size: 1.5rem;
}

.m-storefront-cart aside a {
    padding: .75rem 1rem;
    border-radius: 8px;
    background: var(--m-context-accent-color);
    color: var(--m-context-accent-text-inverse);
    text-align: center;
    font-weight: 800;
}

.m-storefront-mobile-nav {
    display: none;
}

.m-storefront-popup {
    position: fixed;
    inset: 0;
    z-index: 1400;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.m-storefront-popup[hidden],
.m-storefront-cookie[hidden],
.m-storefront-activity-toast[hidden] {
    display: none !important;
}

.m-storefront-popup__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: var(--m-context-overlay);
}

.m-storefront-popup__dialog {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(220px, .8fr) minmax(280px, 1fr);
    width: min(760px, 100%);
    max-height: min(780px, calc(100vh - 2rem));
    overflow: auto;
    border: 1px solid var(--m-context-border);
    border-radius: var(--storefront-template-card-radius);
    background: var(--m-context-surface);
    box-shadow: var(--m-context-shadow-modal);
}

.m-storefront-popup__dialog > img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
}

.m-storefront-popup__content {
    display: grid;
    align-content: center;
    gap: 1rem;
    padding: clamp(1.5rem, 4vw, 3rem);
}

.m-storefront-popup__content h2,
.m-storefront-popup__content p {
    margin: 0;
}

.m-storefront-popup__content h2 {
    color: var(--m-context-text-strong);
    font-size: clamp(1.6rem, 4vw, 2.8rem);
}

.m-storefront-popup__content p {
    color: var(--m-context-text-soft);
    line-height: 1.7;
}

.m-storefront-popup__content > a,
.m-storefront-cookie button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 44px;
    padding: .7rem 1.1rem;
    border: 1px solid var(--m-context-accent-color);
    border-radius: 8px;
    background: var(--m-context-accent-color);
    color: var(--m-context-accent-text-inverse);
    font-weight: 850;
    cursor: pointer;
}

.m-storefront-popup__close {
    position: absolute;
    inset-block-start: .75rem;
    inset-inline-end: .75rem;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--m-context-border);
    border-radius: 999px;
    background: var(--m-context-surface);
    color: var(--m-context-text-strong);
    cursor: pointer;
}

.m-storefront-cookie,
.m-storefront-activity-toast {
    position: fixed;
    z-index: 1300;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid var(--m-context-border);
    border-radius: var(--storefront-template-card-radius);
    background: var(--m-context-surface-elevated);
    color: var(--m-context-text);
    box-shadow: var(--m-context-shadow-modal);
}

.m-storefront-cookie {
    inset-inline-start: 1rem;
    inset-block-end: 1rem;
    width: min(520px, calc(100vw - 2rem));
    padding: 1rem;
}

.m-storefront-cookie p,
.m-storefront-activity-toast p {
    flex: 1 1 auto;
    margin: 0;
    line-height: 1.55;
}

.m-storefront-cookie a {
    color: var(--m-context-accent-color);
    text-decoration: underline;
}

.m-storefront-cookie button {
    flex: 0 0 auto;
}

.m-storefront-activity-toast {
    inset-inline-end: 1rem;
    inset-block-end: 1rem;
    width: min(390px, calc(100vw - 2rem));
    padding: .9rem 1rem;
}

.m-storefront-activity-toast > i {
    color: var(--m-context-accent-color);
    font-size: 1.5rem;
}

.m-storefront-activity-toast button {
    border: 0;
    background: transparent;
    color: var(--m-context-text-muted);
    cursor: pointer;
}

.m-storefront-template--minima .m-storefront-product-card {
    border-inline: 0;
    border-block-start: 0;
    border-radius: 0;
    box-shadow: none;
}

.m-storefront-template--megamart .m-storefront-catalog__grid {
    gap: .7rem;
}

.m-storefront-template--megamart .m-storefront-product-card__body {
    padding: .8rem;
}

.m-storefront-template--classic .m-storefront-categories__rail {
    grid-auto-columns: minmax(280px, calc((100% - 2rem) / 3));
}

.m-storefront-template--classic .m-storefront-category-card {
    grid-template-columns: 112px minmax(0, 1fr);
}

.m-storefront-template--classic .m-storefront-category-card__media {
    aspect-ratio: 1 / 1;
}

.m-storefront-template--classic .m-storefront-category-card__body {
    align-content: center;
    padding: 1rem;
    text-align: start;
}

.m-storefront-template--metro .m-storefront-categories__rail,
.m-storefront-template--minima .m-storefront-categories__rail {
    grid-auto-columns: minmax(230px, calc((100% - 2.1rem) / 4));
}

.m-storefront-template--metro .m-storefront-category-card,
.m-storefront-template--minima .m-storefront-category-card {
    position: relative;
}

.m-storefront-template--metro .m-storefront-category-card__media,
.m-storefront-template--minima .m-storefront-category-card__media {
    aspect-ratio: 4 / 5;
}

.m-storefront-template--metro .m-storefront-category-card__body,
.m-storefront-template--minima .m-storefront-category-card__body {
    position: absolute;
    inset-inline: .75rem;
    inset-block-end: .75rem;
    border-radius: calc(var(--storefront-template-card-radius) - 2px);
    background: var(--m-context-surface-elevated);
    box-shadow: var(--m-context-shadow-panel);
}

.m-storefront-template--reclassic .m-storefront-categories__rail {
    grid-auto-columns: 118px;
}

.m-storefront-template--reclassic .m-storefront-category-card__media {
    aspect-ratio: 1.1 / 1;
}

.m-storefront-template--thecore .m-storefront-categories {
    display: grid;
    grid-template-columns: minmax(190px, .25fr) minmax(0, 1fr);
    gap: 1.25rem;
    padding: 1.25rem;
    border: 1px solid var(--m-context-border);
    border-radius: calc(var(--storefront-template-card-radius) * 2);
    background: var(--m-context-surface);
}

.m-storefront-template--thecore .m-storefront-categories__head {
    display: grid;
    align-content: center;
    justify-content: stretch;
    margin: 0;
}

.m-storefront-template--thecore .m-storefront-categories__actions button {
    display: none;
}

.m-storefront-template--thecore .m-storefront-categories__rail {
    grid-auto-columns: minmax(108px, calc((100% - 3.5rem) / 6));
}

.m-storefront-template--thecore .m-storefront-category-card {
    border: 0;
    background: transparent;
    box-shadow: none;
}

.m-storefront-template--thecore .m-storefront-category-card__media {
    border-radius: 50%;
}

.m-storefront-template--nexa .m-storefront-categories {
    display: grid;
    grid-template-columns: minmax(180px, .2fr) minmax(0, 1fr);
    gap: 1rem;
}

.m-storefront-template--nexa .m-storefront-categories__head {
    display: grid;
    align-content: center;
    justify-content: stretch;
    margin: 0;
}

.m-storefront-template--nexa .m-storefront-categories__actions button {
    display: none;
}

.m-storefront-template--nexa .m-storefront-categories__rail {
    grid-auto-columns: minmax(130px, calc((100% - 4.2rem) / 7));
}

.m-storefront-template--nexa .m-storefront-category-card {
    border: 0;
    background: transparent;
    box-shadow: none;
}

.m-storefront-template--nexa .m-storefront-category-card__media {
    aspect-ratio: 1 / 1.2;
    border-radius: var(--storefront-template-card-radius);
}

.m-storefront-template--nexa .m-storefront-product-card__media {
    aspect-ratio: 1 / 1;
}

.m-storefront-template--thecore .m-storefront-catalog {
    background: var(--m-context-surface-muted);
}

@media (max-width: 1180px) {
    .m-storefront-categories__rail {
        grid-auto-columns: minmax(130px, calc((100% - 2.8rem) / 5));
    }

    .m-storefront-catalog__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .m-storefront-categories__actions button {
        display: none;
    }

    .m-storefront-categories__actions a {
        border: 0;
        padding-inline: .25rem;
        white-space: nowrap;
    }

    .m-storefront-categories__rail,
    .m-storefront-template--classic .m-storefront-categories__rail,
    .m-storefront-template--metro .m-storefront-categories__rail,
    .m-storefront-template--minima .m-storefront-categories__rail,
    .m-storefront-template--reclassic .m-storefront-categories__rail,
    .m-storefront-template--nexa .m-storefront-categories__rail {
        grid-auto-columns: minmax(116px, 31vw);
        gap: .6rem;
    }

    .m-storefront-template--classic .m-storefront-category-card {
        grid-template-columns: 1fr;
    }

    .m-storefront-template--classic .m-storefront-category-card__body {
        padding: .65rem;
        text-align: center;
    }

    .m-storefront-template--metro .m-storefront-categories__rail,
    .m-storefront-template--minima .m-storefront-categories__rail {
        grid-auto-columns: minmax(220px, 78vw);
    }

    .m-storefront-template--thecore .m-storefront-categories,
    .m-storefront-template--nexa .m-storefront-categories {
        grid-template-columns: 1fr;
        padding: .75rem;
    }

    .m-storefront-template--thecore .m-storefront-categories__head,
    .m-storefront-template--nexa .m-storefront-categories__head {
        display: flex;
    }

    .m-storefront-template--thecore .m-storefront-categories__rail,
    .m-storefront-template--nexa .m-storefront-categories__rail {
        grid-auto-columns: minmax(110px, 31vw);
    }

    .m-storefront-product-detail {
        grid-template-columns: 1fr;
    }

    .m-storefront-product-detail__media {
        min-height: 300px;
    }

    .m-storefront-cart__layout,
    .m-storefront-cart__items article {
        align-items: stretch;
        flex-direction: column;
    }

    .m-storefront-cart__items article img {
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 3;
    }

    .m-storefront-shell {
        padding-block-end: calc(76px + env(safe-area-inset-bottom));
    }

    .m-storefront-catalog__head {
        align-items: flex-start;
        flex-direction: column;
    }

    .m-storefront-catalog__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .7rem;
    }

    .m-storefront-product-card__body {
        padding: .8rem;
    }

    .m-storefront-mobile-nav {
        position: fixed;
        inset-inline: 0;
        inset-block-end: 0;
        z-index: 1250;
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: minmax(0, 1fr);
        min-height: 66px;
        padding: .4rem max(.35rem, env(safe-area-inset-left)) calc(.4rem + env(safe-area-inset-bottom)) max(.35rem, env(safe-area-inset-right));
        border-block-start: 1px solid var(--m-context-border);
        background: var(--m-context-surface-elevated);
        box-shadow: var(--m-context-shadow-panel);
    }

    .m-storefront-shell .m-pwa-install__launcher {
        bottom: calc(78px + env(safe-area-inset-bottom));
    }

    .m-storefront-mobile-nav > a,
    .m-storefront-mobile-search > summary {
        display: grid;
        place-items: center;
        align-content: center;
        gap: .2rem;
        width: 100%;
        min-width: 0;
        min-height: 54px;
        box-sizing: border-box;
        color: var(--m-context-text-muted);
        font-size: .72rem;
        font-weight: 800;
        text-align: center;
        border: 0;
        background: transparent;
        cursor: pointer;
    }

    .m-storefront-mobile-nav i {
        font-size: 1.45rem;
    }

    .m-storefront-mobile-nav > a:hover,
    .m-storefront-mobile-nav > a:focus-visible,
    .m-storefront-mobile-search > summary:hover,
    .m-storefront-mobile-search > summary:focus-visible {
        color: var(--m-context-accent-color);
    }

    .m-storefront-mobile-search {
        position: static;
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .m-storefront-mobile-search > summary {
        list-style: none;
    }

    .m-storefront-mobile-search > summary::-webkit-details-marker {
        display: none;
    }

    .m-storefront-mobile-search__panel {
        position: fixed;
        inset: 0;
        z-index: 1350;
        display: grid;
        align-items: start;
        padding: 1rem;
        background: var(--m-context-overlay);
    }

    .m-storefront-mobile-search__panel form {
        position: relative;
        z-index: 1;
        display: grid;
        gap: .65rem;
        width: 100%;
        padding: 1rem;
        border: 1px solid var(--m-context-border);
        border-radius: var(--storefront-template-card-radius);
        background: var(--m-context-surface-elevated);
        box-shadow: var(--m-context-shadow-modal);
    }

    .m-storefront-mobile-search form > label {
        color: var(--m-context-text-strong);
        font-weight: 850;
    }

    .m-storefront-mobile-search__close {
        position: absolute;
        inset-block-start: .75rem;
        inset-inline-end: .75rem;
        display: grid;
        place-items: center;
        width: 38px;
        height: 38px;
        border: 0;
        border-radius: 50%;
        background: var(--m-context-surface-muted);
        color: var(--m-context-text-muted);
        cursor: pointer;
    }

    .m-storefront-mobile-search form > div {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 46px;
        overflow: hidden;
        border: 1px solid var(--m-context-border);
        border-radius: 8px;
    }

    .m-storefront-mobile-search input,
    .m-storefront-mobile-search form > div button {
        min-height: 48px;
        border: 0;
        background: var(--m-context-surface);
        color: var(--m-context-text);
    }

    .m-storefront-mobile-search input {
        min-width: 0;
        padding-inline: .85rem;
    }

    .m-storefront-mobile-search form > div button {
        color: var(--m-context-accent-color);
        cursor: pointer;
    }

    .m-storefront-popup__dialog {
        grid-template-columns: 1fr;
        width: min(92vw, 520px);
        max-height: calc(100dvh - 92px);
        border-radius: 18px;
    }

    .m-storefront-popup__dialog > img {
        min-height: 160px;
        max-height: 210px;
    }

    .m-storefront-popup__content {
        gap: .75rem;
        padding: 1.25rem;
    }

    .m-storefront-popup__content h2 {
        font-size: clamp(1.4rem, 7vw, 2rem);
    }

    .m-storefront-popup__content p {
        line-height: 1.55;
    }

    .m-storefront-popup__content > a {
        width: 100%;
    }

    .m-storefront-cookie,
    .m-storefront-activity-toast {
        inset-inline: .65rem;
        inset-block-end: calc(74px + env(safe-area-inset-bottom));
        width: auto;
    }

    .m-storefront-cookie {
        align-items: stretch;
        flex-direction: column;
    }

    .m-storefront-cookie button {
        width: 100%;
    }
}

@media (max-width: 430px) {
    .m-storefront-catalog__grid {
        grid-template-columns: 1fr 1fr;
    }

    .m-storefront-product-card__media {
        aspect-ratio: 1 / 1;
    }

    .m-storefront-product-card__body h3 {
        font-size: .9rem;
    }

    .m-storefront-product-card__action {
        font-size: .8rem;
    }
}

.m-storefront[data-storefront-template="classic"] {
    --storefront-template-button-radius: 999px;
}

.m-storefront[data-storefront-template="reclassic"] {
    --storefront-template-button-radius: 4px;
    background: var(--m-context-surface-soft);
}

.m-storefront[data-storefront-template="thecore"] {
    --storefront-section-gap: clamp(1.6rem, 4vw, 3.5rem);
    --storefront-template-button-radius: 6px;
}

.m-storefront[data-storefront-template="nexa"] {
    --storefront-page-pad: clamp(1rem, 3vw, 3rem);
    --storefront-template-button-radius: 999px;
    --storefront-template-card-radius: 3px;
}

.m-storefront[data-storefront-template="minima"] {
    --storefront-section-gap: clamp(1.2rem, 3vw, 2.7rem);
    --storefront-template-button-radius: 2px;
    --storefront-template-card-radius: 2px;
    --storefront-template-shadow: none;
}

.m-storefront a {
    color: inherit;
    text-decoration: none;
}

.m-storefront .m-btn,
.m-storefront :where(.btn):not(.m-btn),
.m-storefront :where(button, [type="button"], [type="submit"]):not(.m-storefront-search button):not(.m-storefront-account-menu__panel button) {
    border-radius: var(--storefront-template-button-radius);
}

.m-storefront .m-btn-primary,
.m-storefront .m-btn-solid,
.m-storefront :where(.btn-primary, .btn-success):not(.m-btn) {
    --m-btn-accent-color: var(--storefront-template-button-bg);
    --m-btn-accent-color-hover: var(--m-context-accent-color-hover);
    --m-btn-accent-color-active: var(--m-context-accent-color-active);
    --m-btn-accent-text-inverse: var(--storefront-template-button-text);
}

.m-storefront-announcement {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: var(--storefront-announcement-height, 28px);
    overflow: hidden;
    background: var(--m-context-surface-raised);
    border-block-end: 1px solid var(--m-context-border);
    color: var(--m-context-text-strong);
}

.m-storefront-announcement--dark {
    color: var(--m-context-text-strong);
}

.m-storefront-announcement--light {
    color: var(--m-context-text-strong);
}

.m-storefront-announcement--contained {
    background: transparent;
}

.m-storefront-announcement--contained .m-storefront-announcement__inner {
    margin-inline: auto;
    max-width: min(1180px, calc(100vw - (var(--storefront-page-pad) * 2)));
    background: var(--m-context-surface-raised);
    border-inline: 1px solid var(--m-context-border);
}

.m-storefront-announcement__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.m-storefront-announcement__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.m-storefront-announcement__media::after {
    position: absolute;
    inset: 0;
    content: "";
    background: var(--m-context-overlay);
}

.m-storefront-announcement--dark .m-storefront-announcement__media::after {
    background: var(--m-context-overlay);
}

.m-storefront-announcement__inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    min-height: var(--storefront-announcement-height, 28px);
    padding: .25rem var(--storefront-page-pad);
}

.m-storefront-announcement__items {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    gap: 1.25rem;
    min-width: 0;
    overflow: hidden;
}

.m-storefront-announcement__item {
    color: inherit;
    font-size: .76rem;
    line-height: 1.25;
    white-space: nowrap;
}

.m-storefront-announcement__links,
.m-storefront-nav,
.m-storefront-bottom-bar nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .85rem;
}

.m-storefront-announcement a,
.m-storefront-nav a,
.m-storefront-bottom-bar a {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: var(--m-context-text);
    font-weight: 700;
}

.m-storefront-announcement a {
    color: inherit;
}

.m-storefront-header {
    position: relative;
    z-index: 20;
    display: grid;
    grid-template-columns: minmax(190px, auto) minmax(260px, 1fr) minmax(340px, .8fr) auto;
    align-items: center;
    gap: 1rem;
    padding: .75rem var(--storefront-page-pad);
    background: var(--storefront-template-header-bg);
    border-block-end: 1px solid var(--m-context-border);
    color: var(--storefront-template-header-text);
    box-shadow: var(--storefront-template-shadow);
}

.m-storefront-header--sticky {
    position: sticky;
    inset-block-start: 0;
}

.m-storefront-brand {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    min-width: 0;
}

.m-storefront-brand__mark {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    overflow: hidden;
    border-radius: var(--storefront-template-card-radius);
    background: var(--m-context-accent-soft);
    color: var(--m-context-accent-color);
}

.m-storefront-brand__mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.m-storefront-brand__mark i {
    font-size: 1.6rem;
}

.m-storefront-brand__text {
    display: grid;
    min-width: 0;
}

.m-storefront-brand__text strong {
    overflow: hidden;
    color: var(--m-context-text-strong);
    font-size: 1rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.m-storefront-brand__text small {
    overflow: hidden;
    color: var(--m-context-text-muted);
    font-size: .72rem;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.m-storefront-nav {
    justify-content: center;
}

.m-storefront-nav a {
    min-height: 36px;
    padding-inline: .35rem;
    color: var(--m-context-text-soft);
}

.m-storefront-nav a:hover {
    color: var(--m-context-text-strong);
}

.m-storefront-search {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    min-height: 44px;
    padding-inline: .85rem .35rem;
    border: 1px solid var(--m-context-border);
    border-radius: var(--storefront-template-button-radius);
    background: var(--storefront-template-search-bg);
    color: var(--m-context-text-muted);
}

.m-storefront-search input {
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--m-context-text);
}

.m-storefront-search button,
.m-storefront-icon-link {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: var(--storefront-template-button-radius);
    background: var(--storefront-template-button-bg);
    color: var(--storefront-template-button-text);
}

.m-storefront-header__actions {
    display: flex;
    gap: .5rem;
}

.m-storefront-account-menu {
    position: relative;
}

.m-storefront-account-menu summary {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    min-height: 46px;
    padding: .35rem .45rem .35rem .75rem;
    border: 1px solid var(--m-context-border);
    border-radius: var(--storefront-template-button-radius);
    background: var(--m-context-surface-soft);
    color: var(--m-context-text);
    cursor: pointer;
    list-style: none;
}

.m-storefront-account-menu summary::-webkit-details-marker {
    display: none;
}

.m-storefront-account-menu__avatar {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    overflow: hidden;
    border-radius: var(--storefront-template-card-radius);
    background: var(--m-context-accent-soft);
    color: var(--m-context-accent-color);
}

.m-storefront-account-menu__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.m-storefront-account-menu__text {
    display: grid;
    min-width: 0;
}

.m-storefront-account-menu__text strong,
.m-storefront-account-menu__text small {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.m-storefront-account-menu__text small {
    color: var(--m-context-text-muted);
    font-size: .75rem;
}

.m-storefront-account-menu__panel {
    position: absolute;
    z-index: 30;
    inset-block-start: calc(100% + .45rem);
    inset-inline-end: 0;
    display: grid;
    gap: .3rem;
    min-width: 210px;
    padding: .55rem;
    border: 1px solid var(--m-context-border);
    border-radius: var(--storefront-template-card-radius);
    background: var(--m-context-surface);
    box-shadow: var(--m-context-shadow-panel);
}

.m-storefront-account-menu__panel a,
.m-storefront-account-menu__panel button {
    display: flex;
    align-items: center;
    gap: .55rem;
    width: 100%;
    min-height: 38px;
    padding: .55rem .65rem;
    border: 0;
    border-radius: var(--storefront-template-button-radius);
    background: transparent;
    color: var(--m-context-text);
    font: inherit;
    font-weight: 750;
    text-align: start;
    cursor: pointer;
}

.m-storefront-account-menu__panel a:hover,
.m-storefront-account-menu__panel button:hover {
    background: var(--m-context-surface-soft);
    color: var(--m-context-text-strong);
}

.m-storefront[data-storefront-template="classic"] .m-storefront-header,
.m-storefront[data-storefront-template="metro"] .m-storefront-header,
.m-storefront[data-storefront-template="reclassic"] .m-storefront-header,
.m-storefront[data-storefront-template="nexa"] .m-storefront-header {
    grid-template-columns: minmax(190px, auto) minmax(250px, .9fr) minmax(0, 1fr) auto;
}

.m-storefront[data-storefront-template="thecore"] .m-storefront-announcement,
.m-storefront[data-storefront-template="megamart"] .m-storefront-announcement,
.m-storefront[data-storefront-template="nexa"] .m-storefront-announcement {
    min-height: 46px;
    font-weight: 800;
}

.m-storefront[data-storefront-template="nexa"] .m-storefront-header {
    border-block-end: 2px solid var(--m-context-accent-color);
}

.m-storefront[data-storefront-template="metro"] .m-storefront-header,
.m-storefront[data-storefront-template="reclassic"] .m-storefront-header {
    border-block-start: 4px solid var(--m-context-accent-color);
}

.m-storefront[data-storefront-template="thecore"] .m-storefront-header,
.m-storefront[data-storefront-template="megamart"] .m-storefront-header {
    border-block-end: 3px solid var(--m-context-accent-color);
}

.m-storefront[data-storefront-template="minima"] .m-storefront-announcement {
    border-block-end: 0;
}

.m-storefront[data-storefront-template="minima"] .m-storefront-header {
    box-shadow: none;
}

.m-storefront[data-storefront-template="classic"] .m-storefront-search,
.m-storefront[data-storefront-template="thecore"] .m-storefront-search,
.m-storefront[data-storefront-template="megamart"] .m-storefront-search {
    box-shadow: inset 0 0 0 1px var(--m-context-border-active);
}

.m-storefront[data-storefront-template="metro"] .m-storefront-nav a,
.m-storefront[data-storefront-template="reclassic"] .m-storefront-nav a,
.m-storefront[data-storefront-template="nexa"] .m-storefront-nav a {
    font-weight: 900;
}

.m-storefront[data-storefront-template="thecore"] .m-storefront-nav a,
.m-storefront[data-storefront-template="megamart"] .m-storefront-nav a {
    min-height: 40px;
    padding-inline: .7rem;
    border-radius: var(--storefront-template-button-radius);
}

.m-storefront[data-storefront-template="thecore"] .m-storefront-nav a:hover,
.m-storefront[data-storefront-template="megamart"] .m-storefront-nav a:hover {
    background: var(--m-context-accent-soft);
    color: var(--m-context-accent-color);
}

.m-storefront[data-storefront-template="nexa"] .m-storefront-brand__mark,
.m-storefront[data-storefront-template="classic"] .m-storefront-brand__mark {
    width: 42px;
    height: 42px;
}

.m-storefront[data-storefront-template="metro"] .m-storefront-brand__mark,
.m-storefront[data-storefront-template="reclassic"] .m-storefront-brand__mark {
    background: var(--m-context-accent-color);
    color: var(--m-context-accent-text-inverse);
}

.m-storefront-header {
    display: block;
    padding: 0;
    background: var(--storefront-template-header-bg);
    direction: inherit;
}

.m-storefront-header__inner {
    display: grid;
    grid-template-columns: minmax(180px, 260px) minmax(0, 1fr) auto auto;
    align-items: center;
    gap: clamp(.75rem, 1.5vw, 1.5rem);
    width: min(100% - 2rem, 1780px);
    min-height: 72px;
    margin-inline: auto;
}

.m-storefront-header--full .m-storefront-header__inner {
    width: 100%;
    padding-inline: var(--storefront-page-pad);
}

.m-storefront-header :where(a, summary, button, input) {
    direction: inherit;
}

.m-storefront-brand {
    min-height: 56px;
}

.m-storefront-brand__text {
    direction: inherit;
}

.m-storefront-nav {
    display: flex;
    justify-content: center;
    gap: clamp(.6rem, 1.2vw, 1.35rem);
    min-width: 0;
}

.m-storefront-nav a,
.m-storefront-more-menu summary {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    min-height: 40px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--m-context-text-strong);
    font-size: .9rem;
    font-weight: 850;
    white-space: nowrap;
    cursor: pointer;
}

.m-storefront-nav__category {
    gap: .5rem;
}

.m-storefront-more-menu,
.m-storefront-search-menu,
.m-storefront-switcher-menu {
    position: relative;
}

.m-storefront-more-menu summary::-webkit-details-marker,
.m-storefront-search-menu summary::-webkit-details-marker,
.m-storefront-switcher-menu summary::-webkit-details-marker {
    display: none;
}

.m-storefront-search-menu summary {
    display: grid;
    place-items: center;
    width: 60px;
    height: 40px;
    border-radius: 999px;
    background: var(--storefront-template-button-bg);
    color: var(--storefront-template-button-text);
    cursor: pointer;
}

.m-storefront-search-menu summary i {
    font-size: 1.25rem;
}

.m-storefront-more-menu__panel,
.m-storefront-search-menu__panel,
.m-storefront-switcher-menu__panel {
    position: absolute;
    z-index: 40;
    inset-block-start: calc(100% + .6rem);
    inset-inline-start: 0;
    min-width: 220px;
    border: 1px solid var(--m-context-border);
    background: var(--m-context-surface);
    box-shadow: var(--m-context-shadow-panel);
}

[dir="rtl"] .m-storefront-switcher-menu__panel {
    inset-inline-start: auto;
    right: 0;
}

[dir="ltr"] .m-storefront-switcher-menu__panel {
    inset-inline-start: auto;
    left: 0;
}

.m-storefront-more-menu:not([open]) > .m-storefront-more-menu__panel,
.m-storefront-search-menu:not([open]) > .m-storefront-search-menu__panel,
.m-storefront-switcher-menu:not([open]) > .m-storefront-switcher-menu__panel,
.m-storefront-account-menu:not([open]) > .m-storefront-account-menu__panel {
    display: none;
}

.m-storefront-search-menu__panel {
    inset-inline-start: 50%;
    width: min(760px, calc(100vw - 2rem));
    padding: 1rem;
    transform: translateX(-50%);
}

.m-storefront-more-menu__panel a,
.m-storefront-switcher-menu__panel a,
.m-storefront-switcher-menu__panel span {
    display: flex;
    align-items: center;
    min-height: 40px;
    padding: .65rem .9rem;
    border-block-end: 1px solid var(--m-context-border);
    color: var(--m-context-text-soft);
    font-size: .86rem;
    font-weight: 750;
}

.m-storefront-preferences {
    display: grid;
    gap: .85rem;
    width: min(320px, calc(100vw - 2rem));
    padding: .85rem;
}

.m-storefront-switcher-menu__panel.m-storefront-preferences :where(span, small) {
    display: inline;
    min-height: 0;
    padding: 0;
    border: 0;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
}

.m-storefront-preferences__group {
    display: block;
    min-width: 0;
    margin: 0;
}

.m-storefront-preferences__group--mode {
    order: 1;
}

.m-storefront-preferences__group--template {
    order: 2;
}

.m-storefront-preferences__group--theme {
    order: 3;
}

.m-storefront-preferences__group--language {
    order: 4;
}

.m-storefront-preferences__group--currency {
    order: 5;
}

.m-storefront-preferences__group + .m-storefront-preferences__group {
    margin-block-start: .45rem;
}

.m-storefront-preferences__group > .m-card__header {
    min-height: 0;
    padding: .6rem .7rem;
}

.m-storefront-preferences__group > .m-card__collapsible > .m-card__body {
    padding: .3rem .55rem .55rem;
}

.m-storefront-preferences__group .m-card__title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.m-storefront-preferences__title {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: .5rem;
    color: var(--m-context-text-strong);
    font-size: .86rem;
    font-weight: 850;
}

.m-storefront-preferences__title i {
    color: var(--m-context-accent-color);
    font-size: 1.1rem;
}

.m-storefront-preferences__title small {
    overflow: hidden;
    color: var(--m-context-text-muted);
    font-size: .72rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.m-storefront-preferences__choices {
    display: grid;
    gap: .35rem;
}

.m-storefront-preferences__choices form {
    margin: 0;
}

.m-storefront-preferences__choices button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .65rem;
    width: 100%;
    min-height: 38px;
    padding: .55rem .65rem;
    border: 1px solid transparent;
    border-radius: var(--storefront-template-button-radius);
    background: transparent;
    color: var(--m-context-text-soft);
    font: inherit;
    font-size: .84rem;
    font-weight: 800;
    text-align: start;
    cursor: pointer;
}

.m-storefront-preferences__choices button:hover {
    border-color: var(--m-context-state-hover-border);
    background: var(--m-context-state-hover-bg);
    color: var(--m-context-state-hover-accent);
}

.m-storefront-preferences__choices button.is-active {
    border-color: var(--m-context-state-selected-border);
    background: var(--m-context-state-selected-bg);
    color: var(--m-context-state-selected-accent);
    box-shadow: var(--m-context-shadow-active);
}

.m-storefront-preferences__choices button.is-active:hover {
    border-color: var(--m-context-state-active-border);
    background: var(--m-context-state-active-bg);
    color: var(--m-context-state-active-accent);
}

.m-storefront-preferences__choices button small {
    color: inherit;
    font-size: .72rem;
    opacity: .75;
}

.m-storefront-preferences__choices button > span {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    min-width: 0;
}

.m-storefront-preferences__choices button > span i {
    width: 1.1rem;
    text-align: center;
}

.m-storefront-preferences__select-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .45rem;
    margin: 0;
}

.m-storefront-preferences__select-form select,
.m-storefront-preferences__select-form button {
    min-width: 0;
    min-height: 40px;
    border: 1px solid var(--m-context-border);
    border-radius: var(--storefront-template-button-radius);
    background: var(--m-context-surface-raised);
    color: var(--m-context-text);
    font: inherit;
    font-size: .82rem;
    font-weight: 800;
}

.m-storefront-preferences__select-form select {
    width: 100%;
    padding-inline: .7rem;
}

.m-storefront-preferences__select-form button {
    padding-inline: .85rem;
    border-color: var(--m-context-accent-color);
    background: var(--m-context-accent-color);
    color: var(--m-context-accent-text-inverse);
    cursor: pointer;
}

.m-storefront-preferences__select-form :focus-visible {
    outline: 2px solid var(--m-context-state-focus-ring);
    outline-offset: 2px;
}

.m-storefront-more-menu__panel a:last-child,
.m-storefront-switcher-menu__panel a:last-child,
.m-storefront-switcher-menu__panel span:last-child {
    border-block-end: 0;
}

.m-storefront-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 48px;
}

.m-storefront-header__tools {
    display: flex;
    align-items: center;
    justify-content: end;
    gap: clamp(.65rem, 1vw, 1rem);
}

.m-storefront-switcher-menu summary,
.m-storefront-cart-link,
.m-storefront-account-link {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    min-height: 42px;
    border: 0;
    background: transparent;
    color: var(--m-context-text-strong);
    font-size: .9rem;
    font-weight: 850;
    white-space: nowrap;
    cursor: pointer;
}

.m-storefront-switcher-menu summary {
    width: 42px;
    justify-content: center;
}

.m-storefront-account-menu summary {
    min-height: 48px;
    border: 0;
    background: transparent;
}

.m-storefront-account-menu__panel {
    min-width: 240px;
}

.m-storefront[data-storefront-template="nexa"] .m-storefront-header,
.m-storefront[data-storefront-template="reclassic"] .m-storefront-header,
.m-storefront[data-storefront-template="metro"] .m-storefront-header {
    min-height: 72px;
}

.m-storefront-hero {
    display: grid;
    grid-template-columns: minmax(320px, .82fr) minmax(460px, 1.18fr);
    align-items: center;
    gap: clamp(1rem, 2vw, 2rem);
    min-height: auto;
    padding: clamp(1.5rem, 4vw, 3.5rem) var(--storefront-page-pad);
    overflow: hidden;
}

.m-storefront-hero__content {
    align-self: stretch;
    display: grid;
    align-content: center;
    padding: clamp(1rem, 2.5vw, 2rem);
    border: 1px solid var(--m-context-border);
    border-radius: 8px;
    background: var(--m-context-surface);
    box-shadow: var(--m-context-shadow-panel);
}

.m-storefront-hero--content-only {
    grid-template-columns: minmax(0, 1fr);
}

.m-storefront-hero--content-only .m-storefront-hero__content {
    width: min(100%, 920px);
    margin-inline: auto;
}

.m-storefront-eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin: 0 0 1rem;
    padding: .4rem .7rem;
    border: 1px solid var(--m-context-border);
    border-radius: 8px;
    background: var(--m-context-accent-soft);
    color: var(--m-context-accent-color);
    font-weight: 800;
}

.m-storefront-hero h1 {
    max-width: 760px;
    margin: 0;
    color: var(--m-context-text-strong);
    font-size: clamp(2.4rem, 5vw, 5.4rem);
    line-height: 1;
}

.m-storefront-lead {
    max-width: 650px;
    margin: 1.25rem 0 0;
    color: var(--m-context-text-soft);
    font-size: clamp(1rem, 1.4vw, 1.25rem);
    line-height: 1.8;
}

.m-storefront-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .85rem;
    margin-block-start: 1.6rem;
}

.m-storefront-trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-block-start: 1.6rem;
}

.m-storefront-trust-strip a {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .65rem .8rem;
    border: 1px solid var(--m-context-border);
    border-radius: 8px;
    background: var(--m-context-surface-soft);
    color: var(--m-context-text-soft);
    font-weight: 750;
}

.m-storefront-trust-strip i {
    color: var(--m-context-accent-color);
}

.m-storefront-hero__stage {
    position: relative;
    min-height: 460px;
    overflow: hidden;
    border: 1px solid var(--m-context-border);
    border-radius: 8px;
    background: var(--m-context-surface);
    box-shadow: var(--m-context-shadow-panel);
}

.m-storefront-hero__stage img {
    width: 100%;
    height: 100%;
    min-height: 460px;
    object-fit: cover;
}

.m-storefront-slider {
    position: relative;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    height: 100%;
    min-height: 460px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
}

.m-storefront-slider::-webkit-scrollbar {
    display: none;
}

.m-storefront-slider__slide {
    position: relative;
    display: block;
    min-width: 0;
    min-height: 460px;
    overflow: hidden;
    scroll-snap-align: start;
    background: var(--m-context-surface-soft);
}

.m-storefront-slider__slide picture {
    display: block;
    width: 100%;
    height: 100%;
}

.m-storefront-slider__slide img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 460px;
    object-fit: cover;
}

.m-storefront-slider__caption {
    position: absolute;
    inset-inline: 1.25rem;
    inset-block-end: 1.25rem;
    display: grid;
    gap: .35rem;
    max-width: min(520px, calc(100% - 2.5rem));
    padding: 1rem;
    border: 1px solid color-mix(in srgb, var(--m-context-border), transparent 20%);
    border-radius: 8px;
    background: color-mix(in srgb, var(--m-context-surface), transparent 8%);
    box-shadow: var(--m-context-shadow-panel);
    backdrop-filter: blur(10px);
}

.m-storefront-slider__caption strong {
    color: var(--m-context-text-strong);
    font-size: clamp(1.15rem, 2vw, 1.8rem);
    line-height: 1.1;
}

.m-storefront-slider__caption small {
    color: var(--m-context-text-soft);
    line-height: 1.6;
}

.m-storefront-slider__dots {
    position: absolute;
    inset-inline: 1.25rem;
    inset-block-start: 1.25rem;
    display: flex;
    gap: .4rem;
    pointer-events: none;
}

.m-storefront-slider__dots span {
    width: 2rem;
    height: .25rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--m-context-surface), transparent 45%);
}

.m-storefront-slider__dots span.is-active {
    background: var(--m-context-accent-color);
}

.m-storefront-hero-card {
    position: absolute;
    inset-inline: 1.25rem auto;
    inset-block-end: 1.25rem;
    display: grid;
    gap: .2rem;
    min-width: 220px;
    padding: 1rem;
    border: 1px solid var(--m-context-border);
    border-radius: 8px;
    background: var(--m-context-surface);
    box-shadow: var(--m-context-shadow-panel);
}

.m-storefront-hero-card span {
    color: var(--m-context-text-muted);
    font-size: .8rem;
}

.m-storefront-hero-card strong {
    color: var(--m-context-text-strong);
}

.m-storefront-showcase {
    display: grid;
    gap: 1rem;
    min-height: 460px;
    padding: 1rem;
}

.m-storefront-showcase__banner {
    display: grid;
    align-content: end;
    gap: .55rem;
    min-height: 270px;
    padding: 1.2rem;
    border: 1px solid var(--m-context-border);
    border-radius: 8px;
    background: var(--m-slot-c6-surface, var(--m-context-surface));
}

.m-storefront-showcase__banner span,
.m-storefront-showcase__grid span {
    color: var(--m-context-text-muted);
    font-weight: 750;
}

.m-storefront-showcase__banner strong {
    max-width: 520px;
    color: var(--m-context-text-strong);
    font-size: clamp(1.5rem, 2.5vw, 2.6rem);
    line-height: 1.05;
}

.m-storefront-showcase__banner small {
    max-width: 520px;
    color: var(--m-context-text-soft);
    font-size: .95rem;
    line-height: 1.6;
}

.m-storefront-showcase__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.m-storefront-showcase__grid article {
    display: grid;
    gap: .35rem;
    min-height: 130px;
    padding: 1rem;
    border: 1px solid var(--m-context-border);
    border-radius: 8px;
    background: var(--m-context-surface);
}

.m-storefront-showcase__grid i {
    color: var(--m-context-accent-color);
    font-size: 2rem;
}

.m-storefront-showcase__grid strong {
    color: var(--m-context-text-strong);
}

.m-storefront-promos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    padding: 0 var(--storefront-page-pad) var(--storefront-section-gap);
}

.m-storefront-promo {
    display: grid;
    grid-template-rows: minmax(180px, 1fr) auto;
    min-height: 320px;
    overflow: hidden;
    padding: 1.25rem;
    border: 1px solid var(--m-context-border);
    border-radius: 8px;
    background: var(--m-context-surface-soft);
    color: var(--m-context-text);
}

.m-storefront-promo picture {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 180px;
}

.m-storefront-promo img {
    width: 100%;
    height: 100%;
    min-height: 180px;
    object-fit: cover;
    border-radius: 8px;
}

.m-storefront-promo__visual {
    display: grid;
    place-items: center;
    min-height: 180px;
    margin: 0;
    border: 1px solid var(--m-context-border);
    border-radius: 8px;
    background: var(--m-context-surface);
    color: var(--m-context-accent-color);
}

.m-storefront-promo__visual i {
    font-size: 2.4rem;
}

.m-storefront-promo span {
    width: fit-content;
    margin-block: 1rem .55rem;
    padding: .35rem .65rem;
    border-radius: 8px;
    background: var(--m-context-accent-soft);
    color: var(--m-context-accent-color);
    font-weight: 800;
}

.m-storefront-promo strong {
    max-width: 520px;
    font-size: clamp(1.35rem, 3vw, 2.25rem);
    line-height: 1.08;
}

.m-storefront-promo small {
    max-width: 540px;
    margin-block-start: .55rem;
    color: var(--m-context-text-soft);
    font-size: .96rem;
    line-height: 1.6;
}

.m-storefront-section {
    padding: var(--storefront-section-gap) var(--storefront-page-pad);
    background: var(--m-context-surface-soft);
    border-block: 1px solid var(--m-context-border);
}

.m-storefront-section__head {
    max-width: 760px;
    margin-block-end: 1.5rem;
}

.m-storefront-section__head p {
    margin: 0 0 .5rem;
    color: var(--m-context-accent-color);
    font-weight: 800;
}

.m-storefront-section__head h2 {
    margin: 0;
    color: var(--m-context-text-strong);
    font-size: clamp(1.9rem, 4vw, 3.7rem);
    line-height: 1.05;
}

.m-storefront-feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.m-storefront-feature-grid article {
    min-height: 250px;
    padding: 1.2rem;
    border: 1px solid var(--m-context-border);
    border-radius: 8px;
    background: var(--m-context-surface);
    box-shadow: var(--m-context-shadow);
}

.m-storefront-feature-grid i {
    color: var(--m-context-accent-color);
    font-size: 2rem;
}

.m-storefront-feature-grid h3 {
    margin: 1rem 0 .6rem;
    color: var(--m-context-text-strong);
    font-size: 1.08rem;
}

.m-storefront-feature-grid p {
    margin: 0;
    color: var(--m-context-text-soft);
    line-height: 1.7;
}

.m-storefront-products {
    display: grid;
    gap: 1rem;
}

.m-storefront-products__section {
    display: grid;
    gap: 1rem;
    padding: 1.2rem;
    border: 1px solid var(--m-context-border);
    border-radius: 8px;
    background: var(--m-context-surface);
    box-shadow: var(--m-context-shadow);
}

.m-storefront-products__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.m-storefront-products__header h2 {
    margin: 0;
    color: var(--m-context-text-strong);
    font-size: clamp(1.4rem, 2vw, 2.4rem);
}

.m-storefront-products__header p {
    margin: .35rem 0 0;
    color: var(--m-context-text-soft);
}

.m-storefront-products__media {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid var(--m-context-border);
    aspect-ratio: 5 / 1.35;
}

.m-storefront-products__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.m-storefront-products__placeholder {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .85rem;
}

.m-storefront-products__slot {
    min-height: 180px;
    display: grid;
    align-content: center;
    gap: .55rem;
    padding: 1rem;
    border: 1px dashed var(--m-context-border);
    border-radius: 8px;
    color: var(--m-context-text-soft);
    background: color-mix(in srgb, var(--m-context-surface) 78%, var(--m-context-accent-soft));
}

.m-storefront-products__slot span {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    background: var(--m-context-accent-soft);
}

.m-storefront-products__slot strong {
    color: var(--m-context-text-strong);
}

/* Product page composition ------------------------------------------------- */
.m-product-page {
    box-sizing: border-box;
    width: min(100%, 1480px);
    margin-inline: auto;
    padding: clamp(1rem, 2.6vw, 2.5rem) var(--storefront-page-pad) clamp(4rem, 7vw, 7rem);
    color: var(--m-context-text);
}

.m-product-page__breadcrumb {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin-block-end: 1.1rem;
    color: var(--m-context-text-muted);
    font-size: .9rem;
}

.m-product-page__breadcrumb a {
    color: inherit;
    text-decoration: none;
}

.m-product-page__hero {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
    align-items: start;
    gap: clamp(1.25rem, 3vw, 3rem);
}

.m-product-page--without-media .m-product-page__hero {
    grid-template-columns: minmax(0, 760px);
    justify-content: center;
}

.m-product-gallery {
    position: sticky;
    top: 1rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 82px;
    grid-template-areas: "stage thumbs";
    gap: .75rem;
    min-width: 0;
}

.m-product-gallery__stage {
    grid-area: stage;
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    max-height: min(70vh, 760px);
    border: 1px solid var(--m-context-border);
    border-radius: clamp(16px, 2vw, 26px);
    background: var(--m-context-surface);
    box-shadow: 0 24px 70px rgba(15, 23, 42, .08);
}

.m-product-gallery__stage > img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity .18s ease, transform .35s ease;
}

.m-product-gallery__stage:hover > img {
    transform: scale(1.015);
}

.m-product-gallery__label {
    position: absolute;
    inset-block-start: 1rem;
    inset-inline-start: 1rem;
    padding: .42rem .8rem;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 850;
}

.m-product-gallery__thumbs,
.m-product-option-rail,
.m-product-related__rail {
    scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb, var(--m-context-accent-color) 45%, transparent) transparent;
}

.m-product-gallery__thumbs {
    grid-area: thumbs;
    display: flex;
    flex-direction: column;
    gap: .65rem;
    max-height: min(70vh, 760px);
    overflow-y: auto;
    overflow-x: hidden;
    padding: .1rem .2rem .1rem;
}

.m-product-gallery__thumb {
    flex: 0 0 76px;
    width: 76px;
    height: 76px;
    padding: 4px;
    overflow: hidden;
    border: 1px solid var(--m-context-border);
    border-radius: 13px;
    background: var(--m-context-surface);
    cursor: pointer;
}

.m-product-gallery__thumb.is-active {
    border-color: var(--m-context-accent-color);
    box-shadow: 0 0 0 2px var(--m-context-accent-soft);
}

.m-product-gallery__thumb img {
    width: 100%;
    height: 100%;
    border-radius: 9px;
    object-fit: cover;
}

.m-product-page__buy-panel {
    display: grid;
    gap: 1.35rem;
    padding: clamp(1.15rem, 2.2vw, 2rem);
    border: 1px solid var(--m-context-border);
    border-radius: clamp(16px, 2vw, 26px);
    background: color-mix(in srgb, var(--m-context-surface) 94%, transparent);
    box-shadow: 0 24px 70px rgba(15, 23, 42, .07);
}

.m-product-identity {
    display: grid;
    gap: .75rem;
}

.m-product-identity__eyebrow,
.m-product-identity__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .55rem;
    color: var(--m-context-text-muted);
    font-size: .9rem;
}

.m-product-identity h1 {
    margin: 0;
    color: var(--m-context-text-strong);
    font-size: clamp(1.85rem, 3.2vw, 3.15rem);
    line-height: 1.18;
    letter-spacing: -.025em;
}

.m-product-rating,
.m-product-identity__new {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .3rem .58rem;
    border-radius: 999px;
    background: var(--m-context-surface-muted);
    color: var(--m-context-text-soft);
    font-weight: 750;
}

.m-product-rating i {
    color: #f59e0b;
}

.m-product-identity__new {
    background: var(--m-context-accent-soft);
    color: var(--m-context-accent-color);
}

.m-product-purchase {
    display: grid;
    gap: 1.15rem;
}

.m-product-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: .7rem;
    min-height: 2.5rem;
}

.m-product-price strong {
    color: var(--m-context-accent-color);
    font-size: clamp(1.45rem, 2.4vw, 2.1rem);
    line-height: 1.2;
}

.m-product-price del {
    color: var(--m-context-text-muted);
    font-size: .95rem;
}

.m-product-price__delivery {
    flex-basis: 100%;
    margin-block-start: -.45rem;
    color: var(--m-context-text-muted);
    font-size: .72rem;
    font-weight: 700;
}

.m-product-options {
    display: grid;
    gap: 1rem;
    min-width: 0;
}

.m-product-option-group {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.m-product-option-group legend {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    margin-block-end: .55rem;
    color: var(--m-context-text-strong);
    font-size: .88rem;
    font-weight: 800;
}

.m-product-option-group legend strong {
    overflow: hidden;
    color: var(--m-context-accent-color);
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.m-product-option-rail {
    display: flex;
    gap: .55rem;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding: .15rem .1rem .55rem;
    scroll-snap-type: inline proximity;
    touch-action: pan-x;
    cursor: grab;
}

.m-product-option-rail.is-dragging {
    cursor: grabbing;
    user-select: none;
}

.m-product-option {
    flex: 0 0 auto;
    scroll-snap-align: start;
    min-height: 42px;
    padding: .58rem .9rem;
    border: 1px solid var(--m-context-border);
    border-radius: 12px;
    background: var(--m-context-surface);
    color: var(--m-context-text-soft);
    font: inherit;
    font-size: .88rem;
    font-weight: 700;
    cursor: pointer;
    transition: border-color .16s ease, background .16s ease, color .16s ease, transform .16s ease;
}

.m-product-option:hover:not(:disabled) {
    border-color: var(--m-context-border-strong);
    transform: translateY(-1px);
}

.m-product-option.is-selected {
    border-color: var(--m-context-accent-color);
    background: var(--m-context-accent-soft);
    color: var(--m-context-accent-color);
    box-shadow: 0 0 0 1px var(--m-context-accent-color);
}

.m-product-option:disabled {
    opacity: .34;
    cursor: not-allowed;
    text-decoration: line-through;
}

.m-product-option--color {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    min-width: 58px;
    height: 58px;
    min-height: 58px;
    padding: 3px;
    border-radius: 14px;
}

.m-product-option__swatch {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 2px solid var(--m-context-surface);
    border-radius: 10px;
    background: var(--m-context-surface-muted);
    box-shadow: 0 0 0 1px var(--m-context-border-strong);
}

.m-product-option__swatch img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.m-product-option--color .m-product-option__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.m-product-stock-empty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    min-height: 48px;
    padding: .58rem .78rem;
    border: 1px solid color-mix(in srgb, #ef4444 25%, var(--m-context-border));
    border-radius: 13px;
    background: color-mix(in srgb, #ef4444 7%, var(--m-context-surface));
    color: #b42318;
    font-size: .78rem;
    font-weight: 800;
}

.m-product-fulfillment {
    grid-column: 1 / -1;
    display: grid;
    gap: .55rem;
    min-width: 0;
    padding: .68rem;
    border: 1px solid var(--m-context-border);
    border-radius: 13px;
    background: color-mix(in srgb, var(--m-context-surface-soft) 88%, var(--m-context-accent-soft));
}

.m-product-fulfillment__head {
    display: flex;
    align-items: flex-start;
    align-items: center;
    gap: .5rem;
}

.m-product-fulfillment__icon {
    width: 31px;
    height: 31px;
    flex: 0 0 31px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: var(--m-context-accent-soft);
    color: var(--m-context-accent-color);
    font-size: 1rem;
}

.m-product-fulfillment__head h2 {
    margin: 0;
    color: var(--m-context-text-strong);
    font-size: .84rem;
}

.m-product-fulfillment__head p {
    display: grid;
    gap: .15rem;
    margin: .12rem 0 0;
    color: var(--m-context-text-muted);
    font-size: .68rem;
}

.m-product-fulfillment__head p strong {
    overflow: hidden;
    color: var(--m-context-text-soft);
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.m-product-fulfillment__picker {
    display: grid;
    gap: .45rem;
    min-width: 0;
}

.m-product-fulfillment__methods {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .4rem;
    min-width: 0;
}

.m-product-fulfillment-method {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) 16px;
    align-items: center;
    gap: .42rem;
    min-width: 0;
    padding: .48rem .52rem;
    border: 1px solid var(--m-context-border);
    border-radius: 10px;
    background: var(--m-context-surface);
    color: var(--m-context-text-soft);
    text-align: start;
    cursor: pointer;
    transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.m-product-fulfillment-method:hover {
    border-color: var(--m-context-border-strong);
}

.m-product-fulfillment-method.is-selected,
.m-product-fulfillment-method[aria-checked="true"] {
    border-color: var(--m-context-accent-color);
    background: color-mix(in srgb, var(--m-context-accent-soft) 62%, var(--m-context-surface));
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--m-context-accent-color) 28%, transparent);
}

.m-product-fulfillment-method > i:first-child {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--m-context-accent-soft);
    color: var(--m-context-accent-color);
    font-size: 1rem;
}

.m-product-fulfillment-method > span {
    display: grid;
    gap: .05rem;
    min-width: 0;
}

.m-product-fulfillment-method strong {
    overflow: hidden;
    color: var(--m-context-text-strong);
    font-size: .73rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.m-product-fulfillment-method small {
    color: var(--m-context-text-muted);
    font-size: .62rem;
}

.m-product-fulfillment-method > i:last-child {
    color: transparent;
    font-size: .9rem;
}

.m-product-fulfillment-method.is-selected > i:last-child,
.m-product-fulfillment-method[aria-checked="true"] > i:last-child {
    color: var(--m-context-accent-color);
}

.m-product-fulfillment-method:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.m-product-fulfillment__choice {
    display: grid;
    gap: .22rem;
}

.m-product-fulfillment__choice label {
    color: var(--m-context-text-muted);
    font-size: .66rem;
    font-weight: 800;
}

.m-product-fulfillment__choice select {
    width: 100%;
    min-height: 38px;
    padding: .42rem .55rem;
    border: 1px solid var(--m-context-border-strong);
    border-radius: 9px;
    background: var(--m-context-surface);
    color: var(--m-context-text-strong);
    font: inherit;
    font-size: .73rem;
    outline: none;
}

.m-product-fulfillment__choice select:focus {
    border-color: var(--m-context-accent-color);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--m-context-accent-color) 12%, transparent);
}

.m-product-fulfillment__summary {
    display: grid;
    grid-template-columns: 31px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: .42rem;
    min-width: 0;
    padding: .42rem .48rem;
    border-radius: 9px;
    background: color-mix(in srgb, var(--m-context-surface) 84%, var(--m-context-accent-soft));
}

.m-product-fulfillment__summary-icon {
    width: 31px;
    height: 31px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 8px;
    background: var(--m-context-surface);
    color: var(--m-context-accent-color);
    font-size: 1rem;
}

.m-product-fulfillment__summary-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.m-product-fulfillment__summary-copy,
.m-product-fulfillment__summary-price {
    display: grid;
    gap: .06rem;
    min-width: 0;
}

.m-product-fulfillment__summary-copy strong {
    overflow: hidden;
    color: var(--m-context-text-strong);
    font-size: .71rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.m-product-fulfillment__summary-copy small,
.m-product-fulfillment__summary-price small {
    overflow: hidden;
    color: var(--m-context-text-muted);
    font-size: .6rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.m-product-fulfillment__summary-price {
    text-align: end;
}

.m-product-fulfillment__summary-price strong {
    color: var(--m-context-accent-color);
    font-size: .69rem;
    white-space: nowrap;
}

.m-product-fulfillment__summary > a {
    display: inline-flex;
    align-items: center;
    gap: .2rem;
    color: var(--m-context-accent-color);
    font-size: .65rem;
    font-weight: 800;
    text-decoration: none;
}

.m-product-fulfillment__notice {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    padding: .75rem;
    border: 1px dashed var(--m-context-border-strong);
    border-radius: 12px;
    background: var(--m-context-surface);
    color: var(--m-context-text-soft);
}

.m-product-fulfillment__notice > i {
    color: var(--m-context-accent-color);
    font-size: 1.2rem;
}

.m-product-fulfillment__notice > div {
    display: grid;
    gap: .28rem;
}

.m-product-fulfillment__notice strong,
.m-product-fulfillment__notice span {
    font-size: .76rem;
    line-height: 1.5;
}

.m-product-fulfillment__notice a {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    width: fit-content;
    color: var(--m-context-accent-color);
    font-size: .74rem;
    font-weight: 800;
    text-decoration: none;
}

.m-product-fulfillment__notice--danger {
    border-style: solid;
    border-color: color-mix(in srgb, #ef4444 35%, var(--m-context-border));
    background: color-mix(in srgb, #ef4444 6%, var(--m-context-surface));
}

.m-product-fulfillment__notice--danger > i {
    color: #b42318;
}

.m-product-buy-form {
    display: grid;
    grid-template-columns: auto minmax(180px, 1fr);
    gap: .65rem;
}

.m-product-quantity {
    display: grid;
    grid-template-columns: 38px 56px 38px;
    align-items: stretch;
    overflow: hidden;
    min-height: 48px;
    border: 1px solid var(--m-context-border);
    border-radius: 13px;
    background: var(--m-context-surface);
}

.m-product-quantity button,
.m-product-quantity input {
    min-width: 0;
    border: 0;
    background: transparent;
    color: var(--m-context-text-strong);
    text-align: center;
    font: inherit;
}

.m-product-quantity button {
    cursor: pointer;
    font-size: 1.2rem;
}

.m-product-quantity input {
    width: 56px;
    appearance: textfield;
    font-weight: 800;
}

.m-product-quantity input::-webkit-outer-spin-button,
.m-product-quantity input::-webkit-inner-spin-button {
    margin: 0;
    appearance: none;
}

.m-product-add-button {
    min-height: 48px;
    padding: .72rem 1rem;
    border: 1px solid var(--m-context-accent-color);
    border-radius: 13px;
    background: var(--m-context-accent-color);
    color: var(--m-context-accent-text-inverse);
    font: inherit;
    font-weight: 850;
    cursor: pointer;
}

.m-product-add-button:disabled {
    border-color: var(--m-context-border);
    background: var(--m-context-surface-muted);
    color: var(--m-context-text-muted);
    cursor: not-allowed;
}

.m-product-selection-status,
.m-product-form-error {
    margin: -.45rem 0 0;
    color: var(--m-context-text-muted);
    font-size: .84rem;
}

.m-product-form-error {
    color: #b42318;
}

.m-product-policy-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
}

.m-product-policy-chips span {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .42rem .62rem;
    border: 1px solid var(--m-context-border);
    border-radius: 9px;
    color: var(--m-context-text-muted);
    font-size: .82rem;
}

.m-product-details,
.m-product-related {
    margin-block-start: clamp(1.5rem, 3vw, 3rem);
    overflow: hidden;
    border: 1px solid var(--m-context-border);
    border-radius: clamp(16px, 2vw, 24px);
    background: var(--m-context-surface);
}

.m-product-details__tabs {
    display: flex;
    gap: .35rem;
    overflow-x: auto;
    padding: .6rem;
    border-block-end: 1px solid var(--m-context-border);
    background: var(--m-context-surface-soft);
}

.m-product-details__tabs button {
    flex: 0 0 auto;
    padding: .65rem .9rem;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--m-context-text-muted);
    font: inherit;
    font-weight: 750;
    cursor: pointer;
}

.m-product-details__tabs button.is-active {
    background: var(--m-context-surface);
    color: var(--m-context-accent-color);
    box-shadow: 0 1px 4px rgba(15, 23, 42, .08);
}

.m-product-details__panel {
    padding: clamp(1rem, 2.5vw, 2rem);
}

.m-product-details__prose {
    max-width: 850px;
    color: var(--m-context-text-soft);
    line-height: 1.9;
}

.m-product-specifications {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 1.5rem;
    margin: 0;
}

.m-product-specifications > div {
    display: grid;
    grid-template-columns: minmax(100px, .35fr) 1fr;
    gap: 1rem;
    padding: .85rem 0;
    border-block-end: 1px solid var(--m-context-border);
}

.m-product-specifications dt {
    color: var(--m-context-text-muted);
    font-weight: 700;
}

.m-product-specifications dd {
    margin: 0;
    color: var(--m-context-text-strong);
}

.m-product-policy-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .75rem;
}

.m-product-policy-grid article {
    display: grid;
    gap: .35rem;
    padding: 1rem;
    border: 1px solid var(--m-context-border);
    border-radius: 14px;
    background: var(--m-context-surface-soft);
}

.m-product-policy-grid article i {
    color: var(--m-context-accent-color);
    font-size: 1.4rem;
}

.m-product-policy-grid article span {
    color: var(--m-context-text-muted);
    font-size: .84rem;
}

.m-product-related {
    padding: clamp(1rem, 2.5vw, 1.75rem);
}

.m-product-related__head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-block-end: 1rem;
}

.m-product-related__head small,
.m-product-related__head h2 {
    margin: 0;
}

.m-product-related__head small {
    color: var(--m-context-accent-color);
    font-weight: 800;
}

.m-product-related__head a {
    color: var(--m-context-accent-color);
    text-decoration: none;
    font-weight: 750;
}

.m-product-related__rail {
    display: grid;
    grid-auto-columns: minmax(190px, 240px);
    grid-auto-flow: column;
    gap: .8rem;
    overflow-x: auto;
    padding-block-end: .5rem;
}

.m-product-related-card {
    display: grid;
    gap: .45rem;
    padding: .65rem;
    border: 1px solid var(--m-context-border);
    border-radius: 14px;
    color: var(--m-context-text-strong);
    text-decoration: none;
}

.m-product-related-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    object-fit: cover;
}

.m-product-related-card span {
    color: var(--m-context-text-muted);
    font-size: .78rem;
}

.m-product-related-card b {
    color: var(--m-context-accent-color);
}

@media (max-width: 980px) {
    .m-product-page__hero {
        grid-template-columns: minmax(0, 1fr);
    }

    .m-product-gallery {
        position: static;
    }

    .m-product-gallery__stage {
        max-height: none;
    }

    .m-product-policy-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .m-product-page {
        padding: .55rem .6rem 4rem;
    }

    .m-product-page__breadcrumb {
        display: none;
    }

    .m-product-page__hero {
        gap: .55rem;
    }

    .m-product-gallery {
        grid-template-columns: minmax(0, 1fr) 54px;
        grid-template-areas: "stage thumbs";
        gap: .5rem;
        align-items: stretch;
    }

    .m-product-gallery__thumbs {
        flex-direction: column;
        min-height: 0;
        max-height: calc(100vw - 5.375rem);
        overflow-x: hidden;
        overflow-y: auto;
        padding: .1rem;
    }

    .m-product-gallery__thumb {
        width: 50px;
        height: 50px;
        flex-basis: 50px;
        padding: 2px;
        border-radius: 10px;
    }

    .m-product-gallery__thumb img {
        border-radius: 7px;
    }

    .m-product-gallery__stage,
    .m-product-page__buy-panel,
    .m-product-details,
    .m-product-related {
        border-radius: 14px;
    }

    .m-product-page__buy-panel {
        gap: .7rem;
        padding: .75rem;
    }

    .m-product-identity {
        gap: .42rem;
    }

    .m-product-identity__eyebrow,
    .m-product-identity__meta {
        gap: .38rem;
        font-size: .72rem;
    }

    .m-product-rating,
    .m-product-identity__new {
        padding: .22rem .42rem;
    }

    .m-product-option--color {
        width: 50px;
        min-width: 50px;
        height: 50px;
        min-height: 50px;
        padding: 3px;
        border-radius: 12px;
    }

    .m-product-option--color .m-product-option__swatch {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
        border-radius: 8px;
    }

    .m-product-identity h1 {
        font-size: clamp(1.3rem, 6.1vw, 1.65rem);
        line-height: 1.25;
    }

    .m-product-purchase {
        gap: .7rem;
    }

    .m-product-price {
        min-height: 1.8rem;
        gap: .45rem;
    }

    .m-product-price strong {
        font-size: 1.25rem;
    }

    .m-product-price del {
        font-size: .76rem;
    }

    .m-product-options {
        gap: .62rem;
    }

    .m-product-option-group legend {
        margin-block-end: .35rem;
        font-size: .75rem;
    }

    .m-product-option-rail {
        gap: .38rem;
        padding-block: .08rem .3rem;
    }

    .m-product-option:not(.m-product-option--color) {
        min-height: 36px;
        padding: .42rem .68rem;
        border-radius: 10px;
        font-size: .76rem;
    }

    .m-product-stock-empty,
    .m-product-selection-status {
        font-size: .74rem;
    }

    .m-product-buy-form {
        grid-template-columns: 1fr;
    }

    .m-product-fulfillment {
        gap: .42rem;
        padding: .52rem;
        border-radius: 11px;
    }

    .m-product-fulfillment__head {
        gap: .4rem;
    }

    .m-product-fulfillment__icon {
        width: 28px;
        height: 28px;
        flex-basis: 28px;
    }

    .m-product-fulfillment__head p strong {
        white-space: normal;
    }

    .m-product-fulfillment-method {
        grid-template-columns: 27px minmax(0, 1fr) 14px;
        gap: .32rem;
        padding: .4rem;
    }

    .m-product-fulfillment-method > i:first-child {
        width: 27px;
        height: 27px;
    }

    .m-product-fulfillment-method strong {
        font-size: .68rem;
    }

    .m-product-fulfillment-method small {
        font-size: .58rem;
    }

    .m-product-fulfillment__summary {
        grid-template-columns: 28px minmax(0, 1fr) auto;
        padding: .38rem;
    }

    .m-product-fulfillment__summary > a {
        grid-column: 2 / -1;
    }

    .m-product-quantity {
        grid-template-columns: 42px 1fr 42px;
    }

    .m-product-quantity input {
        width: 100%;
    }

    .m-product-specifications,
    .m-product-policy-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .m-storefront-smart-bar {
        grid-template-columns: 44px minmax(0, 1fr) auto;
    }

    .m-storefront-smart-bar img {
        width: 44px;
        height: 44px;
    }

    .m-storefront-smart-bar div strong {
        display: none;
    }
}

.m-storefront-bottom-bar {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem var(--storefront-page-pad);
    background: var(--m-context-accent-soft);
    color: var(--m-context-text);
}

.m-storefront-bottom-bar p {
    margin: 0;
}

.m-storefront-footer {
    display: grid;
    grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(160px, .6fr));
    gap: 2rem;
    padding: var(--storefront-section-gap) var(--storefront-page-pad) 2rem;
    background: var(--m-context-surface);
    border-block-start: 1px solid var(--m-context-border);
}

.m-storefront-footer__brand strong,
.m-storefront-footer h2 {
    color: var(--m-context-text-strong);
}

.m-storefront-footer__brand p {
    max-width: 440px;
    color: var(--m-context-text-soft);
    line-height: 1.75;
}

.m-storefront-footer nav {
    display: grid;
    align-content: start;
    gap: .65rem;
}

.m-storefront-footer h2 {
    margin: 0 0 .4rem;
    font-size: 1rem;
}

.m-storefront-footer a,
.m-storefront-footer small {
    color: var(--m-context-text-soft);
}

.m-storefront-footer small {
    grid-column: 1 / -1;
    padding-block-start: 1rem;
    border-block-start: 1px solid var(--m-context-border);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

@media (max-width: 1180px) {
    .m-storefront-header {
        grid-template-columns: 1fr auto;
    }

    .m-storefront-nav,
    .m-storefront-search {
        grid-column: 1 / -1;
    }

    .m-storefront-nav {
        justify-content: flex-start;
    }

    .m-storefront-hero,
    .m-storefront-promos,
    .m-storefront-feature-grid,
    .m-storefront-products__placeholder,
    .m-storefront-footer {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 760px) {
    .m-storefront-announcement,
    .m-storefront-bottom-bar {
        align-items: flex-start;
        flex-direction: column;
    }

    .m-storefront-announcement__inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .m-storefront-announcement__items {
        flex-wrap: wrap;
        overflow: visible;
    }

    .m-storefront-announcement__item {
        white-space: normal;
    }

    .m-storefront-header,
    .m-storefront-hero,
    .m-storefront-promos,
    .m-storefront-feature-grid,
    .m-storefront-products__placeholder,
    .m-storefront-footer {
        grid-template-columns: 1fr;
    }

    .m-storefront-products__header {
        flex-direction: column;
    }

    .m-storefront-header__actions {
        position: absolute;
        inset-block-start: 1rem;
        inset-inline-end: var(--storefront-page-pad);
    }

    .m-storefront-hero {
        min-height: auto;
    }

    .m-storefront-hero__stage,
    .m-storefront-hero__stage img,
    .m-storefront-slider,
    .m-storefront-slider__slide,
    .m-storefront-slider__slide img {
        min-height: 340px;
    }

    .m-storefront-account-menu {
        justify-self: end;
    }

    .m-storefront-account-menu__text {
        display: none;
    }

    .m-storefront-showcase,
    .m-storefront-showcase__grid {
        grid-template-columns: 1fr;
    }
}

/* Activity-style storefront header: final overrides after legacy responsive rules. */
.m-storefront .m-storefront-header {
    display: block;
    grid-template-columns: none;
}

.m-storefront .m-storefront-header__inner {
    display: grid;
    grid-template-columns: minmax(180px, 260px) minmax(0, 1fr) auto auto;
}

.m-storefront .m-storefront-search {
    grid-column: auto;
}

@media (max-width: 1180px) {
    .m-storefront .m-storefront-header__inner {
        grid-template-columns: minmax(160px, auto) auto minmax(0, 1fr);
    }

    .m-storefront .m-storefront-nav {
        order: 4;
        grid-column: 1 / -1;
        justify-content: flex-start;
        overflow-x: auto;
        padding-block-end: .65rem;
        scrollbar-width: none;
    }

    .m-storefront .m-storefront-nav::-webkit-scrollbar {
        display: none;
    }

    .m-storefront .m-storefront-header__tools {
        justify-self: end;
    }
}

@media (max-width: 760px) {
    .m-storefront .m-storefront-header {
        grid-template-columns: none;
    }

    .m-storefront .m-storefront-header__inner {
        grid-template-columns: minmax(0, 1fr) auto auto;
        gap: .5rem;
        width: calc(100% - 1rem);
        min-height: auto;
        padding-block: .4rem;
    }

    .m-storefront .m-storefront-brand {
        min-width: 0;
        min-height: 44px;
    }

    .m-storefront .m-storefront-brand__mark {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }

    .m-storefront .m-storefront-brand__text small {
        display: none;
    }

    .m-storefront .m-storefront-nav {
        display: none;
    }

    .m-storefront .m-storefront-search-menu {
        order: 2;
    }

    .m-storefront .m-storefront-search-menu summary {
        width: 44px;
        height: 40px;
    }

    .m-storefront .m-storefront-header__tools {
        grid-column: auto;
        order: 3;
        justify-content: end;
        gap: .25rem;
        overflow: visible;
        padding: 0;
    }

    .m-storefront .m-storefront-cart-link span,
    .m-storefront .m-storefront-account-link span,
    .m-storefront .m-storefront-account-menu__text,
    .m-storefront .m-storefront-account-menu summary > .la-angle-down {
        display: none;
    }

    .m-storefront .m-storefront-switcher-menu summary,
    .m-storefront .m-storefront-account-link,
    .m-storefront .m-storefront-account-menu summary {
        width: 40px;
        min-width: 40px;
        min-height: 40px;
        justify-content: center;
        padding: 0;
    }

    .m-storefront .m-storefront-search-menu__panel {
        position: fixed;
        inset-block-start: 6rem;
        inset-inline: 1rem;
        width: auto;
        transform: none;
    }

    .m-storefront .m-storefront-switcher-menu__panel.m-storefront-preferences {
        position: fixed;
        inset-block-start: 5.75rem;
        right: .75rem;
        left: .75rem;
        width: auto;
        max-height: calc(100dvh - 7rem);
        overflow-y: auto;
        overscroll-behavior: contain;
    }
}

/* Marketfront V2 template structures. Template controls layout; theme controls color. */
.m-storefront-shell .m-page,
.m-storefront-shell .m-page__body {
    max-width: none;
    margin: 0;
    padding: 0;
}

.m-storefront-template {
    display: grid;
    gap: var(--storefront-section-gap);
    min-height: 100vh;
}

.m-storefront-template .m-storefront-hero,
.m-storefront-template .m-storefront-promos,
.m-storefront-template .m-storefront-section {
    width: min(100% - 2rem, 1780px);
    margin-inline: auto;
}

.m-storefront-template .m-storefront-section,
.m-storefront-template .m-storefront-promos {
    padding-inline: 0;
}

.m-storefront-template .m-storefront-section {
    border: 0;
    background: transparent;
}

.m-storefront-template .m-storefront-feature-grid article,
.m-storefront-template .m-storefront-promo,
.m-storefront-template .m-storefront-hero__content,
.m-storefront-template .m-storefront-hero__stage {
    border-radius: var(--storefront-template-card-radius);
}

.m-storefront-template--classic {
    padding-block: clamp(1.5rem, 3vw, 3rem);
}

.m-storefront-template--classic .m-storefront-hero {
    grid-template-columns: minmax(420px, 1.2fr) minmax(360px, .8fr);
    padding: 0;
}

.m-storefront-template--classic .m-storefront-feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.m-storefront-template--classic .m-storefront-promos {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.m-storefront-template--metro {
    gap: 0;
}

.m-storefront-template--metro .m-storefront-template__wide-stage {
    background: var(--m-context-surface);
    border-block-end: 1px solid var(--m-context-border);
}

.m-storefront-template--metro .m-storefront-hero {
    grid-template-columns: minmax(320px, .7fr) minmax(520px, 1.3fr);
    min-height: clamp(520px, 52vw, 720px);
    padding-block: clamp(1.5rem, 3vw, 3rem);
}

.m-storefront-template--metro .m-storefront-hero__content {
    box-shadow: none;
}

.m-storefront-template--metro .m-storefront-hero__stage,
.m-storefront-template--metro .m-storefront-slider,
.m-storefront-template--metro .m-storefront-slider__slide,
.m-storefront-template--metro .m-storefront-slider__slide img,
.m-storefront-template--metro .m-storefront-hero__stage img {
    min-height: clamp(460px, 48vw, 680px);
}

.m-storefront-template--metro .m-storefront-promos {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-block: var(--storefront-section-gap);
}

.m-storefront-template--minima {
    width: min(100% - 2rem, 1280px);
    margin-inline: auto;
    padding-block: clamp(1rem, 3vw, 2.5rem);
}

.m-storefront-template--minima .m-storefront-hero,
.m-storefront-template--minima .m-storefront-promos,
.m-storefront-template--minima .m-storefront-section {
    width: 100%;
}

.m-storefront-template--minima .m-storefront-hero {
    grid-template-columns: minmax(0, .9fr) minmax(300px, 1.1fr);
    gap: 1rem;
    padding: 0;
}

.m-storefront-template--minima .m-storefront-hero__content,
.m-storefront-template--minima .m-storefront-feature-grid article,
.m-storefront-template--minima .m-storefront-promo {
    box-shadow: none;
}

.m-storefront-template--minima .m-storefront-hero h1 {
    font-size: clamp(2rem, 4vw, 4rem);
}

.m-storefront-template--megamart .m-storefront-template__commerce-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
    gap: 1rem;
    width: min(100% - 2rem, 1780px);
    margin-inline: auto;
    padding-block: clamp(1.5rem, 3vw, 3rem);
}

.m-storefront-template--megamart .m-storefront-hero,
.m-storefront-template--megamart .m-storefront-section {
    width: 100%;
    margin: 0;
    padding: 0;
}

.m-storefront-template--megamart .m-storefront-hero {
    grid-template-columns: minmax(340px, .74fr) minmax(420px, 1.26fr);
}

.m-storefront-template--megamart .m-storefront-section__head h2 {
    font-size: clamp(1.45rem, 2.4vw, 2.5rem);
}

.m-storefront-template--megamart .m-storefront-feature-grid {
    grid-template-columns: 1fr;
}

.m-storefront-template--megamart .m-storefront-feature-grid article {
    min-height: 0;
}

.m-storefront-template--reclassic {
    gap: 0;
}

.m-reclassic-masthead {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr) 240px;
    align-items: stretch;
    gap: 1rem;
    width: min(100% - 2rem, 1780px);
    margin-inline: auto;
    padding-block: 1rem 1.5rem;
}

.m-reclassic-category-menu,
.m-reclassic-today {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--m-context-border);
    border-radius: var(--storefront-template-card-radius);
    background: var(--m-context-surface);
    box-shadow: var(--m-context-shadow);
}

.m-reclassic-category-menu__title,
.m-reclassic-today__title {
    display: flex;
    align-items: center;
    gap: .55rem;
    min-height: 48px;
    padding: .75rem 1rem;
    border-block-end: 1px solid var(--m-context-border);
    background: var(--m-context-accent-soft);
    color: var(--m-context-text-strong);
}

.m-reclassic-category-menu nav {
    display: grid;
    padding: .45rem;
}

.m-reclassic-category-menu nav a {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: .55rem;
    min-height: 48px;
    padding: .35rem .45rem;
    border-block-end: 1px solid var(--m-context-border-subtle);
    color: var(--m-context-text);
}

.m-reclassic-category-menu nav a:hover {
    background: var(--m-context-state-hover-bg);
    color: var(--m-context-accent-color);
}

.m-reclassic-category-menu nav img {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    object-fit: cover;
}

.m-reclassic-category-menu nav span {
    overflow: hidden;
    font-size: .82rem;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.m-reclassic-category-menu nav small {
    color: var(--m-context-text-muted);
    font-size: .7rem;
}

.m-reclassic-category-menu__all,
.m-reclassic-today__all {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    color: var(--m-context-accent-color);
    font-size: .78rem;
    font-weight: 850;
}

.m-reclassic-main {
    display: grid;
    align-content: start;
    gap: 1rem;
    min-width: 0;
    overflow: hidden;
}

.m-storefront-template--reclassic .m-reclassic-main .m-storefront-hero {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    padding-inline: 0;
    box-sizing: border-box;
    grid-template-columns: minmax(0, 1fr);
}

.m-storefront-template--reclassic .m-reclassic-main .m-storefront-hero,
.m-storefront-template--reclassic .m-reclassic-main .m-storefront-hero__stage,
.m-storefront-template--reclassic .m-reclassic-main .m-storefront-slider,
.m-storefront-template--reclassic .m-reclassic-main .m-storefront-slider__slide,
.m-storefront-template--reclassic .m-reclassic-main .m-storefront-slider__slide img {
    height: 350px;
    min-height: 350px;
    max-height: 350px;
}

.m-storefront-template--reclassic .m-reclassic-main .m-storefront-hero__stage,
.m-storefront-template--reclassic .m-reclassic-main .m-storefront-slider,
.m-storefront-template--reclassic .m-reclassic-main .m-storefront-slider__slide {
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.m-reclassic-featured-categories {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 112px;
    gap: .7rem;
    overflow-x: auto;
    scroll-snap-type: inline mandatory;
    scrollbar-width: thin;
}

.m-reclassic-featured-categories a {
    display: grid;
    grid-template-rows: 100px minmax(44px, auto);
    overflow: hidden;
    border: 1px solid var(--m-context-border);
    border-radius: var(--storefront-template-card-radius);
    background: var(--m-context-surface);
    color: var(--m-context-text);
    scroll-snap-align: start;
}

.m-reclassic-featured-categories img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.m-reclassic-featured-categories strong {
    display: grid;
    place-items: center;
    padding: .4rem;
    overflow: hidden;
    font-size: .72rem;
    line-height: 1.25;
    text-align: center;
}

.m-reclassic-today {
    align-self: start;
}

.m-reclassic-today__title {
    justify-content: center;
}

.m-reclassic-today__title span {
    padding: .2rem .4rem;
    border-radius: 999px;
    background: var(--m-context-accent-color);
    color: var(--m-context-accent-text-inverse);
    font-size: .64rem;
    font-weight: 850;
}

.m-reclassic-today__list {
    display: grid;
    max-height: 457px;
    gap: .45rem;
    overflow-y: auto;
    padding: .55rem;
}

.m-reclassic-today__list > a {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    align-items: center;
    gap: .55rem;
    padding: .45rem;
    border: 1px solid var(--m-context-border-subtle);
    border-radius: calc(var(--storefront-template-card-radius) - 2px);
    color: var(--m-context-text);
}

.m-reclassic-today__list img {
    width: 78px;
    height: 78px;
    border-radius: calc(var(--storefront-template-card-radius) - 3px);
    object-fit: cover;
}

.m-reclassic-today__list span {
    display: grid;
    gap: .18rem;
    min-width: 0;
}

.m-reclassic-today__list strong {
    display: -webkit-box;
    overflow: hidden;
    color: var(--m-context-text-strong);
    font-size: .72rem;
    line-height: 1.3;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.m-reclassic-today__list b {
    color: var(--m-context-accent-color);
    font-size: .76rem;
}

.m-reclassic-today__list del {
    color: var(--m-context-text-muted);
    font-size: .66rem;
}

.m-storefront-template--reclassic .m-storefront-promos,
.m-storefront-template--reclassic .m-storefront-section {
    width: 100%;
    padding: var(--storefront-section-gap) var(--storefront-page-pad);
    border-block-start: 1px solid var(--m-context-border);
    background: var(--m-context-surface);
}

.m-storefront-template--reclassic .m-storefront-feature-grid,
.m-storefront-template--reclassic .m-storefront-promos {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.m-storefront-template--nexa {
    gap: 0;
}

.m-storefront-template--nexa .m-storefront-hero {
    width: 100%;
    grid-template-columns: minmax(380px, .8fr) minmax(520px, 1.2fr);
    min-height: clamp(560px, 58vw, 780px);
    padding: clamp(1.5rem, 4vw, 4.5rem) var(--storefront-page-pad);
    background: var(--m-context-surface-soft);
}

.m-storefront-template--nexa .m-storefront-hero__content {
    border: 0;
    box-shadow: none;
}

.m-storefront-template--nexa .m-storefront-template__editorial {
    display: grid;
    gap: var(--storefront-section-gap);
    padding-block: var(--storefront-section-gap);
}

.m-storefront-template--nexa .m-storefront-promos {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
}

.m-storefront-template--thecore {
    gap: 0;
}

.m-storefront-template--thecore .m-storefront-template__hero {
    background: var(--m-context-surface-soft);
}

.m-storefront-template--thecore .m-storefront-hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: clamp(520px, 50vw, 760px);
    padding-block: clamp(1.5rem, 4vw, 4.5rem);
}

.m-storefront-template--thecore .m-storefront-hero__content {
    position: relative;
    z-index: 2;
    width: min(760px, 100%);
    margin-inline: auto;
    text-align: center;
}

.m-storefront-template--thecore .m-storefront-actions,
.m-storefront-template--thecore .m-storefront-trust-strip {
    justify-content: center;
}

.m-storefront-template--thecore .m-storefront-hero__stage {
    min-height: clamp(320px, 34vw, 520px);
}

.m-storefront-template--thecore .m-storefront-template__split {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 1rem;
    width: min(100% - 2rem, 1780px);
    margin-inline: auto;
    padding-block: var(--storefront-section-gap);
}

.m-storefront-template--thecore .m-storefront-section,
.m-storefront-template--thecore .m-storefront-promos {
    width: 100%;
    margin: 0;
    padding: 0;
}

.m-storefront-template--thecore .m-storefront-feature-grid {
    grid-template-columns: 1fr 1fr;
}

.m-storefront-template--reclassic > .m-storefront-catalog {
    padding-block-start: clamp(1rem, 2vw, 1.5rem);
}

/* Template signatures share catalog data, but own their storefront composition. */
.m-template-categories {
    width: min(100% - 2rem, 1780px);
    margin-inline: auto;
    padding-block: clamp(1rem, 2.5vw, 2rem);
}

.m-template-categories__head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-block-end: 1rem;
}

.m-template-categories__head span {
    color: var(--m-context-accent-color);
    font-size: .72rem;
    font-weight: 850;
}

.m-template-categories__head h2 {
    margin: .18rem 0 0;
    color: var(--m-context-text-strong);
    font-size: clamp(1.35rem, 2.2vw, 2.25rem);
}

.m-template-categories__actions {
    display: flex;
    align-items: center;
    gap: .45rem;
}

.m-template-categories__actions button {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid var(--m-context-border);
    border-radius: 50%;
    background: var(--m-context-surface);
    color: var(--m-context-text);
}

.m-template-categories__head a {
    color: var(--m-context-text);
    font-size: .78rem;
    font-weight: 800;
}

.m-template-categories__rail {
    display: grid;
    gap: .85rem;
    overflow-x: auto;
    scroll-snap-type: inline mandatory;
    scrollbar-width: thin;
}

.m-template-categories__rail > a {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--m-context-border);
    background: var(--m-context-surface);
    color: var(--m-context-text);
    scroll-snap-align: start;
}

.m-template-categories__media {
    display: block;
    overflow: hidden;
}

.m-template-categories__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--m-motion-duration-normal) var(--m-motion-easing-standard);
}

.m-template-categories__rail > a:hover img {
    transform: scale(1.035);
}

.m-template-categories__body {
    display: grid;
    gap: .18rem;
    min-width: 0;
}

.m-template-categories__body strong {
    overflow: hidden;
    color: var(--m-context-text-strong);
    font-size: .83rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.m-template-categories__body small {
    color: var(--m-context-text-muted);
    font-size: .68rem;
}

.m-template-categories--classic {
    border-block-end: 1px solid var(--m-context-border);
}

.m-template-categories--classic .m-template-categories__rail {
    grid-auto-flow: column;
    grid-auto-columns: minmax(190px, 1fr);
}

.m-template-categories--classic .m-template-categories__rail > a {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    align-items: center;
    border-radius: 8px;
}

.m-template-categories--classic .m-template-categories__media {
    height: 92px;
}

.m-template-categories--classic .m-template-categories__body {
    padding: .8rem;
}

.m-template-categories--metro {
    padding-block: clamp(1.5rem, 4vw, 4rem);
}

.m-template-categories--metro .m-template-categories__rail {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.m-template-categories--metro .m-template-categories__rail > a {
    position: relative;
    min-height: 360px;
    border: 0;
    border-radius: 0;
}

.m-template-categories--metro .m-template-categories__media {
    position: absolute;
    inset: 0;
}

.m-template-categories--metro .m-template-categories__body {
    position: absolute;
    inset-inline: 1rem;
    inset-block-end: 1rem;
    z-index: 1;
    padding: .9rem 1rem;
    background: var(--m-context-surface);
    box-shadow: var(--m-context-shadow);
}

.m-template-categories--minima {
    width: 100%;
    padding-block: clamp(2rem, 5vw, 5rem);
}

.m-template-categories--minima .m-template-categories__head {
    align-items: center;
    text-align: center;
}

.m-template-categories--minima .m-template-categories__rail {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
}

.m-template-categories--minima .m-template-categories__rail > a {
    border: 0;
    background: transparent;
}

.m-template-categories--minima .m-template-categories__media {
    height: 320px;
    border-radius: calc(var(--storefront-template-card-radius) * 2);
}

.m-template-categories--minima .m-template-categories__body {
    padding-block: .8rem;
    text-align: center;
}

.m-template-categories--megamart {
    padding-block: .75rem;
    border-block: 1px solid var(--m-context-border);
    background: var(--m-context-surface);
}

.m-template-categories--megamart .m-template-categories__head {
    display: none;
}

.m-template-categories--megamart .m-template-categories__rail {
    grid-auto-flow: column;
    grid-auto-columns: minmax(120px, 1fr);
}

.m-template-categories--megamart .m-template-categories__rail > a {
    display: grid;
    justify-items: center;
    border: 0;
    background: transparent;
    text-align: center;
}

.m-template-categories--megamart .m-template-categories__media {
    width: 68px;
    height: 68px;
    border: 1px solid var(--m-context-border);
    border-radius: 18px;
}

.m-template-categories--megamart .m-template-categories__body {
    padding-block-start: .45rem;
}

.m-template-categories--thecore {
    text-align: center;
}

.m-template-categories--thecore .m-template-categories__head {
    align-items: center;
    justify-content: center;
}

.m-template-categories--thecore .m-template-categories__head > div {
    text-align: center;
}

.m-template-categories--thecore .m-template-categories__actions {
    display: none;
}

.m-template-categories--thecore .m-template-categories__rail {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.m-template-categories--thecore .m-template-categories__rail > a {
    display: grid;
    justify-items: center;
    border: 0;
    background: transparent;
}

.m-template-categories--thecore .m-template-categories__media {
    width: min(150px, 100%);
    aspect-ratio: 1;
    border: 1px solid var(--m-context-border);
    border-radius: 50%;
}

.m-template-categories--thecore .m-template-categories__body {
    padding-block-start: .65rem;
}

.m-template-categories--nexa {
    padding-block: clamp(1rem, 2vw, 2rem);
}

.m-template-categories--nexa .m-template-categories__rail {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.m-template-categories--nexa .m-template-categories__rail > a {
    position: relative;
    min-height: 290px;
    border: 0;
    border-radius: 999px 999px 16px 16px;
}

.m-template-categories--nexa .m-template-categories__media {
    position: absolute;
    inset: 0;
}

.m-template-categories--nexa .m-template-categories__body {
    position: absolute;
    inset-inline: .7rem;
    inset-block-end: .7rem;
    z-index: 1;
    padding: .65rem;
    border-radius: 12px;
    background: var(--m-context-surface);
    text-align: center;
}

@media (max-width: 1180px) {
    .m-reclassic-masthead {
        grid-template-columns: minmax(0, 1fr) 230px;
    }

    .m-reclassic-category-menu {
        display: none;
    }

    .m-storefront-template--classic .m-storefront-hero,
    .m-storefront-template--metro .m-storefront-hero,
    .m-storefront-template--minima .m-storefront-hero,
    .m-storefront-template--megamart .m-storefront-hero,
    .m-storefront-template--nexa .m-storefront-hero,
    .m-storefront-template--megamart .m-storefront-template__commerce-grid,
    .m-storefront-template--thecore .m-storefront-template__split {
        grid-template-columns: 1fr;
    }

    .m-template-categories--metro .m-template-categories__rail,
    .m-template-categories--minima .m-template-categories__rail {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .m-template-categories--thecore .m-template-categories__rail,
    .m-template-categories--nexa .m-template-categories__rail {
        grid-auto-flow: column;
        grid-auto-columns: minmax(150px, 22vw);
        grid-template-columns: none;
    }

    .m-storefront-template--reclassic .m-storefront-feature-grid,
    .m-storefront-template--reclassic .m-storefront-promos,
    .m-storefront-template--classic .m-storefront-promos,
    .m-storefront-template--metro .m-storefront-promos {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 760px) {
    .m-reclassic-masthead {
        grid-template-columns: 1fr;
        width: 100%;
        padding: .75rem;
    }

    .m-storefront-template--reclassic .m-reclassic-main .m-storefront-hero,
    .m-storefront-template--reclassic .m-reclassic-main .m-storefront-hero__stage,
    .m-storefront-template--reclassic .m-reclassic-main .m-storefront-slider,
    .m-storefront-template--reclassic .m-reclassic-main .m-storefront-slider__slide,
    .m-storefront-template--reclassic .m-reclassic-main .m-storefront-slider__slide img {
        height: 240px;
        min-height: 240px;
        max-height: 240px;
    }

    .m-reclassic-featured-categories {
        grid-auto-columns: 104px;
    }

    .m-reclassic-today__list {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: minmax(210px, 72vw);
        max-height: none;
        overflow-x: auto;
    }

    .m-storefront-template,
    .m-storefront-template--minima,
    .m-storefront-template--megamart .m-storefront-template__commerce-grid,
    .m-storefront-template--thecore .m-storefront-template__split {
        width: 100%;
        padding-block: 0;
    }

    .m-storefront-template .m-storefront-hero,
    .m-storefront-template .m-storefront-promos,
    .m-storefront-template .m-storefront-section,
    .m-storefront-template--megamart .m-storefront-template__commerce-grid,
    .m-storefront-template--thecore .m-storefront-template__split {
        width: 100%;
    }

    .m-storefront-template .m-storefront-hero,
    .m-storefront-template--nexa .m-storefront-hero {
        padding: 1rem;
    }

    .m-storefront-template--classic .m-storefront-feature-grid,
    .m-storefront-template--classic .m-storefront-promos,
    .m-storefront-template--metro .m-storefront-promos,
    .m-storefront-template--reclassic .m-storefront-feature-grid,
    .m-storefront-template--reclassic .m-storefront-promos,
    .m-storefront-template--thecore .m-storefront-feature-grid,
    .m-storefront-template--nexa .m-storefront-promos {
        grid-template-columns: 1fr;
    }

    .m-storefront-template .m-storefront-hero h1 {
        font-size: clamp(2rem, 12vw, 3.25rem);
    }

    .m-template-categories {
        width: 100%;
        padding: 1rem;
    }

    .m-template-categories__head {
        align-items: center;
    }

    .m-template-categories--metro .m-template-categories__rail,
    .m-template-categories--minima .m-template-categories__rail {
        grid-auto-flow: column;
        grid-auto-columns: minmax(220px, 72vw);
        grid-template-columns: none;
    }

    .m-template-categories--metro .m-template-categories__rail > a,
    .m-template-categories--minima .m-template-categories__media {
        min-height: 260px;
        height: 260px;
    }

    .m-template-categories--nexa .m-template-categories__rail > a {
        min-height: 240px;
    }

    .m-storefront-template .m-storefront-hero__stage,
    .m-storefront-template .m-storefront-hero__stage img,
    .m-storefront-template .m-storefront-slider,
    .m-storefront-template .m-storefront-slider__slide,
    .m-storefront-template .m-storefront-slider__slide img {
        min-height: clamp(280px, 72vw, 420px);
    }
}

/* Template-owned hero proportions: compact media without flattening template identity. */
.m-storefront-template { --storefront-hero-media-height: 360px; }
.m-storefront-template .m-storefront-hero {
    min-height: 0;
    padding-block: clamp(1rem, 2.5vw, 2rem);
}
.m-storefront-template .m-storefront-hero__stage,
.m-storefront-template .m-storefront-hero__stage > img,
.m-storefront-template .m-storefront-slider,
.m-storefront-template .m-storefront-slider__slide,
.m-storefront-template .m-storefront-slider__slide img {
    height: var(--storefront-hero-media-height);
    min-height: var(--storefront-hero-media-height);
    max-height: var(--storefront-hero-media-height);
}
.m-storefront-template--classic { --storefront-hero-media-height: 390px; }
.m-storefront-template--classic .m-storefront-hero { grid-template-columns: minmax(420px, 1.15fr) minmax(360px, .85fr); }
.m-storefront-template--metro { --storefront-hero-media-height: 330px; }
.m-storefront-template--metro .m-storefront-hero { grid-template-columns: minmax(300px, .65fr) minmax(520px, 1.35fr); }
.m-storefront-template--minima { --storefront-hero-media-height: 300px; }
.m-storefront-template--minima .m-storefront-hero__content { border-inline: 0; }
.m-storefront-template--megamart { --storefront-hero-media-height: 340px; }
.m-storefront-template--megamart .m-storefront-hero__content { padding: 1.25rem; }
.m-storefront-template--reclassic { --storefront-hero-media-height: 380px; }
.m-storefront-template--reclassic .m-storefront-hero { background: var(--m-context-surface); }
.m-storefront-template--nexa { --storefront-hero-media-height: 350px; }
.m-storefront-template--nexa .m-storefront-hero { grid-template-columns: minmax(360px, .9fr) minmax(500px, 1.1fr); }
.m-storefront-template--thecore { --storefront-hero-media-height: 320px; }
.m-storefront-template--thecore .m-storefront-hero { grid-template-columns: minmax(0, 1fr); }
.m-storefront-template--thecore .m-storefront-hero__content { max-width: 760px; }

@media (max-width: 980px) {
    .m-storefront-template { --storefront-hero-media-height: 320px; }
    .m-storefront-template .m-storefront-hero { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    .m-storefront-template { --storefront-hero-media-height: clamp(220px, 58vw, 300px); }
    .m-storefront-template .m-storefront-hero__stage,
    .m-storefront-template .m-storefront-hero__stage > img,
    .m-storefront-template .m-storefront-slider,
    .m-storefront-template .m-storefront-slider__slide,
    .m-storefront-template .m-storefront-slider__slide img {
        height: var(--storefront-hero-media-height);
        min-height: var(--storefront-hero-media-height);
        max-height: var(--storefront-hero-media-height);
    }
    .m-storefront-template .m-storefront-hero__content { padding: 1rem; }
    .m-storefront-template .m-storefront-lead {
        margin-block-start: .75rem;
        line-height: 1.6;
    }
    .m-storefront-template .m-storefront-actions,
    .m-storefront-template .m-storefront-trust-strip { margin-block-start: 1rem; }
}

/* A configured slider is the hero; explanatory content stays as fallback only. */
.m-storefront-template .m-storefront-hero.m-storefront-hero--slider-only {
    display: block;
    grid-template-columns: none;
    width: 100%;
    min-height: 0;
    padding: clamp(.65rem, 1.5vw, 1rem) var(--storefront-page-pad);
}
.m-storefront-template .m-storefront-hero--slider-only .m-storefront-hero__stage {
    width: 100%;
    border-radius: var(--storefront-template-card-radius);
}
.m-storefront-template--minima .m-storefront-hero--slider-only,
.m-storefront-template--classic .m-storefront-hero--slider-only {
    padding-inline: 0;
}

.m-storefront-template--reclassic .m-reclassic-main .m-storefront-hero.m-storefront-hero--slider-only {
    padding: 0;
}

.m-storefront-template--reclassic .m-reclassic-main .m-storefront-hero--slider-only .m-storefront-hero__stage,
.m-storefront-template--reclassic .m-reclassic-main .m-storefront-hero--slider-only .m-storefront-slider {
    width: 100%;
    border-radius: var(--storefront-template-card-radius);
}

/* Shared storefront media contract: images fill their owned frame without layout gaps. */
.m-storefront-template .m-storefront-hero.m-storefront-hero--slider-only {
    width: 100%;
    max-width: 100%;
    padding: 0;
    box-sizing: border-box;
}

.m-storefront-template .m-storefront-hero--slider-only .m-storefront-hero__stage,
.m-storefront-template .m-storefront-hero--slider-only .m-storefront-slider,
.m-storefront-template .m-storefront-hero--slider-only .m-storefront-slider__slide,
.m-storefront-template .m-storefront-hero--slider-only .m-storefront-slider__slide picture {
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.m-storefront-template .m-storefront-hero__stage > img,
.m-storefront-template .m-storefront-slider__slide img,
.m-storefront-template .m-storefront-product-card__media img,
.m-storefront-template .m-storefront-category-card__media img,
.m-storefront-template .m-template-categories__media img,
.m-storefront-template .m-storefront-promo img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
}

.m-storefront-template .m-storefront-hero__stage,
.m-storefront-template .m-storefront-product-card__media,
.m-storefront-template .m-storefront-category-card__media,
.m-storefront-template .m-template-categories__media,
.m-storefront-template .m-storefront-promo picture {
    overflow: hidden;
    background: var(--m-context-surface-muted);
}

@media (max-width: 760px) {
    .m-storefront-template .m-storefront-hero.m-storefront-hero--slider-only { padding: 0; }
}

/* Template-owned compact chrome, bound to Theme System context identities. */
.m-storefront {
    --storefront-announcement-height: 28px;
    --storefront-header-height: 52px;
    --storefront-brand-mark-size: 36px;
    --storefront-header-control-size: 34px;
}

.m-storefront .m-storefront-announcement,
.m-storefront .m-storefront-announcement__inner {
    min-height: var(--storefront-announcement-height);
    box-sizing: border-box;
}

.m-storefront[data-storefront-template] .m-storefront-announcement,
.m-storefront[data-storefront-template] .m-storefront-announcement__inner {
    min-height: var(--storefront-announcement-height);
}

.m-storefront .m-storefront-announcement__inner {
    padding-block: .15rem;
}

.m-storefront .m-storefront-header__inner {
    min-height: var(--storefront-header-height);
}

.m-storefront .m-storefront-header {
    min-height: 0;
    background: var(--m-context-surface);
    color: var(--m-context-text);
    border-color: var(--m-context-border);
    box-shadow: var(--m-context-shadow);
}

.m-storefront .m-storefront-brand {
    min-height: var(--storefront-header-height);
}

.m-storefront .m-storefront-brand__mark {
    width: var(--storefront-brand-mark-size);
    height: var(--storefront-brand-mark-size);
    flex-basis: var(--storefront-brand-mark-size);
}

.m-storefront .m-storefront-search-menu summary {
    width: calc(var(--storefront-header-control-size) + 12px);
    height: var(--storefront-header-control-size);
}

.m-storefront .m-storefront-switcher-menu summary,
.m-storefront .m-storefront-account-link {
    min-height: var(--storefront-header-control-size);
}

.m-storefront .m-storefront-account-menu summary {
    min-height: calc(var(--storefront-header-control-size) + 4px);
}

.m-storefront[data-storefront-template="classic"] {
    --storefront-announcement-height: 30px;
    --storefront-header-height: 52px;
    --storefront-brand-mark-size: 38px;
}

.m-storefront[data-storefront-template="metro"] {
    --storefront-announcement-height: 24px;
    --storefront-header-height: 48px;
    --storefront-brand-mark-size: 34px;
    --storefront-header-control-size: 32px;
}

.m-storefront[data-storefront-template="minima"] {
    --storefront-announcement-height: 22px;
    --storefront-header-height: 50px;
    --storefront-brand-mark-size: 32px;
}

.m-storefront[data-storefront-template="minima"] .m-storefront-announcement__inner {
    justify-content: center;
}

.m-storefront[data-storefront-template="minima"] .m-storefront-announcement__items {
    flex: 0 1 auto;
    justify-content: center;
    text-align: center;
}

.m-storefront[data-storefront-template="megamart"] {
    --storefront-announcement-height: 32px;
    --storefront-header-height: 54px;
    --storefront-brand-mark-size: 40px;
}

.m-storefront[data-storefront-template="megamart"] .m-storefront-header__inner {
    width: 100%;
    padding-inline: var(--storefront-page-pad);
}

.m-storefront[data-storefront-template="reclassic"] {
    --storefront-announcement-height: 26px;
    --storefront-header-height: 48px;
    --storefront-brand-mark-size: 34px;
    --storefront-header-control-size: 32px;
}

.m-storefront[data-storefront-template="thecore"] {
    --storefront-announcement-height: 30px;
    --storefront-header-height: 52px;
    --storefront-brand-mark-size: 36px;
}

.m-storefront[data-storefront-template="thecore"] .m-storefront-header__inner {
    width: min(100% - 2rem, 1380px);
}

.m-storefront[data-storefront-template="nexa"] {
    --storefront-announcement-height: 26px;
    --storefront-header-height: 52px;
    --storefront-brand-mark-size: 36px;
}

@media (max-width: 760px) {
    .m-storefront {
        --storefront-announcement-height: 24px;
        --storefront-header-height: 48px;
        --storefront-brand-mark-size: 32px;
        --storefront-header-control-size: 32px;
    }

    .m-storefront .m-storefront-header__inner {
        min-height: var(--storefront-header-height);
        padding-block: 0;
    }

    .m-storefront .m-storefront-brand {
        min-height: var(--storefront-header-height);
    }

    .m-storefront .m-storefront-announcement__links {
        display: none;
    }
}

/* Browser-QA refinements: keep every template contained and visually intentional. */
.m-storefront-template > *,
.m-template-categories,
.m-template-categories__rail {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.m-template-categories__rail,
.m-reclassic-featured-categories,
.m-reclassic-today__list {
    overscroll-behavior-inline: contain;
}

/* Classic stays broad and editorial. */
.m-storefront-template--classic .m-storefront-hero--slider-only .m-storefront-hero__stage {
    border-radius: 0;
}

/* Metro uses a compact, architectural frame and squared visual rhythm. */
.m-storefront-template--metro .m-storefront-hero.m-storefront-hero--slider-only {
    width: min(calc(100% - 2rem), 1780px);
    margin: 1rem auto 0;
    padding: .5rem;
    border: 1px solid var(--m-context-border);
    background:
        linear-gradient(135deg,
            var(--m-context-accent-soft),
            var(--m-context-surface-muted));
}

.m-storefront-template--metro .m-storefront-hero--slider-only .m-storefront-hero__stage,
.m-template-categories--metro .m-template-categories__body {
    border-radius: 2px;
}

.m-template-categories--metro .m-template-categories__rail > a {
    box-shadow: inset 0 -3px 0 var(--m-context-accent-color);
}

/* Minima is intentionally quiet, narrow, and spacious without empty dead zones. */
.m-storefront-template--minima .m-storefront-hero.m-storefront-hero--slider-only {
    width: min(calc(100% - 2rem), 1380px);
    margin: 1.25rem auto 0;
}

.m-storefront-template--minima .m-storefront-hero--slider-only .m-storefront-hero__stage {
    border-radius: calc(var(--storefront-template-card-radius) * 1.5);
}

.m-template-categories--minima {
    width: min(calc(100% - 2rem), 1380px);
    padding-block: clamp(1.5rem, 3vw, 3rem);
}

/* Nexa gets a contemporary framed canvas and keeps its arched category signature. */
.m-storefront-template--nexa {
    background:
        linear-gradient(180deg,
            var(--m-context-accent-soft) 0,
            transparent 34rem);
}

.m-storefront-template--nexa .m-storefront-hero.m-storefront-hero--slider-only {
    width: min(calc(100% - 2rem), 1680px);
    margin: 1rem auto 0;
    padding: .55rem;
    border: 1px solid var(--m-context-border);
    border-radius: calc(var(--storefront-template-card-radius) * 2);
    background: var(--m-context-surface);
    box-shadow: var(--m-context-shadow-panel);
}

.m-storefront-template--nexa .m-storefront-hero--slider-only .m-storefront-hero__stage {
    border-radius: calc(var(--storefront-template-card-radius) * 1.5);
}

@media (max-width: 760px) {
    .m-storefront .m-storefront-brand__text {
        display: none;
    }

    .m-storefront .m-storefront-brand {
        flex: 0 0 auto;
        width: var(--storefront-brand-mark-size);
    }

    .m-storefront .m-storefront-header__inner {
        gap: .4rem;
    }

    .m-template-categories {
        width: 100%;
        max-width: 100%;
        padding: .9rem .75rem;
        overflow: hidden;
    }

    .m-template-categories__head {
        margin-block-end: .75rem;
    }

    .m-template-categories__rail {
        width: 100%;
        max-width: 100%;
        scrollbar-width: none;
    }

    .m-template-categories__rail::-webkit-scrollbar,
    .m-reclassic-featured-categories::-webkit-scrollbar,
    .m-reclassic-today__list::-webkit-scrollbar {
        display: none;
    }

    .m-reclassic-featured-categories,
    .m-reclassic-today__list {
        scrollbar-width: none;
    }

    .m-template-categories--metro .m-template-categories__rail,
    .m-template-categories--minima .m-template-categories__rail {
        grid-auto-columns: minmax(210px, 78vw);
    }

    .m-template-categories--metro .m-template-categories__rail > a,
    .m-template-categories--minima .m-template-categories__media {
        min-height: 230px;
        height: 230px;
    }

    .m-template-categories--nexa .m-template-categories__rail {
        grid-auto-columns: minmax(132px, 42vw);
    }

    .m-template-categories--nexa .m-template-categories__rail > a {
        min-height: 215px;
    }

    .m-storefront-template--metro .m-storefront-hero.m-storefront-hero--slider-only,
    .m-storefront-template--nexa .m-storefront-hero.m-storefront-hero--slider-only {
        width: calc(100% - 1.5rem);
        margin-block-start: .75rem;
    }

    .m-storefront-template--minima .m-storefront-hero.m-storefront-hero--slider-only {
        width: calc(100% - 1.5rem);
        margin-block-start: .75rem;
    }

    .m-reclassic-masthead {
        gap: .7rem;
        padding: .65rem;
    }

    .m-reclassic-featured-categories {
        padding-block-end: .1rem;
    }
}

/* Seven header signatures, inspired by the original Active eCommerce layouts. */
.m-storefront[data-storefront-template="classic"] .m-storefront-header__inner {
    width: min(calc(100% - 2rem), 1580px);
}

.m-storefront[data-storefront-template] .m-storefront-header__inner {
    max-width: 100%;
    box-sizing: border-box;
}

.m-storefront[data-storefront-template] .m-storefront-search-menu summary,
.m-storefront[data-storefront-template] .m-storefront-header__tools .m-quick-tools__action {
    inline-size: 42px;
    block-size: 42px;
    min-inline-size: 42px;
    min-block-size: 42px;
    box-sizing: border-box;
}

.m-storefront[data-storefront-template] .m-storefront-account-menu summary,
.m-storefront[data-storefront-template] .m-storefront-account-link {
    min-block-size: 42px;
    box-sizing: border-box;
}

.m-storefront[data-storefront-template="classic"] .m-storefront-brand__mark {
    border: 1px solid var(--m-context-border);
    border-radius: 12px;
    background: var(--m-context-surface);
}

.m-storefront[data-storefront-template="classic"] .m-storefront-header {
    border-block-end: 1px solid var(--m-context-border);
    background:
        linear-gradient(180deg,
            var(--m-context-surface-raised),
            var(--m-context-surface-soft));
    box-shadow: 0 8px 24px color-mix(in srgb, var(--m-context-accent-color) 9%, transparent);
}

.m-storefront[data-storefront-template="classic"] .m-storefront-search-menu summary,
.m-storefront[data-storefront-template="classic"] .m-quick-tools__action {
    border-radius: 12px;
}

.m-storefront[data-storefront-template="metro"] .m-storefront-header {
    border-block-start: 0;
    border-block-end: 4px solid var(--m-context-accent-color);
    background:
        linear-gradient(90deg,
            var(--m-context-accent-soft),
            var(--m-context-surface) 38%,
            var(--m-context-surface));
}

.m-storefront[data-storefront-template="metro"] .m-storefront-brand__mark,
.m-storefront[data-storefront-template="metro"] .m-storefront-search-menu summary,
.m-storefront[data-storefront-template="metro"] .m-quick-tools__action {
    border-radius: 2px;
}

.m-storefront[data-storefront-template="metro"] .m-storefront-brand__mark {
    box-shadow:
        -5px 5px 0 var(--m-context-accent-soft-strong),
        0 0 0 1px var(--m-context-border);
}

.m-storefront[data-storefront-template="metro"] .m-storefront-header__inner {
    width: 100%;
    padding-inline: var(--storefront-page-pad);
}

.m-storefront[data-storefront-template="metro"] .m-storefront-nav {
    align-self: stretch;
    gap: .15rem;
}

.m-storefront[data-storefront-template="metro"] .m-storefront-nav a,
.m-storefront[data-storefront-template="metro"] .m-storefront-more-menu summary {
    min-height: 100%;
    padding-inline: .8rem;
    border-inline-start: 1px solid var(--m-context-border-subtle);
}

.m-storefront[data-storefront-template="minima"] .m-storefront-header__inner {
    width: min(calc(100% - 3rem), 1240px);
}

.m-storefront[data-storefront-template="minima"] .m-storefront-brand__mark {
    border-radius: 50%;
    background: transparent;
}

.m-storefront[data-storefront-template="minima"] .m-storefront-header {
    border: 0;
    background: color-mix(in srgb, var(--m-context-surface) 92%, transparent);
    box-shadow: 0 1px 0 var(--m-context-border-subtle);
}

.m-storefront[data-storefront-template="minima"] .m-storefront-search-menu summary,
.m-storefront[data-storefront-template="minima"] .m-quick-tools__action {
    border-radius: 50%;
    border-color: transparent;
    background: transparent;
}

.m-storefront[data-storefront-template="minima"] .m-storefront-nav {
    gap: clamp(1rem, 2.4vw, 2.5rem);
}

.m-storefront[data-storefront-template="minima"] .m-storefront-nav a,
.m-storefront[data-storefront-template="minima"] .m-storefront-more-menu summary {
    font-weight: 650;
    letter-spacing: .02em;
}

.m-storefront[data-storefront-template="megamart"] .m-storefront-header {
    border-block: 1px solid var(--m-context-border);
    background: var(--m-context-surface-raised);
}

.m-storefront[data-storefront-template="megamart"] .m-storefront-header__inner {
    width: 100%;
    padding-inline: var(--storefront-page-pad);
}

.m-storefront[data-storefront-template="megamart"] .m-storefront-nav {
    justify-content: flex-start;
    min-height: 38px;
    padding-inline: .55rem;
    border: 1px solid var(--m-context-border);
    border-radius: 10px;
    background: var(--m-context-surface);
}

.m-storefront[data-storefront-template="megamart"] .m-storefront-search-menu summary {
    border-radius: 10px;
    background: var(--m-context-accent-color);
    color: var(--m-context-accent-text-inverse);
}

.m-storefront[data-storefront-template="megamart"] .m-storefront-brand__mark,
.m-storefront[data-storefront-template="megamart"] .m-quick-tools__action {
    border-radius: 10px;
}

.m-storefront[data-storefront-template="megamart"] .m-storefront-brand__mark {
    background: var(--m-context-accent-soft);
    box-shadow: inset 0 0 0 1px var(--m-context-border-active);
}

.m-storefront[data-storefront-template="reclassic"] .m-storefront-header {
    border-block-start: 3px solid var(--m-context-accent-color);
    border-block-end: 1px solid var(--m-context-border-strong);
    box-shadow: none;
}

.m-storefront[data-storefront-template="reclassic"] .m-storefront-header__inner {
    width: 100%;
    padding-inline: var(--storefront-page-pad);
}

.m-storefront[data-storefront-template="reclassic"] .m-storefront-brand__mark,
.m-storefront[data-storefront-template="reclassic"] .m-storefront-search-menu summary,
.m-storefront[data-storefront-template="reclassic"] .m-quick-tools__action {
    border-radius: 6px;
}

.m-storefront[data-storefront-template="reclassic"] .m-storefront-brand__mark {
    border: 2px solid var(--m-context-accent-color);
    background: var(--m-context-surface);
}

.m-storefront[data-storefront-template="reclassic"] .m-storefront-nav {
    justify-content: flex-start;
    gap: 0;
}

.m-storefront[data-storefront-template="reclassic"] .m-storefront-nav a,
.m-storefront[data-storefront-template="reclassic"] .m-storefront-more-menu summary {
    padding-inline: .75rem;
    border-inline-end: 1px solid var(--m-context-border);
    font-size: .82rem;
}

.m-storefront[data-storefront-template="thecore"] .m-storefront-header {
    border: 0;
    border-block-end: 2px solid var(--m-context-state-selected-border);
    background: var(--m-context-surface-selected);
    box-shadow: var(--m-context-shadow-panel);
}

.m-storefront[data-storefront-template="thecore"] .m-storefront-header__inner {
    width: min(calc(100% - 2rem), 1380px);
}

.m-storefront[data-storefront-template="thecore"] .m-storefront-brand__text strong,
.m-storefront[data-storefront-template="thecore"] .m-storefront-brand__text small,
.m-storefront[data-storefront-template="thecore"] .m-storefront-nav a,
.m-storefront[data-storefront-template="thecore"] .m-storefront-more-menu summary {
    color: var(--m-context-text-strong);
}

.m-storefront[data-storefront-template="thecore"] .m-storefront-brand__mark,
.m-storefront[data-storefront-template="thecore"] .m-storefront-nav a:hover {
    background: var(--m-context-icon-action-bg);
    color: var(--m-context-icon-active);
}

.m-storefront[data-storefront-template="thecore"] .m-storefront-search-menu summary,
.m-storefront[data-storefront-template="thecore"] .m-quick-tools__action {
    border-color: var(--m-context-border-active);
    border-radius: 8px;
    background: var(--m-context-icon-action-bg);
    color: var(--m-context-icon);
    box-shadow: var(--m-context-shadow);
}

.m-storefront[data-storefront-template="thecore"] .m-storefront-search-menu summary:hover,
.m-storefront[data-storefront-template="thecore"] .m-storefront-search-menu summary:focus-visible,
.m-storefront[data-storefront-template="thecore"] .m-quick-tools__action:hover,
.m-storefront[data-storefront-template="thecore"] .m-quick-tools__action:focus-visible,
.m-storefront[data-storefront-template="thecore"] .m-storefront-switcher-menu[open] > summary {
    border-color: var(--m-context-state-active-border);
    background: var(--m-context-icon-action-bg-active);
    color: var(--m-context-icon-active);
    box-shadow: var(--m-context-shadow-active);
}

.m-storefront[data-storefront-template="nexa"] .m-storefront-header {
    padding-block: .55rem;
    border: 0;
    background: var(--m-context-surface-soft);
    box-shadow: none;
}

.m-storefront[data-storefront-template="nexa"] .m-storefront-header__inner {
    width: min(calc(100% - 2rem), 1580px);
    padding-inline: .75rem;
    border: 1px solid var(--m-context-border);
    border-radius: 999px;
    background: var(--m-context-surface);
    box-shadow: var(--m-context-shadow-panel);
}

.m-storefront[data-storefront-template="nexa"] .m-storefront-brand__mark,
.m-storefront[data-storefront-template="nexa"] .m-storefront-search-menu summary,
.m-storefront[data-storefront-template="nexa"] .m-quick-tools__action {
    border-radius: 50%;
}

@media (max-width: 1360px) {
    .m-storefront[data-storefront-template] .m-storefront-nav {
        display: none;
    }

    .m-storefront[data-storefront-template] .m-storefront-header__inner {
        grid-template-columns: minmax(120px, 1fr) auto auto;
    }
}

@media (max-width: 760px) {
    .m-storefront[data-storefront-template] .m-storefront-header__inner {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .m-storefront .m-storefront-header__tools {
        width: 100%;
        min-width: 0;
    }

    .m-storefront .m-storefront-brand {
        display: none;
    }

    .m-storefront .m-storefront-header__tools .m-quick-tools {
        flex: 1 1 auto;
        width: auto;
        min-width: 0;
        justify-content: space-between;
    }

    .m-storefront .m-storefront-account-menu,
    .m-storefront .m-storefront-account-link {
        flex: 0 0 auto;
    }

    .m-storefront[data-storefront-template="classic"] .m-storefront-header__inner,
    .m-storefront[data-storefront-template="minima"] .m-storefront-header__inner,
    .m-storefront[data-storefront-template="thecore"] .m-storefront-header__inner {
        width: calc(100% - 1rem);
    }

    .m-storefront[data-storefront-template="metro"] .m-storefront-header__inner,
    .m-storefront[data-storefront-template="megamart"] .m-storefront-header__inner,
    .m-storefront[data-storefront-template="reclassic"] .m-storefront-header__inner {
        padding-inline: .5rem;
    }

    .m-storefront[data-storefront-template="nexa"] .m-storefront-header {
        padding-block: .35rem;
    }

    .m-storefront[data-storefront-template="nexa"] .m-storefront-header__inner {
        width: calc(100% - .75rem);
        padding-inline: .45rem;
    }
}

/* V2 storefront bottom bar: full-width, touch-safe, and template-aware. */
.m-storefront-bottom-bar--v2 {
    position: relative;
    z-index: 18;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: .75rem var(--storefront-page-pad);
    border-block: 1px solid var(--m-context-border);
    background: var(--m-context-surface-raised);
    color: var(--m-context-text);
    box-shadow: var(--m-context-shadow-panel);
    box-sizing: border-box;
}

.m-storefront-bottom-bar--v2 p {
    display: flex;
    align-items: center;
    gap: .5rem;
    min-width: 0;
    font-weight: 750;
}

.m-storefront-bottom-bar--v2 p i {
    color: var(--m-context-accent-color);
    font-size: 1.1rem;
}

.m-storefront-bottom-bar--v2 nav {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(96px, 1fr);
    gap: .4rem;
}

.m-storefront-bottom-bar--v2 nav a {
    display: grid;
    grid-template-columns: auto minmax(0, auto);
    align-items: center;
    justify-content: center;
    gap: .4rem;
    min-height: 40px;
    padding: .45rem .75rem;
    border: 1px solid var(--m-context-border);
    border-radius: var(--storefront-template-button-radius);
    background: var(--m-context-surface);
    color: var(--m-context-text);
    font-size: .8rem;
    font-weight: 800;
}

.m-storefront-bottom-bar--v2 nav a:hover {
    border-color: var(--m-context-border-active);
    background: var(--m-context-accent-soft);
    color: var(--m-context-accent-color);
}

.m-storefront-bottom-bar--v2 nav a i {
    color: var(--m-context-accent-color);
    font-size: 1.15rem;
}

@media (max-width: 760px) {
    .m-storefront-bottom-bar--v2 {
        position: relative;
        display: grid;
        grid-template-columns: 1fr;
        gap: .65rem;
        width: 100%;
        padding: .85rem;
    }

    .m-storefront-bottom-bar--v2 p {
        display: flex;
        font-size: .8rem;
        line-height: 1.5;
    }

    .m-storefront-bottom-bar--v2 nav {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: minmax(0, 1fr);
        gap: .25rem;
        width: 100%;
    }

    .m-storefront-bottom-bar--v2 nav a {
        grid-template-columns: auto minmax(0, auto);
        justify-items: center;
        gap: .3rem;
        width: 100%;
        min-width: 0;
        min-height: 42px;
        padding: .35rem;
        border: 1px solid var(--m-context-border);
        border-radius: 10px;
        background: var(--m-context-surface);
        font-size: .7rem;
        line-height: 1.1;
        text-align: center;
    }

    .m-storefront-bottom-bar--v2 nav a i {
        font-size: 1.25rem;
    }

    .m-storefront-bottom-bar--v2 nav a span {
        width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .m-storefront[data-storefront-template="reclassic"] .m-storefront-bottom-bar--v2 nav a {
        border-radius: 2px;
    }

    .m-storefront[data-storefront-template="thecore"] .m-storefront-bottom-bar--v2 {
        border-color: var(--m-context-border);
        background: var(--m-context-surface-raised);
    }

    .m-storefront[data-storefront-template="thecore"] .m-storefront-bottom-bar--v2 nav a,
    .m-storefront[data-storefront-template="thecore"] .m-storefront-bottom-bar--v2 nav a i {
        color: var(--m-context-accent-color);
    }
}

@media (max-width: 760px) {
    .m-storefront-mobile-nav--v2 {
        width: 100%;
        max-width: 100%;
        min-height: 70px;
        padding: .35rem max(.35rem, env(safe-area-inset-left))
            calc(.35rem + env(safe-area-inset-bottom))
            max(.35rem, env(safe-area-inset-right));
        border-block-start: 1px solid var(--m-context-border-strong);
        background: color-mix(in srgb, var(--m-context-surface-elevated) 94%, transparent);
        box-shadow: 0 -10px 32px color-mix(in srgb, var(--m-context-text-strong) 13%, transparent);
        backdrop-filter: blur(18px);
        box-sizing: border-box;
    }

    .m-storefront-mobile-nav--v2 > a,
    .m-storefront-mobile-nav--v2 .m-storefront-mobile-search > summary {
        position: relative;
        width: 100%;
        min-width: 0;
        min-height: 58px;
        padding: .35rem .15rem;
        border-radius: 12px;
        transition:
            background-color var(--m-motion-duration-fast) var(--m-motion-easing-standard),
            color var(--m-motion-duration-fast) var(--m-motion-easing-standard),
            transform var(--m-motion-duration-fast) var(--m-motion-easing-standard);
    }

    .m-storefront-mobile-nav--v2 > a[aria-current="page"],
    .m-storefront-mobile-nav--v2 .m-storefront-mobile-search[open] > summary {
        background: var(--m-context-accent-soft);
        color: var(--m-context-accent-color);
    }

    .m-storefront-mobile-nav--v2 > a[aria-current="page"]::before,
    .m-storefront-mobile-nav--v2 .m-storefront-mobile-search[open] > summary::before {
        position: absolute;
        inset-block-start: -.35rem;
        inset-inline: 26%;
        height: 3px;
        border-radius: 0 0 999px 999px;
        background: var(--m-context-accent-color);
        content: "";
    }

    .m-storefront-mobile-nav--v2 > a:active,
    .m-storefront-mobile-nav--v2 .m-storefront-mobile-search > summary:active {
        transform: translateY(1px);
    }

    .m-storefront-mobile-nav--v2 span {
        width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .m-storefront[data-storefront-template="reclassic"] .m-storefront-mobile-nav--v2 > a,
    .m-storefront[data-storefront-template="reclassic"] .m-storefront-mobile-search > summary {
        border-radius: 2px;
    }

    .m-storefront[data-storefront-template="thecore"] .m-storefront-mobile-nav--v2 {
        border-color: var(--m-context-state-selected-border);
        background: var(--m-context-surface-selected);
    }

    .m-storefront[data-storefront-template="thecore"] .m-storefront-mobile-nav--v2 > a,
    .m-storefront[data-storefront-template="thecore"] .m-storefront-mobile-search > summary {
        color: var(--m-context-text-muted);
    }

    .m-storefront[data-storefront-template="thecore"] .m-storefront-mobile-nav--v2 > a[aria-current="page"],
    .m-storefront[data-storefront-template="thecore"] .m-storefront-mobile-search[open] > summary {
        background: var(--m-context-icon-action-bg-active);
        color: var(--m-context-icon-active);
    }

    .m-storefront[data-storefront-template="nexa"] .m-storefront-mobile-nav--v2 {
        inset-inline: .45rem;
        inset-block-end: calc(.45rem + env(safe-area-inset-bottom));
        width: calc(100% - .9rem);
        padding-block-end: .35rem;
        border: 1px solid var(--m-context-border);
        border-radius: 18px;
    }
}

