.commerce-storefront {
    --storefront-radius: 1.25rem;
}
.commerce-storefront__hero {
    max-width: 760px;
}
.commerce-storefront__eyebrow {
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--primary, #6f42c1);
    margin-bottom: .75rem;
}
.commerce-storefront__title {
    font-size: clamp(2.25rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.04em;
}
.commerce-storefront__intro {
    max-width: 680px;
    font-size: 1.15rem;
    color: var(--bs-secondary-color);
}
.commerce-storefront__filters,
.commerce-product-card,
.commerce-storefront__empty {
    border-radius: var(--storefront-radius);
}
.commerce-product-card {
    transition: transform .18s ease, box-shadow .18s ease;
}
.commerce-product-card:hover {
    transform: translateY(-4px);
}
.commerce-product-card__media {
    display: grid;
    place-items: center;
    min-height: 260px;
    padding: 1.75rem;
    background: linear-gradient(145deg, #f7f5fb, #fff);
}
.commerce-product-card__cover {
    width: 100%;
    height: 230px;
    object-fit: contain;
    border-radius: .9rem;
}
.commerce-product-card__placeholder {
    display: grid;
    place-items: center;
    min-height: 230px;
    width: 100%;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -.04em;
    color: rgba(0, 0, 0, .28);
    background: linear-gradient(135deg, #efe8ff, #ffe8f2);
}
.commerce-product-card__title {
    color: inherit;
    text-decoration: none;
}
.commerce-product-card__description {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}
.commerce-product-card__description > :last-child {
    margin-bottom: 0;
}
.commerce-product-card__prices {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}
.commerce-product-card__price {
    display: inline-flex;
    align-items: center;
    min-height: 2.25rem;
    padding: .35rem .75rem;
    border: 1px solid var(--bs-border-color);
    border-radius: 999px;
    background: var(--bs-body-bg);
    font-weight: 700;
}
.commerce-product-page__media {
    position: sticky;
    top: 2rem;
}
.commerce-product-page__content {
    max-width: 980px;
    margin-inline: auto;
}
@media (max-width: 991.98px) {
    .commerce-product-page__media { position: static; }
}

/* Commerce 7.95F3 — customisable product presentation pages. */
.commerce-product-commerce-panel {
    max-width: 34rem;
    border-radius: 1.25rem;
}
.commerce-product-sections {
    display: grid;
    gap: 4rem;
}
.commerce-product-section {
    max-width: 1080px;
    width: 100%;
    margin-inline: auto;
}
.commerce-product-section__title {
    margin-bottom: 1rem;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
}
.commerce-product-section__subtitle {
    max-width: 760px;
    margin-bottom: 2rem;
    color: var(--bs-secondary-color);
    font-size: 1.1rem;
}
.commerce-product-section__richtext,
.commerce-product-feature,
.commerce-product-component,
.commerce-product-testimonial,
.commerce-product-faq details,
.commerce-product-cta {
    padding: clamp(1.5rem, 4vw, 3rem);
    border: 1px solid var(--bs-border-color);
    border-radius: 1.25rem;
    background: var(--bs-body-bg);
}
.commerce-product-feature h3,
.commerce-product-component h3 {
    font-size: 1.2rem;
    font-weight: 750;
}
.commerce-product-media {
    margin: 0;
    text-align: center;
}
.commerce-product-media figcaption {
    margin-top: 1rem;
    color: var(--bs-secondary-color);
}
.commerce-product-testimonial {
    font-size: 1.35rem;
}
.commerce-product-testimonial footer {
    margin-top: 1.25rem;
    font-size: 1rem;
    font-weight: 700;
}
.commerce-product-faq {
    display: grid;
    gap: 1rem;
}
.commerce-product-faq summary {
    cursor: pointer;
    font-weight: 750;
}
.commerce-product-editorial-hero {
    background: linear-gradient(135deg, #f7f3ff, #fff4f8);
}
.commerce-product-page--immersive {
    background: #fff;
}
.commerce-product-immersive-hero {
    color: #fff;
    background: linear-gradient(135deg, #24143f, #6a2c70);
}
.commerce-product-immersive-hero--with-cover {
    background-image: linear-gradient(90deg, rgba(24, 12, 42, .92), rgba(24, 12, 42, .48)), var(--commerce-product-cover);
    background-position: center;
    background-size: cover;
}
.commerce-product-immersive-hero__content {
    max-width: 720px;
}
.commerce-product-page--immersive .commerce-product-commerce-panel {
    color: var(--bs-body-color);
}
@media (max-width: 767.98px) {
    .commerce-product-sections { gap: 2.5rem; }
}

/* Commerce 7.95F6A — merchandising foundations. */
.commerce-product-card {
    position: relative;
}
.commerce-product-card--featured {
    display: grid;
    grid-template-columns: minmax(280px, .9fr) minmax(320px, 1.1fr);
    border: 2px solid color-mix(in srgb, var(--primary, #6f42c1) 38%, transparent) !important;
    background: linear-gradient(135deg, color-mix(in srgb, var(--primary, #6f42c1) 7%, white), white 62%);
}
.commerce-product-card--featured .commerce-product-card__media {
    min-height: 100%;
}
.commerce-product-card__featured-label {
    position: absolute;
    z-index: 3;
    top: 1rem;
    left: 1rem;
    padding: .45rem .8rem;
    border-radius: 999px;
    background: var(--primary, #6f42c1);
    color: #fff;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.commerce-product-card__price-block {
    display: grid;
    gap: .25rem;
}
.commerce-product-card__compare-price {
    color: var(--bs-secondary-color);
    font-size: .95rem;
    text-decoration: line-through;
}
.commerce-product-card__price--promotion {
    border-color: color-mix(in srgb, var(--bs-danger) 35%, var(--bs-border-color));
    color: var(--bs-danger);
    font-size: 1.15rem;
}
.commerce-product-card__promotion-end {
    color: var(--bs-danger);
    font-size: .8rem;
    font-weight: 650;
}
@media (max-width: 767.98px) {
    .commerce-product-card--featured {
        display: block;
    }
}


/* 7.95F6B — grouped catalogue, ownership, trust and quick facts. */
.commerce-storefront-group__header {
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(15, 23, 42, .1);
}
.commerce-storefront-group__title { margin: 0 0 .25rem; font-size: clamp(1.45rem, 2vw, 2rem); }
.commerce-product-card__facts { display: flex; flex-wrap: wrap; gap: .5rem; }
.commerce-product-card__fact { padding: .35rem .65rem; border-radius: 999px; background: rgba(15, 23, 42, .05); font-size: .82rem; }
.commerce-product-card__owned { padding: .65rem .8rem; border-radius: .75rem; background: rgba(25, 135, 84, .1); color: #146c43; font-weight: 700; }
.commerce-product-card__trust { display: flex; flex-wrap: wrap; gap: .4rem .8rem; color: #5f6b7a; font-size: .78rem; }
.commerce-product-card__trust span { white-space: nowrap; }


/* 7.95F6C — visual polish, badge icons and recommendations. */
.commerce-product-card { transition: transform .18s ease, box-shadow .18s ease; }
.commerce-product-card:hover { transform: translateY(-3px); box-shadow: 0 1rem 2.5rem rgba(15,23,42,.12); }
.commerce-product-badge { display:inline-flex; align-items:center; justify-content:center; gap:.35rem; line-height:1; }
.commerce-product-type-badge { display:inline-flex; align-items:center; justify-content:center; min-height:2rem; line-height:1; padding-top:.45rem; padding-bottom:.45rem; }
.commerce-product-badge__icon { line-height:1; font-size:1.05em; }
.commerce-product-card__cover img { aspect-ratio:16/10; object-fit:cover; }
.commerce-storefront-recommendations { border-top:1px solid rgba(15,23,42,.08); }
@media (max-width: 575.98px) {
  .commerce-product-card:hover { transform:none; }
  .commerce-product-card__trust { display:grid; grid-template-columns:1fr 1fr; }
  .commerce-product-card__fact { font-size:.76rem; }
}

.commerce-product-badge__icon {
    margin-right: .35rem;
}

/* Gustave is a signature badge: its medallion is visually larger without
   changing the line-height or the size of neighbouring badges. */
.commerce-product-badge--gustave {
    position: relative;
    min-height: 2rem;
    padding: .42rem 1rem .42rem 4.85rem;
    overflow: visible;
    white-space: nowrap;
}

.commerce-product-badge__gustave-medallion {
    position: absolute;
    left: -.12rem;
    top: 50%;
    width: 4.25rem;
    height: 4.25rem;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    border: 2px solid currentColor;
    box-shadow: 0 .18rem .45rem rgba(15, 23, 42, .18);
    overflow: hidden;
}

.commerce-product-badge__gustave-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: .1rem;
}

.commerce-product-badge__gustave-fallback {
    font-size: 1.65rem;
    line-height: 1;
}

.commerce-product-badge__gustave-label {
    line-height: 1;
}


/* Commerce 7.95F6H — shared badge renderer and XL Gustave medallion. */
.commerce-product-badges {
    align-items: center;
    overflow: visible;
}
.commerce-product-badge__label {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}
.commerce-product-page .commerce-product-badges {
    margin-bottom: 1rem;
}


/* 7.95F6I — uniform badge height and independent Gustave medallion. */
.commerce-product-type-badge,
.commerce-product-badge {
    box-sizing: border-box;
    height: 1.75rem;
    min-height: 1.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding-top: .45rem;
    padding-bottom: .45rem;
    white-space: nowrap;
}

.commerce-product-badges {
    min-height: 1.75rem;
    align-items: center;
    overflow: visible;
}

.commerce-product-card__badge-row > .commerce-product-badges {
    margin-bottom: 0 !important;
}

.commerce-product-badge--gustave {
    position: relative;
    height: 1.75rem;
    min-height: 1.75rem;
    padding: .45rem 1rem .45rem 4.85rem;
    overflow: visible;
}

.commerce-product-badge__gustave-medallion {
    position: absolute;
    left: -.10rem;
    top: 50%;
    width: 4.0rem;
    height: 4.0rem;
    transform: translateY(-50%);
}

.commerce-product-commerce-panel .commerce-product-badges {
    margin-bottom: 1rem;
}

/* Commerce 7.95G4-G5 — cart actions and cart page. */
.commerce-product-card__cart-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.commerce-cart-trigger { position: relative; display: inline-flex; align-items: center; gap: .5rem; }
.commerce-cart-trigger__count { min-width: 1.6rem; height: 1.6rem; display: inline-grid; place-items: center; border-radius: 999px; font-size: .78rem; font-weight: 800; }
.commerce-cart-summary { position: sticky; top: 2rem; border-radius: 1.25rem; }
.commerce-cart-summary__totals { display: grid; gap: .85rem; }
.commerce-cart-summary__totals > div { display: flex; justify-content: space-between; gap: 1rem; }
.commerce-cart-summary__totals dt { font-weight: 500; color: var(--bs-secondary-color); }
.commerce-cart-summary__totals dd { margin: 0; font-weight: 700; }
.commerce-cart-summary__grand-total { padding-top: 1rem; border-top: 1px solid var(--bs-border-color); font-size: 1.15rem; }
.commerce-cart-line, .commerce-cart-empty { border-radius: 1.25rem; }
.commerce-cart-empty__icon { font-size: 3rem; }
@media (max-width: 991.98px) { .commerce-cart-summary { position: static; } }

/* Commerce 7.95G6 — cart UX and payment reassurance. */
.commerce-cart-line__layout {
    display: grid;
    grid-template-columns: 6rem minmax(0, 1fr) auto;
    gap: 1.25rem;
    align-items: start;
}

.commerce-cart-line__visual {
    width: 6rem;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: .85rem;
    background: rgba(15, 23, 42, .05);
}

.commerce-cart-line__cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.commerce-cart-line__placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    padding: .5rem;
    font-size: .72rem;
    font-weight: 800;
    color: rgba(15, 23, 42, .45);
    background: linear-gradient(135deg, #efe8ff, #ffe8f2);
}

.commerce-cart-line__details {
    font-size: .9rem;
    font-weight: 650;
    text-decoration: none;
}

.commerce-cart-line__price {
    white-space: nowrap;
    font-size: 1.05rem;
}

.commerce-cart-line__remove {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    text-decoration: none;
}

.commerce-cart-summary {
    position: sticky;
    top: 2rem;
}

.commerce-payment-reassurance {
    display: grid;
    gap: .65rem;
}

.commerce-payment-reassurance__benefit,
.commerce-payment-reassurance__security {
    display: flex;
    align-items: center;
    gap: .4rem;
    white-space: nowrap;
}

.commerce-payment-reassurance__icons {
    flex-wrap: nowrap;
}

.commerce-payment-reassurance__icons img {
    display: block;
    width: auto;
    height: 1.625rem;
    object-fit: contain;
}

@media (max-width: 767.98px) {
    .commerce-cart-line__layout {
        grid-template-columns: 5rem minmax(0, 1fr);
        gap: 1rem;
    }

    .commerce-cart-line__visual {
        width: 5rem;
    }

    .commerce-cart-line__price {
        grid-column: 2;
    }

    .commerce-cart-summary {
        position: static;
    }
}
