/* M3yar — Homepage UX + balanced section spacing */

/* Shared vertical rhythm: tight enough for scan, roomy enough to breathe */
.main-container {
  --m3-section-y: clamp(28px, 4.5vw, 48px);
  --m3-section-y-sm: clamp(20px, 3vw, 32px);
}

/* Override luxury layer’s large 48–88px section padding on home */
.main-container > .product,
.main-container > .product:nth-of-type(even),
.main-container > .cms,
.main-container > .cms.m3-trust-strip {
  margin-top: 0 !important;
  padding-top: var(--m3-section-y) !important;
  padding-bottom: var(--m3-section-y) !important;
}

.main-container > .product.m3-shop-by-category {
  padding-top: var(--m3-section-y-sm) !important;
  padding-bottom: var(--m3-section-y) !important;
}

.main-container > .product.m3-home-products + .product.m3-home-products {
  padding-top: var(--m3-section-y-sm) !important;
}

/* Section titles — less empty space under headers */
.main-container .section-content.m-b-35 {
  margin-bottom: 18px !important;
}

.main-container .section-content--border {
  padding-bottom: 12px;
}

/* Hero → first content */
.hero-promo {
  padding-bottom: var(--m3-section-y-sm) !important;
}

.hero-promo__banner {
  margin-bottom: clamp(16px, 2.5vw, 24px) !important;
}

.hero-promo__cats {
  padding-top: 4px;
  padding-bottom: 0;
}

/* Generic home sections */
.m3-home-section {
  padding: var(--m3-section-y) 0;
}

.m3-home-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px 16px;
  margin-bottom: 16px;
}

.m3-home-section__head h2 {
  margin: 0;
  font-family: "Cairo", sans-serif;
  font-size: clamp(1.25rem, 2.6vw, 1.6rem);
  font-weight: 900;
  color: #2c1810;
}

.m3-home-section__head p {
  margin: 4px 0 0;
  color: #6b4c3b;
  font-size: 13px;
  line-height: 1.6;
}

.m3-home-section__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #7a3333;
  font-weight: 800;
  font-size: 13px;
  text-decoration: none;
}

.m3-home-section__link:hover { color: #5c2222; }

/* Journey */
.m3-home-journey {
  background: #2c1810;
  color: #fff;
}

.m3-home-journey .m3-home-section__head h2 { color: #fff; }
.m3-home-journey .m3-home-section__head p { color: rgba(245, 240, 235, 0.72); }

.m3-home-journey__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.m3-home-journey__step {
  padding: 18px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(196, 165, 116, 0.18);
}

.m3-home-journey__num {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 10px;
  border-radius: 10px;
  background: rgba(196, 165, 116, 0.18);
  color: #c4a574;
  font-weight: 900;
  font-size: 13px;
}

.m3-home-journey__step h3 {
  margin: 0 0 6px;
  font-family: "Cairo", sans-serif;
  font-size: 0.98rem;
  font-weight: 800;
}

.m3-home-journey__step p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(245, 240, 235, 0.75);
}

/* Shop by category */
.m3-shop-by-category {
  scroll-margin-top: 90px;
}

/* Trust strip */
.cms.m3-trust-strip .cms__content {
  padding: 18px 14px;
}

.cms.m3-trust-strip .cms__icon i {
  font-size: 24px;
}

.cms.m3-trust-strip .cms__title {
  font-size: 0.98rem;
  margin-bottom: 4px;
}

.cms.m3-trust-strip .para__text {
  font-size: 12px;
  line-height: 1.55;
}

/* FAQ */
.m3-home-faq {
  background: #fffcf8;
}

.m3-home-faq__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 760px;
  margin: 0 auto;
}

.m3-home-faq__item {
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(44, 24, 16, 0.08);
  overflow: hidden;
}

.m3-home-faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 0;
  background: transparent;
  text-align: start;
  font-family: "Cairo", sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: #2c1810;
  cursor: pointer;
}

.m3-home-faq__q i {
  color: #c4a574;
  transition: transform 0.25s ease;
}

.m3-home-faq__item.is-open .m3-home-faq__q i { transform: rotate(180deg); }

.m3-home-faq__a {
  display: none;
  padding: 0 16px 14px;
  font-size: 13px;
  line-height: 1.7;
  color: #6b4c3b;
}

.m3-home-faq__item.is-open .m3-home-faq__a { display: block; }

.m3-home-faq__a a {
  color: #7a3333;
  font-weight: 700;
  text-decoration: underline;
}

/* Contact CTA */
.m3-home-cta {
  padding: var(--m3-section-y) 0 calc(var(--m3-section-y) + 8px);
}

