/* ==========================================================================
   Maha Safi — thème boutique : base, en-tête, menu mobile, panier, pied de page
   Toutes les classes sont préfixées « ms- » pour ne pas entrer en conflit avec
   l'ancien thème (Molla / Bootstrap) encore chargé par les pages Fashion.
   ========================================================================== */

:root {
  --ms-black: #000000;
  --ms-ink: #1a1a1a;
  --ms-graphite: #3d3d3d;
  --ms-muted: #5e5e5e;
  --ms-line: #e0e0e0;
  --ms-soft: #ffffff;   /* fonds de section : le blanc du site (pas de gris) */
  --ms-cream: #fbf7f3;  /* blanc cassé du site mahasafi.com (pied de page) */
  --ms-white: #ffffff;
  --ms-serif: 'Panama Regular', 'Bodoni Moda', 'Times New Roman', serif;   /* titres de la page Fashion */
  --ms-sans: 'ABC Diatype', 'Inter Tight', 'Helvetica Neue', Arial, sans-serif;
  --ms-page: #fbf7f3;   /* fond de la page Fashion */
  --ms-heading: #333333;
  --ms-header-h: 92px;
  --ms-gutter: 40px;
  --ms-ease: cubic-bezier(.7, 0, .2, 1);
}

@media (max-width: 991px) {
  :root { --ms-header-h: 64px; --ms-gutter: 16px; }
}

.ms-body { margin: 0; font-family: var(--ms-sans); color: var(--ms-black); background: var(--ms-page); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
.ms-body *, .ms-body *::before, .ms-body *::after { box-sizing: border-box; }
.ms-body img { max-width: 100%; }
.ms-body a:focus-visible, .ms-body button:focus-visible, .ms-body input:focus-visible, .ms-body select:focus-visible { outline: 2px solid var(--ms-black); outline-offset: 3px; }
.ms-sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.ms-skip { position: absolute; left: 8px; top: -60px; z-index: 2000; background: var(--ms-black); color: var(--ms-white) !important; padding: 10px 16px; font-size: 13px; }
.ms-skip:focus { top: 8px; }

/* Typographie et boutons partagés ------------------------------------------ */
.ms-kicker { font-family: var(--ms-sans); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--ms-muted); }
.ms-title { font-family: var(--ms-serif); font-weight: 400; line-height: 1.12; margin: 0; color: var(--ms-heading); letter-spacing: .1em; text-transform: uppercase; }
/* Sur fond sombre, les titres restent clairs. */
.ms-hero .ms-title, .ms-beauty .ms-title, .ms-relooking .ms-title, .ms-card .ms-title { color: inherit; }
.ms-title--xl { font-size: clamp(30px, 4.4vw, 70px); }
.ms-title--lg { font-size: clamp(26px, 3.2vw, 46px); }
.ms-title--md { font-size: clamp(20px, 2vw, 28px); }
.ms-btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 0 32px; border: 1px solid var(--ms-black); background: var(--ms-black); color: var(--ms-white) !important; font: 500 12px/1 var(--ms-sans); letter-spacing: .16em; text-transform: uppercase; text-decoration: none !important; cursor: pointer; transition: background .25s ease, color .25s ease; }
.ms-btn:hover { background: var(--ms-white); color: var(--ms-black) !important; }
.ms-btn--light { background: var(--ms-white); color: var(--ms-black) !important; border-color: var(--ms-white); }
.ms-btn--light:hover { background: transparent; color: var(--ms-white) !important; }
.ms-btn--outline { background: transparent; color: var(--ms-black) !important; }
.ms-btn--outline:hover { background: var(--ms-black); color: var(--ms-white) !important; }
.ms-btn--block { width: 100%; }
.ms-btn[disabled] { opacity: .5; cursor: not-allowed; }
.ms-btn svg { flex-shrink: 0; }
.ms-link { font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: inherit !important; text-decoration: none !important; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.ms-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; position: relative; text-decoration: none !important; }
.ms-badge { position: absolute; right: 4px; top: 4px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--ms-black); color: var(--ms-white); font: 600 10px/16px var(--ms-sans); text-align: center; }

/* En-tête ------------------------------------------------------------------- */
.ms-header { position: sticky; top: 0; z-index: 900; height: var(--ms-header-h); background: var(--ms-white); border-bottom: 1px solid var(--ms-line); color: var(--ms-black); transition: background .25s ease, border-color .25s ease, color .25s ease; }
.ms-header--overlay { margin-bottom: calc(-1 * var(--ms-header-h)); }
/* Toutes les pages : barre de menu transparente comme sur l'accueil ; au défilement, léger voile crème
   (sinon le contenu qui passe dessous rend le menu illisible) */
