:root {
  --pink-50: #fff1f7;
  --pink-100: #ffe1ee;
  --pink-200: #ffc4dd;
  --pink-400: #ff5fa2;
  --pink-500: #ec2d7f;
  --pink-600: #d81b73;
  --grad: linear-gradient(120deg, #ff8fc0 0%, #ec2d7f 55%, #d81b73 100%);
  --grad-soft: linear-gradient(120deg, #ffe7f1 0%, #ffd0e5 100%);
  --ink: #2b1d27;
  --muted: #8a7683;
  --line: #f2dbe7;
  --white: #fff;
  --radius: 18px;
  --shadow: 0 14px 40px rgba(216, 27, 115, .12);
  --shadow-sm: 0 6px 18px rgba(216, 27, 115, .08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Be Vietnam Pro', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.container { width: min(1180px, 92%); margin: 0 auto; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 40px; font-weight: 600;
  font-size: .95rem; border: none; cursor: pointer; transition: .25s;
  font-family: inherit;
}
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 10px 24px rgba(236,45,127,.35); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(236,45,127,.45); }
.btn--outline { background: #fff; color: var(--pink-600); border: 1.5px solid var(--pink-200); }
.btn--outline:hover { background: var(--pink-50); }
.btn--white { background: #fff; color: var(--pink-600); }
.btn--white:hover { transform: translateY(-2px); }
.btn--block { width: 100%; justify-content: center; }

/* ===== Header ===== */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.9); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s;
}
.header.scrolled { box-shadow: var(--shadow-sm); }
.header__inner { display: flex; align-items: center; gap: 24px; padding: 14px 0; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo__icon {
  width: 42px; height: 42px; display: grid; place-items: center;
  background: var(--grad); border-radius: 12px; font-size: 1.3rem;
}
.logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.logo__text strong { font-size: 1.25rem; }
.logo__text small { font-size: .68rem; color: var(--muted); letter-spacing: .5px; }
.logo--light .logo__text strong, .logo--light .logo__text small { color: #fff; }

.nav { display: flex; gap: 26px; margin-left: auto; }
.nav__link { font-weight: 500; font-size: .95rem; color: var(--ink); position: relative; padding: 4px 0; }
.nav__link:hover, .nav__link.active { color: var(--pink-600); }
.nav__link.active::after {
  content: ''; position: absolute; left: 0; bottom: -2px; width: 100%; height: 2px;
  background: var(--grad); border-radius: 2px;
}
.header__actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.search { display: flex; align-items: center; background: #fff; border: 1.5px solid var(--line); border-radius: 40px; padding: 4px 4px 4px 16px; }
.search input { border: none; outline: none; font-family: inherit; width: 150px; background: transparent; }
.search button { border: none; background: var(--grad); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; color: #fff; }
.icon-btn { border: none; background: transparent; font-size: 1.2rem; cursor: pointer; }
.cart-btn {
  position: relative; border: none; background: var(--grad); color: #fff;
  padding: 9px 16px; border-radius: 40px; cursor: pointer; font-size: .95rem;
}
.cart-count {
  background: #fff; color: var(--pink-600); border-radius: 50%;
  font-size: .72rem; font-weight: 700; padding: 1px 6px; margin-left: 4px;
}
.menu-toggle { display: none; border: none; background: transparent; font-size: 1.5rem; cursor: pointer; }

/* ===== Hero ===== */
.hero { background: var(--grad-soft); padding-top: 40px; position: relative; }
.hero__inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 30px; align-items: center; }
.badge {
  display: inline-block; background: #fff; color: var(--pink-600);
  padding: 7px 16px; border-radius: 40px; font-size: .82rem; font-weight: 600;
  box-shadow: var(--shadow-sm); margin-bottom: 18px;
}
.hero__content h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); font-weight: 800; line-height: 1.1; }
.hero__content h1 span { color: var(--pink-600); }
.hero__content p { color: #6c5560; margin: 18px 0 26px; max-width: 440px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__media {
  position: relative; border-radius: 30px; overflow: hidden;
  height: 440px; box-shadow: var(--shadow);
  background: linear-gradient(160deg, #ffe7f1, #ffc7e0);
}
.hero__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center; display: block;
}
.hero__circle {
  position: absolute; bottom: 22px; right: 22px;
  width: 116px; height: 116px; border-radius: 50%; background: #fff;
  display: grid; place-content: center; text-align: center; box-shadow: var(--shadow);
}
.hero__circle strong { font-size: 1.7rem; color: var(--pink-600); }
.hero__circle small { font-size: .72rem; color: var(--muted); }

/* Trust bar */
.trust {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  padding: 22px; margin: 40px 0 -50px; position: relative; z-index: 5;
}
.trust__item { display: flex; align-items: center; gap: 12px; min-width: 0; }
.trust__item:not(:last-child) { border-right: 1px solid var(--line); }
.trust__item > div { min-width: 0; }
.trust__icon { width: 44px; height: 44px; flex-shrink: 0; display: grid; place-items: center; background: var(--pink-50); border-radius: 12px; font-size: 1.3rem; }
.trust__item strong { display: block; font-size: .95rem; }
.trust__item small { color: var(--muted); font-size: .8rem; }

/* ===== Sections ===== */
.section { padding: 70px 0; }
.section__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; flex-wrap: wrap; gap: 10px; }
.section__head h2 { font-size: 1.7rem; font-weight: 700; }
.link-arrow { color: var(--pink-600); font-weight: 600; font-size: .92rem; }
.link-arrow:hover { text-decoration: underline; }

/* Categories */
.category-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.cat-card {
  background: var(--pink-50); border-radius: var(--radius); padding: 22px 16px;
  text-align: center; cursor: pointer; transition: .25s; border: 1px solid transparent;
}
.cat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--pink-100); }
.cat-card__emoji {
  width: 92px; height: 92px; margin: 0 auto 14px; border-radius: 50%;
  background: #fff; display: grid; place-items: center; box-shadow: var(--shadow-sm); overflow: hidden;
}
.cat-card__emoji img { width: 100%; height: 100%; object-fit: cover; }
.cat-card h3 { font-size: 1rem; font-weight: 600; }
.cat-card small { color: var(--muted); font-size: .82rem; }

