@font-face {
  font-family: "alibaba";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/alibaba-regular.woff2") format("woff2");
}

@font-face {
  font-family: "alibaba";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/alibaba-bold.woff2") format("woff2");
}

@font-face {
  font-family: "alibaba";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("assets/fonts/alibaba-black.woff2") format("woff2");
}

:root {
  --bg: #f8f3ef;
  --surface: #fffdfa;
  --surface-strong: #ffffff;
  --ink: #24171b;
  --muted: #7a6770;
  --line: rgba(73, 41, 50, 0.13);
  --berry: #7b213b;
  --berry-dark: #4b1024;
  --rose: #e9b8c3;
  --champagne: #d9b16f;
  --sage: #6f7f68;
  --shadow: 0 22px 60px rgba(75, 16, 36, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "alibaba", system-ui, BlinkMacSystemFont, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.75;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.top-note {
  background: var(--berry-dark);
  color: #fff7f1;
  font-size: 0.86rem;
  padding: 0.45rem 1rem;
  text-align: center;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(248, 243, 239, 0.9);
  border-bottom: 1px solid rgba(123, 33, 59, 0.08);
  backdrop-filter: blur(18px);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 253, 250, 0.96);
  box-shadow: 0 16px 36px rgba(36, 23, 27, 0.08);
}

.header-shell {
  align-items: center;
  display: grid;
  gap: 1rem;
  grid-template-columns: auto auto minmax(220px, 1fr) auto;
  margin: 0 auto;
  max-width: 1180px;
  min-height: 78px;
  padding: 0 1.25rem;
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 0.75rem;
  min-width: 190px;
}

.brand-image {
  height: 58px;
  object-fit: contain;
  width: 190px;
}

.brand-fallback {
  display: grid;
  line-height: 1.1;
}

.brand.has-logo .brand-fallback {
  display: none;
}

.brand-fallback strong {
  color: var(--berry);
  font-size: 1.42rem;
  letter-spacing: 0;
}

.brand-fallback small {
  color: var(--muted);
  font-size: 0.75rem;
}

.desktop-nav {
  align-items: center;
  display: flex;
  gap: 0.2rem;
}

.nav-link {
  background: transparent;
  border: 0;
  border-radius: var(--radius);
  color: #4a373d;
  cursor: pointer;
  padding: 0.62rem 0.8rem;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link:focus-visible {
  background: rgba(123, 33, 59, 0.08);
  color: var(--berry);
  outline: 0;
}

.menu-trigger {
  align-items: center;
  display: inline-flex;
  gap: 0.25rem;
}

.search-form,
.drawer-search {
  align-items: center;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 999px;
  display: flex;
  gap: 0.5rem;
  padding: 0.35rem 0.8rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-form:focus-within,
.drawer-search:focus-within {
  border-color: rgba(123, 33, 59, 0.45);
  box-shadow: 0 0 0 4px rgba(123, 33, 59, 0.09);
}

.search-form input,
.drawer-search input {
  background: transparent;
  border: 0;
  color: var(--ink);
  min-width: 0;
  outline: 0;
  width: 100%;
}

.header-actions {
  align-items: center;
  display: flex;
  gap: 0.45rem;
}

.icon-button,
.mobile-menu-button {
  align-items: center;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--berry-dark);
  cursor: pointer;
  display: inline-flex;
  height: 42px;
  justify-content: center;
  min-width: 42px;
  padding: 0 0.75rem;
  position: relative;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.icon-button:hover,
.mobile-menu-button:hover {
  background: #fff6f8;
  border-color: rgba(123, 33, 59, 0.3);
  transform: translateY(-2px);
}

.cart-button span {
  background: var(--champagne);
  border-radius: 999px;
  color: var(--berry-dark);
  font-size: 0.72rem;
  height: 18px;
  line-height: 18px;
  position: absolute;
  right: -2px;
  text-align: center;
  top: -5px;
  width: 18px;
}

.mobile-menu-button {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 0;
}

.mobile-menu-button span {
  background: var(--berry-dark);
  border-radius: 999px;
  height: 2px;
  width: 18px;
}

.mega-menu {
  background: rgba(255, 253, 250, 0.98);
  border: 1px solid var(--line);
  border-radius: 0 0 18px 18px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, 1fr);
  left: 50%;
  max-width: 960px;
  opacity: 0;
  padding: 1.25rem;
  pointer-events: none;
  position: absolute;
  top: 100%;
  transform: translateX(-50%) translateY(-10px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  width: min(calc(100% - 2rem), 960px);
}

.mega-menu.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.mega-menu h3,
.site-footer h3 {
  font-size: 0.96rem;
  margin: 0 0 0.6rem;
}

.mega-menu a,
.site-footer a {
  color: var(--muted);
  display: block;
  margin: 0.24rem 0;
}

.mega-menu aside {
  background: linear-gradient(135deg, #fff3e1, #ffe6ed);
  border-radius: var(--radius);
  padding: 1rem;
}

.drawer-backdrop {
  background: rgba(36, 23, 27, 0.34);
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  transition: opacity 0.25s ease;
  z-index: 30;
}

.drawer-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer {
  background: var(--surface);
  border-left: 1px solid var(--line);
  box-shadow: -22px 0 60px rgba(36, 23, 27, 0.18);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  height: 100vh;
  max-width: 360px;
  padding: 1rem;
  position: fixed;
  right: 0;
  top: 0;
  transform: translateX(105%);
  transition: transform 0.28s ease;
  width: 88vw;
  z-index: 40;
}

.mobile-drawer.is-open {
  transform: translateX(0);
}

.drawer-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.mobile-drawer > a {
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  padding: 0.75rem 0.1rem;
}

.drawer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.drawer-tags span {
  background: #fff0f4;
  border-radius: 999px;
  color: var(--berry);
  padding: 0.35rem 0.7rem;
}

.hero {
  margin: 0 auto;
  max-width: 1180px;
  min-height: auto;
  padding: clamp(1rem, 3vw, 2.2rem) 1.25rem 3rem;
  position: relative;
}

.hero-viewport {
  overflow: hidden;
  touch-action: pan-y;
}

.hero-track {
  direction: ltr;
  display: flex;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.hero-slide {
  align-items: center;
  direction: rtl;
  display: grid;
  flex: 0 0 100%;
  gap: 2rem;
  grid-template-columns: minmax(300px, 0.88fr) minmax(340px, 1.12fr);
  min-width: 0;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow,
.section-heading > span,
.product-heading span {
  color: var(--berry);
  display: inline-block;
  font-size: 0.84rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.hero h1,
.hero h2 {
  font-size: clamp(2.35rem, 6vw, 5rem);
  line-height: 1.14;
  margin: 0;
  max-width: 720px;
}

.hero p,
.promo-band p,
.editorial-strip p,
.footer-brand p {
  color: var(--muted);
  margin: 1rem 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.primary-button,
.ghost-button {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-weight: 700;
  justify-content: center;
  min-height: 46px;
  padding: 0.65rem 1.2rem;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
  white-space: nowrap;
}

.primary-button {
  background: var(--berry);
  border: 1px solid var(--berry);
  color: white;
  box-shadow: 0 14px 28px rgba(123, 33, 59, 0.24);
}

.ghost-button {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
  color: var(--berry-dark);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-3px);
}

.ghost-button.light {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.35);
  color: white;
}

.hero-stats {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1.8rem;
}

.hero-stats span {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  padding: 0.8rem;
}

.hero-stats strong {
  color: var(--berry-dark);
  display: block;
  font-size: 1.05rem;
}

.hero-visual {
  border-radius: 26px;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.hero-visual img {
  aspect-ratio: 1.18 / 1;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
  width: 100%;
}

.carousel-button {
  align-items: center;
  background: rgba(255, 253, 250, 0.88);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(36, 23, 27, 0.12);
  color: var(--berry-dark);
  cursor: pointer;
  display: flex;
  font-size: 2rem;
  height: 46px;
  justify-content: center;
  position: absolute;
  top: 48%;
  transform: translateY(-50%);
  transition: background 0.2s ease, transform 0.2s ease;
  width: 46px;
  z-index: 5;
}

.carousel-button:hover {
  background: white;
  transform: translateY(-50%) scale(1.06);
}

.carousel-next {
  right: 0.2rem;
}

.carousel-prev {
  left: 0.2rem;
}

.carousel-dots {
  display: flex;
  gap: 0.45rem;
  justify-content: center;
  margin-top: 1rem;
}

.carousel-dots button {
  background: rgba(123, 33, 59, 0.24);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  height: 8px;
  padding: 0;
  transition: background 0.2s ease, width 0.2s ease;
  width: 8px;
}

.carousel-dots button.is-active {
  background: var(--berry);
  width: 28px;
}

.floating-offer {
  align-items: center;
  background: rgba(255, 253, 250, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  bottom: 1rem;
  box-shadow: 0 18px 36px rgba(36, 23, 27, 0.16);
  display: grid;
  min-width: 126px;
  padding: 0.9rem;
  position: absolute;
  right: 1rem;
}

.floating-offer strong {
  color: var(--berry);
  font-size: 1.45rem;
}

.section-shell {
  margin: 0 auto;
  max-width: 1180px;
  padding: 3rem 1.25rem;
}

.section-heading {
  align-items: end;
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.3rem;
}

.section-heading h2,
.promo-band h2,
.editorial-strip h2 {
  font-size: clamp(1.55rem, 3vw, 2.3rem);
  line-height: 1.25;
  margin: 0;
}

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

.category-carousel {
  position: relative;
}

.category-nav {
  align-items: center;
  background: rgba(255, 253, 250, 0.92);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 12px 26px rgba(36, 23, 27, 0.11);
  color: var(--berry-dark);
  cursor: pointer;
  display: none;
  font-size: 1.6rem;
  height: 40px;
  justify-content: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  z-index: 4;
}

.category-next {
  right: 0.2rem;
}

.category-prev {
  left: 0.2rem;
}

.category-card,
.product-card {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(75, 16, 36, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.category-card {
  min-height: 150px;
  padding: 1rem;
}

.category-card:hover,
.product-card:hover {
  border-color: rgba(123, 33, 59, 0.26);
  box-shadow: 0 18px 38px rgba(75, 16, 36, 0.12);
  transform: translateY(-5px);
}

.category-card span {
  align-items: center;
  background: #fff0f4;
  border-radius: 999px;
  color: var(--berry);
  display: flex;
  font-size: 1.25rem;
  height: 46px;
  justify-content: center;
  margin-bottom: 0.9rem;
  width: 46px;
}

.category-card strong,
.category-card small {
  display: block;
}

.category-card small {
  color: var(--muted);
}

.promo-band,
.editorial-strip {
  align-items: center;
  border-radius: 20px;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  overflow: hidden;
  padding: clamp(1.4rem, 4vw, 2.3rem);
  position: relative;
}

.promo-band {
  background:
    linear-gradient(110deg, rgba(75, 16, 36, 0.98), rgba(123, 33, 59, 0.84)),
    url("assets/hero-cosmetics-optimized.jpg") center / cover;
  color: white;
}

.promo-band p {
  color: rgba(255, 255, 255, 0.76);
}

.products-section {
  padding-top: 2rem;
}

.product-heading {
  gap: 1rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.tag {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  padding: 0.45rem 0.85rem;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.tag.active,
.tag:hover {
  background: var(--berry);
  border-color: var(--berry);
  color: white;
}

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

.product-card {
  overflow: hidden;
  position: relative;
}

.product-media {
  align-items: center;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.4), rgba(233, 184, 195, 0.2)),
    var(--tone);
  display: flex;
  min-height: 220px;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.product-media img {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  transition: transform 0.25s ease;
  width: 100%;
}

.product-media::after {
  background: linear-gradient(180deg, rgba(36, 23, 27, 0.08), rgba(36, 23, 27, 0.18));
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.product-card:hover .product-media img {
  transform: scale(1.06);
}

.product-badge {
  background: rgba(255, 255, 255, 0.84);
  border-radius: 999px;
  color: var(--berry);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.58rem;
  position: absolute;
  right: 0.8rem;
  top: 0.8rem;
  z-index: 2;
}

.wishlist {
  left: 0.75rem;
  position: absolute;
  top: 0.75rem;
  z-index: 2;
}

.wishlist.is-active {
  background: var(--berry);
  color: white;
}

.product-body {
  padding: 1rem;
}

.product-body h3 {
  font-size: 1rem;
  line-height: 1.55;
  margin: 0;
  min-height: 3.1rem;
}

.product-meta {
  color: var(--muted);
  font-size: 0.84rem;
  margin: 0.35rem 0 0;
}

.product-price {
  align-items: center;
  display: flex;
  gap: 0.5rem;
  justify-content: space-between;
  margin-top: 0.85rem;
}

.product-price strong {
  color: var(--berry-dark);
}

.add-cart {
  background: #fff2e1;
  border: 1px solid rgba(217, 177, 111, 0.45);
  border-radius: 999px;
  color: var(--berry-dark);
  cursor: pointer;
  min-height: 36px;
  padding: 0.25rem 0.75rem;
  transition: transform 0.2s ease, background 0.2s ease;
}

.add-cart:hover {
  background: #ffe2b4;
  transform: translateY(-2px);
}

.editorial-strip {
  background: var(--surface-strong);
  border: 1px solid var(--line);
}

.editorial-steps {
  display: grid;
  gap: 0.65rem;
  min-width: 240px;
}

.editorial-steps span {
  background: #f7eee9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.65rem 0.8rem;
}

.trust-strip {
  background: var(--surface-strong);
  border-block: 1px solid var(--line);
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 2rem;
}

.trust-strip div {
  padding: 1.25rem;
  text-align: center;
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip span {
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer {
  background: #21171a;
  color: #fff8f4;
  padding: 3rem 1.25rem 1.5rem;
}

.footer-shell {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.35fr 0.7fr 0.7fr 1fr;
  margin: 0 auto;
  max-width: 1180px;
}

.footer-brand img {
  height: auto;
  max-width: 220px;
  width: 100%;
}

.site-footer a,
.site-footer p,
.newsletter span {
  color: rgba(255, 248, 244, 0.7);
}

.newsletter label {
  display: grid;
  gap: 0.4rem;
}

.newsletter input {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: white;
  margin-bottom: 0.7rem;
  min-height: 44px;
  outline: 0;
  padding: 0.5rem 0.9rem;
}

.toast {
  background: var(--berry-dark);
  border-radius: 999px;
  bottom: 1rem;
  box-shadow: var(--shadow);
  color: white;
  left: 50%;
  opacity: 0;
  padding: 0.7rem 1rem;
  pointer-events: none;
  position: fixed;
  transform: translate(-50%, 12px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  z-index: 80;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 980px) {
  .header-shell {
    grid-template-columns: auto 1fr auto;
  }

  .desktop-nav,
  .search-form,
  .mega-menu {
    display: none;
  }

  .mobile-menu-button {
    display: inline-flex;
  }

  .hero-slide {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
  }

  .category-grid {
    grid-auto-columns: minmax(150px, 42vw);
    grid-auto-flow: column;
    grid-template-columns: none;
    overflow-x: auto;
    padding-bottom: 0.4rem;
    scroll-snap-type: x mandatory;
  }

  .category-nav {
    display: flex;
  }

  .category-card {
    scroll-snap-align: start;
  }

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

  .footer-shell {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .top-note {
    font-size: 0.78rem;
  }

  .header-shell {
    min-height: 66px;
    padding: 0 0.85rem;
  }

  .brand {
    min-width: 142px;
  }

  .brand-image {
    height: 48px;
    width: 142px;
  }

  .brand-fallback strong {
    font-size: 1.15rem;
  }

  .header-actions .icon-button:not(.cart-button) {
    display: none;
  }

  .hero {
    gap: 1.2rem;
    padding-inline: 0.9rem;
  }

  .hero h1,
  .hero h2 {
    font-size: 2.2rem;
  }

  .carousel-button {
    height: 40px;
    top: 28%;
    width: 40px;
  }

  .hero-stats,
  .trust-strip,
  .footer-shell {
    grid-template-columns: 1fr;
  }

  .section-shell {
    padding: 2.2rem 0.9rem;
  }

  .section-heading,
  .promo-band,
  .editorial-strip {
    align-items: stretch;
    flex-direction: column;
  }

  .product-heading {
    align-items: flex-start;
  }

  .tag-row {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    width: 100%;
  }

  .product-grid {
    gap: 0.75rem;
  }

  .product-media {
    min-height: 160px;
  }

  .product-body {
    padding: 0.78rem;
  }

  .product-body h3 {
    font-size: 0.9rem;
    min-height: 2.8rem;
  }

  .product-price {
    align-items: flex-start;
    flex-direction: column;
  }
}
