/* ═══════════════════════════════════════════════════════════════
   THEME V1 — "Classic Gold" · dark vintage barbershop
   Palette: charcoal #121417 / gold #d3a44a / cream #f0e9da
   Type: Playfair Display (display) · Inter · Vazirmatn (ar/ku)
   ═══════════════════════════════════════════════════════════════ */
:root {
  --bg: #121417;
  --bg2: #181b20;
  --panel: #1c1f25;
  --ink: #f0e9da;
  --mut: #a29b8c;
  --gold: #d3a44a;
  --gold-2: #e8c778;
  --line: rgba(211, 164, 74, .22);
  --err: #e07a5f;
  --ok: #7fc98a;
  --rad: 4px;
  --font-d: 'Playfair Display', 'Vazirmatn', Georgia, serif;
  --font-b: 'Inter', 'Vazirmatn', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.7 var(--font-b);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--font-d); font-weight: 700; line-height: 1.2; margin: 0 0 14px; }
h1 { font-size: clamp(34px, 5.4vw, 62px); }
h2 { font-size: clamp(26px, 3.4vw, 40px); }
a { color: var(--gold); text-decoration: none; }
p { margin: 0 0 14px; }
.container { max-width: 1180px; margin-inline: auto; padding-inline: 22px; }
section { padding: 84px 0; }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* barber pole strip */
.pole-strip {
  height: 10px;
  background: repeating-linear-gradient(45deg,
    #b3442f 0 14px, #efe3cc 14px 28px, #3d5a80 28px 42px, #efe3cc 42px 56px);
}

/* ── nav ── */
.nav { position: fixed; inset-inline: 0; top: 0; z-index: 60; background: rgba(18, 20, 23, .88); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: .3s; }
.nav.scrolled { border-bottom-color: var(--line); background: rgba(18, 20, 23, .97); }
.nav-in { display: flex; align-items: center; gap: 26px; height: 76px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-d); font-size: 21px; color: var(--ink); letter-spacing: .5px; }
.menu { display: flex; gap: 26px; margin-inline-start: 10px; }
.menu a { color: var(--mut); font-size: 14.5px; letter-spacing: .4px; padding: 6px 0; border-bottom: 1px solid transparent; transition: .25s; }
.menu a:hover, .menu a.active { color: var(--gold); border-bottom-color: var(--gold); }
.nav-tools { margin-inline-start: auto; display: flex; align-items: center; gap: 14px; }
.cart-btn { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; transition: .25s; }
.cart-btn:hover { border-color: var(--gold); color: var(--gold); }
.cart-count { position: absolute; top: -6px; inset-inline-end: -6px; min-width: 19px; height: 19px; padding-inline: 4px; border-radius: 10px; background: var(--gold); color: #141414; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.burger span { width: 24px; height: 2px; background: var(--ink); transition: .3s; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* language switcher */
.lang-sw { display: flex; gap: 4px; border: 1px solid var(--line); border-radius: 20px; padding: 3px; }
.lang-sw-item { padding: 3px 10px; border-radius: 14px; font-size: 12px; color: var(--mut); }
.lang-sw-item.active { background: var(--gold); color: #141414; font-weight: 700; }

/* ── buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 28px; border-radius: var(--rad); font: 700 13.5px/1 var(--font-b); letter-spacing: 1.2px; text-transform: uppercase; cursor: pointer; border: 1px solid transparent; transition: .25s; }
.btn-gold { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #161309; }
.btn-gold:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--gold); border-color: var(--gold); }
.btn-ghost:hover { background: rgba(211, 164, 74, .12); }
.btn.sm { padding: 10px 20px; font-size: 12px; }
.sm-only { display: none; }

/* ── hero ── */
.hero { min-height: 92vh; display: flex; align-items: center; padding: 130px 0 90px; position: relative; overflow: hidden;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(211, 164, 74, .14), transparent 60%),
    radial-gradient(700px 500px at -10% 110%, rgba(61, 90, 128, .16), transparent 60%),
    var(--bg);
}
.hero::before { content: ''; position: absolute; inset: 0; opacity: .05; pointer-events: none;
  background-image: repeating-linear-gradient(90deg, #fff 0 1px, transparent 1px 90px); }
.hero-in { display: grid; grid-template-columns: 1.15fr .85fr; gap: 50px; align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--gold); font-size: 12.5px; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 18px; }
.kicker::before, .kicker::after { content: ''; width: 34px; height: 1px; background: var(--gold); }
.hero p.sub { color: var(--mut); font-size: 18px; max-width: 52ch; }
.hero-cta { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 44px; margin-top: 54px; }
.hero-stats b { display: block; font-family: var(--font-d); font-size: 34px; color: var(--gold); }
.hero-stats span { color: var(--mut); font-size: 13px; letter-spacing: 1px; text-transform: uppercase; }
.hero-art { position: relative; }
.hero-art .art-frame { border: 1px solid var(--line); border-radius: var(--rad); overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.hero-art .art-frame img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: center; display: block; }
.hero-art .art-badge { position: absolute; bottom: -24px; inset-inline-start: -24px; background: var(--gold); color: #161309; padding: 18px 22px; text-align: center; font-family: var(--font-d); }
.hero-art .art-badge b { display: block; font-size: 26px; }
.hero-art .art-badge span { font-size: 11.5px; letter-spacing: 2px; text-transform: uppercase; }

/* ── section headers ── */
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.sec-head .kicker::after { display: none; }
.sec-head p { color: var(--mut); }

/* ── service cards ── */
.grid { display: grid; gap: 22px; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.svc-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--rad); padding: 30px 26px; transition: .3s; }
.svc-card:hover { transform: translateY(-6px); border-color: var(--gold); box-shadow: 0 24px 50px rgba(0, 0, 0, .35); }
.svc-card img { width: 80px; height: 80px; border-radius: 50%; margin-bottom: 20px; border: 1px solid var(--line); object-fit: cover; object-position: center; display: block; }
.svc-card h3 { font-size: 21px; }
.svc-card p { color: var(--mut); font-size: 14.5px; min-height: 66px; }
.svc-meta { display: flex; align-items: center; justify-content: space-between; border-top: 1px dashed var(--line); padding-top: 16px; margin-top: 6px; }
.price { font-family: var(--font-d); font-size: 20px; color: var(--gold); }
.duration { color: var(--mut); font-size: 13px; }

/* ── product cards ── */
.prod-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--rad); overflow: hidden; transition: .3s; display: flex; flex-direction: column; }
.prod-card:hover { transform: translateY(-6px); border-color: var(--gold); box-shadow: 0 24px 50px rgba(0, 0, 0, .35); }
.prod-card figure { margin: 0; background: #23262d; }
.prod-card figure img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; object-position: center; }
.prod-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.prod-body h3 { font-size: 18px; margin: 0; }
.prod-desc { color: var(--mut); font-size: 13.5px; flex: 1; }
.prod-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.prod-price { text-align: start; }
.prod-price .old { display: block; color: var(--mut); text-decoration: line-through; font-size: 12.5px; }
.add-btn { padding: 9px 14px; border-radius: var(--rad); border: 1px solid var(--gold); background: transparent; color: var(--gold); font: 700 12px/1 var(--font-b); letter-spacing: .6px; text-transform: uppercase; cursor: pointer; transition: .25s; white-space: nowrap; }
.add-btn:hover { background: var(--gold); color: #161309; }
.flag { display: inline-block; font-size: 10.5px; letter-spacing: 1.5px; text-transform: uppercase; color: #161309; background: var(--gold); padding: 3px 10px; border-radius: 2px; margin-bottom: 8px; align-self: flex-start; }
.stock-off { color: var(--err); font-size: 12.5px; letter-spacing: 1px; text-transform: uppercase; }

/* ── about ── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-art { position: relative; }
.about-art img { border-radius: var(--rad); border: 1px solid var(--line); width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: center; display: block; }
.about-art::after { content: ''; position: absolute; inset: 18px -18px -18px 18px; border: 1px solid var(--gold); border-radius: var(--rad); z-index: -1; opacity: .5; }
.signature { font-family: var(--font-d); color: var(--gold); font-size: 22px; margin-top: 22px; }

/* ── team ── */
.team-card { text-align: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--rad); padding: 28px 22px; transition: .3s; }
.team-card:hover { border-color: var(--gold); transform: translateY(-6px); }
.team-card img { width: 130px; height: 130px; border-radius: 50%; margin: 0 auto 18px; border: 2px solid var(--gold); object-fit: cover; object-position: top center; display: block; }
.team-card h3 { font-size: 20px; margin-bottom: 2px; }
.team-card .role { color: var(--gold); font-size: 12.5px; letter-spacing: 2px; text-transform: uppercase; display: block; margin-bottom: 10px; }
.team-card p { color: var(--mut); font-size: 13.5px; }

/* ── gallery ── */
.gal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gal-item { position: relative; overflow: hidden; border-radius: var(--rad); border: 1px solid var(--line); background: #23262d; }
.gal-item img { aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s; width: 100%; }
.gal-item:hover img { transform: scale(1.06); }
.gal-item figcaption { position: absolute; inset-inline: 0; bottom: 0; padding: 14px; background: linear-gradient(transparent, rgba(10, 11, 13, .92)); color: var(--ink); font-size: 13px; opacity: 0; transition: .3s; }
.gal-item:hover figcaption { opacity: 1; }

/* ── testimonials ── */
.quote-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--rad); padding: 28px; position: relative; }
.quote-card::before { content: '“'; position: absolute; top: 6px; inset-inline-start: 20px; font-family: var(--font-d); font-size: 64px; color: var(--gold); opacity: .35; }
.stars { color: var(--gold); letter-spacing: 3px; font-size: 14px; margin-bottom: 10px; }
.quote-card p { color: var(--ink); font-size: 14.5px; font-style: italic; }
.quote-card .who { color: var(--mut); font-size: 13px; margin-top: 12px; display: block; }

