/*
Theme Name: آرایشگاه مردانه — پرو
Description: قالب آرایشگاه مردانه — طرح مدرن کرم و سرمه‌ای
Version: 1.0
Text Domain: barbershop-pro
Tags: rtl-language, light, modern, business
*/

/* ══════════════════════════════════════════
   متغیرها
══════════════════════════════════════════ */
:root {
  /* رنگ‌ها */
  --cream:        #f9f6f1;
  --white:        #ffffff;
  --ink:          #18181b;
  --ink-2:        #27272a;
  --muted:        #71717a;
  --navy:         #1e3a5f;
  --navy-light:   #2d5282;
  --terracotta:   #c2572a;
  --terra-light:  #d4795a;
  --terra-pale:   #fdf1ec;
  --border:       #e8e2d9;
  --border-dark:  #d1c9bd;

  /* سایه */
  --sh-xs:  0 1px 2px rgba(0,0,0,.05);
  --sh-sm:  0 2px 8px rgba(0,0,0,.07);
  --sh-md:  0 6px 20px rgba(0,0,0,.09);

  /* تایپوگرافی */
  --font:   'Vazirmatn', Tahoma, Arial, sans-serif;

  /* ابعاد */
  --max-w:  1100px;
  --r:      6px;
  --r-sm:   4px;
  --ease:   0.18s ease;
}

/* ══════════════════════════════════════════
   ریست
══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { direction: rtl; scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--terracotta); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--terra-light); }
strong { font-weight: 700; }

.container { max-width: var(--max-w); margin-inline: auto; padding-inline: 28px; }
section { padding: 88px 0; }

.section-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 14px;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 10px;
}

.section-sub {
  font-size: 0.93rem;
  color: var(--muted);
  margin-bottom: 52px;
  max-width: 540px;
}

/* ══════════════════════════════════════════
   هدر
══════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0; inset-inline: 0; z-index: 300;
  height: 64px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--sh-xs);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.site-logo::before {
  content: '';
  display: block;
  width: 6px;
  height: 22px;
  background: var(--terracotta);
  border-radius: 3px;
}

.site-nav ul { list-style: none; display: flex; gap: 24px; align-items: center; }
.site-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  transition: color var(--ease);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover,
.site-nav a.active { color: var(--ink); border-bottom-color: var(--terracotta); }

.nav-cta {
  background: var(--navy) !important;
  color: #fff !important;
  padding: 9px 20px !important;
  border-radius: var(--r-sm);
  font-weight: 700;
  font-size: 0.82rem;
  border-bottom: none !important;
}
@media (hover: hover) { .nav-cta:hover { background: var(--navy-light) !important; } }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ══════════════════════════════════════════
   دکمه‌ها
══════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 12px 28px; border-radius: var(--r-sm);
  font-family: var(--font); font-size: 0.9rem; font-weight: 700;
  cursor: pointer; transition: all var(--ease); border: none; line-height: 1;
}
.btn-primary { background: var(--navy); color: #fff; }
@media (hover: hover) {
  .btn-primary:hover { background: var(--navy-light); color: #fff; transform: translateY(-1px); box-shadow: var(--sh-sm); }
  .btn-accent:hover  { background: var(--terra-light); color: #fff; transform: translateY(-1px); }
  .btn-outline:hover { border-color: var(--navy); color: var(--navy); }
  .btn-ghost:hover   { color: var(--ink); border-color: var(--ink); }
}
.btn-accent  { background: var(--terracotta); color: #fff; }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--border-dark); }
.btn-ghost   { background: transparent; color: var(--muted); border: 1.5px solid var(--border); }
.btn-full { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 0.8rem; }

/* ══════════════════════════════════════════
   فرم‌ها
══════════════════════════════════════════ */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 0.82rem; font-weight: 700; color: var(--ink-2); margin-bottom: 7px; letter-spacing: 0.01em; }
.req { color: var(--terracotta); }
.form-input {
  width: 100%; background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--r-sm); color: var(--ink); font-family: var(--font);
  font-size: 0.95rem; padding: 11px 14px; direction: rtl;
  outline: none; line-height: 1 !important;
  transition: border-color var(--ease), box-shadow var(--ease);
}
textarea.form-input { resize: vertical; line-height: 1.6 !important; }
input.form-input {
  padding: 12px 14px 10px !important;
}
input.form-input::placeholder {
  line-height: 1;
}
.form-input:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(30,58,95,.1); }
.form-input::placeholder { color: var(--muted); }

