/* assets/home.css - Homepage Specific Styling */

/* ── Container Alignment System for Homepage ── */
.hero-container,
.home-categories-wrapper,
.home-trending-wrapper,
.botm-layout,
.hc-layout,
.home-fabrics-teaser .page-width {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.5rem;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 992px) {
  .hero-container,
  .home-categories-wrapper,
  .home-trending-wrapper,
  .botm-layout,
  .hc-layout,
  .home-fabrics-teaser .page-width {
    padding-inline: 2.5rem;
  }
}

/* ── Hero Section & Banner Slider ── */
.hero-section {
  background-color: #faf6f0;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.hero-skeleton-slide {
  background-color: #faf6f0;
  display: flex !important;
  align-items: center;
  height: 100%;
  min-height: 500px;
}

@media (min-width: 992px) {
  .hero-skeleton-slide {
    height: 85vh;
  }
}

.hero-swiper {
  width: 100%;
  height: 100%;
}

.hero-swiper .swiper-slide {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
}

.hero-container {
  display: flex;
  align-items: center;
  min-height: 500px;
  padding-top: 40px;
}

@media (min-width: 992px) {
  .hero-container {
    height: 85vh;
    min-height: 580px;
    padding-top: 20px;
  }
}

@media (max-width: 767px) {
  .hero-container {
    min-height: 450px;
    padding-top: 60px;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 1rem;
  max-width: 650px;
  box-sizing: border-box;
}

@media (min-width: 992px) {
  .hero-content {
    gap: 1.5rem;
  }
}

.hero-subtitle {
  display: block;
  font-size: 1.3rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #f1f1f1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  text-align: left;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(3.6rem, 5.5vw, 6.5rem);
  line-height: 1.1;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  text-align: left;
  margin: 0;
}

.hero-accent {
  display: block;
  font-style: italic;
  color: #f1f1f1;
}

.hero-desc {
  font-size: 1.7rem;
  line-height: 1.7;
  color: #f5f5f5;
  text-align: left;
  max-width: 550px;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1.4rem 3.5rem;
  background: #800020;
  color: #fff !important;
  font-family: var(--font-body);
  font-size: 1.35rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid #800020;
  border-radius: var(--radius-sm, 4px);
  transition: all 0.3s ease;
}

.hero-btn:hover {
  background: #800020 !important;
  border-color: #800020 !important;
  color: #fff !important;
}

.hero-swiper .swiper-pagination-bullet {
  background: #fff;
  opacity: 0.5;
}

.hero-swiper .swiper-pagination-bullet-active {
  opacity: 1;
}

/* ── Section Specific Elements ── */
.home-fabrics-teaser {
  background-color: var(--primary-color, #800020);
  padding-block: var(--space-6, 5rem);
}

.home-fabrics-teaser .section-header {
  margin-bottom: var(--space-5, 3.5rem);
  text-align: center;
}

.home-fabrics-teaser .botm-header-subtitle {
  color: var(--yellow-color, #D4A843);
  font-size: var(--text-xs, 1.3rem);
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.home-fabrics-teaser .section__heading--maintitle {
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 3.5vw, 4rem);
}

.fabrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-4, 2rem);
  margin-bottom: var(--space-5, 3.5rem);
}

.view-all-center {
  text-align: center;
}

.home-fabrics-teaser__btn {
  background: #ffffff;
  color: #800020 !important;
  border-color: #ffffff;
  font-weight: 600;
}

.home-fabrics-teaser__btn:hover {
  background: #fff !important;
  color: #800020 !important;
}

/* Hero loading skeleton placeholders */
@keyframes skeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-content {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  width: 100%;
}

.skeleton-line {
  display: block;
  border-radius: 4px;
  background: linear-gradient(90deg, #e6dfd6 0%, #f7f3ed 50%, #e6dfd6 100%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s infinite ease-in-out;
}

.skeleton-subtitle {
  width: 180px;
  height: 1.1rem;
}

.skeleton-title {
  width: 90%;
  height: clamp(3.2rem, 5.5vw, 5rem);
  border-radius: 6px;
}

.skeleton-title-short {
  width: 55%;
  height: clamp(3.2rem, 5.5vw, 5rem);
  border-radius: 6px;
}

.skeleton-desc-long {
  width: 75%;
  height: 1.05rem;
  margin-top: 0.4rem;
}

.skeleton-desc-short {
  width: 55%;
  height: 1.05rem;
}

.skeleton-button {
  width: 170px;
  height: 48px;
  margin-top: 0.6rem;
  border-radius: 4px;
  background: linear-gradient(90deg, #d8d0c6 0%, #f0ebe4 50%, #d8d0c6 100%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s infinite ease-in-out;
}