/* ── CTA band ── */
.cta-band { background: linear-gradient(180deg, var(--bg2), var(--panel)); border-block: 1px solid var(--line); text-align: center; }
.cta-band .big { font-family: var(--font-d); font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 8px; }
.cta-band p { color: var(--mut); }
.cta-actions { display: flex; gap: 14px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }

/* ── page hero (inner pages) ── */
.page-hero { padding: 150px 0 50px; text-align: center; background: radial-gradient(700px 300px at 50% -40%, rgba(211, 164, 74, .16), transparent 65%), var(--bg); }
.page-hero p { color: var(--mut); max-width: 60ch; margin-inline: auto; }

/* ── forms ── */
.form-wrap { max-width: 720px; margin-inline: auto; background: var(--panel); border: 1px solid var(--line); border-radius: var(--rad); padding: 34px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12.5px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--mut); margin-bottom: 7px; }
.field input, .field select, .field textarea { width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: var(--rad); color: var(--ink); font: inherit; padding: 12px 14px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-ok { text-align: center; padding: 40px 20px; }
.form-ok .tick { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; border: 2px solid var(--ok); color: var(--ok); display: grid; place-items: center; font-size: 30px; }
.err-note { color: var(--err); font-size: 13px; margin-top: 5px; }
input.invalid, select.invalid { border-color: var(--err) !important; }

.alert { margin: 18px 0 0; padding: 13px 18px; border-radius: var(--rad); font-size: 14px; }
.alert-ok { background: rgba(127, 201, 138, .12); border: 1px solid rgba(127, 201, 138, .4); color: var(--ok); }
.alert-err { background: rgba(224, 122, 95, .12); border: 1px solid rgba(224, 122, 95, .4); color: var(--err); }

/* ── contact page ── */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 30px; align-items: start; }
.info-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--rad); padding: 24px; margin-bottom: 18px; }
.info-card h3 { font-size: 17px; color: var(--gold); }
.info-card p, .info-card a { color: var(--ink); font-size: 14.5px; display: block; margin: 2px 0; }
.map-embed { width: 100%; border: 1px solid var(--line); border-radius: var(--rad); min-height: 320px; }
.map-fallback { display: grid; place-items: center; min-height: 320px; background: var(--panel); border: 1px dashed var(--line); border-radius: var(--rad); color: var(--mut); text-align: center; padding: 20px; }

