:root {
  --pink: #f0448d;
  --pink-dark: #d82e76;
  --pink-soft: #fff0f7;
  --pink-line: #ffd1e5;
  --ink: #151014;
  --muted: #766a72;
  --surface: #ffffff;
  --shadow: 0 18px 44px rgba(216, 46, 118, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: Inter, Arial, sans-serif;
  letter-spacing: 0;
}

body.menu-open,
body.cart-open {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

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

.topbar {
  display: grid;
  grid-template-columns: 1fr auto auto auto auto;
  align-items: center;
  gap: 22px;
  min-height: 40px;
  padding: 6px clamp(20px, 4.8vw, 58px);
  background: #ffe5ef;
  color: #161014;
  font-size: 14px;
  font-weight: 600;
}

.topbar span,
.topbar a,
.top-cart {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.topbar svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.4;
}

.top-cart {
  position: relative;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.top-cart b {
  position: absolute;
  top: -8px;
  right: -10px;
  display: grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 999px;
  background: #ff8fbd;
  color: #fff;
  font-size: 10px;
}

.header {
  display: grid;
  grid-template-columns: 290px minmax(260px, 480px) auto;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 118px;
  padding: 14px clamp(24px, 5vw, 58px);
  background: #fff;
}

.menu-button {
  display: none;
}

.brand {
  display: grid;
  grid-template-columns: 96px 1fr;
  grid-template-areas:
    "mark name"
    "mark small";
  align-items: center;
  width: max-content;
  color: var(--pink);
}

.brand-mark {
  grid-area: mark;
  position: relative;
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border: 2px solid #ff8fbd;
  border-radius: 50%;
  font-family: "Playfair Display", serif;
  font-size: 55px;
  line-height: 1;
}

.brand-mark span {
  position: absolute;
  right: 13px;
  bottom: 14px;
  color: #ffb9d5;
  font-size: 21px;
}

.brand strong {
  grid-area: name;
  font-family: "Playfair Display", serif;
  font-size: 31px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.brand small {
  grid-area: small;
  color: #6c5660;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 7px;
  text-transform: uppercase;
}

.search {
  display: grid;
  grid-template-columns: 1fr 52px;
  align-items: center;
  height: 46px;
  border: 1px solid #e9dfe5;
  border-radius: 6px;
  background: #fff;
}

.search input {
  min-width: 0;
  height: 100%;
  border: 0;
  padding: 0 16px;
  outline: 0;
}

.search button {
  display: grid;
  height: 100%;
  place-items: center;
  border: 0;
  background: #fff;
  color: var(--pink);
  cursor: pointer;
}

.account {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.account svg {
  width: 36px;
  height: 36px;
  color: var(--pink);
}

.account span {
  display: grid;
  gap: 4px;
}

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

.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  justify-content: center;
  gap: clamp(18px, 4vw, 58px);
  min-height: 52px;
  padding: 0 22px;
  border-bottom: 1px solid #f7d7e6;
  background: #fff;
}

.nav a {
  display: inline-flex;
  align-items: center;
  color: #111;
  font-size: 15px;
  font-weight: 800;
}

.nav a.active,
.nav a:hover {
  color: var(--pink);
}

.hero {
  position: relative;
  min-height: 338px;
  overflow: hidden;
  background: #ffeaf3;
}

.hero img {
  width: 100%;
  min-height: 338px;
  object-fit: cover;
}

.hero-copy {
  position: absolute;
  top: 74%;
  left: 16.5%;
  width: 152px;
  height: 44px;
  transform: translateY(-50%);
}

.hero h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.hero-copy a {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 5px;
  opacity: 0;
  text-indent: -999px;
}

.hero-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.hero-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
}

.hero-dots i:first-child {
  background: var(--pink);
}

.benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  padding: 28px clamp(28px, 5vw, 58px);
  background: #fff0f6;
}

.benefits article {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  align-items: center;
}

.benefits span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: #ffc3dc;
}

.benefits b,
.benefits small {
  display: block;
}

.benefits small {
  margin-top: 5px;
  color: var(--muted);
}

.section {
  padding: 28px clamp(22px, 5vw, 58px) 42px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-heading h2 {
  margin: 0;
  font-size: 25px;
  font-weight: 900;
  text-transform: uppercase;
}

.section-heading button {
  min-width: 92px;
  min-height: 32px;
  border: 1px solid var(--pink);
  border-radius: 6px;
  background: #fff;
  color: var(--pink);
  font-weight: 800;
  cursor: pointer;
}

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

.product-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #f1e3ea;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(30, 12, 22, 0.08);
}

.product-card .tag {
  position: absolute;
  top: 11px;
  left: 10px;
  z-index: 1;
  border-radius: 3px;
  padding: 4px 8px;
  background: #fff;
  color: var(--pink);
  font-size: 12px;
  font-weight: 800;
}

.product-card img {
  width: 100%;
  aspect-ratio: 1 / 1.2;
  object-fit: cover;
  background: var(--pink-soft);
}

.product-info {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.product-info h3 {
  min-height: 42px;
  margin: 0;
  font-size: 14px;
  line-height: 1.28;
}

.product-info strong {
  color: var(--pink);
  font-size: 19px;
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr 42px;
  gap: 8px;
}

.product-actions output {
  display: grid;
  height: 42px;
  place-items: center end;
  border: 1px solid #eadde4;
  border-radius: 5px;
  padding: 0 12px;
  color: #6e5e67;
  font-size: 20px;
  font-weight: 800;
}

.product-actions button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--pink);
  color: #fff;
  cursor: pointer;
}

