@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg: #f4efe8;
  --bg-2: #efe7dc;
  --paper: #fffcf8;
  --ink: #1c1612;
  --muted: #6a5e52;
  --line: rgba(28, 22, 18, 0.12);
  --line-strong: rgba(28, 22, 18, 0.22);
  --gold: #b08948;
  --gold-2: #d4b36a;
  --gold-deep: #7c5c28;
  --fade: #b7aa9c;
  --shadow: 0 18px 50px rgba(28, 22, 18, 0.08);
  --radius: 18px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(212, 179, 106, 0.18), transparent 50%),
    radial-gradient(900px 400px at 100% 0%, rgba(176, 137, 72, 0.1), transparent 45%),
    var(--bg);
  color: var(--ink);
  line-height: 1.85;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; color: inherit; }
ul { list-style: none; }

.wrap { width: min(1140px, calc(100% - 32px)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 252, 248, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  align-items: stretch;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 10px;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.brand img { width: 40px; height: 40px; }

.nav-boxes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.nav-boxes a {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px 10px;
  font-size: 0.9rem;
  color: var(--muted);
  border-right: 1px solid var(--line);
  transition: 0.25s ease;
}

.nav-boxes a:hover,
.nav-boxes a.active {
  color: var(--ink);
  background: linear-gradient(180deg, rgba(176, 137, 72, 0.12), transparent);
  box-shadow: inset 0 -2px 0 var(--gold);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  padding: 8px 12px;
  margin: 10px;
  border-radius: 10px;
}

.welcome {
  text-align: center;
  padding: 56px 12px 36px;
  max-width: 760px;
  margin-inline: auto;
}

.welcome h1 {
  font-size: clamp(1.6rem, 3.4vw, 2.35rem);
  font-weight: 800;
  line-height: 1.45;
  margin-bottom: 14px;
}

.welcome h1::after {
  content: '';
  display: block;
  width: 64px;
  height: 2px;
  margin: 16px auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.welcome p { color: var(--muted); font-size: 1.02rem; }

.home-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: 22px;
  direction: ltr;
}

.home-pair .frame { direction: rtl; }

.frame,
.product-card,
.choice-card,
.option-card,
.filter-col,
.quote-box,
.form-card,
.panel,
.magazine-frame,
.notice,
.waterfall-row {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.frame {
  display: block;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.frame:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(28, 22, 18, 0.14);
}

.frame img,
.product-card img,
.choice-card img,
.option-card img,
.magazine-frame img {
  width: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.frame img { height: 280px; }
.frame:hover img,
.product-card:hover img,
.option-card:hover img { transform: scale(1.05); }

.frame .cap {
  padding: 16px 12px;
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.magazine-frame {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 190px;
  margin-bottom: 64px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.magazine-frame:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(28, 22, 18, 0.14);
}

.magazine-frame img {
  height: 100%;
  min-height: 190px;
}

.magazine-frame .cap {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.magazine-frame h2 { font-size: 1.3rem; margin-bottom: 8px; }
.magazine-frame p { color: var(--muted); }

.page-title {
  text-align: center;
  padding: 40px 0 18px;
}

.page-title h1 { font-size: 1.7rem; }
.page-title p { color: var(--muted); }

.shop-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 22px;
  align-items: start;
  padding-bottom: 64px;
}

.filter-col {
  position: sticky;
  top: 84px;
  padding: 18px;
}

.filter-col h3 {
  font-size: 0.95rem;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.filter-group { margin-bottom: 16px; }
.filter-group h4 { font-size: 0.82rem; color: var(--gold-deep); margin-bottom: 8px; }
.filter-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  margin-bottom: 6px;
  cursor: pointer;
}

.price-row { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--muted); }
input[type="range"] { width: 100%; accent-color: var(--gold); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.product-card { cursor: pointer; transition: transform 0.3s ease; }
.product-card:hover { transform: translateY(-4px); }
.product-card img { height: 168px; }
.product-card .meta {
  padding: 12px;
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--muted);
}

.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 26px 0 8px;
  flex-wrap: wrap;
}

.pagination button {
  min-width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  border-radius: 12px;
  cursor: pointer;
}

.pagination button.active,
.pagination button:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.split-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.choice-card img { height: 220px; }
.choice-card .copy { padding: 20px; }
.choice-card h3 { margin-bottom: 10px; font-size: 1.2rem; }
.choice-card li {
  font-size: 0.92rem;
  margin-bottom: 5px;
  color: var(--muted);
  padding-right: 12px;
  position: relative;
}
.choice-card li::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0.7em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

.btn, .confirm-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  padding: 11px 22px;
  margin-top: 14px;
  font-weight: 700;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  transition: 0.25s ease;
}

.btn:hover, .confirm-box:hover { background: var(--gold-deep); }
.btn-ink, .btn-gold { background: var(--ink); color: #fff; }

.confirm-box {
  display: block;
  width: 160px;
  margin: 22px auto 0;
}

.wizard-bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin: 18px 0 24px;
}

.wizard-bar span {
  text-align: center;
  padding: 12px 8px;
  font-size: 0.82rem;
  color: var(--fade);
  background: rgba(255, 252, 248, 0.7);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.wizard-bar span.done { color: var(--ink); background: #f3e6cc; }
.wizard-bar span.current {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.pack-grid { grid-template-columns: repeat(3, 1fr); }

.option-card {
  cursor: pointer;
  text-align: center;
  transition: transform 0.3s ease;
}

.option-card:hover { transform: translateY(-4px); }
.option-card img { height: 148px; }
.option-card b { display: block; padding: 12px 8px; font-size: 0.9rem; }
.option-card.selected {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px var(--gold-2);
}

.quote-box, .form-card, .panel { padding: 22px; margin-bottom: 16px; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-grid .full { grid-column: 1 / -1; }

label.field { display: flex; flex-direction: column; gap: 6px; font-size: 0.9rem; }
input, select, textarea {
  border: 1px solid var(--line-strong);
  padding: 10px 12px;
  background: #fff;
  border-radius: 12px;
}

.waterfall {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.waterfall-row {
  padding: 12px;
  text-align: center;
  font-size: 0.82rem;
}

.waterfall-row select { width: 100%; margin-top: 8px; }

.steps-list { padding-right: 18px; }
.steps-list li { list-style: persian; margin-bottom: 6px; color: var(--muted); }

.thanks { text-align: center; padding: 80px 0; }

.site-footer {
  margin-top: 20px;
  border-top: 1px solid var(--line);
  padding: 22px 0 28px;
  font-size: 0.88rem;
  color: var(--muted);
  text-align: center;
}

.hidden { display: none !important; }
.notice { padding: 12px 14px; margin: 14px 0; font-size: 0.9rem; }
.section { padding: 24px 0 56px; }
.section-head { text-align: center; margin-bottom: 20px; }

.channel-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 8px;
}

.channel-row .frame { box-shadow: none; }
.channel-row .cap { padding: 12px; }

@media (max-width: 900px) {
  .header-row { grid-template-columns: 1fr auto; }
  .nav-toggle { display: block; }
  .nav-boxes { display: none; grid-column: 1 / -1; grid-template-columns: 1fr; }
  .nav-boxes.open { display: grid; }
  .nav-boxes a { border-right: 0; border-top: 1px solid var(--line); }
  .home-pair, .split-hero, .shop-layout, .product-grid, .option-grid, .form-grid, .waterfall, .magazine-frame, .pack-grid, .channel-row {
    grid-template-columns: 1fr 1fr;
  }
  .shop-layout { grid-template-columns: 1fr; }
  .filter-col { position: static; }
}

@media (max-width: 640px) {
  .home-pair, .split-hero, .product-grid, .option-grid, .form-grid, .waterfall, .wizard-bar, .magazine-frame, .pack-grid, .channel-row {
    grid-template-columns: 1fr;
  }
}