/* ── category pills ── */
.pills { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 40px; }
.pill { padding: 9px 20px; border: 1px solid var(--line); border-radius: 20px; color: var(--mut); font-size: 13.5px; transition: .25s; }
.pill:hover { color: var(--gold); border-color: var(--gold); }
.pill.active { background: var(--gold); border-color: var(--gold); color: #161309; font-weight: 700; }

/* product detail */
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.product-grid figure { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--rad); }
.product-info .price-big { font-family: var(--font-d); font-size: 32px; color: var(--gold); margin: 10px 0; }
.product-info .old { color: var(--mut); text-decoration: line-through; font-size: 20px; margin-inline-start: 12px; }
.qty-row { display: flex; gap: 14px; align-items: center; margin: 22px 0; }
.qty-input { width: 76px; text-align: center; background: var(--bg); border: 1px solid var(--line); border-radius: var(--rad); color: var(--ink); font: inherit; padding: 12px 8px; }
.product-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 14px; }

/* ── footer ── */
.footer { background: #0e1013; border-top: 1px solid var(--line); margin-top: 40px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 36px; padding: 56px 22px 40px; }
.foot-brand p { color: var(--mut); font-size: 14px; margin-top: 14px; }
.foot-col { display: flex; flex-direction: column; gap: 9px; align-items: flex-start; }
.foot-col h4 { color: var(--gold); font: 700 13px/1 var(--font-b); letter-spacing: 2px; text-transform: uppercase; margin: 0 0 8px; }
.foot-col a, .foot-col span { color: var(--mut); font-size: 14px; }
.foot-col a:hover { color: var(--gold); }
.soc { display: flex; gap: 10px; margin-top: 14px; }
.soc-a { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--mut); transition: .25s; }
.soc-a:hover { color: #161309; background: var(--gold); border-color: var(--gold); }
.foot-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-block: 18px; border-top: 1px solid rgba(211, 164, 74, .12); color: var(--mut); font-size: 13px; flex-wrap: wrap; }

