/* Shop category filters + couleur / taille */
.woocommerce-products-header {
  margin-bottom: 4px;
}
.woocommerce-breadcrumb {
  font-size: 12px;
  letter-spacing: 0.02em;
  color: #8a8a8a;
}
.woocommerce-breadcrumb a {
  color: #8a8a8a;
  text-decoration: none;
}
.woocommerce-breadcrumb a:hover {
  color: #212121;
}
.woocommerce-products-header__title.page-title {
  margin: 10px 0 18px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  font-size: 42px;
  letter-spacing: 0.02em;
}

.hm-cat-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.hm-cat-filters__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid #e6d7c3;
  border-radius: 999px;
  background: #fff;
  color: #5c4e3e !important;
  text-decoration: none !important;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.hm-cat-filters__item:hover {
  background: #f7f1e8;
  border-color: #8a6a3d;
  color: #8a6a3d !important;
}
.hm-cat-filters__item.is-active,
.hm-cat-filters__item.is-active:hover {
  background: #8a6a3d;
  border-color: #8a6a3d;
  color: #fff !important;
}

@media (max-width: 767px) {
  .hm-cat-filters {
    flex-wrap: nowrap;
    gap: 8px;
    margin-right: -16px;
    padding-bottom: 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .hm-cat-filters::-webkit-scrollbar {
    display: none;
  }
  .hm-cat-filters__item {
    flex: 0 0 auto;
    padding: 0 14px;
  }
}

.hm-attr-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid #eee;
}
.hm-attr-filters__field select {
  appearance: none;
  -webkit-appearance: none;
  min-width: 168px;
  height: 42px;
  padding: 0 36px 0 14px;
  border: 1px solid #e6d7c3;
  border-radius: 999px;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238a6a3d' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  color: #5c4e3e;
  font-family: "Cormorant Garamond", Georgia, serif !important;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}
.hm-attr-filters__field select:hover {
  border-color: #8a6a3d;
}
.hm-attr-filters__field select:focus-visible {
  outline: 2px solid #212121;
  outline-offset: 2px;
}
.hm-attr-filters__field.is-set select {
  border-color: #8a6a3d;
  background-color: #f7f1e8;
}
.hm-attr-filters__reset {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 500;
  color: #8a6a3d !important;
  text-decoration: underline !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Accueil slider mobile */
@media (max-width: 767px) {
  .home .n2-ss-slider,
  .home [data-ssid] {
    max-height: 62vh !important;
  }
}

/* Checkout / merci */
.hm-checkout-note {
  margin: 0 0 20px;
  padding: 14px 16px;
  background: #f7f4ef;
  border: 1px solid rgba(171, 140, 82, 0.35);
  color: #4a4338;
  font-size: 14px;
  line-height: 1.5;
}
.hm-thankyou-box {
  margin: 0 0 28px;
  padding: 22px 20px;
  background: #f7f4ef;
  border: 1px solid rgba(171, 140, 82, 0.35);
}
.hm-thankyou-box__title {
  margin: 0 0 8px;
  font-size: 15px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: #212121;
}
.hm-thankyou-box__list {
  margin: 12px 0 16px;
  padding-left: 1.1em;
  color: #646464;
}
.hm-thankyou-box__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  background: #25d366;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
}

/* Trust / promo bar — couleurs Hijabaya + marquee mobile */
.hm-trust-bar {
  background: #f5f5f5;
  color: #5a5a5a;
  font-family: Outfit, system-ui, sans-serif;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
  text-align: center;
  border: 0;
  border-bottom: 1px solid #e6e6e6;
  box-shadow: none;
  overflow: hidden;
}
.hm-trust-bar__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 11px 16px;
  overflow: hidden;
}
.hm-trust-bar__track {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}
.hm-trust-bar__text {
  margin: 0;
  font-size: inherit;
  line-height: 1.45;
  color: #5a5a5a;
  font-weight: 400;
  white-space: nowrap;
}
.hm-trust-bar__text strong {
  color: #332e26;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.hm-trust-bar__text--clone {
  display: none;
}

@media (max-width: 900px) {
  .hm-trust-bar {
    font-size: 11px;
  }
  .hm-trust-bar__inner {
    padding: 10px 0;
    max-width: none;
  }
  .hm-trust-bar__track {
    display: inline-flex;
    width: max-content;
    justify-content: flex-start;
    gap: 48px;
    padding-left: 16px;
    animation: hm-trust-marquee 22s linear infinite;
  }
  .hm-trust-bar__text--clone {
    display: block;
  }
  .hm-trust-bar:hover .hm-trust-bar__track {
    animation-play-state: paused;
  }
}

@keyframes hm-trust-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .hm-trust-bar__track {
    animation: none !important;
    flex-wrap: nowrap;
    justify-content: center;
    width: 100%;
  }
  .hm-trust-bar__text--clone {
    display: none !important;
  }
}
/* Header blanc + bordure fine (comme Hijabaya) */
#masthead,
#masthead .ast-primary-header-bar,
#masthead .ast-above-header-bar,
#masthead .main-header-bar,
#ast-desktop-header,
#ast-mobile-header {
  background: #ffffff !important;
  box-shadow: none !important;
}
#masthead {
  border-bottom: 1px solid #e6e6e6;
}
#masthead .ast-primary-header-bar,
#masthead .main-header-bar {
  border-bottom: 0 !important;
}

/* Size guide */
.hm-size-guide__scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 16px 0;
}
.hm-size-guide__table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  margin: 0;
  font-size: 14px;
}
.hm-size-guide__table th,
.hm-size-guide__table td {
  border: 1px solid #e5e5e5;
  padding: 10px 12px;
  text-align: left;
  white-space: nowrap;
}
.hm-size-guide__table th {
  background: #f7f7f7;
  font-weight: 600;
}
.hm-size-guide__note,
.hm-ship-list {
  font-size: 14px;
  line-height: 1.6;
  color: #646464;
}
.hm-ship-list {
  margin: 0;
  padding-left: 18px;
}
.hm-ship-list li {
  margin-bottom: 8px;
}

