/* W38 secondary support catalogue. */
.shop-catalogue-section { display: grid; gap: 22px; padding-block: clamp(44px, 7vw, 78px); border: 0; }
.shop-catalogue-section > .shop-section-heading { width: min(100%, 920px); max-width: none; justify-self: center; padding: 20px 24px; background: var(--surface-2); border: 1px solid var(--surface-border); border-radius: calc(var(--radius-card) + 4px); box-shadow: var(--mb-shadow); text-align: center; }
.shop-catalogue-section > .shop-section-heading .mb-h2 { color: var(--coco-sand-100); font-size: clamp(30px, 4.2vw, 44px); }
.shop-catalogue-section > .shop-section-heading > p { max-width: 56ch; margin-inline: auto; }
.shop-toolbar { display: flex; min-width: 0; align-items: end; justify-content: space-between; gap: 16px; padding: 12px; background: var(--surface-1); border: 1px solid var(--surface-border); border-radius: 9px; }
.shop-filter-zone { display: grid; min-width: 0; gap: 7px; }
.shop-filter-label { color: var(--mb-fg3); font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.shop-filter-list { display: flex; min-width: 0; gap: 2px; }
.shop-filter-tab { position: relative; min-height: 40px; padding: 8px 11px; color: var(--mb-fg3); background: transparent; border: 0; border-bottom: 2px solid transparent; border-radius: 0; font-size: 11px; font-weight: 800; white-space: nowrap; transition: color var(--dur-fast) var(--ease-out),
        background var(--dur-fast) var(--ease-out),
        border-color var(--dur-fast) var(--ease-out); }
.shop-filter-tab:hover { color: var(--mb-fg1); background: color-mix(in srgb, var(--coco-gold-300) 5%, transparent); }
.shop-filter-tab.is-active { color: var(--coco-gold-100); border-bottom-color: var(--coco-gold-300); }
.shop-toolbar-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 12px; }
.shop-filter-count { color: var(--mb-fg3); font-size: 10px; font-weight: 750; white-space: nowrap; }
.shop-sort { position: relative; }
.shop-sort-trigger { display: inline-flex; min-width: 170px; min-height: 42px; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; color: var(--mb-fg2); background: var(--surface-2); border: 1px solid var(--surface-border); border-radius: 7px; font-size: 11px; font-weight: 800; transition: color var(--dur-fast) var(--ease-out),
        background var(--dur-fast) var(--ease-out),
        border-color var(--dur-fast) var(--ease-out); }
.shop-sort-trigger:hover, .shop-sort-trigger.is-open { color: var(--mb-fg1); background: color-mix(in srgb, var(--coco-gold-300) 7%, var(--surface-2)); border-color: color-mix(in srgb, var(--coco-gold-300) 31%, var(--surface-border)); }
.shop-sort-trigger > svg, .shop-sort-trigger > i, .shop-sort-chevron { width: 15px; height: 15px; }
.shop-sort-chevron { color: var(--mb-fg3); transition: transform var(--dur-fast) var(--ease-out); }
.shop-sort-trigger.is-open .shop-sort-chevron { transform: rotate(180deg); }
.shop-sort-popover { position: absolute; z-index: 30; top: calc(100% + 8px); right: 0; display: grid; width: 220px; overflow: hidden; padding: 6px; background: var(--surface-3); border: 1px solid var(--surface-border); border-radius: 8px; box-shadow: var(--mb-shadow-lg); }
.shop-sort-popover button { display: grid; grid-template-columns: 18px minmax(0, 1fr) 16px; min-height: 40px; align-items: center; gap: 8px; padding: 7px 8px; color: var(--mb-fg2); background: transparent; border: 0; border-radius: 6px; font-size: 11px; font-weight: 750; text-align: left; }
.shop-sort-popover button:hover, .shop-sort-popover button.is-active { color: var(--mb-fg1); background: color-mix(in srgb, var(--coco-gold-300) 8%, var(--surface-2)); }
.shop-sort-popover button > svg, .shop-sort-popover button > i { width: 14px; height: 14px; }
.shop-sort-check { color: var(--coco-leaf-200); }
.shop-mobile-filter-trigger { display: none; }
.shop-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.shop-card-grid.is-single { grid-template-columns: minmax(0, 420px); justify-content: center; }
.shop-product-card { --shop-accent: var(--coco-gold-300); position: relative; display: grid; grid-template-rows: minmax(0, 1fr) auto; min-width: 0; overflow: hidden; background: var(--surface-2); border: 1px solid var(--surface-border); border-top: 3px solid var(--shop-accent); border-radius: 8px; box-shadow: var(--mb-shadow); transition: border-color var(--dur-fast) var(--ease-out),
        transform var(--dur-base) var(--spring-soft),
        box-shadow var(--dur-base) var(--ease-out); }