/* ── cart drawer / modal / toast ── */
.overlay { position: fixed; inset: 0; background: rgba(8, 9, 11, .66); opacity: 0; pointer-events: none; transition: .3s; z-index: 90; }
.overlay.show { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; inset-inline-end: 0; width: min(420px, 100vw); height: 100vh; background: var(--bg2); border-inline-start: 1px solid var(--line); z-index: 95; display: flex; flex-direction: column; transform: translateX(105%); transition: transform .35s cubic-bezier(.2, .7, .3, 1); }
[dir='rtl'] .drawer { transform: translateX(-105%); }
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.drawer-x { background: none; border: 0; color: var(--mut); font-size: 18px; cursor: pointer; }
.drawer-x:hover { color: var(--gold); }
.drawer-lines { flex: 1; overflow-y: auto; padding: 10px 22px; }
.cart-line { display: grid; grid-template-columns: 1fr auto auto auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.cart-line-info b { display: block; font-size: 14px; }
.cart-line-info span { color: var(--mut); font-size: 12.5px; }
.cart-line-qty { display: flex; align-items: center; gap: 8px; }
.cart-line-qty button { width: 24px; height: 24px; border-radius: 4px; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; }
.cart-line-qty span { min-width: 20px; text-align: center; font-size: 13.5px; }
.cart-line-total { font-size: 13.5px; color: var(--gold); white-space: nowrap; }
.cart-line-x { background: none; border: 0; color: var(--err); cursor: pointer; font-size: 15px; }
.drawer-empty { text-align: center; color: var(--mut); padding: 40px 20px; }
.drawer-foot { padding: 18px 22px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.drawer-total { display: flex; justify-content: space-between; font-size: 15px; }
.drawer-total b { color: var(--gold); font-family: var(--font-d); font-size: 20px; }
.modal { position: fixed; inset: 0; background: rgba(8, 9, 11, .7); display: none; place-items: center; z-index: 100; padding: 20px; }
.modal.show { display: grid; }
.modal-card { position: relative; width: 100%; max-width: 460px; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--rad); padding: 30px; max-height: 90vh; overflow-y: auto; }
.modal-card h3 { margin-top: 0; }
.toast { position: fixed; bottom: 26px; left: 50%; transform: translate(-50%, 80px); background: var(--gold); color: #161309; font-weight: 700; padding: 12px 26px; border-radius: 30px; opacity: 0; transition: .35s; z-index: 110; pointer-events: none; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ── responsive ── */
@media (max-width: 980px) {
  .g3 { grid-template-columns: repeat(2, 1fr); }
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .hero-in, .about-grid, .contact-grid, .product-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 460px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  section { padding: 60px 0; }
  .menu { position: fixed; top: 76px; inset-inline: 0; flex-direction: column; gap: 0; background: rgba(14, 16, 19, .98); border-bottom: 1px solid var(--line); padding: 12px 22px 24px; transform: translateY(-130%); opacity: 0; pointer-events: none; visibility: hidden; transition: transform .35s cubic-bezier(.16, 1, .3, 1), opacity .25s ease, visibility .35s; z-index: 55; box-shadow: 0 16px 36px rgba(0, 0, 0, .6); }
  .menu.open { transform: none; opacity: 1; pointer-events: auto; visibility: visible; }
  .menu a { padding: 13px 0; border-bottom: 1px dashed var(--line); }
  .burger { display: flex; }
  .nav-book { display: none; }
  .sm-only { display: inline-flex !important; margin-top: 14px; width: 100%; text-align: center; justify-content: center; }
  .gal-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 28px; flex-wrap: wrap; }
  .field-row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .g3, .g4, .foot-grid { grid-template-columns: 1fr; }
  .lang-sw { display: none; }
  .foot-bar .lang-sw { display: flex; }
  .cart-line { grid-template-columns: 1fr auto; grid-auto-rows: auto; }
}
