/* Outlet by Yasma — واجهة العرض */
:root {
  --pink: #e7739f;
  --rose: #c64a7d;
  --blush: #fde8f0;
  --cream: #fff8fa;
  --gold: #d4a63c;
  --ink: #2b1d24;
  --muted: #7d6570;
  --line: #f3d6e2;
  --wa: #1fae55;
  --wa-dark: #128c4b;
  --radius: 18px;
  --shadow: 0 6px 24px rgba(198, 74, 125, .12);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.vw-lock, html.vw-lock body { overflow: hidden; }
body {
  margin: 0;
  font-family: 'Tajawal', system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }

/* ---------- الهيدر ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 248, 250, .94);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.top-in { display: flex; align-items: center; gap: 12px; padding-top: 8px; padding-bottom: 6px; }
.brand { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.crown { width: 34px; height: 22px; }
.brand-txt { display: flex; flex-direction: column; line-height: 1; direction: ltr; }
.brand-name { font-family: 'Great Vibes', cursive; font-size: 28px; color: var(--pink); }
.brand-sub { font-size: 11px; color: var(--muted); letter-spacing: .5px; padding-inline-start: 18px; }
.search { flex: 1; min-width: 0; }
.search input {
  width: 100%; border: 1px solid var(--line); background: #fff;
  border-radius: 999px; padding: 9px 16px; font: inherit; font-size: 15px; color: var(--ink);
}
.search input:focus { outline: 2px solid var(--pink); outline-offset: 1px; }

.cats { border-top: 1px solid var(--line); }
.cats-in {
  display: flex; gap: 8px; overflow-x: auto; padding-top: 8px; padding-bottom: 8px;
  scrollbar-width: none;
}
.cats-in::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; padding: 6px 14px; border-radius: 999px; background: #fff;
  border: 1px solid var(--line); font-weight: 700; font-size: 14px; white-space: nowrap;
  transition: background .15s, color .15s;
}
.chip small { color: var(--muted); font-weight: 500; margin-inline-start: 2px; }
.chip:hover { border-color: var(--pink); }
.chip.on { background: var(--pink); border-color: var(--pink); color: #fff; }
.chip.on small { color: #ffe3ee; }

/* ---------- الأزرار ---------- */
.btn-wa, .btn-browse {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; padding: 9px 16px; font-weight: 800; white-space: nowrap; border: 0;
  transition: transform .12s, box-shadow .12s;
}
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 4px 14px rgba(31, 174, 85, .3); }
.btn-wa:hover { background: var(--wa-dark); }
.btn-browse { background: var(--ink); color: #fff; }
.btn-browse:hover { background: var(--rose); }
.btn-wa:active, .btn-browse:active { transform: scale(.97); }
.lg { padding: 13px 22px; font-size: 17px; }
.btn-wa.sm { padding: 8px 12px; font-size: 14px; }

/* ---------- الواجهة ---------- */
.hero { background: linear-gradient(160deg, #fff 0%, var(--blush) 100%); border-bottom: 1px solid var(--line); }
.hero-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center; padding-top: 36px; padding-bottom: 36px; }
.eyebrow { display: inline-block; background: #fff; border: 1px solid var(--line); color: var(--rose); padding: 4px 12px; border-radius: 999px; font-weight: 700; font-size: 14px; }
.hero h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.15; margin: 14px 0 10px; font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--rose); }
.hero p { font-size: 18px; color: var(--muted); margin: 0 0 18px; max-width: 34em; }
.steps { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 6px 12px 6px 14px; font-weight: 700; font-size: 15px; }
.steps b { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--pink); color: #fff; margin-inline-end: 6px; font-size: 13px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 10px; }
/* اللوغو: هالة وردية دائرية وراه بدل الورقة البيضاء */
.hero-img { position: relative; display: grid; place-items: center; isolation: isolate; padding: 30px 0; }
.hero-img::before,
.hero-img::after { content: ''; position: absolute; left: 50%; top: 50%; border-radius: 50%; z-index: -1; transform: translate(-50%, -50%); }
.hero-img::before {
  width: 480px; height: 480px;
  background: radial-gradient(circle, #fff 0%, #fbd3e3 48%, rgba(251, 211, 227, .45) 64%, rgba(251, 211, 227, 0) 72%);
}
.hero-img::after {
  width: 416px; height: 416px;
  border: 2px dashed rgba(212, 166, 60, .55);
  animation: ring-spin 40s linear infinite;
}
.hero-img picture { display: block; }
.hero-img img {
  margin: 0 auto; max-height: 390px; width: auto;
  filter: drop-shadow(0 14px 26px rgba(198, 74, 125, .28));
  animation: logo-float 6s ease-in-out infinite;
}
@keyframes ring-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes logo-float { 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .hero-img::after, .hero-img img { animation: none; } }

.sec { padding-top: 28px; padding-bottom: 8px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sec-head h1, .sec-head h2 { margin: 0; font-size: 26px; font-weight: 800; }
.sec-head h2::before { content: '♥'; color: var(--pink); font-size: 18px; margin-inline-end: 8px; }
.more { color: var(--rose); font-weight: 700; white-space: nowrap; }
.hint-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: -6px 0 16px; }
.hint { margin: 0; color: var(--muted); }
.empty { background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); padding: 40px 20px; text-align: center; color: var(--muted); }
.empty a { color: var(--rose); font-weight: 700; }

/* ---------- الأقسام: كروت "بتحكي" (cat_card بـ layout.php) ---------- */
.sec-sub { display: block; font-size: 15px; font-weight: 700; color: var(--rose); margin-top: 2px; }
.sec-head h2 .sec-sub::before { content: none; }
/* عبارة الترحيب اللي بتتبدّل (app.js) */
.greet { transition: opacity .35s ease, transform .35s ease; }
.greet.greet-out { opacity: 0; transform: translateY(6px); }
@media (max-width: 520px) { .sec-sub.greet { min-height: 2.7em; line-height: 1.35; } }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
/* الإطار: تدرّج ملوّن بيلف حوالين الكرت */
.cat-card {
  position: relative; display: block; padding: 3px; border-radius: 24px; overflow: hidden; isolation: isolate;
  box-shadow: 0 10px 28px rgba(198, 74, 125, .18);
  transition: transform .4s var(--ease-back), box-shadow .4s;
}
.cat-card::before {
  content: ""; position: absolute; inset: -60%; z-index: -1;
  background: conic-gradient(from 0deg, var(--c1), var(--gold), var(--c2), #fff, var(--c1));
  animation: cat-spin 5s linear infinite;
}
.cat-card:hover { transform: translateY(-8px) scale(1.02); box-shadow: 0 22px 44px rgba(198, 74, 125, .3); }
.cat-card:hover::before { animation-duration: 1.4s; }
@keyframes cat-spin { to { transform: rotate(360deg); } }

.cat-in { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: 21px; overflow: hidden; background: var(--blush); }
/* الصور بتتبدّل (app.js) مع زووم بطيء */
.cat-ph { position: absolute; inset: 0; display: block; }
.cat-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .9s ease, transform .6s var(--ease-out), filter .6s ease; }
.cat-ph img.on { opacity: 1; animation: cat-kb 6s ease-out both; }
@keyframes cat-kb { from { transform: scale(1.12); } to { transform: scale(1); } }
.cat-card:hover .cat-ph img.on { animation-play-state: paused; }

/* فقاعة الكلام */
.cat-bubble {
  position: absolute; top: 12px; inset-inline-start: 12px; z-index: 2; max-width: calc(100% - 24px);
  background: #fff; color: var(--ink); font-weight: 800; font-size: 13.5px; line-height: 1.3;
  padding: 7px 12px; border-radius: 16px 16px 16px 4px;
  box-shadow: 0 8px 20px rgba(43, 29, 36, .18);
  transform-origin: 0 100%;
}
[dir="rtl"] .cat-bubble { border-radius: 16px 16px 4px 16px; transform-origin: 100% 100%; }
.cat-bubble::after { /* ذيل الفقاعة */
  content: ""; position: absolute; bottom: -6px; inset-inline-start: 10px;
  border: 7px solid transparent; border-top-color: #fff; border-bottom: 0;
}
.cat-bubble.say { animation: cat-say .55s var(--ease-back); }
@keyframes cat-say { 0% { opacity: 0; transform: scale(.4) rotate(-8deg); } 100% { opacity: 1; transform: none; } }

/* ستيكر "جديد" */
.cat-new {
  position: absolute; top: 10px; inset-inline-end: 10px; z-index: 2;
  width: 52px; height: 52px; display: grid; place-items: center;
  color: var(--ink); font-weight: 800; font-size: 13px;
  background: radial-gradient(circle, #ffe08a 0 58%, var(--gold) 60%);
  border-radius: 50%; box-shadow: 0 6px 16px rgba(212, 166, 60, .5);
  animation: cat-sticker 2.4s ease-in-out infinite;
}
.cat-new::before { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px dashed var(--gold); animation: cat-spin 6s linear infinite; }
@keyframes cat-sticker { 0%, 100% { transform: rotate(-10deg) scale(1); } 50% { transform: rotate(8deg) scale(1.1); } }

/* الاسم والزر تحت */
.cat-body {
  position: absolute; inset-inline: 0; bottom: 0; z-index: 2; display: flex; flex-direction: column; gap: 8px;
  padding: 40px 14px 14px; color: #fff;
  background: linear-gradient(180deg, transparent, rgba(43, 29, 36, .55) 40%, rgba(43, 29, 36, .88));
}
.cat-title { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; line-height: 1.15; }
.cat-title b { font-size: 22px; font-weight: 800; text-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
.cat-title small { font-size: 11px; font-weight: 700; letter-spacing: 1px; opacity: .8; white-space: nowrap; }
.cat-go {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  background: linear-gradient(135deg, var(--c1), var(--c2)); color: #fff;
  font-weight: 800; font-size: 14px; padding: 8px 10px; border-radius: 999px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .25);
  animation: cat-call 2.2s ease-in-out infinite;
}
.cat-go::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .45) 50%, transparent 65%);
  transform: translateX(-120%); animation: shine 2.8s ease-in-out infinite;
}
.cat-go i { font-style: normal; display: inline-block; animation: cat-arrow 1.1s ease-in-out infinite; }
.cat-card:hover .cat-go { background: #fff; color: var(--rose); }
@keyframes cat-call { 0%, 100% { box-shadow: 0 6px 16px rgba(0, 0, 0, .25), 0 0 0 0 rgba(255, 255, 255, .55); } 50% { box-shadow: 0 6px 16px rgba(0, 0, 0, .25), 0 0 0 7px rgba(255, 255, 255, 0); } }
@keyframes cat-arrow { 50% { transform: translateX(-5px); } }

/* "بيعيط": كل شوي كرت بينط ليلفت النظر (app.js) */
.cat-in.nudge { animation: cat-nudge .9s var(--ease-back); }
@keyframes cat-nudge {
  0%, 100% { transform: none; }
  20% { transform: translateY(-10px) rotate(-2deg); }
  40% { transform: translateY(0) rotate(2deg); }
  60% { transform: translateY(-5px) rotate(-1deg); }
  80% { transform: translateY(0) rotate(.5deg); }
}

/* ---------- الكروت ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(198, 74, 125, .2); }
.ph { position: relative; display: block; aspect-ratio: 4 / 5; background: #fff; overflow: hidden; cursor: zoom-in; border-bottom: 1px solid var(--line); }
.ph img { width: 100%; height: 100%; object-fit: contain; padding: 6px; transition: transform .4s; }
.card:hover .ph img { transform: scale(1.04); }
.ph video { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.88); color: var(--rose); display: grid; place-items: center; font-size: 20px; padding-left: 4px; box-shadow: 0 4px 14px rgba(0,0,0,.2); }
.vw-slide video { max-width: 100%; max-height: 100%; border-radius: 12px; background: #000; }
.item-img video { width: 100%; max-height: 80vh; background: #000; display: block; }
.badge { position: absolute; top: 10px; inset-inline-start: 10px; background: var(--gold); color: #fff; font-weight: 800; font-size: 12px; padding: 3px 10px; border-radius: 999px; }
.badge.static { position: static; display: inline-block; margin-bottom: 8px; }
.price { position: absolute; bottom: 10px; inset-inline-end: 10px; background: #fff; color: var(--rose); font-weight: 800; padding: 3px 10px; border-radius: 999px; box-shadow: 0 2px 8px rgba(0,0,0,.12); direction: ltr; }
.info { padding: 10px; display: flex; flex-direction: column; gap: 8px; flex: 1; justify-content: flex-end; }
.meta { display: flex; flex-direction: column; line-height: 1.3; }
.cat { color: var(--rose); font-size: 12px; font-weight: 800; letter-spacing: .4px; }
.size { display: inline-block; align-self: flex-start; margin-top: 3px; background: var(--blush); color: var(--rose); font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 999px; }
.item-size { font-weight: 700; margin-bottom: 8px; }
.name { font-weight: 700; font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cta {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  background: #eafaf0; color: var(--wa-dark); border-radius: 12px; padding: 8px; font-weight: 800; font-size: 14px;
  transition: background .15s, color .15s;
}
.cta:hover { background: var(--wa); color: #fff; }

.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 28px 0 10px; }
.pager a { min-width: 40px; text-align: center; padding: 6px 10px; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-weight: 700; }
.pager a.on { background: var(--pink); color: #fff; border-color: var(--pink); }

/* ---------- صفحة القطعة ---------- */
.item { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: start; }
.item-img { display: block; border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.item-img img { width: 100%; max-height: 80vh; object-fit: contain; }
.item-info h1 { margin: 6px 0; font-size: 30px; }
.item-price { font-size: 26px; font-weight: 800; color: var(--rose); margin-bottom: 8px; direction: ltr; text-align: right; }

/* ---------- فيديو المحل ---------- */
.promo { display: grid; grid-template-columns: 380px 1fr; gap: 32px; align-items: center; background: linear-gradient(160deg, #fff, var(--blush)); border: 1px solid var(--line); border-radius: 24px; padding: 24px; }
/* الفيديو مربّع جوّا إطار 9:16 فيه شرائط سودا — منقصّها بإطار مربّع */
.promo-vid { position: relative; border-radius: 22px; overflow: hidden; background: #000; aspect-ratio: 1 / 1; box-shadow: 0 18px 40px rgba(198, 74, 125, .25); }
.promo-vid video { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.03); }
.promo-sound { position: absolute; bottom: 12px; left: 12px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); font-size: 18px; }
.promo-txt h2 { font-size: clamp(26px, 4vw, 38px); margin: 12px 0 8px; }
.promo-txt p { color: var(--muted); font-size: 17px; margin: 0 0 18px; max-width: 32em; }
@media (max-width: 800px) {
  .promo { grid-template-columns: 1fr; padding: 16px; gap: 16px; }
  .promo-vid { max-width: 340px; width: 100%; margin: 0 auto; }
}

/* ---------- الفوتر ---------- */
.foot { margin-top: 48px; background: #fff; border-top: 1px solid var(--line); padding: 28px 0 0; }
.foot-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot-in p { max-width: 460px; margin: 0; }
.foot .brand-name { font-size: 34px; direction: ltr; }
.copy { margin-top: 18px; padding-bottom: 18px; font-size: 13px; }
/* شريط الشركة المطوّرة — لحاله بأسفل الصفحة */
.powered { background: var(--ink); color: rgba(255, 255, 255, .65); font-size: 14px; text-align: center; padding: 13px 0; }
.powered b { color: #fff; font-weight: 600; }
.powered a { color: #fff; font-weight: 700; }
.powered a:hover { color: #ffb3cf; }

.fab {
  position: fixed; bottom: 18px; inset-inline-start: 18px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff;
  display: grid; place-items: center; box-shadow: 0 8px 24px rgba(31, 174, 85, .45);
  animation: pulse 2.4s infinite;
}
@keyframes pulse { 0%, 100% { box-shadow: 0 8px 24px rgba(31,174,85,.45), 0 0 0 0 rgba(31,174,85,.45); } 50% { box-shadow: 0 8px 24px rgba(31,174,85,.45), 0 0 0 12px rgba(31,174,85,0); } }

/* ---------- عارض الصور ---------- */
.vw { position: fixed; inset: 0; z-index: 100; background: #120c0f; color: #fff; display: none; flex-direction: column; }
.vw.open { display: flex; }
.vw-top { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.vw-close { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 18px; }
.vw-cats { flex: 1; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.vw-cats::-webkit-scrollbar { display: none; }
.vw-cats .chip { background: rgba(255,255,255,.1); border-color: transparent; color: #fff; font-size: 13px; }
.vw-cats .chip.on { background: var(--pink); }
.vw-count { flex: 0 0 auto; font-size: 13px; opacity: .7; direction: ltr; }
.vw-track { flex: 1; min-height: 0; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior: contain; }
.vw-track::-webkit-scrollbar { display: none; }
.vw-slide { position: relative; flex: 0 0 100%; height: 100%; scroll-snap-align: center; scroll-snap-stop: always; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; padding: 4px 12px; }
.vw-slide img, .vw-slide video { max-width: 100%; max-height: 100%; min-width: 0; min-height: 0; width: auto; height: auto; object-fit: contain; border-radius: 12px; }
.vw-slide .badge { top: 14px; inset-inline-start: auto; left: 20px; }
.vw-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 30px; line-height: 1; display: none; }
.vw-prev { left: 16px; }
.vw-next { right: 16px; }
.vw-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgba(0,0,0,.4)); }
.vw-meta { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.vw-meta .cat { color: #ffb3cf; }
.vw-meta .name { font-size: 16px; }
.vw-price { font-weight: 800; color: #ffd27a; direction: ltr; text-align: right; }
.vw-bottom .btn-wa { flex: 0 0 auto; }
.vw-hint { position: absolute; top: 45%; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,.6); padding: 10px 18px; border-radius: 999px; font-weight: 700; pointer-events: none; transition: opacity .6s; white-space: nowrap; }
.vw-hint.gone { opacity: 0; }
@media (hover: hover) and (min-width: 700px) { .vw-nav { display: block; } }

/* ---------- موبايل ---------- */
@media (max-width: 800px) {
  .hero-in, .item { grid-template-columns: 1fr; }
  .hero-in { padding-top: 22px; padding-bottom: 26px; gap: 10px; }
  .hero-img { order: -1; }
  .hero-img { padding: 16px 0; }
  .hero-img img { max-height: 210px; }
  .hero-img::before { width: 282px; height: 282px; }
  .hero-img::after { width: 236px; height: 236px; }
  .hero p { font-size: 16px; }
}
@media (max-width: 600px) {
  .top-in { flex-wrap: wrap; }
  .search { order: 3; flex-basis: 100%; }
  .btn-wa.sm { margin-inline-start: auto; }
  .brand-name { font-size: 24px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .info { padding: 8px; }
  .cta { font-size: 13px; padding: 7px 4px; }
  .sec-head h1, .sec-head h2 { font-size: 22px; }
  .vw-bottom { flex-direction: column; align-items: stretch; }
  .vw-bottom .btn-wa { width: 100%; }
  /* buttons share a row only when their text fits; otherwise each takes a full row (the text was getting cut) */
  .hero-btns > * { flex: 1 1 auto; justify-content: center; }

  /* slightly smaller text on phones */
  .hero h1 { font-size: 28px; }
  .hero p { font-size: 15px; }
  .eyebrow { font-size: 13px; }
  .steps li { font-size: 14px; padding: 5px 10px 5px 12px; }
  .steps b { width: 22px; height: 22px; font-size: 12px; }
  .lg { padding: 11px 18px; font-size: 15px; }
  .sec-head h1, .sec-head h2 { font-size: 20px; }
  .sec-sub { font-size: 14px; }
  .chip, .cats .chip { font-size: 13px; }
  .name { font-size: 14px; }
  .promo-txt h2 { font-size: 24px; }
  .promo-txt p { font-size: 15px; }
  .grp-txt strong { font-size: 20px; }
  .grp-txt span:last-child { font-size: 14px; }
  .grp-btn { font-size: 16px; padding: 12px 22px; }
  .about-seo h2 { font-size: 19px; }
  .cat-intro { font-size: 14px; }
}
/* ---------- غروب الواتساب ---------- */
.grp-bar {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 16px; text-align: center; font-weight: 700; font-size: 15px; color: #fff;
  background: linear-gradient(90deg, var(--wa-dark), var(--wa), #25d366, var(--wa), var(--wa-dark));
  background-size: 200% 100%; animation: grp-flow 6s linear infinite;
}
.grp-bar svg { flex: 0 0 auto; }
.grp-bar-go { background: #fff; color: var(--wa-dark); padding: 4px 14px; border-radius: 999px; font-weight: 800; font-size: 14px; white-space: nowrap; animation: grp-bounce 1.6s ease-in-out infinite; }
.grp-bar:hover .grp-bar-go { background: var(--blush); color: var(--rose); }

.grp-card {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; gap: 20px; padding: 24px 28px; border-radius: 24px; color: #fff;
  background: linear-gradient(135deg, #25d366 0%, var(--wa) 45%, var(--wa-dark) 100%);
  box-shadow: 0 14px 36px rgba(31, 174, 85, .35);
  transition: transform .15s, box-shadow .15s;
}
.grp-card:hover { transform: translateY(-3px); box-shadow: 0 20px 44px rgba(31, 174, 85, .45); }
.grp-card::before { /* لمعة بتمرق على البطاقة */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.28) 50%, transparent 65%);
  transform: translateX(100%); animation: grp-shine 3.2s ease-in-out infinite;
}
.grp-card::after { /* دوائر زينة */
  content: ""; position: absolute; z-index: -1; width: 220px; height: 220px; border-radius: 50%;
  inset-inline-end: -60px; top: -80px; background: rgba(255,255,255,.1); box-shadow: -120px 160px 0 -40px rgba(255,255,255,.07);
}
.grp-ico { flex: 0 0 auto; width: 76px; height: 76px; border-radius: 50%; background: #fff; color: var(--wa); display: grid; place-items: center; animation: pulse-w 2.2s infinite; }
.grp-txt { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.grp-tag { align-self: flex-start; background: var(--gold); color: var(--ink); font-size: 13px; font-weight: 800; padding: 3px 12px; border-radius: 999px; }
.grp-txt strong { font-size: clamp(22px, 3.4vw, 32px); line-height: 1.25; font-weight: 800; }
.grp-txt span:last-child { font-size: 16px; opacity: .95; }
.grp-btn { flex: 0 0 auto; background: #fff; color: var(--wa-dark); font-weight: 800; font-size: 18px; padding: 14px 26px; border-radius: 999px; box-shadow: 0 6px 18px rgba(0,0,0,.15); animation: grp-bounce 1.6s ease-in-out infinite; }
.grp-card:hover .grp-btn { background: var(--ink); color: #fff; }

.foot-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-grp { background: linear-gradient(135deg, #25d366, var(--wa-dark)); animation: pulse 2.4s infinite; }

@keyframes grp-flow { to { background-position: -200% 0; } }
@keyframes grp-shine { 0%, 40% { transform: translateX(100%); } 100% { transform: translateX(-100%); } }
@keyframes grp-bounce { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-5px); } }
@keyframes pulse-w { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,.6); } 50% { box-shadow: 0 0 0 14px rgba(255,255,255,0); } }

@media (max-width: 600px) {
  .grp-bar { font-size: 14px; padding: 9px 12px; gap: 6px 8px; }
  .grp-card { flex-direction: column; text-align: center; padding: 22px 18px; gap: 14px; }
  .grp-tag { align-self: center; }
  .grp-ico { width: 66px; height: 66px; }
  .grp-btn { width: 100%; text-align: center; }
  .foot-btns { width: 100%; }
  .foot-btns > * { flex: 1; }
  .powered .wrap { text-align: left; padding-right: 84px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---------- SEO: نص الأقسام، "شو في عنا"، العنوان بالفوتر ---------- */
.h1-en { font-size: 14px; font-weight: 600; color: var(--muted); margin-inline-start: 6px; }
.cat-intro { margin: -6px 0 14px; color: var(--muted); font-size: 15px; }
.about-seo { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.about-seo h2 { margin: 0 0 8px; font-size: 22px; }
.about-seo p { margin: 0 0 10px; color: var(--muted); }
.about-en { font-size: 14px; text-align: left; }
.topics { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.topics .chip small { font-size: 11px; }
.topics-sm { margin-top: 18px; }
.nap { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; font-size: 14px; color: var(--muted); }
.nap a { color: var(--rose); font-weight: 700; }

/* ---------- صفحات المناطق (outlet-beirut ...) ---------- */
.area-hero .h1-en { display: block; margin: -4px 0 12px; font-size: 15px; }
.area-hero .area-note { font-size: 16px; color: var(--rose); font-weight: 700; }
.gov-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.gov { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.gov h3 { margin: 0; font-size: 19px; }
.gov h3 small { font-size: 13px; color: var(--muted); font-weight: 600; margin-inline-start: 4px; }
.gov .topics { margin-top: 10px; }
.gov-towns { font-size: 13px; margin: 10px 0 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 10px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 16px; }
.faq details p { margin: 8px 0 0; }
.foot-areas { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 14px; font-size: 13px; color: var(--muted); }
.foot-areas a:hover { color: var(--rose); }
.foot-areas-t { font-weight: 700; color: var(--rose); }

/* =====================================================================
   الحركة (Motion) — كل الصفحات
   - html.js بينحط بالـ head، والعناصر بتبيّن بحركة لما توصليلها بالسكرول
   - إذا الـ JS ما اشتغل، بينشال html.js بعد 3 ثواني وبيبيّن كل شي عادي
   ===================================================================== */
:root { --ease-out: cubic-bezier(.2, .75, .2, 1); --ease-back: cubic-bezier(.34, 1.56, .64, 1); }

/* ---------- ظهور العناصر بالسكرول ---------- */
html.js :is(.sec-head, .card, .cat-card, .grp-card, .promo, .about-seo, .item-img, .item-info, .empty, .hint-row, .cat-intro, .pager, .foot-in > *, .nap):not(.in) { opacity: 0; }
html.js :is(.sec-head, .card, .cat-card, .grp-card, .promo, .about-seo, .item-img, .item-info, .empty, .hint-row, .cat-intro, .pager, .foot-in > *, .nap).in {
  animation: rv-up .75s var(--ease-out) var(--d, 0s) backwards;
}
html.js :is(.card, .cat-card).in { animation-name: rv-card; }
html.js .item-img.in { animation-name: rv-zoom; }
@keyframes rv-up { from { opacity: 0; transform: translateY(28px); } }
@keyframes rv-card { from { opacity: 0; transform: translateY(36px) scale(.94); filter: blur(4px); } }
@keyframes rv-zoom { from { opacity: 0; transform: scale(.92); } }

/* السعر و"جديد" بينطّوا بعد ما يبيّن الكرت */
.badge { animation: badge-glow 2.6s ease-in-out infinite; }
html.js .card.in .price { animation: pop .55s var(--ease-back) calc(var(--d, 0s) + .35s) backwards; }
html.js .card.in .badge { animation: pop .55s var(--ease-back) calc(var(--d, 0s) + .45s) backwards, badge-glow 2.6s ease-in-out 1.2s infinite; }
@keyframes pop { from { opacity: 0; transform: scale(.3); } }
@keyframes badge-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(212, 166, 60, .55); } 50% { box-shadow: 0 0 0 7px rgba(212, 166, 60, 0); } }

/* ---------- الصور: سكيليتون لامع لحد ما تتحمّل، وبعدين بتبيّن بنعومة ---------- */
html.js :is(.ph, .cat-ph):not(.ld) {
  background: linear-gradient(100deg, #fff 30%, #fdeef4 50%, #fff 70%) 0 0 / 220% 100%;
  animation: skel 1.3s linear infinite;
}
@keyframes skel { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.ph img, .cat-ph img { transition: transform .5s var(--ease-out), opacity .6s ease, filter .6s ease; }
html.js :is(.ph, .cat-ph) img:not(.ld) { opacity: 0; filter: blur(10px); transform: scale(1.08); }

/* ---------- الكروت: لمعة بتمرق ع الصورة + الزر بيتحرّك ---------- */
.ph::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .65) 48%, rgba(255, 220, 235, .35) 52%, transparent 70%);
  transform: translateX(-120%);
}
.card:hover .ph::after { transform: translateX(120%); transition: transform .85s var(--ease-out); }
.card { transition: transform .35s var(--ease-out), box-shadow .35s; }
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 38px rgba(198, 74, 125, .24); }
.card:hover .ph img { transform: scale(1.07); }
.card:hover .price { animation: price-bob .6s var(--ease-back); }
@keyframes price-bob { 40% { transform: translateY(-5px) scale(1.08); } }
.cta { transition: background .25s, color .25s, transform .2s; }
.cta:hover svg { animation: wiggle .6s ease-in-out; }
.cta:active { transform: scale(.96); }
@keyframes wiggle { 20% { transform: rotate(-16deg) scale(1.15); } 40% { transform: rotate(12deg) scale(1.15); } 60% { transform: rotate(-8deg); } 80% { transform: rotate(4deg); } }


/* ---------- الهيدر ---------- */
.top { transition: box-shadow .3s, background .3s; }
.top.scrolled { box-shadow: 0 6px 22px rgba(198, 74, 125, .14); background: rgba(255, 248, 250, .97); }
/* اسم المحل بلمعة ذهبية-وردية */
.top .brand-name {
  background: linear-gradient(90deg, var(--pink) 0%, var(--rose) 30%, var(--gold) 50%, var(--rose) 70%, var(--pink) 100%) 0 0 / 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding: 4px 8px; margin: -4px -8px;
  animation: sheen 5s linear infinite;
}
@keyframes sheen { to { background-position: -250% 0; } }
.crown { transform-origin: 50% 90%; animation: crown 4.5s ease-in-out infinite; }
.brand:hover .crown { animation-duration: 1.2s; }
@keyframes crown { 0%, 76%, 100% { transform: none; } 80% { transform: rotate(-12deg) translateY(-3px); } 86% { transform: rotate(9deg) translateY(-3px); } 92% { transform: rotate(-4deg); } }
.chip { transition: background .2s, color .2s, border-color .2s, transform .25s var(--ease-back), box-shadow .25s; }
.chip:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(198, 74, 125, .15); }
.cats .chip.on { position: relative; overflow: hidden; animation: pop .5s var(--ease-back) .1s backwards; }
.cats .chip.on::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%);
  transform: translateX(-120%); animation: shine 3.5s ease-in-out 1s infinite;
}
@keyframes shine { 0% { transform: translateX(-120%); } 30%, 100% { transform: translateX(120%); } }
.search input { transition: box-shadow .3s, border-color .3s; }
.search input:focus { box-shadow: 0 0 0 5px rgba(231, 115, 159, .15); }

/* شريط تقدّم السكرول تحت الهيدر (المتصفحات الحديثة) */
@supports (animation-timeline: scroll()) {
  .top::after {
    content: ""; position: absolute; inset-inline: 0; bottom: -1px; height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--pink), var(--rose));
    transform-origin: right; transform: scaleX(0);
    animation: progress linear both; animation-timeline: scroll(root);
  }
  @keyframes progress { to { transform: scaleX(1); } }
}

/* ---------- الواجهة (hero) ---------- */
.hero { position: relative; }
.hero-in { position: relative; z-index: 1; }
.hero-txt > * { animation: rv-up .8s var(--ease-out) backwards; }
.hero-txt > :nth-child(1) { animation-delay: .05s; }
.hero-txt > :nth-child(2) { animation-delay: .15s; }
.hero-txt > :nth-child(3) { animation-delay: .28s; }
.hero-txt > :nth-child(4) { animation-delay: .4s; }
.hero-txt > :nth-child(5) { animation-delay: .52s; }
.steps li { animation: pop .5s var(--ease-back) backwards; transition: transform .25s var(--ease-back); }
.steps li:nth-child(1) { animation-delay: .55s; }
.steps li:nth-child(2) { animation-delay: .68s; }
.steps li:nth-child(3) { animation-delay: .81s; }
.steps li:hover { transform: translateY(-3px); }
.steps b { animation: step-beat 3s ease-in-out 1.2s infinite; }
.steps li:nth-child(2) b { animation-delay: 2.2s; }
.steps li:nth-child(3) b { animation-delay: 3.2s; }
@keyframes step-beat { 0%, 70%, 100% { transform: none; } 80% { transform: scale(1.25); } }
.hero-img picture { animation: hero-logo 1.1s var(--ease-back) .1s backwards; }
@keyframes hero-logo { from { opacity: 0; transform: scale(.7) rotate(-6deg); } }
/* خط وردي بينرسم تحت "بأحلى الأسعار" */
.hero h1 em {
  background: linear-gradient(transparent 64%, rgba(231, 115, 159, .28) 64%, rgba(231, 115, 159, .28) 92%, transparent 92%) no-repeat 100% 0 / 100% 100%;
  animation: mark 1s var(--ease-out) 1s backwards;
}
@keyframes mark { from { background-size: 0 100%; } }
.hero .count { color: var(--rose); font-weight: 800; }

/* قلوب ونجوم طايرة بخلفية الواجهة */
.floaties { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.floaties i {
  position: absolute; bottom: -40px; font-style: normal; line-height: 1; opacity: 0;
  animation: float-up var(--t, 12s) linear var(--dl, 0s) infinite;
}
@keyframes float-up {
  0% { opacity: 0; transform: translate(0, 0) rotate(0); }
  10% { opacity: var(--o, .5); }
  50% { transform: translate(var(--x, 30px), -280px) rotate(25deg); }
  85% { opacity: var(--o, .5); }
  100% { opacity: 0; transform: translate(0, -560px) rotate(-15deg); }
}

/* ---------- الأزرار ---------- */
.btn-browse { position: relative; overflow: hidden; isolation: isolate; }
.btn-browse::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .3) 50%, transparent 65%);
  transform: translateX(-120%); animation: shine 3.2s ease-in-out infinite;
}
.btn-wa, .btn-browse { transition: transform .25s var(--ease-back), box-shadow .25s, background .2s; }
.btn-wa:hover, .btn-browse:hover { transform: translateY(-2px); }
.btn-wa:hover svg { animation: wiggle .6s ease-in-out; }
.fab { transition: transform .3s var(--ease-back); }
.fab:hover { transform: scale(1.1) rotate(-8deg); }
.fab svg { animation: fab-ring 4s ease-in-out infinite; }
@keyframes fab-ring { 0%, 80%, 100% { transform: none; } 84% { transform: rotate(-18deg) scale(1.1); } 88% { transform: rotate(14deg) scale(1.1); } 92% { transform: rotate(-8deg); } 96% { transform: rotate(4deg); } }

/* ---------- عناوين الأقسام: القلب بيدق ---------- */
.sec-head h2::before { display: inline-block; animation: heart 1.8s ease-in-out infinite; }
@keyframes heart { 0%, 40%, 100% { transform: scale(1); } 10%, 30% { transform: scale(1.3); } 20% { transform: scale(1.05); } }
.more { display: inline-block; transition: transform .25s var(--ease-out); }
.more:hover { transform: translateX(-5px); }

/* ---------- صفحة القطعة والصفحات ---------- */
html.js .item-info.in > * { animation: rv-up .6s var(--ease-out) backwards; }
html.js .item-info.in > :nth-child(2) { animation-delay: .1s; }
html.js .item-info.in > :nth-child(3) { animation-delay: .2s; }
html.js .item-info.in > :nth-child(4) { animation-delay: .3s; }
html.js .item-info.in > :nth-child(n+5) { animation-delay: .4s; }
.item-img img { transition: transform .6s var(--ease-out); }
.item-img:hover img { transform: scale(1.04); }
.pager a { transition: transform .25s var(--ease-back), background .2s, color .2s, border-color .2s; }
.pager a:hover { transform: translateY(-3px); border-color: var(--pink); }

/* ---------- عارض الصور ---------- */
.vw.open { animation: vw-in .35s var(--ease-out); }
@keyframes vw-in { from { opacity: 0; transform: scale(.96); } }

@media (prefers-reduced-motion: reduce) {
  .ph::after, .cats .chip.on::after, .btn-browse::after, .top::after, .sec-head h2::before { animation: none !important; transition: none !important; }
  .floaties { display: none; }
  html.js :is(.ph, .cat-ph) img:not(.ld) { opacity: 1; filter: none; transform: none; }
}

/* ---------- سلّة الطلب ---------- */
html.cd-lock, html.cd-lock body { overflow: hidden; }
.cart-n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--gold); color: #fff; font-size: 12px; font-weight: 800; line-height: 1; direction: ltr; }
.cart-n:not(.has) { display: none; }
/* زر السلّة بالهيدر: معبّى وملفت — بينبض طول ما في قطع بالسلّة، وبينط لما تنضاف قطعة */
.cart-btn { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; border: 0; background: linear-gradient(135deg, #ee86ad, var(--rose)); color: #fff; border-radius: 999px; padding: 9px 16px; font-weight: 800; font-size: 15px; white-space: nowrap; box-shadow: 0 6px 16px -6px rgba(198, 74, 125, .8); transition: filter .2s; }
.cart-btn:hover { filter: brightness(1.08); }
.cart-btn .cart-n { display: inline-grid; min-width: 22px; height: 22px; font-size: 13px; background: #f3d27a; color: #4a2a05; }
.cart-btn.has { animation: cart-pulse 2.2s ease-out infinite; }
.cart-btn.bump, .fab-cart.bump { animation: cart-bump .5s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes cart-pulse { 0% { box-shadow: 0 6px 16px -6px rgba(198, 74, 125, .8), 0 0 0 0 rgba(212, 166, 60, .7); } 70%, 100% { box-shadow: 0 6px 16px -6px rgba(198, 74, 125, .8), 0 0 0 12px rgba(212, 166, 60, 0); } }

/* زر "ضيفي عالسلّة" */
.add { display: flex; align-items: center; justify-content: center; gap: 6px; border: 0; background: var(--pink); color: #fff; border-radius: 12px; padding: 8px; font-weight: 800; font-size: 14px; transition: background .2s, transform .2s; }
.add:hover { background: var(--rose); }
.add:active { transform: scale(.96); }
.add.in { background: var(--blush); color: var(--rose); box-shadow: inset 0 0 0 1.5px var(--pink); }
.add.lg { border-radius: 999px; padding: 13px 22px; font-size: 17px; white-space: nowrap; }
.item-btns { display: flex; flex-wrap: wrap; gap: 10px; }
/* الزرّين تحت كل قطعة: «ضيفي عالسلّة» (أساسي) + «طلب سريع» (إطار، دغري ع الواتساب) */
.btn-row { display: flex; flex-wrap: wrap; gap: 6px; }
.btn-row .add { flex: 1 1 120px; }
.quick { flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1.5px solid var(--wa); background: #fff; color: var(--wa-dark); border-radius: 12px; padding: 6.5px 10px; font-weight: 800; font-size: 14px; white-space: nowrap; transition: background .2s, color .2s; }
.quick:hover { background: var(--wa); color: #fff; }
.quick.lg { flex: 0 0 auto; border-radius: 999px; padding: 11.5px 22px; font-size: 17px; }
.quick.lg svg { width: 22px; height: 22px; }
.item-tip { margin: 14px 0 0; font-size: 14px; }
.vw-btns { display: flex; gap: 8px; flex: 0 0 auto; }
.vw-cart { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 10px; border-radius: 999px; border: 0; background: rgba(255,255,255,.12); color: #fff; }

/* الزر العايم فوق زر الواتساب */
.fab-cart { position: fixed; bottom: 88px; inset-inline-start: 18px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; border: 0; background: var(--pink); color: #fff; display: none; place-items: center; box-shadow: 0 8px 24px rgba(198, 74, 125, .45); }
.fab-cart.on { display: grid; }
.fab-cart svg { width: 26px; height: 26px; }
.fab-cart .cart-n { position: absolute; top: -4px; inset-inline-end: -4px; box-shadow: 0 0 0 2px #fff; }
.fab-cart.bump { animation: cart-bump .5s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes cart-bump { 40% { transform: scale(1.25); } }

.toast { position: fixed; top: 14px; left: 50%; z-index: 300; transform: translate(-50%, -20px); background: var(--ink); color: #fff; padding: 10px 20px; border-radius: 999px; font-weight: 700; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* اللوحة الجانبية */
.cd { position: fixed; inset: 0; z-index: 200; visibility: hidden; transition: visibility 0s .3s; }
.cd.open { visibility: visible; transition-delay: 0s; }
.cd-back { position: absolute; inset: 0; background: rgba(43, 29, 36, .5); opacity: 0; transition: opacity .3s; }
.cd.open .cd-back { opacity: 1; }
.cd-panel { position: absolute; top: 0; bottom: 0; inset-inline-start: 0; width: min(440px, 100%); background: var(--cream); color: var(--ink); display: flex; flex-direction: column; box-shadow: 0 0 40px rgba(0, 0, 0, .25); transform: translateX(100%); transition: transform .3s cubic-bezier(.2, .75, .2, 1); }
.cd.open .cd-panel { transform: none; }
.cd-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: #fff; }
.cd-head h2 { margin: 0; font-size: 22px; display: flex; align-items: center; gap: 8px; color: var(--rose); }
.cd-x { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 16px; color: var(--ink); }
.cd-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 14px 16px; }
.cd-empty { text-align: center; color: var(--muted); padding: 40px 10px; font-weight: 500; }
.cd-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.cd-item { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 8px; }
.cd-ph { flex: 0 0 auto; width: 60px; height: 60px; border-radius: 10px; overflow: hidden; background: var(--blush); display: grid; place-items: center; color: var(--rose); }
.cd-ph img { width: 100%; height: 100%; object-fit: cover; }
.cd-info { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.cd-info b { font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cd-info span { font-size: 12px; color: var(--muted); }
.cd-qty { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; direction: ltr; }
.cd-qty button { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: var(--cream); font-weight: 800; font-size: 16px; line-height: 1; color: var(--rose); }
.cd-qty button:hover { background: var(--pink); border-color: var(--pink); color: #fff; }
.cd-qty span { min-width: 18px; text-align: center; font-weight: 800; }
.cd-form { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.cd-form label { display: flex; flex-direction: column; gap: 5px; font-weight: 700; font-size: 14px; }
.cd-form input[type=text], .cd-form textarea { width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 10px 14px; font: inherit; font-size: 16px; color: var(--ink); resize: vertical; }
.cd-form input:focus, .cd-form textarea:focus { outline: 2px solid var(--pink); outline-offset: 1px; }
.cd-form .cd-gift { flex-direction: row; align-items: center; gap: 10px; background: #fff7e6; border: 1px dashed var(--gold); border-radius: 12px; padding: 11px 14px; cursor: pointer; font-size: 15px; }
.cd-gift input { width: 20px; height: 20px; accent-color: var(--pink); flex: 0 0 auto; }
.cd-giftbox { display: flex; flex-direction: column; gap: 12px; padding-inline-start: 12px; border-inline-start: 3px solid var(--gold); }
.cd-giftbox[hidden] { display: none; }
.cd-foot { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; display: flex; flex-direction: column; gap: 6px; }
.cd-send { width: 100%; }
.cd-clear { border: 0; background: none; color: var(--muted); font-size: 13px; text-decoration: underline; align-self: center; padding: 2px 8px; }

@media (max-width: 600px) {
  /* الصف التاني بالهيدر: البحث + زر السلّة */
  .search { flex: 1 1 calc(100% - 170px); }
  .cart-btn { order: 4; padding: 9px 13px; font-size: 14px; }
  .add { font-size: 13px; padding: 7px 4px; }
  .quick { font-size: 13px; padding: 5.5px 4px; }
  .quick.lg { font-size: 16px; padding: 10.5px 16px; flex: 1 1 auto; }
  .add.lg { font-size: 16px; padding: 12px 16px; }
  .item-btns > * { flex: 1 1 auto; }
  .vw-btns { flex-direction: column; }
  .vw-btns > * { width: 100%; }
}