/* ══════════════════════════════════════════
   Alert
══════════════════════════════════════════ */
.alert { padding: 14px 18px; border-radius: var(--r-sm); font-size: 0.88rem; margin-bottom: 20px; display: flex; gap: 10px; align-items: flex-start; }
.alert::before { font-size: 1rem; flex-shrink: 0; }
.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-success::before {
  content: '';
  width: 16px; height: 16px;
  min-width: 16px;
  border-radius: 50%;
  background: #059669;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  margin-top: 1px;
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.4);
}
.alert-error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-error::before { content: '!'; }
.alert-info    { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.alert-info::before { content: 'i'; }

/* ══════════════════════════════════════════
   Page Header
══════════════════════════════════════════ */
.page-header {
  padding: 70px 0 28px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.page-header .container { display: flex; flex-direction: column; gap: 6px; }
.page-title { font-size: 2rem; font-weight: 800; color: var(--ink); }
.page-desc { font-size: 0.93rem; color: var(--muted); }

/* ══════════════════════════════════════════
   هیرو
══════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 420px;
  padding-top: 64px;
  position: relative;
  overflow: hidden;
  background: var(--white);
}

/* پنل سمت چپ (در RTL: سمت پایانی) */
.hero-panel {
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

.hero-deco {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  gap: 16px;
}

.hero-deco-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0.05;
}
.hero-deco-bg svg { width: 340px; height: 340px; color: #fff; }

.hero-deco-card {
  position: relative;
  z-index: 1;
  width: 100%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r);
  padding: 18px 20px;
  text-align: center;
}
.hero-deco-num {
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}
.hero-deco-label {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
  margin-top: 5px;
}

/* محتوای هیرو */
.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 64px 72px;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--terracotta);
  margin-bottom: 28px;
}
.hero-badge::before {
  content: '';
  width: 20px; height: 1.5px;
  background: var(--terracotta);
}

.hero h1 {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.hero h1 em {
  font-style: normal;
  color: var(--navy);
  display: block;
}

.hero-desc { font-size: 1rem; color: var(--muted); line-height: 1.8; margin-bottom: 36px; max-width: 480px; }

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

.hero-meta {
  display: flex;
  gap: 0;
  border-top: 1px solid var(--border);
  padding-top: 28px;
}
.hero-meta-item { flex: 1; }
.hero-meta-item + .hero-meta-item { border-right: 1px solid var(--border); padding-right: 24px; margin-right: 0; }
.hero-meta-num { font-size: 1.7rem; font-weight: 900; color: var(--ink); line-height: 1; }
.hero-meta-label { font-size: 0.72rem; color: var(--muted); margin-top: 4px; }

/* ══════════════════════════════════════════
   معرفی آرایشگر
══════════════════════════════════════════ */
.barber-intro { background: var(--cream); }

.barber-inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
  align-items: start;
}

.barber-photo-wrap {
  position: sticky;
  top: 88px;
  border-radius: var(--r);
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--sh-md);
}
.barber-photo { width: 100%; height: 100%; object-fit: cover; }
.barber-photo-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 12px; color: var(--muted); font-size: 0.8rem;
  text-align: center; padding: 24px; background: var(--white);
}
.barber-photo-placeholder span { font-size: 3rem; }

.barber-info { padding-top: 8px; }

