/* =========================================================
   Tito — style.css
   ========================================================= */

:root {
  --bg: #0d0b09;
  --bg-2: #121009;
  --panel: #171310;
  --panel-2: #1e1915;
  --line: #2a231c;
  --line-soft: #221c16;
  --text: #f4ede3;
  --muted: #a89c8c;
  --muted-2: #7d7365;
  --gold: #e8c87a;
  --gold-deep: #b8892f;
  --green: #2fbf71;
  --red: #e2645a;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 40px rgba(0, 0, 0, .45);
  --header-h: 76px;
  --font: "Segoe UI", "Noto Kufi Arabic", "Tajawal", "Cairo", Tahoma, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.7;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4 { line-height: 1.35; margin: 0 0 .5em; font-weight: 800; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.ico {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}

.container { width: min(1180px, 92vw); margin-inline: auto; }

/* ================= الأزرار ================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border: 1px solid transparent; border-radius: 999px;
  padding: .7rem 1.3rem; font-weight: 700; font-size: .95rem;
  background: var(--panel-2); color: var(--text);
  transition: transform .15s ease, background .2s ease, border-color .2s ease, opacity .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #241a06;
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(232, 200, 122, .18);
}
.btn-primary:hover { box-shadow: 0 14px 30px rgba(232, 200, 122, .28); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-lg { padding: .9rem 1.6rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

.icon-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--panel); border: 1px solid var(--line); color: var(--text);
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.icon-btn:hover { border-color: var(--gold); color: var(--gold); }
.icon-btn .ico { width: 20px; height: 20px; }

.badge[hidden] { display: none; }
.services-grid[hidden] { display: none; }

.badge {
  position: absolute; top: -6px; inset-inline-start: -6px;
  min-width: 20px; height: 20px; padding: 0 5px;
  display: grid; place-items: center;
  background: var(--gold); color: #241a06;
  font-size: .72rem; font-weight: 800; border-radius: 999px;
}

/* ================= الهيدر ================= */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(13, 11, 9, .88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; gap: 1.5rem;
}
.brand { display: inline-flex; align-items: center; gap: .7rem; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #241a06;
}
.brand-mark .ico { width: 24px; height: 24px; stroke-width: 1.9; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 1.2rem; letter-spacing: .5px; }
.brand-text .brand-en { font-family: "Segoe UI", Arial, sans-serif; letter-spacing: 1.5px; font-weight: 800; }
.brand-text small { color: var(--muted); font-size: .72rem; }

.main-nav { display: flex; gap: 1.4rem; margin-inline-start: auto; }
.main-nav a {
  color: var(--muted); font-weight: 600; font-size: .95rem;
  padding: .3rem 0; position: relative; transition: color .2s ease;
}
.main-nav a::after {
  content: ""; position: absolute; inset-inline: 0; bottom: -2px; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: right;
  transition: transform .25s ease;
}
.main-nav a:hover { color: var(--text); }
.main-nav a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: .6rem; }
.menu-btn { display: none; }

.mobile-nav {
  display: none;
  flex-direction: column; gap: .3rem;
  padding: .8rem 4vw 1.2rem;
  border-top: 1px solid var(--line-soft);
  background: var(--bg-2);
}
.mobile-nav a { padding: .7rem .2rem; border-bottom: 1px solid var(--line-soft); color: var(--muted); font-weight: 600; }
.mobile-nav a:hover { color: var(--gold); }
.mobile-nav .btn { margin-top: .8rem; }

/* ================= الهيرو ================= */
.hero { position: relative; overflow: hidden; padding: 4.5rem 0 3.5rem; }
.hero-glow {
  position: absolute; inset: -20% -10% auto; height: 620px;
  background: radial-gradient(circle at 70% 30%, rgba(232, 200, 122, .13), transparent 60%),
              radial-gradient(circle at 20% 60%, rgba(184, 137, 47, .1), transparent 55%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .3px;
  color: var(--gold);
  background: rgba(232, 200, 122, .08);
  border: 1px solid rgba(232, 200, 122, .22);
  padding: .35rem .8rem; border-radius: 999px; margin-bottom: 1.1rem;
}
.eyebrow .ico { width: 15px; height: 15px; }

.hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); letter-spacing: -.5px; margin-bottom: .6rem; }
.hero h1 .hl {
  color: var(--gold);
  background: linear-gradient(135deg, #f6e3b0, var(--gold-deep));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-sub { color: var(--muted); font-size: 1.05rem; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0 2rem; }

.hero-stats { display: flex; gap: 2.2rem; flex-wrap: wrap; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.5rem; color: var(--text); }
.hero-stats span { color: var(--muted-2); font-size: .82rem; }

.hero-visual { position: relative; }
.hero-photo { border-radius: 28px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.hero-art { width: 100%; height: auto; }

.float-card {
  position: absolute; display: flex; align-items: center; gap: .65rem;
  background: rgba(30, 25, 21, .92); border: 1px solid var(--line);
  padding: .6rem .9rem; border-radius: 14px; box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  animation: floaty 5s ease-in-out infinite;
}
.float-card strong { display: block; font-size: .88rem; }
.float-card small { color: var(--muted); font-size: .74rem; }
.fc-ico {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(232, 200, 122, .12); color: var(--gold); flex: none;
}
.fc-ico .ico { width: 18px; height: 18px; }
.fc-1 { top: 8%; inset-inline-start: -8%; }
.fc-2 { bottom: 26%; inset-inline-end: -6%; animation-delay: 1.2s; }
.fc-3 { bottom: 4%; inset-inline-start: 4%; animation-delay: 2.1s; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ================= شريط الثقة ================= */
.trust-strip { border-block: 1px solid var(--line-soft); background: var(--bg-2); }
.trust-inner {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  padding: 1.3rem 0;
}
.trust-item { display: flex; align-items: center; gap: .7rem; }
.trust-item .ico { width: 22px; height: 22px; color: var(--gold); }
.trust-item strong { display: block; font-size: .92rem; }
.trust-item span { color: var(--muted-2); font-size: .78rem; }

/* ================= أقسام عامة ================= */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line-soft); }
.section-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem;
  margin-bottom: 2rem; flex-wrap: wrap;
}
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.section-sub { color: var(--muted); margin: 0; font-size: .95rem; }

.section-tools { display: flex; gap: .7rem; flex-wrap: wrap; }
.search-field, .select-field {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 999px; padding: .5rem .9rem; color: var(--muted);
}
.search-field:focus-within, .select-field:focus-within { border-color: var(--gold); }
.search-field input {
  background: none; border: 0; outline: none; color: var(--text); width: 230px;
}
.search-field input::placeholder { color: var(--muted-2); }
.select-field span { font-size: .8rem; color: var(--muted-2); }
.select-field select {
  background: none; border: 0; outline: none; color: var(--text); font-weight: 600; font-size: .9rem;
}
.select-field option { background: var(--panel); color: var(--text); }

/* ================= الفلاتر ================= */
.filter-chips { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.8rem; }
.chip {
  border: 1px solid var(--line); background: transparent; color: var(--muted);
  padding: .45rem 1rem; border-radius: 999px; font-size: .88rem; font-weight: 600;
  transition: all .2s ease;
}
.chip:hover { color: var(--text); border-color: var(--gold-deep); }
.chip.is-active {
  background: var(--gold); border-color: var(--gold); color: #241a06;
}

/* ================= كروت الخدمات ================= */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); gap: 1.2rem;
}
.service-card {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.service-card:hover { transform: translateY(-4px); border-color: rgba(232, 200, 122, .45); box-shadow: var(--shadow); }

.card-art {
  position: relative; height: 148px;
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(232, 200, 122, .16), transparent 60%),
    linear-gradient(160deg, #221c16, #14100d);
  border-bottom: 1px solid var(--line-soft);
}
.card-art > .ico { width: 54px; height: 54px; color: var(--gold); stroke-width: 1.2; opacity: .95; }
.card-art .art-lines {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .035) 0 2px, transparent 2px 9px);
  pointer-events: none;
}

