/* =====================================================================
   BeautyNest — homepage sections (mkc-*)
   Retail-style layout: hero + card, promo cards, product carousels,
   spotlight, category cards, services, benefits strip, header search.
   Logical properties everywhere so the layout mirrors in Arabic (RTL).
   ===================================================================== */

/* minmax(0,1fr): keeps wide scroll tracks from stretching the grid past the container. */
.mkc-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.mkc-wrap > *, .mkc-spotlight > * { min-width: 0; }

/* ---------- Buttons ---------- */
.mkc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 44px;
  padding: 0 1.6em;
  border: 1.5px solid currentColor;
  border-radius: var(--mkc-btn-radius, 6px);
  font-size: var(--text-md);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.mkc-btn--outline { color: var(--color-base-black); background: transparent; }
.mkc-btn--outline:hover {
  color: rgb(var(--color-button-text));
  background: rgb(var(--color-button));
  border-color: rgb(var(--color-button));
}
.mkc-btn--sm { min-height: 34px; padding: 0 1.1em; font-size: var(--text-sm); }
.mkc-btn--block { width: 100%; }

.mkc-pill {
  display: inline-flex;
  align-self: flex-start;
  padding: 0.35em 0.8em;
  border-radius: 4px;
  background: color-mix(in srgb, rgb(var(--color-button)) 12%, #ffffff);
  color: var(--mkc-accent-text);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.mkc-note { margin: 0; font-size: var(--text-xs); color: var(--color-gray-500); }

/* ---------- Section heading (title start, "Voir tout" end) ---------- */
.mkc-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.mkc-head__title {
  margin: 0;
  font-size: clamp(2rem, 2.2vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.mkc-head__sub { margin: 6px 0 0; font-size: var(--text-md); color: var(--color-gray-500); }
.mkc-head .mkc-btn { flex-shrink: 0; }

/* ---------- Media ---------- */
.mkc-media { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Hero (image carousel, sections/mkc-hero.liquid) ---------- */
.mkc-visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.mkc-hero {
  --mkc-hero-ratio: 3 / 1;
  position: relative;
  border-radius: 10px;
  background: var(--mkc-hero-bg, #fce3ec);
}
.mkc-hero__slider { --mkc-per: 1; --mkc-gap: 0px; }
.mkc-hero__slider .mkc-track { padding: 0; margin: 0; border-radius: 10px; }
/* Fixed frame for every slide (no height jump). The visual is shown whole (contain) above a
   blurred copy of itself, which only shows when its proportions differ from the frame. */
.mkc-hero__slide,
.mkc-hero__single {
  position: relative;
  overflow: hidden;
  aspect-ratio: var(--mkc-hero-ratio);
  max-height: min(640px, 80vh);
  background: var(--mkc-hero-bg, #fce3ec);
}
.mkc-hero__single { border-radius: 10px; }
.mkc-hero__slide::before {
  content: "";
  position: absolute;
  inset: -24px;
  background: var(--mkc-bg) center / cover no-repeat;
  filter: blur(22px) saturate(1.05);
  opacity: 0.85;
}
.mkc-hero__link { position: absolute; inset: 0; display: block; }
.mkc-hero__slide picture { display: contents; }
.mkc-hero__img,
.mkc-hero__single .mkc-media {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.mkc-hero__link .mkc-hero__img { position: absolute; inset: 0; }
.mkc-hero__slider .mkc-arrow { inset-block-start: 50%; transform: translateY(-50%); }
.mkc-hero__slider .mkc-arrow:hover { transform: translateY(-50%) scale(1.06); }
.mkc-hero__slider .mkc-arrow--prev { inset-inline-start: 12px; }
.mkc-hero__slider .mkc-arrow--next { inset-inline-end: 12px; }

.mkc-hero__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding-block: 10px 2px;
}
.mkc-dots { display: flex; gap: 4px; }
/* 24px hit area around an 8px dot. */
.mkc-dot {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.mkc-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #d9b3c3;
  transition: width 0.3s ease, background-color 0.3s ease;
}
.mkc-dot[aria-current="true"]::before { width: 22px; background: rgb(var(--color-button, 198, 56, 111)); }
.mkc-hero__pause {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid #e3c4d1;
  border-radius: 999px;
  background: #ffffff;
  color: var(--color-base-black);
  cursor: pointer;
}
.mkc-hero__pause svg { width: 14px; height: 14px; }
.mkc-hero__icon-play,
.mkc-hero__pause[aria-pressed="true"] .mkc-hero__icon-pause { display: none; }
.mkc-hero__pause[aria-pressed="true"] .mkc-hero__icon-play { display: block; }
.mkc-dot:focus-visible,
.mkc-hero__pause:focus-visible,
.mkc-hero__link:focus-visible { outline: 2px solid var(--color-base-black); outline-offset: 2px; }

@media (max-width: 767px) {
  .mkc-hero { --mkc-hero-ratio: var(--mkc-hero-ratio-mobile, 3 / 4); background: transparent; }
  .mkc-hero__slide::before { background-image: var(--mkc-bg-mobile, var(--mkc-bg)); }
}
@media (prefers-reduced-motion: reduce) {
  .mkc-hero__slider .mkc-track { scroll-behavior: auto; }
  .mkc-dot::before { transition: none; }
}

/* ---------- Promo cards (image + text side by side) ---------- */
.mkc-promos { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .mkc-promos { grid-template-columns: repeat(var(--mkc-cols, 2), minmax(0, 1fr)); }
}
.mkc-promo {
  display: grid;
  grid-template-columns: 42% 1fr;
  min-height: 200px;
  overflow: hidden;
  border: 1px solid #ececec;
  border-radius: 8px;
  background: #ffffff;
  transition: box-shadow 0.25s ease;
}
.mkc-promo:hover { box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08); }
.mkc-promo__media { display: block; min-height: 100%; overflow: hidden; }
.mkc-promo__media .mkc-media { transition: transform 0.5s ease; }
.mkc-promo:hover .mkc-promo__media .mkc-media { transform: scale(1.04); }
.mkc-promo__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 18px 20px;
}
.mkc-promo__title { margin: 0; font-size: var(--text-xl); font-weight: 700; line-height: 1.25; }
.mkc-promo__text { margin: 0; font-size: var(--text-md); line-height: 1.45; color: var(--color-gray-500); }
.mkc-promo__body .mkc-btn { margin-block-start: 6px; }
@media (max-width: 480px) {
  .mkc-promo { min-height: 170px; }
  .mkc-promo__body { padding: 14px; gap: 6px; }
  .mkc-promo__title { font-size: var(--text-lg); }
  .mkc-promo__text { font-size: var(--text-sm); }
}

/* ---------- Carousel (native scroll-snap + arrows + progress) ---------- */
mkc-carousel {
  --mkc-gap: 16px;
  --mkc-per: 2.15;
  position: relative;
  display: block;
}
@media (min-width: 640px) { mkc-carousel { --mkc-per: 3.2; } }
@media (min-width: 990px) { mkc-carousel { --mkc-per: 4.25; } }
mkc-carousel[data-kind="cats"] { --mkc-per: 2.3; }
@media (min-width: 640px) { mkc-carousel[data-kind="cats"] { --mkc-per: 3.4; } }
@media (min-width: 990px) { mkc-carousel[data-kind="cats"] { --mkc-per: 5.2; } }
/* Pages of exactly 3 products (auto-sliding "shop by" panels); 2 on phones so cards stay readable. */
mkc-carousel[data-kind="trio"] { --mkc-per: 2; }
@media (min-width: 640px) { mkc-carousel[data-kind="trio"] { --mkc-per: 3; } }
/* Sections with a "visible on desktop" setting (data-per): whole cards only, no peek.
   The doubled attribute outranks [data-kind] and ".mkc-spotlight mkc-carousel". */
@media (min-width: 990px) { mkc-carousel[data-per][data-per] { --mkc-per: var(--mkc-per-desktop); } }

.mkc-track {
  display: flex;
  gap: var(--mkc-gap);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 2px;
  scrollbar-width: none;
  padding: 4px 2px 16px;
  margin: -4px -2px 0;
}
.mkc-track::-webkit-scrollbar { display: none; }
.mkc-slide {
  flex: 0 0 calc((100% - var(--mkc-gap) * (var(--mkc-per) - 1)) / var(--mkc-per));
  min-width: 0;
  scroll-snap-align: start;
}
.mkc-slide > * { height: 100%; }
/* Shortcut whose cards are on their way (assets/mkc-home.js, loadRemote). */
.mkc-slide--ghost { min-height: 340px; border-radius: 12px; background: rgba(18, 18, 18, 0.06); animation: mkc-ghost 1s ease-in-out infinite alternate; }
/* End of a carousel on its way (setupMore): as tall as its neighbours, so the row never changes height. */
.mkc-slide--filler { min-height: 0; }
@keyframes mkc-ghost { to { opacity: 0.45; } }
@media (prefers-reduced-motion: reduce) { .mkc-slide--ghost { animation: none; } }

.mkc-arrow {
  position: absolute;
  inset-block-start: 38%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: var(--color-base-black);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.mkc-arrow:hover { transform: scale(1.06); }
.mkc-arrow[disabled] { opacity: 0; pointer-events: none; }
.mkc-arrow--prev { inset-inline-start: -14px; }
.mkc-arrow--next { inset-inline-end: -14px; }
.mkc-arrow svg { width: 18px; height: 18px; }
[dir="rtl"] .mkc-arrow svg { transform: scaleX(-1); }
mkc-carousel[data-static] .mkc-arrow,
mkc-carousel[data-static] .mkc-progress { display: none; }
@media (hover: none), (max-width: 640px) { .mkc-arrow { display: none; } }

.mkc-progress {
  position: relative;
  height: 3px;
  margin-inline: auto;
  width: min(220px, 50%);
  border-radius: 999px;
  background: #e8e8e8;
  overflow: hidden;
}
.mkc-progress span {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 30%;
  border-radius: inherit;
  background: var(--color-base-black);
  transition: inset-inline-start 0.15s linear;
}

/* Product cards inside carousels: square image, equal heights. */
mkc-carousel .product-card { display: flex; flex-direction: column; height: 100%; }
/* minmax(0, 1fr): an auto grid column grew to the button's text width, so the button
   overflowed the card and was cut by its rounded border. */
mkc-carousel .product-card .info { flex: 1; align-content: start; grid-template-columns: minmax(0, 1fr); }
mkc-carousel .product-card .info .yc-product-form,
mkc-carousel .product-card .info yc-product-form { margin-block-start: auto; }
/* [data-style] needed to outrank product-card.css (.product-card[data-style$=standard] .img-link img). */
mkc-carousel .product-card[data-style] .img-link { height: auto; }
mkc-carousel .product-card[data-style] .img-link img { height: auto; aspect-ratio: 1 / 1; }
mkc-carousel .product-card[data-style$="standard"]:hover { transform: none; }
/* Product names on two lines (beauty names are long), equal height across cards. */
mkc-carousel .product-card .info .title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  white-space: normal;
  line-height: 1.3;
  min-height: 2.6em;
}
/* Full-width CTA inside the card; the label wraps rather than being cut. */
mkc-carousel .product-card .info button,
mkc-carousel .product-card .info .yc-btn {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding-inline: 8px; /* "Commander maintenant" fits on one line in 4-up cards at 1280px */
  line-height: 1.2;
  white-space: normal;
}
@media (max-width: 639px) {
  mkc-carousel { --mkc-per: 2.05; --mkc-gap: 12px; }
  mkc-carousel .product-card .info { padding: 10px; }
  /* Narrow cards: the label may wrap on two lines rather than being cut ("Commander maintenan…"). */
  mkc-carousel .product-card .info button,
  mkc-carousel .product-card .info .yc-btn {
    min-height: 44px;
    padding: 6px;
    font-size: var(--text-xs);
  }
}

/* ---------- Spotlight (visual + carousel) ---------- */
.mkc-spotlight { display: grid; gap: 16px; grid-template-columns: 1fr; }
.mkc-spotlight__visual {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 4 / 3;
}
.mkc-spotlight__caption {
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  padding: 40px 18px 14px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.45), transparent);
  color: #ffffff;
  font-size: var(--text-sm);
  font-weight: 600;
}
.mkc-spotlight mkc-carousel { --mkc-per: 2.15; min-width: 0; }
@media (min-width: 990px) {
  .mkc-spotlight { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.7fr); align-items: stretch; }
  .mkc-spotlight__visual { aspect-ratio: auto; min-height: 100%; }
  .mkc-spotlight mkc-carousel { --mkc-per: 2.6; }
}

/* ---------- Category cards ---------- */
.mkc-cat {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #ececec;
  border-radius: 8px;
  background: #ffffff;
  color: inherit;
  text-decoration: none;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.mkc-cat:hover { box-shadow: 0 12px 26px rgba(0, 0, 0, 0.08); transform: translateY(-2px); }
.mkc-cat__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.mkc-cat__name {
  padding: 12px 10px 14px;
  text-align: center;
  font-size: var(--text-md);
  font-weight: 700;
}

/* ---------- Services ---------- */
.mkc-services {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-block-end: 4px;
}
.mkc-services::-webkit-scrollbar { display: none; }
.mkc-service {
  flex: 0 0 82%;
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: 96px 1fr;
  align-items: center;
  gap: 14px;
  padding: 10px;
  border: 1px solid #ececec;
  border-radius: 8px;
  background: #ffffff;
  color: inherit;
  text-decoration: none;
}
a.mkc-service:hover { box-shadow: 0 10px 24px rgba(0, 0, 0, 0.07); }
.mkc-service__media { width: 96px; height: 96px; overflow: hidden; border-radius: 12px; }
.mkc-service__title { margin: 0 0 4px; font-size: var(--text-lg); font-weight: 700; }
.mkc-service__text { margin: 0; font-size: var(--text-sm); line-height: 1.45; color: var(--color-gray-500); }
@media (min-width: 768px) {
  .mkc-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    overflow: visible;
  }
}

/* ---------- Benefits strip (sections/mkc-benefits.liquid) ----------
   Phone < 560: one list, icon beside the text, link at the end of the text (compact cards).
   560-767: 2 columns, an odd last promise takes the full row.
   768-1279: 6-track grid, so 5 promises sit as 3 + 2 (and 4 as 2 + 2) with no hole;
   icon above the text up to 1023 (narrow cards), beside it from 1024.
   1280+: one row, icon above the text, thin separators; same width as the other sections. */
.mkc-benefits-section {
  background: var(--section-bg-color, #FCE6EF);
  border-block: 1px solid #f6d3e1;
}
.mkc-benefits {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.mkc-benefit {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}
.mkc-benefit__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  color: rgb(var(--color-button));
  box-shadow: 0 4px 12px rgba(198, 56, 111, 0.12);
}
.mkc-benefit__icon svg { width: 23px; height: 23px; }
.mkc-benefit__body { display: grid; gap: 3px; min-width: 0; }
.mkc-benefit__title {
  margin: 0;
  font-size: clamp(1.5rem, 0.3vw + 1.15rem, 1.7rem);
  font-weight: 800;
  line-height: 1.3;
  color: #3b1430;
  text-wrap: balance;
}
.mkc-benefit__text {
  margin: 0;
  font-size: clamp(1.3rem, 0.2vw + 1.05rem, 1.5rem);
  line-height: 1.45;
  color: #6b4f5c;
  text-wrap: pretty;
}
.mkc-benefit__cards { display: flex; flex-wrap: wrap; gap: 6px; margin-block-start: 4px; }
.mkc-benefit__cards .mkc-pay { display: block; width: 40px; height: 25px; border-radius: 4px; box-shadow: 0 0 0 1px #eadde3; }
.mkc-benefit__link {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-height: 28px;
  margin-block-start: 2px;
  font-size: var(--text-sm);
  font-weight: 700;
  color: #a3164f;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.mkc-benefit__link:hover { color: #7d0f3b; }
.mkc-benefit__link:focus-visible { outline: 2px solid rgb(var(--color-button)); outline-offset: 2px; border-radius: 4px; }

@media (max-width: 559px) {
  .mkc-benefit { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 12px 14px; }
  .mkc-benefit__icon { width: 40px; height: 40px; }
  .mkc-benefit__icon svg { width: 21px; height: 21px; }
  .mkc-benefit__body { display: block; }
  .mkc-benefit__title { margin-block-end: 2px; }
  .mkc-benefit__text { display: inline; }
  /* Inline link in the sentence (WCAG 2.5.8 exception); padding widens the tap area. */
  .mkc-benefit__link { display: inline; min-height: 0; margin: 0; margin-inline-start: 6px; padding-block: 6px; }
  .mkc-benefit__cards { margin-block-start: 6px; }
}
@media (min-width: 560px) {
  .mkc-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .mkc-benefits[data-count="1"] > .mkc-benefit,
  .mkc-benefits[data-count="3"] > .mkc-benefit:last-child,
  .mkc-benefits[data-count="5"] > .mkc-benefit:last-child { grid-column: 1 / -1; }
}
@media (min-width: 768px) {
  .mkc-benefits { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
  .mkc-benefits > .mkc-benefit,
  .mkc-benefits[data-count="3"] > .mkc-benefit:last-child { grid-column: span 2; }
  .mkc-benefits[data-count="2"] > .mkc-benefit,
  .mkc-benefits[data-count="4"] > .mkc-benefit,
  .mkc-benefits[data-count="5"] > .mkc-benefit:nth-child(n + 4),
  .mkc-benefits[data-count="5"] > .mkc-benefit:last-child { grid-column: span 3; }
  .mkc-benefits[data-count="1"] > .mkc-benefit { grid-column: 1 / -1; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .mkc-benefit { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 16px; }
}
@media (min-width: 1280px) {
  .mkc-benefits { grid-template-columns: repeat(var(--mkc-benefits-cols, 5), minmax(0, 1fr)); gap: 0; }
  .mkc-benefits > .mkc-benefit,
  .mkc-benefits[data-count] > .mkc-benefit:nth-child(n),
  .mkc-benefits[data-count] > .mkc-benefit:last-child { grid-column: auto; }
  .mkc-benefit {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 8px 22px;
    border-radius: 0;
    background: transparent;
  }
  .mkc-benefit + .mkc-benefit { border-inline-start: 1px solid #f1c3d6; }
  .mkc-benefit:first-child { padding-inline-start: 0; }
  .mkc-benefit:last-child { padding-inline-end: 0; }
  .mkc-benefit__icon { width: 48px; height: 48px; }
  .mkc-benefit__icon svg { width: 25px; height: 25px; }
}

/* ---------- Header search (always visible, retail style) ---------- */
@media (min-width: 1025px) {
  yc-header .actions form.search-bar[data-expanded] {
    width: clamp(240px, 24vw, 380px);
    opacity: 1;
    visibility: visible;
  }
  yc-header .actions button.search-btn { display: none; }
}
yc-header .actions form.search-bar .search-input,
.mkc-mobile-search input {
  height: 42px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #f3f3f3;
  font-size: var(--text-md);
}
yc-header .actions form.search-bar .search-input:focus,
.mkc-mobile-search input:focus {
  border-color: rgb(var(--color-button));
  background: #ffffff;
  outline: none;
}
.mkc-mobile-search { display: none; }
/* Compact sticky header (phones, tablets): the search row slides under the bar while scrolling down,
   back when scrolling up (assets/mkc-home.js). It hangs below the sticky header (absolute) and its
   space is kept by a margin, so nothing moves on the page. */
@media (max-width: 1024px) {
  #youcan-section--header:has(> yc-header[data-sticky]) { margin-block-end: var(--mkc-search-h, 54px); }
  #youcan-section--header:has(> yc-header[data-sticky]) > .mkc-mobile-search {
    position: absolute;
    inset-inline: 0;
    inset-block-start: 100%;
    z-index: -1;
    transition: transform 0.25s ease, opacity 0.2s ease, visibility 0s linear 0s;
  }
  #youcan-section--header.mkc-compact > .mkc-mobile-search {
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.2s ease, visibility 0s linear 0.25s;
  }
}
@media (max-width: 1024px) and (prefers-reduced-motion: reduce) {
  #youcan-section--header:has(> yc-header[data-sticky]) > .mkc-mobile-search { transition: none; }
}

@media (max-width: 1024px) {
  .mkc-mobile-search {
    position: relative;
    display: block;
    padding: 0 16px 12px;
    background: var(--header-bg-color, #ffffff);
  }
  .mkc-mobile-search svg {
    position: absolute;
    inset-inline-start: 30px;
    inset-block-start: 12px;
    width: 18px;
    height: 18px;
    color: var(--color-gray-500);
    pointer-events: none;
  }
  .mkc-mobile-search input {
    width: 100%;
    padding-inline: 44px 16px;
  }
}

/* =====================================================================
   Retail header: logo + wide search on row 1, category row below.
   `body` prefix outranks layout-header.css (loaded later, inside <body>).
   ===================================================================== */
@media (min-width: 1025px) {
  body yc-header[data-desktop-logo-position$="top-left"] {
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 40px;
    row-gap: 4px;
    padding-block: 16px 0;
  }
  body yc-header[data-desktop-logo-position$="top-left"] .actions {
    justify-content: space-between;
    gap: 24px;
  }
  body yc-header[data-desktop-logo-position$="top-left"] .actions form.search-bar[data-expanded] {
    flex: 1;
    width: auto;
    max-width: 640px;
  }
  body yc-header[data-desktop-logo-position$="top-left"] .links { padding-block: 0 4px; }
}
yc-header .links ul.mkc-catnav {
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  column-gap: 24px;
}
yc-header .links ul.mkc-catnav::-webkit-scrollbar { display: none; }
/* 14 rayons depuis le 15/11/2026 (maximum du schéma) : espacement réduit sur les écrans desktop moyens
   pour en garder le plus possible sur une ligne ; au-delà, la rangée défile horizontalement. */
@media (min-width: 1025px) and (max-width: 1199px) {
  yc-header .links ul.mkc-catnav { column-gap: 12px; }
}
@media (min-width: 1200px) and (max-width: 1439px) {
  yc-header .links ul.mkc-catnav { column-gap: 18px; }
}
yc-header .links ul.mkc-catnav a.yc-btn.link {
  padding: 8px 0 10px;
  border-radius: 0;
  border-bottom: 2px solid transparent;
  font-size: var(--text-md);
  font-weight: 500;
}
yc-header .links ul.mkc-catnav a.yc-btn.link:hover { border-bottom-color: currentColor; }
yc-header .logo a { font-weight: 800; white-space: nowrap; }
@media (min-width: 1025px) { yc-header .logo a { font-size: 2rem; letter-spacing: 0.12em; } }
@media (max-width: 1024px) { yc-header .logo a { font-size: 1.5rem; letter-spacing: 0.06em; } }
/* ---------- Edge-to-edge hero (retail style) ---------- */
.mkc-hero[data-full],
.mkc-hero[data-full] .mkc-hero__slider .mkc-track,
.mkc-hero[data-full] .mkc-hero__single { border-radius: 0; }

/* =====================================================================
   Display headings: bold title + optional serif italic accent
   (accent font loaded by snippets/mkc-accent-font.liquid)
   ===================================================================== */
.mkc-display {
  margin: 0;
  font-size: clamp(2.6rem, 3.1vw, 4rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.mkc-display__accent {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--mkc-accent-text);
}
.mkc-display--stacked .mkc-display__accent { display: block; }
/* Arabic: no italic serif for Arabic script, keep the brand colour only. */
[dir="rtl"] .mkc-display__accent { font-family: inherit; font-style: normal; font-weight: 800; }

/* =====================================================================
   Shop by (skin concerns / routine steps) - sections/mkc-shop-by.liquid
   ===================================================================== */
.mkc-shopby__head { display: grid; justify-items: center; gap: 8px; text-align: center; }
/* minmax(0,1fr): the product track must not widen the grid (page would scroll sideways). */
.mkc-shopby { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; min-width: 0; }

.mkc-shopby__list {
  position: relative;
  display: flex;
  gap: 4px;
  margin-inline: -16px;
  padding: 8px 16px 4px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.mkc-shopby__list::-webkit-scrollbar { display: none; }
/* Desktop: always one centred row (wrapping left a lone shortcut on a second line).
   Equal columns up to 140px share the width, so 4 to 12 shortcuts all fit. */
@media (min-width: 990px) {
  .mkc-shopby__list {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 140px);
    justify-content: center;
    gap: 14px;
    margin-inline: 0;
    padding-inline: 0;
    overflow: visible;
  }
  .mkc-shopby__list .mkc-shopby__item { width: auto; min-width: 0; }
  .mkc-shopby__list .mkc-shopby__media { width: min(92px, 100%); }
}

.mkc-shopby__item {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 92px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
  scroll-snap-align: center;
  -webkit-tap-highlight-color: transparent;
}

.mkc-shopby__media {
  position: relative;
  display: block;
  width: 74px;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}
.mkc-shopby__item:hover .mkc-shopby__media { transform: translateY(-3px); }
.mkc-shopby__item:focus-visible { outline: none; }
.mkc-shopby__item:focus-visible .mkc-shopby__media { outline: 2px solid rgb(var(--color-button)); outline-offset: 5px; }

/* Two centred lines at most, never wider than the item (« Déshydratation » spilled over its neighbours, T28):
   French hyphenation first, a hard break only as a last resort. Same reserved height for every label. */
.mkc-shopby__label {
  display: -webkit-box;
  max-width: 100%;
  min-height: 2.5em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  overflow-wrap: anywhere;
  hyphens: auto;
  -webkit-hyphens: auto;
  color: var(--color-base-black);
  transition: color 0.2s ease;
}
/* Phones: about 3.4 items per screen, so the next one always peeks and shows the row scrolls. */
@media (max-width: 479px) {
  .mkc-shopby__item { width: calc((100vw - 16px) / 3.4 - 4px); }
}
.mkc-shopby__item[aria-selected="true"] .mkc-shopby__label { color: var(--mkc-accent-text); font-weight: 800; }

/* Look 1: round photo, ring on the active one */
.mkc-shopby[data-style="photo"] .mkc-shopby__media { box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06); }
.mkc-shopby[data-style="photo"] .mkc-shopby__item:hover .mkc-shopby__media,
.mkc-shopby[data-style="photo"] [aria-selected="true"] .mkc-shopby__media {
  box-shadow: 0 0 0 3px #ffffff, 0 0 0 5px rgb(var(--color-button));
}

/* Look 2: cut-out product with a pink glow, white disc on the active one */
.mkc-shopby[data-style="glow"] .mkc-shopby__media {
  display: grid;
  place-items: center;
  overflow: visible;
  background: transparent;
}
.mkc-shopby[data-style="glow"] .mkc-shopby__media .mkc-media {
  width: 82%;
  height: 82%;
  object-fit: contain;
  filter: drop-shadow(0 0 2px rgba(255, 92, 168, 0.95)) drop-shadow(0 0 9px rgba(255, 64, 150, 0.55));
  transition: transform 0.25s ease;
}
.mkc-shopby[data-style="glow"] .mkc-shopby__item:hover .mkc-media { transform: scale(1.06); }
.mkc-shopby[data-style="glow"] [aria-selected="true"] .mkc-shopby__media {
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(198, 56, 111, 0.18);
}

/* minmax(0, 1fr): without it the grid column grows to the carousel's full scroll width (giant, cut-off cards). */
.mkc-shopby__panel { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; min-width: 0; }
.mkc-shopby__panel[hidden] { display: none; }
.mkc-shopby__panel:focus-visible { outline: 2px solid rgb(var(--color-button)); outline-offset: 6px; }
.mkc-shopby__panel:not([hidden]) { animation: mkc-panel-in 0.3s ease; }
@keyframes mkc-panel-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.mkc-shopby__more { display: flex; justify-content: center; }
.mkc-shopby__empty { margin: 0; padding: 28px 0; text-align: center; color: var(--color-gray-500); }

/* =====================================================================
   Customer reviews - sections/mkc-testimonials.liquid
   ===================================================================== */
mkc-carousel[data-kind="testi"] { --mkc-per: 1.12; --mkc-gap: 12px; }
@media (min-width: 640px) { mkc-carousel[data-kind="testi"] { --mkc-per: 2.1; --mkc-gap: 16px; } }
@media (min-width: 990px) { mkc-carousel[data-kind="testi"] { --mkc-per: 3; } }

.mkc-testi { display: grid; gap: 28px; }
.mkc-testi__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.mkc-testi__nav { display: flex; flex-shrink: 0; gap: 12px; }
.mkc-testi__arrow {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 1px solid var(--color-base-black);
  border-radius: 50%;
  background: transparent;
  color: var(--color-base-black);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}
.mkc-testi__arrow svg { width: 20px; height: 20px; }
.mkc-testi__arrow:hover:not([disabled]) { background: var(--color-base-black); color: #ffffff; }
.mkc-testi__arrow[disabled] { opacity: 0.25; cursor: default; }
[dir="rtl"] .mkc-testi__arrow svg { transform: scaleX(-1); }
@media (hover: none), (max-width: 640px) { .mkc-testi__nav { display: none; } }
.mkc-testi .mkc-track { padding-block: 2px 6px; }

.mkc-review {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  margin: 0;
  padding: 22px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(91, 31, 58, 0.05);
}
@media (min-width: 990px) { .mkc-review { padding: 24px 24px 20px; } }
.mkc-review__who { display: flex; align-items: center; gap: 12px; }
.mkc-review__avatar {
  display: grid;
  flex: 0 0 52px;
  place-items: center;
  width: 52px;
  height: 52px;
  overflow: hidden;
  border-radius: 50%;
  background: linear-gradient(135deg, #fbe0ea, #f3b7cc);
  color: #9e2558;
  font-size: var(--text-lg);
  font-weight: 800;
  letter-spacing: 0.02em;
}
.mkc-review__avatar img { width: 100%; height: 100%; object-fit: cover; }
.mkc-review__id { display: grid; gap: 2px; min-width: 0; }
.mkc-review__name { font-size: var(--text-md); font-weight: 700; line-height: 1.25; }
.mkc-review__city { font-size: var(--text-sm); color: var(--color-gray-500); }
.mkc-review__stars { display: flex; gap: 2px; color: #e8a93a; }
.mkc-review__stars svg { width: 16px; height: 16px; }
.mkc-review__stars .is-off { color: #e9e1e4; }
.mkc-review__quote {
  flex: 1;
  margin: 0;
  font-size: var(--text-lg);
  line-height: 1.55;
  color: var(--color-base-black);
  quotes: "\00AB\00A0" "\00A0\00BB";
}
.mkc-review__quote::before { content: open-quote; }
.mkc-review__quote::after { content: close-quote; }

.mkc-review__product {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding-block-start: 14px;
  border-block-start: 1px solid #f1e7eb;
}
.mkc-review__thumb { display: block; width: 52px; height: 52px; overflow: hidden; border-radius: 8px; background: #f6f2f4; }
.mkc-review__thumb img { width: 100%; height: 100%; object-fit: cover; }
.mkc-review__pinfo { display: grid; gap: 2px; min-width: 0; }
.mkc-review__pname {
  display: -webkit-box;
  overflow: hidden;
  color: inherit;
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.mkc-review__pname:hover { color: var(--mkc-accent-text); }
.mkc-review__price { font-size: var(--text-sm); font-weight: 700; color: var(--mkc-price, var(--mkc-accent-text)); }
.mkc-review__atc { display: block; }

.mkc-icon-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--color-base-black);
  color: #ffffff;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.mkc-icon-btn svg { width: 20px; height: 20px; }
.mkc-icon-btn:hover { background: rgb(var(--color-button)); color: #ffffff; transform: scale(1.06); }
.mkc-icon-btn[data-loading] { pointer-events: none; }
.mkc-icon-btn[data-loading] svg { opacity: 0; }
.mkc-icon-btn[data-loading]::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-bottom-color: transparent;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .mkc-shopby__panel:not([hidden]) { animation: none; }
  .mkc-shopby__media,
  .mkc-shopby[data-style="glow"] .mkc-media,
  .mkc-icon-btn { transition: none; }
}

/* =====================================================================
   « Nos coups de cœur » (sections/mkc-popular-picks.liquid)
   Editorial header, segmented pill tabs with icons, premium product cards.
   Logical properties throughout (mirrors in Arabic).
   ===================================================================== */
.mkc-picks { display: grid; gap: 26px; }
.mkc-picks__head { display: grid; justify-items: center; gap: 10px; text-align: center; }
.mkc-picks__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mkc-accent-text);
}
.mkc-picks__eyebrow::before,
.mkc-picks__eyebrow::after { content: ""; width: 22px; height: 1px; background: currentColor; opacity: 0.5; }
.mkc-picks__title { margin: 0; }
.mkc-picks__title .mkc-display__accent { font-size: 1.2em; color: var(--color-base-black); }
.mkc-picks__sub { margin: 0; max-width: 560px; font-size: var(--text-md); line-height: 1.5; color: #6f6a66; }

/* Segmented control: soft track, the active tab is a raised white pill. */
.mkc-picks__tabs-root { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.mkc-picks__tabs-scroll { overflow-x: auto; scrollbar-width: none; padding: 4px 2px 8px; }
.mkc-picks__tabs-scroll::-webkit-scrollbar { display: none; }
.mkc-picks__tabs {
  display: flex;
  gap: 4px;
  width: max-content;
  margin-inline: auto;
  padding: 5px;
  border-radius: 999px;
  background: #f7eef2;
  box-shadow: inset 0 0 0 1px rgba(198, 56, 111, 0.08);
}
.mkc-picks__tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #5e4c53;
  font: inherit;
  font-size: var(--text-md);
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}
.mkc-picks__tab .mkc-pick-icon { width: 18px; height: 18px; flex-shrink: 0; }
.mkc-picks__tab:hover { color: var(--color-base-black); }
.mkc-picks__tab[aria-selected="true"] {
  background: #ffffff;
  color: var(--color-base-black);
  box-shadow: 0 6px 18px rgba(91, 31, 58, 0.12), 0 1px 2px rgba(91, 31, 58, 0.08);
}
.mkc-picks__tab[aria-selected="true"] .mkc-pick-icon { color: rgb(var(--color-button)); }
.mkc-picks__tab:focus-visible { outline: 2px solid rgb(var(--color-button)); outline-offset: 2px; }

.mkc-picks__panel { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; min-width: 0; }
.mkc-picks__panel[hidden] { display: none; }
.mkc-picks__panel:not([hidden]) { animation: mkc-picks-in 0.45s cubic-bezier(0.2, 0.7, 0.2, 1); }
.mkc-picks__panel:focus-visible { outline: none; }
@keyframes mkc-picks-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Offer banner (offer tabs only). */
.mkc-picks__offer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 12px 18px;
  border-radius: 14px;
  background: #fbe8ef;
  color: #7a1f45;
  font-size: var(--text-md);
  font-weight: 600;
  text-align: center;
}
.mkc-picks__offer[data-tone="green"] { background: #e8f3dc; color: #2f4a17; }
.mkc-picks__offer[data-tone="dark"] { background: #1e1e1e; color: #ffffff; }
.mkc-picks__offer .mkc-pick-icon { width: 20px; height: 20px; flex-shrink: 0; }

.mkc-picks__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: center;
  padding-block: 6px;
  border-block-end: 1px solid currentColor;
  color: var(--color-base-black);
  font-size: var(--text-md);
  font-weight: 600;
  text-decoration: none;
}
.mkc-picks__more svg { width: 18px; height: 18px; transition: transform 0.2s ease; }
.mkc-picks__more:hover svg { transform: translateX(4px); }
[dir="rtl"] .mkc-picks__more svg { transform: scaleX(-1); }
[dir="rtl"] .mkc-picks__more:hover svg { transform: scaleX(-1) translateX(4px); }

/* Row: 2.2 cards on phones (the peek invites a swipe), 3.2 on tablets, whole cards on desktop. */
mkc-carousel[data-kind="picks"] { --mkc-gap: 22px; --mkc-per: 2.2; }
@media (min-width: 640px) { mkc-carousel[data-kind="picks"] { --mkc-per: 3.2; } }
@media (max-width: 989px) { mkc-carousel[data-kind="picks"] { --mkc-gap: 14px; } }
mkc-carousel[data-kind="picks"] .mkc-arrow {
  inset-block-start: 36%;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--color-base-black);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.14);
}
mkc-carousel[data-kind="picks"] .mkc-arrow--prev { inset-inline-start: -10px; }
mkc-carousel[data-kind="picks"] .mkc-arrow--next { inset-inline-end: -10px; }

/* ---------- Card ---------- */
.mkc-pick { display: flex; flex-direction: column; gap: 12px; height: 100%; }
.mkc-pick__media { position: relative; }
.mkc-pick__frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 22px;
  background: var(--mkc-pick-frame, #f6f1ec);
  isolation: isolate;
}
.mkc-pick__photo { position: absolute; inset: 0; display: block; }
.mkc-pick__photo img,
.mkc-pick__photo svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.mkc-pick:hover .mkc-pick__photo img { transform: scale(1.05); }
/* Soft shade at the bottom so the rank number and the button stay readable on light photos. */
.mkc-pick__frame::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  background: linear-gradient(to top, rgba(30, 18, 24, 0.28), transparent);
  pointer-events: none;
  z-index: 0;
}

.mkc-pick__badges {
  position: absolute;
  inset-block-start: 14px;
  inset-inline-start: 14px;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  pointer-events: none;
}
.mkc-pick__badge {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.1;
  background: #1e1e1e;
  color: #ffffff;
}
.mkc-pick__badge[data-tone="pink"] { background: rgb(var(--color-button)); color: rgb(var(--color-button-text)); }
.mkc-pick__badge[data-tone="green"] { background: #cfe3b6; color: #2f4a17; }
.mkc-pick__badge[data-tone="sale"] { background: var(--badge-bg-color, #FF80C5); color: var(--badge-text-color, #3B1430); }

.mkc-pick__rating {
  position: absolute;
  inset-block-start: 14px;
  inset-inline-end: 14px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  font-size: 1.25rem;
  font-weight: 700;
  pointer-events: none;
}
.mkc-pick__rating svg { width: 14px; height: 14px; color: #f2a516; }

.mkc-pick__rank {
  position: absolute;
  inset-block-end: 6px;
  inset-inline-start: 16px;
  z-index: 1;
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(4.2rem, 4.4vw, 6.4rem);
  line-height: 1;
  color: #ffffff;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
  pointer-events: none;
  transition: opacity 0.25s ease;
}

/* Add to cart: slides up on hover (mouse), always visible on touch screens. */
.mkc-pick__cta {
  position: absolute;
  inset-inline: 12px;
  inset-block-end: 12px;
  z-index: 2;
  transform: translateY(calc(100% + 16px));
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.25s ease;
}
.mkc-pick:hover .mkc-pick__cta,
.mkc-pick:focus-within .mkc-pick__cta { transform: none; opacity: 1; }
.mkc-pick:hover .mkc-pick__rank,
.mkc-pick:focus-within .mkc-pick__rank { opacity: 0; }
.mkc-pick__cta yc-product-form,
.mkc-pick__cta .product-quick-view { display: block; }
.mkc-pick__cta button.secondary,
.mkc-pick__cta .yc-btn.secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  padding: 10px 16px;
  border-radius: var(--mkc-btn-radius, 6px);
  font-size: var(--text-md);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.14);
  cursor: pointer;
}
/* Colours: shared purchase-button rules in custom.css (T22). */

.mkc-pick__info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--color-base-black);
  text-decoration: none;
}
.mkc-pick__info:focus-visible { outline: 2px solid rgb(var(--color-button)); outline-offset: 4px; border-radius: 6px; }
.mkc-pick__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.mkc-pick__tag {
  padding: 4px 11px;
  border: 1px solid #e6dfd9;
  border-radius: 999px;
  font-size: 1.2rem;
  color: #6f6a66;
  line-height: 1.2;
}
.mkc-pick__name {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: 1.3;
}
.mkc-pick__info:hover .mkc-pick__name { text-decoration: underline; text-underline-offset: 3px; }
.mkc-pick__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; font-size: var(--text-lg); }
.mkc-pick__now { font-weight: 700; color: var(--mkc-price, var(--mkc-accent-text)); }
.mkc-pick__was { color: #6f6a66; font-size: 0.9em; } /* 5.3:1 on white (WCAG AA); #8a8580 was 3.6:1 */

/* Touch screens: no hover, so the button sits under the photo, always visible. */
@media (hover: none) {
  .mkc-pick__media { display: flex; flex-direction: column; overflow: visible; aspect-ratio: auto; background: none; border-radius: 0; }
  .mkc-pick__photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 16px; background: var(--mkc-pick-frame, #f6f1ec); }
  .mkc-pick__frame::after { display: none; }
  .mkc-pick__rank { inset-block-end: auto; inset-block-start: calc(100% - 4.6rem - 52px); }
  .mkc-pick__cta { position: static; order: 2; margin-block-start: 10px; transform: none; opacity: 1; }
  .mkc-pick:hover .mkc-pick__rank { opacity: 1; }
  .mkc-pick__cta button.secondary, .mkc-pick__cta .yc-btn.secondary { box-shadow: none; }
}

@media (max-width: 639px) {
  .mkc-picks { gap: 20px; }
  .mkc-picks__tab { padding: 10px 14px; gap: 6px; font-size: 1.35rem; }
  .mkc-picks__tab .mkc-pick-icon { width: 16px; height: 16px; }
  .mkc-pick__frame { border-radius: 16px; }
  .mkc-pick__badges { inset-block-start: 10px; inset-inline-start: 10px; }
  .mkc-pick__badge { padding: 4px 8px; font-size: 1.2rem; letter-spacing: 0.02em; }
  /* Small cards: the rating moves to the bottom corner, facing the rank, so it never meets the badge. */
  .mkc-pick__rating { inset-block: auto 10px; inset-inline-end: 10px; padding: 4px 8px; font-size: 1.2rem; }
  .mkc-pick__rank { inset-inline-start: 10px; font-size: 3.8rem; }
  .mkc-pick__tag { padding: 3px 9px; font-size: 1.2rem; }
  .mkc-pick__name, .mkc-pick__price { font-size: var(--text-md); }
  .mkc-pick__cta button.secondary, .mkc-pick__cta .yc-btn.secondary { min-height: 44px; padding-inline: 8px; font-size: 1.3rem; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  .mkc-picks__panel:not([hidden]) { animation: none; }
  .mkc-pick__photo img, .mkc-pick__cta, .mkc-pick__rank { transition: none; }
}

/* ---------- Questions fréquentes (sections/mkc-faq-home.liquid) ---------- */
.mkc-hfaq { display: grid; gap: 28px; max-width: 1180px; margin-inline: auto; }
.mkc-hfaq__head { display: grid; justify-items: center; gap: 8px; text-align: center; }
.mkc-hfaq__eyebrow {
  margin: 0;
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mkc-accent-text);
}
[dir="rtl"] .mkc-hfaq__eyebrow { letter-spacing: 0; }
.mkc-hfaq__title { margin: 0; font-size: clamp(2.4rem, 3vw, 3.4rem); font-weight: 800; letter-spacing: -0.01em; line-height: 1.15; }
.mkc-hfaq__sub { max-width: 620px; margin: 0; font-size: var(--text-md); line-height: 1.55; color: var(--color-gray-500); }
.mkc-hfaq__cols { display: grid; gap: 0 40px; align-items: start; }
@media (min-width: 990px) { .mkc-hfaq__cols[data-cols="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mkc-hfaq__col { display: grid; }
.mkc-hfaq__item { border-block-end: 1px solid #efe3e8; }
.mkc-hfaq__col > .mkc-hfaq__item:first-child { border-block-start: 1px solid #efe3e8; }
@media (min-width: 990px) { .mkc-hfaq__cols[data-cols="2"] .mkc-hfaq__col > .mkc-hfaq__item:first-child { border-block-start: 1px solid #efe3e8; } }
@media (max-width: 989px) { .mkc-hfaq__col + .mkc-hfaq__col > .mkc-hfaq__item:first-child { border-block-start: 0; } }
.mkc-hfaq__item > summary {
  position: relative;
  display: block;
  padding-block: 18px;
  padding-inline-end: 44px;
  list-style: none;
  cursor: pointer;
}
.mkc-hfaq__item > summary::-webkit-details-marker { display: none; }
.mkc-hfaq__item > summary::after {
  content: "";
  position: absolute;
  inset-inline-end: 4px;
  inset-block-start: 50%;
  width: 30px;
  height: 30px;
  margin-block-start: -15px;
  border-radius: 50%;
  background:
    linear-gradient(currentColor, currentColor) center / 12px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 12px no-repeat,
    #fbe6ee;
  color: rgb(var(--color-button));
  transition: transform 0.2s ease;
}
.mkc-hfaq__item[open] > summary::after {
  background:
    linear-gradient(#ffffff, #ffffff) center / 12px 2px no-repeat,
    rgb(var(--color-button));
  transform: rotate(180deg);
}
.mkc-hfaq__item > summary:focus-visible { outline: 2px solid rgb(var(--color-button)); outline-offset: 2px; border-radius: 6px; }
.mkc-hfaq__q { margin: 0; font-size: var(--text-lg); font-weight: 700; line-height: 1.4; color: var(--color-base-black); }
.mkc-hfaq__item > summary:hover .mkc-hfaq__q { color: var(--mkc-accent-text); }
.mkc-hfaq__a { padding-block-end: 18px; padding-inline-end: 44px; font-size: var(--text-md); line-height: 1.65; color: #4f4248; }
.mkc-hfaq__a > * { margin: 0; }
.mkc-hfaq__a > * + * { margin-block-start: 0.6em; }
.mkc-hfaq__a a { color: var(--mkc-accent-text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.mkc-hfaq__a ul { padding-inline-start: 1.2em; list-style: disc; }
.mkc-hfaq__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 24px; }
.mkc-hfaq__btn { min-height: 48px; }
.mkc-hfaq__wa { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; color: #0e733d; text-decoration: none; }
.mkc-hfaq__wa:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .mkc-hfaq__item > summary::after { transition: none; } }
@media (max-width: 640px) {
  .mkc-hfaq { gap: 20px; }
  .mkc-hfaq__q { font-size: var(--text-md); }
  .mkc-hfaq__a { padding-inline-end: 0; }
  .mkc-hfaq__foot { flex-direction: column; }
  .mkc-hfaq__btn { width: 100%; justify-content: center; }
}

/* ---------- Nos marques (sections/mkc-brands.liquid) ---------- */
.mkc-brands-section { background: var(--section-bg-color, #FDF0F5); }
.mkc-brands { position: relative; display: grid; gap: 22px; max-width: 1280px; margin-inline: auto; }
.mkc-brands__head { display: grid; justify-items: center; gap: 8px; text-align: center; }
.mkc-brands__eyebrow {
  margin: 0;
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mkc-accent-text);
}
[dir="rtl"] .mkc-brands__eyebrow { letter-spacing: 0; }
.mkc-brands__title { margin: 0; font-size: clamp(2.4rem, 3vw, 3.4rem); font-weight: 800; letter-spacing: -0.01em; line-height: 1.15; }
.mkc-brands__sub { max-width: 640px; margin: 0; font-size: var(--text-md); line-height: 1.55; color: var(--color-gray-500); }

.mkc-brands__tile {
  display: grid;
  place-items: center;
  width: 168px;
  height: 84px;
  padding: 14px 18px;
  border: 1px solid #f1dce5;
  border-radius: 16px;
  background: #ffffff;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.mkc-brands__tile img { display: block; width: auto; height: auto; max-width: 128px; max-height: 42px; object-fit: contain; }
a.mkc-brands__tile:hover { border-color: rgb(var(--color-button)); box-shadow: 0 8px 22px rgba(91, 31, 58, 0.1); transform: translateY(-2px); }
a.mkc-brands__tile:focus-visible { outline: 2px solid rgb(var(--color-button)); outline-offset: 3px; }
.mkc-brands[data-grayscale] .mkc-brands__tile img { filter: grayscale(1); opacity: 0.75; transition: filter 0.2s ease, opacity 0.2s ease; }
.mkc-brands[data-grayscale] .mkc-brands__tile:hover img { filter: none; opacity: 1; }
.mkc-brands__item { flex: none; list-style: none; }

/* Marquee: two copies of the row slide by their own width, so the loop has no seam. */
.mkc-brands__row {
  display: flex;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.mkc-brands__track {
  display: flex;
  flex: none;
  gap: 14px;
  margin: 0;
  padding: 6px 7px;
  list-style: none;
  animation: mkc-brands-scroll var(--mkc-brands-speed, 45s) linear infinite;
}
.mkc-brands__row[data-row="2"] .mkc-brands__track { animation-direction: reverse; }
[dir="rtl"] .mkc-brands__track { animation-name: mkc-brands-scroll-rtl; }
.mkc-brands__row:hover .mkc-brands__track,
.mkc-brands__row:focus-within .mkc-brands__track,
.mkc-brands[data-paused] .mkc-brands__track { animation-play-state: paused; }
@keyframes mkc-brands-scroll { to { transform: translateX(-100%); } }
@keyframes mkc-brands-scroll-rtl { to { transform: translateX(100%); } }

.mkc-brands__pause {
  justify-self: end;
  margin-block-start: -8px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid #ead0db;
  border-radius: 50%;
  background: #ffffff;
  color: #3b1430;
  cursor: pointer;
}
.mkc-brands__pause[hidden], .mkc-brands__pause svg[hidden] { display: none; }
.mkc-brands__pause svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.mkc-brands__pause [data-icon="play"] path { fill: currentColor; stroke: none; }
.mkc-brands__pause:focus-visible { outline: 2px solid rgb(var(--color-button)); outline-offset: 2px; }

/* Still grid (layout "grid", and for people who reduce motion). */
.mkc-brands__grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 0; padding: 0; list-style: none; }
@media (prefers-reduced-motion: reduce) {
  .mkc-brands__row { flex-wrap: wrap; justify-content: center; -webkit-mask-image: none; mask-image: none; }
  .mkc-brands__track { flex-wrap: wrap; justify-content: center; animation: none; }
  .mkc-brands__track[aria-hidden="true"] { display: none; }
  .mkc-brands__pause { display: none !important; }
  .mkc-brands__tile { transition: none; }
}
.mkc-brands__foot { display: flex; justify-content: center; }
@media (max-width: 640px) {
  .mkc-brands { gap: 16px; }
  .mkc-brands__tile { width: 132px; height: 68px; padding: 10px 14px; border-radius: 14px; }
  .mkc-brands__tile img { max-width: 100px; max-height: 34px; }
  .mkc-brands__track { gap: 10px; }
  .mkc-brands__pause { width: 36px; height: 36px; }
  .mkc-brands__grid { gap: 10px; }
}