@media (max-width: 767px) {
  .hm-size-guide__table {
    font-size: 12px;
    min-width: 480px;
  }
  .hm-size-guide__table th,
  .hm-size-guide__table td {
    padding: 8px 10px;
  }
}

/* Contact form */
.hm-contact-form {
  max-width: 560px;
  display: grid;
  gap: 12px;
}
.hm-contact-form .hm-field,
.hm-contact-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #212121;
  background: transparent;
  padding: 12px 14px;
  font: inherit;
}
.hm-contact-form textarea {
  min-height: 140px;
  resize: vertical;
}
.hm-contact-form .hm-btn {
  appearance: none;
  border: 0;
  background: #8a6a3d;
  color: #fff;
  padding: 12px 18px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 12px;
  cursor: pointer;
  width: fit-content;
}

/* Accueil — bandeau éditorial */
.home .hm-intro {
  margin: 0 0 56px;
  padding: 72px 24px 64px;
  background: #f7f1e8;
  text-align: center;
}
.home .hm-intro__kicker,
.home .hm-section-head__kicker {
  margin: 0 0 10px;
  font-family: Outfit, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #8a6a3d;
}
.home .hm-home-hero__title,
.home h1.hm-home-hero__title {
  margin: 0 0 18px !important;
  padding: 0 !important;
  font-family: "Cormorant Garamond", Georgia, serif !important;
  font-size: clamp(48px, 6vw, 84px) !important;
  font-weight: 500 !important;
  letter-spacing: 0.01em !important;
  text-transform: none !important;
  text-align: center !important;
  line-height: 0.95 !important;
  color: #2c241c !important;
}
.home .hm-intro__rule {
  display: block;
  width: 48px;
  height: 1px;
  margin: 0 auto 18px;
  background: #8a6a3d;
}
.home .hm-intro__lead {
  max-width: 38rem;
  margin: 0 auto !important;
  font-size: 17px !important;
  line-height: 1.7 !important;
  color: #5c4e3e;
}

/* Ancien bandeau encore en base sur la prod (fond gris inline). */
.home .entry-content > .wp-block-group.alignfull.has-background {
  background: #f7f1e8 !important;
  margin: 0 0 56px !important;
  padding: 72px 24px 64px !important;
}
.home .entry-content > .wp-block-group.alignfull.has-background h1.hm-home-hero__title::before {
  content: "Maison";
  display: block;
  margin: 0 0 10px;
  font-family: Outfit, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase !important;
  color: #8a6a3d;
}
.home .entry-content > .wp-block-group.alignfull.has-background h1.hm-home-hero__title::after {
  content: "";
  display: block;
  width: 48px;
  height: 1px;
  margin: 18px auto 0;
  background: #8a6a3d;
}
.home .entry-content > .wp-block-group.alignfull.has-background p {
  max-width: 38rem;
  margin-left: auto !important;
  margin-right: auto !important;
  font-size: 17px !important;
  line-height: 1.7 !important;
  color: #5c4e3e;
}

.home .hm-section-head {
  max-width: 1200px;
  margin: 8px auto 22px;
  padding: 0 24px;
  text-align: center;
}
.home .hm-section-head h2,
.home .entry-content > h2 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif !important;
  font-size: clamp(36px, 4vw, 52px) !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: #2c241c;
  line-height: 1.05;
}

.home .hm-univers .hm-section-head__kicker {
  display: none;
}
.hm-home-cats {
  display: flex;
  justify-content: center;
  align-items: stretch;
  max-width: 760px;
  margin: 4px auto 56px;
  padding: 0 24px;
  border-top: 1px solid #e6d7c3;
  border-bottom: 1px solid #e6d7c3;
}
.hm-home-cats a {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 84px;
  padding: 18px 12px;
  background: transparent;
  border: 0;
  border-right: 1px solid #e6d7c3;
  color: #2c241c !important;
  text-decoration: none !important;
  text-transform: none;
  letter-spacing: 0;
  box-shadow: none;
}
.hm-home-cats a:last-child {
  border-right: 0;
}
.hm-home-cats__index,
.hm-home-cats__more {
  display: none;
}
.hm-home-cats__name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 34px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none !important;
  text-transform: none;
  border-bottom: 0;
}
.hm-home-cats a:hover .hm-home-cats__name {
  color: #8a6a3d;
}
.home ul.products {
  max-width: 1200px;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 24px;
  padding-right: 24px;
}
@media (max-width: 767px) {
  .home .hm-intro {
    margin-bottom: 36px;
    padding: 40px 18px 36px;
  }
  .hm-home-cats {
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-bottom: 36px;
    padding: 0 16px;
  }
  .hm-home-cats a {
    min-height: 64px;
    border-right: 0;
    border-bottom: 1px solid #e6d7c3;
  }
  .hm-home-cats a:last-child {
    border-bottom: 0;
  }
  .hm-home-cats__name {
    font-size: 30px;
  }
}

