/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: #D9D9D9;
  overflow-x: hidden;
}

.h-page {
  max-width: 1440px;
  margin: 0 auto;
  background: #FFFFFF;
  overflow: hidden;
  position: relative;
}

/* ===== HEADER (h-) ===== */
.h-section {
  position: relative;
}

.h-top-bar {
  display: flex;
  align-items: center;
  padding: 56px 85px 0;
  position: relative;
  z-index: 10;
}

.h-logo {
  font-size: 40px;
  font-weight: 600;
  color: #845EC2;
  line-height: 49px;
}

.h-nav {
  margin-left: 460px;
  margin-top: 0;
}

.h-nav-list {
  display: flex;
  list-style: none;
  gap: 75px;
}

.h-nav-list a {
  font-size: 20px;
  font-weight: 600;
  color: #FFFFFF;
  text-decoration: none;
  line-height: 24.38px;
}

.h-green-bar {
  height: 81px;
  background: #10B981;
  position: relative;
  margin-top: -49px;
  z-index: 1;
}

.h-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  padding: 0 85px;
  margin-top: -66px;
  position: relative;
  z-index: 5;
}

.h-search-box {
  display: flex;
  align-items: center;
  width: 322px;
  height: 63px;
  background: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 15px 50px rgba(46, 131, 158, 0.07);
  padding: 0 12px;
}

.h-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #292930;
  opacity: 0.2;
  margin-left: 20px;
  background: transparent;
}

.h-search-input::placeholder {
  color: #292930;
  opacity: 0.2;
}

.h-search-icon {
  width: 38px;
  height: 38px;
  background: #10B981;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.h-search-icon svg {
  width: 21px;
  height: 21px;
}

.h-cart-btn {
  display: flex;
  align-items: center;
  gap: 15px;
  width: 229px;
  height: 60px;
  border-radius: 30px;
  border: 2px solid #10B981;
  box-shadow: 0 10px 35px rgba(0,0,0,0.1);
  background: transparent;
  padding: 0 24px;
  cursor: pointer;
}

