.reference-store-container {
    container: reference-store / inline-size;
    width: 100%;
    min-width: 0;
}

.reference-frame {
    display: flex;
    flex-direction: column;
    gap: var(--section-spacing, 1rem);
    min-width: 0;
    padding: 0 clamp(12px, 1.6cqi, 24px) 24px;
}

.reference-frame > * {
    min-width: 0;
    margin-bottom: 0 !important;
    order: 0 !important;
}

.reference-store-container,
.reference-store-container * { box-sizing: border-box; }

.reference-frame .commerce-section { padding: 16px clamp(12px, 2cqi, 32px); }

[data-section-type="hero"]:has(.reference-hero) { container: reference-store / inline-size; }

.reference-frame--fashion .cs-bannerThree.cs-layout-reference-fashion-categories .cs-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.reference-frame--fashion .cs-bannerTwo.cs-layout-reference-fashion-categories .cs-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.cs-layout-reference-mono-featured .cs-tile { flex-direction: column; align-items: stretch; }
.cs-layout-reference-mono-featured .cs-tile h3 { overflow-wrap: normal; word-break: normal; }

.cs-layout-reference-audio-mosaic .cs-tile__content,
.cs-layout-reference-audio-mosaic-reverse .cs-tile__content { width: 72%; max-width: 72%; }

.cs-layout-reference-audio-mosaic .cs-tile h3,
.cs-layout-reference-audio-mosaic-reverse .cs-tile h3 { font-size: clamp(18px, 2cqi, 28px); overflow-wrap: normal; word-break: normal; }

.reference-frame .catsec__header {
    border: 0;
    box-shadow: none;
}

.reference-frame .catsec__header-name {
    font-size: clamp(18px, 2cqi, 26px);
    font-weight: 800;
}

.reference-frame .catsec__header-link {
    font-size: 14px;
}

