/* ═══════════════════════════════════════════
   INDEX.CSS  —  SomGen Fashion Homepage
   Covers: hero, about, popular, how-it-works
═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
  --purple:      #44234a;
  --purple-lt:   #7c3aed;
  --purple-pale: #f3f0f6;
  --dark:        #111;
  --mid:         #6b7280;
  --border:      #e5e7eb;
  --radius:      12px;
  --white:       #ffffff;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Poppins', sans-serif;
  background: var(--purple-pale);
  color: var(--dark);
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* body offset for fixed header (60px top bar + 38px nav strip) */
body { padding-top: 98px; }

ul { list-style: none; padding: 0; }

a { text-decoration: none; color: inherit; }

/* ── Shared Helpers ── */
.section-badge {
  display: inline-block;
  background: var(--purple);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 14px;
  border-radius: 99px;
  margin-bottom: 10px;
}

.section-badge.light {
  background: rgba(255,255,255,0.18);
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--purple);
  margin-bottom: 8px;
}

.section-header p {
  font-size: 15px;
  color: var(--mid);
}

/* ── Buttons ── */
.btn-primary-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--purple);
  color: #fff;
  padding: 12px 28px;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.2s, transform 0.2s;
}

.btn-primary-hero:hover {
  background: var(--purple-lt);
  transform: translateY(-2px);
  color: #fff;
}

.btn-outline-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--purple);
  color: var(--purple);
  padding: 10px 26px;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.2s;
}

.btn-outline-hero:hover {
  background: var(--purple);
  color: #fff;
}

/* ════════════════════════════════
   HERO SECTION
════════════════════════════════ */
.hero-section {
  min-height: calc(100vh - 98px);
  background: linear-gradient(135deg, #f3f0f6 50%, #ede0ff 100%);
  display: flex;
  align-items: center;
}

.hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  padding: 60px 40px;
  display: flex;
  align-items: center;
  gap: 60px;
}

/* Left text */
.hero-text { flex: 1; }

.hero-text h3 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--purple-lt);
  margin-bottom: 10px;
}

.hero-text h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--purple);
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero-text p {
  font-size: 16px;
  color: var(--mid);
  margin-bottom: 28px;
  max-width: 440px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

/* Stats row inside hero */
.hero-stats {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  padding-top: 28px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.stat-num {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--purple);
}

.stat-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--mid);
  text-transform: uppercase;
  letter-spacing: .6px;
}

/* Right carousel */
.hero-carousel {
  flex-shrink: 0;
  width: 420px;
  height: 380px;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(68,35,70,.25);
}

.hero-carousel .swiper-slide img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 32px;
}

.hero-carousel .swiper-button-next,
.hero-carousel .swiper-button-prev {
  color: #fff;
  --swiper-navigation-size: 20px;
}

.hero-carousel .swiper-pagination-bullet-active {
  background: var(--purple);
}

/* ════════════════════════════════
   ABOUT SECTION
════════════════════════════════ */
.about-section {
  background: #1e0d26;
  padding: 90px 40px;
}

.about-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 70px;
}

.about-inner img {
  width: 420px;
  border-radius: 24px;
  box-shadow: 0 12px 60px rgba(0,0,0,.5);
  flex-shrink: 0;
  object-fit: cover;
  height: 360px;
  border: 3px solid rgba(124,58,237,.3);
}

.about-text .section-badge {
  background: var(--purple-lt);
}

.about-text h2 {
  font-size: 2.8rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 14px;
}

.about-text > p {
  font-size: 15px;
  color: #c4b5d8;
  line-height: 1.8;
  margin-bottom: 28px;
}

/* ── Inline 3-step process inside About ── */
.about-steps {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.about-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
  min-width: 120px;
}

.about-step-icon {
  position: relative;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  background: var(--purple-lt);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
}

.step-num {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #f59e0b;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-step-text strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}

.about-step-text p {
  font-size: 11.5px;
  color: #a78fbf;
  line-height: 1.5;
  margin: 0;
}

.about-step-arrow {
  color: #6d28d9;
  font-size: 14px;
  padding-top: 14px;
  flex-shrink: 0;
}

/* ════════════════════════════════
   POPULAR FASHION SECTION
════════════════════════════════ */
.popular-section {
  padding: 90px 40px;
  background: var(--purple-pale);
}

.popular-inner {
  max-width: 1280px;
  margin: 0 auto;
}

/* Product grid — matches shop.css style */
.pop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 20px;
  margin-bottom: 36px;
}

.pop-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  color: inherit;
}

.pop-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 28px rgba(0,0,0,.12);
}

.pop-card-img {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f3f4f6;
}

.pop-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.pop-card:hover .pop-card-img img { transform: scale(1.06); }

.pop-card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.pop-card-body h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 5px;
}

.pop-card-body p {
  font-size: 12px;
  color: var(--mid);
  flex: 1;
  line-height: 1.5;
  margin-bottom: 14px;
}

.pop-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pop-price {
  font-size: 17px;
  font-weight: 900;
  color: var(--purple);
}

.pop-btn {
  background: var(--purple);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 99px;
  transition: background 0.15s;
}

.pop-card:hover .pop-btn { background: var(--purple-lt); }

.popular-cta {
  text-align: center;
  margin-top: 10px;
}

/* ════════════════════════════════
   FOOTER LAST LINE
════════════════════════════════ */
.last-text {
  background: #111;
  text-align: center;
  padding: 14px 0;
}

.last-text p {
  color: #9c9da5;
  font-size: 13px;
  font-weight: 300;
}

.last-text a { color: var(--purple-lt); }

/* ════════════════════════════════
   RESPONSIVE
════════════════════════════════ */
@media (max-width: 900px) {

  .hero-inner {
    flex-direction: column;
    padding: 40px 24px 50px;
    gap: 36px;
    text-align: center;
  }

  .hero-text p,
  .hero-cta { justify-content: center; }

  .hero-stats { justify-content: center; }

  .hero-carousel {
    width: 100%;
    max-width: 420px;
    height: 300px;
  }

  .hero-carousel .swiper-slide img { height: 300px; }

  .about-inner {
    flex-direction: column;
    padding: 0;
    text-align: center;
  }

  .about-inner img {
    width: 100%;
    max-width: 420px;
    height: 260px;
  }

  .about-steps { justify-content: center; }

  .about-step-arrow { display: none; }

  .pop-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
}

@media (max-width: 560px) {

  .hero-section { min-height: auto; }

  .hero-text h1 { font-size: 2.2rem; }

  .hero-stats { gap: 18px; }

  .section-header h2 { font-size: 1.7rem; }

  .popular-section,
  .about-section,
  .how-section { padding: 60px 20px; }

  .pop-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }

  .pop-card-body h3 { font-size: 13px; }
}