/* Pages catégories : maquette « page catégorie » (ordinateur + mobile). */
body.mv-archive {
  background: #fff !important;
}

.mv-cat {
  padding-bottom: 40px;
  color: var(--mv-dark);
  font-family: var(--mv-font);
}

.mv-cat :where(p, ul, ol, li, h1, h2, h3, figure) {
  text-transform: none;
}

.mv-cat a,
.mv-cat a:hover {
  text-decoration: none;
}

.mv-cat .mv-jnr-seo p a:hover,
.mv-cat__seo a:hover {
  text-decoration: underline;
}

/* ---- Fil d'Ariane, titre, intro ---- */
.mv-bc {
  margin: 22px 0 14px;
  font-size: 12.5px;
  color: var(--mv-mute);
}

.mv-bc a {
  color: var(--mv-mute) !important;
}

.mv-bc a:hover {
  color: var(--mv-magenta) !important;
}

.mv-bc__sep {
  padding: 0 2px;
}

.mv-cat__head {
  margin-bottom: 26px;
}

.mv-cat__title {
  margin: 0 0 12px !important;
  padding: 0 !important;
  font-size: clamp(26px, 3.2vw, 38px) !important;
  line-height: 1.15 !important;
  font-weight: 800 !important;
  letter-spacing: -0.025em;
  text-align: left !important;
  text-transform: none !important;
  color: var(--mv-dark) !important;
  background: none !important;
}

.mv-cat__intro,
.mv-cat__intro p,
.mv-jnr-intro {
  max-width: 880px;
  margin: 0 !important;
  font-size: 15px !important;
  line-height: 1.65 !important;
  color: var(--mv-text) !important;
  text-align: left !important;
}

.mv-cat__intro p + p {
  margin-top: 8px !important;
}

.mv-cat__intro a {
  color: var(--mv-magenta) !important;
  font-weight: 700;
}

.mv-cat__main {
  display: block !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.mv-cat .woocommerce-notices-wrapper:empty {
  display: none;
}

/* ---- Bandeau d'outils (autres catégories) ---- */
.mv-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 18px;
}

.mv-toolbar .woocommerce-result-count {
  float: none !important;
  margin: 0 !important;
  font-size: 13px;
  color: var(--mv-mute);
}

.mv-toolbar .woocommerce-ordering {
  float: none !important;
  margin: 0 !important;
}

.mv-toolbar .woocommerce-ordering select,
.mv-trier select {
  height: 42px;
  padding: 0 38px 0 16px;
  border: 1px solid #d9d8de;
  border-radius: 999px;
  background: #fff;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--mv-dark);
}

/* ---- Puff JNR : bandeau, aide au choix, réassurance ---- */
.mv-jnr-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-height: 150px;
  margin: 0 0 18px;
  padding: 28px 40px;
  border-radius: 24px;
  background: var(--mv-dark);
  color: #fff;
}

.mv-jnr-hero small {
  font-size: 14px;
  color: #c9c8d0;
}

.mv-jnr-hero strong {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.mv-jnr-hero__txt {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mv-jnr-hero__img {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: auto;
  max-width: none;
}

.mv-jnr-choix {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 0 0 14px;
}

.mv-jnr-choix__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border: 1px solid var(--mv-line);
  border-radius: 16px;
  background: #fff;
  color: inherit !important;
  transition: border-color 0.15s, transform 0.15s;
}

a.mv-jnr-choix__item:hover {
  border-color: var(--mv-magenta);
  transform: translateY(-1px);
}

.mv-jnr-choix__img {
  flex: 0 0 48px;
  width: 48px;
  height: 50px;
  display: block;
}

.mv-jnr-choix__img img {
  display: block;
  width: 62px;
  height: 60px;
  max-width: none;
  margin: -6px 0 0 -6px;
}

.mv-jnr-choix__txt {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mv-jnr-choix__txt small {
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mv-mute);
}

.mv-jnr-choix__txt strong {
  font-size: 15px;
  font-weight: 800;
  color: var(--mv-dark);
}

.mv-jnr-reassurance {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 0 0 26px !important;
  padding: 0 !important;
  list-style: none;
}

.mv-jnr-reassurance li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--mv-grey);
  font-size: 13px;
  font-weight: 700;
  color: var(--mv-dark);
}

.mv-jnr-reassurance .mv-i {
  color: var(--mv-magenta);
}

/* ---- Filtres (pastilles) ---- */
.mv-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
}

.mv-pills__form {
  display: contents;
}

.mv-pill {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 20px;
  border: 1px solid #d9d8de;
  border-radius: 999px;
  background: #fff;
  color: var(--mv-dark) !important;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.15s;
}