.barber-badge {
  display: inline-block;
  background: var(--terra-pale);
  color: var(--terracotta);
  border: 1px solid rgba(194,87,42,.2);
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}
.barber-name {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.barber-title { font-size: 0.9rem; color: var(--muted); margin-bottom: 24px; }

.barber-bio {
  font-size: 0.97rem;
  color: var(--ink-2);
  line-height: 1.85;
  margin-bottom: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
}

.barber-stats { display: flex; gap: 36px; margin-bottom: 36px; }
.stat-item { }
.stat-n { font-size: 1.8rem; font-weight: 900; color: var(--navy); line-height: 1; }
.stat-l { font-size: 0.75rem; color: var(--muted); margin-top: 4px; }

/* سوابق / تجربیات */
.barber-exp { display: flex; flex-direction: column; gap: 16px; }
.exp-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.exp-item:last-child { border-bottom: none; }
.exp-year { font-size: 0.78rem; font-weight: 700; color: var(--terracotta); min-width: 54px; padding-top: 2px; }
.exp-desc { font-size: 0.9rem; color: var(--ink-2); line-height: 1.6; }
.exp-desc strong { display: block; font-size: 0.95rem; margin-bottom: 2px; }

/* ══════════════════════════════════════════
   خدمات
══════════════════════════════════════════ */
.services { background: var(--white); }

.services-list { margin-top: 52px; }

.service-row {
  display: grid;
  grid-template-columns: 44px 48px 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 22px 10px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.sr-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.services-list > .service-row:first-child { border-top: 1px solid var(--border); }
.service-row::after {
  content: '';
  position: absolute;
  right: 0; left: auto; top: 0; bottom: 0;
  width: 2px;
  background: var(--terracotta);
  transform: scaleY(0);
  transition: transform .25s ease;
  transform-origin: bottom;
}
@media (hover: hover) {
  .service-row:hover::after { transform: scaleY(1); }
  .service-row:hover .sr-num { color: var(--terracotta); }
}

.sr-num {
  font-size: 0.68rem; font-weight: 800;
  color: var(--border-dark); letter-spacing: 0.08em;
  transition: color var(--ease);
  align-self: flex-start; padding-top: 3px;
}

.sr-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: var(--cream); border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--navy);
}
.sr-icon svg { width: 22px; height: 22px; }