.card-badges { position: absolute; top: .7rem; inset-inline-start: .7rem; display: flex; gap: .35rem; flex-direction: column; }
.pill {
  font-size: .7rem; font-weight: 800; padding: .18rem .55rem; border-radius: 999px;
  background: var(--gold); color: #241a06;
}
.pill.dark { background: rgba(13, 11, 9, .75); color: var(--gold); border: 1px solid rgba(232, 200, 122, .4); }

.fav-btn {
  position: absolute; top: .6rem; inset-inline-end: .6rem;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(13, 11, 9, .6); border: 1px solid var(--line);
  color: var(--muted); transition: all .2s ease;
}
.fav-btn:hover { color: var(--gold); border-color: var(--gold); }
.fav-btn.is-on { color: var(--gold); border-color: var(--gold); background: rgba(232, 200, 122, .12); }
.fav-btn .ico { width: 17px; height: 17px; }
.fav-btn.is-on .ico { fill: currentColor; }

.card-body { padding: 1rem 1rem 1.1rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: .6rem; }
.card-title { font-size: 1.02rem; font-weight: 800; margin: 0; }
.card-cat { font-size: .74rem; color: var(--muted-2); }
.card-desc {
  color: var(--muted); font-size: .84rem; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.9em;
}
.card-meta { display: flex; align-items: center; gap: .8rem; color: var(--muted-2); font-size: .78rem; }
.card-meta .rating { display: inline-flex; align-items: center; gap: .2rem; color: var(--gold); font-weight: 700; }
.card-meta .rating .ico { width: 13px; height: 13px; fill: currentColor; stroke: none; }
.card-meta .dur { display: inline-flex; align-items: center; gap: .25rem; }
.card-meta .dur .ico { width: 13px; height: 13px; }