/* Hijabista footer — style Hijabaya */
.hm-footer {
  background: #eaeaea;
  color: #212121;
  font-family: Outfit, system-ui, sans-serif;
  margin-top: 48px;
}
.hm-footer a {
  color: #212121;
  text-decoration: none;
}
.hm-footer a:hover {
  opacity: 0.7;
}
.hm-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 30px;
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 1.2fr 1fr;
  gap: 32px;
}
.hm-footer__title {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 16px;
  color: #212121;
}
.hm-footer__text {
  font-size: 14px;
  line-height: 1.6;
  color: #646464;
  margin: 0 0 16px;
}
.hm-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.hm-footer__links li {
  margin: 0 0 10px;
}
.hm-footer__links a {
  font-size: 14px;
}
.hm-footer__form .hm-field {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #212121;
  background: transparent;
  padding: 12px 14px;
  margin: 0 0 10px;
  font-size: 14px;
  color: #212121;
  border-radius: 0;
}
.hm-footer__form .hm-field:focus {
  outline: 2px solid #212121;
  outline-offset: 2px;
  border-color: #212121;
}
.hm-footer__form .hm-btn {
  width: 100%;
  border: none;
  background: #8a6a3d;
  color: #fff;
  padding: 12px 16px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 0;
}
.hm-footer__form .hm-btn:hover {
  background: #6e532e;
}
.hm-footer__social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.hm-footer__social a {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
}
.hm-footer__social svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
}
.hm-footer__bar {
  border-top: 1px solid #212121;
  padding: 20px 24px;
}
.hm-footer__bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}
.hm-footer__copy {
  font-size: 13px;
  margin: 0;
  color: #212121;
}
/* Honeypot anti-spam (invisible) */
.hm-hp {
  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;
  clip-path: inset(50%) !important;
  border: 0 !important;
  white-space: nowrap !important;
}
.hm-footer__form,
.hm-contact-form,
.hm-buy-now__form {
  position: relative;
}
.hm-footer__msg {
  font-size: 13px;
  margin: 0 0 10px;
}
.hm-footer__msg--ok { color: #0a7a32; }
.hm-footer__msg--err { color: #721c24; }

@media (max-width: 900px) {
  .hm-footer__inner {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .hm-footer__inner {
    grid-template-columns: 1fr;
    padding: 40px 20px 24px;
  }
  .hm-footer__bar-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* Hide default Astra footer chrome when custom footer is active */
.ast-theme-transparent-header .hm-footer,
body .hm-footer {
  position: relative;
  z-index: 2;
}

/* Floating WhatsApp button — site-wide */
.hm-whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}
.hm-whatsapp-float:hover,
.hm-whatsapp-float:focus {
  transform: scale(1.06);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
  color: #fff;
  opacity: 1;
}
.hm-whatsapp-float svg {
  width: 30px;
  height: 30px;
  display: block;
}

/* Flèche « remonter » Astra : au-dessus du WhatsApp (même coin) */
#ast-scroll-top {
  right: 30px !important;
  bottom: 90px !important;
  z-index: 99998 !important;
}

@media (max-width: 600px) {
  .hm-whatsapp-float {
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    width: 52px;
    height: 52px;
  }
  .hm-whatsapp-float svg {
    width: 28px;
    height: 28px;
  }
  body.single-product .hm-whatsapp-float {
    bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  }
  body.single-product #ast-scroll-top {
    bottom: calc(152px + env(safe-area-inset-bottom, 0px)) !important;
  }
  #ast-scroll-top {
    right: 22px !important;
    bottom: 80px !important;
  }
}
#masthead .site-logo-img img,
#masthead .custom-logo {
  max-width: 220px !important;
  height: auto !important;
}

/* HIJABISTA — mobile header bar (Hijabaya-style) */
@media (max-width: 921px) {
  .ast-mobile-header-wrap,
  .ast-primary-header-bar,
  .ast-primary-header-bar .site-primary-header-wrap {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: #ffffff !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
    position: relative !important;
    z-index: 1000 !important;
  }

  .ast-header-break-point .ast-primary-header-bar,
  .ast-header-break-point .ast-primary-header-bar .site-primary-header-wrap {
    min-height: 68px !important;
  }

  #ast-mobile-header .ast-builder-grid-row,
  #ast-mobile-header .site-header-primary-section-left,
  #ast-mobile-header .site-header-primary-section-right,
  #ast-mobile-header .site-primary-header-wrap .ast-builder-grid-row {
    align-items: center !important;
  }

  #ast-mobile-header .site-header-primary-section-left,
  #ast-mobile-header .site-header-primary-section-right {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
  }

  #ast-mobile-header .site-header-primary-section-left {
    justify-content: flex-start !important;
    padding-left: 4px !important;
  }

  #ast-mobile-header .site-header-primary-section-right {
    justify-content: flex-end !important;
    padding-right: 10px !important;
  }

  #ast-mobile-header .site-header-primary-section-center {
    flex: 0 1 auto !important;
    justify-content: center !important;
    text-align: center !important;
  }

  #ast-mobile-header .ast-builder-layout-element:not([data-section="section-hb-social-icons-1"]),
  #ast-mobile-header .ast-header-search,
  #ast-mobile-header .ast-header-woo-cart,
  #ast-mobile-header .ast-header-account-wrap,
  #ast-mobile-header .ast-button-wrap {
    margin: 0 !important;
    padding: 0 !important;
  }

  #ast-mobile-header .site-title,
  #ast-mobile-header .site-description,
  #ast-mobile-header .ast-site-title-wrap {
    display: none !important;
  }

  #ast-mobile-header .site-logo-img img,
  #ast-mobile-header .custom-logo {
    max-height: 52px !important;
    max-width: 62vw !important;
    width: auto !important;
    height: auto !important;
  }

  #ast-mobile-header .ast-woo-header-cart-info-wrap,
  #ast-mobile-header .count,
  #ast-mobile-header .ast-cart-menu-wrap .count {
    right: 0 !important;
    left: auto !important;
    transform: translate(25%, -35%) !important;
  }

  #ast-mobile-header .ast-header-woo-cart {
    overflow: visible !important;
    margin-right: 4px !important;
  }

  /* Réseaux sociaux dans le menu mobile (sous la liste) */
  .ast-mobile-header-content .ast-builder-layout-element[data-section="section-hb-social-icons-1"],
  .ast-mobile-popup-content .ast-builder-layout-element[data-section="section-hb-social-icons-1"] {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    margin: 8px 0 0 !important;
    padding: 18px 20px 22px !important;
    border-top: 1px solid #eee !important;
    box-sizing: border-box !important;
  }

  .ast-mobile-header-content .ast-header-social-wrap,
  .ast-mobile-popup-content .ast-header-social-wrap,
  .ast-mobile-header-content .header-social-inner-wrap,
  .ast-mobile-popup-content .header-social-inner-wrap {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 14px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .ast-mobile-header-content .ast-builder-social-element,
  .ast-mobile-popup-content .ast-builder-social-element {
    margin: 0 !important;
    width: 40px !important;
    height: 40px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .ast-mobile-header-content .ast-builder-social-element .ahfb-svg-iconset,
  .ast-mobile-popup-content .ast-builder-social-element .ahfb-svg-iconset,
  .ast-mobile-header-content .ast-builder-social-element svg,
  .ast-mobile-popup-content .ast-builder-social-element svg {
    width: 22px !important;
    height: 22px !important;
  }

  .ast-mobile-header-content {
    background: #fff !important;
    border-bottom: 1px solid #eee !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06) !important;
  }

  .ast-mobile-header-content .main-header-menu > .menu-item > .menu-link {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
  }
}

/* ============================================================
   HIJABISTA — header icons (Hijabaya via <img> SVG)
   ============================================================ */
#masthead {
  --hm-icon-size: 24px;
  --hm-icon-gap: 2px;
  --hm-icon-pad: 5px 9px;
  --hm-cart-badge: #8a6a3d;
  --hm-icon-color: #212121;
}

