
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
  --pink: #f56eb5;
  --pink-light: #fff0f7;
  --sky: #78d5f5;
  --black: #17151d;
  --muted: #777582;
  --white: #ffffff;
  --line: #f0e8ef;
  --shadow: 0 12px 35px rgba(36, 20, 42, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  color: var(--black);
  background: #fffafd;
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }

.navbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(15px);
  display: flex; justify-content: space-between; align-items: center;
  padding: 17px 6%; gap: 22px;
  border-bottom: 1px solid var(--line);
}
.logo { font-size: 21px; font-weight: 800; letter-spacing: -1px; white-space: nowrap; }
.logo span { color: var(--pink); }
.logo small { display: block; font-size: 9px; letter-spacing: 3px; color: var(--muted); }
nav { display: flex; gap: 28px; font-size: 13px; font-weight: 600; }
nav a { transition: color .2s; }
nav a:hover { color: var(--pink); }
.nav-actions { display: flex; align-items: center; gap: 9px; }

.btn {
  display: inline-flex; justify-content: center; align-items: center;
  gap: 8px; padding: 12px 19px; border: 0; border-radius: 999px;
  font-size: 12px; font-weight: 700; transition: .25s ease;
}
.primary {
  background: linear-gradient(120deg, var(--pink), #f7a2d0 55%, var(--sky));
  color: #17151d;
  box-shadow: 0 6px 18px rgba(245,110,181,.23);
}
.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(245,110,181,.35);
  filter: saturate(1.12);
}
.btn:active { transform: scale(.97); }
.outline { background: white; border: 1px solid #eadce7; }
.outline:hover { border-color: var(--pink); color: #d83f92; }
.full { width: 100%; margin-top: 16px; }
.hero {
  padding: 65px 8%; display: grid;
  grid-template-columns: 1fr .88fr; align-items: center; gap: 55px;
  background: linear-gradient(115deg, #fff1f8 0%, #fffafd 48%, #e7f9ff 100%);
  overflow: hidden;
}
.eyebrow { color: #d74491; font-size: 10px; font-weight: 800; letter-spacing: 2px; }
.hero h1 { font-size: clamp(35px, 4.6vw, 61px); line-height: 1.16; letter-spacing: -2px; margin: 17px 0; }
.hero h1 span, .section-heading h2 span { color: #e95ba6; }
.hero-text > p { color: var(--muted); font-size: 14px; line-height: 1.9; max-width: 450px; }
.hero-btn { margin-top: 17px; padding: 15px 27px; }
.trust { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 27px; font-size: 11px; font-weight: 600; }
.trust span:first-child { color: #d74491; }
.trust span:last-child { color: #238cae; }
.hero-image { position: relative; }
.hero-image img { width: 100%; height: 410px; object-fit: cover; border-radius: 180px 180px 25px 25px; box-shadow: var(--shadow); }
.floating-tag {
  position: absolute; bottom: 20px; left: -25px;
  background: white; padding: 15px 20px; border-radius: 14px;
  font-size: 12px; font-weight: 700; box-shadow: var(--shadow);
}
.benefits { display: grid; grid-template-columns: repeat(3,1fr); padding: 22px 8%; background: white; gap: 18px; border-bottom: 1px solid var(--line); }
.benefits div { display: grid; grid-template-columns: 32px 1fr; align-items: center; font-size: 12px; }
.benefits div:first-letter { font-size: 20px; }
.benefits b { font-size: 12px; }
.benefits small { grid-column: 2; color: var(--muted); font-size: 10px; }
.section { padding: 65px 7%; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 27px; }
.section-heading h2 { margin: 8px 0 0; font-size: clamp(25px, 3vw, 36px); letter-spacing: -1px; }
.section-heading p { font-size: 12px; color: var(--muted); max-width: 280px; line-height: 1.8; }
.filters { display: grid; grid-template-columns: 1fr 190px 190px; gap: 12px; margin-bottom: 28px; }
input, select, textarea {
  width: 100%; min-width: 0; border: 1px solid #eadfe8; background: white;
  padding: 12px 14px; border-radius: 12px; outline: none; color: var(--black);
}
input:focus, select:focus, textarea:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(245,110,181,.1); }
.product-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 23px; }
.product-card {
  background: white; border: 1px solid #f1e9ef; border-radius: 17px;
  padding: 10px; overflow: hidden; transition: transform .25s, box-shadow .25s;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product-photo { position: relative; background: var(--pink-light); border-radius: 12px; overflow: hidden; }
.product-photo img { width: 100%; height: 215px; object-fit: cover; transition: transform .4s; }
.product-card:hover .product-photo img { transform: scale(1.05); }
.tag {
  position: absolute; top: 10px; left: 9px; background: white;
  border-radius: 20px; padding: 5px 9px; font-size: 9px; font-weight: 700;
}
.product-info { padding: 13px 5px 5px; }
.category-text { color: #d74491; font-size: 9px; text-transform: uppercase; font-weight: 700; letter-spacing: 1px; }
.product-info h3 { font-size: 13px; margin: 6px 0; min-height: 38px; line-height: 1.5; }
.rating { color: #dc9b23; font-size: 11px; }
.rating small { color: var(--muted); }
.price-row { display: flex; justify-content: space-between; align-items: center; gap: 7px; margin-top: 12px; }
.price { font-size: 15px; font-weight: 800; }
.add-btn {
  width: 35px; height: 35px; border: none; border-radius: 50%;
  background: var(--black); color: white; font-size: 20px; transition: .2s;
}
.add-btn:hover { background: var(--pink); color: var(--black); transform: rotate(8deg) scale(1.08); }
.details-btn { width: 100%; border: 1px solid var(--line); background: white; border-radius: 9px; padding: 9px; font-size: 10px; font-weight: 700; margin-top: 10px; }
.details-btn:hover { background: #e9f9ff; border-color: var(--sky); }
.empty { grid-column: 1/-1; text-align: center; padding: 45px; color: var(--muted); }
.promo {
  margin: 10px 7% 60px; padding: 36px 5%;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  border-radius: 22px; background: linear-gradient(115deg,#ffe8f4,#e4f8ff);
}
.promo h2 { font-size: 27px; margin: 8px 0; }
.promo p { font-size: 12px; color: var(--muted); }
.dark-btn { background: var(--black); color: white; white-space: nowrap; }
.dark-btn:hover { background: #34303e; transform: translateY(-3px); }
footer { padding: 30px 7%; display: flex; justify-content: space-between; align-items: center; gap: 20px; border-top: 1px solid var(--line); background: white; }
footer p { color: var(--muted); font-size: 10px; }

.overlay {
  position: fixed; inset: 0; z-index: 50; padding: 20px;
  display: none; align-items: center; justify-content: center;
  background: rgba(20,15,25,.62); backdrop-filter: blur(5px);
}
.overlay.show { display: flex; }
.modal {
  position: relative; width: min(100%, 460px); max-height: 90vh; overflow-y: auto;
  padding: 30px; border-radius: 23px; background: white; box-shadow: 0 25px 80px #0003;
}
.product-modal { width: min(100%,700px); }
.close {
  position: absolute; right: 15px; top: 12px; width: 35px; height: 35px;
  border: 0; border-radius: 50%; background: #fff0f7; font-size: 24px; z-index: 2;
}
.modal-head { margin: 5px 0 20px; }
.modal-head h2, .success-modal h2 { font-size: 24px; margin: 7px 0; }
.modal-head p, .success-modal p { color: var(--muted); font-size: 12px; line-height: 1.7; }
.modal form label { display: block; font-size: 11px; font-weight: 700; margin: 12px 0 6px; }
.switch-text { text-align: center; font-size: 11px; color: var(--muted); margin-top: 18px; }
.switch-text button { border: 0; background: none; color: #d74491; font-weight: 700; }
.small-note { text-align: center; font-size: 10px; color: #a19ba6; }
.cart-row { display: grid; grid-template-columns: 60px 1fr auto; gap: 12px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); }
.cart-row img { width: 60px; height: 65px; object-fit: cover; border-radius: 10px; }
.cart-row h4 { font-size: 12px; margin: 0 0 5px; }
.cart-row p { font-size: 11px; color: var(--muted); margin: 0; }
.qty-controls { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.qty-controls button { border: 1px solid var(--line); background: white; border-radius: 6px; width: 25px; height: 25px; }
.remove-btn { border: 0; background: none; color: #d74491; font-size: 11px; margin-top: 5px; }
.cart-total { display: flex; justify-content: space-between; padding: 20px 0 4px; font-size: 15px; }
.checkout-summary { background: #fff2f8; border-radius: 12px; padding: 14px; margin-top: 15px; font-size: 12px; line-height: 1.9; overflow-wrap: anywhere; }
.detail-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 23px; align-items: start; }
.detail-layout img { width: 100%; height: 300px; object-fit: cover; border-radius: 15px; }
.detail-layout h2 { font-size: 22px; margin: 8px 0; }
.detail-layout p { font-size: 12px; color: var(--muted); line-height: 1.8; }
.success-modal { text-align: center; }
.success-icon { width: 65px; height: 65px; border-radius: 50%; background: #e5fbf0; color: #168b59; display: grid; place-items: center; font-size: 32px; margin: 10px auto 18px; }
#toast {
  position: fixed; bottom: 25px; left: 50%; transform: translate(-50%,20px);
  opacity: 0; pointer-events: none; z-index: 100; padding: 13px 20px;
  border-radius: 12px; background: var(--black); color: white; font-size: 12px;
  box-shadow: var(--shadow); transition: .25s; max-width: 90%; text-align: center;
}
#toast.show { opacity: 1; transform: translate(-50%,0); }

@media (max-width: 1000px) {
  .product-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .hero { gap: 30px; padding: 50px 6%; }
  .hero-image img { height: 350px; }
  nav { gap: 15px; }
}
@media (max-width: 700px) {
  .navbar { flex-wrap: wrap; padding: 14px 5%; gap: 12px; }
  nav { order: 3; width: 100%; justify-content: center; padding-top: 10px; border-top: 1px solid var(--line); }
  .logo { font-size: 18px; }
  .nav-actions { gap: 6px; }
  .nav-actions .btn { padding: 10px 12px; font-size: 10px; }
  .hero { grid-template-columns: 1fr; padding: 42px 6%; gap: 30px; }
  .hero h1 { font-size: 42px; }
  .hero-image img { height: 320px; border-radius: 100px 100px 20px 20px; }
  .floating-tag { left: 10px; }
  .benefits { padding: 20px 5%; gap: 10px; }
  .benefits div { grid-template-columns: 1fr; gap: 5px; text-align: center; }
  .benefits small { grid-column: 1; }
  .section { padding: 45px 5%; }
  .section-heading { display: block; }
  .filters { grid-template-columns: 1fr 1fr; }
  .filters input { grid-column: 1/-1; }
  .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .product-photo img { height: 180px; }
  .product-info h3 { font-size: 12px; }
  .price { font-size: 13px; }
  .promo { margin: 5px 5% 40px; padding: 27px; flex-direction: column; align-items: flex-start; }
  footer { flex-direction: column; text-align: center; }
  .modal { padding: 25px 20px; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-layout img { height: 230px; }
}
@media (max-width: 380px) {
  .product-photo img { height: 145px; }
  .filters { grid-template-columns: 1fr; }
  .filters input { grid-column: auto; }
}
