.home-page {
  background:
    radial-gradient(circle at 14% 0%, color-mix(in srgb, var(--primary-color) 18%, transparent), transparent 28rem),
    linear-gradient(180deg, color-mix(in srgb, var(--primary-color) 5%, #fff) 0%, color-mix(in srgb, var(--primary-color) 12%, #f4f7fb) 100%);
  color: #111827;
}

.home-container {
  max-width: 1480px;
}

.home-shell {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 24px 0 42px;
}

.welcome-banner {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 100%;
  padding: 14px 18px;
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
  background: var(--primary-color);
  color: #fff;
  text-align: center;
  font-weight: 800;
  transform: translateY(-100%);
  transition: transform .35s ease;
  box-shadow: 0 16px 30px color-mix(in srgb, var(--primary-color) 34%, transparent);
}

.welcome-banner.show {
  transform: translateY(0);
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(320px, .84fr) minmax(0, 1.16fr);
  gap: 22px;
  align-items: stretch;
}

.home-hero__copy,
.home-hero__media,
.home-block {
  border: 1px solid rgba(17, 24, 39, .07);
  border-radius: 24px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 18px 48px rgba(20, 31, 50, .08);
}

.home-hero__copy {
  min-height: 440px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  padding: clamp(24px, 4vw, 54px);
  overflow: hidden;
  position: relative;
}

.home-hero__copy::after {
  content: "";
  position: absolute;
  right: -84px;
  bottom: -96px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 42px solid color-mix(in srgb, var(--primary-color) 15%, transparent);
}

.home-eyebrow,
.home-section-kicker {
  color: var(--primary-color);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.home-hero h1 {
  max-width: 620px;
  font-size: clamp(34px, 4vw, 64px);
  line-height: .98;
  letter-spacing: 0;
}

.home-hero p {
  max-width: 560px;
  color: #4b5563;
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.55;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border-radius: 12px;
  color: inherit;
  font-weight: 900;
  text-decoration: none;
}

.home-btn--primary {
  background: var(--primary-color);
  color: #fff;
}

.home-btn--light {
  border: 1px solid color-mix(in srgb, var(--primary-color) 22%, transparent);
  background: color-mix(in srgb, var(--primary-color) 9%, #fff);
  color: color-mix(in srgb, var(--primary-color) 74%, #101828);
}

.home-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.home-trust-row span {
  padding: 8px 11px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary-color) 12%, #fff);
  color: color-mix(in srgb, var(--primary-color) 72%, #182230);
  font-size: 13px;
  font-weight: 800;
}

.home-hero__media {
  min-width: 0;
  padding: 14px;
  overflow: hidden;
}

.home-main-swiper {
  height: 100%;
  min-height: 440px;
  padding: 0;
}

.home-main-swiper .swiper-wrapper,
.home-main-swiper .swiper-slide,
.home-main-slide {
  height: 100%;
}

.home-main-swiper .swiper-pagination {
  bottom: 16px;
}

.home-main-swiper .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, .78);
  opacity: 1;
}

.home-main-swiper .swiper-pagination-bullet-active {
  width: 26px;
  border-radius: 999px;
  background: var(--primary-color);
}

.home-main-slide {
  border-radius: 18px;
  background: color-mix(in srgb, var(--primary-color) 10%, #eef3f8);
}

.home-main-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-sale-strip {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px 22px;
  border-radius: 18px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary-color) 96%, #111827), color-mix(in srgb, var(--primary-color) 70%, #111827));
  color: #fff;
  text-decoration: none;
  box-shadow: 0 18px 42px color-mix(in srgb, var(--primary-color) 26%, transparent);
}

.home-sale-strip__label {
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff;
  color: color-mix(in srgb, var(--primary-color) 78%, #111827);
  font-weight: 950;
}

.home-sale-strip__text {
  color: rgba(255, 255, 255, .82);
  font-weight: 800;
}

.home-sale-strip__arrow {
  color: #fff;
  font-weight: 950;
}

.home-block {
  padding: clamp(10px, 2.3vw, 30px);
}

.home-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.home-section-head h2 {
  margin-top: 5px;
  font-size: clamp(24px, 2.5vw, 38px);
  line-height: 1.05;
  letter-spacing: 0;
}

.home-section-head a {
  color: color-mix(in srgb, var(--primary-color) 76%, #111827);
  font-weight: 900;
  text-decoration: none;
}

.home-category-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.home-category-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--primary-color) 14%, transparent);
  border-radius: 16px;
  background: color-mix(in srgb, var(--primary-color) 6%, #fff);
  color: #111827;
  text-decoration: none;
  font-weight: 900;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.home-category-card:hover {
  transform: translateY(-2px);
  background: color-mix(in srgb, var(--primary-color) 10%, #fff);
  box-shadow: 0 12px 26px color-mix(in srgb, var(--primary-color) 16%, transparent);
}

.home-category-card__icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: var(--primary-color);
}

.home-featured-layout {
  display: grid;
  grid-template-columns: minmax(250px, .38fr) minmax(0, 1fr);
  gap: 18px;
}

.home-feature-card {
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: 16px;
  min-height: 420px;
  padding: 26px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--primary-color) 12%, transparent), rgba(17, 24, 39, .82)),
    linear-gradient(135deg, color-mix(in srgb, var(--primary-color) 34%, #fff), color-mix(in srgb, var(--primary-color) 12%, #fff));
  color: #fff;
  overflow: hidden;
}

.home-feature-card span {
  color: rgba(255, 255, 255, .78);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.home-feature-card h3 {
  max-width: 360px;
  font-size: clamp(26px, 2.5vw, 38px);
  line-height: 1.05;
}

.home-feature-card a {
  align-self: flex-start;
  padding: 12px 16px;
  border-radius: 12px;
  background: #fff;
  color: color-mix(in srgb, var(--primary-color) 78%, #111827);
  font-weight: 950;
  text-decoration: none;
}

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

.home-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  border: 1px solid color-mix(in srgb, var(--primary-color) 11%, rgba(17, 24, 39, .08));
  border-radius: 16px;
  background: #fff;
  color: #111827;
  text-decoration: none;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--primary-color) 8%, transparent);
  transition: transform .18s ease, box-shadow .18s ease;
}

.home-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px color-mix(in srgb, var(--primary-color) 16%, transparent);
}

.home-card__thumb {
  display: block;
  aspect-ratio: 3 / 4;
  background: color-mix(in srgb, var(--primary-color) 8%, #eef2f6);
  overflow: hidden;
}

.home-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
}

.home-card__name {
  min-height: 42px;
  color: #111827;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.28;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-card__rating {
  color: #5b6573;
  font-size: 13px;
  font-weight: 800;
}

.home-card__rating small {
  color: #8b95a3;
}

.home-card__prices {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-top: auto;
}

.home-card__price {
  color: var(--primary-color);
  font-size: 22px;
  font-weight: 950;
  font-family: var(--price-font);
  font-variant-numeric: tabular-nums;
}

.home-card__old {
  color: #8f9299;
  font-size: 15px;
  font-weight: 800;
  text-decoration: line-through;
  font-family: var(--price-font);
  font-variant-numeric: tabular-nums;
}

.home-mini-banners {
  padding: 16px;
}

.home-mini-banner {
  display: block;
  overflow: hidden;
  border-radius: 14px;
  background: color-mix(in srgb, var(--primary-color) 8%, #f2f4f7);
}

.home-mini-banner img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}

.home-rail {
  overflow: hidden;
}

.home-rail--blue {
  background: linear-gradient(180deg, #ffffff 0%, color-mix(in srgb, var(--primary-color) 10%, #fff) 100%);
}

.home-rail--green {
  background: linear-gradient(180deg, #ffffff 0%, color-mix(in srgb, var(--primary-color) 7%, #f8fafc) 100%);
}

.home-rail--dark {
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary-color) 92%, #111827), color-mix(in srgb, var(--primary-color) 54%, #111827));
  color: #fff;
}

.home-rail--dark .home-section-kicker,
.home-rail--dark .home-section-head a {
  color: #fff;
}

.home-rail--dark .home-card {
  border-color: rgba(255, 255, 255, .1);
}

.home-product-rail .owl-stage {
  display: flex;
}

.home-product-rail .owl-item {
  display: flex;
}

.home-product-rail .home-card {
  width: 100%;
  height: 100%;
}

.home-product-rail .owl-nav button.owl-prev,
.home-product-rail .owl-nav button.owl-next,
.little-sl-new-carousel .owl-nav button.owl-prev,
.little-sl-new-carousel .owl-nav button.owl-next {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: #fff !important;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--primary-color) 18%, transparent);
}

@media (max-width: 1199px) {
  .home-hero,
  .home-featured-layout {
    grid-template-columns: 1fr;
  }

  .home-hero__copy,
  .home-main-swiper {
    min-height: 360px;
  }

  .home-category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .home-shell {
    gap: 18px;
    padding: 12px 0 92px;
  }

  .home-hero__copy,
  .home-block {
    border-radius: 18px;
  }

  .home-hero__copy {
    min-height: auto;
    padding: 24px 18px;
  }

  .home-hero__media {
    padding: 8px;
    border-radius: 18px;
  }

  .home-main-swiper {
    min-height: 240px;
  }

  .home-main-slide {
    border-radius: 14px;
  }

  .home-hero h1 {
    font-size: 34px;
  }

  .home-hero__actions,
  .home-sale-strip,
  .home-section-head {
    align-items: stretch;
  }

  .home-btn {
    width: 100%;
  }

  .home-sale-strip {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .home-sale-strip__arrow {
    display: none;
  }

  .home-section-head {
    flex-direction: column;
    margin-bottom: 14px;
  }

  .home-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .home-category-card {
    min-height: 68px;
    padding: 12px;
    font-size: 14px;
  }

  .home-category-card__icon {
    width: 28px;
    height: 28px;
  }

  .home-feature-card {
    min-height: 260px;
    padding: 20px;
  }

  .home-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .home-card__body {
    padding: 10px;
  }

  .home-card__name {
    min-height: 38px;
    font-size: 14px;
  }

  .home-card__price {
    font-size: 17px;
  }

  .home-mini-banners {
    padding: 10px;
  }
}

@media (max-width: 420px) {
  .home-category-grid,
  .home-product-grid {
    gap: 8px;
  }

  .home-category-card {
    flex-direction: column;
    align-items: flex-start;
  }
}
