/* Almostapha Smart — boutique (catégories, fiche produit)
   Identité : bleu #1C61E7, marine #0E3A8C, Lexend Deca (titres), Open Sans (texte) */
:root{
  --msp-blue:#1C61E7; --msp-blue-h:#174FC4; --msp-blue-l:#E6EFFD; --msp-navy:#0E3A8C;
  --msp-soft:#F0F6FC; --msp-line:#E1EBFF; --msp-ink:#242424; --msp-ink2:#333; --msp-mut:#6B6B6B;
  --msp-new:#137A3E; --msp-used:#B4520F; --msp-wa:#1F9D55;
  --msp-ease:cubic-bezier(.2,.7,.2,1);
  --msp-sh:0 14px 34px -14px rgba(14,58,140,.28),0 2px 6px rgba(14,58,140,.06);
  --msp-h:'Lexend Deca',system-ui,sans-serif;--msp-b:'Open Sans',system-ui,sans-serif;--msp-pill:4px;--msp-card:6px;
}

/* ============ Fond général des pages boutique ============ */
.woocommerce-page .main-page-wrapper,.archive.woocommerce .main-page-wrapper,.single-product .main-page-wrapper{background:#fff}

/* ============ En-tête de catégorie ============ */
.elementor-element-3642b68{border-radius:var(--msp-card);background:linear-gradient(115deg,var(--msp-blue) 0%,var(--msp-navy) 100%);color:#fff;padding:30px 36px 32px!important;margin:34px 0 8px;position:relative;overflow:hidden;isolation:isolate}
.elementor-element-3642b68::after{content:"";position:absolute;right:-120px;top:-140px;width:420px;height:420px;border-radius:50%;background:radial-gradient(circle,rgba(255,255,255,.16),transparent 65%);z-index:-1}
.elementor-element-3642b68>.elementor-widget-wrap{flex-direction:column;align-items:flex-start!important;gap:0}
.elementor-element-3642b68 .woocommerce-breadcrumb,.elementor-element-3642b68 .woocommerce-breadcrumb a,.elementor-element-3642b68 .woocommerce-breadcrumb .breadcrumb-last{color:rgba(255,255,255,.75)!important;font-size:13.5px}
.elementor-element-3642b68 .woocommerce-breadcrumb a:hover{color:#fff!important}
.elementor-element-3642b68 .woocommerce-breadcrumb .wd-delimiter::after,.elementor-element-3642b68 .woocommerce-breadcrumb .delimiter{color:rgba(255,255,255,.5)}
.msp-cat-title{margin-top:14px!important}
.msp-cat-title .entry-title,.msp-cat-title h1{color:#fff!important;font-family:var(--msp-h)!important;font-size:clamp(30px,4vw,46px)!important;font-weight:600!important;letter-spacing:-.025em;line-height:1.05!important;margin:0!important}
.msp-cat-intro{margin-top:12px!important;max-width:720px}
.msp-cat-intro .term-description p{color:rgba(255,255,255,.88)!important;font-size:16px;line-height:1.6;margin:0}
.msp-subcats-w{width:100%;margin-top:22px!important}
.msp-subcats{display:flex;flex-wrap:wrap;gap:8px}
.msp-chip{display:inline-flex;align-items:center;gap:8px;height:40px;padding:0 16px;border-radius:var(--msp-pill);background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.22);color:#fff!important;font-family:var(--msp-h);font-size:14px;font-weight:500;transition:background .2s,border-color .2s,transform .2s var(--msp-ease)}
.msp-chip small{font-family:var(--msp-b);font-size:12px;opacity:.75;font-weight:600}
.msp-chip:hover{background:rgba(255,255,255,.22);border-color:rgba(255,255,255,.45);transform:translateY(-1px)}
.msp-chip.is-on{background:#fff;color:var(--msp-blue)!important;border-color:#fff}
.msp-chip:focus-visible{outline:3px solid #fff;outline-offset:2px}
/* le bandeau des 6 rayons reste sur /boutique/ mais pas dans une catégorie */
.tax-product_cat .msp-rayons{display:none}
.post-type-archive-product .elementor-element-3642b68 .msp-rayons{width:100%;margin-top:22px!important}
.post-type-archive-product .elementor-element-3642b68 .category-grid-item .wd-entities-title,.post-type-archive-product .elementor-element-3642b68 .category-grid-item .more-products,.post-type-archive-product .elementor-element-3642b68 .category-grid-item .more-products a{color:#fff!important}
.post-type-archive-product .elementor-element-3642b68 .category-grid-item .wrapp-category{background:rgba(255,255,255,.1)!important;border-radius:var(--msp-card)}

/* ============ Barre d'outils ============ */
.msp-cat-count .woocommerce-result-count{font-size:14px;color:var(--msp-mut);margin:0}
.woocommerce-ordering select.orderby{height:42px;border-radius:var(--msp-pill)!important;border:1px solid var(--msp-line)!important;background-color:#fff!important;padding:0 40px 0 18px!important;font-size:14px;color:var(--msp-ink)}
.woocommerce-ordering select.orderby:hover{border-color:var(--msp-blue)!important}
.wd-products-per-page a,.wd-products-shop-view a{font-family:var(--msp-h)}

/* ============ Colonne filtres ============ */
.content-layout-wrapper .elementor-element-3f032b7,.elementor-element-3f032b7{border-radius:var(--msp-card)!important;border:1px solid var(--msp-line);background:#fff!important;padding:6px 22px!important}
.sidebar-widget.widget{padding:16px 0!important;margin:0!important;border-bottom:1px solid var(--msp-line)}
.sidebar-widget.widget:last-child{border-bottom:0}
.sidebar-widget .widget-title{font-family:var(--msp-h)!important;font-size:15px!important;font-weight:600!important;color:var(--msp-ink)!important;text-transform:none!important;letter-spacing:0!important;margin:0!important}
.wd-widget-collapse .widget-title{cursor:pointer}
.wd-filter-list .wc-layered-nav-term{padding:2px 0}
.wd-filter-list .layered-nav-link{border-radius:var(--msp-card);padding:6px 8px!important;transition:background .2s}
.wd-filter-list .layered-nav-link:hover{background:var(--msp-soft)}
.wd-filter-list .wc-layered-nav-term.chosen .layered-nav-link,.wd-filter-list .wd-active .layered-nav-link{background:var(--msp-blue-l);color:var(--msp-blue)}
.wd-filter-list .count{background:var(--msp-soft)!important;border:0!important;border-radius:var(--msp-pill)!important;color:var(--msp-mut)!important;font-size:11.5px!important}
.wd-filter-search input{border-radius:var(--msp-pill)!important;height:38px;font-size:13.5px}
.widget_price_filter .ui-slider .ui-slider-range,.widget_price_filter .ui-slider .ui-slider-handle{background:var(--msp-blue)!important}
.widget_price_filter .price_slider_amount .button{border-radius:var(--msp-pill)!important;background:var(--msp-blue)!important;color:#fff!important;font-family:var(--msp-h);height:36px;padding:0 18px!important}
.wd-active-filters .wd-widget,.wd-active-filters a,.widget_layered_nav_filters li a{border-radius:var(--msp-pill)!important}

/* ============ Cartes produit (grille) ============ */
.products.elements-grid .product-grid-item .product-wrapper{background:var(--msp-soft)!important;border-radius:var(--msp-card)!important;padding:14px 14px 16px!important;box-shadow:none!important;border:0!important;height:100%;display:flex;flex-direction:column;transition:background .3s,box-shadow .35s var(--msp-ease),transform .35s var(--msp-ease)}
.products.elements-grid .product-grid-item:hover .product-wrapper{background:#fff!important;box-shadow:var(--msp-sh)!important;transform:translateY(-4px)}
.product-grid-item .product-element-top{background:transparent!important;border-radius:var(--msp-card);overflow:hidden;aspect-ratio:1/1;display:flex;align-items:center;justify-content:center}
.product-grid-item .product-element-top .product-image-link{display:flex;align-items:center;justify-content:center;width:100%;height:100%}
.product-grid-item .product-element-top img{mix-blend-mode:multiply;object-fit:contain;max-height:100%;width:auto;transition:transform .55s var(--msp-ease)}
.product-grid-item:hover .product-element-top img{transform:scale(1.05)}
.product-grid-item .product-element-bottom{padding:12px 4px 0!important;display:flex;flex-direction:column;flex:1}
.product-grid-item .wd-entities-title{font-family:var(--msp-h)!important;font-size:14.5px!important;font-weight:500!important;line-height:1.35!important;color:var(--msp-ink)!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.7em;margin-bottom:4px!important}
.product-grid-item .wd-entities-title a{color:inherit!important}
.product-grid-item .wd-product-cats{display:none}
.product-grid-item .wd-product-cats a{color:var(--msp-mut)!important}
.product-grid-item .wrap-price{margin-top:auto;padding-top:6px}
.product-grid-item .price,.product-grid-item .price .amount{font-family:var(--msp-h)!important;font-size:19px!important;font-weight:700!important;color:var(--msp-ink)!important}
.product-grid-item .price del .amount{font-size:13px!important;color:var(--msp-mut)!important;font-weight:400!important}
.product-grid-item .price ins{text-decoration:none}
.product-grid-item .wd-product-sku,.product-grid-item .wd-star-rating:empty{display:none!important}
.product-grid-item .wd-add-btn{margin-top:12px}
.product-grid-item .wd-add-btn .button,.product-grid-item .wd-add-btn .add_to_cart_button{width:100%;height:44px;border-radius:var(--msp-pill)!important;background:var(--msp-blue)!important;color:#fff!important;font-family:var(--msp-h);font-size:14px!important;font-weight:500!important;text-transform:none!important;letter-spacing:0!important;box-shadow:0 6px 18px -8px rgba(28,97,231,.6);transition:background .2s,transform .18s var(--msp-ease)}
.product-grid-item .wd-add-btn .button:hover{background:var(--msp-blue-h)!important;transform:translateY(-1px)}
.product-grid-item .wd-add-btn .button:active{transform:scale(.97)}
.product-grid-item .wd-add-btn .button.added{background:var(--msp-new)!important}
.product-grid-item .wd-add-btn .added_to_cart{display:none!important}
.product-grid-item.outofstock .wd-add-btn .button{background:#fff!important;color:var(--msp-ink)!important;box-shadow:none;border:1.5px solid #D2D9E6}
/* étiquettes */
.product-labels{left:10px!important;top:10px!important;gap:6px}
.product-labels .product-label{border-radius:var(--msp-pill)!important;font-family:var(--msp-h);font-size:11px!important;font-weight:600!important;letter-spacing:.04em;text-transform:none!important;padding:5px 10px!important;min-height:0!important;min-width:0!important;line-height:1.2!important}
.product-labels .msp-etat{background:#fff!important;box-shadow:0 1px 3px rgba(0,0,0,.08)}
.product-labels .msp-etat.is-new{color:var(--msp-new)!important}
.product-labels .msp-etat.is-used{color:var(--msp-used)!important}
.product-labels .onsale{background:var(--msp-blue)!important;color:#fff!important}
.product-labels .out-of-stock{background:var(--msp-ink)!important;color:#fff!important}
/* infos au survol : supprimées, la carte reste propre */
.product-grid-item .fade-in-block{display:none!important}
.product-grid-item .wd-buttons{border-radius:var(--msp-card)}

/* ============ Pagination ============ */
.woocommerce-pagination ul{gap:8px;border:0!important}
.woocommerce-pagination .page-numbers li{border:0!important}
.woocommerce-pagination .page-numbers a,.woocommerce-pagination .page-numbers span{min-width:44px;height:44px;border-radius:var(--msp-pill)!important;display:inline-flex;align-items:center;justify-content:center;background:var(--msp-soft);color:var(--msp-ink);font-family:var(--msp-h);font-weight:500;transition:background .2s}
.woocommerce-pagination .page-numbers a:hover{background:var(--msp-blue-l);color:var(--msp-blue)}
.woocommerce-pagination .page-numbers .current{background:var(--msp-blue)!important;color:#fff!important}

/* ============ Texte SEO sous les produits ============ */
.msp-cat-seo{max-width:820px;margin:56px 0 8px;padding:34px 36px;border-radius:var(--msp-card);background:var(--msp-soft);color:#4A5160;font-size:15px;line-height:1.75}
.msp-cat-seo h2{font-family:var(--msp-h);font-size:22px;font-weight:600;margin:0 0 12px;color:var(--msp-ink);letter-spacing:-.01em}
.msp-cat-seo p{margin:0 0 12px}.msp-cat-seo p:last-child{margin:0}

/* ============ Fiche produit ============ */
.single-product .woocommerce-breadcrumb{font-size:13.5px}
.single-product .woocommerce-product-gallery .wd-carousel-wrap,.single-product .woocommerce-product-gallery__wrapper,.single-product .woocommerce-product-gallery .wd-gallery-images{background:var(--msp-soft);border-radius:var(--msp-card);overflow:hidden}
.single-product .woocommerce-product-gallery .woocommerce-product-gallery__image img,.single-product .woocommerce-product-gallery .wd-carousel-item img{mix-blend-mode:multiply}
.single-product .woocommerce-product-gallery .wd-gallery-thumb .wd-carousel-item,.single-product .woocommerce-product-gallery .thumbnails .product-image-thumbnail{border-radius:var(--msp-card);overflow:hidden;background:var(--msp-soft)}
.single-product .woocommerce-product-gallery .wd-gallery-thumb img{mix-blend-mode:multiply}
.single-product .wd-gallery-thumb .wd-carousel-item.wd-active,.single-product .wd-gallery-thumb .wd-thumb-active{outline:2px solid var(--msp-blue);outline-offset:-2px;border-radius:var(--msp-card)}
.single-product .product_title{font-family:var(--msp-h)!important;font-weight:600!important;letter-spacing:-.02em;color:var(--msp-ink)!important;line-height:1.15!important}
.msp-price .price,.msp-price .price .amount,.single-product .summary-inner .price .amount{font-family:var(--msp-h)!important;font-weight:700!important;color:var(--msp-ink)!important;letter-spacing:-.02em}
.single-product .stock.in-stock{border-radius:var(--msp-pill)!important;color:var(--msp-new)!important;border-color:#BFE3CC!important;background:#F1FAF4!important;font-weight:600}
.single-product .stock.out-of-stock{border-radius:var(--msp-pill)!important}
.single-product .elementor-element-e242c88{border-radius:var(--msp-card)!important;background:var(--msp-blue-l)!important}
.single-product .woocommerce-product-details__short-description{color:#4A5160;font-size:15px;line-height:1.7}
/* bouton d'achat */
.msp-atc form.cart{display:flex;flex-wrap:wrap;gap:10px;align-items:stretch}
.msp-atc .quantity{border-radius:var(--msp-pill)!important;border:1.5px solid var(--msp-line)!important;overflow:hidden;height:54px;display:inline-flex!important;align-items:center;background:#fff}
.msp-atc .quantity input{border:0!important;height:52px!important;background:transparent!important;font-family:var(--msp-h);font-weight:600}
.msp-atc .quantity .minus,.msp-atc .quantity .plus{border:0!important;background:transparent!important;width:38px!important;height:52px!important;font-size:18px}
.msp-atc .single_add_to_cart_button,.msp-atc .wd-buy-now-btn{height:54px!important;border-radius:var(--msp-pill)!important;font-family:var(--msp-h)!important;font-size:15.5px!important;font-weight:500!important;text-transform:none!important;letter-spacing:0!important;padding:0 26px!important;flex:1 1 180px;transition:background .2s,transform .18s var(--msp-ease),box-shadow .25s}
.msp-atc .single_add_to_cart_button{background:var(--msp-blue)!important;color:#fff!important;box-shadow:0 8px 22px -8px rgba(28,97,231,.65)}
.msp-atc .single_add_to_cart_button:hover{background:var(--msp-blue-h)!important;transform:translateY(-1px)}
.msp-atc .wd-buy-now-btn{background:var(--msp-navy)!important;color:#fff!important}
.msp-atc .wd-buy-now-btn:hover{background:#0B2F73!important;transform:translateY(-1px)}
.msp-atc .wd-buy-now-btn::before,.msp-atc .wd-buy-now-btn img{display:none!important}
.msp-atc .single_add_to_cart_button:active,.msp-atc .wd-buy-now-btn:active{transform:scale(.97)}
.msp-atc .stock{display:none}
.msp-wa{margin-top:10px;display:flex;align-items:center;justify-content:center;gap:10px;height:52px;border-radius:var(--msp-pill);border:1.5px solid #CFE8D9;background:#fff;color:var(--msp-ink)!important;font-family:var(--msp-h);font-size:14.5px;font-weight:500;transition:border-color .2s,background .2s}
.msp-wa svg{color:var(--msp-wa);flex:none}
.msp-wa:hover{border-color:var(--msp-wa);background:#F3FBF6}
.msp-trust{list-style:none;margin:16px 0 0!important;padding:0!important;display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.msp-trust li{display:flex;gap:10px;align-items:flex-start;padding:12px;border-radius:var(--msp-card);background:var(--msp-soft);margin:0!important}
.msp-trust svg{color:var(--msp-blue);flex:none;margin-top:1px}
.msp-trust span{font-size:12.5px;color:var(--msp-mut);line-height:1.4}
.msp-trust b{display:block;color:var(--msp-ink);font-family:var(--msp-h);font-size:13px;font-weight:600;margin-bottom:2px}
/* description / caractéristiques */
.single-product .elementor-element-562428a{background:var(--msp-soft)!important}
.single-product .elementor-element-562428a .elementor-column>.elementor-widget-wrap{border-radius:var(--msp-card)!important}
.single-product .wd-single-attrs:not(:has(tr)){display:none!important}
.single-product .shop_attributes th,.single-product .shop_attributes td{padding:11px 0!important;border-bottom:1px solid var(--msp-line)!important;font-size:14px}
.single-product .shop_attributes th{color:var(--msp-mut);font-weight:500}
.single-product .shop_attributes td{color:var(--msp-ink);font-weight:600;text-align:right}
.single-product .wd-single-attrs .title{font-family:var(--msp-h);font-size:16px!important}
.single-product .wd-single-content h2,.single-product .wd-single-content h3{font-family:var(--msp-h);letter-spacing:-.01em}
.single-product .title-wrapper .title,.single-product .wd-title .title{font-family:var(--msp-h)!important;letter-spacing:-.015em}
/* barre d'achat collante */
.wd-sticky-btn{border-top:1px solid var(--msp-line);box-shadow:0 -10px 30px -12px rgba(14,58,140,.2)}
.wd-sticky-btn .single_add_to_cart_button,.wd-sticky-btn .add_to_cart_button,.wd-sticky-btn .wd-buy-now-btn{border-radius:var(--msp-pill)!important;background:var(--msp-blue)!important;font-family:var(--msp-h);text-transform:none!important;letter-spacing:0!important}
.wd-sticky-btn .wd-buy-now-btn{background:var(--msp-navy)!important}
.wd-sticky-btn .price .amount{font-family:var(--msp-h);color:var(--msp-ink)!important}

/* ============ Mobile ============ */
@media (max-width:1024px){
  .elementor-element-3642b68{padding:26px 22px 24px!important;border-radius:var(--msp-card);margin-top:18px}
  .msp-trust{grid-template-columns:1fr}
}
@media (max-width:767px){
  .elementor-element-3642b68{border-radius:var(--msp-card);padding:22px 18px!important;margin-left:0;margin-right:0}
  .msp-cat-title .entry-title,.msp-cat-title h1{font-size:30px!important}
  .msp-cat-intro .term-description p{font-size:14.5px}
  .msp-subcats{flex-wrap:nowrap;overflow-x:auto;margin:0 -18px;padding:0 18px 2px;scrollbar-width:none}
  .msp-subcats::-webkit-scrollbar{display:none}
  .msp-chip{flex:none;height:38px;font-size:13.5px}
  .products.elements-grid .product-grid-item .product-wrapper{border-radius:var(--msp-card);padding:10px 10px 12px!important}
  .product-grid-item .wd-entities-title{font-size:13px!important}
  .product-grid-item .price,.product-grid-item .price .amount{font-size:16px!important}
  .product-grid-item .wd-add-btn .button{height:40px;font-size:13px!important}
  .product-grid-item .wd-product-cats{display:none}
  .msp-cat-seo{padding:24px 20px;border-radius:var(--msp-card);margin-top:36px}
  .msp-atc .single_add_to_cart_button,.msp-atc .wd-buy-now-btn{flex-basis:100%}
}
@media (prefers-reduced-motion:reduce){
  .products.elements-grid .product-grid-item .product-wrapper,.product-grid-item .product-element-top img,.msp-chip,.msp-atc .single_add_to_cart_button{transition:none!important}
  .products.elements-grid .product-grid-item:hover .product-wrapper,.product-grid-item:hover .product-element-top img{transform:none}
}

/* ============ Galerie produit (v2) ============ */
.single-product .woocommerce-product-gallery .product-image-wrap{background:var(--msp-soft);border-radius:var(--msp-card);overflow:hidden;border:0!important}
.single-product .woocommerce-product-gallery .product-image-wrap img{mix-blend-mode:multiply}
.single-product .woocommerce-product-gallery .woocommerce-product-gallery__wrapper,.single-product .woocommerce-product-gallery .col-lg-9>*{border:0!important;box-shadow:none!important}
.single-product .woocommerce-product-gallery .thumbnails .owl-item>*,.single-product .woocommerce-product-gallery .thumbnails>div{background:var(--msp-soft);border-radius:var(--msp-card);overflow:hidden}
.single-product .woocommerce-product-gallery .thumbnails img{mix-blend-mode:multiply;opacity:.75;transition:opacity .2s}
.single-product .woocommerce-product-gallery .thumbnails .active-thumb img,.single-product .woocommerce-product-gallery .thumbnails img:hover{opacity:1}
.single-product .woocommerce-product-gallery .thumbnails .active-thumb>*{box-shadow:inset 0 0 0 2px var(--msp-blue)}
.single-product .wd-show-product-gallery-wrap a,.single-product .product-additional-galleries .wd-action-btn>a{background:#fff!important;border-radius:var(--msp-pill)!important;box-shadow:0 2px 10px rgba(14,58,140,.12)!important}
/* bloc livraison existant : « Date de livraison estimée » n'affiche aucune date, on le retire */
.single-product .elementor-element-7fa89a5,.single-product .elementor-element-69baebc{display:none!important}

/* ============ Correctifs mobile (v3) ============ */
.product-labels .product-label{white-space:nowrap!important;max-width:none!important;word-break:normal!important}
.product-grid-item .product-element-top,.product-grid-item .product-image-link,.product-grid-item .wd-product-grid-slider{background:transparent!important}
.product-grid-item .product-element-top{isolation:auto!important}
@media (max-width:767px){
  .product-labels{left:6px!important;top:6px!important}
  .product-labels .product-label{font-size:10px!important;padding:4px 8px!important}
}
/* l'ancienne étiquette-image noire de l'état fait doublon avec la pastille msp-etat */
.product-labels .label-attribute-pa_etat{display:none!important}
@media (max-width:767px){
  .product-grid-item .product-element-top{background:#fff!important;border-radius:var(--msp-card)}
  .single-product .elementor-element-e242c88 .title{font-size:15px}
}