a.mv-pill:hover,
.mv-pill:hover {
  border-color: var(--mv-dark);
}

.mv-pill.is-active {
  background: var(--mv-dark);
  border-color: var(--mv-dark);
  color: #fff !important;
}

.mv-pill--select {
  appearance: auto;
  padding-right: 10px;
}

.mv-pill-menu {
  position: relative;
}

.mv-pill-menu summary {
  list-style: none;
}

.mv-pill-menu summary::-webkit-details-marker {
  display: none;
}

.mv-pill-menu__box {
  position: absolute;
  z-index: 20;
  top: 110%;
  left: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 210px;
  padding: 14px;
  border: 1px solid var(--mv-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(22, 22, 27, 0.14);
}

.mv-pill-menu__box label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12.5px;
  font-weight: 600;
}

.mv-pill-menu__box input {
  padding: 8px;
  border: 1px solid #d9d8de;
  border-radius: 8px;
}

.mv-trier {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  font-size: 13px;
  color: var(--mv-mute);
}

.mv-filtres__reset {
  font-size: 12.5px;
  text-decoration: underline;
  color: var(--mv-mute) !important;
}

body.term-puff-jnr .woocommerce-result-count,
body.term-puff-jnr form.woocommerce-ordering {
  display: none !important;
}

/* ---- Grille de produits ---- */
.mv-cat ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  width: 100% !important;
  margin: 0 0 24px !important;
  padding: 0 !important;
  list-style: none;
}

.mv-cat ul.products::before,
.mv-cat ul.products::after {
  display: none !important;
}

.mv-cat ul.products li.product,
.mv-cat ul.products li.mv-li {
  float: none !important;
  display: block !important;
  width: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
  animation: none !important;
  opacity: 1 !important;
  list-style: none;
}

.mv-card--arch {
  position: relative;
  height: 100%;
  border: 1px solid var(--mv-line);
  border-radius: 20px;
  box-shadow: none;
  transition: box-shadow 0.18s, transform 0.18s;
}

.mv-card--arch:hover {
  box-shadow: 0 16px 36px rgba(22, 22, 27, 0.1);
  transform: translateY(-2px);
}

.mv-card--arch .mv-card__img {
  aspect-ratio: 1 / 0.92;
  background: #f4f4f4;
}

.mv-card--arch .mv-card__img img {
  padding: 20px;
}

.mv-bdgs {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  pointer-events: none;
}

.mv-bdg {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 9px;
  border-radius: 7px;
  background: #fff;
  color: var(--mv-dark);
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1.2;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.mv-bdg--sale {
  background: var(--mv-magenta);
  color: #fff;
}

.mv-bdg--dark {
  background: var(--mv-dark);
  color: #fff;
}

.mv-bdg--coeur {
  color: var(--mv-magenta);
}

.mv-card--arch .mv-card__body {
  padding: 16px 16px 18px;
}

.mv-card--arch .mv-card__title {
  font-size: 15.5px;
  margin: 0 !important;
  padding: 0 !important;
  text-transform: none !important;
  text-align: left !important;
}

.mv-card--arch .mv-card__title a {
  color: var(--mv-dark) !important;
}

.mv-card--arch .mv-card__price strong {
  font-size: 22px;
  color: var(--mv-magenta);
}

.mv-card--arch .mv-card__btn {
  min-height: 44px;
}

.mv-card__extras .promo-badge-listing {
  display: inline-block;
  margin-top: 8px;
}

.mv-card__extras .promo-badge-text {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--mv-orange);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
}

.mv-card__extras .product-rating {
  display: none;
}

/* Carte « e-liquides JNR » en fin de grille */
.mv-jnr-promo {
  display: flex !important;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  min-height: 340px !important;
  padding: 26px !important;
  border-radius: 20px !important;
  background: var(--mv-rose) !important;
  text-align: left;
}

.mv-jnr-promo small {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.07em;
  color: var(--mv-magenta);
}

.mv-jnr-promo strong {
  font-size: 22px;
  line-height: 1.2;
  font-weight: 800;
  color: var(--mv-dark);
}

.mv-jnr-promo p {
  margin: 4px 0 !important;
  font-size: 13px;
  line-height: 1.55;
  color: var(--mv-text);
}

.mv-jnr-promo__lien {
  font-size: 13px;
  font-weight: 800;
  color: var(--mv-magenta) !important;
}

/* ---- Pagination ---- */
.mv-cat .woocommerce-pagination {
  margin: 10px 0 0;
}

.mv-cat .woocommerce-pagination ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  border: 0 !important;
}

.mv-cat .woocommerce-pagination ul li {
  float: none;
  border: 0 !important;
  overflow: visible;
}

