/* ═══════════════════════════════════════════════════════════════
   THEME V5 — "Warm Neighborhood" · friendly family barbershop
   Palette: cream #fbf5ec / cocoa #4a3426 / terracotta #e07a5f / sage #8a9b6e
   Type: Poppins · Vazirmatn (ar/ku) — rounded, soft shadows, blobs
   ═══════════════════════════════════════════════════════════════ */
:root {
  --bg: #fbf5ec;
  --panel: #ffffff;
  --ink: #4a3426;
  --mut: #8d7a6a;
  --terra: #e07a5f;
  --terra-dark: #c95f43;
  --sage: #8a9b6e;
  --line: #ecdfcd;
  --err: #c04c3a;
  --ok: #5e8c61;
  --rad: 22px;
  --shadow: 0 14px 40px rgba(74, 52, 38, .1);
  --font-b: 'Poppins', '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.75 var(--font-b); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-weight: 700; line-height: 1.22; margin: 0 0 14px; letter-spacing: -0.01em; }
h1 { font-size: clamp(34px, 5vw, 58px); }
h2 { font-size: clamp(26px, 3.4vw, 40px); }
a { color: var(--terra); text-decoration: none; }
p { margin: 0 0 14px; }
.container { max-width: 1140px; margin-inline: auto; padding-inline: 24px; }
section { padding: 76px 0; }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; pointer-events: none; z-index: 0; }

