/* Scoped presentation. Existing purchase/selection button rules remain untouched. */
body.home .extrait-selection { padding-top: 48px !important; }
body.home .extrait-cards { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 30px; }
body.home .extrait-card h3 { margin: 18px 0 10px; font-size: 25px; }
body.home .extrait-card-brand { font-size: 18px; margin-bottom: 7px; line-height: 1.4; }
body.home .extrait-card-name { line-height: 1.3; }
.extrait-card-family { color: #59634f; font: 400 12px/1.9 "Noto Sans Arabic",Arial,sans-serif; margin: 0 0 10px; }
.extrait-card-price { margin: 0 0 18px; color: #193d2b; font: 500 14px/1.8 "Noto Sans Arabic",Arial,sans-serif; }
body.home .extrait-brand-list { grid-template-columns: repeat(3,minmax(0,1fr)); }
body.home .extrait-brand-list li:nth-child(4n) { border-inline-end: 1px solid rgba(198,164,95,.4); }
body.home .extrait-brand-list li:nth-child(3n) { border-inline-end: 0; }
body.home .extrait-discovery { padding-block: 30px 48px !important; }
body.extrait-catalog .wd-product .wd-entities-title.extrait-card-title { min-height: 0; margin-bottom: 8px; overflow-wrap: normal; word-break: normal; }
.extrait-loop-brand,.extrait-loop-name { display: block; }
body.extrait-catalog .extrait-loop-brand { font-size: 15px; letter-spacing: .04em; line-height: 1.45; margin-bottom: 7px; color: #52604b; }
body.extrait-catalog .extrait-loop-name { font-size: 25px; line-height: 1.3; }
body.extrait-catalog .product-element-bottom.product-information { display: flex; flex-direction: column; flex: 1; }
body.extrait-catalog .product-element-bottom>.wd-product-card-hover { margin-top: auto; }
.extrait-card-edition { min-height: 22px; font: 400 11px/1.8 "Noto Sans Arabic",Arial,sans-serif; color: #59634f; margin: 0 0 8px; }
.extrait-tester-label { display: inline-block; margin-inline-start: 8px; padding-inline: 7px; border: 1px solid #b7a582; color: #6d552b; font-size: 10px; }
body.extrait-catalog .product-labels .product-label,
body.single-product .product-labels .product-label {
    width: auto !important; height: auto !important; min-width: 0 !important; min-height: 0 !important;
    max-width: none !important; border-radius: 0 !important; padding: 7px 10px !important;
    white-space: nowrap; word-break: normal !important; overflow-wrap: normal !important;
    font: 400 11px/1.7 "Noto Sans Arabic",Arial,sans-serif !important;
    background: #f5f0e6; color: #193d2b; border: 1px solid #b7a582;
}
body .product-labels [data-extrait-stock-label][hidden] { display: none !important; }
body.extrait-catalog .extrait-facet { border-bottom: 1px solid #d9cfb7; }
body.extrait-catalog .extrait-facet-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; list-style: none; }
body.extrait-catalog .extrait-facet-title::-webkit-details-marker { display: none; }
body.extrait-catalog .extrait-facet-title::after { content: '+'; font: 300 21px/1 Georgia,serif; color: #886b35; }
body.extrait-catalog .extrait-facet[open]>.extrait-facet-title::after { content: '−'; }
body.extrait-catalog .extrait-facet-title:focus-visible { outline: 2px solid #193d2b; outline-offset: 2px; }
body.extrait-catalog .extrait-facet .extrait-facet-options { max-height: none !important; overflow: visible !important; }
body.extrait-catalog .extrait-facet .extrait-facet-options>ul { max-height: none !important; overflow: visible !important; }
body.extrait-catalog .extrait-brand-find { margin-block: 2px 12px; }
body.extrait-catalog .extrait-brand-find input { box-sizing: border-box; display: block; width: 100%; max-width: 100%; min-width: 0; height: 46px; min-height: 46px; padding: 10px 12px; font-size: 12px; }
body.extrait-catalog .extrait-filter-panel li[hidden] { display: none !important; }
body.extrait-catalog .extrait-filter-empty { font-size: 12px; color: #59634f; padding-block: 12px; }
body.extrait-catalog .extrait-brand-more { padding: 8px 0; min-height: 44px; background: transparent; border: 0; box-shadow: none; color: #193d2b; font: 400 12px/1.8 "Noto Sans Arabic",Arial,sans-serif; text-decoration: underline; text-underline-offset: 4px; }
body.extrait-catalog .extrait-brand-more[hidden],body.extrait-catalog .extrait-filter-empty[hidden] { display: none !important; }
body.extrait-catalog .extrait-brand-more:focus-visible { outline: 2px solid #193d2b; outline-offset: 2px; }
body.extrait-catalog .extrait-filter-results { display: none; }
body.extrait-catalog .extrait-catalog-active-filters ul { display: flex; gap: 8px; flex-wrap: wrap; padding: 0; list-style: none; }
body.extrait-catalog .extrait-catalog-active-filters li { margin: 0; }
body.extrait-catalog .extrait-catalog-active-filters a { padding: 6px 10px; border: 1px solid #b7a582; min-height: 38px; }
body.extrait-catalog .extrait-catalog-results { transition: opacity 160ms ease; }
body.extrait-catalog .extrait-catalog-results[aria-busy=true] { opacity: .65; }
body.single-product .extrait-product-gallery .wd-gallery-thumb { margin-top: 12px; }
@media(min-width:1025px) and (hover:hover) and (prefers-reduced-motion:no-preference){
    body .extrait-card-photo img.extrait-normalized-image,
    body.extrait-catalog .product-image-link img.extrait-normalized-image { transition: scale 360ms ease !important; }
    body .extrait-card-photo:hover img.extrait-normalized-image,
    body.extrait-catalog .product-image-link:hover img.extrait-normalized-image { scale: 1.025; }
}
@media(max-width:1024px){
    body.home .extrait-cards { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px 22px; }
    body.extrait-catalog .extrait-filter-results { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; position: sticky; bottom: 0; margin-block: 14px 0; flex: 0 0 auto; z-index: 5; }
    body.extrait-catalog .extrait-filter-panel { padding-bottom: 16px !important; }
}
@media(max-width:768.98px){
    body.home .extrait-selection { padding-block: 30px 34px !important; }
    body.home .extrait-discovery { padding-block: 20px 32px !important; }
    body.home .extrait-brand-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
    body.home .extrait-brand-list li:nth-child(3n) { border-inline-end: 1px solid rgba(198,164,95,.4); }
    body.home .extrait-brand-list li:nth-child(2n) { border-inline-end: 0; }
    body.home .extrait-brand-list a { min-height: 82px; font-size: 20px; padding: 14px 10px; }
    body.home .extrait-card h3 { font-size: 22px; }
    body.home .extrait-card-brand { font-size: 15px; }
    .extrait-card-family { font-size: 10px; margin-bottom: 8px; }
    .extrait-card-price { font-size: 12px; margin-bottom: 12px; }
    body.extrait-catalog .extrait-loop-name { font-size: 22px; }
    body.extrait-catalog .extrait-loop-brand { font-size: 14px; }
    body.single-product .extrait-product-gallery .woocommerce-product-gallery__image { height: min(310px,calc(100vw - 64px)) !important; }
    body.single-product .extrait-product-gallery .wd-gallery-thumb .wd-carousel-item,
    body.single-product .extrait-product-gallery .extrait-normalized-thumb { height: 62px !important; }
}
@media(prefers-reduced-motion:reduce){
    body .extrait-card-photo img,body.extrait-catalog .product-image-link img { scale: none !important; }
    body.extrait-catalog .extrait-catalog-results { transition: none; }
}