.mv-cat .woocommerce-pagination ul li a,
.mv-cat .woocommerce-pagination ul li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--mv-line);
  border-radius: 12px;
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  color: var(--mv-dark);
}

.mv-cat .woocommerce-pagination ul li span.current {
  background: var(--mv-dark);
  border-color: var(--mv-dark);
  color: #fff;
}

/* ---- Texte sous la grille (SEO) ---- */
.mv-cat__seo,
.mv-jnr-seo {
  margin: 48px 0 0;
  padding: 30px 0 0;
  border-top: 1px solid var(--mv-line);
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--mv-text);
}

.mv-cat__seo {
  max-width: 900px;
}

.mv-cat__seo h2,
.mv-cat__seo h3,
.mv-jnr-seo h2 {
  margin: 36px 0 12px !important;
  font-size: 24px !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
  text-align: left !important;
  text-transform: none !important;
  color: var(--mv-dark) !important;
}

.mv-cat__seo h2:first-child,
.mv-jnr-seo h2:first-child {
  margin-top: 0 !important;
}

.mv-cat__seo p,
.mv-cat__seo ul,
.mv-cat__seo ol {
  margin: 0 0 14px;
}

.mv-cat__seo ul {
  padding-left: 22px;
  list-style: disc;
}

.mv-cat__seo a,
.mv-jnr-seo p a,
.mv-jnr-seo li a {
  color: var(--mv-magenta) !important;
  font-weight: 700;
  text-decoration: none;
}

.mv-cat__seo img {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
}

.mv-jnr-seo > p,
.mv-jnr-seo > ul {
  max-width: 880px;
  margin: 0 0 14px;
}

.mv-jnr-seo ul {
  padding-left: 22px;
  list-style: disc;
}

.mv-jnr-row {
  display: grid;
  gap: 42px;
  align-items: center;
  margin: 56px 0;
}

.mv-jnr-row--logo { grid-template-columns: 200px 1fr; gap: 56px; }
.mv-jnr-row--txt-img { grid-template-columns: minmax(0, 1fr) 380px; }
.mv-jnr-row--img-txt { grid-template-columns: 380px minmax(0, 1fr); }
.mv-jnr-row--prix { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
.mv-jnr-row--boutique { grid-template-columns: 480px minmax(0, 1fr); }

.mv-jnr-row h2,
.mv-jnr-bloc h2 {
  margin-top: 0 !important;
}

.mv-jnr-row > img,
.mv-jnr-row > a > img,
.mv-jnr-row figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
  background: #f4f4f4;
}

.mv-jnr-row figure {
  margin: 0;
}

.mv-jnr-row figcaption {
  margin-top: 8px;
  font-size: 12px;
  color: var(--mv-mute);
}

.mv-jnr-row p,
.mv-jnr-row ul,
.mv-jnr-bloc p,
.mv-jnr-bloc ul {
  margin: 0 0 14px;
}

.mv-jnr-bloc {
  margin: 56px 0;
}

.mv-jnr-bloc > p {
  max-width: 880px;
}

.mv-jnr-fleche {
  color: var(--mv-magenta) !important;
  font-weight: 800;
}

.mv-jnr-fort {
  color: var(--mv-magenta);
}

.mv-jnr-mention {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--mv-mute);
}

.mv-jnr-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--mv-line);
  border-radius: 18px;
}

.mv-jnr-table {
  width: 100%;
  min-width: 720px;
  margin: 0;
  border-collapse: collapse;
  font-size: 13.5px;
}

.mv-jnr-table th {
  padding: 16px 16px;
  background: var(--mv-rose);
  text-align: left;
  font-weight: 800;
}

.mv-jnr-table td {
  padding: 14px 16px;
  vertical-align: middle;
  border-top: 1px solid #f0eef2;
  text-align: left;
}

.mv-jnr-table tbody tr:nth-child(even) {
  background: #fafafa;
}

.mv-jnr-table td:first-child {
  white-space: nowrap;
}

.mv-jnr-table td:first-child a {
  color: var(--mv-magenta) !important;
  font-weight: 800;
}

.mv-jnr-thumb {
  width: auto;
  height: 27px;
  margin-right: 10px;
  vertical-align: middle;
  object-fit: contain;
}

.mv-jnr-prixbox {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: 320px;
  margin: 8px 0 0;
  padding: 24px 28px;
  border-radius: 20px;
  background: var(--mv-magenta);
  color: #fff;
}

.mv-jnr-prixbox small {
  font-size: 13px;
}

.mv-jnr-prixbox strong {
  font-size: 46px;
  line-height: 1.1;
  font-weight: 800;
}