.shop-product-card.is-custom-price { border-top-width: 1px; border-top-color: var(--surface-border); }
.shop-product-card.category-cosmetique { --shop-accent: var(--coco-orange-300); }
.shop-product-card.category-compagnon { --shop-accent: var(--coco-leaf-300); }
.shop-product-card.category-cle_cosmetique { --shop-accent: var(--coco-sea-200); }
.shop-product-card.category-autre { --shop-accent: var(--coco-sand-300); }
.shop-product-card.u-hover-lift:hover { border-color: color-mix(in srgb, var(--shop-accent) 36%, var(--surface-border)); box-shadow: var(--mb-shadow-lg); transform: translateY(-4px); }
.shop-product-card.is-unavailable { opacity: .72; }
.shop-card-link { display: grid; grid-template-rows: auto minmax(0, 1fr); min-width: 0; color: inherit; text-decoration: none; }
.shop-image-frame { position: relative; display: grid; aspect-ratio: 3 / 2; min-width: 0; place-items: center; overflow: hidden; background: linear-gradient(145deg, color-mix(in srgb, var(--shop-accent) 8%, transparent), transparent),
        var(--surface-1); border-bottom: 1px solid var(--surface-border); }
.shop-product-image { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity var(--dur-base) var(--ease-out),
        transform var(--dur-base) var(--ease-out); }
.shop-product-image.is-loaded { opacity: 1; }
.shop-product-image.is-error { opacity: 0; }
.shop-product-card:hover .shop-product-image { transform: scale(1.025); }
.shop-image-skeleton { position: absolute; inset: 0; }
.shop-image-fallback { display: grid; place-items: center; gap: 8px; color: var(--mb-fg3); font-size: 11px; font-weight: 750; text-align: center; }
.shop-image-fallback svg, .shop-image-fallback i { width: 24px; height: 24px; }
.shop-support-free-mark { display: grid; min-height: 94px; place-items: center; color: var(--coco-gold-100); background: var(--surface-1); border-bottom: 1px solid var(--surface-border); }
.shop-support-free-mark svg, .shop-support-free-mark i { width: 30px; height: 30px; }
.shop-card-body { display: grid; min-width: 0; align-content: start; gap: 9px; padding: 14px 15px 10px; }
.shop-card-title { margin: 0; overflow: hidden; color: var(--mb-fg1); font-family: var(--font-display); font-size: 17px; font-weight: 780; letter-spacing: -.015em; text-overflow: ellipsis; white-space: nowrap; }
.shop-card-price { display: grid; min-height: 40px; align-content: center; gap: 1px; }
.shop-card-price small { color: var(--mb-fg3); font-size: 9px; font-weight: 750; }
.shop-card-price .coco-price { font-family: var(--font-display); font-size: clamp(20px, 3vw, 27px); font-variant-numeric: tabular-nums; font-weight: 680; letter-spacing: -.02em; }
.shop-ribbon { justify-self: start; padding: 4px 7px; color: var(--coco-orange-200); background: color-mix(in srgb, var(--warning) 8%, var(--surface-1)); border-left: 3px solid var(--coco-orange-300); font-size: 9px; font-weight: 850; text-transform: uppercase; }
.shop-card-actions { display: grid; gap: 10px; padding: 10px 15px 15px; }
.shop-custom-price { display: grid; gap: 6px; }
.shop-custom-price > span:first-child { color: var(--mb-fg2); font-size: 10px; font-weight: 800; }
.shop-custom-price-field { display: grid; grid-template-columns: minmax(0, 1fr) 28px; align-items: center; overflow: hidden; background: var(--surface-1); border: 1px solid var(--surface-border); border-radius: 7px; }
.shop-custom-price-field input { width: 100%; min-width: 0; min-height: 42px; padding: 8px 10px; color: var(--mb-fg1); background: transparent; border: 0; font-size: 13px; font-weight: 800; }
.shop-custom-price-field > span { color: var(--coco-gold-200); font-weight: 900; text-align: center; }
.shop-custom-price-hint { min-height: 16px; color: var(--mb-fg3); font-size: 9px; line-height: 1.4; }
.shop-custom-price-hint.is-error { color: var(--coco-ruby-200); }
.shop-empty-state { margin-top: 8px; }
.shop-sheet-backdrop { position: fixed; z-index: 90; inset: 0; display: none; align-items: end; justify-content: center; padding-top: 64px; background: color-mix(in srgb, var(--mb-outline) 72%, transparent); }
.shop-filter-sheet { width: min(100%, 560px); max-height: calc(100svh - 64px); overflow-y: auto; padding: 18px; padding-bottom: max(18px, env(safe-area-inset-bottom)); background: var(--surface-2); border: 1px solid var(--surface-border); border-bottom: 0; border-radius: 14px 14px 0 0; box-shadow: var(--mb-shadow-xl); }
.shop-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.shop-sheet-head .mb-h2 { margin: 0; font-size: 20px; }
.shop-sheet-close { display: grid; width: 44px; height: 44px; place-items: center; color: var(--mb-fg1); background: var(--surface-1); border: 1px solid var(--surface-border); border-radius: 8px; }
.shop-sheet-close svg, .shop-sheet-close i { width: 18px; height: 18px; }
.shop-sheet-group { display: grid; gap: 9px; margin-top: 18px; }
.shop-sheet-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.shop-sheet-option { display: flex; min-height: 46px; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 11px; color: var(--mb-fg2); background: var(--surface-1); border: 1px solid var(--surface-border); border-radius: 7px; font-size: 11px; font-weight: 800; }
.shop-sheet-option.is-active { color: var(--mb-fg1); background: color-mix(in srgb, var(--coco-gold-300) 9%, var(--surface-1)); border-color: color-mix(in srgb, var(--coco-gold-300) 44%, var(--surface-border)); }
.shop-sheet-option small { color: var(--mb-fg3); }
.shop-sheet-sort-options { display: grid; gap: 7px; }
.shop-sheet-sort-options button { display: grid; grid-template-columns: 20px minmax(0, 1fr); min-height: 44px; align-items: center; gap: 9px; padding: 8px 11px; color: var(--mb-fg2); background: var(--surface-1); border: 1px solid var(--surface-border); border-radius: 7px; font-size: 11px; font-weight: 800; text-align: left; }
.shop-sheet-sort-options button.is-active { color: var(--mb-fg1); border-color: color-mix(in srgb, var(--coco-gold-300) 44%, var(--surface-border)); }
.shop-sheet-sort-options svg, .shop-sheet-sort-options i { width: 16px; height: 16px; }
.shop-sheet-apply { width: 100%; justify-content: center; margin-top: 20px; }
.shop-sheet-enter, .shop-sheet-leave { transition: transform var(--dur-base) var(--ease-out),
        opacity var(--dur-fast) var(--ease-out); }
