/* ==========================================================
   NomDeMarque — page boutique / catégorie (calque Workdeco "Collection Luna")
   ========================================================== */

body.archive, body.post-type-archive-product, body.search-results{
  background: #FAF9F7; font-family: "Inter", -apple-system, sans-serif;
}

.material-symbols-outlined{
  font-family: 'Material Symbols Outlined';
  font-weight: normal; font-style: normal; font-size: 20px; line-height: 1;
  letter-spacing: normal; text-transform: none; display: inline-block;
  white-space: nowrap; word-wrap: normal; direction: ltr;
  -webkit-font-feature-settings: 'liga'; -webkit-font-smoothing: antialiased;
}

main.wp-block-group{ max-width: 1780px; margin: 0 auto; padding: 0 1.5rem 5rem; }
@media (min-width: 1024px){ main.wp-block-group{ padding: 0 4rem 5rem; } }

/* fil d'ariane */
.wc-block-breadcrumbs{ font-size: 12px; color:#767676; padding: 1.5rem 0 0; }
.wc-block-breadcrumbs a{ color:#767676; }
.wc-block-breadcrumbs a:hover{ color:#111111; }

/* titre + description */
h1.wp-block-query-title{
  font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 300; letter-spacing: -0.02em;
  color:#111111; margin: 1rem 0 .8rem; max-width: 44ch;
}
.mic-archive-desc{ font-size: 15px; line-height: 1.6; color:#525252; max-width: none; margin: 0 0 1.6rem !important; }
@media (min-width: 1024px){ .mic-archive-desc{ white-space: nowrap; } }

/* puces de filtre par catégorie (rounded-full, style Workdeco) */
.mic-pills-row-wrap{ position:relative; width:100%; max-width:none !important; }
.mic-pills-row{
  display:flex; gap:.6rem; overflow-x:auto; padding-bottom: .8rem; margin: 0 !important;
  border-bottom: 1px solid #E7E7E5; max-width: none !important; width: 100%;
  scroll-padding-right: 1.5rem;
}
.mic-pills-row::-webkit-scrollbar{ display:none; }
.mic-pills-row::after{ content:""; flex:none; width:1px; }
@media (max-width: 767px){
  .mic-pills-row-wrap::after{
    content:""; position:absolute; top:0; right:0; bottom:.8rem; width:2.4rem; pointer-events:none;
    background:linear-gradient(to right, rgba(250,249,247,0), #FAF9F7 85%);
  }
}
.mic-pill{
  flex: none; font-size: 12px; font-weight: 500; letter-spacing: .01em;
  padding: .55rem 1.1rem; border-radius: 999px; white-space: nowrap; border: 1px solid #E7E7E5;
  background: #fff; color:#404040; transition: all .15s ease;
}
.mic-pill:hover{ background:#f5f5f4; color:#111111; }
.mic-pill.is-active{ background:#7A2E3B; color:#fff; border-color:rgba(0,0,0,.2); box-shadow: 0 1px 2px rgba(0,0,0,.08); }

/* barre d'outils */
.mic-toolbar{
  display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:1rem;
  padding: 1.4rem 0 .6rem; font-size: 12px; color:#333; margin: 0 !important; max-width: none !important; width: 100%;
}
.mic-toolbar .woocommerce-result-count{ margin:0; color:#767676; font-weight: 400; }
.mic-toolbar .wc-block-catalog-sorting{ margin:0; }
.mic-toolbar select.orderby{
  background:transparent; border: none; border-radius: 2px; padding: 0 1.4rem 0 .2rem;
  font-size: 12px; font-weight: 500; color:#111111;
}
.mic-sort-wrap{ display:flex; align-items:center; gap:.4rem; background:#fff; border:1px solid #E7E7E5; padding:.5rem .8rem; border-radius:10px; box-shadow:0 1px 1px rgba(0,0,0,.02); }
.mic-sort-wrap span{ color:#767676; }
.mic-sort-wrap .woocommerce-ordering,
.mic-sort-wrap .wc-block-catalog-sorting,
.mic-sort-wrap form.woocommerce-ordering{ margin:0 !important; padding:0 !important; }
.mic-view-toggle{ display:flex; align-items:center; gap: .3rem; }
.mic-view-toggle span{ font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color:#a3a3a3; margin-right:.4rem; font-weight:600; }
.mic-view-btn{
  width: 24px; height: 24px; border-radius: 4px; display:flex; align-items:center; justify-content:center;
  font-size: 11px; font-weight: 600; color:#525252; background: transparent; border: 1px solid transparent;
}
.mic-view-btn.is-active{ background:#7A2E3B; color:#fff; border-color: rgba(0,0,0,.15); }
.mic-toolbar-left{ display:flex; align-items:center; gap:1rem; }
.mic-toolbar-right{ display:flex; align-items:center; gap:2rem; }

/* grille produits */
ul.wc-block-product-template{ gap: 3.4rem 1.6rem !important; }
ul.wc-block-product-template.mic-cols-4{ grid-template-columns: repeat(4, 1fr) !important; }
ul.wc-block-product-template.mic-cols-2{ grid-template-columns: repeat(2, 1fr) !important; }
ul.wc-block-product-template.mic-cols-1{ grid-template-columns: repeat(1, 1fr) !important; max-width: 640px; margin: 0 auto; }

li.wc-block-product{ text-align:left !important; display:flex !important; flex-direction:column; }

/* cadre image façon Workdeco : encart bordé avec badge en haut, infos en bas */
.wc-block-components-product-image{
  background:#F4F4F3; border: 1px solid #E7E7E5; border-radius: 2px;
  transition: border-color .15s ease; overflow: hidden; position: relative;
}
li.wc-block-product:hover .wc-block-components-product-image{ border-color:#111111; }
.wc-block-components-product-image__inner-container{
  position: absolute !important; inset: 0 !important; height: auto !important;
  pointer-events: none;
}
.wc-block-components-product-image__inner-container > *{ pointer-events: auto; }

.wc-block-components-product-sale-badge{
  background:#E8622C; color:#fff !important; border:none !important;
  border-radius: 999px !important; font-size: 10px !important; font-weight: 700 !important;
  letter-spacing: .06em; text-transform: uppercase; padding: .3rem .7rem !important;
  position: absolute !important; top: 10px !important; right: 10px !important; left: auto !important; bottom: auto !important;
}

.mic-swatch-row{ display:flex; align-items:flex-start; align-content:flex-start; flex-wrap:wrap; gap:.4rem; margin-top: 1.1rem; height: 48px; overflow:hidden; }
.mic-swatch-dot{
  width: 22px; height: 22px; border-radius: 999px; background-size: cover; background-position: center;
  border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.15); flex-shrink:0;
}
.mic-swatch-more{ font-size: 11px; color:#a3a3a3; padding-left:.3rem; white-space:nowrap; }

h2.wp-block-post-title, h3.wp-block-post-title{
  text-align: left !important; margin: .6rem 0 3px !important;
}
h2.wp-block-post-title a, h3.wp-block-post-title a{
  font-size: 13.5px; font-weight: 500; letter-spacing: .02em; text-transform: uppercase; color:#111111;
}
h2.wp-block-post-title a:hover, h3.wp-block-post-title a:hover{ text-decoration: underline; text-underline-offset: 4px; }
.mic-title-sub{ display:block; font-size: 12px; font-weight: 400; text-transform:none; letter-spacing:0; color: #525252; margin-top: 3px; }

.wp-block-woocommerce-product-price{ text-align:left !important; margin-top: auto !important; padding-top: .55rem; border-top: 1px solid #E7E7E5; display:flex; align-items:baseline; justify-content:space-between; }
.wp-block-woocommerce-product-price .price{ font-size: 14px !important; font-weight: 500; color:#111111; }
.wp-block-woocommerce-product-price .price del{ color:#a3a3a3; font-weight:400; }
.wp-block-woocommerce-product-price::after{ content:"TTC"; font-size:10px; color:#a3a3a3; }

.wp-block-woocommerce-product-button{ display:none !important; }

/* bandeau manifeste (milieu de grille) */
.mic-manifest{
  grid-column: 1 / -1; background:#E8622C; color:#fff; border: 1px solid rgba(0,0,0,.1);
  border-radius: 2px; padding: 2.4rem clamp(1.2rem,4vw,3.5rem); margin: 1rem 0 1.4rem;
}
.mic-manifest-inner{ display:grid; grid-template-columns: 1fr; gap: 1.2rem; }
@media (min-width: 1024px){ .mic-manifest-inner{ grid-template-columns: 1fr auto; align-items:center; } }
.mic-manifest span.mic-eyebrow{ font-size: 11px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:rgba(255,255,255,.7); display:block; margin-bottom:.5rem; }
.mic-manifest h3{ font-size: clamp(1.4rem,2.4vw,1.9rem); font-weight: 300; margin-bottom: .8rem; max-width: 32ch; }
.mic-manifest p{ font-size: 13.5px; line-height: 1.6; color: rgba(255,255,255,.85); max-width: 60ch; }
.mic-manifest .mic-manifest-facts{ display:flex; flex-wrap:wrap; gap: 1.8rem; padding-top: 0; border-top:none; }
.mic-manifest .mic-manifest-facts div{ font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: rgba(255,255,255,.65); font-family: monospace; }
.mic-manifest .mic-manifest-facts strong{ display:block; font-size: 15px; text-transform: none; letter-spacing:0; color:#fff; margin-top:.3rem; font-family:"Inter",sans-serif; font-weight:600; }

/* bande éditoriale bas de page */
.mic-editorial-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; margin: 3rem 0 0 !important; max-width: none !important; width: 100%; }
.mic-editorial-card{ background:#7A2E3B; color:#fff; border:1px solid rgba(0,0,0,.1); border-radius:2px; padding: 2.6rem; }
.mic-editorial-card span.mic-eyebrow{ font-size:11px; text-transform:uppercase; letter-spacing:.08em; font-weight:700; color:rgba(255,255,255,.75); display:block; margin-bottom:.6rem; }
.mic-editorial-card h3{ font-size: 1.7rem; font-weight:300; margin: .2rem 0 .8rem; max-width: 26ch; color:#fff; }
.mic-editorial-card p{ font-size: 13.5px; line-height:1.6; color: rgba(255,255,255,.85); max-width: 46ch; margin-bottom: 1.4rem; }
.mic-editorial-card a{
  display:inline-block; background:#fff; color:#111; border:1px solid rgba(0,0,0,.2);
  font-size: 11px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; padding:.85rem 1.5rem; border-radius:2px;
}

@media (max-width: 900px){
  ul.wc-block-product-template.mic-cols-4{ grid-template-columns: repeat(2,1fr) !important; }
  .mic-editorial-grid{ grid-template-columns: 1fr; }
}

/* pagination (numéros de page + "Page suivante") */
.wp-block-query-pagination{
  display:flex; align-items:center; justify-content:center; flex-wrap:wrap;
  gap:1.6rem; margin: 3.5rem 0 1rem !important;
}
.wp-block-query-pagination-numbers{ display:flex; align-items:center; gap:.5rem; }
.wp-block-query-pagination-numbers .page-numbers{
  display:flex; align-items:center; justify-content:center; min-width:36px; height:36px;
  padding:0 .4rem; border-radius:999px; font-size:13px; font-weight:600; color:#525252;
  text-decoration:none; border:1px solid transparent; transition: all .15s ease;
}
.wp-block-query-pagination-numbers a.page-numbers:hover{ background:#F4F4F3; color:#111111; }
.wp-block-query-pagination-numbers .page-numbers.current{
  background:#7A2E3B; color:#fff; box-shadow: 0 4px 12px -4px rgba(122,46,59,.5);
}
.wp-block-query-pagination-numbers .page-numbers.dots{ color:#a3a3a3; border:none; background:none; }
.wp-block-query-pagination-next, .wp-block-query-pagination-previous{
  display:inline-flex; align-items:center; gap:.4rem; height:42px; padding:0 1.4rem;
  border-radius:999px; background:#111111; color:#fff !important; text-decoration:none !important;
  font-size:12px; font-weight:700; letter-spacing:.04em; text-transform:uppercase;
  transition: transform .15s ease, background .15s ease;
}
.wp-block-query-pagination-next:hover, .wp-block-query-pagination-previous:hover{
  background:#7A2E3B; transform: translateY(-2px);
}