.card-foot { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-top: auto; padding-top: .3rem; }
.price { font-size: 1.15rem; font-weight: 800; color: var(--gold); }
.price small { font-size: .72rem; color: var(--muted-2); font-weight: 600; }

.add-btn {
  flex: 1; border: 1px solid rgba(232, 200, 122, .5); background: rgba(232, 200, 122, .1);
  color: var(--gold); border-radius: 999px; padding: .55rem .8rem;
  font-weight: 700; font-size: .85rem; display: inline-flex; align-items: center; justify-content: center; gap: .35rem;
  transition: all .2s ease;
}
.add-btn:hover { background: var(--gold); color: #241a06; }
.add-btn .ico { width: 16px; height: 16px; }
.add-btn.is-added { background: var(--gold); color: #241a06; }

.details-btn {
  background: none; border: 0; color: var(--muted-2); font-size: .78rem; text-decoration: underline;
  text-underline-offset: 3px; padding: 0;
}
.details-btn:hover { color: var(--gold); }

/* حالة فارغة */
.empty-state {
  text-align: center; padding: 3.5rem 1rem; border: 1px dashed var(--line);
  border-radius: var(--radius); color: var(--muted);
}
.empty-state .ico { width: 40px; height: 40px; margin: 0 auto .8rem; color: var(--muted-2); }
.empty-state h3 { color: var(--text); font-size: 1.1rem; }
.empty-state p { font-size: .9rem; }

/* ================= بانر العرض ================= */
.offer-section { padding-top: 0; }
.offer-banner {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.4fr .6fr; gap: 2rem; align-items: center;
  background:
    radial-gradient(circle at 85% 20%, rgba(232, 200, 122, .16), transparent 55%),
    linear-gradient(135deg, #1d1813, #100e0b);
  border: 1px solid rgba(232, 200, 122, .28);
  border-radius: 24px; padding: 2.4rem 2.6rem;
}
.offer-tag {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--gold); color: #241a06; font-weight: 800; font-size: .78rem;
  padding: .25rem .8rem; border-radius: 999px; margin-bottom: .9rem;
}
.offer-tag .ico { width: 15px; height: 15px; }
.offer-copy h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.offer-copy p { color: var(--muted); max-width: 52ch; }
.offer-price { display: flex; align-items: baseline; gap: .7rem; margin-bottom: 1.2rem; }
.offer-price s { color: var(--muted-2); font-size: 1rem; }
.offer-price strong { font-size: 2rem; color: var(--gold); }
.offer-art svg { width: 100%; height: auto; }

/* ================= الحلاقين ================= */
.barbers-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.2rem; }
.barber-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem 1.2rem; text-align: center; min-width: 0;
  transition: transform .2s ease, border-color .2s ease;
}
.barber-card:hover { transform: translateY(-4px); border-color: rgba(232, 200, 122, .4); }
.barber-avatar {
  width: 92px; height: 92px; border-radius: 50%; margin: 0 auto .9rem;
  display: grid; place-items: center;
  background: linear-gradient(160deg, #2b231a, #171310);
  border: 2px solid rgba(232, 200, 122, .35);
  font-size: 1.9rem; font-weight: 800; color: var(--gold);
}
.barber-card h3 { font-size: 1.05rem; margin-bottom: .15rem; }
.barber-spec { color: var(--gold); font-size: .82rem; font-weight: 600; margin-bottom: .5rem; }
.barber-meta { color: var(--muted-2); font-size: .8rem; display: flex; justify-content: center; gap: .9rem; margin-bottom: .9rem; }
.barber-meta .rating { display: inline-flex; align-items: center; gap: .2rem; color: var(--gold); font-weight: 700; }
.barber-meta .rating .ico { width: 13px; height: 13px; fill: currentColor; stroke: none; }
.barber-card .btn { width: 100%; }

/* ================= المواعيد والموقع ================= */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.info-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 2rem;
}
.info-card h2 { font-size: 1.4rem; }
.hours-list { margin: 1.2rem 0; border-top: 1px solid var(--line-soft); }
.hours-list li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .7rem 0; border-bottom: 1px solid var(--line-soft); font-size: .92rem;
}
.hours-list span { color: var(--muted); }
.hours-list strong { color: var(--text); }
.info-note { color: var(--muted-2); font-size: .84rem; }
.info-actions { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1.2rem; }
.map-art { margin-top: 1rem; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); }
.map-art svg { width: 100%; height: auto; }