.ms-header:not(.ms-header--overlay) { background: transparent; border-bottom-color: transparent; }
.ms-header:not(.ms-header--overlay).is-scrolled { background: rgba(251, 247, 243, .82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.ms-header--overlay.is-solid { background: transparent; border-bottom-color: transparent; }   /* accueil : reste transparent au défilement, comme sur mahasafi.com */
.ms-header--overlay:not(.is-solid) { background: transparent; border-bottom-color: transparent; color: var(--ms-white); }
.ms-header--overlay:not(.is-solid) .ms-nav__link, .ms-header--overlay:not(.is-solid) .ms-icon-btn { text-shadow: 0 1px 3px rgba(0, 0, 0, .35); }
.ms-header--overlay:not(.is-solid) .ms-badge { background: var(--ms-white); color: var(--ms-black); }
.ms-header__inner { height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 24px; padding: 0 var(--ms-gutter); }
.ms-header__logo { display: block; line-height: 0; }
.ms-header__logo img { height: 60px; width: auto; display: block; }
.ms-header__logo .ms-logo--white { display: none; }
.ms-header--overlay:not(.is-solid) .ms-logo--black { display: none; }
.ms-header--overlay:not(.is-solid) .ms-logo--white { display: block; }
.ms-header__actions { display: flex; justify-content: flex-end; align-items: center; gap: 2px; }
.ms-header__burger { display: none !important; }

.ms-nav { display: flex; align-items: center; gap: 28px; margin: 0; padding: 0; list-style: none; }
.ms-nav__item { position: relative; }
.ms-nav__link { display: inline-flex; align-items: center; gap: 6px; padding: 14px 0; font: 500 10px/1 var(--ms-sans); letter-spacing: .12em; text-transform: uppercase; color: inherit !important; text-decoration: none !important; border: 0; border-bottom: 1px solid transparent; background: none; cursor: pointer; }
/* 5 entrées (avec Haute Couture) : une seule ligne entre 992 et 1279 px */
@media (max-width: 1279px) { .ms-nav { gap: 18px; } .ms-nav__link { letter-spacing: .08em; white-space: nowrap; } }
@media (max-width: 1099px) { .ms-nav { gap: 13px; } .ms-nav__link { letter-spacing: .05em; } }
.ms-nav__link[aria-current="page"], .ms-nav__link:hover { border-bottom-color: currentColor; }
.ms-nav__panel { position: absolute; left: -24px; top: 100%; min-width: 720px; padding: 24px; background: var(--ms-white); color: var(--ms-black); border: 1px solid var(--ms-line); display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 0 32px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s ease, transform .2s ease, visibility .2s; text-shadow: none; }
.ms-nav__item:hover .ms-nav__panel, .ms-nav__item.is-open .ms-nav__panel, .ms-nav__item:focus-within .ms-nav__panel { opacity: 1; visibility: visible; transform: none; }
.ms-nav__panel a { display: block; padding: 8px 0; font: 500 10px/1.3 var(--ms-sans); letter-spacing: .12em; text-transform: uppercase; color: #8a8a8a !important; text-decoration: none !important; transition: color .2s ease; }
.ms-nav__panel a:hover, .ms-nav__panel a:focus-visible { color: var(--ms-black) !important; }
.ms-mega__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--ms-line); margin-bottom: 6px; padding-bottom: 12px; }
.ms-nav__panel .ms-nav__all { font-weight: 600; padding: 0; color: #8a8a8a !important; } /* gris comme les catégories, noir au survol */
.ms-nav__panel .ms-nav__all:hover, .ms-nav__panel .ms-nav__all:focus-visible { color: var(--ms-black) !important; }
.ms-mega__featured { display: flex; gap: 8px; }
.ms-nav__panel .ms-mega__pill { padding: 7px 12px; border: 1px solid #c9c9c9; color: #8a8a8a !important; font-weight: 600; line-height: 1; white-space: nowrap; transition: background .2s ease, color .2s ease; }
.ms-nav__panel .ms-mega__pill:hover, .ms-nav__panel .ms-mega__pill:focus-visible { background: var(--ms-black); border-color: var(--ms-black); color: var(--ms-white) !important; }
.ms-mega__links { display: flex; flex-direction: column; }
.ms-mega__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.ms-mega__media { display: block; padding: 0 !important; aspect-ratio: 13 / 18; overflow: hidden; background: var(--ms-cream); }
.ms-mega__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .25s ease; }
.ms-mega__media img.is-swapping { opacity: .2; }
.ms-nav__panel .ms-nav__extra { display: flex; gap: 24px; border-top: 1px solid var(--ms-line); margin-top: 8px; padding-top: 8px; }

/* Recherche */
.ms-search { position: fixed; inset: 0 0 auto 0; z-index: 1100; background: var(--ms-white); border-bottom: 1px solid var(--ms-line); padding: 28px var(--ms-gutter); transform: translateY(-110%); transition: transform .35s var(--ms-ease); }
.ms-search.is-open { transform: none; }
.ms-search form { display: flex; gap: 12px; max-width: 900px; margin: 0 auto; align-items: center; }
.ms-search input { flex: 1; min-width: 0; min-height: 52px; border: 0; border-bottom: 1px solid var(--ms-black); font: 400 22px var(--ms-serif); padding: 0 4px; background: transparent; color: var(--ms-black); border-radius: 0; }
.ms-search input:focus { outline: none; }

/* Menu mobile */
.ms-drawer { position: fixed; top: 0; bottom: 0; z-index: 1200; width: min(420px, 100%); background: var(--ms-white); color: var(--ms-black); overflow-y: auto; transition: transform .4s var(--ms-ease), visibility .4s; display: flex; flex-direction: column; visibility: hidden; }
.ms-drawer--left { left: 0; transform: translateX(-100%); }
.ms-drawer.is-open { transform: none; visibility: visible; }
.ms-drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--ms-line); }
.ms-drawer__head img { height: 44px; }
.ms-drawer__body { padding: 8px 20px 32px; }
.ms-drawer__list { list-style: none; margin: 0; padding: 0; }
.ms-drawer__list > li { border-bottom: 1px solid var(--ms-line); }
.ms-drawer__list a, .ms-drawer__list summary { display: flex; justify-content: space-between; align-items: center; min-height: 52px; font: 500 13px/1.2 var(--ms-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ms-black) !important; text-decoration: none !important; cursor: pointer; list-style: none; }
.ms-drawer__list summary::-webkit-details-marker { display: none; }
.ms-drawer__list details[open] summary svg { transform: rotate(180deg); }
.ms-drawer__sub { list-style: none; margin: 0 0 12px; padding: 0; }
.ms-drawer__thumb { width: 44px; height: 56px; object-fit: cover; flex-shrink: 0; margin-right: 14px; background: var(--ms-cream); display: inline-block; }
.ms-drawer__sub a { justify-content: flex-start; gap: 0; padding: 4px 0; min-height: 40px; font: 500 12px/1.2 var(--ms-sans); letter-spacing: .12em; text-transform: uppercase; color: #8a8a8a !important; }
.ms-drawer__sub li:first-child a { color: var(--ms-black) !important; font-weight: 600; }
.ms-drawer__meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 24px; font-size: 12px; letter-spacing: .1em; }
.ms-drawer__meta a { color: var(--ms-black) !important; text-decoration: none !important; padding: 10px 0; }
.ms-drawer__meta a.is-active { font-weight: 700; text-decoration: underline !important; text-underline-offset: 4px; }
.ms-overlay { position: fixed; inset: 0; z-index: 1150; background: rgba(0, 0, 0, .45); opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s; }
.ms-overlay.is-open { opacity: 1; visibility: visible; }
body.ms-locked { overflow: hidden; }