/* Offer banner */
.offer-banner {
  background: var(--grad); border-radius: 26px; padding: 46px;
  color: #fff; position: relative; overflow: hidden;
}
.offer-banner::after {
  content: '💄'; position: absolute; right: 40px; top: 50%; transform: translateY(-50%);
  font-size: 9rem; opacity: .2;
}
.offer-tag { background: rgba(255,255,255,.25); padding: 6px 14px; border-radius: 40px; font-size: .82rem; font-weight: 600; }
.offer-banner h3 { font-size: 2.6rem; font-weight: 800; margin: 14px 0 6px; }
.offer-banner h3 span { color: #fff2c2; }
.offer-banner p { margin-bottom: 22px; opacity: .95; }

/* Products */
.product-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.product-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: .25s; display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product-card__img { position: relative; aspect-ratio: 1; background: var(--pink-50); display: grid; place-items: center; overflow: hidden; }
.product-card__img img { width: 100%; height: 100%; object-fit: cover; }
.product-card__badge { position: absolute; top: 10px; left: 10px; background: var(--pink-600); color: #fff; font-size: .7rem; font-weight: 700; padding: 4px 9px; border-radius: 20px; }
.product-card__body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card__name { font-weight: 600; font-size: .98rem; }
.product-card__vol { color: var(--muted); font-size: .8rem; }
.rating { display: flex; align-items: center; gap: 5px; font-size: .8rem; color: var(--muted); }
.rating .stars { color: #ffb400; letter-spacing: 1px; }
.price { display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.price__now { font-weight: 700; color: var(--pink-600); font-size: 1.05rem; }
.price__old { color: var(--muted); text-decoration: line-through; font-size: .85rem; }
.product-card .btn { margin-top: auto; }
.add-btn {
  margin-top: 10px; border: none; background: var(--grad); color: #fff;
  padding: 10px; border-radius: 40px; cursor: pointer; font-weight: 600;
  font-family: inherit; font-size: .88rem; transition: .2s;
}
.add-btn:hover { filter: brightness(1.05); }
.add-btn:active { transform: scale(.97); }

/* Perks */
.perks {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  background: var(--pink-50); border-radius: var(--radius); padding: 26px;
}
.perk { display: flex; align-items: center; gap: 12px; min-width: 0; }
.perk > div { min-width: 0; }
.perk span { width: 46px; height: 46px; flex-shrink: 0; display: grid; place-items: center; background: #fff; border-radius: 12px; font-size: 1.3rem; box-shadow: var(--shadow-sm); }
.perk strong { display: block; font-size: .95rem; }
.perk small { color: var(--muted); font-size: .8rem; }

/* Footer */
.footer { background: linear-gradient(160deg, #3a0f26, #5a1338); color: #f6dced; padding-top: 56px; margin-top: 40px; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 30px; padding-bottom: 40px; }
.footer__col h4 { margin-bottom: 16px; font-size: 1.05rem; color: #fff; }
.footer__col a { display: block; color: #e8c6da; font-size: .9rem; margin-bottom: 10px; transition: .2s; }
.footer__col a:hover { color: #fff; }
.footer__col p { font-size: .9rem; color: #e8c6da; margin: 12px 0; }
.socials { display: flex; gap: 10px; margin-top: 14px; }
.socials a { width: 38px; height: 38px; display: grid; place-items: center; background: rgba(255,255,255,.12); border-radius: 10px; }
.socials a:hover { background: var(--pink-500); }
.newsletter { display: flex; gap: 8px; }
.newsletter input { flex: 1; padding: 11px 14px; border: none; border-radius: 40px; font-family: inherit; outline: none; }
.newsletter button { border: none; background: var(--grad); color: #fff; padding: 0 18px; border-radius: 40px; cursor: pointer; font-family: inherit; font-weight: 600; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0; font-size: .82rem; color: #d8b3ca; text-align: center; }

/* ===== Cart drawer ===== */
.cart-overlay { position: fixed; inset: 0; background: rgba(43,29,39,.5); opacity: 0; visibility: hidden; transition: .3s; z-index: 90; }
.cart-overlay.open { opacity: 1; visibility: visible; }
.cart-drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(400px, 90%);
  background: #fff; z-index: 100; transform: translateX(100%); transition: .3s;
  display: flex; flex-direction: column; box-shadow: -10px 0 40px rgba(0,0,0,.15);
}
.cart-drawer.open { transform: translateX(0); }
.cart-drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid var(--line); }
.cart-drawer__head h3 { font-size: 1.2rem; }
.cart-drawer__head button { border: none; background: var(--pink-50); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 1rem; }
.cart-drawer__body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.cart-empty { text-align: center; color: var(--muted); padding: 40px 0; }
.cart-item { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-item__img { width: 54px; height: 54px; background: var(--pink-50); border-radius: 12px; display: grid; place-items: center; overflow: hidden; flex-shrink: 0; }
.cart-item__img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__info { flex: 1; }
.cart-item__info strong { display: block; font-size: .9rem; }
.cart-item__info span { color: var(--pink-600); font-weight: 600; font-size: .88rem; }
.qty { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.qty button { width: 24px; height: 24px; border: 1px solid var(--line); background: #fff; border-radius: 6px; cursor: pointer; font-weight: 700; }
.cart-item__remove { border: none; background: transparent; cursor: pointer; color: var(--muted); font-size: 1.1rem; }
.cart-drawer__foot { padding: 20px; border-top: 1px solid var(--line); }
.cart-total { display: flex; justify-content: space-between; margin-bottom: 14px; font-size: 1.1rem; }
.cart-total strong { color: var(--pink-600); }

/* ===== Checkout modal ===== */
.checkout-overlay { position: fixed; inset: 0; background: rgba(43,29,39,.5); opacity: 0; visibility: hidden; transition: .3s; z-index: 110; }
.checkout-overlay.open { opacity: 1; visibility: visible; }
.checkout-modal {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -46%) scale(.98);
  width: min(460px, 92%); max-height: 90vh; background: #fff; z-index: 115;
  border-radius: 22px; box-shadow: 0 30px 80px rgba(43,29,39,.35);
  display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; visibility: hidden; transition: .3s;
}
.checkout-modal.open { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); }
.checkout__head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.checkout__head h3 { font-size: 1.2rem; }
.checkout__head button { border: none; background: var(--pink-50); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 1rem; }
.checkout__body { padding: 18px 22px; overflow-y: auto; }
.checkout__summary { background: var(--pink-50); border-radius: 14px; padding: 14px 16px; margin-bottom: 18px; }
.checkout__summary h4, .checkout__form h4 { font-size: .95rem; margin-bottom: 10px; }
.co-item { display: flex; justify-content: space-between; gap: 10px; font-size: .9rem; padding: 5px 0; color: #5c4a54; }
.co-item span:last-child { color: var(--pink-600); font-weight: 600; white-space: nowrap; }
.checkout__sumtotal { display: flex; justify-content: space-between; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--pink-200); font-weight: 700; }
.checkout__sumtotal strong { color: var(--pink-600); }
.checkout__form label { display: block; font-size: .85rem; font-weight: 500; color: #5c4a54; margin-bottom: 12px; }
.checkout__form label span { color: var(--pink-600); }
.checkout__form input, .checkout__form textarea {
  width: 100%; margin-top: 6px; padding: 11px 13px; border: 1.5px solid var(--line);
  border-radius: 10px; font-family: inherit; font-size: .92rem; outline: none; resize: vertical; transition: border-color .2s;
}
.checkout__form input:focus, .checkout__form textarea:focus { border-color: var(--pink-400); }
.checkout__form input.invalid, .checkout__form textarea.invalid { border-color: #e23; background: #fff5f6; }
.checkout__pay { background: #fff7e6; border: 1px solid #ffe1a8; color: #a06a00; border-radius: 10px; padding: 10px 13px; font-size: .85rem; margin-bottom: 16px; }
.checkout__success { padding: 34px 26px 26px; text-align: center; }
.checkout__check { width: 66px; height: 66px; margin: 0 auto 16px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-size: 2rem; }
.checkout__success h3 { font-size: 1.3rem; margin-bottom: 8px; }
.checkout__success p { color: var(--muted); font-size: .92rem; margin-bottom: 6px; }
.checkout__success p strong { color: var(--pink-600); }
.checkout__success .btn { margin-top: 18px; }

/* Toast */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(120%);
  background: var(--ink); color: #fff; padding: 12px 22px; border-radius: 40px;
  font-size: .9rem; z-index: 120; transition: transform .35s; box-shadow: var(--shadow);
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .category-grid, .product-grid { grid-template-columns: repeat(3, 1fr); }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { height: 280px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .search { display: none; }
}
@media (max-width: 760px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; padding: 16px 20px; box-shadow: var(--shadow); gap: 14px; }
  .nav.open { display: flex; }
  .menu-toggle { display: block; }
  .trust { grid-template-columns: 1fr 1fr; }
  .trust__item:nth-child(2) { border-right: none; }
  .perks { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .category-grid, .product-grid { grid-template-columns: 1fr 1fr; }
  .trust, .perks { grid-template-columns: 1fr; }
  .offer-banner { padding: 32px 24px; }
  .footer__inner { grid-template-columns: 1fr; }
}
