/* ═══════════════════════════════════════════════════════════════
   inspired by eisha — Design v4 (Warm Gift Boutique)
   هوية دافئة لبزنس الهدايا والبوكسات
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* Primary: Warm caramel / mocha */
  --primary: #A0764F;
  --primary-dark: #835C3B;
  --primary-soft: #F4EBE1;
  --primary-light: #CDB098;

  /* Accent: Dusty rose for highlights */
  --accent: #C9818A;

  /* Surfaces */
  --bg: #FAF6F1;
  --bg-soft: #FCF9F5;
  --bg-card: #FFFFFF;
  --bg-dark: #2A2420;
  --bg-dark-2: #38302A;

  /* Ink (text) */
  --ink: #2E2823;
  --ink-soft: #5C5249;
  --ink-mute: #978C80;
  --line: #ECE3D9;
  --line-soft: #F4EDE4;

  /* Status */
  --success: #18B26B;
  --error: #EF4444;
  --warning: #F59E0B;

  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-2xl: 36px;

  --shadow-sm: 0 2px 6px rgba(46,40,35,.04);
  --shadow: 0 6px 20px rgba(46,40,35,.07);
  --shadow-lg: 0 14px 40px rgba(46,40,35,.12);
  --shadow-brand: 0 8px 24px rgba(160,118,79,.28);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overscroll-behavior: none;
  color: var(--ink);
  line-height: 1.5;
}
body[dir=rtl] { font-family: 'Tajawal','IBM Plex Sans Arabic','DM Sans',system-ui,sans-serif; }
body[dir=ltr] { font-family: 'DM Sans','Tajawal',system-ui,sans-serif; }
::-webkit-scrollbar { display: none; }
input, button, select, textarea { font-family: inherit; transition: all .2s var(--ease); }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

@keyframes fu { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideInRight { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes slideInLeft { from { transform: translateX(-100%); } to { transform: translateX(0); } }
@keyframes slideInUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes pop { 0% { transform: scale(1); } 50% { transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes heartBeat { 0% { transform: scale(1); } 15% { transform: scale(1.3); } 30% { transform: scale(1); } 45% { transform: scale(1.2); } 60% { transform: scale(1); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-100%); } }

.fu { animation: fu .5s var(--ease) both; }

.app {
  max-width: 480px; margin: 0 auto;
  min-height: 100vh; position: relative;
  background: var(--bg);
}
.pg { padding-bottom: 30px; }

/* Placeholder للمنتجات بدون صورة */
.img-ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-soft);
  color: var(--primary-light);
}

/* ═══ Top Promo Banner ═══ */
.promo-bar {
  background: var(--primary);
  color: #fff;
  padding: 8px 16px;
  font-size: 12px;
  text-align: center;
  font-weight: 600;
  letter-spacing: 0;
  position: relative;
  z-index: 90;
}
.promo-bar-close {
  position: absolute;
  inset-inline-start: 12px;
  top: 50%; transform: translateY(-50%);
  background: none; border: none; color: #fff;
  font-size: 16px;
  padding: 4px;
  opacity: .8;
}

/* ═══ Sticky top bar (promo + header + search stick together) ═══ */
.app-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
}

/* ═══ Curved Header ═══ */
.app-header {
  background: var(--primary);
  color: #fff;
  padding: 14px 16px 60px;
  position: relative;
  border-radius: 0 0 var(--r-2xl) var(--r-2xl);
}
.app-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 0%, rgba(255,255,255,.12) 0%, transparent 60%);
  pointer-events: none;
  border-radius: 0 0 var(--r-2xl) var(--r-2xl);
}
.header-top {
  display: flex; align-items: center; justify-content: space-between;
  position: relative; z-index: 1;
}
.header-logo {
  display: flex; align-items: center; gap: 8px;
}
.header-logo-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
}
.header-logo-sub {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
}
.header-icon-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.16);
  border: none;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  position: relative;
  backdrop-filter: blur(8px);
}
.header-icon-btn:active { transform: scale(0.92); }
.header-icon-btn .bdg {
  position: absolute;
  top: -3px;
  inset-inline-end: -3px;
  background: var(--accent);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  min-width: 16px; height: 16px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--primary);
}

/* ═══ Search bar (overlapping header bottom) ═══ */
.search-wrap {
  position: relative;
  margin: -45px 16px 18px;
  z-index: 5;
}
.search-wrap input {
  width: 100%;
  padding: 16px 50px 16px 20px;
  border-radius: 999px;
  border: none;
  background: #fff;
  font-size: 14px;
  color: var(--ink);
  outline: none;
  box-shadow: 0 6px 20px rgba(20,21,26,.08);
}
body[dir=rtl] .search-wrap input { padding: 16px 20px 16px 50px; }
.search-icon-btn {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  inset-inline-start: 6px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: 0 4px 12px rgba(201,129,138,.35);
}

/* ═══ Hero Slider ═══ */
.hero-slider {
  margin: 0 16px 18px;
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
  height: 200px;
  box-shadow: var(--shadow);
}
.hero-track { display: flex; transition: transform .5s var(--ease); height: 100%; touch-action: pan-y; }
.hero-slide {
  min-width: 100%; height: 100%;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #2A2420 0%, #4A3A2E 50%, #6B5240 100%);
  overflow: hidden;
}
.hero-slide-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.55;
}
.hero-slide-content {
  position: relative;
  z-index: 2;
  padding: 0 24px;
  text-align: center;
  color: #fff;
}
.hero-slide-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.hero-slide-sub {
  font-size: 16px;
  color: rgba(255,255,255,.85);
  font-weight: 500;
}
.hero-dots {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 5px; z-index: 3;
}
.hero-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.4); transition: all .3s; }
.hero-dot.on { width: 20px; border-radius: 4px; background: var(--primary); }

