.homepage {
  overflow: clip;
}

.hero {
  padding: 34px 0 24px;
}

.hero-shell {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 54px;
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(320px, 0.9fr);
  gap: 36px;
  align-items: center;
  border-radius: 42px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.94), transparent 35%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.76) 0%, rgba(235, 241, 245, 0.92) 46%, rgba(232, 224, 214, 0.92) 100%);
  box-shadow: 0 28px 80px rgba(31, 49, 61, 0.12);
  position: relative;
}

.hero-shell::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  pointer-events: none;
}

.hero-copy,
.hero-media {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--accent-deep);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 18px 0 16px;
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 0.94;
  letter-spacing: -0.04em;
  font-weight: 600;
}

.hero-copy p {
  max-width: 560px;
  margin: 0;
  color: var(--text-soft);
  font-size: clamp(1rem, 1.8vw, 1.15rem);
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-btn {
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.hero-btn--primary {
  background: linear-gradient(135deg, var(--accent-deep), var(--accent));
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.hero-btn--secondary {
  background: rgba(255, 255, 255, 0.74);
  color: var(--text);
  border: 1px solid var(--line);
}

.hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.hero-image-card {
  margin-left: auto;
  max-width: 520px;
  border-radius: 30px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(233, 238, 241, 0.86));
  box-shadow: var(--shadow-md);
}

.hero-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 500px;
}

.hero-floating-note {
  position: absolute;
  left: 10%;
  bottom: 28px;
  min-width: 220px;
  padding: 18px 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.44);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-sm);
}

.hero-floating-note span {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.hero-floating-note strong {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 0.95;
}

.editorial-section,
.category-section,
.brand-section,
.product-section,
.blog-section {
  margin-top: 72px;
}

.editorial-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.editorial-card {
  position: relative;
  min-height: 450px;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  isolation: isolate;
}

.editorial-card img,
.editorial-card__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.editorial-card img {
  object-fit: cover;
  transition: transform 0.8s ease;
}

.editorial-card__overlay {
  background: linear-gradient(180deg, rgba(19, 30, 38, 0.04) 0%, rgba(19, 30, 38, 0.62) 100%);
}

.editorial-card_glass{
    display:none;
}

.editorial-card__content {
  position: absolute;
  inset: auto 24px 24px;
  color: #fff;
}

.editorial-card__content span {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.editorial-card__content h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 0.92;
}

.editorial-card__content p {
  margin: 0;
  max-width: 230px;
  color: rgba(255, 255, 255, 0.82);
}

.editorial-card:hover img {
  transform: scale(1.08);
}

.editorial-card:hover .editorial-card__glass {
  transform: scale(1.06);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.category-card,
.brand-card,
.blog-card {
  border: 1px solid rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.category-card {
  display: grid;
  gap: 0;
  padding: 24px;
  border-radius: 28px;
}

.category-card:hover,
.brand-card:hover,
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(90, 118, 135, 0.28);
}

.category-card__media {
  aspect-ratio: 1 / 1;
  border-radius: 22px;
  background: linear-gradient(180deg, #f7f4ef 0%, #eef2f4 100%);
  display: grid;
  place-items: center;
  padding: 0;
  overflow: hidden;
}

.category-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.category-card:hover .category-card__media img {
  transform: scale(1.05);
}

.category-card__content {
  padding-top: 18px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.category-card__content p,
.brand-card p {
  margin: 0;
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 0.98;
}

.category-card__content span {
  color: var(--text-soft);
  font-size: 14px;
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.brand-card {
  min-height: 170px;
  border-radius: 28px;
  padding: 24px;
  display: grid;
  align-content: space-between;
  gap: 18px;
}

.brand-logo-box {
  width: 100%;
  min-height: 92px;
  border-radius: 22px;
  background: #f7f9fb;
  display: grid;
  place-items: center;
  padding: 0;
  overflow: hidden;
}

.brand-logo-box img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
}

.brand-text-logo {
  font-family: var(--font-display);
  font-size: 38px;
  color: var(--accent-deep);
  letter-spacing: 0.06em;
}

.product-grid--homepage {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.product-card {
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.product-card[hidden] {
  display: none;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(90, 118, 135, 0.28);
}

.product-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  min-height: 28px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(90, 118, 135, 0.92);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.new-badge {
  background: rgba(109, 141, 118, 0.92);
}

.derma-badge {
  background: rgba(185, 148, 103, 0.92);
}

.product-img-wrap {
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  padding: 26px;
  background: linear-gradient(180deg, #f8f5f0 0%, #edf2f4 100%);
  overflow: hidden;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.7s ease;
}

.product-card:hover .product-img {
  transform: scale(1.05);
}

.product-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  gap: 8px;
  padding: 22px;
}

.brand-name {
  margin: 0;
  color: var(--accent-deep);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.product-name {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 600;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-desc {
  margin: 0;
  color: var(--text-soft);
  font-size: 14px;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #b08d59;
}

.stars,
.rating-count {
  font-size: 13px;
}

.product-footer {
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid rgba(130, 146, 157, 0.14);
}

.price-wrap {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 10px;
  min-width: 0;
}

.price {
  font-size: 22px;
  font-weight: 700;
}

.price-original,
.discount {
  font-size: 13px;
}

.price-original {
  color: var(--text-faint);
  text-decoration: line-through;
}

.discount {
  color: #6d8d76;
}

.add-to-cart {
  min-height: 46px;
  padding: 0 18px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-deep), var(--accent));
  color: #fff;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
  transition: transform var(--transition), box-shadow var(--transition);
}

.add-to-cart:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.add-to-cart.is-adding,
.add-to-cart.added {
  background: linear-gradient(135deg, #6d8d76, #94b199);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.blog-card {
  border-radius: 30px;
  overflow: hidden;
}

.blog-card__media {
  aspect-ratio: 1.08 / 0.9;
  background: linear-gradient(180deg, #f5f0ea 0%, #eaf0f3 100%);
  overflow: hidden;
}

.blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card__content {
  padding: 24px;
}

.blog-card__meta {
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.blog-card__content h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 0.96;
}

.blog-card__content p:last-child {
  margin: 0;
  color: var(--text-soft);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card--placeholder {
  grid-column: 1 / -1;
}

@media (max-width: 1080px) {
  .hero-shell,
  .editorial-grid,
  .product-grid--homepage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-shell {
    padding: 34px;
  }

  .category-grid,
  .brand-grid,
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .hero-shell,
  .editorial-grid,
  .category-grid,
  .brand-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .product-grid--homepage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-shell {
    width: min(100% - 24px, 1240px);
    padding: 28px;
    border-radius: 28px;
  }

  .hero-image-card img {
    min-height: 380px;
  }

  .hero-floating-note {
    left: 16px;
    right: 16px;
    bottom: 16px;
    min-width: 0;
  }

  .editorial-card {
    min-height: 360px;
  }

  .category-card__content,
  .brand-card {
    gap: 12px;
  }

  .product-footer {
    display: grid;
    align-items: stretch;
  }

  .add-to-cart {
    width: 100%;
  }
}
