/* ==========================================================================
   Vielle Beauty — home.css
   Homepage section styles. Only the hero is implemented so far (cloned
   from "Vielle Homepage.dc.html", <section id="top">) — later build-order
   steps append their own rules to this file.
   ========================================================================== */

/* Hero -------------------------------------------------------------------- */

.hero {
  position: relative;
  background: #fbdde6;
}

.hero__inner {
  position: relative;
  max-width: 1300px;
  margin: 0 auto;
  height: 430px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 52px 0 0 58px;
  max-width: 470px;
}

.hero__eyebrow {
  margin: 0 0 2px;
  font-family: var(--font-display);
  font-size: 26px;
  font-style: italic;
  color: #8a5364;
}

.hero__logo {
  height: 74px;
  width: auto;
  display: block;
  margin: 0 0 16px -4px;
}

.hero__tagline {
  margin: 0 0 22px;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.45;
  color: #7d4356;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(95deg, #f2648c, #e0577c);
  color: #fff;
  padding: 12px 26px;
  border-radius: 26px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 22px rgba(224, 87, 124, 0.32);
}

.hero__cta:hover,
.hero__cta:focus-visible {
  color: #fff;
}

.hero__dots {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 18px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.hero__dot {
  width: 7px;
  height: 7px;
  border-radius: 4px;
  background: #f0bccb;
}

.hero__dot--active {
  width: 22px;
  background: var(--brand-accent);
}

/* Category strip ------------------------------------------------------------ */

.category-strip {
  max-width: 1300px;
  margin: 0 auto;
  padding: 22px 28px 0;
}

.category-strip__wrap {
  position: relative;
}

.category-strip__track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  scroll-behavior: smooth;
}

.category-strip__card {
  flex: 0 0 122px;
  border: 1px solid #f7dde5;
  border-radius: 10px;
  background: #fff;
  padding: 8px 8px 10px;
  text-align: center;
  color: #5b4650;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.category-strip__card:hover,
.category-strip__card:focus-visible {
  border-color: #f0a8bf;
  box-shadow: 0 8px 18px rgba(224, 87, 124, 0.14);
  color: var(--brand-accent);
}

.category-strip__img {
  width: 100%;
  height: 78px;
  object-fit: cover;
  border-radius: 7px;
  display: block;
}

.category-strip__label {
  display: block;
  margin-top: 8px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.category-strip__next {
  position: absolute;
  right: -10px;
  top: 42%;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid #f3cfdc;
  background: #fff;
  color: var(--brand-accent);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(199, 110, 136, 0.2);
  font-size: 16px;
  line-height: 1;
}

/* Promo cards ---------------------------------------------------------------- */

.promo-grid {
  max-width: 1300px;
  margin: 0 auto;
  padding: 12px 28px 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.promo-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  padding: 18px 16px;
  height: 128px;
  display: block;
  color: #5b3a46;
  transition: box-shadow 0.15s ease;
}

.promo-card:hover,
.promo-card:focus-visible {
  color: #5b3a46;
  box-shadow: 0 10px 24px rgba(224, 87, 124, 0.18);
}

.promo-card__tag {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--brand-accent);
  color: #fff;
  font-size: 8.5px;
  font-weight: 700;
  line-height: 1.2;
  padding: 6px 9px;
  border-radius: 20px;
  text-align: center;
  white-space: pre-line;
}

.promo-card__img {
  position: absolute;
  right: -8px;
  bottom: -14px;
  width: 118px;
  height: 118px;
  object-fit: cover;
  border-radius: 50%;
  mix-blend-mode: multiply;
  opacity: 0.95;
}

.promo-card__title {
  position: relative;
  z-index: 2;
  display: block;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  max-width: 130px;
}

.promo-card__sub {
  position: relative;
  z-index: 2;
  display: block;
  margin-top: 6px;
  font-size: 10.5px;
  line-height: 1.4;
  max-width: 120px;
  opacity: 0.82;
}

.promo-card__cta {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 2;
  font-size: 11px;
  font-weight: 600;
  color: #d24a72;
}

/* Product grid sections (Best Sellers / New Arrivals) ----------------------- */

.product-grid-section {
  max-width: 1300px;
  margin: 0 auto;
  padding: 34px 28px 0;
}

.product-grid-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
}

.product-grid-section__head h2 {
  margin: 0;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.2px;
}

.product-grid-section__head a {
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-accent);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.product-card {
  border: 1px solid #f7dde5;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.product-card:hover,
.product-card:focus-within {
  box-shadow: 0 12px 26px rgba(199, 110, 136, 0.18);
  border-color: #f2bfd0;
}

.product-card__media {
  position: relative;
}

.product-card__img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.product-card__badge {
  position: absolute;
  top: 8px;
  left: 8px;
  border-radius: 14px;
  text-align: center;
  white-space: pre-line;
}

.product-card__badge--best {
  background: var(--brand-accent);
  color: #fff;
  font-size: 7.5px;
  font-weight: 700;
  line-height: 1.25;
  padding: 6px 8px;
  letter-spacing: 0.3px;
}

.product-card__badge--new {
  background: #fff;
  color: var(--brand-accent);
  border: 1.2px solid #f3b9cb;
  font-size: 8px;
  font-weight: 700;
  padding: 5px 9px;
  letter-spacing: 0.4px;
}

.product-card__wish {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  color: #e7c3ce;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card__body {
  padding: 10px 11px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 auto;
}

.product-card__name {
  font-size: 11.5px;
  line-height: 1.4;
  font-weight: 500;
  min-height: 32px;
  text-wrap: pretty;
  color: var(--text-main);
}

.product-card__name:hover,
.product-card__name:focus-visible {
  color: var(--brand-accent);
}

.product-card__rating {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: #9a7f88;
}

.product-card__stars {
  letter-spacing: 1px;
}

.product-card__star {
  color: #e7d3d9;
}

.product-card__star--filled {
  color: #f0a53c;
}

.product-card__price .price {
  display: flex;
  align-items: baseline;
  gap: 7px;
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-accent);
}

.product-card__price .price del {
  order: 2;
  font-size: 10.5px;
  font-weight: 400;
  color: #a89299;
  text-decoration: line-through;
  opacity: 1;
}

.product-card__price .price ins {
  order: 1;
  text-decoration: none;
}

.product-card__add {
  margin-top: auto;
  width: 100%;
  padding: 8px;
  border: 1.4px solid #f2a9c0;
  border-radius: 7px;
  background: #fff5f8;
  color: #d94a74;
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: block;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.product-card__add:hover,
.product-card__add:focus-visible {
  background: var(--brand-accent);
  color: #fff;
  border-color: var(--brand-accent);
}