.category-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  padding: 0 clamp(22px, 5vw, 58px) 42px;
}

.category-strip a {
  display: grid;
  min-height: 76px;
  place-items: center;
  border-radius: 8px;
  background: var(--pink-soft);
  color: var(--pink-dark);
  font-weight: 900;
  text-transform: uppercase;
}

.promo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 clamp(22px, 5vw, 58px) 44px;
  padding: 28px;
  border-radius: 10px;
  background: linear-gradient(110deg, var(--pink), #ff9dc9);
  color: #fff;
}

.promo small {
  font-weight: 800;
  text-transform: uppercase;
}

.promo h2 {
  max-width: 620px;
  margin: 6px 0 0;
}

.promo a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 6px;
  padding: 0 18px;
  background: #fff;
  color: var(--pink-dark);
  font-weight: 900;
  white-space: nowrap;
}

.bottom-cart[hidden] {
  display: none;
}

.bottom-cart {
  position: fixed;
  left: 50%;
  bottom: 16px;
  z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  width: min(520px, calc(100% - 24px));
  min-height: 62px;
  border: 0;
  border-radius: 999px;
  padding: 9px 11px 9px 18px;
  background: #171015;
  color: #fff;
  box-shadow: 0 18px 44px rgba(30, 10, 20, 0.24);
  transform: translateX(-50%);
  cursor: pointer;
}

.bottom-cart span,
.bottom-cart strong,
.bottom-cart em {
  white-space: nowrap;
}

.bottom-cart em {
  display: grid;
  min-height: 42px;
  place-items: center;
  border-radius: 999px;
  padding: 0 17px;
  background: var(--pink);
  font-style: normal;
  font-weight: 900;
}

.cart {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  visibility: hidden;
}

.cart.open {
  pointer-events: auto;
  visibility: visible;
}

.cart-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 10, 16, 0.55);
  opacity: 0;
}

.cart.open .cart-backdrop {
  opacity: 1;
}

.cart-drawer {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(430px, 100%);
  height: 100%;
  background: #fff;
  transform: translateX(100%);
  transition: transform 180ms ease;
}

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

.cart-drawer header,
.cart-drawer footer {
  padding: 20px;
  border-bottom: 1px solid #f0dce6;
}

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

.cart-drawer h2 {
  margin: 4px 0 0;
}

.cart-drawer header button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--pink-soft);
  color: var(--pink);
}

.cart-items {
  display: grid;
  align-content: start;
  gap: 12px;
  overflow: auto;
  padding: 18px 20px;
}

.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid #f0dce6;
  border-radius: 8px;
}

.cart-item img {
  width: 64px;
  height: 74px;
  object-fit: cover;
  border-radius: 6px;
}

.cart-item h3,
.cart-item p {
  margin: 0;
}

.cart-item h3 {
  font-size: 14px;
}

.cart-item p {
  margin-top: 5px;
  color: var(--pink);
  font-weight: 800;
}

.cart-item button {
  border: 0;
  background: transparent;
  color: var(--pink);
  cursor: pointer;
}

.cart-empty {
  margin: 18px;
  padding: 18px;
  border-radius: 8px;
  background: var(--pink-soft);
  text-align: center;
}

