/* MD3 Scandi — home layout (hero + shop). Header: md3-header.css */

/* ── Elegant hero ── */
#md3-hero.hero-elegant {
  position: relative;
  height: 100dvh;
  min-height: 520px;
  overflow: hidden;
  z-index: 1;
  background: #d4c9b8;
  font-family: 'Inter', 'Jost', Helvetica, sans-serif;
}

#md3-hero .hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

#md3-hero .hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 54% 36%;
  display: block;
  transition: object-position 0.9s cubic-bezier(0.4, 0, 0.2, 1);
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

#md3-hero .hero-gradient {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.05), transparent 45%, rgba(0, 0, 0, 0.1));
}

#md3-hero .hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  padding: 0 2rem;
}

#md3-hero .hero-content--left {
  justify-content: flex-start;
}

#md3-hero .hero-copy {
  max-width: 620px;
  padding-left: 0.5rem;
}

#md3-hero .hero-headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-feature-settings: "kern" 1, "tnum" 1, "ss01" 1;
  font-size: clamp(3.25rem, 8vw, 5.75rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.03em;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.18);
  margin: 0;
}

#md3-hero .luxury-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2.25rem;
  padding: 1.05rem 2.75rem;
  border: 2px solid #fff;
  background: transparent;
  color: #fff;
  text-decoration: none;
  font-family: 'Inter', 'Jost', system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#md3-hero .luxury-button:hover {
  background: #fff;
  color: #111;
  transform: translateY(-1px);
}

#md3-hero .luxury-button:active {
  transform: scale(0.985);
}

#md3-hero .hero-bottom-label {
  position: absolute;
  left: 50%;
  bottom: 2.25rem;
  z-index: 2;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

#md3-hero .hero-bottom-line {
  display: block;
  width: 1px;
  height: 1.75rem;
  background: rgba(255, 255, 255, 0.85);
}

#md3-hero .section-label {
  font-family: 'Inter', 'Jost', system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
}

html[dir="rtl"] #md3-hero .hero-content--left {
  justify-content: flex-end;
}

html[dir="rtl"] #md3-hero .hero-headline {
  font-family: 'Noto Sans Arabic', 'Playfair Display', serif;
}

@media (min-width: 768px) {
  #md3-hero .hero-copy {
    padding-left: 1.5rem;
  }

  #md3-hero .hero-bottom-label {
    bottom: 2.5rem;
  }
}

@media (min-width: 1024px) {
  #md3-hero .hero-content {
    padding-left: 1.5rem;
  }

  #md3-hero .hero-copy {
    padding-left: 2.5rem;
  }
}

@media (max-width: 767px) {
  #md3-hero .hero-bg-img {
    object-position: 50% 32%;
  }

  #md3-hero .luxury-button {
    padding: 0.95rem 2rem;
    font-size: 0.75rem;
    letter-spacing: 0.18em;
  }

  .featured-collection {
    padding: 5rem 1.5rem 3rem;
  }

  .featured-collection .featured-title {
    min-height: clamp(5.5rem, 14vh, 8rem);
    margin-bottom: 2rem;
    padding: 0 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  #md3-hero .hero-bg-img,
  #md3-hero .luxury-button {
    transition: none;
  }
}

/* Featured collection section */
.featured-collection {
  padding: 7rem 2rem 2.5rem;
  max-width: 1400px;
  margin: 0 auto;
  font-family: 'Inter', 'Jost', Helvetica, sans-serif;
  background: #f8f5f0;
}

.featured-collection .featured-title {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(7rem, 16vh, 10.5rem);
  text-align: center;
  font-family: 'Playfair Display', Georgia, serif;
  font-feature-settings: "kern" 1, "tnum" 1, "ss01" 1;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-transform: none;
  margin: 0 0 2.75rem;
  padding: 0 2rem;
  color: #111;
}

html[dir="rtl"] .featured-collection .featured-title {
  font-family: 'Noto Sans Arabic', 'Playfair Display', serif;
}

.featured-collection .product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.featured-collection .product-card {
  text-decoration: none;
  display: block;
  cursor: pointer;
  background: none;
  border: none;
  box-shadow: none;
}

.featured-collection .product-card:hover {
  transform: none;
  box-shadow: none;
}

.featured-collection .image-wrapper {
  background-color: #f7f7f7;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  margin-bottom: 1rem;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 4rem;
}

.featured-collection .image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.featured-collection .featured-emoji-fallback {
  line-height: 1;
}

.featured-collection .product-card:hover .image-wrapper img {
  transform: scale(1.04);
}

.featured-collection .product-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  padding: 0 0.25rem;
}

.featured-collection .product-name {
  font-weight: 400;
  color: #1a1a1a;
}

.featured-collection .product-price {
  color: #666;
  font-weight: 300;
}

.featured-collection .shop-empty-state {
  padding: 3rem 1rem;
}

@media (max-width: 1024px) {
  .featured-collection .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 600px) {
  .featured-collection .product-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