.m3-home-cta__box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(18px, 3vw, 28px);
  border-radius: 20px;
  background: linear-gradient(135deg, #fdf3ea 0%, #fff 100%);
  border: 1px solid rgba(122, 51, 51, 0.1);
  box-shadow: 0 14px 32px rgba(44, 24, 16, 0.07);
}

.m3-home-cta__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(122, 51, 51, 0.08);
  color: #7a3333;
  font-size: 12px;
  font-weight: 800;
}

.m3-home-cta__copy h2 {
  margin: 0 0 6px;
  font-family: "Cairo", sans-serif;
  font-size: clamp(1.2rem, 2.8vw, 1.55rem);
  font-weight: 900;
  color: #2c1810;
}

.m3-home-cta__copy p {
  margin: 0;
  max-width: 36rem;
  color: #6b4c3b;
  font-size: 14px;
  line-height: 1.65;
}

.m3-home-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.m3-home-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  background: #7a3333;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.m3-home-cta__btn:hover {
  color: #fff;
  background: #5c2222;
  transform: translateY(-1px);
}

.m3-home-cta__btn--wa { background: #25d366; }
.m3-home-cta__btn--wa:hover { background: #1da851; }

.m3-home-cta__btn--ghost {
  background: #fff;
  color: #7a3333;
  border: 1px solid rgba(122, 51, 51, 0.2);
}

.m3-home-cta__btn--ghost:hover {
  background: #fff;
  color: #5c2222;
}

/* Section “المزيد” button */
.m3-home-products__footer {
  display: flex;
  justify-content: center;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}

.m3-home-products__shop-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 46px;
  padding: 0 1.5rem;
  border-radius: 999px;
  background: linear-gradient(145deg, #7a3333 0%, #5c2222 100%);
  color: #fff;
  font-family: "Cairo", sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(122, 51, 51, 0.22);
  transition:
    transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.m3-home-products__shop-btn i {
  font-size: 0.85rem;
  transition: transform 0.25s ease;
}

.m3-home-products__shop-btn:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(122, 51, 51, 0.28);
}

.m3-home-products__shop-btn:hover i {
  transform: translateX(-3px);
}

.m3-home-products__shop-btn:focus-visible {
  outline: 2px solid #c4a484;
  outline-offset: 3px;
}

.m3-discover__item.is-pending {
  display: none;
}

.m3-discover__item.is-revealed {
  animation: m3DiscoverIn 0.35s ease both;
}

@keyframes m3DiscoverIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.m3-discover__sentinel {
  height: 1px;
  width: 100%;
  margin-top: 8px;
  pointer-events: none;
}

.m3-discover__loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
  color: #6b4c3b;
  font-family: "Cairo", sans-serif;
  font-size: 13px;
  font-weight: 700;
}

.m3-discover__loading[hidden] {
  display: none !important;
}

.m3-discover__spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(122, 51, 51, 0.2);
  border-top-color: #7a3333;
  animation: m3DiscoverSpin 0.7s linear infinite;
}

@keyframes m3DiscoverSpin {
  to { transform: rotate(360deg); }
}

.m3-discover__footer[hidden] {
  display: none !important;
}

.m3-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px 0 10px;
  border-radius: 999px;
  text-decoration: none;
  font-family: "Cairo", sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: #7a3333;
  background: #fff;
  border: 1px solid rgba(122, 51, 51, 0.16);
  box-shadow: 0 6px 16px rgba(44, 24, 16, 0.05);
  transition:
    color 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  white-space: nowrap;
  flex-shrink: 0;
}

.m3-more-btn i {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 12px;
  background: rgba(122, 51, 51, 0.08);
  color: #7a3333;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.m3-more-btn:hover {
  color: #fff;
  background: linear-gradient(145deg, #7a3333 0%, #5c2222 100%);
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(122, 51, 51, 0.22);
  transform: translateY(-1px);
}

.m3-more-btn:hover i {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  transform: translateX(-2px);
}

.m3-more-btn:focus-visible {
  outline: 2px solid rgba(196, 165, 116, 0.7);
  outline-offset: 3px;
}

.m3-home-products .section-content,
.m3-shop-by-category .section-content {
  gap: 12px;
}

@media (max-width: 767px) {
  .main-container {
    --m3-section-y: 24px;
    --m3-section-y-sm: 18px;
  }

  .m3-home-journey__steps {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .cms.m3-trust-strip .row.g-4 {
    --bs-gutter-y: 0.75rem;
  }

  .m3-more-btn {
    min-height: 36px;
    padding: 0 12px 0 8px;
    font-size: 12px;
  }

  .m3-more-btn i {
    width: 24px;
    height: 24px;
  }
}