/* ── nav ── */
.nav { position: fixed; inset-inline: 0; top: 14px; z-index: 60; transition: .3s; }
.nav.scrolled .nav-in { background: rgba(255, 255, 255, .96); box-shadow: var(--shadow); }
.nav-in { max-width: 1140px; margin-inline: auto; display: flex; align-items: center; gap: 20px; height: 68px; padding-inline: 22px; margin-inline: 24px; background: rgba(255, 255, 255, .75); backdrop-filter: blur(10px); border-radius: 40px; border: 1px solid rgba(236, 223, 205, .8); transition: .3s; }
@media (min-width: 1188px) { .nav-in { margin-inline: auto; } }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--ink); }
.logo .dot { width: 36px; height: 36px; display: grid; place-items: center; background: var(--terra); color: #fff; border-radius: 12px; font-size: 17px; }
.menu { display: flex; gap: 4px; }
.menu a { color: var(--mut); font-size: 14px; font-weight: 500; padding: 8px 14px; border-radius: 18px; transition: .2s; }
.menu a:hover, .menu a.active { color: var(--terra-dark); background: #f6ede0; }
.nav-tools { margin-inline-start: auto; display: flex; align-items: center; gap: 12px; }
.cart-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 9px 16px; font: 600 13.5px var(--font-b); color: var(--ink); cursor: pointer; transition: .2s; }
.cart-btn:hover { border-color: var(--terra); }
.cart-count { background: var(--terra); color: #fff; min-width: 20px; height: 20px; padding-inline: 5px; border-radius: 10px; display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.burger { display: none; flex-direction: column; gap: 5px; background: #fff; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; padding: 11px; }
.burger span { width: 22px; height: 2.5px; border-radius: 2px; background: var(--ink); transition: .3s; }
.burger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.lang-sw { display: flex; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 4px; }
.lang-sw-item { padding: 5px 12px; border-radius: 18px; font-size: 12px; font-weight: 600; color: var(--mut); }
.lang-sw-item.active { background: var(--terra); color: #fff; }

/* ── buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 30px; border-radius: 40px; font: 600 14px/1 var(--font-b); cursor: pointer; border: 0; transition: .25s; }
.btn-terra { background: var(--terra); color: #fff; box-shadow: 0 10px 24px rgba(224, 122, 95, .35); }
.btn-terra:hover { background: var(--terra-dark); transform: translateY(-2px); }
.btn-soft { background: #f6ede0; color: var(--ink); }
.btn-soft:hover { background: #efe2cd; }
.btn.sm { padding: 10px 20px; font-size: 13px; }
.sm-only { display: none; }

/* ── hero ── */
.hero { padding: 150px 0 70px; position: relative; overflow: hidden; }
.hero .blob.b1 { width: 420px; height: 420px; background: #f7d8b8; top: -120px; inset-inline-end: -100px; }
.hero .blob.b2 { width: 300px; height: 300px; background: #d9e4c4; bottom: -80px; inset-inline-start: -80px; }
.hero-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; position: relative; z-index: 1; }
.chip { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 30px; padding: 8px 18px; font-size: 13px; font-weight: 600; color: var(--terra-dark); box-shadow: 0 6px 18px rgba(74, 52, 38, .07); margin-bottom: 22px; }
.hero p.sub { color: var(--mut); font-size: 17.5px; max-width: 48ch; }
.hero-cta { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-art { position: relative; }
.hero-art img { border-radius: 40px 100px 40px 100px; box-shadow: var(--shadow); width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: center; display: block; }
[dir='rtl'] .hero-art img { border-radius: 100px 40px 100px 40px; }
.hero-art .float-chip { position: absolute; bottom: 22px; inset-inline-start: -14px; background: #fff; border-radius: 18px; box-shadow: var(--shadow); padding: 12px 18px; display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; }
.hero-art .float-chip .ico { width: 38px; height: 38px; border-radius: 12px; background: #eef3e2; display: grid; place-items: center; font-size: 18px; }

/* ── section head ── */
.sec-head { text-align: center; max-width: 620px; margin: 0 auto 50px; }
.sec-head .chip { margin-bottom: 14px; }
.sec-head p { color: var(--mut); }

/* ── cards ── */
.grid { display: grid; gap: 24px; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--panel); border-radius: var(--rad); box-shadow: var(--shadow); transition: .3s; }
.card:hover { transform: translateY(-6px); box-shadow: 0 22px 50px rgba(74, 52, 38, .16); }

.svc-card { padding: 28px 26px; }
.svc-card img { width: 86px; height: 86px; border-radius: 24px; margin-bottom: 18px; background: #f6ede0; object-fit: cover; object-position: center; display: block; }
.svc-card h3 { font-size: 19px; }
.svc-card p { color: var(--mut); font-size: 14px; min-height: 68px; }
.svc-meta { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; margin-top: 6px; border-top: 1px dashed var(--line); }
.price { font-weight: 700; color: var(--terra-dark); font-size: 18px; }
.duration { color: var(--mut); font-size: 12.5px; font-weight: 500; }
.svc-card .btn { margin-top: 16px; width: 100%; }

.prod-card { display: flex; flex-direction: column; overflow: hidden; }
.prod-card figure { margin: 0; padding: 20px; background: linear-gradient(160deg, #f6ede0, #fdf9f2); }
.prod-card figure img { border-radius: 16px; aspect-ratio: 1; object-fit: cover; object-position: center; width: 100%; height: 100%; display: block; }
.prod-body { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.prod-body h3 { font-size: 15.5px; margin: 0; }
.prod-body h3 a { color: var(--ink); }
.prod-body h3 a:hover { color: var(--terra-dark); }
.prod-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 10px; }
.flag { display: inline-block; background: #eef3e2; color: var(--sage); font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; border-radius: 12px; padding: 3px 10px; }
.stock-off { color: var(--err); font-size: 12px; font-weight: 600; }
.add-btn { background: #f6ede0; border: 0; color: var(--ink); font: 600 12.5px var(--font-b); padding: 9px 14px; border-radius: 20px; cursor: pointer; transition: .2s; white-space: nowrap; }
.add-btn:hover { background: var(--terra); color: #fff; }

/* ── about ── */
.about-band { background: #f6ede0; border-radius: 60px; margin-inline: 24px; }
@media (max-width: 1188px) { .about-band { margin-inline: 0; border-radius: 0; } }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-grid img { border-radius: 34px 90px 34px 90px; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: center; display: block; }
[dir='rtl'] .about-grid img { border-radius: 90px 34px 90px 34px; }
.bigtext { font-size: 16.5px; color: var(--ink); }

/* ── team ── */
.team-card { text-align: center; padding: 28px 22px 30px; }
.team-card img { width: 130px; height: 130px; border-radius: 50%; margin: 0 auto 16px; border: 5px solid #f6ede0; object-fit: cover; object-position: top center; display: block; }
.team-card h3 { font-size: 18px; margin-bottom: 2px; }
.team-card .role { color: var(--terra-dark); font-size: 12.5px; font-weight: 600; display: block; margin-bottom: 8px; }
.team-card p { color: var(--mut); font-size: 13.5px; }

/* ── gallery ── */
.gal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gal-item { position: relative; border-radius: var(--rad); overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.gal-item img { aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s; }
.gal-item:hover img { transform: scale(1.05); }
.gal-item figcaption { position: absolute; inset-inline: 12px; bottom: 12px; background: rgba(255, 255, 255, .92); border-radius: 14px; padding: 8px 14px; font-size: 13px; font-weight: 600; color: var(--ink); opacity: 0; transform: translateY(8px); transition: .3s; }
.gal-item:hover figcaption { opacity: 1; transform: none; }

/* ── testimonials ── */
.quote-card { padding: 28px; }
.quote-card .stars { color: #eda93c; letter-spacing: 3px; font-size: 14px; margin-bottom: 10px; }
.quote-card p { font-size: 14.5px; color: var(--ink); }
.quote-card .who { color: var(--mut); font-size: 13px; font-weight: 600; }

/* ── CTA ── */
.cta-band { }
.cta-card { background: linear-gradient(135deg, var(--terra) 0%, #e89678 100%); border-radius: 44px; padding: 60px 40px; text-align: center; color: #fff; position: relative; overflow: hidden; }
.cta-card::before { content: ''; position: absolute; width: 300px; height: 300px; border-radius: 50%; background: rgba(255, 255, 255, .12); top: -130px; inset-inline-end: -80px; }
.cta-card .big { font-size: clamp(24px, 3vw, 34px); font-weight: 700; margin-bottom: 8px; position: relative; }
.cta-card p { color: #ffe9e0; position: relative; }
.cta-actions { display: flex; gap: 14px; justify-content: center; margin-top: 24px; flex-wrap: wrap; position: relative; }
.cta-card .btn-terra { background: #fff; color: var(--terra-dark); box-shadow: 0 10px 24px rgba(0, 0, 0, .15); }
.cta-card .btn-soft { background: rgba(255, 255, 255, .16); color: #fff; }

/* ── page hero ── */
.page-hero { padding: 150px 0 34px; text-align: center; position: relative; overflow: hidden; }
.page-hero .blob.b1 { width: 340px; height: 340px; background: #f7d8b8; top: -140px; inset-inline-start: -80px; }
.page-hero p { color: var(--mut); max-width: 60ch; margin-inline: auto; }

/* ── forms ── */
.form-wrap { max-width: 700px; margin-inline: auto; background: var(--panel); border-radius: 28px; box-shadow: var(--shadow); padding: 36px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.field input, .field select, .field textarea { width: 100%; background: var(--bg); border: 1.5px solid var(--line); border-radius: 14px; color: var(--ink); font: 400 15px var(--font-b); padding: 12px 16px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--terra); background: #fff; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.err-note { color: var(--err); font-size: 13.5px; font-weight: 500; }
input.invalid, select.invalid, textarea.invalid { border-color: var(--err) !important; }
.form-ok { text-align: center; padding: 50px 30px; }
.form-ok .tick { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; background: #eef3e2; color: var(--ok); display: grid; place-items: center; font-size: 28px; }

.alert { margin: 16px 0 0; border-radius: 16px; padding: 13px 18px; font-size: 14px; }
.alert-ok { background: #eef3e2; color: var(--ok); }
.alert-err { background: #fbe3de; color: var(--err); }

/* ── contact ── */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 26px; align-items: start; }
.info-card { background: var(--panel); border-radius: var(--rad); box-shadow: var(--shadow); padding: 24px; margin-bottom: 18px; }
.info-card h3 { font-size: 15px; color: var(--terra-dark); }
.info-card a, .info-card span { display: block; color: var(--ink); font-size: 14.5px; margin: 3px 0; }
.map-embed { width: 100%; min-height: 320px; border: 0; border-radius: var(--rad); box-shadow: var(--shadow); }
.map-fallback { display: grid; place-items: center; min-height: 320px; background: var(--panel); border-radius: var(--rad); box-shadow: var(--shadow); color: var(--mut); }

/* ── pills ── */
.pills { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 40px; }
.pill { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 9px 20px; font-size: 13.5px; font-weight: 500; color: var(--mut); transition: .2s; }
.pill:hover { color: var(--terra-dark); border-color: var(--terra); }
.pill.active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ── product detail ── */
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: start; }
.product-grid figure { margin: 0; background: linear-gradient(160deg, #f6ede0, #fdf9f2); border-radius: 32px; padding: 26px; box-shadow: var(--shadow); }
.crumbs { display: inline-block; background: #f6ede0; border-radius: 18px; padding: 6px 16px; font-size: 12.5px; font-weight: 600; color: var(--mut); margin-bottom: 16px; }
.price-big { font-size: 34px; font-weight: 700; color: var(--terra-dark); margin: 10px 0; }
.price-big .old { font-size: 19px; color: var(--mut); text-decoration: line-through; margin-inline-start: 10px; }
.qty-row { display: flex; align-items: center; gap: 14px; margin: 20px 0; }
.qty-input { width: 84px; background: var(--bg); border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 8px; text-align: center; font: 600 15px var(--font-b); color: var(--ink); }
.product-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── footer ── */
.footer { padding: 60px 0 24px; }
.foot-card { background: var(--ink); border-radius: 44px; padding: 50px 46px 40px; color: #e9ddd0; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 34px; }
.foot-brand .logo { color: #fff; }
.foot-brand p { font-size: 13.5px; color: #c8b8a6; margin-top: 14px; }
.foot-col { display: flex; flex-direction: column; gap: 9px; align-items: flex-start; }
.foot-col h4 { color: #fff; font-size: 13.5px; margin: 0 0 6px; }
.foot-col a, .foot-col span { color: #c8b8a6; font-size: 14px; }
.foot-col a:hover { color: #fff; }
.foot-col .btn-terra { background: var(--terra); color: #fff; box-shadow: none; }
.soc { display: flex; gap: 10px; margin-top: 14px; }
.soc-a { width: 40px; height: 40px; display: grid; place-items: center; background: rgba(255, 255, 255, .1); border-radius: 14px; color: #e9ddd0; transition: .2s; }
.soc-a:hover { background: var(--terra); color: #fff; }
.foot-bar { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding-top: 22px; color: var(--mut); font-size: 13px; flex-wrap: wrap; }
.foot-bar .lang-sw { background: #fff; }

/* ── cart drawer / modal / toast ── */
.overlay { position: fixed; inset: 0; background: rgba(74, 52, 38, .45); opacity: 0; pointer-events: none; transition: .3s; z-index: 90; }
.overlay.show { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 12px; inset-inline-end: 12px; bottom: 12px; width: min(420px, calc(100vw - 24px)); background: var(--bg); border-radius: 28px; z-index: 95; display: flex; flex-direction: column; transform: translateX(calc(100% + 24px)); transition: transform .4s cubic-bezier(.2, .7, .3, 1); overflow: hidden; }
[dir='rtl'] .drawer { transform: translateX(calc(-100% - 24px)); }
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; background: #fff; }
.drawer-head b { font-size: 17px; }
.drawer-x { background: #f6ede0; border: 0; width: 34px; height: 34px; border-radius: 12px; font-size: 15px; cursor: pointer; color: var(--ink); }
.drawer-x:hover { background: var(--terra); color: #fff; }
.drawer-lines { flex: 1; overflow-y: auto; padding: 8px 24px; }
.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; font-weight: 600; }
.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: 26px; height: 26px; border: 0; border-radius: 9px; background: #fff; color: var(--ink); font-weight: 700; cursor: pointer; box-shadow: 0 3px 8px rgba(74, 52, 38, .12); }
.cart-line-qty span { min-width: 20px; text-align: center; font-size: 13.5px; font-weight: 600; }
.cart-line-total { color: var(--terra-dark); font-weight: 700; font-size: 13.5px; 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: 20px 24px; background: #fff; display: flex; flex-direction: column; gap: 10px; }
.drawer-total { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; }
.drawer-total b { color: var(--terra-dark); font-size: 22px; font-weight: 700; }
.modal { position: fixed; inset: 0; background: rgba(74, 52, 38, .5); display: none; place-items: center; z-index: 100; padding: 20px; }
.modal.show { display: grid; }
.modal-card { position: relative; width: 100%; max-width: 450px; background: var(--bg); border-radius: 28px; padding: 32px; 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(--ink); color: #fff; font-weight: 600; font-size: 14px; padding: 13px 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; }
  .nav { top: 8px; }
}
@media (max-width: 760px) {
  section { padding: 56px 0; }
  .menu { position: fixed; top: 84px; inset-inline: 24px; flex-direction: column; gap: 2px; background: #fff; border-radius: 22px; box-shadow: var(--shadow); padding: 14px; transform: translateY(-16px); opacity: 0; pointer-events: none; transition: .3s; z-index: 55; }
  .menu.open { transform: none; opacity: 1; pointer-events: auto; }
  .menu a { padding: 12px 16px; }
  .burger { display: flex; }
  .nav-book { display: none; }
  .sm-only { display: inline-flex !important; margin-top: 10px; width: 100%; text-align: center; justify-content: center; }
  .gal-grid { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .hero { padding-top: 130px; }
  .about-band { border-radius: 34px; margin-inline: 16px; }
}
@media (max-width: 560px) {
  .g3, .g4, .foot-grid { grid-template-columns: 1fr; }
  .lang-sw { display: none; }
  .foot-bar .lang-sw { display: flex; }
  .foot-card { padding: 34px 26px 28px; border-radius: 30px; }
}