/* ================= الآراء ================= */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; }
.review-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; display: flex; flex-direction: column; gap: .6rem;
}
.stars { color: var(--gold); letter-spacing: 2px; font-size: 1rem; }
.review-card p { color: var(--muted); font-size: .9rem; margin: 0; }
.review-card footer { display: flex; align-items: center; gap: .7rem; margin-top: auto; padding-top: .8rem; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(232, 200, 122, .12); color: var(--gold); font-weight: 800;
}
.review-card footer strong { display: block; font-size: .88rem; }
.review-card footer small { color: var(--muted-2); font-size: .76rem; }

/* ================= دعوة الحجز ================= */
.cta-band {
  background: linear-gradient(135deg, rgba(232, 200, 122, .14), rgba(184, 137, 47, .06));
  border-block: 1px solid rgba(232, 200, 122, .25);
  padding: 3rem 0;
}
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-inner h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: .2rem; }
.cta-inner p { color: var(--muted); margin: 0; }

/* ================= الفوتر ================= */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--line-soft); padding-top: 3.2rem; }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr .8fr 1.1fr 1.2fr; gap: 2rem;
  padding-bottom: 2.4rem;
}
.footer-brand p { color: var(--muted); font-size: .88rem; margin-top: .9rem; max-width: 34ch; }
.socials { display: flex; gap: .5rem; margin-top: 1rem; }
.socials a {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--muted); transition: all .2s ease;
}
.socials a:hover { color: var(--gold); border-color: var(--gold); }
.socials .ico { width: 18px; height: 18px; }

.footer-col h3 { font-size: .95rem; margin-bottom: 1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: .6rem; }
.footer-col li, .footer-col a { color: var(--muted); font-size: .87rem; display: flex; align-items: center; gap: .45rem; }
.footer-col a:hover { color: var(--gold); }
.footer-col .ico { width: 16px; height: 16px; color: var(--gold-deep); }
.newsletter p { color: var(--muted-2); font-size: .82rem; }
.newsletter-form { display: flex; gap: .4rem; }
.newsletter-form input {
  flex: 1; min-width: 0; background: var(--panel); border: 1px solid var(--line);
  border-radius: 999px; padding: .55rem .9rem; color: var(--text); outline: none; font-size: .85rem;
}
.newsletter-form input:focus { border-color: var(--gold); }
.newsletter-form .btn { padding: .55rem 1rem; font-size: .85rem; }
.form-msg { font-size: .78rem; color: var(--green); min-height: 1.2em; margin: .5rem 0 0; }
.form-msg.err { color: var(--red); }

