/* =========================================================
   CSC — BOUTIQUE / ARCHIVES PRODUITS
   ========================================================= */

.csc-shop-page{
  background:#fff;
  font-family:var(--csc-font,Montserrat,Arial,sans-serif);
  overflow:hidden;
}
.csc-shop-page *,
.csc-shop-page *::before,
.csc-shop-page *::after{box-sizing:border-box}
.csc-shop-page svg{
  fill:none;stroke:currentColor;stroke-width:1.8;
  stroke-linecap:round;stroke-linejoin:round;
}
.csc-shop-page .csc-wrap--hero{
  width:min(100% - 48px,1380px);
  max-width:1380px;
  margin-inline:auto;
}

/* HERO */
.csc-shop-hero{
  padding:62px 0 36px;
  background:linear-gradient(180deg,#f7fbfe 0%,#fff 94%);
}
.csc-shop-hero__grid{
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(390px,.95fr);
  gap:54px;
  align-items:center;
  min-height:430px;
}
.csc-shop-hero h1{
  margin:10px 0 18px;
  color:var(--csc-text);
  font-size:clamp(48px,5vw,76px);
  line-height:.98;
  letter-spacing:-.055em;
}
.csc-shop-hero h1 strong{color:var(--csc-primary);font-weight:900}
.csc-shop-hero__copy>p,
.csc-shop-hero__description{
  max-width:700px;
  margin:0;
  color:var(--csc-text-light);
  font-size:16px;
  line-height:1.8;
}
.csc-shop-categories{
  display:flex;
  gap:8px;
  overflow-x:auto;
  margin-top:26px;
  padding-bottom:4px;
  scrollbar-width:none;
}
.csc-shop-categories::-webkit-scrollbar{display:none}
.csc-shop-categories a{
  flex:0 0 auto;
  min-height:38px;
  display:inline-flex;
  align-items:center;
  padding:0 13px;
  border-radius:999px;
  background:#fff;
  border:1px solid var(--csc-border);
  color:var(--csc-text-light);
  text-decoration:none;
  font-size:11px;
  font-weight:900;
}
.csc-shop-categories a.is-active,
.csc-shop-categories a:hover{
  background:var(--csc-primary-soft);
  border-color:transparent;
  color:var(--csc-primary);
}

.csc-shop-hero__scene{color:var(--csc-primary)}
.csc-shop-hero__scene svg{display:block;width:100%;height:auto}
.csc-shop-cloud{fill:#fff;stroke:none;filter:drop-shadow(0 10px 18px rgba(74,147,200,.10))}
.csc-shop-cloud--one{animation:cscShopCloud 11s ease-in-out infinite alternate}
.csc-shop-cloud--two{animation:cscShopCloud 14s ease-in-out infinite alternate-reverse}
.csc-shop-store path:first-child{fill:#f3f9fc}
.csc-shop-bag path:first-child{fill:#fff}
.csc-shop-heart{fill:#efbf93;stroke:none;transform-box:fill-box;transform-origin:center;animation:cscShopHeart 2.6s ease-in-out infinite}
.csc-shop-ground{stroke:#c6dfea;stroke-width:3}
@keyframes cscShopCloud{from{transform:translateX(-5px)}to{transform:translateX(13px)}}
@keyframes cscShopHeart{0%,100%{transform:scale(1)}15%{transform:scale(1.12)}28%{transform:scale(1)}}

/* TOOLBAR */
.csc-shop-products{padding:34px 0 88px}
.csc-shop-toolbar{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto auto;
  align-items:center;
  gap:12px;
  margin-bottom:24px;
}
.csc-shop-toolbar__count .woocommerce-result-count{
  float:none!important;
  margin:0!important;
  color:var(--csc-text-light);
  font-size:12px;
}
.csc-shop-toolbar__ordering .woocommerce-ordering{float:none!important;margin:0!important}
.csc-shop-toolbar__ordering select,
.csc-shop-filter-order select{
  min-height:44px;
  padding:0 38px 0 12px;
  border:1px solid var(--csc-border);
  border-radius:12px;
  background:#fff;
  color:var(--csc-text);
  font:inherit;
  font-size:12px;
}
.csc-shop-filter-button{
  min-height:44px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:0 14px;
  border:1px solid var(--csc-border);
  border-radius:12px;
  background:#fff;
  color:var(--csc-text);
  font:inherit;
  font-size:12px;
  font-weight:900;
  cursor:pointer;
}
.csc-shop-filter-button svg{width:17px;height:17px;color:var(--csc-primary)}

/* PRODUCT GRID */
.csc-shop-products ul.products{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:18px;
  margin:0!important;
}
.csc-shop-products ul.products::before,
.csc-shop-products ul.products::after{display:none!important}
.csc-shop-products li.product{
  position:relative;
  float:none!important;
  width:auto!important;
  margin:0!important;
  padding:0 0 16px!important;
  border:1px solid var(--csc-border);
  border-radius:19px;
  background:#fff;
  overflow:hidden;
  transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease;
}
.csc-shop-products li.product:hover{
  transform:translateY(-3px);
  border-color:#bdddeb;
  box-shadow:0 14px 34px rgba(31,70,94,.07);
}
.csc-shop-products li.product a{text-decoration:none!important}
.csc-shop-products li.product img{
  width:100%;
  aspect-ratio:1/1;
  object-fit:cover;
  margin:0 0 14px!important;
  background:#f3f8fb;
}
.csc-shop-products li.product .woocommerce-loop-product__title{
  padding:0 14px!important;
  margin:0 0 7px!important;
  color:var(--csc-text);
  font-size:16px!important;
  line-height:1.3;
  letter-spacing:-.02em;
}
.csc-shop-products li.product .price{
  display:block;
  padding:0 14px;
  color:var(--csc-text)!important;
  font-size:14px!important;
  font-weight:900!important;
}
.csc-shop-products li.product .price del{opacity:.45}
.csc-shop-products li.product .price ins{text-decoration:none}
.csc-shop-products li.product .button{
  min-height:40px;
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  margin:12px 14px 0!important;
  padding:0 13px!important;
  border-radius:11px!important;
  background:var(--csc-primary)!important;
  color:#fff!important;
  font-size:11px!important;
  font-weight:900!important;
}
.csc-shop-products li.product .onsale{
  top:10px!important;
  right:10px!important;
  left:auto!important;
  min-width:auto!important;
  min-height:28px!important;
  line-height:28px!important;
  padding:0 9px!important;
  border-radius:999px!important;
  background:#e9b98d!important;
  color:#fff!important;
  font-size:9px!important;
}

/* pagination */
.csc-shop-pagination{margin-top:34px}
.csc-shop-pagination .woocommerce-pagination ul{
  border:0!important;
  display:flex!important;
  gap:7px;
}
.csc-shop-pagination .woocommerce-pagination li{border:0!important}
.csc-shop-pagination .woocommerce-pagination a,
.csc-shop-pagination .woocommerce-pagination span{
  min-width:38px;
  height:38px;
  display:grid!important;
  place-items:center;
  border-radius:11px;
  background:#f5f8fa;
  color:var(--csc-text)!important;
  font-size:11px!important;
}
.csc-shop-pagination .woocommerce-pagination .current{
  background:var(--csc-primary)!important;
  color:#fff!important;
}

/* EMPTY */
.csc-shop-empty{
  display:grid;
  justify-items:center;
  text-align:center;
  padding:70px 20px;
}
.csc-shop-empty>span{
  width:72px;height:72px;
  display:grid;place-items:center;
  border-radius:22px;
  background:var(--csc-primary-soft);
  color:var(--csc-primary);
}
.csc-shop-empty svg{width:30px;height:30px}
.csc-shop-empty h2{margin:18px 0 8px;font-size:30px;letter-spacing:-.04em}
.csc-shop-empty p{margin:0;color:var(--csc-text-light);font-size:13px}

/* LOCAL */
.csc-shop-local{padding:54px 0 88px;background:linear-gradient(180deg,#fff,#f7fbfe)}
.csc-shop-local__inner{
  display:grid;
  grid-template-columns:68px minmax(0,1fr);
  gap:20px;
  align-items:center;
  padding-top:32px;
  border-top:1px solid rgba(74,147,200,.14);
}
.csc-shop-local__icon{
  width:62px;height:62px;
  display:grid;place-items:center;
  border-radius:20px;
  background:#fff;
  color:#d99e6b;
  box-shadow:0 14px 30px rgba(31,70,94,.07);
}
.csc-shop-local__icon svg{width:27px;height:27px;fill:#f8dec5}
.csc-shop-local h2{
  margin:7px 0 8px;
  font-size:clamp(30px,3.2vw,44px);
  letter-spacing:-.045em;
}
.csc-shop-local p{
  max-width:720px;
  margin:0;
  color:var(--csc-text-light);
  font-size:13px;
  line-height:1.7;
}

/* DRAWER */
.csc-shop-filter-drawer{
  position:fixed;
  z-index:100004;
  inset:0;
  pointer-events:none;
}
.csc-shop-filter-drawer.is-open{pointer-events:auto}
.csc-shop-filter-drawer__backdrop{
  position:absolute;
  inset:0;
  border:0;
  background:rgba(18,36,48,.34);
  backdrop-filter:blur(3px);
  opacity:0;
  transition:opacity .2s ease;
}
.csc-shop-filter-drawer.is-open .csc-shop-filter-drawer__backdrop{opacity:1}
.csc-shop-filter-drawer__panel{
  position:absolute;
  top:0;right:0;bottom:0;
  width:min(420px,92vw);
  padding:68px 28px 32px;
  background:#fff;
  transform:translateX(102%);
  transition:transform .25s ease;
  box-shadow:-20px 0 50px rgba(18,36,48,.14);
  overflow-y:auto;
}
.csc-shop-filter-drawer.is-open .csc-shop-filter-drawer__panel{transform:none}
.csc-shop-filter-drawer__close{
  position:absolute;
  top:18px;right:18px;
  width:40px;height:40px;
  border:0;border-radius:50%;
  background:#f3f7f9;
  color:var(--csc-text);
  font-size:25px;
  cursor:pointer;
}
.csc-shop-filter-drawer__panel h2{
  margin:7px 0 22px;
  font-size:34px;
  letter-spacing:-.04em;
}
.csc-shop-filter-list{display:grid}
.csc-shop-filter-list a{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  min-height:52px;
  border-bottom:1px solid var(--csc-border);
  color:var(--csc-text);
  text-decoration:none;
  font-size:13px;
  font-weight:800;
}
.csc-shop-filter-list small{
  min-width:28px;height:28px;
  display:grid;place-items:center;
  border-radius:999px;
  background:#f4f8fa;
  color:var(--csc-text-light);
  font-size:9px;
}
.csc-shop-filter-order{
  display:grid;
  gap:7px;
  margin-top:26px;
}
.csc-shop-filter-order>span{
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.06em;
}

@media(max-width:1050px){
  .csc-shop-hero__grid{grid-template-columns:1fr;min-height:auto}
  .csc-shop-hero__scene{max-width:700px;margin:0 auto}
  .csc-shop-products ul.products{grid-template-columns:repeat(3,minmax(0,1fr))}
}

@media(max-width:760px){
  .csc-shop-page .csc-wrap--hero{width:min(100% - 28px,1380px)}
  .csc-shop-hero{padding:42px 0 18px}
  .csc-shop-hero h1{font-size:46px}
  .csc-shop-toolbar{
    grid-template-columns:minmax(0,1fr) auto;
  }
  .csc-shop-toolbar__ordering{display:none}
  .csc-shop-products ul.products{
    display:flex!important;
    gap:12px;
    overflow-x:auto;
    scroll-snap-type:x mandatory;
    padding-bottom:9px;
  }
  .csc-shop-products li.product{
    flex:0 0 78%;
    scroll-snap-align:start;
  }
  .csc-shop-local__inner{grid-template-columns:1fr}
}

@media(prefers-reduced-motion:reduce){
  .csc-shop-cloud,.csc-shop-heart{animation:none!important}
  .csc-shop-filter-drawer__panel,
  .csc-shop-filter-drawer__backdrop{transition:none!important}
}


/* =========================================================
   V4 — RESPIRATION CARTES PRODUITS
   ========================================================= */

.csc-shop-products li.product .product-category,
.csc-shop-products li.product .posted_in,
.csc-shop-products li.product .woocommerce-loop-category__title{
  margin:0 14px 10px!important;
}

.csc-shop-products li.product .product-category,
.csc-shop-products li.product .posted_in,
.csc-shop-products li.product .product-category a,
.csc-shop-products li.product .posted_in a{
  display:block;
  color:var(--csc-text-light)!important;
  font-size:11px!important;
  font-weight:600!important;
  line-height:1.4;
  text-decoration:none!important;
}

.csc-shop-products li.product .woocommerce-loop-product__title{
  margin-top:8px!important;
  margin-bottom:8px!important;
}

.csc-shop-products li.product .price{
  margin-top:2px!important;
  margin-bottom:2px!important;
}