.reference-hero {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
    border-radius: 18px;
    background: #e9e9e9;
    color: var(--ref-ink, #171717);
}

.reference-hero__copy {
    position: relative;
    z-index: 2;
    width: 53%;
    padding: clamp(28px, 5cqi, 70px);
}

.reference-hero h1 {
    margin: 0;
    font-family: var(--heading-font, Inter, sans-serif);
    font-size: clamp(36px, 5.6cqi, 76px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -.04em;
    overflow-wrap: anywhere;
}

.reference-hero__eyebrow {
    margin: 0 0 1rem;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.reference-hero__description {
    max-width: 36ch;
    margin: 1.25rem 0 0;
    font-size: clamp(16px, 1.4cqi, 20px);
    line-height: 1.6;
}

.reference-hero__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    min-height: 46px;
    max-width: 100%;
    margin-top: 1.5rem;
    padding: .8rem 1.5rem;
    border: 0;
    border-radius: 999px;
    background: var(--ref-primary, #d51b36);
    color: #ffffff;
    font: 700 14px/1.4 Inter, sans-serif;
    cursor: pointer;
}

.reference-hero__product {
    position: absolute;
    z-index: 1;
    inset: 0 0 0 auto;
    width: 60%;
    height: 100%;
    object-fit: contain;
}

.reference-hero__word {
    position: absolute;
    inset: 33% 4% auto;
    z-index: 0;
    color: #ffffff;
    font-size: clamp(70px, 17cqi, 230px);
    font-weight: 900;
    letter-spacing: -.05em;
    line-height: 1;
    white-space: nowrap;
}

.reference-hero--audio .reference-hero__copy {
    align-self: flex-start;
    padding-top: 10%;
}

.reference-hero--audio h1 {
    max-width: 10ch;
    font-size: clamp(32px, 4.3cqi, 60px);
}

.reference-hero--audio .reference-hero__description {
    margin-top: 8rem;
}

.reference-hero--audio .reference-hero__product {
    right: 5%;
    width: 54%;
    filter: drop-shadow(0 24px 18px #0002);
}

.reference-hero--violet {
    color: #ffffff;
    background: linear-gradient(115deg, #7750c6, #aa83d0 66%, #d5a3cc);
}

.reference-hero--violet .reference-hero__copy {
    width: 61%;
    padding: 32px;
}

.reference-hero--violet h1 {
    font-size: clamp(32px, 4.2cqi, 54px);
}

.reference-hero--violet .reference-hero__product {
    top: 5%;
    height: 105%;
    width: 52%;
    object-position: bottom;
}

.reference-hero--violet .reference-hero__cta {
    background: #ffffff;
    color: #594096;
}

.reference-hero--blue {
    color: #ffffff;
    background: radial-gradient(ellipse at 80% 70%, #1764d9 0, #062854 40%, #04152f 75%);
    border-radius: 14px;
}

.reference-hero--blue .reference-hero__product {
    right: 1%;
    filter: drop-shadow(0 0 28px #267eec55);
}

.reference-hero--fashion {
    overflow: hidden;
    background: #f8eddf;
    border-radius: 0;
}

.reference-hero--fashion::before {
    position: absolute;
    content: '';
    width: 47%;
    aspect-ratio: 1;
    right: 1%;
    bottom: -7%;
    border-radius: 50% 50% 40% 50%;
    background: #ec6c66;
    transform: rotate(-18deg);
}

.reference-hero--fashion .reference-hero__copy {
    width: 53%;
}

.reference-hero--fashion h1 {
    font-weight: 700;
}

.reference-hero--fashion .reference-hero__product {
    top: 5%;
    height: 105%;
    width: 54%;
    object-position: bottom;
}

.reference-hero--sneaker,
.reference-hero--mono {
    color: #ffffff;
    background: radial-gradient(ellipse at 75% 45%, #303030, #0d0d0d 65%);
    border-radius: 0;
}

.reference-hero--sneaker h1,
.reference-hero--mono h1 {
    max-width: 9ch;
    font-size: clamp(40px, 6.8cqi, 88px);
    text-transform: uppercase;
}

.reference-hero--sneaker .reference-hero__eyebrow {
    color: #ff6f7d;
}

.reference-hero--sneaker .reference-hero__cta,
.reference-hero--mono .reference-hero__cta {
    border-radius: 2px;
}

.reference-hero--mono .reference-hero__cta {
    background: #ffffff;
    color: #171717;
}

.reference-hero--sneaker .reference-hero__product,
.reference-hero--mono .reference-hero__product {
    width: 64%;
    right: 0;
    filter: drop-shadow(0 24px 20px #0008);
}

.commerce-section[class*="cs-layout-reference-"] .cs-tile {
    min-height: 220px;
    border-radius: 18px;
}

.commerce-section[class*="cs-layout-reference-"] .cs-tile::before {
    display: none;
}

.commerce-section[class*="cs-layout-reference-"] .cs-tile__image {
    inset: 0 0 0 auto;
    z-index: 0;
    width: 57%;
    object-fit: contain;
}

.commerce-section[class*="cs-layout-reference-"] .cs-tile__content {
    z-index: 1;
    gap: .6rem;
    width: 58%;
    max-width: 58%;
    min-width: 0;
    padding: clamp(16px, 2.2cqi, 32px);
    overflow-wrap: anywhere;
}

.commerce-section[class*="cs-layout-reference-"] .cs-tile h3 {
    font-size: clamp(20px, 2.5cqi, 32px);
    line-height: 1.12;
}

.cs-layout-reference-audio-mosaic .cs-tiles {
    grid-template-columns: 1fr 1fr 2fr;
}

.cs-layout-reference-audio-mosaic-reverse .cs-tiles {
    grid-template-columns: 2fr 1fr 1fr;
}

.cs-bannerFull[class*="cs-layout-reference-"] .cs-tile {
    min-height: 260px;
    background: var(--cs-accent);
    color: #ffffff;
}

.cs-bannerFull[class*="cs-layout-reference-"] .cs-tile__content {
    width: 55%;
    max-width: 55%;
    padding: clamp(24px, 4cqi, 60px);
}

.cs-layout-reference-audio-campaign .cs-tile {
    overflow: visible;
    margin-top: 2rem;
}

.cs-layout-reference-audio-campaign .cs-tile__image {
    top: -17%;
    height: 133%;
}

.cs-layout-reference-blue-campaign .cs-tile {
    background: #061d42 !important;
}

.cs-layout-reference-mono-campaign .cs-tile {
    background: #111111 !important;
}

.cs-layout-reference-sneaker-campaigns .cs-tile {
    border-radius: 6px;
}

.commerce-section[class*="cs-layout-reference-"][class*="categories"] .cs-tile,
.cs-layout-reference-mono-featured .cs-tile {
    display: flex;
    flex-direction: column-reverse;
    align-items: stretch;
    min-height: 200px;
}

.commerce-section[class*="cs-layout-reference-"][class*="categories"] .cs-tile__image,
.cs-layout-reference-mono-featured .cs-tile__image {
    position: static;
    width: 100%;
    height: 160px;
    object-fit: contain;
}

.commerce-section[class*="cs-layout-reference-"][class*="categories"] .cs-tile__content,
.cs-layout-reference-mono-featured .cs-tile__content {
    width: 100%;
    max-width: 100%;
    padding: 18px;
}

.commerce-section[class*="cs-layout-reference-"][class*="categories"] .cs-tile h3,
.cs-layout-reference-mono-featured .cs-tile h3 {
    font-size: 18px;
}

.cs-layout-reference-violet-categories .cs-tile {
    flex-direction: column;
    text-align: center;
    min-height: 170px;
}

.cs-layout-reference-violet-categories .cs-tile__image {
    height: 90px;
}

.cs-layout-reference-violet-promos .cs-tile {
    min-height: 150px;
    border-radius: 12px;
}

.cs-layout-reference-violet-promos .cs-tile h3 {
    font-size: 18px;
}

.reference-products {
    container: reference-products / inline-size;
    min-width: 0;
    padding: clamp(16px, 2.5cqi, 40px);
}

.reference-products .tpl-header__title {
    margin-bottom: 1.25rem;
    font-family: var(--heading-font, Inter, sans-serif);
    font-size: clamp(24px, 3cqi, 36px);
}

.reference-products .tpl-showcase__grid {
    gap: 16px;
}

.reference-products .tpl-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #1212120d;
    box-shadow: none;
}

.reference-products .tpl-card__media {
    aspect-ratio: 1;
    background: #f0f0f0;
}

.reference-products .tpl-card__media img {
    object-fit: contain;
    padding: 8px;
}

.reference-products .tpl-card__name,
.reference-products .tpl-card__cat,
.reference-products .tpl-card__desc,
.reference-products .tpl-card__cta {
    font-size: 14px;
    overflow-wrap: anywhere;
}

.reference-products .tpl-card__price {
    font-size: 18px;
}

.reference-products .tpl-card__price-old {
    font-size: 14px;
}

.reference-products .tpl-card__body {
    padding: 14px;
}

.reference-products .tpl-card__footer {
    padding: 0 14px 14px;
}

.reference-products .tpl-header__chip,
.reference-products .tpl-pagination__btn {
    min-height: 40px;
    font-size: 14px;
}

.reference-products--blue .tpl-card__media {
    background: #eaf3ff;
}

.reference-products--fashion .tpl-card__media {
    background: #f5ded4;
}

.reference-products--fashion .tpl-card__price {
    color: #b83531 !important;
}

.reference-products--sneaker .tpl-card__body {
    padding: 12px;
}

.cs-flashOffers[class*="cs-layout-reference-"] .cs-products {
    grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr));
}

.cs-storeBenefits[class*="cs-layout-reference-"] {
    padding-block: 12px;
}

.cs-storeBenefits[class*="cs-layout-reference-"] .cs-benefit {
    padding: 16px;
    gap: 12px;
}

.cs-storeBenefits[class*="cs-layout-reference-"] .cs-benefit h3 {
    font-size: 16px;
}

.cs-storeBenefits[class*="cs-layout-reference-"] .cs-benefit p {
    font-size: 14px;
}

.reference-frame--fashion {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.reference-frame--fashion > * {
    grid-column: 1 / -1;
}

.reference-frame--fashion > :has(.cs-bannerThree.cs-layout-reference-fashion-categories) {
    grid-column: span 3;
}

.reference-frame--fashion > :has(.cs-bannerTwo.cs-layout-reference-fashion-categories) {
    grid-column: span 2;
}

.reference-frame--violet {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr) 250px;
    grid-auto-rows: min-content;
    gap: 16px;
    padding: 16px;
    align-items: start;
}

.reference-frame--violet > * {
    grid-column: 2;
}

.reference-frame--violet > :is([data-reference-section="header"], [data-section-type="header"]) {
    grid-column: 1;
    grid-row: 1 / -1;
    align-self: stretch;
    background: #ffffff;
    border-radius: 20px;
}

.reference-frame--violet .catsec__header--reference-violet .catsec__header-inner,
.reference-frame--violet .catsec__header--reference-violet .catsec__header-desktop,
.reference-frame--violet .catsec__header--reference-violet .catsec__header-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
}

.reference-frame--violet .catsec__header--reference-violet .catsec__header-inner {
    padding: 26px 16px;
    gap: 30px;
}

.reference-frame--violet .catsec__header--reference-violet .catsec__header-toggle {
    display: none;
}

.reference-frame--violet .catsec__header--reference-violet .catsec__header-link {
    width: 100%;
    min-height: 42px;
}

.reference-frame--violet .catsec__header-brand {
    min-width: 0;
    width: 100%;
}

.reference-frame--violet .catsec__header-name {
    white-space: normal;
    font-size: 18px;
}

.reference-toolbar {
    display: flex;
    gap: 8px;
    min-height: 48px;
    border-radius: 14px;
    padding: 4px;
    background: #ffffff;
}

.reference-toolbar input {
    width: 100%;
    min-width: 0;
    border: 0;
    border-radius: 10px;
    padding: 10px 14px;
    background: transparent;
    color: #272330;
    font-size: 14px;
}

.reference-toolbar button,
.reference-cart__checkout {
    border: 0;
    border-radius: 10px;
    padding: 10px 16px;
    background: var(--primary, #7354c6);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.reference-frame--violet > .reference-cart {
    grid-column: 3;
    grid-row: 1 / -1;
}

.reference-cart {
    position: sticky;
    top: 16px;
    padding: 20px 16px;
    border-radius: 20px;
    background: #ffffff;
    color: #24212d;
    font-family: Inter, sans-serif;
}

.reference-cart h2 {
    margin: 0 0 20px;
    font-size: 18px;
}

.reference-cart__items {
    display: grid;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.reference-cart__items li {
    display: grid;
    grid-template-columns: 66px minmax(0, 1fr);
    gap: 10px;
}

.reference-cart__items img {
    object-fit: contain;
    background: #f3f1f6;
    border-radius: 10px;
}

.reference-cart__items h3,
.reference-cart__items p,
.reference-cart__items span {
    margin: 0 0 6px;
    font-size: 14px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.reference-cart__total {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-block: 22px 16px;
    font-size: 14px;
}

.reference-cart__checkout {
    width: 100%;
    min-height: 44px;
}

.reference-cart__checkout:disabled {
    cursor: default;
    opacity: .65;
}

.reference-cart__empty {
    color: #666171;
    font-size: 14px;
    line-height: 1.6;
}

.reference-cart__quantity {
    display: flex;
    gap: 6px;
}

.reference-cart__quantity button {
    min-width: 34px;
    min-height: 34px;
    border: 1px solid #dcd6e7;
    border-radius: 7px;
    background: #ffffff;
    color: #332a46;
    font-size: 18px;
    cursor: pointer;
}

@container reference-products (max-width: 640px) {
    .reference-products .tpl-showcase__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@container reference-store (max-width: 1050px) {
    .reference-frame--violet {
        grid-template-columns: 160px minmax(0, 1fr);
    }

    .reference-frame--violet > .reference-cart {
        grid-column: 2;
        grid-row: auto;
        position: static;
    }
}

@container reference-store (max-width: 700px) {
    .reference-hero {
        min-height: 620px !important;
        align-items: flex-start;
    }

    .reference-hero__copy,
    .reference-hero--violet .reference-hero__copy,
    .reference-hero--fashion .reference-hero__copy {
        width: 100%;
        padding: 28px 24px;
    }

    .reference-hero h1,
    .reference-hero--audio h1,
    .reference-hero--sneaker h1,
    .reference-hero--mono h1 {
        max-width: 12ch;
        font-size: clamp(34px, 8cqi, 48px);
    }

    .reference-hero__description {
        max-width: 31ch;
        margin-top: 1rem;
    }

    .reference-hero--audio .reference-hero__description {
        margin-top: 1rem;
    }

    .reference-hero__product,
    .reference-hero--audio .reference-hero__product,
    .reference-hero--violet .reference-hero__product,
    .reference-hero--fashion .reference-hero__product,
    .reference-hero--sneaker .reference-hero__product,
    .reference-hero--mono .reference-hero__product {
        inset: auto 0 0 auto;
        width: 100%;
        height: 54%;
        object-position: bottom;
    }

    .reference-hero--fashion::before {
        width: 90%;
        bottom: -10%;
    }

    .reference-hero__word {
        inset: 52% 4% auto;
        font-size: 19cqi;
    }

    .reference-frame .cs-tiles {
        grid-template-columns: 1fr !important;
    }

    .reference-frame--fashion > :has(.cs-bannerThree.cs-layout-reference-fashion-categories),
    .reference-frame--fashion > :has(.cs-bannerTwo.cs-layout-reference-fashion-categories) {
        grid-column: 1 / -1;
    }

    .reference-frame--violet {
        display: flex;
        flex-direction: column;
        padding: 10px;
    }

    .reference-frame--violet > * {
        width: 100%;
    }

    .reference-frame--violet > [data-reference-section="header"],
    .reference-frame--violet > [data-section-type="header"] { order: -1 !important; }

    .reference-frame--violet .catsec__header--reference-violet .catsec__header-inner {
        flex-direction: row;
        padding: 16px;
        gap: 12px;
    }

    .reference-frame--violet .catsec__header--reference-violet .catsec__header-desktop {
        display: none;
    }

    .reference-frame--violet .catsec__header--reference-violet .catsec__header-toggle {
        display: flex;
    }

    .reference-frame--violet .catsec__header--reference-violet .catsec__header-name {
        white-space: normal;
    }

    .cs-bannerFull[class*="cs-layout-reference-"] .cs-tile {
        min-height: 420px;
        align-items: flex-start;
    }

    .cs-bannerFull[class*="cs-layout-reference-"] .cs-tile__content {
        width: 100%;
        max-width: 100%;
        padding: 24px;
    }

    .cs-bannerFull[class*="cs-layout-reference-"] .cs-tile__image {
        inset: auto 0 0;
        width: 100%;
        height: 60%;
    }
}

/* Each section design also works when applied outside its full storefront. */
.cs-layout-reference-audio-mosaic .cs-tile__content,
.cs-layout-reference-audio-mosaic-reverse .cs-tile__content { width:72% !important; max-width:72% !important; }
.cs-layout-reference-audio-mosaic .cs-tile h3,
.cs-layout-reference-audio-mosaic-reverse .cs-tile h3 { font-size:clamp(18px,2cqi,28px) !important; overflow-wrap:normal; word-break:normal; }
.cs-layout-reference-mono-featured .cs-tile { flex-direction:column-reverse; }
.cs-layout-reference-mono-featured .cs-tile__content { width:100%; max-width:100%; }
.cs-layout-reference-mono-featured .cs-tile h3 { overflow-wrap:normal; word-break:normal; font-size:clamp(18px,2.2cqi,28px); }
.reference-frame--fashion .cs-bannerThree.cs-layout-reference-fashion-categories .cs-tiles { grid-template-columns:repeat(3,minmax(0,1fr)) !important; }
.reference-frame--fashion .cs-bannerTwo.cs-layout-reference-fashion-categories .cs-tiles { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
@container reference-store (max-width:700px) {
 .reference-frame--fashion .cs-bannerThree.cs-layout-reference-fashion-categories .cs-tiles,
 .reference-frame--fashion .cs-bannerTwo.cs-layout-reference-fashion-categories .cs-tiles { grid-template-columns:1fr !important; }
}
@container (max-width:600px) {
 .commerce-section[class*="cs-layout-reference-"] .cs-tiles { grid-template-columns:1fr !important; }
}