.footer-bottom {
  border-top: 1px solid var(--line-soft);
  padding: 1.2rem 0 1.6rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.footer-bottom p { color: var(--muted-2); font-size: .78rem; margin: 0; }

/* ================= نافذة الخدمة ================= */
.modal, .drawer { position: fixed; inset: 0; z-index: 90; }
.modal[hidden], .drawer[hidden] { display: none; }
.modal-overlay, .drawer-overlay {
  position: absolute; inset: 0; background: rgba(5, 4, 3, .7); backdrop-filter: blur(3px);
  animation: fadeIn .2s ease;
}
.modal-card {
  position: relative; z-index: 1;
  width: min(560px, 92vw); max-height: 88vh; overflow-y: auto;
  margin: 6vh auto; background: var(--panel);
  border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow); animation: popIn .22s ease;
}
.modal-close { position: absolute; top: .9rem; inset-inline-end: .9rem; z-index: 2; }
.modal-body { padding: 1.8rem; }
.modal-art {
  height: 150px; display: grid; place-items: center; border-radius: 14px; margin-bottom: 1.2rem;
  background:
    radial-gradient(circle at 30% 20%, rgba(232, 200, 122, .18), transparent 60%),
    linear-gradient(160deg, #241d16, #14100d);
  border: 1px solid var(--line-soft);
}
.modal-art .ico { width: 60px; height: 60px; color: var(--gold); stroke-width: 1.2; }
.modal-body h3 { font-size: 1.35rem; }
.modal-cat { color: var(--gold); font-size: .8rem; font-weight: 700; margin-bottom: .3rem; }
.modal-desc { color: var(--muted); font-size: .92rem; }
.modal-list { margin: 1rem 0 1.4rem; display: flex; flex-direction: column; gap: .45rem; }
.modal-list li { display: flex; align-items: flex-start; gap: .5rem; color: var(--muted); font-size: .88rem; }
.modal-list .ico { width: 17px; height: 17px; color: var(--green); margin-top: .2rem; }
.modal-price-row {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  border-top: 1px solid var(--line-soft); padding-top: 1rem; margin-bottom: 1rem;
}
.modal-price-row .price { font-size: 1.5rem; }
.modal-price-row .dur { color: var(--muted-2); font-size: .85rem; display: flex; align-items: center; gap: .3rem; }
.modal-price-row .dur .ico { width: 15px; height: 15px; }

/* ================= سلة الحجز ================= */
.drawer-panel {
  position: absolute; top: 0; bottom: 0; inset-inline-start: 0;
  width: min(460px, 100vw);
  display: flex; flex-direction: column;
  background: var(--bg-2); border-inline-end: 1px solid var(--line);
  box-shadow: var(--shadow);
  animation: slideIn .26s ease;
}
@keyframes slideIn { from { transform: translateX(-100%); } to { transform: translateX(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }

.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 1.3rem; border-bottom: 1px solid var(--line-soft);
}
.drawer-head h2 { margin: 0; font-size: 1.15rem; }
.drawer-body { flex: 1; overflow-y: auto; padding: 1.2rem 1.3rem 2rem; }

.booking-empty { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.booking-empty .ico { width: 44px; height: 44px; margin: 0 auto .8rem; color: var(--muted-2); }
.booking-empty h3 { color: var(--text); font-size: 1.05rem; }
.booking-empty p { font-size: .88rem; }

.booking-items { display: flex; flex-direction: column; gap: .7rem; margin-bottom: 1.2rem; }
.booking-item {
  display: flex; gap: .7rem; align-items: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: .7rem .8rem;
}
.bi-art {
  width: 44px; height: 44px; border-radius: 10px; flex: none;
  display: grid; place-items: center; background: rgba(232, 200, 122, .1); color: var(--gold);
}
.bi-art .ico { width: 22px; height: 22px; }
.bi-main { flex: 1; min-width: 0; }
.bi-main strong { display: block; font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bi-main small { color: var(--muted-2); font-size: .76rem; }
.bi-price { color: var(--gold); font-weight: 800; font-size: .88rem; white-space: nowrap; }
.qty { display: inline-flex; align-items: center; gap: .3rem; }
.qty button {
  width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  background: var(--panel-2); border: 1px solid var(--line); color: var(--text);
}
.qty button:hover { border-color: var(--gold); color: var(--gold); }
.qty button .ico { width: 14px; height: 14px; }
.qty span { min-width: 18px; text-align: center; font-size: .85rem; font-weight: 700; }
.bi-remove { background: none; border: 0; color: var(--muted-2); padding: .2rem; }
.bi-remove:hover { color: var(--red); }
.bi-remove .ico { width: 16px; height: 16px; }

.booking-summary { border-top: 1px solid var(--line-soft); padding-top: .9rem; margin-bottom: 1.4rem; }
.sum-row { display: flex; justify-content: space-between; font-size: .88rem; color: var(--muted); padding: .25rem 0; }
.sum-row.total { color: var(--text); font-size: 1.05rem; font-weight: 800; border-top: 1px dashed var(--line); margin-top: .5rem; padding-top: .7rem; }
.sum-row.total strong { color: var(--gold); }

.booking-form h3 { font-size: 1rem; margin-bottom: 1rem; }
.field { margin-bottom: .9rem; display: flex; flex-direction: column; gap: .35rem; }
.field label { font-size: .82rem; color: var(--muted); font-weight: 600; }
.field input, .field select {
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  padding: .65rem .8rem; color: var(--text); outline: none; font-size: .9rem; width: 100%;
  transition: border-color .2s ease;
}
.field input:focus, .field select:focus { border-color: var(--gold); }
.field input::placeholder { color: var(--muted-2); }
.field select option { background: var(--panel); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.field-error { color: var(--red); font-size: .75rem; min-height: 1em; }
.field input.is-invalid { border-color: var(--red); }

.time-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; max-height: 172px; overflow-y: auto; padding-inline-end: 2px; }
.time-slot {
  background: var(--panel); border: 1px solid var(--line); color: var(--muted);
  border-radius: 9px; padding: .45rem .2rem; font-size: .8rem; font-weight: 600;
  transition: all .15s ease;
}
.time-slot:hover:not(:disabled) { border-color: var(--gold-deep); color: var(--text); }
.time-slot.is-selected { background: var(--gold); border-color: var(--gold); color: #241a06; }
.time-slot:disabled { opacity: .35; cursor: not-allowed; text-decoration: line-through; }

.pay-note {
  display: flex; gap: .6rem; align-items: flex-start;
  background: rgba(232, 200, 122, .07); border: 1px solid rgba(232, 200, 122, .2);
  border-radius: 10px; padding: .7rem .8rem; margin: 1rem 0;
}
.pay-note .ico { width: 18px; height: 18px; color: var(--gold); margin-top: .15rem; }
.pay-note p { margin: 0; font-size: .8rem; color: var(--muted); }
.drawer-note { text-align: center; color: var(--muted-2); font-size: .76rem; margin: .6rem 0 0; }

/* ================= التوست ================= */
.toast {
  position: fixed; bottom: 1.4rem; inset-inline-start: 50%; transform: translateX(-50%);
  z-index: 120; display: flex; align-items: center; gap: .5rem;
  background: var(--panel-2); border: 1px solid rgba(232, 200, 122, .4);
  color: var(--text); padding: .7rem 1.1rem; border-radius: 999px;
  box-shadow: var(--shadow); font-size: .88rem; font-weight: 600;
  animation: toastIn .25s ease;
}
.toast[hidden] { display: none; }
.toast .ico { width: 18px; height: 18px; color: var(--green); }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ================= استجابة الشاشات ================= */
@media (max-width: 1000px) {
  .main-nav { display: none; }
  .menu-btn { display: inline-flex; }
  .mobile-nav.is-open { display: flex; }
  .hero-inner { grid-template-columns: 1fr; gap: 2.4rem; }
  .hero-visual { max-width: 460px; margin-inline: auto; width: 100%; }
  .fc-1 { inset-inline-start: 0; }
  .fc-2 { inset-inline-end: 0; }
  .trust-inner { grid-template-columns: repeat(2, 1fr); }
  .offer-banner { grid-template-columns: 1fr; padding: 1.8rem; }
  .offer-art { display: none; }
  .info-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  :root { --header-h: 66px; }
  .header-cta { display: none; }
  .hero { padding: 2.6rem 0 2.4rem; }
  .hero-stats { gap: 1.4rem; }
  .hero-stats strong { font-size: 1.25rem; }
  .section { padding: 3rem 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .section-tools { width: 100%; }
  .search-field { flex: 1; }
  .search-field input { width: 100%; }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
  .card-art { height: 112px; }
  .card-art > .ico { width: 40px; height: 40px; }
  .card-body { padding: .8rem .75rem .9rem; }
  .card-title { font-size: .9rem; }
  .card-desc { font-size: .78rem; -webkit-line-clamp: 2; }
  .card-foot { flex-direction: column; align-items: stretch; gap: .45rem; }
  .price { font-size: 1rem; }
  .add-btn { font-size: .8rem; padding: .5rem .5rem; }
  .barbers-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .barber-avatar { width: 74px; height: 74px; font-size: 1.5rem; }
  .reviews-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .footer-bottom { flex-direction: column; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .time-grid { grid-template-columns: repeat(3, 1fr); }
  .field-row { grid-template-columns: 1fr; }
  .info-card { padding: 1.4rem; }
  .float-card { display: none; }
  .drawer-panel { width: 100vw; }
}

@media (max-width: 380px) {
  .services-grid { grid-template-columns: 1fr; }
  .barbers-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}



/* صور الخدمات */
.card-art, .modal-art { position: relative; overflow: hidden; }
.card-img, .modal-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.card-art::after, .modal-art::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(0,0,0,.45), transparent 60%); pointer-events: none; }
.card-badges, .fav-btn { z-index: 3; }
.modal-art { min-height: 180px; }


/* ================= اختيار الحلاقة داخل الحجز ================= */
.picker-block { margin-bottom: 1.1rem; }
.picker-title { font-size: 1rem; margin: 0 0 .2rem; }
.picker-hint { color: var(--muted-2); font-size: .78rem; margin: 0 0 .7rem; }
.service-picker {
  display: flex; flex-direction: column; gap: .45rem;
  max-height: 290px; overflow-y: auto; padding-inline-end: 3px;
}
.pick {
  display: flex; align-items: center; gap: .6rem; width: 100%; text-align: start;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: .45rem .6rem; color: var(--text); cursor: pointer; font-family: inherit;
  transition: border-color .15s ease, background .15s ease;
}
.pick:hover { border-color: var(--gold-deep); }
.pick.is-on { border-color: var(--gold); background: rgba(232, 200, 122, .08); }
.pick-thumb {
  position: relative; width: 46px; height: 46px; flex: none; border-radius: 10px; overflow: hidden;
  display: grid; place-items: center; color: var(--gold);
  background: linear-gradient(160deg, #241d16, #14100d); border: 1px solid var(--line-soft);
}
.pick-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pick-thumb .ico { width: 22px; height: 22px; }
.pick-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pick-main strong { font-size: .86rem; font-weight: 700; }
.pick-main small { color: var(--muted-2); font-size: .74rem; }
.pick-mark {
  width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--muted); background: var(--panel-2);
}
.pick.is-on .pick-mark { background: var(--gold); border-color: var(--gold); color: #241a06; }
.pick-mark .ico { width: 14px; height: 14px; }
.ver { color: var(--muted-2); font-size: .7rem; opacity: .65; }
.slots-empty { grid-column: 1 / -1; color: var(--muted-2); font-size: .82rem; padding: .6rem 0; text-align: center; }
.nojs { color: var(--muted); text-align: center; padding: 1rem; font-size: .9rem; }