#masthead .site-header-primary-section-left,
#masthead .site-header-primary-section-right,
#masthead .site-header-above-section-left,
#masthead .site-header-above-section-right {
  gap: var(--hm-icon-gap) !important;
  align-items: center !important;
}

/* Ligne header : tout centré verticalement */
#masthead .ast-builder-grid-row,
#masthead .site-primary-header-wrap,
#masthead .ast-mobile-header-wrap .ast-builder-grid-row,
#masthead #ast-mobile-header .main-header-bar-navigation,
#masthead .ast-header-break-point .main-header-bar {
  align-items: center !important;
}

#masthead .ast-header-search,
#masthead .ast-header-account-wrap,
#masthead .ast-builder-menu-mobile,
#masthead .ast-button-wrap,
#masthead .ast-search-menu-icon {
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  height: auto !important;
  min-height: var(--hm-icon-size) !important;
  max-height: none !important;
  line-height: 0 !important;
  align-self: center !important;
}

/* Panier : pas de line-height:0 (sinon le dropdown hérite et casse les prix) */
#masthead .ast-header-woo-cart {
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  height: auto !important;
  min-height: var(--hm-icon-size) !important;
  line-height: normal !important;
  align-self: center !important;
}

/* Panier : alignement icône seulement — dropdown = Astra natif */
#masthead .ast-header-woo-cart {
  flex: 0 0 auto !important;
  width: auto !important;
  overflow: visible !important;
}

/* Hit area comme .navlink Hijabaya : padding 5px 9px */
#masthead .menu-toggle,
#masthead .astra-search-icon,
#masthead .ast-header-account-link,
#masthead .ast-header-woo-cart .cart-container {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: var(--hm-icon-pad) !important;
  margin: 0 !important;
  color: var(--hm-icon-color) !important;
  line-height: 0 !important;
  vertical-align: middle !important;
  height: auto !important;
  min-height: 0 !important;
}

/* Couper ::before/::after Astra — UNIQUEMENT icônes header, pas le mini-cart */
#masthead .menu-toggle::before,
#masthead .menu-toggle::after,
#masthead .mobile-menu-toggle-icon::before,
#masthead .mobile-menu-toggle-icon::after,
#masthead .ast-header-search .ahfb-svg-iconset::before,
#masthead .ast-header-search .ahfb-svg-iconset::after,
#masthead .astra-search-icon::before,
#masthead .astra-search-icon::after,
#masthead .ast-header-search .ast-icon::before,
#masthead .ast-header-search .ast-icon::after,
#masthead .ast-header-account-link::before,
#masthead .ast-header-account-link::after,
#masthead .ast-header-account-wrap .ahfb-svg-iconset::before,
#masthead .ast-header-account-wrap .ahfb-svg-iconset::after,
#masthead .ast-header-woo-cart .cart-container::before,
#masthead .ast-header-woo-cart .cart-container::after,
#masthead .ast-header-woo-cart .cart-container .ast-addon-cart-wrap::before,
#masthead .ast-header-woo-cart .cart-container .ast-addon-cart-wrap::after {
  content: none !important;
  display: none !important;
  background: none !important;
  border: 0 !important;
  width: 0 !important;
  height: 0 !important;
  box-shadow: none !important;
}

#masthead .hm-hijabaya-icon {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: var(--hm-icon-size) !important;
  height: var(--hm-icon-size) !important;
  min-width: var(--hm-icon-size) !important;
  min-height: var(--hm-icon-size) !important;
  padding: 0 !important;
  margin: 0 !important;
  background-color: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-size: 0 !important;
  line-height: 0 !important;
  overflow: visible !important;
}

#masthead .hm-header-icon-img {
  display: block !important;
  width: var(--hm-icon-size) !important;
  height: var(--hm-icon-size) !important;
  max-width: var(--hm-icon-size) !important;
  max-height: var(--hm-icon-size) !important;
  object-fit: contain !important;
  object-position: center !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  visibility: visible !important;
  opacity: 1 !important;
  margin: 0 !important;
  vertical-align: middle !important;
  transform: none !important;
}

/* Loupe : manche en bas → léger remontage optique */
#masthead .ast-header-search .hm-header-icon-img {
  transform: translateY(-0.5px) !important;
}