.sr-body { min-width: 0; }
.sr-name { font-size: 1rem; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.sr-desc { font-size: 0.82rem; color: var(--muted); line-height: 1.5; }

.sr-price {
  font-size: 0.8rem; font-weight: 700; color: var(--navy);
  white-space: nowrap; flex-shrink: 0;
  padding: 5px 14px;
  background: var(--cream); border: 1px solid var(--border); border-radius: 100px;
}

.sr-book-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.78rem; font-weight: 700; color: var(--navy);
  text-decoration: none; padding: 5px 14px;
  border: 1px solid var(--navy); border-radius: 100px;
  white-space: nowrap; flex-shrink: 0;
  transition: background var(--ease), color var(--ease);
}
@media (hover: hover) { .sr-book-link:hover { background: var(--navy); color: #fff; } }

/* انتخاب خدمت در رزرو */
.svc-select-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 20px;
}
.svc-card {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px;
  border: 1.5px solid var(--border); border-radius: var(--r);
  cursor: pointer;
  transition: border-color .15s, background .15s;
  user-select: none;
}
.svc-card .svc-card-icon,
.svc-card .svc-card-check { margin-top: 2px; }
.svc-card:has(input:checked) {
  border-color: var(--navy);
  background: rgba(24,48,89,.04);
}
.svc-card input { display: none; }
.svc-card-icon {
  width: 38px; height: 38px; flex-shrink: 0;
  background: var(--cream); border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--navy);
}
.svc-card-icon svg { width: 18px; height: 18px; }
.svc-card-text {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 4px;
}
.svc-card-name {
  font-size: .88rem; font-weight: 700; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.svc-card-desc {
  font-size: .74rem; color: var(--text-muted, #8a8a8a); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.svc-card-price { font-size: .75rem; font-weight: 700; color: var(--navy); }
.svc-card-check {
  width: 20px; height: 20px; flex-shrink: 0;
  border: 1.5px solid var(--border); border-radius: 50%;
  position: relative;
  transition: background .15s, border-color .15s;
}
.svc-card:has(input:checked) .svc-card-check {
  background: var(--navy); border-color: var(--navy);
}
.svc-card:has(input:checked) .svc-card-check::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 4px; height: 7px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: translate(-50%, -60%) rotate(35deg);
}
@media (max-width: 480px) {
  .svc-select-grid { grid-template-columns: 1fr; }
}

.svc-total-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; margin-top: 16px;
  background: var(--cream); border: 1px solid var(--border); border-radius: var(--r);
  font-size: 0.9rem;
}
.svc-total-label { color: var(--muted); }
.svc-total-amount { font-weight: 800; color: var(--navy); font-size: 1rem; }

/* ══════════════════════════════════════════
   آخرین مطالب
══════════════════════════════════════════ */
.latest-posts { background: var(--cream); }

.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.post-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  transition: box-shadow var(--ease), transform var(--ease);
}
@media (hover: hover) {
  .post-card:hover { box-shadow: var(--sh-md); transform: translateY(-3px); }
  .post-card:hover .post-thumb img { transform: scale(1.04); }
}
.post-thumb { aspect-ratio: 16/9; overflow: hidden; background: var(--cream); }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post-body { padding: 20px; }
.post-meta { font-size: 0.72rem; color: var(--muted); margin-bottom: 8px; letter-spacing: 0.02em; }
.post-title { font-size: 0.97rem; font-weight: 700; margin-bottom: 8px; line-height: 1.4; }
.post-title a { color: var(--ink); }
.post-title a:hover { color: var(--navy); }
.post-excerpt { font-size: 0.82rem; color: var(--muted); margin-bottom: 14px; }
.post-link { font-size: 0.8rem; color: var(--terracotta); font-weight: 700; }
.post-link:hover { color: var(--terra-light); }

/* ══════════════════════════════════════════
   تماس
══════════════════════════════════════════ */
.contact { background: var(--white); }

.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }

.contact-info { display: flex; flex-direction: column; gap: 0; }

.contact-item {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 20px 0; border-bottom: 1px solid var(--border);
}
.contact-item:first-child { padding-top: 0; }

.contact-icon {
  width: 40px; height: 40px;
  background: var(--cream); border: 1px solid var(--border);
  border-radius: var(--r-sm); display: flex; align-items: center;
  justify-content: center; font-size: 1rem; flex-shrink: 0;
}
.contact-label { font-size: 0.72rem; font-weight: 700; color: var(--muted); margin-bottom: 3px; letter-spacing: 0.04em; text-transform: uppercase; }
.contact-value { font-size: 0.92rem; color: var(--ink); }
.contact-value a { color: var(--ink); }
.contact-value a:hover { color: var(--navy); }

.contact-map {
  border-radius: var(--r); overflow: hidden;
  border: 1px solid var(--border); aspect-ratio: 1;
  background: var(--cream); box-shadow: var(--sh-sm);
}
.contact-map iframe { width: 100%; height: 100%; border: none; }
.map-placeholder {
  display: flex; align-items: center; justify-content: center;
  height: 100%; color: var(--muted); font-size: 0.85rem;
  padding: 20px; text-align: center; line-height: 1.7;
}

