/* ============ رونق · التصميم الأنيق المينيمال ============ */
/* التخطيط: أبيض واسع، صور كبيرة، خطوط رفيعة، والمنتج هو البطل */
:root {
  --primary: #b2084c;       /* فوشي الشعار */
  --primary-dark: #8c063c;
  --gold: #f68914;          /* برتقالي الشعار */
  --gold-dark: #b8600a;
  --ink: #2a1a20;
  --text: #2a1a20;
  --muted: #8a7a80;
  --line: #eee4e8;
  --bg: #ffffff;
  --soft: #f8f3ef;          /* خلفية الصور */
  --shadow: 0 10px 30px rgba(42, 26, 32, .08);
  --font: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --font-head: var(--font);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
h1, h2, h3 { font-weight: 600; text-wrap: balance; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } }

/* أزرار عامة (النوافذ والسلة) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border: 1px solid transparent; cursor: pointer; padding: .8rem 1.6rem; border-radius: 2px; font-weight: 500; transition: background .2s, color .2s, border-color .2s; }
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: var(--primary); }
.btn--ghost { background: transparent; border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--block { width: 100%; }
.btn--link { background: none; color: var(--muted); padding: .4rem; width: 100%; }
.icon-btn { background: var(--soft); border: 0; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; }
.btn-line { display: inline-flex; border: 1px solid var(--ink); padding: .75rem 1.9rem; font-size: .9rem; font-weight: 500; color: var(--ink); transition: background .25s, color .25s; }
.btn-line:hover { background: var(--ink); color: #fff; }

/* الشريط العلوي */
.header { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header__in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 78px; }
.nav { display: flex; align-items: center; gap: 1.8rem; font-size: .9rem; }
.nav--end { justify-content: flex-end; }
.nav a { position: relative; color: var(--text); padding-block: .3rem; }
.nav a::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px; background: var(--primary); transform: scaleX(0); transition: transform .25s; }
.nav a:hover::after { transform: scaleX(1); }
.logo__img { height: 52px; width: auto; }
.cart-btn { position: relative; background: none; border: 0; color: var(--ink); cursor: pointer; display: grid; place-items: center; width: 36px; height: 36px; }
.cart-btn__count { position: absolute; top: -2px; left: -4px; background: var(--primary); color: #fff; min-width: 18px; height: 18px; border-radius: 9px; font-size: .68rem; display: grid; place-items: center; padding-inline: 4px; }
.cart-btn.bump { animation: bump .35s; }
@keyframes bump { 50% { transform: scale(1.15); } }

/* الواجهة */
.hero { padding-top: 1.25rem; }
.hero__frame { position: relative; min-height: clamp(440px, 64vh, 620px); background: linear-gradient(160deg, #f5ebe3, #ead8cc); overflow: hidden; display: flex; align-items: flex-end; border-radius: 2px; }
.hero__mark { position: absolute; left: 7%; top: 50%; transform: translateY(-50%); width: clamp(220px, 34vw, 470px); height: auto; filter: drop-shadow(0 20px 40px rgba(178, 8, 76, .15)); }
.hero__text { position: relative; padding: clamp(1.75rem, 5vw, 4rem); max-width: 600px; animation: fadeUp .6s both; }
.eyebrow { font-size: .8rem; letter-spacing: .06em; color: var(--muted); margin-bottom: .8rem; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.7rem); font-weight: 700; line-height: 1.2; color: var(--ink); }
.hero__desc { color: #5c4b52; margin: 1rem 0 1.8rem; max-width: 42ch; }

/* شريط المميزات */
.strip { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: .6rem 1.3rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.strip i { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }

/* الأقسام */
.section { padding-block: clamp(3rem, 6vw, 5rem); }
.title { font-size: clamp(1.35rem, 2.6vw, 1.75rem); font-weight: 600; color: var(--ink); }
.title::after { content: ""; display: block; width: 34px; height: 2px; background: var(--gold); margin-top: .7rem; }
.center .title::after, .band .title::after { margin-inline: auto; }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.tools { display: flex; gap: .5rem; flex-wrap: wrap; }
.search { background: #fff; border: 1px solid var(--line); border-radius: 2px; padding: .55rem 1rem; min-width: 220px; outline: none; font-size: .88rem; }
.search:focus { border-color: var(--ink); }
.sort { min-width: 0; cursor: pointer; }

/* التصنيفات الدائرية */
.cats { display: flex; justify-content: center; flex-wrap: wrap; gap: clamp(1rem, 4vw, 2.75rem); margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.cat { background: none; border: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: .55rem; font-size: .85rem; color: var(--text); }
.cat__dot { width: clamp(66px, 9vw, 96px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font-size: clamp(1.6rem, 3vw, 2.2rem); outline: 1px solid transparent; outline-offset: 4px; transition: outline-color .25s, transform .25s; }
.cat__dot img { width: 62%; }
.cat:hover .cat__dot { transform: translateY(-3px); }
.cat.active .cat__dot { outline-color: var(--primary); }
.cat.active span:last-child { color: var(--primary); font-weight: 600; }

/* المنتجات */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.6rem 1.5rem; }
.card { cursor: pointer; display: flex; flex-direction: column; animation: fadeUp .45s both; }
.card:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; }
.card__media { position: relative; aspect-ratio: 4 / 5; background: var(--soft); display: grid; place-items: center; font-size: 4rem; overflow: hidden; transition: background .3s; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card__media { background: #f2e9e3; }
.card:hover .card__media img { transform: scale(1.04); }
.card__badge { position: absolute; top: 10px; right: 10px; background: #fff; color: var(--ink); font-size: .7rem; font-weight: 500; padding: .2rem .65rem; letter-spacing: .02em; }
.card__badge--hot { color: var(--primary); }
.card__badge--out { color: var(--muted); }
.card__body { padding-top: .9rem; display: flex; flex-direction: column; gap: .2rem; }
.card__cat { font-size: .75rem; color: var(--gold-dark); letter-spacing: .03em; }
.grid .card__cat, .card__desc { display: none; }
.card h3 { font-size: .95rem; font-weight: 500; color: var(--ink); }
.card__foot { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.price { font-weight: 600; color: var(--primary); font-size: .95rem; }
.price s { color: var(--muted); font-weight: 400; font-size: .8rem; margin-inline-start: .4rem; }
.ask { background: none; border: 0; padding: 0 0 1px; color: var(--ink); font-size: .8rem; border-bottom: 1px solid currentColor; cursor: pointer; transition: color .2s; }
.ask:hover { color: var(--primary); }
.add { background: var(--ink); color: #fff; border: 0; width: 34px; height: 34px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; }
.add:hover { background: var(--primary); }
.add:disabled { background: var(--line); cursor: not-allowed; }
.empty { text-align: center; color: var(--muted); padding: 2rem; }

/* كيف تطلب */
.band { background: var(--soft); padding-block: clamp(3rem, 6vw, 4.5rem); text-align: center; }
.flow { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; max-width: 820px; margin: 2.2rem auto 1.8rem; }
.flow li { counter-increment: s; display: flex; flex-direction: column; gap: .25rem; }
.flow li::before { content: "0" counter(s); font-size: .8rem; color: var(--gold-dark); letter-spacing: .1em; }
.flow b { font-size: 1.1rem; font-weight: 600; color: var(--ink); }
.flow span { font-size: .88rem; color: var(--muted); }
.areas { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 1rem; }
.areas li { display: flex; gap: .5rem; background: #fff; border: 1px solid var(--line); padding: .35rem .9rem; font-size: .8rem; }
.areas li b { color: var(--primary); font-weight: 500; }

/* التواصل */
.socials { display: flex; justify-content: center; gap: .75rem; flex-wrap: wrap; margin-top: 1.6rem; }
.social { display: flex; align-items: center; gap: .6rem; border: 1px solid var(--line); padding: .7rem 1.4rem; font-weight: 500; font-size: .9rem; color: var(--ink); transition: border-color .2s; }
.social:hover { border-color: var(--ink); }
.social svg { width: 18px; height: 18px; }
.social--ig svg { fill: #e1306c; }
.social--fb svg { fill: #1877f2; }
.social--tt svg { fill: #111; }
.social.pending { opacity: .45; }
.phone-line { margin-top: 1.2rem; font-weight: 600; direction: ltr; }

.footer { border-top: 1px solid var(--line); padding: 1.6rem 0; font-size: .8rem; color: var(--muted); }
.footer__in { display: flex; justify-content: center; align-items: center; gap: .6rem; flex-wrap: wrap; }

/* السلة */
.overlay { position: fixed; inset: 0; background: rgba(94, 11, 44, .35); z-index: 40; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.drawer { position: fixed; top: 0; bottom: 0; left: 0; width: min(420px, 100%); background: var(--bg); z-index: 50; display: flex; flex-direction: column; transform: translateX(-105%); transition: transform .3s cubic-bezier(.4, 0, .2, 1); box-shadow: 0 0 40px rgba(0, 0, 0, .15); }
.drawer.open { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--line); }
.drawer__body { flex: 1; overflow-y: auto; padding: 1rem 1.25rem; }
.drawer__foot { padding: 1rem 1.25rem 1.25rem; border-top: 1px solid var(--line); background: #fff; display: grid; gap: .5rem; }
.row { display: flex; justify-content: space-between; }
.row--total { font-size: 1.15rem; padding-top: .4rem; border-top: 1px dashed var(--line); }

.cart-list { list-style: none; display: grid; gap: .75rem; }
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: .8rem; align-items: center; background: #fff; padding: .6rem; border-radius: 14px; }
.cart-item__img { width: 64px; height: 64px; border-radius: 2px; background: var(--soft); display: grid; place-items: center; font-size: 2rem; overflow: hidden; }
.cart-item__img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__name { font-weight: 700; font-size: .95rem; }
.cart-item__price { color: var(--muted); font-size: .85rem; }
.qty { display: flex; align-items: center; gap: .4rem; background: var(--bg); border-radius: 999px; padding: .2rem; }
.qty button { width: 28px; height: 28px; border-radius: 50%; border: 0; background: #fff; cursor: pointer; font-weight: 700; }
.qty span { min-width: 18px; text-align: center; font-weight: 700; }
.cart-empty { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.cart-empty div { font-size: 3.5rem; }
.cart-empty p { margin-block: .5rem 1.2rem; }

.checkout { display: grid; gap: .9rem; align-content: start; }
.checkout label { display: grid; gap: .3rem; font-weight: 500; font-size: .92rem; }
.checkout input, .checkout select, .checkout textarea { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .7rem .9rem; outline: none; transition: border .2s; width: 100%; }
.checkout input:focus, .checkout select:focus, .checkout textarea:focus { border-color: var(--primary); }
.check { display: flex !important; align-items: center; gap: .6rem !important; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .7rem .9rem; cursor: pointer; }
.check input { width: 18px !important; height: 18px; accent-color: var(--primary); }
.checkout .invalid { border-color: #e05d5d; background: #fff6f6; }

/* نوافذ وتنبيهات */
.modal { position: fixed; inset: 0; background: rgba(94, 11, 44, .45); z-index: 60; display: grid; place-items: center; padding: 1rem; animation: fade .2s; }
.modal__card { background: #fff; border-radius: 24px; padding: 2rem; text-align: center; max-width: 380px; animation: fadeUp .3s; }
.modal__icon { font-size: 3.5rem; }
.modal__card p { color: var(--muted); margin: .5rem 0 1.3rem; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 120px); background: var(--text); color: #fff; padding: .7rem 1.4rem; border-radius: 999px; z-index: 70; transition: transform .3s; font-weight: 500; white-space: nowrap; }
.toast.show { transform: translate(-50%, 0); }
.wa-float { position: fixed; bottom: 20px; right: 20px; width: 56px; height: 56px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(37, 211, 102, .4); z-index: 20; }

/* صفحة المنتج */
.pmodal { position: fixed; inset: 0; background: rgba(58, 20, 36, .45); z-index: 60; display: grid; place-items: center; padding: 1rem; animation: fade .2s; }
.pmodal__card { position: relative; background: #fff; border-radius: 6px; width: min(900px, 100%); max-height: calc(100vh - 2rem); overflow: auto; display: grid; grid-template-columns: 1fr 1fr; animation: fadeUp .3s; }
.pm__close { position: absolute; top: 12px; left: 12px; z-index: 2; background: #fff; box-shadow: var(--shadow); }
.pm__gallery { background: var(--soft); padding: 1rem; display: flex; flex-direction: column; gap: .6rem; }
.pm__media { aspect-ratio: 1; display: grid; place-items: center; font-size: 7rem; border-radius: 2px; overflow: hidden; }
.pm__media img { width: 100%; height: 100%; object-fit: cover; }
.pm__thumbs { display: flex; gap: .5rem; flex-wrap: wrap; }
.pm__thumbs button { width: 60px; height: 60px; padding: 0; border-radius: 10px; overflow: hidden; border: 2px solid transparent; background: none; cursor: pointer; }
.pm__thumbs button.on { border-color: var(--primary); }
.pm__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pm__body { padding: 2rem 1.75rem 1.75rem; display: flex; flex-direction: column; gap: .7rem; }
.pm__body h2 { margin: 0; }
.pm__price { font-size: 1.4rem; font-weight: 600; color: var(--primary); }
.pm__price s { color: var(--muted); font-weight: 400; font-size: .95rem; margin-inline-start: .4rem; }
.pm__desc { color: var(--muted); }
#pmOpts { display: grid; gap: 1rem; }
.pm__opt > span { display: block; font-weight: 700; font-size: .9rem; margin-bottom: .35rem; }
.pm__opt > div { display: flex; gap: .4rem; flex-wrap: wrap; }
.pm__opt button { background: #fff; border: 1px solid var(--line); border-radius: 2px; padding: .35rem 1rem; cursor: pointer; font-weight: 500; transition: all .2s; }
.pm__opt button:hover { border-color: var(--primary); }
.pm__opt button.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.pm__actions { display: flex; gap: .5rem; margin-top: auto; padding-top: .75rem; }
.pm__actions .btn--primary { flex: 1; }
.pm__share { padding-inline: 1.1rem; }

/* الموبايل */
@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .nav--start { visibility: hidden; }
  .nav--end a { display: none; }
  .logo__img { height: 44px; }
  .header__in { height: 66px; }
  .hero { padding-top: .75rem; }
  .hero__frame { min-height: 560px; }
  .hero__mark { top: 5%; left: 50%; transform: translateX(-50%); width: 46%; }
  .cats { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; gap: 1.1rem; padding: 6px 4px 8px; margin-inline: -4px; scrollbar-width: none; }
  .cats::-webkit-scrollbar { display: none; }
  .cat { flex: none; font-size: .8rem; }
  .cat__dot { width: 62px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 1.9rem 1rem; }
  .flow { grid-template-columns: 1fr; gap: 1.1rem; }
  .search { min-width: 0; flex: 1; }
  .tools { width: 100%; }
}
@media (max-width: 700px) {
  .pmodal { place-items: end center; padding: 0; }
  .pmodal__card { grid-template-columns: 1fr; border-radius: 10px 10px 0 0; max-height: 92vh; }
  .pm__media { font-size: 5rem; aspect-ratio: 4 / 3; }
  .pm__body { padding: 1.25rem 1.25rem 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