/* Menu : traits centrés dans la boîte 24px */
#masthead .menu-toggle .hm-header-icon-img {
  transform: translateY(0) !important;
}

/* Panier : +2px vers le haut (icône seule) */
#masthead .ast-header-woo-cart .cart-container .hm-header-icon-img {
  transform: translateY(-2px) !important;
}

/* Icône panier — scoped à .cart-container (jamais le dropdown Astra) */
#masthead .ast-header-woo-cart .cart-container,
#masthead .ast-header-woo-cart .cart-container .ast-addon-cart-wrap {
  display: flex !important;
  align-items: center !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Icône sac — UNIQUEMENT dans .cart-container ; le mini-cart reste 100% Astra */
#masthead .ast-header-woo-cart .cart-container .astra-icon,
#masthead .ast-header-woo-cart .cart-container .ast-icon.icon-bag,
#masthead .ast-header-woo-cart .cart-container .ast-addon-cart-wrap {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: var(--hm-icon-size) !important;
  height: var(--hm-icon-size) !important;
  min-width: var(--hm-icon-size) !important;
  min-height: var(--hm-icon-size) !important;
  background-color: transparent !important;
  background-image: url(icons/bag.svg) !important;
  background-repeat: no-repeat !important;
  background-position: center calc(50% - 2px) !important;
  background-size: var(--hm-icon-size) var(--hm-icon-size) !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-size: 0 !important;
  line-height: 0 !important;
  overflow: visible !important;
  visibility: visible !important;
  opacity: 1 !important;
}

#masthead .ast-header-woo-cart .cart-container .astra-icon::before,
#masthead .ast-header-woo-cart .cart-container .astra-icon::after {
  content: none !important;
  display: none !important;
  background: none !important;
}

#masthead .ast-header-woo-cart .cart-container .astra-icon svg,
#masthead .ast-header-woo-cart .cart-container .ast-icon svg,
#masthead .ast-header-woo-cart .cart-container #ast-bag-icon-svg {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

#masthead .ast-header-woo-cart .cart-container .hm-hijabaya-cart {
  background-image: none !important;
}

/* Mini-panier dropdown header : layout 100% Astra */

/*
 * Tiroir panier mobile (.astra-cart-drawer) — × mal centré + sur le titre.
 * Cause Astra :
 * 1) a.remove absolute right:0 sans padding-right sur le li
 * 2) SVG 24px + line-height 16/21 + ::before cercle (box-sizing inherit)
 *    → la croix n’est pas centrée dans le cercle
 * Rien dans hijabista-footer ne touchait ce tiroir ; on corrige ici seulement.
 */
.astra-cart-drawer .astra-cart-drawer-content .woocommerce-mini-cart-item,
.astra-cart-drawer .astra-cart-drawer-content .widget_shopping_cart .cart_list li {
  padding-right: 2em !important;
}

