/* ============================================
   FASHION STORE — Homepage Styles
   ============================================ */

/* ── Dual Hero Banner ── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: clamp(400px, calc(100vh - var(--header-height)), 720px);
}

@media (max-width: 767px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    max-height: none;
  }
}

.hero-tile {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: var(--space-10);
}

@media (max-width: 767px) {
  .hero-tile {
    min-height: 420px;
    padding: var(--space-6);
  }
}

.hero-tile-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-tile-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 8s ease-out;
}

.hero-tile:hover .hero-tile-bg img {
  transform: scale(1.03);
}

.hero-tile-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-tile--left .hero-tile-overlay {
  background: linear-gradient(
    to top,
    rgba(31, 27, 24, 0.7) 0%,
    rgba(31, 27, 24, 0.35) 40%,
    rgba(31, 27, 24, 0.05) 100%
  );
}

.hero-tile--right .hero-tile-overlay {
  background: linear-gradient(
    to top,
    rgba(31, 27, 24, 0.6) 0%,
    rgba(31, 27, 24, 0.25) 40%,
    rgba(31, 27, 24, 0.02) 100%
  );
}

.hero-tile-content {
  position: relative;
  z-index: 2;
  color: var(--color-text-inverse);
  max-width: 400px;
}

.hero-tile-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  margin-bottom: var(--space-3);
  opacity: 0.8;
}

.hero-tile-content h2 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  color: var(--color-text-inverse);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-3);
}

@media (min-width: 1024px) {
  .hero-tile-content h2 {
    font-size: var(--text-4xl);
  }
}

.hero-tile-content p {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-6);
  line-height: var(--leading-relaxed);
}

.hero-ctas {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.hero-ctas .btn-primary {
  background-color: var(--color-bg-surface);
  color: var(--color-text-primary);
}

.hero-ctas .btn-primary:hover {
  background-color: rgba(255, 255, 255, 0.9);
}

.hero-ctas .btn-secondary {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--color-text-inverse);
}

.hero-ctas .btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: var(--color-text-inverse);
}

/* ── Product Grid Section ── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-6);
  }
}

@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-6);
  }
}

/* ── Category Rail Section (Department Circular Shortcuts) ── */
.category-rail-section {
  padding: var(--space-6) 0 var(--space-4);
  border-bottom: 1px solid var(--color-border-light);
  background-color: rgba(250, 249, 246, 0.6);
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.category-rail-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

@media (max-width: 767px) {
  .category-rail-wrapper {
    justify-content: flex-start;
  }
}

/* ── Catalog Section (Harmonized Vertical Rhythm) ── */
.catalog-section {
  padding: var(--space-8) 0 var(--space-16);
}

.catalog-header {
  margin-bottom: var(--space-4);
}

.catalog-header-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.catalog-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text-heading);
}

.catalog-header p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

/* ── Trust Section (Modernized Luxury Cards) ── */
.trust-section {
  padding: var(--space-10) 0 var(--space-16);
  background-color: var(--color-bg-secondary);
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
}

.trust-section .trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

@media (min-width: 640px) {
  .trust-section .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .trust-section .trust-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.trust-item {
  background-color: var(--color-bg-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  transition: all var(--duration-fast) var(--ease-out);
  display: flex;
  flex-direction: column;
}

.trust-item:hover {
  transform: translateY(-2px);
  border-color: var(--color-gold-border);
  box-shadow: var(--shadow-sm);
}

.trust-item-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background-color: var(--color-gold-light);
  color: var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  flex-shrink: 0;
}

.trust-item-icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.75;
}

.trust-item-title {
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--color-text-heading);
  letter-spacing: var(--tracking-wide);
  margin-bottom: var(--space-1);
}

.trust-item-desc {
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

/* ── Product Card Entrance Animation ── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-card {
  animation: fadeInUp var(--duration-slow) var(--ease-out) both;
}

.product-card:nth-child(1) { animation-delay: 0ms; }
.product-card:nth-child(2) { animation-delay: 40ms; }
.product-card:nth-child(3) { animation-delay: 80ms; }
.product-card:nth-child(4) { animation-delay: 120ms; }
.product-card:nth-child(5) { animation-delay: 160ms; }
.product-card:nth-child(6) { animation-delay: 200ms; }
.product-card:nth-child(7) { animation-delay: 240ms; }
.product-card:nth-child(8) { animation-delay: 280ms; }