/* ═══ Feature pills (3 cards row) ═══ */
.feature-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 0 16px 18px;
}
.feature-pill {
  background: #fff;
  border-radius: var(--r);
  padding: 14px 8px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.feature-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
}
.feature-text { font-size: 11px; font-weight: 700; color: var(--ink); line-height: 1.3; }

/* ═══ Section ═══ */
.section { padding: 0 0 22px; }
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 18px 14px;
}
.section-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.section-arrows { display: flex; gap: 6px; }
.section-arrow {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-soft);
}

/* ═══ Category cards (horizontal scroll) ═══ */
.cat-strip {
  display: flex;
  gap: 12px;
  padding: 0 16px 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.cat-card {
  flex-shrink: 0;
  width: 170px;
  background: #fff;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  border: 1px solid var(--line-soft);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.cat-card:active { transform: scale(0.97); }
.cat-card-img {
  height: 110px;
  background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}
.cat-card-img img { width: 100%; height: 100%; object-fit: cover; }
.cat-card-text {
  padding: 12px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  color: var(--ink);
}

/* ═══ Product Grid ═══ */
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 16px;
}
.product-card {
  background: #fff;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line-soft);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
  cursor: pointer;
  position: relative;
}
.product-card:active { transform: scale(0.97); }
.product-card-img {
  position: relative;
  height: 170px;
  background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.product-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.product-card:hover .product-card-img img { transform: scale(1.04); }
.product-add {
  position: absolute;
  bottom: 10px; inset-inline-start: 10px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--primary);
  border: none;
  color: #fff;
  font-size: 22px;
  font-weight: 400;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-brand);
  z-index: 2;
}
.product-add:active { transform: scale(0.85); }
.product-fav {
  position: absolute;
  top: 10px; inset-inline-end: 10px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  border: none;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(6px);
  z-index: 2;
}
.product-fav.active { color: var(--accent); animation: heartBeat .6s; }
.product-card-info {
  padding: 12px 14px 16px;
  text-align: end;
}
.product-card-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
  min-height: 34px;
  word-break: break-word;
}
.product-card-price {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  margin-top: 6px;
}
.product-card-price-old {
  text-decoration: line-through;
  color: var(--ink-mute);
  font-size: 11px;
  font-weight: 500;
  margin-inline-end: 6px;
}

/* ═══ Brand Banner ═══ */
.brand-banner {
  margin: 8px 16px 14px;
  border-radius: var(--r-lg);
  overflow: hidden;
  height: 130px;
  position: relative;
  background: linear-gradient(135deg, #2A2420, #4A3A2E);
  color: #fff;
  display: flex; align-items: center;
  padding: 0 24px;
  box-shadow: var(--shadow);
}
.brand-banner-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: .55;
}
.brand-banner-content {
  position: relative; z-index: 1;
}
.brand-banner-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px; font-weight: 700;
}
.brand-banner-sub { font-size: 11px; color: rgba(255,255,255,.7); letter-spacing: 3px; text-transform: uppercase; margin-top: 4px; }

/* ═══ Side Menu (slides from end) ═══ */
.side-menu-ov {
  position: fixed; inset: 0;
  background: rgba(20,21,26,.5);
  backdrop-filter: blur(6px);
  z-index: 150;
  animation: fadeIn .25s ease;
}
.side-menu {
  position: fixed;
  top: 0; bottom: 0; inset-inline-end: 0;
  width: 86%; max-width: 360px;
  background: #fff;
  z-index: 151;
  display: flex; flex-direction: column;
  animation: slideInRight .35s var(--ease);
  overflow-y: auto;
}
body[dir=rtl] .side-menu { animation-name: slideInLeft; }
.side-menu-head {
  padding: 16px 18px 14px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--line-soft);
}
.side-menu-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg-soft);
  border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.side-menu-lang {
  background: var(--bg-soft);
  color: var(--ink);
  padding: 6px 14px;
  border-radius: 999px;
  border: none;
  font-size: 12px;
  font-weight: 700;
}
.side-menu-cta {
  margin: 18px 18px 14px;
  padding: 14px;
  border-radius: var(--r);
  background: var(--primary);
  color: #fff;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  border: none;
  box-shadow: var(--shadow-brand);
}
.side-menu-list {
  padding: 4px 0;
  flex: 1;
}
.side-menu-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 22px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--line-soft);
  cursor: pointer;
}
.side-menu-item:active { background: var(--bg-soft); }
.side-menu-item.active { color: var(--primary); }
.side-menu-foot {
  padding: 18px 22px;
  display: flex; gap: 14px;
  border-top: 1px solid var(--line-soft);
}

/* ═══ Footer (dark) ═══ */
.footer {
  background: var(--bg-dark);
  color: #fff;
  padding: 30px 22px 100px;
  margin-top: 30px;
}
.footer-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-logo-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px; font-weight: 600;
}
.footer-logo-sub {
  font-size: 10px; color: rgba(255,255,255,.5);
  letter-spacing: 3px; text-transform: uppercase;
  margin-top: 4px;
}
.footer-socials { display: flex; gap: 10px; }
.footer-social {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-col-title {
  font-size: 13px; font-weight: 700;
  margin-bottom: 14px;
  color: #fff;
}
.footer-col-link {
  display: block;
  padding: 6px 0;
  font-size: 12px;
  color: rgba(255,255,255,.65);
}
.footer-col-link:hover { color: #fff; }
.footer-contact {
  padding: 22px 0 12px;
}
.footer-contact-title {
  font-size: 13px; font-weight: 700;
  margin-bottom: 12px;
}
.footer-contact-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 0;
  font-size: 12px;
  color: rgba(255,255,255,.65);
}
/* ═══ Forms ═══ */
.i {
  width: 100%; padding: 14px 16px;
  border-radius: var(--r); border: 1.5px solid var(--line);
  background: #fff; font-size: 14px; color: var(--ink);
  outline: none; transition: all .2s var(--ease);
}
.i:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(160,118,79,.14); }
.i::placeholder { color: #B8BBC8; }
.ta {
  width: 100%; padding: 14px 16px;
  border-radius: var(--r); border: 1.5px solid var(--line);
  background: #fff; font-size: 14px; color: var(--ink);
  outline: none; resize: vertical; min-height: 80px;
  transition: all .2s var(--ease); font-family: inherit;
}
.ta:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(160,118,79,.14); }

