:root {
  --blue: #0063f4;
  --blue-soft: #d0eafd;
  --blue-tint: #eef3fb;
  --cream: #f9ecd9;
  --card: #f9f9f9;
  --cat-card: #f8fafd;
  --text: #000;
  --muted: #7a7b7a;
  --muted-2: #9ea6be;
  --strike: #cacaca;
  --red: #fd1718;
  --sky: #48adf7;
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: #fff;
  color: var(--text);
  font-family: "Montserrat", sans-serif;
  overflow-x: hidden;
  position: relative;
}
h1, h2, h3, h4, p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; }
button { font: inherit; border: 0; background: none; padding: 0; cursor: pointer; }

.container { width: var(--container); max-width: calc(100% - 32px); margin-inline: auto; }

/* ---------- Header ---------- */
.topbar {
  background: var(--blue);
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 75px;
}
.topbar__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-size: 12px;
  line-height: 28px;
  letter-spacing: 0.06px;
  color: #fff;
  white-space: nowrap;
}
.topbar__item--wide span { width: 250px; }

.navbar { background: #fff; padding: 24px 0 18px; }
.navbar__inner { display: flex; align-items: center; justify-content: space-between; }
.brand { width: 174px; height: 69px; border-radius: 9px; overflow: hidden; position: relative; flex-shrink: 0; }
.brand__img { position: absolute; left: 0; top: 0; width: 74px; height: 74px; overflow: hidden; }
.brand__img img { position: absolute; left: -0.31%; top: -5.19%; width: 100%; height: 100%; max-width: none; }

.nav { display: flex; align-items: center; gap: 22px; padding: 8px; }
.nav__link { font-size: 14px; text-align: center; line-height: 24px; color: #000; transition: color .15s; }
.nav__link:hover { color: var(--blue); }
.nav__link--active { font-weight: 700; color: var(--blue); }

.navbar__actions { display: flex; align-items: center; gap: 16px; }
.search {
  display: flex; align-items: center; gap: 7px;
  background: #f9f9f9; border-radius: 12px; padding: 3px 7px;
}
.search input {
  width: 137px; height: 40px; padding: 0 12px;
  border: 0; background: transparent; outline: none;
  font-family: "Poppins", sans-serif; font-weight: 500; font-size: 12px; letter-spacing: 0.06px; color: #000;
}
.search input::placeholder { color: #8a8a8a; }
.icon-btn { display: block; width: 24px; height: 24px; }

/* ---------- Hero ---------- */
.hero { position: relative; height: 439px; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.hero__content {
  position: relative;
  padding-top: 81px;
  display: flex; flex-direction: column; gap: 12px; align-items: flex-start;
}
.hero__content > * { max-width: 626px; }
.hero__eyebrow { display: flex; align-items: center; gap: 12px; }
.hero__eyebrow span, .hero__subtitle { font-weight: 600; color: var(--muted); line-height: 25px; width: 502px; max-width: 100%; }
.hero__eyebrow span { font-size: 12px; }
.hero__subtitle { font-size: 16px; }
.hero__title { font-weight: 800; font-size: 44px; line-height: normal; color: #000; width: 626px; }
.hero__title span { display: block; color: var(--blue); }
.btn-shop {
  margin-top: 8px;
  width: 205px; height: 50px; padding: 8px 28px;
  display: flex; align-items: center; justify-content: space-between;
  background: var(--blue); color: #fff; border-radius: 25px;
  box-shadow: 0 1px 2px rgba(0,0,0,.1);
  font-weight: 600; font-size: 20px;
  transition: background .15s;
}
.btn-shop:hover { background: #0052cc; }
.hero__dots { position: absolute; left: calc(50% - 0.5px); top: 416px; transform: translateX(-50%); }

.trust { background: var(--blue-tint); }
.trust__inner {
  max-width: 1366px; margin: 0 auto; padding: 16px 100px;
  display: flex; align-items: center; justify-content: space-between;
}
.trust__item { width: 194px; display: flex; gap: 16px; align-items: flex-start; }
.trust__icon { width: 32px; height: 32px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.trust__icon--delivery img { margin-top: 1.34px; }
.trust__title { font-weight: 600; font-size: 14px; line-height: 21px; letter-spacing: 0.07px; }
.trust__sub { font-weight: 600; font-size: 12px; line-height: 15.576px; letter-spacing: 0.06px; color: var(--muted-2); margin-top: 2px; }

/* Decorative glows */
.glow {
  position: absolute; width: 100px; height: 100px; border-radius: 50%;
  background: #4d8ff7; opacity: .45; filter: blur(110px); pointer-events: none; z-index: -1;
}
.glow--left { left: -50px; top: 1695px; }
.glow--right { left: calc(50% + 594px); top: 2506px; }

/* ---------- Sections ---------- */
.section { display: flex; flex-direction: column; gap: 32px; }
.section--categories { margin-top: 54px; }
.section__head { display: flex; justify-content: space-between; align-items: flex-start; }
.section__head h2 { font-weight: 600; font-size: 24px; line-height: 21px; }
.more-link {
  width: 155px;
  display: flex; align-items: center; gap: 8px;
  color: var(--blue); font-weight: 600; font-size: 12px; white-space: nowrap;
}
.more-link img { transition: transform .15s; }
.more-link:hover img { transform: translateX(3px); }

.main-stack { margin-top: 44px; display: flex; flex-direction: column; gap: 60px; }

/* Categories */
.categories { display: flex; justify-content: space-between; height: 164px; overflow-x: auto; overflow-y: hidden; gap: 12px; scrollbar-width: none; }
.category {
  width: 137px; flex-shrink: 0;
  background: var(--cat-card); border-radius: 5px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  transition: box-shadow .15s;
}
.category:hover { box-shadow: 0 2px 10px rgba(0, 99, 244, .12); }
.category__img { height: 120px; width: 114.839px; display: flex; align-items: center; justify-content: center; padding: 13.6px 0 19px; }
.category__img span { position: relative; overflow: hidden; display: block; }
.category__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: none; }
.category__label {
  width: 127px; height: 42px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-weight: 600; font-size: 10px; line-height: 14.25px; letter-spacing: 0.3px;
}
.category--active .category__label { font-weight: 700; color: var(--blue); }

/* Product cards */
.product-row { display: flex; justify-content: space-between; align-items: center; }
.product-row--scroll { justify-content: flex-start; gap: 24px; overflow-x: auto; scrollbar-width: none; }
.product-row--scroll::-webkit-scrollbar, .categories::-webkit-scrollbar { display: none; }
.rec-grid { display: flex; flex-direction: column; gap: 32px; }

.product {
  width: 200px; height: 348px; flex-shrink: 0;
  background: var(--card); border-radius: 5px; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  transition: transform .15s, box-shadow .15s;
}
.product:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0, 0, 0, .08); }
.product__img { position: relative; height: 197px; width: 100%; flex-shrink: 0; overflow: hidden; }
.product__img img { position: absolute; max-width: none; }
.product__img--wide { width: 351px; }
.product__info { width: 163px; display: flex; flex-direction: column; gap: 16px; }
.product__meta { display: flex; flex-direction: column; gap: 4px; }
.product__name { font-weight: 600; font-size: 12px; line-height: normal; min-height: calc(3 * 1.22em); }
.tag {
  align-self: flex-start;
  height: 13.336px; padding: 0 7.845px;
  display: flex; align-items: center;
  border: 0.31px solid var(--blue); border-radius: 2px;
  color: var(--blue); font-weight: 600; font-size: 8px; letter-spacing: 0.24px; white-space: nowrap;
}
.product__prices { display: flex; flex-direction: column; gap: 4px; }
.price-old { position: relative; height: 15px; width: 164px; }
.price-old span { position: absolute; left: 1px; top: 0; font-weight: 600; font-size: 12px; color: var(--strike); }
.price-old img { position: absolute; left: 0; top: 8px; }
.price { font-weight: 700; font-size: 20px; }

/* ---------- Flash sale ---------- */
.flash {
  background: var(--blue-soft); border-radius: 12px;
  min-height: 638px; padding: 25px 17.7px;
  display: flex; flex-direction: column; align-items: center; gap: 26.03px;
}
.flash__banner {
  position: relative; width: 1120px; max-width: 100%; height: 197.011px;
  background: #fff; border-radius: 16.659px; overflow: hidden;
}
.flash__content { position: absolute; left: 24px; top: 24px; display: flex; align-items: center; gap: 28.928px; }
.flash__left { width: 298.176px; display: flex; flex-direction: column; gap: 24.477px; align-items: flex-start; }
.flash__title-wrap { display: flex; flex-direction: column; gap: 24.676px; }
.flash__title { display: flex; align-items: flex-end; gap: 8.225px; }
.flash__title h2 { width: 200.148px; color: var(--red); font-weight: 600; font-size: 28.928px; line-height: 38.385px; letter-spacing: 0.8678px; }
.flash__progress { width: 298.176px; height: 1.738px; display: flex; align-items: center; justify-content: center; }
.flash__progress img { transform: rotate(-0.33deg); flex-shrink: 0; }
.btn-flash {
  display: flex; align-items: center; justify-content: center; gap: 8.901px;
  background: var(--blue); color: #fff; border-radius: 111.26px;
  padding: 11.126px 16.689px;
  font-weight: 700; font-size: 13.351px; line-height: 31.153px; letter-spacing: 0.0668px; white-space: nowrap;
  transition: background .15s;
}
.btn-flash:hover { background: #0052cc; }
.flash__divider { height: 54.835px; width: auto; }
.countdown { width: 279.595px; }
.countdown__label { height: 33.378px; display: flex; align-items: center; font-weight: 500; font-size: 13.351px; letter-spacing: 0.4005px; color: #3b3b3b; }
.countdown__row { display: flex; align-items: center; gap: 1.792px; }
.countdown__box, .countdown__sep {
  font-weight: 600; font-size: 25.092px; line-height: 50.184px; letter-spacing: 0.7528px; color: var(--sky); text-align: center;
}
.countdown__box { width: 75.276px; background: #fafafa; border-radius: 16.13px; font-variant-numeric: tabular-nums; }
.countdown__sep { width: 21.507px; font-family: "Poppins", sans-serif; }
.flash__img { position: absolute; left: 778px; top: -12px; width: 397px; height: 222px; object-fit: cover; }
.product-row--flash { width: 1120px; max-width: 100%; }

/* ---------- Newsletter ---------- */
.newsletter {
  position: relative; height: 350px; border-radius: 18px; overflow: hidden;
  padding: 40px; display: flex; flex-direction: column; justify-content: center;
}
.newsletter__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.newsletter__content { position: relative; width: 496px; max-width: 100%; display: flex; flex-direction: column; gap: 32px; }
.newsletter__text { display: flex; flex-direction: column; gap: 16px; color: #fff; }
.newsletter__text h2 { font-weight: 700; font-size: 40px; line-height: normal; }
.newsletter__text p { font-weight: 600; font-size: 16px; line-height: 21px; }
.btn-explore {
  width: 194px; height: 46px; padding: 8px 20px;
  display: flex; align-items: center; justify-content: center;
  background: #fff; border-radius: 50px; color: var(--blue);
  font-family: "Hanken Grotesk", sans-serif; font-weight: 600; font-size: 20px;
  box-shadow: 0 1px 2px rgba(0,0,0,.1), 1px 1px 10px 0 var(--blue), 2px 2px 25px 0 #d7e5f9;
  transition: transform .15s;
}
.btn-explore:hover { transform: translateY(-1px); }

/* ---------- Promo cards ---------- */
.promos { display: flex; justify-content: space-between; gap: 30px; }
.promo { position: relative; width: 575px; height: 350px; border-radius: 10px; overflow: hidden; flex-shrink: 0; }
.promo--blue { background: var(--blue-soft); }
.promo--cream { background: var(--cream); }
.promo__content {
  position: absolute; left: 36px; top: 28px; z-index: 1;
  width: 327px; height: 293px;
  display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start;
}
.promo__text { display: flex; flex-direction: column; gap: 12px; }
.promo__text h3 { font-weight: 700; font-size: 24px; line-height: normal; }
.promo__text p { font-size: 14px; line-height: 21px; }
.mini-product {
  background: #fff; border-radius: 10px; padding: 0 9px; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; width: 275px;
}
.mini-product__img { position: relative; width: 96px; height: 80px; overflow: hidden; flex-shrink: 0; }
.mini-product__img img { position: absolute; max-width: none; }
.mini-product__name { flex: 1 0 0; min-width: 1px; font-weight: 500; font-size: 10px; line-height: 14px; }
.mini-product__btn { width: 36px; height: 36px; border-radius: 9999px; background: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.promo__person { position: absolute; overflow: hidden; }
.promo__person img { position: absolute; max-width: none; }
.promo__person--server { left: 342px; top: 3px; width: 258px; height: 350px; }
.promo__person--server img { height: 100%; left: -17.83%; top: -0.04%; width: 123.44%; }
.promo__person--sfp { left: 352px; top: 24px; width: 244px; height: 331px; }
.promo__person--sfp img { inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Testimonials ---------- */
.testimonials {
  background: var(--blue-soft); border-radius: 7px;
  height: 447px; padding: 40px 24px;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
}
.testimonials__head { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.testimonials__head h2 { font-weight: 700; font-size: 40px; line-height: 32px; letter-spacing: 0.2px; }
.testimonials__head p { width: 828px; max-width: 100%; font-weight: 500; font-size: 16px; line-height: 25px; letter-spacing: 0.016px; }
.testimonials__row { width: 100%; height: 225px; display: flex; align-items: center; justify-content: space-between; }
.testimonials__cards { display: flex; gap: 27.5px; }
.carousel-btn {
  width: 38.116px; padding: 8.663px; border-radius: 20.79px;
  background: rgba(161, 161, 161, .39); transition: background .15s;
}
.carousel-btn:hover { background: rgba(161, 161, 161, .6); }
.carousel-btn--prev img { transform: scaleX(-1); }
.testimonial {
  width: 315px; height: 225px; padding: 20px 24px;
  background: #fff; border: 1px solid #fff; border-radius: 12px;
  display: flex; flex-direction: column; gap: 16px;
  font-family: "Roboto", sans-serif;
  transition: opacity .2s;
}
.testimonial__head { display: flex; gap: 12px; align-items: flex-start; }
.testimonial__avatar { width: 60px; height: 60px; border-radius: 30px; object-fit: cover; }
.testimonial__name { font-weight: 600; font-size: 15px; line-height: 28px; letter-spacing: 0.075px; white-space: nowrap; }
.testimonial__date { font-size: 13px; line-height: 20px; letter-spacing: 0.065px; }
.testimonial__body { display: flex; flex-direction: column; gap: 8px; }
.stars { display: flex; gap: 4px; }
.testimonial__text { font-size: 12px; line-height: 21px; letter-spacing: 0.06px; }

/* ---------- Footer ---------- */
.footer { background: var(--blue-soft); margin-top: 64px; min-height: 614px; padding: 50px 0; display: flex; align-items: center; justify-content: center; }
.footer__inner { width: 1188px; max-width: calc(100% - 32px); height: 475px; display: flex; flex-direction: column; justify-content: space-between; }
.footer__top { display: flex; justify-content: space-between; align-items: center; }
.footer__about { width: 400px; display: flex; flex-direction: column; gap: 25px; }
.footer__logo { width: 140px; height: 139px; object-fit: cover; }
.footer__about p { color: var(--blue); font-weight: 500; font-size: 16px; line-height: 26px; letter-spacing: 0.16px; }
.footer__cols { width: 559px; display: flex; gap: 42px; align-items: flex-start; }
.footer__col { flex: 1 0 0; display: flex; flex-direction: column; gap: 20px; color: var(--blue); }
.footer__col h4 { font-weight: 700; font-size: 20px; line-height: 28px; margin-bottom: -4px; }
.footer__col a { font-weight: 500; font-size: 16px; line-height: 24px; }
.footer__col a:hover { text-decoration: underline; }
.socials { width: 120px; display: flex; justify-content: space-between; align-items: center; }
.social { position: relative; width: 50px; height: 50px; display: block; }
.social__img { position: absolute; left: 10.93px; top: 10px; width: 27px; height: 29px; object-fit: contain; }
.social__ig { position: absolute; left: 7px; top: 7px; }
.footer__bottom { display: flex; flex-direction: column; align-items: center; gap: 32px; }
.footer__divider { width: 100%; height: 1px; transform: rotate(180deg); }
.copyright { color: var(--blue); font-weight: 500; font-size: 18px; line-height: 30px; text-align: center; }
.copyright a { text-decoration: underline; }

/* ---------- Narrow screens ---------- */
@media (max-width: 1240px) {
  .topbar { gap: 24px; overflow: hidden; }
  .nav { display: none; }
  .trust__inner { padding: 16px; flex-wrap: wrap; gap: 16px; }
  .trust__divider { display: none; }
  .product-row:not(.product-row--scroll) { flex-wrap: wrap; justify-content: center; gap: 24px; }
  .flash__banner { height: auto; padding: 24px; }
  .flash__content { position: static; flex-wrap: wrap; }
  .flash__img { display: none; }
  .promos { flex-direction: column; align-items: center; }
  .promo { max-width: 100%; }
  .testimonials { height: auto; gap: 32px; }
  .testimonials__cards { flex-wrap: wrap; justify-content: center; gap: 16px; }
  .footer { padding: 40px 16px; }
  .footer__inner { height: auto; gap: 40px; }
  .footer__top { flex-direction: column; align-items: flex-start; gap: 40px; }
  .footer__cols { width: 100%; }
  .glow { display: none; }
}
@media (max-width: 720px) {
  .topbar__item:not(:first-child) { display: none; }
  .search input { width: 90px; }
  .brand { width: 74px; }
  .hero { height: auto; padding-bottom: 48px; }
  .hero__title { font-size: 30px; width: auto; }
  .hero__bg { opacity: .35; }
  .newsletter { height: auto; padding: 24px; }
  .newsletter__text h2 { font-size: 28px; }
  .promo { height: 420px; }
  .promo__content { left: 20px; width: calc(100% - 40px); }
  .promo__person { display: none; }
  .promo__text h3, .promo__text p { width: auto !important; }
  .testimonials__head h2 { font-size: 28px; line-height: 34px; }
  .carousel-btn { display: none; }
  .copyright { font-size: 14px; }
}
