:root {
  --ink: #1a1430;
  --night: #120d24;
  --paper: #f7efe2;
  --card: rgba(255, 250, 242, 0.82);
  --line: rgba(184, 137, 58, 0.45);
  --gold: #e2b657;
  --gold-deep: #8d6418;
  --muted: #5e5368;
  --violet: #6a3d86;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Vazirmatn, Tahoma, sans-serif;
  color: var(--ink);
  line-height: 1.75;
  background:
    radial-gradient(circle at 12% 8%, rgba(226, 182, 87, 0.45), transparent 28%),
    radial-gradient(circle at 90% 0%, rgba(106, 61, 134, 0.28), transparent 32%),
    radial-gradient(circle at 70% 100%, rgba(26, 63, 191, 0.16), transparent 36%),
    linear-gradient(165deg, #fbf6ec 0%, #efe2cf 48%, #e7d7f2 100%);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(26, 20, 48, 0.08) 0.6px, transparent 0.6px);
  background-size: 18px 18px;
  mask-image: linear-gradient(#000, transparent 80%);
}
a { color: inherit; }
img { max-width: 100%; display: block; }

.wrap { width: min(1100px, calc(100% - 2rem)); margin: 0 auto; position: relative; }

.top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(18, 13, 36, 0.88);
  color: #f7efe2;
  border-bottom: 1px solid rgba(226, 182, 87, 0.45);
  box-shadow: 0 12px 40px rgba(18, 13, 36, 0.25);
}
.top .wrap { display: flex; align-items: center; gap: 1rem; padding: 0.75rem 0; }
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  margin-inline-start: auto;
}
.brand img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 3px var(--gold), 0 0 22px rgba(226, 182, 87, 0.55);
}
.brand strong {
  font-family: Lalezar, Vazirmatn, sans-serif;
  font-size: 1.7rem;
  font-weight: 400;
  display: block;
  line-height: 1;
  color: var(--gold);
}
.brand small { color: #d9cbb8; font-size: 0.75rem; }
nav { display: flex; gap: 0.4rem; flex-wrap: wrap; }
nav a {
  text-decoration: none;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
}
nav a:hover, nav a[aria-current="page"] {
  background: linear-gradient(180deg, #f3d48a, #c9962e);
  color: var(--night);
}

.hero, .section-head, section { position: relative; }
.hero {
  margin: 1.6rem 0 1rem;
  padding: 1.6rem;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 1.4rem;
  align-items: center;
  background:
    linear-gradient(145deg, rgba(255, 250, 242, 0.9), rgba(255, 244, 220, 0.55));
  border: 1px solid var(--line);
  border-radius: 32px;
  box-shadow: 0 24px 60px rgba(26, 20, 48, 0.12);
}
.kicker {
  margin: 0 0 0.25rem;
  color: var(--violet);
  font-weight: 700;
  letter-spacing: 0.08em;
}
h1, h2 {
  font-family: Lalezar, Vazirmatn, sans-serif;
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 0.45rem;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.lead { color: var(--muted); margin: 0 0 1rem; max-width: 38rem; }
.actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.7rem 1.2rem;
  background: var(--night);
  color: var(--paper);
  box-shadow: 0 8px 20px rgba(18, 13, 36, 0.2);
}
.btn.gold { background: linear-gradient(180deg, #f6d78a, #c9962e); color: var(--night); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.mark-card, .card, .note, .portrait {
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(26, 20, 48, 0.08);
}
.mark-card {
  border-radius: 28px;
  padding: 1.3rem;
  text-align: center;
  backdrop-filter: blur(8px);
}
.mark-card img, .portrait {
  width: 148px;
  height: 148px;
  margin: 0 auto 0.7rem;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 4px #1a3fbf, 0 0 0 8px rgba(226, 182, 87, 0.85);
}
.portrait { display: block; }

.grid3, .products, .gallery, .facts, .mascots { display: grid; gap: 0.95rem; }
.mascots { grid-template-columns: repeat(3, 1fr); margin: 0.2rem 0 1.4rem; }
.mascots a {
  display: block;
  padding: 0.45rem;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.7), rgba(226,182,87,0.18));
  border: 1px solid var(--line);
  transition: transform 0.2s ease;
}
.mascots a:hover { transform: translateY(-4px); }
.mascots img { width: 100%; border-radius: 22px; aspect-ratio: 1; object-fit: cover; }
.grid3 { grid-template-columns: repeat(3, 1fr); margin-bottom: 2rem; }
.card {
  border-radius: 22px;
  padding: 1.05rem 1.1rem;
  text-decoration: none;
  backdrop-filter: blur(6px);
}
.card h2 { font-size: 1.7rem; }
.card p { margin: 0; color: var(--muted); }
section { padding: 1.2rem 0 2rem; }
.section-head { margin-bottom: 0.9rem; }

.products { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.product h3 { margin: 0.4rem 0 0.15rem; font-size: 1rem; }
.swatch { height: 10px; border-radius: 99px; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08); }
.meta { color: var(--muted); font-size: 0.82rem; margin: 0; }
.price { font-weight: 700; margin: 0.4rem 0 0.7rem; }
.cat { font-size: 0.75rem; color: var(--violet); font-weight: 700; }

.toolbar { display: flex; gap: 0.55rem; flex-wrap: wrap; align-items: center; margin-bottom: 0.9rem; }
.toolbar input, .toolbar select {
  font: inherit;
  border: 1px solid var(--line);
  background: rgba(255,250,242,0.9);
  border-radius: 14px;
  padding: 0.6rem 0.75rem;
}
.toolbar input { flex: 1; min-width: 180px; }

.facts { grid-template-columns: 1.15fr 0.85fr; }
.facts p { margin: 0 0 0.7rem; }
.socials { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 0.7rem; }
.socials a {
  width: 54px; height: 54px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  padding: 8px;
  box-shadow: 0 8px 18px rgba(26, 20, 48, 0.08);
}
.socials img { width: 100%; height: 100%; object-fit: contain; }

.gallery { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.person { overflow: hidden; padding: 0; border-radius: 22px; }
.person img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.person span { display: block; text-align: center; font-weight: 700; padding: 0.6rem; }
.note {
  border-radius: 18px;
  padding: 0.9rem 1rem;
  margin: 0.6rem 0;
}

.cart-bar {
  position: sticky;
  bottom: 0.7rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  background: linear-gradient(90deg, #1a1430, #3a2460);
  color: var(--paper);
  border-radius: 18px;
  padding: 0.75rem 0.95rem;
  margin: 1rem 0 1.4rem;
}
footer {
  margin-top: 1rem;
  padding: 1.4rem 0 2.2rem;
  color: #efe6f4;
  background: linear-gradient(180deg, transparent, #1a1430 18%);
  font-size: 0.92rem;
}
footer a { color: var(--gold); }

@media (max-width: 760px) {
  .hero, .grid3, .facts { grid-template-columns: 1fr; }
  .mascots { grid-template-columns: 1fr 1fr; }
  .top .wrap { flex-wrap: wrap; }
  .brand { margin-inline-start: 0; }
}