/* ═══ Buttons ═══ */
.bp {
  width: 100%; padding: 16px 0;
  border-radius: 999px; border: none;
  background: var(--primary); color: #fff;
  font-size: 15px; font-weight: 700;
  box-shadow: var(--shadow-brand);
  transition: all .25s var(--ease);
}
.bp:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(160,118,79,.35); }
.bp:active { transform: translateY(0); }
.bp:disabled { opacity: .5; cursor: not-allowed; }

.bd {
  width: 100%; padding: 15px 0;
  border-radius: 999px; border: none;
  background: var(--bg-dark); color: #fff;
  font-size: 15px; font-weight: 700;
  box-shadow: var(--shadow);
}
.bo {
  width: 100%; padding: 13px 0;
  border-radius: 999px;
  background: transparent; color: var(--primary);
  border: 1.5px solid var(--primary);
  font-size: 14px; font-weight: 700;
}
.bo:hover { background: var(--primary-soft); }

/* ═══ Card / Misc ═══ */
.c {
  background: #fff; border-radius: var(--r-lg);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-sm);
}
.sc {
  padding: 16px; border-radius: var(--r-lg);
  background: #fff; border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-sm);
}

/* ═══ Bottom Sheet ═══ */
.ov {
  position: fixed; inset: 0;
  background: rgba(20,21,26,.5);
  backdrop-filter: blur(8px);
  z-index: 150;
  display: flex; align-items: flex-end; justify-content: center;
  animation: fadeIn .25s ease;
}
.os {
  background: #fff; border-radius: var(--r-xl) var(--r-xl) 0 0;
  width: 100%; max-width: 480px;
  padding: 28px 24px 34px; max-height: 90vh; overflow-y: auto;
  box-shadow: 0 -10px 40px rgba(0,0,0,.12);
  animation: slideInUp .35s var(--ease);
}
.handle { width: 36px; height: 4px; border-radius: 2px; background: var(--line); margin: -8px auto 14px; }