.h-cart-btn svg { width: 24px; height: 24px; flex-shrink: 0; }
.h-cart-btn span { font-size: 16px; font-weight: 500; color: #2B2626; line-height: 60px; }

.h-login-btn {
  display: flex;
  align-items: center;
  gap: 15px;
  width: 247px;
  height: 60px;
  border-radius: 30px;
  background: #10B981;
  box-shadow: 0 10px 35px rgba(0,0,0,0.1);
  border: none;
  padding: 0 24px;
  cursor: pointer;
}

.h-login-btn svg { width: 24px; height: 24px; flex-shrink: 0; }
.h-login-btn span { font-size: 16px; font-weight: 500; color: #FFFFFF; line-height: 60px; }

/* Hero */
.h-hero {
  display: flex;
  padding: 0 85px;
  margin-top: 30px;
  position: relative;
}

.h-hero-left { flex: 1; max-width: 599px; padding-top: 60px; }

.h-hero-title {
  font-size: 64px;
  font-weight: 600;
  color: #2B2626;
  line-height: 78.02px;
  margin-bottom: 30px;
}

.h-hero-desc {
  font-size: 21px;
  font-weight: 500;
  color: #2B2626;
  line-height: 35px;
  max-width: 549px;
  margin-bottom: 40px;
}

.h-buy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 263px;
  height: 70px;
  background: #10B981;
  border-radius: 10px;
  box-shadow: 0 25px 50px rgba(132, 94, 194, 0.15);
  border: none;
  cursor: pointer;
}

.h-buy-btn span { font-size: 21px; font-weight: 600; color: #FFFFFF; line-height: 26px; }

.h-hero-bottom {
  display: flex;
  align-items: center;
  margin-top: 60px;
  gap: 16px;
}

.h-avatars { display: flex; align-items: center; }

.h-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid #FFFFFF;
  object-fit: cover;
  margin-left: -12px;
}

.h-avatar:first-child { margin-left: 0; }

.h-reviews-text { font-size: 26px; font-weight: 500; color: #2B2626; line-height: 35px; white-space: nowrap; }
.h-play-video { font-size: 21px; font-weight: 500; color: #2B2626; line-height: 35px; margin-left: 40px; white-space: nowrap; cursor: pointer; }

.h-hero-right { position: relative; flex: 1; display: flex; justify-content: flex-end; align-items: flex-start; }

.h-product-card {
  width: 272px;
  height: 477px;
  background: #ECFEF4;
  border-radius: 136px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 76px;
  margin-top: -20px;
}

.h-product-card img { width: 280px; height: 299px; object-fit: stretch; }
.h-product-price { font-size: 31px; font-weight: 600; color: #2B2626; line-height: 38px; margin-top: 26px; }

.h-indicators { display: flex; gap: 8px; margin-top: 20px; }
.h-indicator { width: 27px; height: 4px; border-radius: 2px; }
.h-indicator.active { background: #2E839E; }
.h-indicator:not(.active) { background: #D7E8F0; }

.h-deco-circle {
  position: absolute;
  width: 115px;
  height: 115px;
  right: 100px;
  bottom: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.h-deco-circle-inner {
  width: 69px;
  height: 69px;
  border-radius: 50%;
  background: #D9D9D9;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.h-deco-circle-inner img {
  width: 112px;
  height: 75px;
  object-fit: stretch;
}

.h-deco-ring {
  position: absolute;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 2px solid #000000;
  transform: rotate(59.74deg);
  top: 15px;
  left: 15px;
}

.h-star-deco { position: absolute; width: 53px; height: 53px; }
.h-star-deco svg { width: 53px; height: 53px; }
.h-star-1 { top: 282px; right: 310px; }
.h-star-2 { bottom: 50px; right: 50px; }

/* ===== FEATURED PRODUCTS (h- prefix, shares header space) ===== */
.h-featured {
  width: 100%;
  background: #845EC2;
  padding: 73px 85px;
  display: flex;
  gap: 60px;
  min-height: 591px;
}

.h-featured-left { flex: 1; display: flex; flex-direction: column; justify-content: center; }

.h-featured-left h2 {
  font-size: 60px;
  font-weight: 600;
  color: #FFFFFF;
  line-height: 73.14px;
  margin-bottom: 20px;
}

.h-price-label { font-size: 31px; font-weight: 400; color: #FFFFFF; line-height: 37.79px; }
.h-price-value { font-size: 31px; font-weight: 600; color: #FFFFFF; line-height: 38px; margin-left: 10px; }

.h-featured-imgs { display: flex; align-items: flex-end; gap: 32px; margin-top: 40px; }

.h-prod-img { object-fit: cover; }
.h-prod-img-1 { width: 189px; height: 331px; border-radius: 179px; }
.h-prod-img-2 { width: 189px; height: 331px; border-radius: 179px; }
.h-prod-img-3 { width: 181px; height: 317px; border-radius: 136px; }

.h-featured-right { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-left: 40px; }

.h-featured-right h3 { font-size: 44px; font-weight: 600; color: #FFFFFF; line-height: 54px; margin-bottom: 16px; }
.h-featured-right p { font-size: 21px; font-weight: 500; color: #FFFFFF; line-height: 35px; max-width: 500px; margin-bottom: 30px; }
.h-view-more { font-size: 21px; font-weight: 600; color: #FFFFFF; line-height: 35px; margin-bottom: 20px; cursor: pointer; }

.h-add-cart-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 263px;
  height: 70px;
  background: #10B981;
  border-radius: 10px;
  box-shadow: 0 25px 50px rgba(255,255,255,0.1);
  border: none;
  cursor: pointer;
}

.h-add-cart-btn span { font-size: 21px; font-weight: 600; color: #FFFFFF; line-height: 26px; }

/* ===== TOP SELLERS (s-) ===== */
.s-section {
  width: 100%;
  background: #FFFFFF;
  padding: 85px;
}

.s-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-bottom: 60px;
  position: relative;
}

.s-header h2 { font-size: 44px; font-weight: 600; color: #2B2626; line-height: 54px; }

.s-nav { position: absolute; right: 0; top: 50%; transform: translateY(-50%); cursor: pointer; }
.s-nav svg { width: 64px; height: 64px; }

.s-categories { display: flex; align-items: center; gap: 32px; margin-bottom: 50px; }

.s-cat-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 177px;
  height: 91px;
  background: #10B981;
  border-radius: 45.5px;
  font-size: 26px;
  font-weight: 600;
  color: #FFFFFF;
  line-height: 32px;
}

.s-cat-text { font-size: 26px; font-weight: 600; color: #000000; line-height: 32px; }

.s-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 93px; }

.s-card { position: relative; border-radius: 15px; display: flex; flex-direction: column; }
.s-card.s-bg-1 { background: #ECFEF4; }
.s-card.s-bg-2 { background: #C9F2FF; }
.s-card.s-bg-3 { background: #E5D5FF; }

.s-img-wrap { display: flex; justify-content: center; padding: 30px 0 10px; position: relative; }
.s-img-wrap img { width: 196px; height: 196px; object-fit: contain; }
.s-img-wrap.s-img-wide img { width: 241px; height: 241px; }

.s-badge {
  position: absolute;
  top: 13px;
  left: 13px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  color: #FFFFFF;
  line-height: 22px;
  text-align: center;
}

.s-badge-green { background: #10B981; }
.s-badge-purple { background: #845EC2; }

.s-info {
  background: #FFFFFF;
  border-radius: 15px;
  margin: 0 21px 21px;
  padding: 31px 24px 24px;
  display: flex;
  flex-direction: column;
}

.s-name { font-size: 21px; font-weight: 500; color: #2B2626; line-height: 35px; }

.s-review { display: flex; align-items: center; gap: 4px; margin-top: 8px; }
.s-stars { display: flex; gap: 2px; }
.s-star { width: 17px; height: 17px; }
.s-star svg { width: 17px; height: 17px; }
.s-review-count { font-size: 11px; font-weight: 500; color: #888888; line-height: 35px; margin-left: 8px; }

.s-price { font-size: 21px; font-weight: 600; color: #2B2626; line-height: 26px; margin-top: 12px; }

.s-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 93px; margin-top: 40px; }
.s-btns .h-add-cart-btn { width: 100%; }

/* ===== TRENDING EARPHONES (e-) ===== */
.e-section {
  width: 100%;
  background: #FFFFFF;
  padding: 85px;
}

.e-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-bottom: 60px;
  position: relative;
}

.e-header h2 { font-size: 44px; font-weight: 600; color: #2B2626; line-height: 54px; }

.e-nav { position: absolute; right: 0; top: 50%; transform: translateY(-50%); cursor: pointer; }
.e-nav svg { width: 64px; height: 64px; }

.e-categories { display: flex; align-items: center; gap: 32px; margin-bottom: 50px; }

.e-cat-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 177px;
  height: 91px;
  background: #10B981;
  border-radius: 45.5px;
  font-size: 26px;
  font-weight: 600;
  color: #FFFFFF;
  line-height: 32px;
}

.e-cat-text { font-size: 26px; font-weight: 600; color: #000000; line-height: 32px; }

.e-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 93px; }

.e-card { position: relative; border-radius: 15px; display: flex; flex-direction: column; }
.e-card.e-bg-1 { background: #E0EFFF; }
.e-card.e-bg-2 { background: #E8F9FF; }
.e-card.e-bg-3 { background: #D3FBFB; }

.e-img-wrap { display: flex; justify-content: center; padding: 30px 0 10px; position: relative; }
.e-img-wrap img { width: 168px; height: 168px; object-fit: contain; }
.e-img-wrap.e-img-wide img { width: 241px; height: 241px; }
.e-img-wrap.e-img-big img { width: 250px; height: 250px; }

.e-badge {
  position: absolute;
  top: 13px;
  left: 13px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  color: #FFFFFF;
  line-height: 22px;
  text-align: center;
}

.e-badge-green { background: #10B981; }
.e-badge-teal { background: #08BDBE; }

.e-info {
  background: #FFFFFF;
  border-radius: 15px;
  margin: 0 21px 21px;
  padding: 31px 24px 24px;
  display: flex;
  flex-direction: column;
}

.e-name { font-size: 21px; font-weight: 500; color: #2B2626; line-height: 35px; }

.e-review { display: flex; align-items: center; gap: 4px; margin-top: 8px; }
.e-stars { display: flex; gap: 2px; }
.e-star { width: 17px; height: 17px; }
.e-star svg { width: 17px; height: 17px; }
.e-review-count { font-size: 11px; font-weight: 500; color: #888888; line-height: 35px; margin-left: 8px; }

.e-price { font-size: 21px; font-weight: 600; color: #2B2626; line-height: 26px; margin-top: 12px; }

.e-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 93px; margin-top: 40px; }
.e-btns .h-add-cart-btn { width: 100%; }

/* ===== NEW LAUNCHES (l-) ===== */
.l-section {
  width: 100%;
  background: #FFFFFF;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.l-title {
  text-align: center;
  font-size: 44px;
  font-weight: 600;
  color: #2B2626;
  line-height: 54px;
  margin-bottom: 60px;
}

.l-bg {
  background: #845EC2;
  min-height: 591px;
  padding: 62px 124px;
  display: flex;
  gap: 80px;
  align-items: center;
}

.l-imgs { display: flex; gap: 46px; flex-shrink: 0; }

.l-img-card {
  width: 238px;
  height: 418px;
  background: #ECFEF4;
  border-radius: 136px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.l-img-card img { width: 100%; height: 100%; object-fit: cover; }

.l-info { flex: 1; display: flex; flex-direction: column; gap: 50px; justify-content: center; }

.l-heading { font-size: 60px; font-weight: 600; color: #FFFFFF; line-height: 73.14px; max-width: 504px; }

.l-desc { font-size: 21px; font-weight: 500; color: #FFFFFF; line-height: 35px; max-width: 584px; }

.l-price-label { font-size: 31px; font-weight: 400; color: #FFFFFF; line-height: 37.79px; }
.l-price-value { font-weight: 600; margin-left: 10px; }

.l-color-picker { display: flex; gap: 30px; align-items: center; }

.l-color-dot { width: 43px; height: 43px; border-radius: 50%; }
.l-color-black { background: #111111; border: 2px solid #FF0000; }
.l-color-yellow { background: #FFF500; }
.l-color-blue { background: #4484FF; }

.l-btns { display: flex; gap: 40px; align-items: center; }

.l-explore { font-size: 21px; font-weight: 600; color: #FFFFFF; line-height: 26px; cursor: pointer; }

.l-nav-arrows {
  display: flex;
  justify-content: space-between;
  margin-top: -80px;
  padding: 0 60px;
  position: relative;
  z-index: 5;
}

.l-nav-arrow {
  width: 48px;
  height: 48px;
  background: #10B981;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.l-nav-arrow svg { width: 24px; height: 24px; }

/* ===== FOOTER (f-) ===== */
.f-section {
  width: 100%;
  background: #FFFFFF;
  padding: 80px 186px;
  font-family: 'DM Sans', sans-serif;
}

.f-cta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 40px;
  margin-bottom: 40px;
}

.f-cta p {
  font-size: 22px;
  font-weight: 400;
  color: #111111;
  line-height: 29px;
  letter-spacing: -0.3px;
}

.f-get-started-btn {
  width: 175px;
  height: 50px;
  background: #10B981;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 22.13px;
  letter-spacing: -0.23px;
}

.f-divider {
  width: 100%;
  height: 1px;
  background: #111111;
  opacity: 0.1;
  margin-bottom: 40px;
}

.f-links {
  display: flex;
  gap: 80px;
  margin-bottom: 60px;
}

.f-col { display: flex; flex-direction: column; gap: 0; }

.f-col-title {
  font-size: 17px;
  font-weight: 700;
  color: #10B981;
  line-height: 22.13px;
  letter-spacing: -0.23px;
  margin-bottom: 42px;
}

.f-col a {
  font-size: 15px;
  font-weight: 400;
  color: #111111;
  line-height: 20px;
  letter-spacing: -0.2px;
  text-decoration: none;
  margin-bottom: 40px;
}

.f-newsletter {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #111111;
  padding-bottom: 5px;
  width: 100%;
}

.f-newsletter-input {
  flex: 1;
  border: none;
  outline: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: #111111;
  line-height: 20px;
  letter-spacing: -0.2px;
  background: transparent;
}

.f-newsletter-input::placeholder {
  color: #111111;
  opacity: 0.3;
}

.f-newsletter-submit {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 0 0 10px;
  display: flex;
  align-items: center;
}

.f-newsletter-submit svg {
  width: 20px;
  height: 20px;
}

.f-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.f-bottom-links {
  display: flex;
  gap: 20px;
}

.f-bottom-links a {
  font-size: 15px;
  font-weight: 400;
  color: #111111;
  line-height: 20px;
  letter-spacing: -0.2px;
  text-decoration: none;
}

.f-social {
  display: flex;
  gap: 20px;
  align-items: center;
}

.f-social a {
  display: flex;
  align-items: center;
}

.f-social svg {
  display: block;
}

/* ===== RESPONSIVE ===== */

/* Tablet (max-width: 1200px) */
@media (max-width: 1200px) {
  .h-top-bar {
    flex-wrap: wrap;
    padding: 40px 40px 0;
  }

  .h-nav {
    margin-left: auto;
  }

  .h-nav-list {
    gap: 40px;
  }

  .h-actions {
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 40px;
    gap: 16px;
  }

  .h-search-box {
    width: 280px;
  }

  .h-hero {
    flex-direction: column;
    padding: 0 40px;
    align-items: center;
  }

  .h-hero-left {
    max-width: 100%;
    padding-top: 30px;
  }

  .h-hero-title {
    font-size: 48px;
    line-height: 60px;
  }

  .h-hero-right {
    justify-content: center;
    margin-top: 40px;
  }

  .h-featured {
    flex-direction: column;
    padding: 50px 40px;
    gap: 40px;
  }

  .h-featured-right {
    padding-left: 0;
  }

  .h-featured-imgs {
    flex-wrap: wrap;
  }

  .s-section, .e-section {
    padding: 50px 40px;
  }

  .s-grid, .e-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .s-btns, .e-btns {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .l-bg {
    flex-direction: column;
    padding: 40px;
    gap: 40px;
  }

  .l-imgs {
    justify-content: center;
  }

  .l-heading {
    font-size: 44px;
    line-height: 54px;
  }

  .f-section {
    padding: 40px 40px;
  }

  .f-links {
    flex-wrap: wrap;
    gap: 40px;
  }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
  .h-top-bar {
    flex-direction: column;
    align-items: center;
    padding: 30px 20px 0;
    gap: 20px;
  }

  .h-nav {
    margin-left: 0;
  }

  .h-nav-list {
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .h-nav-list a {
    font-size: 16px;
  }

  .h-actions {
    flex-direction: column;
    align-items: center;
    padding: 0 20px;
  }

  .h-search-box {
    width: 100%;
    max-width: 322px;
  }

  .h-hero {
    padding: 0 20px;
  }

  .h-hero-title {
    font-size: 36px;
    line-height: 44px;
  }

  .h-hero-desc {
    font-size: 18px;
    line-height: 28px;
  }

  .h-hero-bottom {
    flex-wrap: wrap;
  }

  .h-reviews-text {
    font-size: 20px;
  }

  .h-play-video {
    margin-left: 0;
    font-size: 18px;
  }

  .h-featured {
    padding: 30px 20px;
  }

  .h-featured-left h2 {
    font-size: 40px;
    line-height: 50px;
  }

  .h-featured-right h3 {
    font-size: 32px;
    line-height: 40px;
  }

  .h-prod-img-1, .h-prod-img-2 {
    width: 140px;
    height: 240px;
  }

  .h-prod-img-3 {
    width: 140px;
    height: 240px;
  }

  .s-section, .e-section {
    padding: 30px 20px;
  }

  .s-header h2, .e-header h2 {
    font-size: 32px;
    line-height: 40px;
  }

  .s-grid, .e-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .s-btns, .e-btns {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .s-categories, .e-categories {
    flex-wrap: wrap;
    gap: 16px;
  }

  .s-cat-pill, .e-cat-pill {
    width: 140px;
    height: 60px;
    font-size: 20px;
  }

  .l-title {
    font-size: 32px;
    line-height: 40px;
    margin-bottom: 30px;
  }

  .l-bg {
    padding: 30px 20px;
  }

  .l-imgs {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .l-img-card {
    width: 200px;
    height: 350px;
  }

  .l-heading {
    font-size: 36px;
    line-height: 44px;
  }

  .l-info {
    gap: 30px;
  }

  .l-btns {
    flex-wrap: wrap;
    gap: 20px;
  }

  .l-nav-arrows {
    padding: 0 20px;
  }

  .f-section {
    padding: 30px 20px;
  }

  .f-cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .f-links {
    flex-direction: column;
    gap: 30px;
  }

  .f-bottom {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
}