@media (max-width: 991px) {
  .ms-header__inner { grid-template-columns: 88px minmax(0, 1fr) 88px; gap: 0; padding: 0 12px; }
  .ms-header__nav { display: none; }
  .ms-header__burger { display: inline-flex !important; }
  .ms-header__logo { justify-self: center; }
  .ms-header__logo img { height: 46px; }
  .ms-hide-mobile { display: none !important; }
}

/* Panier (tiroir) — garde la classe historique .cart-menu-container ---------- */
.ms-body .cart-menu-container.ms-cart { position: fixed; top: 0; bottom: 0; right: -460px; z-index: 1300; width: 100%; max-width: 440px; visibility: hidden; background: var(--ms-white); color: var(--ms-black); overflow-y: auto; box-shadow: -8px 0 30px rgba(0, 0, 0, .12); transition: right .4s var(--ms-ease), visibility .4s; display: flex; flex-direction: column; padding: 0; }
.ms-cart__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 14px 20px; border-bottom: 1px solid var(--ms-line); }
.ms-cart__title { font: 400 24px var(--ms-serif); margin: 0; color: var(--ms-black); }
.ms-cart__items { flex: 1; padding: 0 20px; }
.ms-cart__look { margin: 16px 0 0; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ms-graphite); }
.ms-cart__item { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--ms-line); }
.ms-cart__item img { width: 84px; height: 110px; object-fit: cover; display: block; background: var(--ms-soft); }
.ms-cart__name { font-size: 13px; line-height: 1.35; margin: 0 0 4px; color: var(--ms-black); }
.ms-cart__meta { font-size: 12px; color: var(--ms-muted); line-height: 1.6; }
.ms-cart__swatch { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 1px solid #ccc; vertical-align: -2px; margin-left: 4px; object-fit: cover; }
.ms-cart__controls { display: flex; align-items: center; gap: 16px; margin-top: 10px; }
.ms-cart__controls form { margin: 0; }
.ms-cart__controls input { width: 64px; height: 34px; border: 1px solid var(--ms-black); text-align: center; font: 500 13px var(--ms-sans); border-radius: 0; }
.ms-cart__remove { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ms-black) !important; text-decoration: underline !important; text-underline-offset: 3px; background: none; border: 0; padding: 8px 0; cursor: pointer; }
.ms-cart__price { font-size: 13px; font-weight: 600; white-space: nowrap; }
.ms-cart__foot { padding: 20px; border-top: 1px solid var(--ms-line); display: grid; gap: 10px; background: var(--ms-white); position: sticky; bottom: 0; }
.ms-cart__total { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.ms-cart__empty { padding: 40px 20px; display: grid; gap: 20px; text-align: center; font-size: 14px; letter-spacing: .06em; }

/* Devises et langues : à droite, au milieu, toujours visibles --------------- */
.ms-rail { position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 850; display: flex; flex-direction: column; padding: 4px; background: rgba(255, 255, 255, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border: 1px solid rgba(0, 0, 0, .08); border-right: 0; }
.ms-rail a { display: flex; align-items: center; justify-content: center; width: 46px; min-height: 34px; font: 500 11px var(--ms-sans); letter-spacing: .1em; color: var(--ms-muted) !important; text-decoration: none !important; }
.ms-rail a:hover { color: var(--ms-black) !important; }
.ms-rail a.is-active { color: var(--ms-black) !important; font-weight: 700; text-decoration: underline !important; text-underline-offset: 4px; }
.ms-rail__sep { height: 1px; background: rgba(0, 0, 0, .15); margin: 4px 10px; }
@media (max-width: 991px) {
  .ms-rail { background: transparent; border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; padding: 2px; }
  .ms-rail a { width: 44px; min-height: 34px; color: var(--ms-black) !important; font-weight: 500; text-shadow: 0 0 3px #fff, 0 0 6px #fff; }
  .ms-rail a.is-active { background: transparent; color: var(--ms-black) !important; font-weight: 700; text-decoration: underline !important; text-underline-offset: 4px; }
  .ms-rail__sep { background: var(--ms-black); margin: 3px 12px; }
}

/* Boutons flottants --------------------------------------------------------- */
.ms-float { position: fixed; right: 20px; bottom: 20px; z-index: 860; display: flex; flex-direction: column; gap: 12px; }
.ms-float a { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; position: relative; text-decoration: none !important; box-shadow: 0 4px 14px rgba(0, 0, 0, .12); }
.ms-float__cart { background: var(--ms-black); color: var(--ms-white) !important; }
.ms-float__wa { background: #25d366; color: #ffffff !important; border: 0; box-shadow: 0 4px 14px rgba(37, 211, 102, .35) !important; }
.ms-float__wa:hover { background: #1ebe5b; }
.ms-float .ms-badge { right: -2px; top: -2px; background: var(--ms-white); color: var(--ms-black); border: 1px solid var(--ms-black); }
@media (max-width: 991px) { .ms-float { right: 14px; bottom: 16px; } .ms-float__cart { display: none !important; } }

/* Pied de page (contenu et aspect du pied de page d'origine) ---------------- */
.ms-footer { background: #222222; color: #9a9a9a; font-size: 15px; line-height: 1.75; }
.ms-footer__inner { max-width: 1750px; margin: 0 auto; padding: 0 76px; border-top: 1px solid #333; }
.ms-footer__grid { display: grid; grid-template-columns: 1.5fr .85fr .85fr; gap: 48px; padding: 92px 0 72px; }
.ms-footer__col { min-width: 0; }
.ms-footer__col h2 { font: 600 17px/1.3 var(--ms-sans); letter-spacing: .04em; text-transform: none; color: #ffffff; margin: 8px 0 26px; }
.ms-footer__col ul { list-style: none; margin: 0; padding: 0; }
.ms-footer__col li { margin-bottom: 10px; }
.ms-footer a { color: #9a9a9a !important; text-decoration: none !important; transition: color .2s ease; }
.ms-footer a:hover { color: #ffffff !important; }
.ms-footer__logo { display: block; width: 122px; height: auto; margin-bottom: 36px; }
.ms-footer__about { margin: 0 0 56px; max-width: 590px; line-height: 2.1; }
.ms-footer__meta { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 24px 42px; }
.ms-footer__label { display: block; font: 600 14px/1.3 var(--ms-sans); color: #cfcfcf; margin-bottom: 12px; }
.ms-footer .ms-footer__call { display: block; font: 400 25px/1.1 var(--ms-sans); color: #ffffff !important; letter-spacing: -.01em; }
.ms-footer__payments { height: 24px; width: auto; max-width: 100%; display: block; }
.ms-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 30px 0 34px; border-top: 1px solid #333; }
.ms-footer__bottom p { margin: 0; font-size: 17px; color: #9a9a9a; }
.ms-footer__bottom p a { text-decoration: underline !important; text-underline-offset: 5px; }
.ms-footer__social { display: flex; align-items: center; gap: 20px; }
.ms-footer__social > span { font: 600 16px var(--ms-sans); color: #9a9a9a; }
.ms-footer__socials { display: flex; gap: 18px; }
.ms-footer__socials a { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; }
.ms-footer .ms-footer__social--facebook { color: #8a6cf0 !important; }
.ms-footer .ms-footer__social--instagram { color: #e4579d !important; }
.ms-footer .ms-footer__social--tiktok { color: #cfcfcf !important; }
.ms-footer__socials a:hover { opacity: .75; }
.ms-footer__follow { margin-top: 22px; }
.ms-footer__follow .ms-footer__socials a { width: 38px; height: 38px; border: 1px solid #3a3a3a; border-radius: 50%; }
/* Typographie du pied de page = celle du menu de l'en-tête : 10 px, capitales, lettres espacées */
.ms-footer, .ms-footer__about, .ms-footer__col li, .ms-footer__col h2, .ms-footer__label,
.ms-footer .ms-footer__call, .ms-footer__bottom p { font: 500 10px/2 var(--ms-sans); letter-spacing: .12em; text-transform: uppercase; }
.ms-footer__col h2 { font-weight: 600; color: #ffffff; margin: 8px 0 20px; }
.ms-footer__label { color: #cfcfcf; margin-bottom: 8px; }
.ms-footer .ms-footer__call { color: #ffffff !important; }
.ms-footer__col li { margin-bottom: 4px; }
.ms-footer__about { line-height: 2.2; margin-bottom: 40px; }
.ms-footer__col a[href^="mailto:"] { text-transform: none; }
@media (max-width: 1199px) { .ms-footer__inner { padding: 0 40px; } .ms-footer__grid { gap: 32px; } }
@media (max-width: 991px) {
  .ms-footer__inner { padding: 0 var(--ms-gutter); }
  .ms-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; padding: 56px 0 40px; }
  .ms-footer__brand { grid-column: 1 / -1; }
  .ms-footer__about { margin-bottom: 32px; }
  .ms-footer__bottom { padding-bottom: 96px; }
  .ms-footer__bottom p { font-size: 10px; }
}
@media (max-width: 575px) {
  .ms-footer__grid { grid-template-columns: 1fr; }
  .ms-footer .ms-footer__call { font-size: 10px; }
  .ms-footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* Bande motif MS ------------------------------------------------------------ */
.ms-band { background: #a6a6a6; height: 44px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.ms-band img { height: 28px; width: auto; max-width: none; flex-shrink: 0; filter: invert(1); opacity: .5; }
@media (max-width: 991px) { .ms-band { height: 30px; } .ms-band img { height: 18px; } }

/* Page simple (contenu éditorial, bientôt disponible…) ---------------------- */
.ms-page { padding: 56px var(--ms-gutter) 72px; }
.ms-page__head { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; margin-bottom: 40px; }
.ms-flash { max-width: 900px; margin: 0 auto 24px; padding: 14px 18px; border: 1px solid var(--ms-black); font-size: 14px; }
.ms-flash--error { border-color: #b00020; color: #b00020; }

@media (prefers-reduced-motion: reduce) {
  .ms-body *, .ms-body *::before, .ms-body *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Protection contre les styles des anciennes pages (#cart-button, .cart-count2, .cart-count…) */
.ms-body .ms-float a#cart-button { position: relative; inset: auto; bottom: auto; right: auto; padding: 0; margin: 0; width: 56px; height: 56px; border-radius: 50%; background: var(--ms-black); color: var(--ms-white) !important; font-size: inherit; z-index: auto; }
.ms-body .ms-float a#cart-button .cart-count2, .ms-body .ms-header .cart-count { position: absolute; display: block; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; font: 600 10px/16px var(--ms-sans); text-align: center; }
.ms-body .ms-float a#cart-button .cart-count2 { right: -2px; top: -2px; left: auto; background: var(--ms-white); color: var(--ms-black); border: 1px solid var(--ms-black); }
.ms-body .ms-header .cart-count { right: 4px; top: 4px; left: auto; }
.ms-body .ms-badge[hidden] { display: none !important; }
.ms-body .ms-header a, .ms-body .ms-footer a, .ms-body .ms-drawer a, .ms-body .ms-rail a { transition: none; }
.ms-body .ms-header { line-height: 1.4; } .ms-body .ms-footer { line-height: 1.7; }

/* Pages encore sur l'ancien thème : le contenu garde sa typographie d'origine (style.css). */
.ms-legacy #main { font: normal 300 1.4rem/1.86 "ABC Diatype", sans-serif; color: #666; }

/* Panier : sélecteur de quantité − / + (même rendu sur toutes les pages) */
.ms-qty { display: inline-flex; align-items: stretch; width: 160px; height: 44px; border: 1px solid #d0d0d0; background: var(--ms-white); }
.ms-qty__btn { flex: 0 0 44px; display: flex; align-items: center; justify-content: center; border: 0; background: transparent; color: var(--ms-black); font: 300 20px/1 var(--ms-sans); cursor: pointer; padding: 0; }
.ms-qty__btn:hover { background: #f4f1ec; }
.ms-qty .mini-quantity-input { flex: 1 1 auto; width: 100%; height: 100%; min-width: 0; margin: 0; box-shadow: none; border: 0 !important; background: transparent; text-align: center; font: 500 15px var(--ms-sans); color: #555; padding: 0; -moz-appearance: textfield; }
.ms-qty .mini-quantity-input:focus { outline: none; }
.ms-qty:focus-within { border-color: var(--ms-black); }
/* Même sélecteur − / + sur la page Panier */
.ms-qty--cart { width: 132px; height: 42px; }
.ms-qty--cart .ms-qty__btn { flex-basis: 40px; }
.ms-qty--cart .ms-qty__btn:disabled { opacity: .3; cursor: default; background: transparent; }
.ms-qty .ms-qty__input { flex: 1 1 auto; width: 100% !important; height: 100% !important; min-width: 0; margin: 0; box-shadow: none; border: 0 !important; background: transparent; text-align: center; font: 500 15px var(--ms-sans); color: #555; padding: 0; }
.ms-qty .ms-qty__input:focus { outline: none; }

/* Bouton Retour (sous l'en-tête, pages intérieures) */
.ms-backbar { padding: 14px var(--ms-gutter) 0; }
.ms-back { display: inline-flex; align-items: center; gap: 8px; font: 500 11px/1 var(--ms-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ms-black) !important; text-decoration: none !important; padding: 8px 0; }
.ms-back:hover { text-decoration: underline !important; text-underline-offset: 4px; }
@media (max-width: 767px) { .ms-backbar { padding-top: 10px; } }

/* Descriptions produit : listes à puces / numérotées visibles (saisies dans l'admin ou par l'IA) */
.product-desc-content ul { list-style: disc outside; padding-left: 1.4em; margin: 0 0 1em; }
.product-desc-content ol { list-style: decimal outside; padding-left: 1.4em; margin: 0 0 1em; }
.product-desc-content li { display: list-item; margin: .25em 0; }

/* ---------- Choix de taille et de couleur, même rendu partout (comme les cartes de la page Fashion) ----------
   Tailles : petites cases bordées de noir, la taille choisie en noir. Couleurs : pastilles rondes de 30 px. */
.ms-chips { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.ms-chip { min-width: 28px; height: 26px; padding: 0 7px; border: 1px solid #000; border-radius: 0; background: #fff; color: #555; font: 400 12px/24px var(--ms-sans); letter-spacing: 0; text-transform: none; cursor: pointer; transition: background .15s, color .15s; }
.ms-chip:hover { color: #000; }
.ms-chip.is-on { background: #000; color: #fff; }
.ms-chip:disabled { opacity: .35; cursor: not-allowed; text-decoration: line-through; }
.ms-chip:focus-visible { outline: 2px solid #000; outline-offset: 2px; }
.ms-chips.is-error .ms-chip { border-color: #dc3545; }
.ms-chips-src { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; border: 0 !important; }

/* Haute Couture : badge et prix « À partir de … » */
.ms-hc-badge { display: inline-block; margin: 0 0 6px; padding: 0; border: 0; color: var(--ms-black); font: 600 13px/1.3 var(--ms-sans); letter-spacing: .24em; text-transform: uppercase; } /* titre « HAUTE COUTURE », sans cadre ni couleur */
.ms-hc-from { white-space: nowrap; } /* même style que le prix normal */
.ms-hc-from small { font-size: .78em; font-weight: 400; letter-spacing: .02em; opacity: .7; margin-right: 1px; }
/* Cartes produit Haute Couture : titre et « à partir de … » sur la même ligne (titre coupé par « … ») */
.product-body:has(.ms-hc-from) { display: flex !important; align-items: center; justify-content: space-between; gap: 8px; }
.product-body:has(.ms-hc-from)::after { content: none; }
.product-body:has(.ms-hc-from) > .product-title { float: none !important; width: auto !important; flex: 1 1 auto; min-width: 0; margin: 0; }
.product-body:has(.ms-hc-from) > .product-price { float: none !important; flex: 0 0 auto; margin: 0 !important; padding-top: 0 !important; padding-bottom: 0 !important; align-self: center; line-height: 1.2; }
.product-price:has(.ms-hc-badge) { flex-direction: column; align-items: center; }
.product-price .ms-hc-badge { display: block; width: max-content; margin: 0 auto 8px; }
/* Haute Couture « À partir de … » : même taille et style que le prix normal */

/* Bijoux : une rangée de cases par option (Pendentif, Chaîne…) */
.ms-chips--combo { flex-direction: column; align-items: stretch; gap: 8px; }
.ms-chips__group { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.ms-chips__label { flex: 0 0 100%; font: 500 10px/1.2 var(--ms-sans); letter-spacing: .14em; text-transform: uppercase; color: #777; }
.ms-chip { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Guide des tailles (fiche produit) */
.ms-sg-open { display: inline-flex; align-items: center; gap: 8px; margin: 10px auto 0; padding: 4px 0; border: 0; border-bottom: 1px solid currentColor; background: transparent; color: #111; font: 500 11px/1.4 var(--ms-sans); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
.ms-sg { width: min(860px, calc(100vw - 24px)); max-height: calc(100vh - 32px); padding: 32px 36px; border: 0; background: var(--ms-page, #faf7f2); color: #111; overflow: auto; box-shadow: 0 30px 80px rgba(0, 0, 0, .25); }
.ms-sg::backdrop { background: rgba(17, 17, 17, .55); }
.ms-sg__close { position: absolute; top: 12px; right: 16px; border: 0; background: transparent; font: 300 30px/1 var(--ms-sans); cursor: pointer; color: #111; }
.ms-sg__kicker { display: block; font: 500 10px var(--ms-sans); letter-spacing: .2em; text-transform: uppercase; color: #8a7a62; text-align: center; }
.ms-sg__title { margin: 6px 0 16px; font: 400 30px/1.1 var(--ms-serif); letter-spacing: .08em; text-transform: uppercase; text-align: center; }
.ms-sg__sizes { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-bottom: 18px; }
.ms-sg__body { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 28px; align-items: center; }
.ms-sg__figure { background: #fff; border: 1px solid #eee3d3; padding: 10px; }
.ms-sg__legend { list-style: none; margin: 0; padding: 0; }
.ms-sg__legend li { text-align: left; display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid #e8e1d6; font: 400 14px var(--ms-sans); cursor: default; }
.ms-sg__dot { width: 22px; height: 22px; color: #b3253b; font: 700 15px/22px var(--ms-sans); text-align: left; } /* repère A, B, C… comme sur la silhouette */
.ms-sg__dot--plain { background: transparent; border: 1px solid #bbb; }
.ms-sg__val { font: 600 16px var(--ms-sans); white-space: nowrap; }
.ms-sg__tablewrap { margin-top: 22px; overflow-x: auto; }
.ms-sg__table { width: 100%; border-collapse: collapse; font: 400 13px var(--ms-sans); text-align: center; }
.ms-sg__table th, .ms-sg__table td { padding: 9px 10px; border-bottom: 1px solid #e8e1d6; white-space: nowrap; }
.ms-sg__table thead th { font: 600 10px var(--ms-sans); letter-spacing: .1em; text-transform: uppercase; color: #6b5d48; }
.ms-sg__table tr.is-on th, .ms-sg__table tr.is-on td { background: #111; color: #fff; }
.ms-sg__note { margin: 12px 0 0; font-size: 12px; color: #777; text-align: center; }
@media (max-width: 700px) {
  .ms-sg { padding: 26px 16px; }
  .ms-sg__body { grid-template-columns: 1fr; gap: 14px; }
  .ms-sg__figure { max-width: 190px; margin: 0 auto; }
  .ms-sg__title { font-size: 24px; }
}
.ms-sg-open-wrap { flex: 0 0 100%; text-align: center; }
.details-row-size:has(.ms-sg-open-wrap) { flex-wrap: wrap; }
.ms-sg { text-align: left; }

/* Cartes produit : tailles de bijoux regroupées par option (Pendentif / Chaîne) */
.product-size.has-pcombo { display: block !important; text-align: left; }
.product-size.has-pcombo > a.ms-pcombo-src { display: none !important; }
.ms-pcombo { display: flex; flex-direction: column; gap: 4px; width: 100%; padding: 0 10px; box-sizing: border-box; }
.ms-pcombo__row { display: flex; align-items: center; justify-content: safe center; gap: 4px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.ms-pcombo__row::-webkit-scrollbar { display: none; }
.ms-pcombo__name { flex: 0 0 auto; min-width: 64px; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: inherit; opacity: .8; }
.ms-pcombo button { flex: 0 0 auto; border: 1px solid currentColor; background: transparent; color: inherit; font-size: 11px; line-height: 1; padding: 5px 7px; white-space: nowrap; cursor: pointer; border-radius: 0; }
.ms-pcombo button.is-on { background: #111; border-color: #111; color: #fff; }

/* Cartes produit : beaucoup de tailles (36 … 54, Sur Mesure) → plusieurs lignes centrées, cases compactes */
.product .product-size:not(.has-pcombo) { flex-wrap: wrap; justify-content: center; gap: 4px; padding: 0 10px; }
.product .product-size:not(.has-pcombo) > a { margin: 0 !important; min-width: 30px; width: auto !important; height: 26px !important; padding: 0 6px !important; font-size: 11px !important; line-height: 1 !important; white-space: nowrap; display: inline-flex !important; align-items: center; justify-content: center; }

/* Cartes Haute Couture : le titre ne déborde jamais sur le prix ; sur téléphone, prix sous le titre */
.product-body:has(.ms-hc-from) > .product-title { overflow: hidden; }
.product-body:has(.ms-hc-from) > .product-title a { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 767px) {
  .product-body:has(.ms-hc-from) { flex-direction: column; align-items: flex-start !important; justify-content: flex-start; gap: 3px; }
  .product-body:has(.ms-hc-from) > .product-title, .product-body:has(.ms-hc-from) > .product-price { width: 100% !important; text-align: left; }
  .product-body:has(.ms-hc-from) > .product-price { align-self: flex-start; justify-content: flex-start !important; text-align: left !important; float: none !important; }
  .ms-hc-from { white-space: normal; }
}
/* Téléphone : la barre devises / langues ne recouvre plus les produits (choix disponibles dans le menu ☰) */
@media (max-width: 767px) { .ms-rail { display: none !important; } }
/* Téléphone : cartes trop étroites pour l'ajout rapide (couleurs, tailles, boutons) qui débordait sur le titre ;
   un appui ouvre la fiche produit, où l'on choisit la taille */
@media (max-width: 767px) { .product .product-action { display: none !important; } }