.astra-cart-drawer .astra-cart-drawer-content .woocommerce-mini-cart a.remove {
  position: absolute !important;
  left: auto !important;
  right: 0 !important;
  top: 1.1em !important;
  width: 20px !important;
  height: 20px !important;
  margin: 0 !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 0 !important;
  font-size: 0 !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

.astra-cart-drawer .astra-cart-drawer-content .woocommerce-mini-cart a.remove::before {
  box-sizing: border-box !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

.astra-cart-drawer .astra-cart-drawer-content .woocommerce-mini-cart a.remove .ahfb-svg-iconset {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 12px !important;
  height: 12px !important;
  transform: none !important;
  line-height: 0 !important;
}

.astra-cart-drawer .astra-cart-drawer-content .woocommerce-mini-cart a.remove .ast-close-svg {
  width: 12px !important;
  height: 12px !important;
  display: block !important;
}

/* ============================================================
   HIJABISTA — panier mobile (tiroir + page /cart)
   ============================================================ */

/* Tiroir : au-dessus de la barre sticky "Acheter maintenant" */
.astra-cart-drawer,
.astra-cart-drawer.active,
#astra-mobile-cart-drawer {
  z-index: 1000010 !important;
}

/* Astra + admin-bar : padding-top 46px (mobile) / 32px — vide inutile sous le tiroir plein écran */
body.admin-bar #astra-mobile-cart-drawer.astra-cart-drawer,
body.admin-bar #astra-mobile-cart-drawer.astra-cart-drawer.active,
body.admin-bar .astra-cart-drawer,
body.admin-bar .astra-cart-drawer.active {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Masquer WhatsApp quand le tiroir est ouvert */
body.ast-mobile-cart-active .hm-whatsapp-float,
body:has(.astra-cart-drawer.active) .hm-whatsapp-float {
  display: none !important;
}

.astra-cart-drawer .astra-cart-drawer-close {
  box-shadow: none !important;
  border: 0 !important;
}
.astra-cart-drawer .astra-cart-drawer-close:focus-visible {
  outline: 2px solid #212121 !important;
  outline-offset: 3px;
}

/* Padding global du tiroir — ne pas toucher au padding-left des lignes produit
   (Astra y place la vignette en absolute) */
.astra-cart-drawer .astra-cart-drawer-header {
  padding: 12px 20px !important;
  max-height: none !important;
  min-height: 48px !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.astra-cart-drawer .astra-cart-drawer-content {
  /* Astra: header absolute → clearance ; on serre le surplus sous le titre */
  padding-top: 48px !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-bottom: 0 !important;
  box-sizing: border-box !important;
}

/* Astra met padding: 1.3em → gros vide sous « Panier » */
.astra-cart-drawer .astra-cart-drawer-content .woocommerce-mini-cart {
  padding: 6px 20px 8px !important;
  margin: 0 !important;
}

.astra-cart-drawer .astra-cart-drawer-content .woocommerce-mini-cart-item:first-child,
.astra-cart-drawer .astra-cart-drawer-content .widget_shopping_cart .cart_list li:first-child {
  margin-top: 0 !important;
  padding-top: 0.6em !important;
}

.astra-cart-drawer .woocommerce-mini-cart__total {
  padding: 12px 20px !important;
  margin: 0 !important;
}

/* Boutons tiroir : empiles + marges laterales visibles */
.astra-cart-drawer .woocommerce-mini-cart__buttons,
.astra-cart-drawer .woocommerce-mini-cart__buttons.buttons {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  padding: 12px 20px 20px !important;
  margin: 0 !important;
  align-items: stretch !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.astra-cart-drawer .woocommerce-mini-cart__buttons .button,
.astra-cart-drawer .woocommerce-mini-cart__buttons a.button,
.astra-cart-drawer .woocommerce-mini-cart__buttons a.wc-forward {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 48px !important;
  margin: 0 !important;
  padding: 12px 16px !important;
  box-sizing: border-box !important;
  border-radius: 2px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  text-align: center !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
  float: none !important;
}

.astra-cart-drawer .woocommerce-mini-cart__buttons a.button:not(.checkout),
.astra-cart-drawer .woocommerce-mini-cart__buttons a.wc-forward:not(.checkout) {
  background: #fff !important;
  color: #212121 !important;
  border: 1px solid #212121 !important;
}

.astra-cart-drawer .woocommerce-mini-cart__buttons a.checkout,
.astra-cart-drawer .woocommerce-mini-cart__buttons a.button.checkout {
  background: #8a6a3d !important;
  color: #fff !important;
  border: 1px solid #8a6a3d !important;
  order: 2;
}

/*
 * Mobile global : Astra applique des margins négatifs sur .alignwide/.alignfull
 * (jusqu’à 1200px) → contenu décalé à gauche + vide à droite.
 * On annule ça sur TOUTES les pages, pas seulement cart/checkout.
 */
@media (max-width: 767px) {
  .entry-content > .alignwide,
  .entry-content > .alignfull,
  .entry-content[data-ast-blocks-layout] > .alignwide,
  .entry-content .alignfull,
  .ast-plain-container .entry-content > .alignwide,
  .ast-plain-container .entry-content > .alignfull,
  .ast-plain-container .entry-content[data-ast-blocks-layout] > .alignwide,
  .ast-plain-container .entry-content .alignfull,
  .ast-separate-container .entry-content > .alignwide,
  .ast-separate-container .entry-content > .alignfull,
  .ast-separate-container .entry-content[data-ast-blocks-layout] > .alignwide,
  [class*="wp-block-woocommerce-"].alignwide,
  [class*="wp-block-woocommerce-"].alignfull {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    left: auto !important;
    right: auto !important;
    box-sizing: border-box !important;
  }

  /* Conteneurs Woo (compte, commande, boutique, etc.) : paddings égaux */
  body.woocommerce .site-content > .ast-container,
  body.woocommerce-page .site-content > .ast-container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    box-sizing: border-box !important;
  }

  body.woocommerce .entry-content,
  body.woocommerce-page .entry-content,
  body.woocommerce [class*="wp-block-woocommerce-"],
  body.woocommerce-page [class*="wp-block-woocommerce-"],
  body.woocommerce .wc-block-components-sidebar-layout,
  body.woocommerce-page .wc-block-components-sidebar-layout {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }

  /* Cart : grille produits (Woo fixe 80px+132px) */
  body.woocommerce-cart .entry-content,
  body.woocommerce-cart .wp-block-woocommerce-cart,
  body.woocommerce-cart .wc-block-cart,
  body.woocommerce-cart .wc-block-cart__main,
  body.woocommerce-cart .wc-block-cart__sidebar,
  body.woocommerce-cart table.wc-block-cart-items,
  body.woocommerce-checkout .entry-content,
  body.woocommerce-checkout .wp-block-woocommerce-checkout,
  body.woocommerce-checkout .wc-block-checkout,
  body.woocommerce-checkout .wc-block-checkout__main,
  body.woocommerce-checkout .wc-block-checkout__sidebar,
  body.woocommerce-checkout .wc-block-checkout__form {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  body.woocommerce-cart .wc-block-components-sidebar-layout,
  body.woocommerce-checkout .wc-block-components-sidebar-layout {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
  }

  body.woocommerce-cart .wc-block-cart.is-mobile table.wc-block-cart-items .wc-block-cart-items__row,
  body.woocommerce-cart .wc-block-cart.is-medium table.wc-block-cart-items .wc-block-cart-items__row,
  body.woocommerce-cart .wc-block-cart.is-small table.wc-block-cart-items .wc-block-cart-items__row,
  body.woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__row {
    display: grid !important;
    grid-template-columns: 72px minmax(0, 1fr) !important;
    column-gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  body.woocommerce-cart table.wc-block-cart-items .wc-block-cart-item__image {
    grid-column: 1 !important;
    grid-row: 1 / span 2 !important;
    width: 72px !important;
    max-width: 72px !important;
    padding-right: 0 !important;
  }

  body.woocommerce-cart table.wc-block-cart-items .wc-block-cart-item__image img {
    width: 72px !important;
    height: 72px !important;
    object-fit: cover !important;
  }

  body.woocommerce-cart table.wc-block-cart-items .wc-block-cart-item__product {
    grid-column: 2 !important;
    grid-row: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
    justify-self: stretch !important;
    padding: 0 !important;
  }

  body.woocommerce-cart table.wc-block-cart-items .wc-block-cart-item__wrap {
    width: 100% !important;
    max-width: 100% !important;
  }

  body.woocommerce-cart table.wc-block-cart-items .wc-block-cart-item__quantity {
    grid-column: 2 !important;
    grid-row: 2 !important;
    align-self: start !important;
    padding: 8px 0 0 !important;
  }

  body.woocommerce-cart table.wc-block-cart-items .wc-block-cart-item__total {
    display: none !important;
  }

  body.woocommerce-cart table.wc-block-cart-items .wc-block-cart-item__prices {
    display: block !important;
    margin: 4px 0 6px !important;
  }

  body.woocommerce-cart table.wc-block-cart-items .wc-block-cart-item__remove-link {
    display: inline-block !important;
    margin-top: 6px !important;
  }

  body.woocommerce-cart h1.entry-title,
  body.woocommerce-cart .wp-block-post-title,
  body.woocommerce-checkout h1.entry-title,
  body.woocommerce-checkout .wp-block-post-title {
    text-align: left !important;
    margin: 0 0 12px !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  body.woocommerce-checkout .wc-block-components-sidebar,
  body.woocommerce-checkout .wc-block-checkout__sidebar,
  body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block,
  body.woocommerce-checkout .wc-block-components-order-summary,
  body.woocommerce-checkout .wc-block-components-totals-wrapper,
  body.woocommerce-checkout .wc-block-components-panel,
  body.woocommerce-checkout .wc-block-checkout__actions {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }

  body.woocommerce-checkout .wc-block-components-text-input input,
  body.woocommerce-checkout .wc-block-components-textarea textarea,
  body.woocommerce-checkout .wc-block-components-combobox input,
  body.woocommerce-checkout .wc-block-components-address-form,
  body.woocommerce-checkout .wc-block-components-radio-control-accordion-option,
  body.woocommerce-checkout .wc-block-checkout__shipping-option {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  body.woocommerce-cart .wc-block-components-button,
  body.woocommerce-cart .wc-block-cart__submit-container .wc-block-components-button,
  body.woocommerce-cart a.checkout-button,
  body.woocommerce-checkout .wc-block-components-checkout-place-order-button,
  body.woocommerce-checkout .wc-block-components-button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 48px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
    border-radius: 2px !important;
    font-size: 12px !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
  }

  body.woocommerce-cart .wc-block-components-button,
  body.woocommerce-cart .wc-block-cart__submit-container .wc-block-components-button,
  body.woocommerce-cart a.checkout-button,
  body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
    background: #8a6a3d !important;
    color: #fff !important;
    border: 1px solid #8a6a3d !important;
  }
}

#masthead .hm-cart-badge {
  position: absolute !important;
  top: -2px !important;
  right: -8px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 17px !important;
  height: 17px !important;
  padding: 2px !important;
  border-radius: 15px !important;
  background: var(--hm-cart-badge) !important;
  color: #fff !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  text-align: center !important;
  box-shadow: none !important;
  border: 0 !important;
  z-index: 2 !important;
}

#masthead .ast-header-woo-cart .count,
#masthead .ast-woo-header-cart-info-wrap {
  display: none !important;
}

#masthead .menu-toggle,
#masthead .ast-header-account-link,
#masthead .astra-search-icon,
#masthead .cart-container {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* En-tête fixe, focus visible, cartes boutique */
#masthead {
  position: sticky !important;
  top: 0;
  z-index: 100;
  background: #fff;
}

body.admin-bar #masthead {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar #masthead {
    top: 46px;
  }
}

