/* ===================== Home page and site design ===================== */
.announce { background: var(--ink); color: var(--cream); text-align: center; font-size: 13px; padding: 7px 12px; letter-spacing: .2px; }
.btn-outline { background: transparent; color: var(--gold-dark); border: 1.5px solid var(--gold); }
.btn-outline:hover { background: var(--gold); color: #fff; }
.btn-small { padding: 6px 14px; font-size: 13px; }

/* Navigation bar */
.cats { border-top: 1px solid var(--line); padding-top: 8px; }
.cats > a, .cats .menu-trigger { padding: 4px 2px; border-bottom: 2px solid transparent; }
.cats > a:hover, .cats .menu-trigger:hover { border-bottom-color: var(--gold); }

/* Slider */
.hero-slider { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 6; background: var(--cream); }
.hero-slider .slide { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; pointer-events: none; color: #fff; }
.hero-slider .slide.active { opacity: 1; pointer-events: auto; }
.hero-slider .slide img { width: 100%; height: 100%; object-fit: cover; }
.slide-text { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 10px; padding: 0 6%;
  background: linear-gradient(to left, rgba(58, 46, 36, .55), rgba(58, 46, 36, 0) 65%); }
.slide-text h2 { margin: 0; font-size: clamp(20px, 3.2vw, 38px); text-shadow: 0 2px 10px rgba(0, 0, 0, .25); }
.slide-text p { margin: 0; font-size: clamp(13px, 1.4vw, 17px); max-width: 420px; }
.slider-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; padding: 0; border-radius: 50%; background: rgba(255, 253, 251, .85); color: var(--gold-dark); display: flex; align-items: center; justify-content: center; }
.slider-nav:hover { background: var(--gold); color: #fff; }
.slider-nav.next { left: 14px; }
.slider-nav.prev { right: 14px; }
.slider-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; gap: 6px; justify-content: center; }
.slider-dots button { width: 9px; height: 9px; padding: 0; border-radius: 99px; background: rgba(255, 255, 255, .6); transition: width .3s; }
.slider-dots button.active { width: 24px; background: #fff; }

/* Default banner when no banners are uploaded */
.hero-default { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 40px 6%; border-radius: var(--radius);
  background: radial-gradient(circle at 15% 50%, #fff7ee 0, transparent 45%), linear-gradient(120deg, #efe0cf, #f8f2ec 55%, #ead6bd); overflow: hidden; }
.hero-copy { max-width: 520px; }
.hero-copy .eyebrow { color: var(--gold); letter-spacing: 4px; font-size: 12px; font-weight: 700; }
.hero-copy h1 { font-size: clamp(26px, 4vw, 44px); margin: 6px 0 10px; }
.hero-copy p { color: var(--muted); margin: 0 0 18px; }
.hero-logo { width: clamp(140px, 22vw, 260px); height: auto; filter: drop-shadow(0 10px 24px rgba(138, 95, 44, .18)); }

/* Feature strip */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 18px 0 8px; }
.feature { display: flex; gap: 12px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.feature .icon { width: 34px; height: 34px; color: var(--gold); stroke-width: 1.5; }
.feature strong { display: block; font-size: 15px; }
.feature span { color: var(--muted); font-size: 13px; }

/* Sections */
.home-section { margin-top: 30px; }
.section-title h2 { position: relative; padding-right: 14px; }
.section-title h2::before { content: ""; position: absolute; right: 0; top: 18%; bottom: 18%; width: 4px; border-radius: 4px; background: var(--gold); }
.section-title a { font-size: 14px; }

/* Category circles */
.circles { display: flex; gap: 22px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: none; }
.circles::-webkit-scrollbar { display: none; }
.circle-item { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--ink); flex-shrink: 0; width: 96px; text-align: center; }
.circle { width: 88px; height: 88px; border-radius: 50%; padding: 3px; background: linear-gradient(135deg, var(--gold-light), var(--gold)); display: block; transition: transform .2s; }
.circle img, .circle-letter { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid var(--white); background: var(--cream); display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 700; color: var(--gold-dark); }
.circle-item:hover .circle { transform: translateY(-3px); }
.circle-name { font-size: 14px; }

/* Product rows that scroll sideways */
.rail-wrap { position: relative; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 4 * 16px) / 5); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px 8px; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.rail-btn { position: absolute; top: 38%; z-index: 2; width: 38px; height: 38px; padding: 0; border-radius: 50%; background: var(--white); color: var(--gold-dark); box-shadow: 0 3px 10px rgba(0, 0, 0, .12); display: flex; align-items: center; justify-content: center; }
.rail-btn:hover { background: var(--gold); color: #fff; }
.rail-btn.next { left: -14px; }
.rail-btn.prev { right: -14px; }

/* Product card */
.product-card .thumb { overflow: hidden; }
.product-card .thumb .img-hover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s; }
.product-card:hover .thumb .img-hover { opacity: 1; }
.product-card .thumb img.img-main { transition: transform .5s; }
.product-card:hover .thumb img.img-main { transform: scale(1.04); }
.labels.on-photo { position: absolute; top: 8px; left: 8px; flex-direction: column; align-items: flex-start; z-index: 1; }
.card-brand { font-size: 11px; color: var(--gold); letter-spacing: 1px; }

/* Two middle banners */
.promo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 30px; }
.promo { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 2 / 1; background: var(--cream); color: #fff; }
.promo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.promo:hover img { transform: scale(1.04); }
.promo-text { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 6px; padding: 18px;
  background: linear-gradient(to top, rgba(58, 46, 36, .6), transparent 60%); }
.promo-text h3, .promo-text p { margin: 0; color: #fff; }

/* Instagram */
.insta-cta { margin-top: 36px; display: flex; align-items: center; gap: 18px; padding: 22px 26px; border-radius: var(--radius); color: #fff;
  background: linear-gradient(120deg, #8a5f2c, #b78a4f 50%, #d8b07a); }
.insta-cta h2 { margin: 0; font-size: 20px; }
.insta-cta p { margin: 4px 0 0; opacity: .9; }
.insta-cta .btn { margin-right: auto; background: #fff; color: var(--gold-dark); }
.insta-icon { width: 46px; height: 46px; stroke-width: 1.5; }

/* Footer */
.site-footer { margin-top: 40px; padding: 36px 0 0; background: var(--cream); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.footer-about p { color: var(--muted); font-size: 14px; line-height: 2; }
.site-footer h4 { margin: 6px 0 12px; font-size: 15px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.site-footer ul a { color: var(--ink); }
.site-footer ul a:hover { color: var(--gold); }
.contact-list li { display: flex; gap: 8px; align-items: center; }
.contact-list .icon { color: var(--gold); width: 18px; height: 18px; }
.socials { display: flex; gap: 10px; }
.socials a { width: 38px; height: 38px; border-radius: 50%; background: var(--white); color: var(--gold-dark); display: flex; align-items: center; justify-content: center; }
.socials a:hover { background: var(--gold); color: #fff; }
.footer-bottom { text-align: center; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); margin-top: 28px; padding: 14px; }

/* Bottom navigation (phones only) */
.bottom-nav { display: none; }

@media (max-width: 1000px) {
  .rail { grid-auto-columns: calc((100% - 2 * 16px) / 3); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 800px) {
  .nav-desktop { display: none !important; }
  .hero-slider { aspect-ratio: 4 / 3; }
  .slider-nav { display: none; }
  .slide-text { padding: 0 18px; background: linear-gradient(to top, rgba(58, 46, 36, .65), rgba(58, 46, 36, 0) 70%); justify-content: flex-end; padding-bottom: 34px; }
  .hero-default { flex-direction: column-reverse; text-align: center; padding: 26px 18px; }
  .hero-default .row { justify-content: center; }
  .features { gap: 8px; }
  .feature { padding: 10px; gap: 8px; }
  .feature .icon { width: 26px; height: 26px; }
  .feature strong { font-size: 13px; }
  .feature span { font-size: 11px; }
  .circles { gap: 14px; }
  .circle-item { width: 74px; }
  .circle { width: 68px; height: 68px; }
  .circle-name { font-size: 12px; }
  .rail { grid-auto-columns: 44%; gap: 10px; }
  .rail-btn { display: none; }
  .promo-pair { grid-template-columns: 1fr; }
  .insta-cta { flex-direction: column; text-align: center; }
  .insta-cta .btn { margin: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 18px; }
  body { padding-bottom: 66px; }
  .bottom-nav { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; background: var(--white); border-top: 1px solid var(--line);
    box-shadow: 0 -4px 14px rgba(0, 0, 0, .06); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; color: var(--muted); }
  .bottom-nav a.on { color: var(--gold-dark); }
  .bottom-nav .icon { width: 22px; height: 22px; }
  .bn-icon { position: relative; }
  .contact-fab { bottom: 78px; transition: bottom .25s ease; }
  body.sticky-buy-on .contact-fab { bottom: 140px; }
}

/* Search suggestions */
.site-header .search { position: relative; }
.suggest { position: absolute; top: calc(100% + 6px); right: 0; left: 0; z-index: 40; background: var(--white); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: 0 10px 28px rgba(0, 0, 0, .12); overflow: hidden; max-height: 70vh; overflow-y: auto; }
.suggest[hidden] { display: none; }
.suggest a { display: flex; align-items: center; gap: 10px; padding: 8px 12px; color: var(--ink); border-top: 1px solid var(--line); }
.suggest a:first-child { border-top: 0; }
.suggest a:hover, .suggest a.on { background: var(--cream-light); }
.suggest img, .sg-noimg { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--cream); flex-shrink: 0; }
.sg-title { flex: 1; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-price { color: var(--gold-dark); font-weight: 700; font-size: 13px; white-space: nowrap; }
.sg-cat { font-size: 13px; color: var(--muted) !important; }
.sg-cat b { color: var(--gold-dark); }
.sg-all { justify-content: center; font-size: 13px; color: var(--gold-dark) !important; font-weight: 700; background: var(--cream-light); }
.sg-empty { padding: 14px; text-align: center; color: var(--muted); font-size: 14px; }

/* Page not found */
.notfound { text-align: center; max-width: 620px; margin: 20px auto 0; padding: 30px 20px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.nf-code { font-size: clamp(64px, 12vw, 110px); font-weight: 700; line-height: 1; color: var(--gold); letter-spacing: 6px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.notfound h1 { margin: 10px 0 6px; }
.nf-search { max-width: 380px; margin: 16px auto; }
.nf-buttons { justify-content: center; gap: 10px; }
.nf-cats { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 18px; }
.nf-cats a { padding: 5px 14px; border-radius: 99px; background: var(--cream); color: var(--gold-dark); font-size: 13px; }
.nf-cats a:hover { background: var(--gold); color: #fff; }

/* Purchase steps */
.steps { display: flex; list-style: none; padding: 0; margin: 0 0 18px; counter-reset: step; }
.steps li { flex: 1; position: relative; text-align: center; font-size: 13px; color: var(--muted); }
.steps li::before { counter-increment: step; content: counter(step, persian); display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; margin: 0 auto 6px; border-radius: 50%; background: var(--cream); border: 2px solid var(--line); font-weight: 700; position: relative; z-index: 1; }
.steps li::after { content: ""; position: absolute; top: 16px; left: 50%; width: 100%; height: 2px; background: var(--line); }
.steps li:first-child::after { display: none; }
.steps li.done, .steps li.now { color: var(--ink); }
.steps li.done::before { content: "✓"; background: var(--gold); border-color: var(--gold); color: #fff; }
.steps li.now::before { border-color: var(--gold); color: var(--gold-dark); background: var(--white); box-shadow: 0 0 0 4px rgba(183, 138, 79, .18); }
.steps li.done::after, .steps li.now::after { background: var(--gold); }
.steps li.now { font-weight: 700; }

/* Frequently asked questions */
.faq details { border-top: 1px solid var(--line); padding: 4px 0; }
.faq details:first-of-type { border-top: 0; }
.faq summary { cursor: pointer; padding: 12px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 12px; color: var(--muted); line-height: 2; }

/* Wallet page */
.wallet-link { justify-content: space-between; align-items: center; color: inherit; text-decoration: none; }
.wallet-link:hover { border-color: var(--gold); }
.wallet-balance { text-align: center; }
.wallet-balance .big-price { font-size: 32px; margin: 6px 0; }
.wallet-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line, #eee); font-size: 14px; }
.wallet-row:last-of-type { border-bottom: 0; }
.wallet-amount { font-weight: 700; white-space: nowrap; }
.wallet-amount.plus { color: #2e7d32; }
.wallet-amount.minus { color: #b3261e; }

/* Automatic «ارسال فوری» tag (goods in our warehouse) */
.label.label-express { background: #2e7d32; }

.mixed-note { background: #fff8e1; border: 1px solid #f3d27a; border-radius: var(--radius); padding: 12px 14px; margin: 12px 0; font-size: 14px; line-height: 1.9; }