.shop-sheet-enter-start, .shop-sheet-leave-end { opacity: 0; transform: translateY(18px); }
.shop-sheet-enter-end, .shop-sheet-leave-start { opacity: 1; transform: translateY(0); }
@media (max-width: 900px) {
    .shop-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
    .shop-catalogue-section { gap: 16px; }
    .shop-catalogue-section > .shop-section-heading { padding: 17px 15px; }
    .shop-toolbar { display: none; }
    .shop-mobile-filter-trigger { display: flex; min-height: 48px; align-items: center; justify-content: space-between; gap: 9px; padding: 9px 12px; color: var(--mb-fg1); background: var(--surface-1); border: 1px solid var(--surface-border); border-radius: 8px; box-shadow: var(--mb-shadow); font-size: 11px; font-weight: 850; }
    .shop-mobile-filter-trigger svg, .shop-mobile-filter-trigger i { width: 17px; height: 17px; color: var(--coco-gold-200); }
    .shop-mobile-filter-trigger strong { color: var(--mb-fg3); font-size: 10px; }
    .shop-sheet-backdrop { display: flex; }
}
@media (max-width: 520px) {
    .shop-card-grid { grid-template-columns: minmax(0, 1fr); }
    .shop-card-link { grid-template-columns: 116px minmax(0, 1fr); grid-template-rows: minmax(122px, auto); }
    .shop-image-frame, .shop-support-free-mark { min-height: 100%; aspect-ratio: auto; border-right: 1px solid var(--surface-border); border-bottom: 0; }
    .shop-card-body { align-content: center; }
    .shop-sheet-options { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
    .shop-product-card.u-hover-lift:hover, .shop-product-card:hover .shop-product-image { transform: none; }
}