#masthead .menu-toggle:focus-visible,
#masthead .ast-header-account-link:focus-visible,
#masthead .astra-search-icon:focus-visible,
#masthead .cart-container:focus-visible,
.hm-footer a:focus-visible,
.hm-cat-filters__item:focus-visible,
.hm-footer__form .hm-btn:focus-visible,
.hm-whatsapp-float:focus-visible {
  outline: 2px solid #212121;
  outline-offset: 3px;
}

@media (max-width: 921px) {
  #masthead .menu-toggle,
  #masthead .ast-header-account-link,
  #masthead .astra-search-icon,
  #masthead .ast-header-woo-cart .cart-container {
    min-width: 44px !important;
    min-height: 44px !important;
  }
}

ul.products li.product {
  display: flex;
  flex-direction: column;
}

ul.products li.product .astra-shop-thumbnail-wrap {
  background: #f6f4f1;
}

ul.products li.product .woocommerce-loop-product__title,
ul.products li.product h2.woocommerce-loop-product__title {
  display: -webkit-box !important;
  flex-shrink: 0;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
  min-height: 2.7em;
  max-height: 2.7em;
}

ul.products li.product .price {
  color: #212121;
  font-weight: 600;
}

ul.products li.product .price del {
  color: #757575;
  font-weight: 400;
}

ul.products li.product .price ins {
  color: #212121;
  text-decoration: none;
}

ul.products li.product a.button,
ul.products li.product .button {
  min-height: 44px;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Typographie : serif pour les titres, sans léger pour le texte */
body,
button,
input,
select,
textarea {
  font-family: Outfit, system-ui, sans-serif !important;
}

h1,
h2,
h3,
.entry-title,
.woocommerce-products-header__title,
.woocommerce-loop-product__title,
.hm-footer__title,
#masthead .main-header-menu > .menu-item > .menu-link {
  font-family: "Cormorant Garamond", Georgia, serif !important;
  font-weight: 500;
}

.woocommerce-loop-product__title {
  font-size: 18px !important;
  letter-spacing: 0.04em;
}

#masthead .main-header-menu > .menu-item > .menu-link {
  font-size: 18px !important;
  letter-spacing: 0.01em;
  text-transform: none;
}

@media (min-width: 922px) {
  #masthead .main-header-menu > .menu-item > .menu-link,
  .entry-title,
  .woocommerce-products-header__title.page-title,
  .hm-home-cats a,
  .hm-home-cats__name {
    text-transform: none !important;
    letter-spacing: 0.01em;
  }

  .home .entry-content h1,
  .home .entry-content h2,
  .home .hm-section-head h2 {
    text-transform: lowercase !important;
  }

  .home .entry-content h1::first-letter,
  .home .entry-content h2::first-letter,
  .home .hm-section-head h2::first-letter {
    text-transform: uppercase !important;
  }
}