/* ══════════════════════════════════════════
   فوتر
══════════════════════════════════════════ */
.site-footer {
  background: var(--ink);
  padding: 36px 0;
}
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-copy { font-size: 0.82rem; color: rgba(255,255,255,.45); }
.footer-links { list-style: none; display: flex; gap: 20px; }
.footer-links a { font-size: 0.82rem; color: rgba(255,255,255,.5); transition: color var(--ease); }
.footer-links a:hover { color: #fff; }

/* ══════════════════════════════════════════
   صفحه رزرو
══════════════════════════════════════════ */
.page-booking { background: var(--cream); padding-bottom: 40px; }
.page-booking .page-header { margin-bottom: 24px; }

.booking-wrap { max-width: 720px; margin: 0 auto; }

.booking-step {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 28px 32px;
  box-shadow: var(--sh-xs);
  margin-bottom: 16px;
  scroll-margin-top: 80px;
}

.step-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.step-num {
  width: 34px; height: 34px;
  background: var(--navy); color: #fff;
  border-radius: 50%;
  font-size: 0.85rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.step-title { font-size: 1rem; font-weight: 700; color: var(--ink); }
.step-subtitle { font-size: 0.8rem; color: var(--muted); margin-top: 2px; }

/* تقویم */
.dates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 8px;
}
.date-btn {
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  padding: 12px 6px;
  cursor: pointer;
  transition: all var(--ease);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-family: var(--font);
}
@media (hover: hover) { .date-btn:hover:not(:disabled) { border-color: var(--navy); background: var(--white); box-shadow: var(--sh-xs); } }
.date-btn.selected,
.date-btn.selected:hover { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: var(--sh-sm); }
.date-day-name { font-size: 0.68rem; color: var(--muted); }
.date-btn.selected .date-day-name,
.date-btn.selected .date-month { color: rgba(255,255,255,.65); }
.date-num { font-size: 1.5rem; font-weight: 900; line-height: 1; }
.date-btn.selected .date-num { color: #fff; }
.date-month { font-size: 0.68rem; color: var(--muted); }
.date-btn-today { border-color: var(--navy); }
.date-today-label { font-size: 0.6rem; font-weight: 700; color: var(--navy); background: #e8eef6; border-radius: 4px; padding: 1px 5px; margin-top: 2px; }
.date-btn-full { opacity: 0.45; cursor: not-allowed; }
.date-no-slot { font-size: 0.58rem; color: var(--muted); margin-top: 2px; line-height: 1.2; text-align: center; }

/* ساعات */
.slots-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.slot-btn {
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: 100px;
  color: var(--ink);
  padding: 10px 8px;
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 600;
  transition: all var(--ease);
  text-align: center;
  width: 100%;
}
@media (hover: hover) { .slot-btn:hover:not(:disabled) { border-color: var(--navy); color: var(--navy); background: var(--white); } }
.slot-btn.selected,
.slot-btn.selected:hover { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: var(--sh-xs); }
.slot-unavailable { opacity: 0.35; cursor: not-allowed; }
@keyframes sk-shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position:  400px 0; }
}
.slot-skeleton {
  height: 42px;
  border-radius: 100px;
  background: linear-gradient(90deg, #ede9e3 25%, #f5f2ee 50%, #ede9e3 75%);
  background-size: 800px 100%;
  animation: sk-shimmer 1.4s ease-in-out infinite;
}

/* اطلاعات مشتری */
.customer-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* پرداخت */
.payment-box {
  border-radius: var(--r);
  border: 1.5px solid rgba(194,87,42,.25);
  background: var(--terra-pale);
  padding: 24px;
  margin: 20px 0;
}
.payment-head {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.9rem; font-weight: 700; color: var(--terracotta);
  margin-bottom: 10px;
}
.payment-desc { font-size: 0.84rem; color: var(--ink-2); line-height: 1.7; margin-bottom: 18px; }

.card-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 16px 18px;
}
.card-label-sm { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; text-align: center; }
.card-row { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 6px; flex-wrap: wrap; }
.card-number { font-size: 1.2rem; font-weight: 700; letter-spacing: 0.08em; color: var(--ink); text-align: center; }
.copy-btn {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  background: var(--cream); border: 1px solid var(--border-dark);
  border-radius: var(--r-sm); color: var(--ink-2);
  font-family: var(--font); font-size: 0.78rem; font-weight: 600;
  padding: 8px 12px; cursor: pointer; transition: all var(--ease);
  white-space: nowrap; width: 100%;
}
@media (hover: hover) {
  .copy-btn:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
}
.copy-btn.copied { background: var(--navy); border-color: var(--navy); color: #fff; }
.card-owner { font-size: 0.8rem; color: var(--muted); text-align: center; margin-top: 4px; }

.booking-summary-bar {
  display: flex; gap: 10px; flex-wrap: wrap;
  padding: 14px 18px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  margin-bottom: 20px;
}
.summary-chip {
  font-size: 0.82rem; font-weight: 600; color: var(--navy);
  display: flex; align-items: center; gap: 5px;
}
.summary-chip + .summary-chip { padding-right: 10px; border-right: 1px solid var(--border-dark); }

/* ══════════════════════════════════════════
   صفحه بررسی
══════════════════════════════════════════ */
.page-review { background: var(--cream); padding-bottom: 80px; }
.page-review .container { max-width: 660px; }

.appt-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--sh-xs);
  margin-bottom: 20px;
}
.appt-card-head {
  background: var(--navy);
  color: #fff;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.appt-card-title { font-size: 0.9rem; font-weight: 700; }
.appt-card-body { padding: 0; }
.appt-row {
  display: flex; align-items: center; gap: 0;
  border-bottom: 1px solid var(--border);
}
.appt-row:last-child { border-bottom: none; }
.appt-key {
  font-size: 0.78rem; font-weight: 700;
  color: var(--muted); text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 14px 24px;
  background: var(--cream);
  min-width: 110px;
  border-left: 1px solid var(--border);
}
.appt-val { padding: 14px 20px; font-size: 0.9rem; font-weight: 500; color: var(--ink); }

/* وضعیت‌ها */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 12px; border-radius: 100px;
  font-size: 0.75rem; font-weight: 700;
}
.badge-pending  { background: #fef9c3; color: #713f12; }
.badge-review   { background: #dbeafe; color: #1e40af; }
.badge-confirmed{ background: #dcfce7; color: #14532d; }
.badge-rejected { background: #fee2e2; color: #7f1d1d; }

.appt-note-box {
  margin-top: 16px;
  border: 1.5px solid var(--navy);
  border-radius: var(--r);
  overflow: hidden;
}
.appt-note-head {
  background: var(--navy);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 16px;
}
.appt-note-body {
  padding: 14px 16px;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
}

/* آپلود */
.upload-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 28px;
  box-shadow: var(--sh-xs);
}
.upload-box h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.upload-box > p { font-size: 0.85rem; color: var(--muted); margin-bottom: 20px; line-height: 1.7; }

.drop-zone {
  border: 2px dashed var(--border-dark);
  border-radius: var(--r);
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: all var(--ease);
  position: relative;
  background: var(--cream);
}
@media (hover: hover) { .drop-zone:hover { border-color: var(--navy); background: #f0f4fa; } }
.drop-zone.drag-over { border-color: var(--navy); background: #f0f4fa; }
.drop-zone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.drop-icon { font-size: 2rem; margin-bottom: 10px; }
.drop-text { font-size: 0.9rem; font-weight: 600; margin-bottom: 4px; }
.drop-hint { font-size: 0.75rem; color: var(--muted); }
.file-preview { display: none; margin-top: 16px; }
.file-preview img { max-height: 200px; margin: 0 auto; border-radius: var(--r-sm); border: 1px solid var(--border); }

/* ══════════════════════════════════════════
   نوبت تایید شده
══════════════════════════════════════════ */
.page-confirmed { background: var(--cream); padding-bottom: 80px; }
.page-confirmed .container { max-width: 560px; }

.search-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 40px;
  text-align: center;
  box-shadow: var(--sh-xs);
}
.search-box h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.search-box p { font-size: 0.88rem; color: var(--muted); margin-bottom: 24px; }
.search-box .form-input { max-width: 260px; margin: 0 auto 16px; display: block; }

.confirmed-box {
  background: var(--white);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--sh-md);
  margin-bottom: 20px;
}
.confirmed-banner {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: #fff;
  padding: 28px 32px;
  text-align: center;
}
.confirmed-icon {
  width: 56px; height: 56px; margin: 0 auto 12px;
  background: rgba(255,255,255,.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.confirmed-icon svg { width: 28px; height: 28px; stroke: #fff; stroke-width: 2.5; }
.confirmed-title { font-size: 1.1rem; font-weight: 800; }
.confirmed-sub { font-size: 0.82rem; opacity: .75; margin-top: 4px; }
.confirmed-rows { padding: 0; }
.conf-row {
  display: flex;
  border-bottom: 1px solid var(--border);
}
.conf-row:last-child { border-bottom: none; }
.conf-key {
  font-size: 0.78rem; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.04em;
  padding: 14px 20px; background: var(--cream);
  min-width: 100px; border-left: 1px solid var(--border);
  display: flex; align-items: center;
}
.conf-val { padding: 14px 20px; font-size: 0.9rem; font-weight: 600; display: flex; align-items: center; }
.conf-val a { color: var(--ink); }
.conf-val a:hover { color: var(--navy); }
.confirmed-note {
  background: #eff6ff; color: #1e40af;
  border-top: 1px solid #bfdbfe;
  padding: 14px 20px; font-size: 0.85rem; line-height: 1.6;
}

/* ══════════════════════════════════════════
   بلاگ
══════════════════════════════════════════ */
.page-blog { background: var(--cream); padding-bottom: 80px; }

.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-bottom: 48px; }

.blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  transition: box-shadow var(--ease), transform var(--ease);
}
@media (hover: hover) {
  .blog-card:hover { box-shadow: var(--sh-md); transform: translateY(-3px); }
  .blog-card:hover .blog-thumb img { transform: scale(1.04); }
}
.blog-thumb { aspect-ratio: 16/9; overflow: hidden; background: var(--cream); }
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.blog-body { padding: 22px; }
.blog-meta { display: flex; gap: 10px; align-items: center; font-size: 0.73rem; color: var(--muted); margin-bottom: 10px; }
.blog-cat { background: var(--terra-pale); color: var(--terracotta); border-radius: 100px; padding: 2px 10px; font-weight: 700; }
.blog-title { font-size: 1.02rem; font-weight: 700; margin-bottom: 8px; line-height: 1.4; }
.blog-title a { color: var(--ink); }
.blog-title a:hover { color: var(--navy); }
.blog-excerpt { font-size: 0.82rem; color: var(--muted); margin-bottom: 14px; line-height: 1.6; }

.pagination { text-align: center; }
.pagination .nav-links { display: inline-flex; gap: 6px; }
.pagination .page-numbers {
  background: var(--white); border: 1px solid var(--border);
  color: var(--muted); padding: 8px 14px;
  border-radius: var(--r-sm); font-size: 0.85rem; transition: all var(--ease);
}
.pagination .page-numbers.current { background: var(--navy); border-color: var(--navy); color: #fff; }
@media (hover: hover) { .pagination .page-numbers:hover { background: var(--navy); border-color: var(--navy); color: #fff; } }

.no-posts { color: var(--muted); text-align: center; padding: 60px 0; }

/* ══════════════════════════════════════════
   پست تکی
══════════════════════════════════════════ */
.page-single { background: var(--cream); padding-bottom: 80px; }
.page-single .container { max-width: 740px; }
.single-post { padding-top: 100px; }

.single-cats { display: flex; gap: 6px; margin-bottom: 16px; }
.cat-link { background: var(--terra-pale); color: var(--terracotta); border-radius: 100px; padding: 4px 13px; font-size: 0.74rem; font-weight: 700; }
.single-title { font-size: 1.95rem; font-weight: 800; line-height: 1.22; margin-bottom: 12px; letter-spacing: -0.02em; }
.single-meta { font-size: 0.8rem; color: var(--muted); margin-bottom: 32px; }
.single-thumb { border-radius: var(--r); overflow: hidden; margin-bottom: 36px; box-shadow: var(--sh-md); }
.single-thumb img { width: 100%; }

.entry-content { font-size: 1.01rem; line-height: 1.85; color: var(--ink-2); }
.entry-content p { margin-bottom: 18px; }
.entry-content h2 { font-size: 1.3rem; font-weight: 700; margin: 36px 0 12px; color: var(--ink); }
.entry-content h3 { font-size: 1.05rem; font-weight: 700; margin: 24px 0 10px; }
.entry-content ul, .entry-content ol { padding-right: 22px; margin-bottom: 18px; }
.entry-content li { margin-bottom: 6px; }
.entry-content img { border-radius: var(--r-sm); margin: 24px auto; box-shadow: var(--sh-sm); }
.entry-content blockquote { border-right: 3px solid var(--terracotta); padding-right: 20px; margin: 24px 0; color: var(--muted); font-style: italic; }
.entry-content a { color: var(--navy); }

/* ══════════════════════════════════════════
   ریسپانسیو
══════════════════════════════════════════ */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .hero-panel { display: none; }
  .hero-content { padding: 64px 28px; }
  .barber-inner { grid-template-columns: 1fr; gap: 36px; }
  .barber-photo-wrap { max-width: 260px; margin: 0 auto; position: static; }
  .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .customer-fields { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 40px 44px 1fr; row-gap: 8px; }
  .sr-num  { grid-column: 1; grid-row: 1; }
  .sr-icon { grid-column: 2; grid-row: 1; }
  .sr-body { grid-column: 3; grid-row: 1; }
  .sr-actions { grid-column: 3; grid-row: 2; justify-self: start; }
}

@media (max-width: 768px) {
  section { padding: 64px 0; }
  .section-title { font-size: 1.5rem; }

  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed; top: 64px; inset-inline: 0;
    background: var(--white); border-bottom: 1px solid var(--border);
    box-shadow: var(--sh-md); padding: 20px 24px;
    display: none; flex-direction: column;
  }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 18px; }
  .site-nav a { border-bottom: none; }
  .nav-cta { display: block; text-align: center; padding: 12px 24px; }

  .hero-content { padding: 56px 20px; }
  .hero h1 { font-size: 2.2rem; }
  .hero-meta { flex-direction: column; gap: 16px; }
  .hero-meta-item + .hero-meta-item { border-right: none; padding-right: 0; border-top: 1px solid var(--border); padding-top: 16px; }

  .blog-grid { grid-template-columns: 1fr; }
  .posts-grid { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 32px 1fr; column-gap: 14px; row-gap: 12px; padding: 20px 6px; }
  .sr-icon { display: none; }
  .sr-num  { grid-column: 1; grid-row: 1; }
  .sr-body { grid-column: 2; grid-row: 1; }
  .sr-actions { grid-column: 2; grid-row: 2; justify-self: start; flex-wrap: wrap; gap: 10px; }

  .dates-grid { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); }
  .booking-step { padding: 20px; }

  .page-header { padding: 60px 0 22px; }
  .appt-key, .conf-key { min-width: 80px; font-size: 0.7rem; padding: 12px 14px; }
  .appt-val, .conf-val { padding: 12px 14px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.9rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .hero-meta { gap: 12px; }
  .barber-stats { gap: 20px; }
  .search-box, .upload-box { padding: 24px 20px; }
  .confirmed-banner { padding: 24px 20px; }

  .card-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .card-number { font-size: 1rem; letter-spacing: 0.05em; width: 100%; }
  .copy-btn { width: 100%; justify-content: center; }

  .form-group { margin-bottom: 10px; }
  .customer-fields { gap: 10px; }

  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
  .footer-links { justify-content: center; }
}
