/**
 * Newsletter pré-footer + footer enrichi HAFSOIT BEAUTY
 */

/* ——— Boutique : moins d'espace vide avant le footer ——— */
body.hb-luxe #produits {
  padding-bottom: 40px !important;
  margin-bottom: 0 !important;
}

body.hb-luxe .shop-pagination {
  padding: 24px 20px 16px !important;
  margin-bottom: 0 !important;
}

/* ——— Bloc bas de page (newsletter + footer) ——— */
.site-bottom {
  position: relative;
  z-index: 2;
  width: 100%;
}

/* ——— Newsletter bande dorée (toujours visible au-dessus du footer) ——— */
.hb-newsletter-luxe {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative;
  z-index: 3;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: clamp(52px, 8vw, 80px) clamp(24px, 5vw, 48px);
  text-align: center;
  background: linear-gradient(160deg, #efe3c8 0%, #e4d6b4 45%, #dbc99e 100%) !important;
  border-top: 1px solid rgba(155, 124, 55, 0.18);
  border-bottom: 1px solid rgba(155, 124, 55, 0.28);
  box-sizing: border-box;
}

.hb-newsletter-luxe__inner {
  max-width: 560px;
  margin: 0 auto;
}

.hb-newsletter-luxe__eyebrow {
  margin: 0 0 12px;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--accent, #9b7c37);
}

.hb-newsletter-luxe h2 {
  margin: 0 0 10px;
  font-family: var(--font-display, 'Instrument Serif', 'Cormorant Garamond', serif);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 400;
  color: var(--text, #141210);
  line-height: 1.12;
}

.hb-newsletter-luxe__sub {
  margin: 0 0 28px;
  font-size: 0.875rem;
  color: var(--text-muted, #6e6458);
  letter-spacing: 0.02em;
}

.hb-newsletter-luxe .newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  max-width: 480px;
  margin: 0 auto;
}

.hb-newsletter-luxe .newsletter-form input {
  flex: 1 1 220px;
  min-width: 0;
  padding: 14px 18px;
  border: 1px solid rgba(20, 18, 16, 0.1);
  border-radius: 0;
  background: #fff;
  font-family: inherit;
  font-size: 0.9rem;
}

.hb-newsletter-luxe .newsletter-form button {
  padding: 14px 28px;
  border: 1px solid var(--text, #141210);
  border-radius: 0;
  background: var(--text, #141210);
  color: #faf8f4;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.hb-newsletter-luxe .newsletter-form button:hover {
  background: transparent;
  color: var(--text, #141210);
}

.hb-newsletter-luxe .newsletter-msg {
  margin-top: 14px;
  font-size: 0.85rem;
  min-height: 1.2em;
  color: var(--text-muted);
}

/* ——— Footer ——— */
body.hb-editorial footer.hb-footer-luxe,
body.hb-editorial .hb-footer-luxe {
  margin-top: 0 !important;
}

.hb-footer-luxe {
  position: relative;
  overflow: hidden;
  background: #111111 !important;
  color: rgba(250, 248, 244, 0.88);
  padding: 0 20px 28px !important;
  border-top: none !important;
}

.hb-footer-luxe::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 18px,
      rgba(201, 169, 98, 0.9) 18px,
      rgba(201, 169, 98, 0.9) 19px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 18px,
      rgba(201, 169, 98, 0.9) 18px,
      rgba(201, 169, 98, 0.9) 19px
    );
}

.hb-footer-luxe__rule {
  position: relative;
  z-index: 1;
  height: 1px;
  max-width: min(1240px, 100%);
  margin: 0 auto;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(155, 124, 55, 0.25) 12%,
    rgba(196, 169, 98, 0.95) 50%,
    rgba(155, 124, 55, 0.25) 88%,
    transparent 100%
  );
}

.hb-footer-luxe .footer-content {
  position: relative;
  z-index: 1;
  padding-top: clamp(40px, 6vw, 56px);
  padding-bottom: 0;
  margin-bottom: 0 !important;
  gap: clamp(28px, 4vw, 40px);
}

.hb-footer-luxe .footer-col-brand .social {
  margin-top: 12px;
  margin-bottom: 0;
}

.hb-footer-luxe .footer-brand-logo,
.hb-footer-luxe .footer-col-brand .footer-brand-logo {
  width: clamp(150px, 24vw, 220px) !important;
  max-width: 220px;
  height: auto;
  margin-bottom: 18px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  object-fit: contain;
}

.hb-footer-luxe .footer-col h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 0.68rem !important;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(196, 169, 98, 0.95) !important;
  margin-bottom: 16px;
}

.hb-footer-luxe .footer-trust-band {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 32px auto 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(14px, 2vw, 20px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  padding-bottom: 24px;
}

.hb-footer-luxe .footer-trust-block {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100%;
}

.hb-footer-luxe .footer-trust-block h4 {
  margin: 0 0 12px;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(250, 248, 244, 0.55);
  flex: 0 0 auto;
}

.hb-footer-luxe .footer-trust-block__body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(201, 169, 98, 0.15);
}

.hb-footer-luxe .footer-payments-list,
.hb-footer-luxe .footer-delivery-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 auto;
}

.hb-footer-luxe .footer-payments-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: rgba(250, 248, 244, 0.82);
}

.hb-footer-luxe .footer-payments-list .pay-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(201, 169, 98, 0.2);
  font-size: 1rem;
}

.hb-footer-luxe .footer-islands {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(250, 248, 244, 0.82);
}

.hb-footer-luxe .footer-delivery-list li {
  font-size: 0.88rem;
  color: rgba(250, 248, 244, 0.78);
  line-height: 1.5;
}

.hb-footer-luxe .footer-delivery-list strong {
  color: rgba(250, 248, 244, 0.95);
  font-weight: 500;
}

.hb-footer-luxe .footer-bottom {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: clamp(20px, 3vw, 28px);
  padding-top: 20px;
  color: rgba(250, 248, 244, 0.45);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.hb-footer-luxe a {
  color: rgba(250, 248, 244, 0.78);
  transition: color 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.hb-footer-luxe a:hover {
  color: var(--accent-soft, #c4a962);
}

@media (max-width: 768px) {
  .hb-newsletter-luxe .newsletter-form {
    flex-direction: column;
    align-items: stretch;
  }

  .hb-newsletter-luxe .newsletter-form button {
    width: 100%;
  }

  .hb-footer-luxe .footer-trust-band {
    grid-template-columns: 1fr;
    margin-top: 24px;
  }
}