.mv-jnr-saveurs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px !important;
  padding: 0 !important;
  list-style: none !important;
}

.mv-jnr-saveurs li {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--mv-line);
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
}

.mv-jnr-saveurs a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px 8px 10px;
  color: var(--mv-dark) !important;
}

.mv-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
}

.mv-jnr-faq {
  max-width: 720px;
  border: 1px solid var(--mv-line);
  border-radius: 18px;
  overflow: hidden;
}

.mv-jnr-faq details {
  border-bottom: 1px solid var(--mv-line);
}

.mv-jnr-faq details:last-child {
  border-bottom: 0;
}

.mv-jnr-faq details[open] {
  background: #fafafa;
}

.mv-jnr-faq summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.mv-jnr-faq summary::-webkit-details-marker {
  display: none;
}

.mv-jnr-faq summary::after {
  content: "+";
  font-size: 20px;
  line-height: 1;
  color: var(--mv-dark);
}

.mv-jnr-faq details[open] summary::after {
  content: "\2212";
}

.mv-jnr-faq details p {
  margin: 0;
  padding: 0 20px 18px;
  font-size: 13.5px;
  line-height: 1.65;
}

.mv-jnr-lien {
  margin: 8px 0;
  font-weight: 700;
}

.mv-jnr-lien a {
  color: var(--mv-magenta) !important;
}

/* ================= Tablette ================= */
@media (max-width: 1000px) {
  .mv-cat ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .mv-jnr-choix,
  .mv-jnr-reassurance {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ================= Mobile ================= */
@media (max-width: 900px) {
  .mv-jnr-row,
  .mv-jnr-row--logo,
  .mv-jnr-row--txt-img,
  .mv-jnr-row--img-txt,
  .mv-jnr-row--prix,
  .mv-jnr-row--boutique {
    grid-template-columns: 1fr;
    gap: 22px;
    margin: 38px 0;
  }

  .mv-jnr-row--logo {
    grid-template-columns: 78px 1fr;
    gap: 14px;
    align-items: center;
  }

  .mv-jnr-row--logo > div {
    display: contents;
  }

  .mv-jnr-row--logo > div > h2 {
    grid-column: 2;
    grid-row: 1;
    margin: 0 !important;
  }

  .mv-jnr-row--logo > div > p {
    grid-column: 1 / -1;
  }

  .mv-jnr-prixbox {
    max-width: none;
  }
}

@media (max-width: 700px) {
  .mv-bc {
    margin: 16px 0 10px;
  }

  .mv-cat__head {
    margin-bottom: 20px;
  }

  .mv-cat ul.products {
    gap: 10px;
  }

  .mv-card--arch {
    border-radius: 18px;
  }

  .mv-card--arch .mv-card__img img {
    padding: 12px;
  }

  .mv-card--arch .mv-card__body {
    padding: 12px 12px 14px;
  }

  .mv-card--arch .mv-card__title {
    font-size: 13.5px;
  }

  .mv-card--arch .mv-card__price strong {
    font-size: 18px;
  }

  .mv-bdgs {
    top: 10px;
    left: 10px;
    right: 10px;
  }

  .mv-bdg {
    padding: 4px 7px;
    font-size: 10px;
  }

  .mv-jnr-hero {
    min-height: 92px;
    padding: 18px 20px;
    border-radius: 20px;
  }

  .mv-jnr-hero strong {
    font-size: 24px;
  }

  .mv-jnr-hero__img {
    height: 78%;
    top: 11%;
    right: 12px;
  }

  .mv-jnr-choix {
    gap: 10px;
  }

  .mv-jnr-choix__img {
    display: none;
  }

  .mv-jnr-choix__item {
    padding: 12px 14px;
    border-radius: 14px;
  }

  .mv-jnr-reassurance {
    gap: 10px;
  }

  .mv-jnr-reassurance li {
    padding: 10px 12px;
    font-size: 12.5px;
  }

  .mv-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-right: -16px;
    padding: 0 16px 6px 0;
    scrollbar-width: none;
  }

  .mv-pills::-webkit-scrollbar {
    display: none;
  }

  .mv-trier {
    display: none;
  }

  .mv-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .mv-toolbar .woocommerce-ordering select {
    width: 100%;
  }

  .mv-cat__seo h2,
  .mv-cat__seo h3,
  .mv-jnr-seo h2 {
    font-size: 21px !important;
  }

  .mv-jnr-promo {
    min-height: 0 !important;
    padding: 18px !important;
  }

  .mv-jnr-promo strong {
    font-size: 17px;
  }

  .mv-jnr-table-wrap + .mv-jnr-table-note,
  .mv-jnr-table-wrap::after {
    content: "";
  }
}