.cart-drawer footer {
  display: grid;
  gap: 12px;
  border-top: 1px solid #f0dce6;
  border-bottom: 0;
}

.cart-drawer footer span {
  display: flex;
  justify-content: space-between;
  font-weight: 900;
}

.cart-drawer footer a {
  display: grid;
  min-height: 48px;
  place-items: center;
  border-radius: 6px;
  background: var(--pink);
  color: #fff;
  font-weight: 900;
}

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

  .brand {
    grid-template-columns: 76px 1fr;
  }

  .brand-mark {
    width: 64px;
    height: 64px;
    font-size: 43px;
  }

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

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

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

@media (max-width: 760px) {
  .topbar {
    grid-template-columns: 1fr auto;
    gap: 10px;
    min-height: 36px;
    padding: 7px 12px;
    font-size: 11px;
    overflow: hidden;
  }

  .topbar > span:first-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .topbar > span:nth-child(2),
  .topbar > a {
    display: none;
  }

  .header {
    grid-template-columns: 48px 1fr 48px;
    grid-template-areas:
      "menu brand account"
      "search search search";
    gap: 8px;
    min-height: 124px;
    padding: 12px;
  }

  .menu-button {
    grid-area: menu;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid var(--pink-line);
    border-radius: 12px;
    background: #fff;
    color: var(--pink);
  }

  .brand {
    grid-area: brand;
    justify-self: center;
    grid-template-columns: 56px 1fr;
  }

  .brand-mark {
    width: 50px;
    height: 50px;
    font-size: 33px;
  }

  .brand strong {
    font-size: 23px;
  }

  .brand small {
    letter-spacing: 4px;
  }

  .account {
    grid-area: account;
    justify-self: end;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid var(--pink-line);
    border-radius: 12px;
  }

  .account span {
    display: none;
  }

  .account svg {
    width: 30px;
    height: 30px;
  }

  .search {
    grid-area: search;
    grid-column: 1 / -1;
    width: 100%;
  }

  .nav {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 70;
    display: flex;
    width: min(310px, 84vw);
    height: 100%;
    flex-direction: column;
    justify-content: flex-start;
    gap: 4px;
    padding: 76px 16px 20px;
    background: #fff;
    box-shadow: 18px 0 50px rgba(30, 12, 22, 0.18);
    transform: translateX(-105%);
    transition: transform 180ms ease;
  }

  body.menu-open .nav {
    transform: translateX(0);
  }

  .nav a {
    min-height: 44px;
    border-radius: 8px;
    padding: 0 12px;
    background: var(--pink-soft);
  }

  .hero,
  .hero img {
    min-height: 230px;
  }

  .hero img {
    width: 100%;
    height: 230px;
    object-fit: contain;
    object-position: center;
    background: #ffe7f1;
  }

  .hero-copy {
    top: 70%;
    left: 16%;
    width: 128px;
    height: 38px;
  }

  .benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 18px 12px;
  }

  .benefits article {
    grid-template-columns: 38px 1fr;
    gap: 8px;
    min-height: 58px;
    align-items: center;
  }

  .benefits article:nth-child(1) {
    order: 1;
  }

  .benefits article:nth-child(2) {
    order: 3;
  }

  .benefits article:nth-child(3) {
    order: 4;
  }

  .benefits article:nth-child(4) {
    order: 2;
  }

  .benefits span {
    width: 34px;
    height: 34px;
  }

  .benefits b {
    font-size: 12px;
    line-height: 1.15;
  }

  .benefits small {
    display: none;
  }

  .section {
    padding: 24px 12px 34px;
  }

  .section-heading h2 {
    font-size: 22px;
  }

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

  .product-info {
    padding: 10px;
  }

  .product-info h3 {
    min-height: 38px;
    font-size: 12px;
  }

  .product-info strong {
    font-size: 17px;
  }

  .product-actions {
    grid-template-columns: 1fr 38px;
  }

  .product-actions output,
  .product-actions button {
    height: 38px;
  }

  .product-actions button {
    width: 38px;
  }

  .category-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0 12px 34px;
  }

  .promo {
    display: grid;
    margin: 0 12px 34px;
    padding: 22px;
  }
}

@media (max-width: 380px) {
  .hero-copy {
    width: 51vw;
  }

  .product-grid {
    gap: 10px;
  }

  .bottom-cart {
    grid-template-columns: auto 1fr;
    border-radius: 18px;
  }

  .bottom-cart em {
    grid-column: 1 / -1;
  }
}