/* ═══ Categories tabs (filter chips) ═══ */
.cat-tabs {
  display: flex; gap: 8px;
  padding: 0 16px 14px;
  overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.cat-tab {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: #fff;
  font-size: 13px; font-weight: 700;
  color: var(--ink-soft);
  white-space: nowrap;
  flex-shrink: 0;
}
.cat-tab.on {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: var(--shadow-brand);
}

/* ═══ Empty / Loader ═══ */
.empty { text-align: center; padding: 60px 24px; color: var(--ink-mute); animation: fu .5s var(--ease); }
.empty-icon { width: 80px; height: 80px; border-radius: 50%; background: var(--primary-soft); display: flex; align-items: center; justify-content: center; color: var(--primary); margin: 0 auto 16px; }
.empty-title { font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.empty-sub { font-size: 13px; color: var(--ink-mute); margin-bottom: 20px; }

.app-loader {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg); z-index: 9999;
  flex-direction: column; gap: 16px;
}
.app-loader-spin {
  width: 38px; height: 38px;
  border: 3px solid var(--line);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
.app-loader-text {
  font-size: 12px; color: var(--ink-mute);
  font-weight: 700; letter-spacing: .05em;
}

/* ═══ Skeleton ═══ */
.skeleton { background: linear-gradient(90deg, #F0F1F5 25%, #E5E7EE 50%, #F0F1F5 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: var(--r); }

/* ═══ Toast ═══ */
.toast {
  position: fixed; top: 20px; left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: var(--ink); color: #fff;
  padding: 13px 24px; border-radius: var(--r);
  font-size: 13px; font-weight: 600;
  z-index: 999;
  transition: transform .35s var(--ease);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  max-width: 90%; text-align: center;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.success { background: var(--success); }
.toast.error { background: var(--error); }

/* ═══ Detail Modal ═══ */
.detail-modal {
  position: fixed; inset: 0;
  background: rgba(20,21,26,.55);
  backdrop-filter: blur(10px);
  z-index: 160;
  display: flex; align-items: flex-end;
  animation: fadeIn .25s ease;
}
.detail-sheet {
  background: #fff;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  width: 100%; max-width: 480px;
  margin: 0 auto;
  max-height: 92vh;
  overflow-y: auto;
  animation: slideInUp .35s var(--ease);
}

/* ═══ Aov / Abx ═══ */
.aov { position: fixed; inset: 0; background: rgba(20,21,26,.55); backdrop-filter: blur(8px); z-index: 200; display: flex; align-items: center; justify-content: center; animation: fadeIn .2s ease; }
.abx { background: #fff; border-radius: var(--r-xl); padding: 32px 24px; width: 340px; max-width: 90%; text-align: center; box-shadow: 0 20px 50px rgba(0,0,0,.25); animation: slideInUp .3s var(--ease); }
.abx.shake { animation: shake .5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both; }

/* ═══ Qty / Stars / Pills ═══ */
.qty-ctrl { display: inline-flex; align-items: center; border-radius: var(--r); border: 1.5px solid var(--line); overflow: hidden; background: #fff; }
.qty-btn { width: 32px; height: 32px; border: none; background: transparent; font-size: 16px; font-weight: 700; color: var(--primary); }
.qty-val { width: 28px; text-align: center; font-size: 13px; font-weight: 700; }

.stars { display: inline-flex; gap: 1px; }
.star { color: var(--line); font-size: 14px; }
.star.on { color: #F59E0B; }

.pill { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; font-size: 10px; font-weight: 700; }
.pill-success { background: rgba(24,178,107,.12); color: var(--success); }
.pill-warning { background: rgba(245,158,11,.14); color: var(--warning); }
.pill-error { background: rgba(239,68,68,.12); color: var(--error); }
.pill-mute { background: var(--bg-soft); color: var(--ink-soft); }
.pill-primary { background: var(--primary-soft); color: var(--primary); }

/* ═══ Atab (admin) ═══ */
.atab { display: flex; gap: 6px; padding: 0 16px 16px; overflow-x: auto; scrollbar-width: none; }
.at { padding: 8px 14px; border-radius: var(--r); border: 1.5px solid var(--line); background: #fff; font-size: 11px; font-weight: 600; color: var(--ink-soft); white-space: nowrap; }
.at.on { background: var(--primary); color: #fff; border-color: var(--primary); }
.tg { padding: 6px 12px; border-radius: var(--r-sm); border: none; font-size: 11px; font-weight: 700; }
.fr-bar { height: 8px; border-radius: 4px; }
.fr-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.fr-row:last-child { border-bottom: none; }
.fr-pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 10px; font-weight: 700; }

/* ═══ WhatsApp FAB ═══ */
.wa-fab {
  position: fixed;
  bottom: 22px;
  inset-inline-end: 16px;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: #25D366;
  border: none;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37,211,102,.4);
  z-index: 80;
}
.wa-fab:hover { transform: scale(1.06); }
.wa-fab:active { transform: scale(0.95); }

/* ═══ Reviews & Static pages ═══ */
.review-card { padding: 14px; border-bottom: 1px solid var(--line-soft); }
.review-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.review-author { font-size: 13px; font-weight: 700; }
.review-date { font-size: 10px; color: var(--ink-mute); }
.review-text { font-size: 12px; color: var(--ink-soft); line-height: 1.6; }

.static-page { padding: 24px 22px 60px; max-width: 480px; margin: 0 auto; animation: fu .4s var(--ease); }
.static-page h1 { font-family: 'Playfair Display', Georgia, serif; font-size: 32px; font-weight: 600; margin-bottom: 8px; letter-spacing: -.02em; color: var(--primary); }
.static-page h2 { font-size: 18px; font-weight: 800; margin: 26px 0 10px; }
.static-page p { font-size: 14px; color: var(--ink-soft); line-height: 1.85; margin-bottom: 12px; }
.static-page ul { padding-inline-start: 20px; margin-bottom: 14px; }
.static-page li { font-size: 14px; color: var(--ink-soft); line-height: 1.85; margin-bottom: 6px; }
.static-page a { color: var(--primary); text-decoration: underline; }

.faq-item { border-bottom: 1px solid var(--line-soft); padding: 16px 0; }
.faq-q { display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.faq-q-text { font-size: 14px; font-weight: 700; flex: 1; }
.faq-toggle { width: 28px; height: 28px; border-radius: 50%; background: var(--primary-soft); display: flex; align-items: center; justify-content: center; color: var(--primary); transition: transform .3s var(--ease); }
.faq-item.open .faq-toggle { transform: rotate(45deg); background: var(--primary); color: #fff; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); font-size: 13px; color: var(--ink-soft); line-height: 1.7; }
.faq-item.open .faq-a { max-height: 400px; padding-top: 12px; }

/* ═══ Cart item ═══ */
.cart-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.cart-item-img { width: 72px; height: 72px; border-radius: var(--r); background: var(--bg-soft); display: flex; align-items: center; justify-content: center; font-size: 28px; flex-shrink: 0; overflow: hidden; }
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }

/* ═══ Timeline ═══ */
.timeline { position: relative; padding: 14px 0; }
.timeline-item { display: flex; gap: 14px; padding-bottom: 18px; position: relative; }
.timeline-item:not(:last-child)::before { content: ''; position: absolute; inset-inline-start: 11px; top: 24px; width: 2px; height: calc(100% - 12px); background: var(--line); }
.timeline-item.done:not(:last-child)::before { background: var(--success); }
.timeline-dot { width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 2px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 11px; flex-shrink: 0; z-index: 1; }
.timeline-item.done .timeline-dot { background: var(--success); border-color: var(--success); color: #fff; }
.timeline-item.active .timeline-dot { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ═══ Stepper (checkout) ═══ */
.stepper { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 14px 18px 8px; }
.step-item { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: var(--ink-mute); }
.step-num { width: 24px; height: 24px; border-radius: 50%; background: var(--bg-soft); color: var(--ink-mute); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }
.step-item.done .step-num { background: var(--success); color: #fff; }
.step-item.active .step-num { background: var(--primary); color: #fff; transform: scale(1.1); }
.step-item.active { color: var(--ink); }
.step-line { flex: 1; max-width: 30px; height: 2px; background: var(--line); border-radius: 2px; }
.step-line.done { background: var(--success); }

/* ═══ Sort / Filter toolbar ═══ */
.shop-toolbar {
  display: flex; gap: 8px;
  padding: 0 16px 14px;
}
.toolbar-btn {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 12px;
  border-radius: var(--r);
  border: 1.5px solid var(--line);
  background: #fff;
  font-size: 12px; font-weight: 700;
  color: var(--ink-soft);
}
.toolbar-btn.on {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary);
}
.filter-row { margin-bottom: 16px; }
.filter-row-title { font-size: 12px; font-weight: 700; margin-bottom: 10px; }
.filter-opt {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13px; font-weight: 600;
  cursor: pointer;
}
.filter-opt:last-child { border-bottom: none; }
.filter-opt .check {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.filter-opt.on .check { background: var(--primary); border-color: var(--primary); }
.filter-opt.on { color: var(--primary); }
.price-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.price-chip {
  padding: 9px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: #fff;
  font-size: 12px; font-weight: 700;
  color: var(--ink-soft);
}
.price-chip.on {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary);
}

/* ═══ Search suggestions ═══ */
.search-sug {
  margin: -8px 16px 14px;
  background: #fff;
  border-radius: var(--r);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.search-sug-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px;
  font-size: 13px; font-weight: 600;
  border-bottom: 1px solid var(--line-soft);
  cursor: pointer;
}
.search-sug-item:last-child { border-bottom: none; }
.search-sug-item:active { background: var(--bg-soft); }
.search-sug-thumb {
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; overflow: hidden; flex-shrink: 0;
}
.search-sug-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ═══ Cart-rental entry card (home) ═══ */
.cart-entry {
  display: flex; align-items: center; gap: 14px;
  margin: 8px 16px 18px;
  padding: 16px 18px;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: var(--shadow-brand);
  cursor: pointer;
}
.cart-entry:active { transform: scale(0.98); }
.cart-entry-emoji { font-size: 34px; }
.cart-entry-title { font-size: 16px; font-weight: 800; }
.cart-entry-sub { font-size: 11px; color: rgba(255,255,255,.8); margin-top: 3px; line-height: 1.5; }
.cart-entry-cta {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.18);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ═══ Cart-rental builder page ═══ */
.cb-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 16px 10px;
}
.cb-back {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--bg-card); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
}
.cb-head-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px; font-weight: 700;
}
.cb-intro {
  display: flex; gap: 14px;
  margin: 6px 16px 4px;
  padding: 16px;
  border-radius: var(--r-lg);
  background: var(--primary-soft);
  border: 1px solid var(--line);
}
.cb-intro-emoji { font-size: 30px; }
.cb-intro-fee { font-size: 15px; font-weight: 800; color: var(--primary); }
.cb-intro-fee span { font-size: 11px; font-weight: 600; color: var(--ink-soft); }
.cb-intro-text { font-size: 12px; color: var(--ink-soft); line-height: 1.7; margin-top: 4px; }
.cb-intro-rule {
  display: flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 700; color: var(--primary);
  margin-top: 8px;
}
.cb-occasion { display: flex; gap: 10px; padding: 0 16px; }
.cb-occ-btn {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 16px 8px;
  border-radius: var(--r);
  border: 1.5px solid var(--line);
  background: #fff;
  font-size: 13px; font-weight: 700;
  color: var(--ink-soft);
}
.cb-occ-btn.on {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary);
}
.cb-school-note {
  display: flex; align-items: center; gap: 6px;
  margin: 12px 16px 0;
  padding: 10px 12px;
  border-radius: var(--r);
  background: rgba(24,178,107,.08);
  color: var(--success);
  font-size: 11px; font-weight: 700;
}
.cb-gift {
  display: flex; align-items: center; gap: 12px;
  padding: 12px;
  margin-bottom: 8px;
  border-radius: var(--r);
  background: #fff;
  border: 1.5px solid var(--line-soft);
}
.cb-gift.on { border-color: var(--primary); background: var(--primary-soft); }
.cb-gift-thumb {
  width: 50px; height: 50px; border-radius: 10px;
  background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; overflow: hidden; flex-shrink: 0;
}
.cb-gift-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cb-gift-name { font-size: 13px; font-weight: 700; }
.cb-gift-price { font-size: 12px; font-weight: 700; color: var(--primary); margin-top: 3px; }
.cb-add-btn {
  padding: 9px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--primary);
  background: #fff;
  color: var(--primary);
  font-size: 12px; font-weight: 700;
  flex-shrink: 0;
}
.cb-bar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 24px rgba(46,40,35,.10);
  z-index: 90;
}
.cb-bar-info { flex: 1; }
.cb-bar-total { font-size: 20px; font-weight: 800; color: var(--primary); }
.cb-bar-sub { font-size: 10px; color: var(--ink-mute); font-weight: 600; margin-top: 2px; }
.cb-bar-btn {
  padding: 14px 24px;
  border-radius: 999px; border: none;
  background: var(--primary); color: #fff;
  font-size: 14px; font-weight: 700;
  box-shadow: var(--shadow-brand);
}
.cb-bar-btn:disabled { opacity: .45; box-shadow: none; }

/* ═══════════════════════════════════════════════════════════════
   ADMIN PANEL — professional redesign (all .adm-* classes)
   ═══════════════════════════════════════════════════════════════ */
.adm-page { padding-bottom: 24px; animation: fadeIn .3s ease; }

/* ─── Header ─── */
.adm-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 16px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--line);
}
.adm-header-title {
  display: flex; align-items: center; gap: 7px;
  font-size: 16px; font-weight: 800; color: var(--ink);
}
.adm-header-title svg { color: var(--primary); }
.adm-header-user {
  display: flex; align-items: center; gap: 5px;
  font-size: 11px; color: var(--ink-mute); margin-top: 3px;
}
.adm-header-actions { display: flex; gap: 8px; align-items: center; }

/* ─── Body: vertical side-nav (right) + content beside it ─── */
.adm-body {
  display: flex;
  flex-direction: row;        /* في RTL أول عنصر (القائمة) يظهر على اليمين */
  align-items: stretch;
}

/* ─── Nav — dropdown menu ─── */
.adm-nav-wrap {
  position: sticky; top: 0; z-index: 70;
  background: var(--bg-card);
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
}
.adm-nav-toggle {
  display: flex; align-items: center; gap: 9px;
  width: 100%; padding: 11px 14px;
  border-radius: var(--r); border: 1.5px solid var(--line);
  background: var(--bg-soft); color: var(--ink);
  font-size: 13px; font-weight: 800;
  transition: all .2s var(--ease);
}
.adm-nav-toggle.open { border-color: var(--primary); color: var(--primary); }
.adm-nav-toggle .adm-tab-ic { color: var(--primary); }
.adm-nav-drop {
  position: absolute;
  inset-inline: 16px; top: calc(100% - 2px);
  display: flex; flex-direction: column; gap: 2px;
  max-height: 64vh; overflow-y: auto; scrollbar-width: none;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 6px;
  box-shadow: var(--shadow-lg);
  animation: fu .2s var(--ease) both;
}
.adm-nav-drop::-webkit-scrollbar { display: none; }
.adm-nav-item {
  display: flex; align-items: center; gap: 9px;
  width: 100%; padding: 10px 12px;
  border: none; border-radius: var(--r-sm);
  background: transparent; color: var(--ink-soft);
  font-size: 13px; font-weight: 600; text-align: start;
  transition: all .15s var(--ease);
}
.adm-nav-item:hover { background: var(--bg-soft); color: var(--ink); }
.adm-nav-item.on { background: var(--primary-soft); color: var(--primary); font-weight: 800; }
.adm-tab-ic { display: inline-flex; opacity: .9; }

/* ─── Layout wrap (content area, fills the rest) ─── */
.adm-wrap { flex: 1; min-width: 0; padding: 16px 14px; display: flex; flex-direction: column; }
.adm-mt { margin-top: 14px; }
.adm-mt-sm { margin-top: 10px; }

/* ─── Section titles ─── */
.adm-section-title {
  display: flex; align-items: center; gap: 7px;
  font-size: 14px; font-weight: 800; color: var(--ink);
  margin: 0 0 12px;
}
.adm-section-title svg { color: var(--primary); }
.adm-section-title-flush { margin-bottom: 14px; }
.adm-section-title-mt { margin-top: 22px; }
.adm-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 20px; padding: 0 6px;
  border-radius: 999px; background: var(--primary-soft);
  color: var(--primary-dark); font-size: 11px; font-weight: 800;
}

/* ─── Cards ─── */
.adm-card {
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 10px;
}
.adm-card:last-child { margin-bottom: 0; }
.adm-card-pad { padding: 18px; }
.adm-card-accent { border: 1.5px solid var(--primary-soft); }

/* ─── Stat tiles ─── */
.adm-stat-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  margin-bottom: 18px;
}
.adm-stat-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
.adm-stat {
  display: flex; align-items: center; gap: 12px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.adm-stat-ic {
  width: 40px; height: 40px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r);
}
.adm-stat-primary .adm-stat-ic { background: var(--primary-soft); color: var(--primary); }
.adm-stat-success .adm-stat-ic { background: rgba(24,178,107,.12); color: var(--success); }
.adm-stat-accent  .adm-stat-ic { background: rgba(201,129,138,.14); color: var(--accent); }
.adm-stat-warning .adm-stat-ic { background: rgba(245,158,11,.14); color: var(--warning); }
.adm-stat-body { min-width: 0; }
.adm-stat-label { font-size: 11px; color: var(--ink-mute); font-weight: 600; }
.adm-stat-num { font-size: 20px; font-weight: 800; color: var(--ink); margin-top: 2px; }
.adm-stat-unit { font-size: 11px; font-weight: 700; color: var(--ink-mute); }

.adm-mini {
  padding: 14px 12px; text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.adm-mini-label { font-size: 10px; color: var(--ink-mute); font-weight: 600; }
.adm-mini-num { font-size: 22px; font-weight: 800; margin-top: 4px; }

.adm-c-primary { color: var(--primary); }
.adm-c-accent  { color: var(--accent); }
.adm-c-success { color: var(--success); }
.adm-c-warning { color: var(--warning); }
.adm-c-mute    { color: var(--ink-mute); }

/* ─── Hero panels (financial) ─── */
.adm-hero {
  border-radius: var(--r-lg);
  padding: 22px 20px; color: #fff;
  margin-bottom: 14px;
}
.adm-hero-dark { background: linear-gradient(135deg, var(--bg-dark), var(--bg-dark-2)); }
.adm-hero-green { background: linear-gradient(135deg, #0E7A4A, var(--success)); }
.adm-hero-label {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; opacity: .75;
}
.adm-hero-num { font-size: 32px; font-weight: 800; margin-top: 8px; }
.adm-hero-num-sm { font-size: 28px; }
.adm-hero-unit { font-size: 13px; font-weight: 700; opacity: .7; }
.adm-hero-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  margin-top: 16px; padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.16);
}
.adm-hero-sub-label {
  font-size: 9px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; opacity: .65;
}
.adm-hero-sub-num { font-size: 17px; font-weight: 800; margin-top: 3px; }

/* ─── Segmented control ─── */
.adm-segment {
  display: flex; gap: 4px; padding: 4px;
  background: var(--primary-soft);
  border-radius: var(--r); margin-bottom: 16px;
}
.adm-segment-btn {
  flex: 1; padding: 10px 6px;
  border-radius: var(--r-sm); border: none;
  background: transparent; color: var(--ink-soft);
  font-size: 12px; font-weight: 700;
  transition: all .2s var(--ease);
}
.adm-segment-btn.on {
  background: var(--bg-card); color: var(--primary-dark);
  box-shadow: var(--shadow-sm);
}

/* ─── Rows / list items ─── */
.adm-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.adm-row-head { margin-bottom: 14px; }

.adm-list-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px;
}
.adm-list-item-sm { padding: 10px 12px; gap: 8px; }
.adm-list-body { flex: 1; min-width: 0; }
.adm-list-name {
  font-size: 13px; font-weight: 700; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.adm-list-name-grow { flex: 1; min-width: 0; font-size: 13px; }
.adm-list-meta { font-size: 11px; color: var(--ink-mute); margin-top: 3px; }
.adm-list-actions { display: flex; gap: 6px; align-items: center; }

.adm-thumb {
  width: 48px; height: 48px; flex-shrink: 0;
  border-radius: var(--r); overflow: hidden;
  background: var(--primary-soft);
  display: flex; align-items: center; justify-content: center;
}
.adm-thumb-sm { width: 40px; height: 40px; }
.adm-thumb img { width: 100%; height: 100%; object-fit: cover; }
.adm-thumb-emoji { font-size: 22px; color: var(--primary-light); }

/* ─── Buttons ─── */
.adm-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; padding: 11px 16px;
  border-radius: var(--r); border: 1.5px solid transparent;
  font-size: 13px; font-weight: 700;
  transition: all .2s var(--ease);
}
.adm-btn-block { width: 100%; }
.adm-btn-sm { padding: 8px 12px; font-size: 11px; border-radius: var(--r-sm); }
.adm-btn-primary {
  background: var(--primary); color: #fff;
  box-shadow: var(--shadow-brand);
}
.adm-btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.adm-btn-ghost {
  background: var(--bg-soft); color: var(--primary);
  border-color: var(--line);
}
.adm-btn-ghost:hover { background: var(--primary-soft); border-color: var(--primary-light); }
.adm-btn-danger {
  background: #FEF2F2; color: var(--error);
  border-color: #FBD5D5;
}
.adm-btn-danger:hover { background: #FDE3E3; }

.adm-icon-btn {
  width: 34px; height: 34px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-sm); border: 1.5px solid var(--line);
  background: var(--bg-soft); color: var(--ink-soft);
  transition: all .2s var(--ease);
}
.adm-icon-btn:hover { border-color: var(--primary-light); color: var(--ink); }
.adm-icon-btn-primary {
  background: var(--primary); color: #fff; border-color: var(--primary);
}
.adm-icon-btn-primary:hover { background: var(--primary-dark); color: #fff; }
.adm-icon-btn-danger {
  background: #FEF2F2; color: var(--error); border-color: #FBD5D5;
}
.adm-icon-btn-danger:hover { background: #FDE3E3; }

.adm-back {
  display: inline-flex; align-items: center; gap: 6px;
  align-self: flex-start;
  background: none; border: none;
  color: var(--primary); font-size: 13px; font-weight: 700;
  margin-bottom: 14px; padding: 4px 0;
}

/* ─── Chips / badges / pills ─── */
.adm-chip {
  display: inline-flex; align-items: center;
  padding: 6px 11px; flex-shrink: 0;
  border-radius: var(--r-sm); border: 1.5px solid var(--line);
  background: var(--bg-card); color: var(--ink-mute);
  font-size: 11px; font-weight: 700;
  transition: all .2s var(--ease);
}
.adm-chip:hover { border-color: var(--primary-light); }
.adm-chip.on {
  background: var(--primary-soft); color: var(--primary-dark);
  border-color: var(--primary-light);
}
.adm-chip.is-on {
  background: rgba(24,178,107,.12); color: var(--success);
  border-color: rgba(24,178,107,.3);
}
.adm-chip.is-off {
  background: #FEF2F2; color: var(--error);
  border-color: #FBD5D5;
}
.adm-chip.is-warn {
  background: rgba(245,158,11,.12); color: var(--warning);
  border-color: rgba(245,158,11,.3);
}

.adm-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 9px; border-radius: var(--r-sm);
  font-size: 10px; font-weight: 700;
}
.adm-badge-success { background: rgba(24,178,107,.12); color: var(--success); }
.adm-badge-mute { background: var(--bg-soft); color: var(--ink-mute); }

.adm-pill {
  display: inline-flex; align-items: center; gap: 4px;
  margin-inline-start: 6px; padding: 2px 8px;
  border-radius: 999px; font-size: 9px; font-weight: 800;
}
.adm-pill-cart { background: var(--primary-soft); color: var(--primary-dark); }

/* ─── Order cards ─── */
.adm-order { padding: 14px; }
.adm-order-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.adm-order-info { flex: 1; min-width: 0; }
.adm-order-ref {
  display: flex; align-items: center; flex-wrap: wrap;
  font-size: 13px; font-weight: 800; color: var(--ink);
}
.adm-order-meta {
  font-size: 11px; color: var(--ink-mute); margin-top: 3px;
}
.adm-order-meta-icon { display: flex; align-items: center; gap: 4px; }
.adm-order-meta-icon svg { flex-shrink: 0; }
.adm-order-note {
  display: flex; align-items: center; gap: 4px;
  font-size: 11px; color: var(--primary); margin-top: 4px;
}
.adm-order-total {
  font-size: 15px; font-weight: 800; color: var(--primary);
  white-space: nowrap;
}
.adm-order-actions {
  display: flex; gap: 6px; flex-wrap: wrap; align-items: center;
  margin-top: 12px;
}
.adm-deliver-btn {
  width: 100%; margin-top: 12px;
  background: var(--bg-soft); color: var(--ink-mute);
  border-color: var(--line);
}
.adm-deliver-btn:hover { border-color: var(--primary-light); color: var(--ink); }
.adm-deliver-btn.is-done {
  background: rgba(24,178,107,.1); color: var(--success);
  border-color: rgba(24,178,107,.3);
}

/* ─── Rank rows (top products) ─── */
.adm-rank-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
}
.adm-rank-row:last-child { border-bottom: none; padding-bottom: 0; }
.adm-rank-badge {
  width: 26px; height: 26px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 999px;
  background: var(--line); color: var(--ink-soft);
  font-size: 11px; font-weight: 800;
}
.adm-rank-badge.is-first { background: var(--primary); color: #fff; }
.adm-rank-info { flex: 1; min-width: 0; }
.adm-rank-name {
  font-size: 12px; font-weight: 700; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.adm-rank-stats {
  display: flex; gap: 10px; margin-top: 4px;
  font-size: 10px; font-weight: 600; flex-wrap: wrap;
}
.adm-rank-end { text-align: end; flex-shrink: 0; }
.adm-rank-profit { font-size: 14px; font-weight: 800; color: var(--success); }
.adm-rank-meta { font-size: 10px; color: var(--ink-mute); margin-top: 2px; }

/* ─── Customers ─── */
.adm-cust-avatar {
  width: 42px; height: 42px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 999px;
  background: var(--primary-soft); color: var(--primary);
}
.adm-cust-total {
  font-size: 14px; font-weight: 800; color: var(--success);
  white-space: nowrap;
}

/* ─── Coupons ─── */
.adm-coupon-code {
  font-size: 14px; font-weight: 800; font-family: 'DM Mono', monospace;
  letter-spacing: .08em; color: var(--ink);
}
.adm-coupon-edit {
  display: flex; align-items: center; gap: 6px; margin-top: 6px;
}

/* ─── Forms ─── */
.adm-form { display: flex; flex-direction: column; gap: 10px; }
.adm-form-row { display: flex; gap: 10px; }
.adm-form-row > * { flex: 1; }
.adm-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.adm-form-inline { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.adm-field { display: flex; flex-direction: column; gap: 5px; }
.adm-label { font-size: 11px; font-weight: 600; color: var(--ink-soft); }

.adm-input {
  width: 100%; padding: 11px 13px;
  border-radius: var(--r); border: 1.5px solid var(--line);
  background: var(--bg-card); color: var(--ink);
  font-size: 13px; outline: none;
  transition: all .2s var(--ease);
}
.adm-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(160,118,79,.14);
}
.adm-input::placeholder { color: var(--ink-mute); }
.adm-textarea { resize: vertical; min-height: 72px; font-family: inherit; }
.adm-input-sm { padding: 9px 11px; font-size: 12px; flex: 1; min-width: 90px; }
.adm-input-grow { flex: 1; }
.adm-input-num {
  width: 64px; flex: none; min-width: 0;
  text-align: center; font-weight: 700;
}
.adm-input-key { width: 88px; flex: none; min-width: 0; }
.adm-input-color { padding: 4px; height: 42px; cursor: pointer; }

.adm-check {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--ink-soft); font-weight: 600;
}
.adm-check input { width: 16px; height: 16px; accent-color: var(--primary); }

.adm-add-box { border: 1.5px dashed var(--line); box-shadow: none; }
.adm-add-title {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 800; color: var(--ink);
  margin-bottom: 10px;
}
.adm-add-title svg { color: var(--primary); }

/* ─── Image uploader ─── */
.adm-hint { font-size: 11px; color: var(--ink-mute); margin-bottom: 12px; }
.adm-hint-center { text-align: center; padding: 16px 0; margin-bottom: 0; }
.adm-img-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.adm-img-cell {
  position: relative; width: 78px; height: 78px;
  border-radius: var(--r); overflow: hidden;
  background: var(--primary-soft);
}
.adm-img-cell img { width: 100%; height: 100%; object-fit: cover; }
.adm-img-del {
  position: absolute; top: 4px; inset-inline-end: 4px;
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 999px; border: none;
  background: rgba(239,68,68,.95); color: #fff;
}
.adm-upload { position: relative; cursor: pointer; }
.adm-upload input[type=file] { display: none; }

/* ─── Notes / empty states ─── */
.adm-note {
  display: flex; gap: 8px; align-items: flex-start;
  padding: 12px 14px;
  background: var(--primary-soft);
  border-radius: var(--r);
  font-size: 12px; color: var(--ink-soft); line-height: 1.6;
}
.adm-note svg { flex-shrink: 0; color: var(--primary); margin-top: 1px; }
.adm-empty {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 40px 20px; text-align: center;
  color: var(--ink-mute); font-size: 13px;
}
.adm-empty svg { color: var(--primary-light); }

/* ═══ Responsive — tablet / laptop / desktop ═══ */
/* تابلت صغير / عمودي */
@media (min-width: 700px) {
  .app { max-width: 680px; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .product-card-img { height: 190px; }
  .cb-bar { max-width: 680px; }
  .static-page { max-width: 620px; }
  .hero-slider { height: 240px; }
  .os, .detail-sheet { max-width: 560px; }
}
/* تابلت أفقي / لابتوب */
@media (min-width: 1000px) {
  .app {
    max-width: 940px;
    box-shadow: 0 0 60px rgba(46, 40, 35, .06);
  }
  .product-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .product-card-img { height: 220px; }
  .cb-bar { max-width: 940px; }
  .static-page { max-width: 720px; }
  .hero-slider { height: 300px; }
  .hero-slide-title { font-size: 40px; }
  .feature-row { gap: 14px; }
  .cat-card { width: 200px; }
}
/* شاشات كبيرة */
@media (min-width: 1400px) {
  .app { max-width: 1120px; }
  .product-grid { grid-template-columns: repeat(5, 1fr); }
  .cb-bar { max-width: 1120px; }
}
