@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700;800;900&display=swap');

:root {
  --pink-50: #fff8f8;
  --pink-100: #fff0f2;
  --pink-200: #f9dfe5;
  --pink-300: #f2c2ce;
  --rose: #d87991;
  --rose-dark: #b65370;
  --wine: #71364b;
  --gold: #b99562;
  --text: #593b45;
  --muted: #987d85;
  --white: #fff;
  --shadow: 0 12px 34px rgba(116, 57, 77, .09);
  --shadow-soft: 0 5px 18px rgba(116, 57, 77, .07);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(ellipse at 8% 8%, rgba(249, 223, 229, .42), transparent 28rem),
    linear-gradient(180deg, #fffafa 0%, #fff 45%, #fff8f8 100%);
  font-family: Vazirmatn, Tahoma, sans-serif;
  font-size: 15px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { color: var(--wine); background: var(--pink-200); }

/* Header */
.top {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  min-height: 76px;
  padding: 12px max(4%, calc((100% - 1220px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  background: rgba(255, 250, 250, .94);
  border-bottom: 1px solid rgba(226, 183, 195, .45);
  box-shadow: 0 5px 22px rgba(116, 57, 77, .055);
  backdrop-filter: blur(14px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--wine);
  font-size: 25px;
  font-weight: 900;
  white-space: nowrap;
}
.top nav { display: flex; align-items: center; justify-content: center; gap: clamp(14px, 2.4vw, 34px); }
.top nav a {
  position: relative;
  padding: 8px 0;
  color: #765560;
  font-size: 14px;
  font-weight: 600;
  transition: color .2s ease;
}
.top nav a::after {
  position: absolute;
  right: 0;
  bottom: 1px;
  width: 0;
  height: 2px;
  content: "";
  background: var(--rose);
  border-radius: 4px;
  transition: width .2s ease;
}
.top nav a:hover { color: var(--rose-dark); }
.top nav a:hover::after { width: 100%; }
.cart {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  color: var(--wine);
  background: #fff;
  border: 1px solid var(--pink-200);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.cart b {
  display: inline-grid;
  min-width: 23px;
  height: 23px;
  place-items: center;
  color: #fff;
  background: var(--rose);
  border-radius: 50%;
  font-size: 12px;
}

/* Page and hero */
.wrap { width: min(1200px, 92%); margin: 28px auto 64px; }
section { margin: 34px 0; }
section h2 {
  margin: 0 0 18px;
  color: var(--wine);
  font-size: clamp(21px, 2.5vw, 28px);
  font-weight: 800;
}
section h2::after {
  display: block;
  width: 54px;
  height: 3px;
  margin-top: 8px;
  content: "";
  background: linear-gradient(90deg, var(--gold), var(--rose));
  border-radius: 5px;
}
.hero {
  position: relative;
  isolation: isolate;
  min-height: 350px;
  padding: clamp(28px, 5vw, 62px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 13% 18%, rgba(255,255,255,.75) 0 3px, transparent 4px),
    radial-gradient(circle at 78% 80%, rgba(255,255,255,.65) 0 4px, transparent 5px),
    linear-gradient(115deg, #f4c0cd 0%, #fff0f1 52%, #f9dce3 100%);
  border: 1px solid rgba(219, 164, 180, .45);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}
.hero::before, .hero::after {
  position: absolute;
  z-index: -1;
  content: "";
  border: 1px solid rgba(185, 149, 98, .25);
  border-radius: 50%;
}
.hero::before { width: 330px; height: 330px; left: -95px; top: -145px; }
.hero::after { width: 230px; height: 230px; right: 34%; bottom: -175px; }
.hero > div:first-child { max-width: 620px; }
.hero small { color: var(--rose-dark); font-weight: 700; letter-spacing: .02em; }
.hero h1 {
  margin: 8px 0 10px;
  color: var(--wine);
  font-size: clamp(29px, 4.5vw, 52px);
  line-height: 1.45;
  font-weight: 900;
}
.hero p { margin: 0 0 18px; color: #805b68; font-size: clamp(14px, 1.7vw, 17px); }
.hero-art {
  flex: 0 0 auto;
  font-size: clamp(65px, 9vw, 112px);
  filter: drop-shadow(0 12px 12px rgba(173, 101, 117, .22));
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 24px;
  color: #fff;
  background: linear-gradient(135deg, #df91a5, #c96582);
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 999px;
  box-shadow: 0 7px 17px rgba(190, 91, 120, .2);
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(190, 91, 120, .27); filter: saturate(1.08); }
.btn:active { transform: translateY(0); }

/* Banners and categories */
.banner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin: 28px 0;
}
.banner-grid img {
  display: block;
  width: 100%;
  max-height: 260px;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  border: 1px solid var(--pink-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  transition: transform .25s ease, box-shadow .25s ease;
}
.banner-grid img:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.cats, .products, .gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 18px;
}
.cats a {
  min-height: 82px;
  display: grid;
  place-items: center;
  padding: 18px 14px;
  text-align: center;
  color: var(--wine);
  background: linear-gradient(145deg, #fff, #fff2f4);
  border: 1px solid var(--pink-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  font-weight: 800;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.cats a:hover { transform: translateY(-4px); background: #ffedf1; border-color: var(--pink-300); }

/* Product cards */
.products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.product {
  min-width: 0;
  padding: 13px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: #fff;
  border: 1px solid #f1dce2;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.product:hover { transform: translateY(-5px); border-color: #e9bdca; box-shadow: var(--shadow); }
.product img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: #fff3f5;
  border-radius: 14px;
}
.product h3 { margin: 12px 2px 4px; color: var(--wine); font-size: 16px; font-weight: 800; }
.product p { min-height: 48px; margin: 0 2px 8px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.product .colors { margin: 0 2px 7px; color: #bd7187; font-size: 12px; }
.product strong { display: block; margin: auto 2px 8px; color: var(--rose-dark); font-size: 15px; }
.product .btn { width: 100%; margin-top: 8px; padding-inline: 12px; font-size: 13px; }

/* Customer gallery */
.gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gallery figure {
  min-width: 0;
  margin: 0;
  padding: 10px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--pink-200);
  border-radius: 17px;
  box-shadow: var(--shadow-soft);
}
.gallery img {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 12px;
}
.gallery figcaption { padding: 8px 4px 2px; color: var(--wine); font-size: 13px; text-align: center; }

/* Forms, cart, invoice and welcome */
.feedback, .invoice, .checkout {
  padding: clamp(18px, 3vw, 30px);
  background: linear-gradient(145deg, #fff, #fff7f8);
  border: 1px solid var(--pink-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.feedback form, .checkout { display: grid; gap: 12px; max-width: 650px; }
input, textarea, select {
  width: 100%;
  min-width: 0;
  padding: 12px 14px;
  color: var(--text);
  background: #fff;
  border: 1px solid #e9cbd4;
  border-radius: 12px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
input:focus, textarea:focus, select:focus { border-color: var(--rose); box-shadow: 0 0 0 3px rgba(216, 121, 145, .13); }
textarea { min-height: 110px; resize: vertical; }
.cart-row { margin: 9px 0; padding: 14px 16px; background: #fff; border: 1px solid var(--pink-200); border-radius: 13px; }
.invoice { max-width: 760px; margin: 45px auto; }
.welcome {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 22px;
  background: radial-gradient(circle at 50% 20%, #fff 0, #fff3f5 45%, #f4c4d0 100%);
}
.welcome-card {
  width: min(520px, 100%);
  padding: 48px 25px;
  text-align: center;
  background: rgba(255,255,255,.82);
  border: 1px solid #fff;
  border-radius: 30px;
  box-shadow: 0 20px 70px rgba(142, 67, 85, .14);
}
.big-bow { font-size: 90px; }
.loader { width: 180px; height: 5px; margin: 25px auto; overflow: hidden; background: #f2d8df; border-radius: 9px; }
.loader:after { display: block; width: 0; height: 100%; content: ""; background: var(--rose); animation: load 3s linear forwards; }
@keyframes load { to { width: 100%; } }
footer { margin-top: 45px; padding: 25px 16px; color: #795765; background: linear-gradient(90deg, #fbe8ec, #fff4f5, #fbe8ec); border-top: 1px solid var(--pink-200); text-align: center; }

/* Optional falling hearts effect */
.heart { position: fixed; top: -30px; z-index: 100; color: #e78aa1; pointer-events: none; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(360deg); opacity: 0; } }

/* Tablet */
@media (max-width: 900px) {
  .top { padding-inline: 4%; gap: 14px; }
  .top nav { gap: 15px; }
  .products, .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product img { height: 190px; }
}

/* Mobile */
@media (max-width: 700px) {
  html { scroll-padding-top: 125px; }
  .top {
    min-height: 0;
    padding: 10px 4%;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 12px;
  }
  .brand { font-size: 21px; }
  .top nav {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: clamp(12px, 4vw, 24px);
    padding-top: 5px;
    border-top: 1px solid #f5e4e8;
  }
  .top nav a { font-size: 12px; }
  .cart { padding: 7px 11px; font-size: 12px; }
  .wrap { width: 92%; margin: 17px auto 42px; }
  section { margin: 27px 0; }
  section h2 { margin-bottom: 14px; font-size: 21px; }
  .hero {
    min-height: 260px;
    padding: 24px 20px;
    gap: 8px;
    border-radius: 22px;
  }
  .hero h1 { font-size: clamp(25px, 7vw, 34px); }
  .hero p { font-size: 13px; }
  .hero-art { font-size: clamp(42px, 12vw, 65px); }
  .hero .btn { min-height: 40px; padding: 8px 17px; font-size: 13px; }
  .banner-grid { grid-template-columns: 1fr; gap: 13px; margin: 20px 0; }
  .banner-grid img { max-height: none; aspect-ratio: 16 / 8; border-radius: 17px; }
  .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .cats a { min-height: 68px; padding: 12px 8px; border-radius: 15px; font-size: 13px; }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .product { padding: 9px; border-radius: 16px; }
  .product img { height: clamp(120px, 38vw, 165px); border-radius: 11px; }
  .product h3 { margin-top: 8px; font-size: 13px; }
  .product p { min-height: 38px; font-size: 11px; }
  .product strong { font-size: 13px; }
  .product .btn { min-height: 38px; font-size: 11px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .gallery figure { padding: 7px; }
  .gallery img { height: 145px; }
  .gallery figcaption { font-size: 11px; }
  .feedback, .invoice, .checkout { padding: 17px; border-radius: 17px; }
  footer { margin-top: 30px; padding: 20px 12px; font-size: 12px; }
}
@media (max-width: 380px) {
  .top nav { gap: 10px; }
  .top nav a { font-size: 11px; }
  .hero-art { display: none; }
  .products { gap: 9px; }
}