.woocommerce nav.woocommerce-pagination ul li span.current,
.woocommerce nav.woocommerce-pagination ul li a.current {
  color: #fff !important;
  background: #8a6a3d !important;
  border-color: #8a6a3d !important;
}

/* Recherche header : un seul contour doux, pas de cadre bleu ni noir */
#masthead .ast-header-search,
#masthead .ast-search-menu-icon,
#masthead .ast-search-menu-icon .search-form,
#masthead .ast-search-menu-icon .search-form label {
  overflow: visible !important;
  outline: none !important;
  box-shadow: none !important;
}

#masthead .ast-search-menu-icon .search-form,
#masthead .ast-search-menu-icon.ast-dropdown-active .search-form,
.ast-desktop #masthead .ast-header-search .slide-search .search-form {
  border: 1px solid #e4ddd2 !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  outline: none !important;
}

#masthead input.search-field,
#masthead input.search-field:focus,
#masthead input.search-field:focus-visible,
#masthead input.search-field:active,
#masthead .astra-search-icon:focus,
#masthead .astra-search-icon:focus-visible,
#masthead .search-submit:focus,
#masthead .search-submit:focus-visible {
  outline: none !important;
  outline-offset: 0 !important;
  box-shadow: none !important;
  border: 0 !important;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
}

.ast-live-search-results {
  display: none !important;
}

.hm-live-search {
  position: fixed;
  z-index: 100001;
  max-height: min(70vh, 420px);
  overflow: auto;
  background: #fff;
  border: 1px solid #efe8dc;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(33, 33, 33, 0.08);
}

.hm-live-search__empty {
  margin: 0;
  padding: 14px 16px;
  color: #646464;
  font-size: 14px;
}

.hm-live-search__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px 8px 14px;
  color: #212121;
  text-decoration: none;
}

.hm-live-search__item:hover,
.hm-live-search__item:focus-visible {
  background: #faf7f2;
  outline: none;
}

.hm-live-search__text {
  flex: 1 1 auto;
  min-width: 0;
}

.hm-live-search__title {
  display: block;
  font-family: Outfit, system-ui, sans-serif !important;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.35;
  text-transform: none;
}

.hm-live-search__price {
  display: block;
  margin-top: 3px;
  color: #8a6a3d;
  font-size: 13px;
}

.hm-live-search__img {
  flex: 0 0 52px;
  width: 52px;
  height: 68px;
  object-fit: cover;
  border-radius: 6px;
  background: #f6f4f1;
}

.n2-section-smartslider:focus,
.n2-ss-slider:focus,
.n2-ss-slide--focus {
  outline: none !important;
  box-shadow: none !important;
}

/* Mobile : loupe à gauche, texte après, bordure et marges égales */
@media (max-width: 921px) {
  #ast-mobile-header:has(.ast-search-menu-icon.ast-dropdown-active) .ast-builder-grid-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
  }

  #ast-mobile-header:has(.ast-search-menu-icon.ast-dropdown-active) .site-header-primary-section-center {
    display: none !important;
  }

  #ast-mobile-header:has(.ast-search-menu-icon.ast-dropdown-active) .site-header-primary-section-left {
    grid-column: 1 !important;
    display: flex !important;
    align-items: center !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    gap: 0 !important;
  }

  #ast-mobile-header:has(.ast-search-menu-icon.ast-dropdown-active) .site-header-primary-section-right {
    grid-column: 2 !important;
  }

  #ast-mobile-header .ast-header-search:has(.ast-dropdown-active) {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 12px 0 8px !important;
  }

  #ast-mobile-header .ast-search-menu-icon.ast-dropdown-active,
  #ast-mobile-header .ast-search-menu-icon.slide-search.ast-dropdown-active {
    position: relative !important;
    display: flex !important;
    flex: 1 1 auto !important;
    align-items: center !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    transform: none !important;
  }

  #ast-mobile-header .ast-search-menu-icon.ast-dropdown-active .search-form {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    transform: none !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 42px !important;
    margin: 0 !important;
    padding: 0 16px 0 46px !important;
    border: 1px solid #e4ddd2 !important;
    border-radius: 21px !important;
    background: #fff !important;
    box-sizing: border-box !important;
    box-shadow: none !important;
    overflow: hidden !important;
  }

  #ast-mobile-header .ast-search-menu-icon.ast-dropdown-active .search-form label {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  #ast-mobile-header .ast-search-menu-icon.ast-dropdown-active .search-field {
    flex: 1 1 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 40px !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    line-height: 40px !important;
    font-size: 15px !important;
    color: #212121 !important;
  }

  #ast-mobile-header .ast-search-menu-icon.ast-dropdown-active .search-field::placeholder {
    color: #9a9186;
    opacity: 1;
  }

  #ast-mobile-header .ast-search-menu-icon.ast-dropdown-active .search-submit {
    display: none !important;
  }

  #ast-mobile-header .ast-search-menu-icon.ast-dropdown-active .ast-search-icon {
    position: absolute !important;
    left: 14px !important;
    top: 0 !important;
    bottom: 0 !important;
    z-index: 2 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 20px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
  }

  #ast-mobile-header .ast-search-menu-icon.ast-dropdown-active .astra-search-icon {
    min-width: 0 !important;
    min-height: 0 !important;
    width: 20px !important;
    height: 20px !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  #ast-mobile-header .ast-search-menu-icon.ast-dropdown-active .hm-header-icon-img {
    width: 18px !important;
    height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
    transform: none !important;
  }
}
