/* ═══════════════════════════════════════════════════════════════
   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; touch-action: pan-x pan-y; }
body {
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overscroll-behavior: none;
  color: var(--ink);
  line-height: 1.5;
  touch-action: pan-x pan-y;
  -webkit-text-size-adjust: 100%;
}
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;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.feature-pill.is-clickable { cursor: pointer; }
.feature-pill.is-clickable:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.feature-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.feature-icon img { width: 100%; height: 100%; object-fit: cover; }
.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(--footer-bg, var(--bg-dark));
  color: var(--footer-text, #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: 24px 0 16px;
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 22px;
}
.footer-contact-title {
  font-size: 11px; font-weight: 800;
  letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-bottom: 14px;
}
.footer-contact-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; margin-bottom: 8px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  text-decoration: none;
  transition: all .2s var(--ease);
}
.footer-contact-row:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.16);
  transform: translateY(-1px);
}
.footer-contact-ic {
  width: 34px; height: 34px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: var(--footer-text, #fff);
}
.footer-contact-text {
  display: flex; flex-direction: column; gap: 2px;
  min-width: 0; flex: 1;
}
.footer-contact-label {
  font-size: 10px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: rgba(255,255,255,.55);
}
.footer-contact-value {
  font-size: 13px; font-weight: 700;
  color: var(--footer-text, #fff);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* ═══ 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: 10px;
  padding: 20px 12px;
  border-radius: var(--r-lg);
  border: 1.5px solid var(--line);
  background: var(--bg-card);
  font-size: 13px; font-weight: 700;
  color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
  transition: all .2s var(--ease);
  cursor: pointer;
}
.cb-occ-btn:hover {
  border-color: var(--primary-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.cb-occ-ic {
  width: 48px; height: 48px;
  border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--primary-soft);
  color: var(--primary);
  transition: all .2s var(--ease);
}
.cb-occ-lbl { font-size: 13px; font-weight: 700; }
.cb-occ-btn.on {
  border-color: var(--primary);
  background: var(--bg-card);
  color: var(--primary-dark);
  box-shadow: 0 0 0 2px var(--primary-soft), var(--shadow);
}
.cb-occ-btn.on .cb-occ-ic {
  background: var(--primary);
  color: #fff;
}
.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 — UX redesign v3 (all .adm-* classes)
   Calm tool aesthetic · sticky pill tab bar · brand: warm caramel
   ═══════════════════════════════════════════════════════════════ */

/* ─── Page shell ─── */
.adm-page {
  background: var(--bg-soft);
  padding-bottom: 32px;
  animation: fadeIn .3s var(--ease);
}

/* ─── Topbar (slim, single row) ─── */
.adm-topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 12px 14px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--line-soft);
}
.adm-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.adm-brand-mark {
  width: 36px; height: 36px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: var(--shadow-brand);
}
.adm-brand-text { min-width: 0; line-height: 1.15; }
.adm-brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 15px; font-weight: 700; color: var(--ink);
  letter-spacing: -.01em;
}
.adm-brand-tag {
  font-size: 10px; font-weight: 700; color: var(--ink-mute);
  letter-spacing: .08em; text-transform: uppercase;
  margin-top: 1px;
}

.adm-topbar-end {
  display: flex; align-items: center; gap: 8px;
}
.adm-user {
  display: none; align-items: center; gap: 8px;
  padding: 5px 10px 5px 5px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  max-width: 180px;
}
.adm-user-avatar {
  width: 26px; height: 26px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 12px; font-weight: 800;
}
.adm-user-name {
  font-size: 12px; font-weight: 700; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.adm-signout > span,
.adm-view-site > span { display: none; }
@media (min-width: 480px) {
  .adm-user { display: inline-flex; }
  .adm-signout > span,
  .adm-view-site > span { display: inline; }
}

/* ─── Body shell ─── */
.adm-body { display: block; }

/* ─── Sticky pill tab bar (always visible — no dropdown) ─── */
.adm-tabs-wrap {
  position: sticky;
  top: 0; z-index: 60;
  background: var(--bg-card);
  border-bottom: 1px solid var(--line-soft);
  box-shadow: 0 2px 10px rgba(46,40,35,.04);
}
.adm-tabs {
  display: flex; gap: 6px;
  padding: 10px 14px;
  overflow-x: auto; overflow-y: hidden;
  scrollbar-width: none;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
.adm-tabs::-webkit-scrollbar { display: none; }
.adm-tab {
  display: inline-flex; align-items: center; gap: 7px;
  flex-shrink: 0;
  padding: 9px 14px;
  border-radius: 999px; border: 1px solid transparent;
  background: transparent; color: var(--ink-soft);
  font-size: 12.5px; font-weight: 700; white-space: nowrap;
  transition: color .15s var(--ease), background .15s var(--ease), border-color .15s var(--ease);
  cursor: pointer;
}
.adm-tab:hover {
  background: var(--bg-soft);
  color: var(--ink);
}
.adm-tab-ic { display: inline-flex; opacity: .75; }
.adm-tab:hover .adm-tab-ic { opacity: 1; }
.adm-tab.on {
  background: var(--ink);
  color: #fff;
}
.adm-tab.on .adm-tab-ic { opacity: 1; }
.adm-tab.on:hover { background: var(--ink); }

/* ─── Content wrap ─── */
.adm-wrap {
  max-width: 1100px; margin: 0 auto;
  padding: 18px 14px 24px;
  display: flex; flex-direction: column;
}
.adm-mt    { margin-top: 14px; }
.adm-mt-sm { margin-top: 10px; }

/* ─── Page header (h1 + subtitle + optional action) ─── */
.adm-h {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 12px; margin-bottom: 16px;
}
.adm-h-text { min-width: 0; flex: 1; }
.adm-h-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px; font-weight: 700; color: var(--ink);
  margin: 0; letter-spacing: -.01em; line-height: 1.15;
}
.adm-h-sub {
  font-size: 12.5px; color: var(--ink-mute);
  margin-top: 5px; line-height: 1.45;
}
.adm-h-action { flex-shrink: 0; }

/* ─── Section title (inline within page) ─── */
.adm-sec {
  display: flex; align-items: center; gap: 8px;
  margin: 18px 0 10px;
  font-size: 13px; font-weight: 800; color: var(--ink);
}
.adm-sec:first-child { margin-top: 0; }
.adm-sec-ic { display: inline-flex; color: var(--primary); opacity: .9; }
.adm-sec-lbl { letter-spacing: -.005em; }
.adm-sec-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 20px; padding: 0 7px;
  border-radius: 999px;
  background: var(--primary-soft); color: var(--primary-dark);
  font-size: 10.5px; font-weight: 800;
}

/* ─── Cards ─── */
.adm-card {
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  transition: border-color .15s var(--ease);
}
.adm-card-pad { padding: 18px; }
.adm-card-accent { border-color: var(--primary-light); background: linear-gradient(180deg, #FCF8F2 0%, var(--bg-card) 80%); }
.adm-cardh {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 800; color: var(--ink);
  margin: 0 0 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}
.adm-cardh svg { color: var(--primary); opacity: .9; }

/* List container (vertical stack with consistent gap) */
.adm-list { display: flex; flex-direction: column; gap: 10px; }

/* ─── KPI grid (dashboard) ─── */
.adm-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}
@media (min-width: 700px) { .adm-kpis { grid-template-columns: repeat(4, 1fr); } }
.adm-kpi {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  position: relative; overflow: hidden;
  transition: border-color .15s var(--ease), transform .15s var(--ease);
}
.adm-kpi:hover { border-color: var(--line); transform: translateY(-1px); }
.adm-kpi-ic {
  width: 36px; height: 36px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: var(--bg-soft);
  color: var(--ink-soft);
}
.adm-kpi-body { min-width: 0; flex: 1; }
.adm-kpi-label {
  font-size: 11px; color: var(--ink-mute); font-weight: 700;
  letter-spacing: .02em; text-transform: uppercase;
}
.adm-kpi-num {
  font-size: 22px; font-weight: 800; color: var(--ink);
  margin-top: 4px; line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.adm-kpi-unit { font-size: 11px; font-weight: 700; color: var(--ink-mute); }
.adm-kpi-trend {
  font-size: 10.5px; color: var(--ink-soft); font-weight: 600;
  margin-top: 4px;
}
/* Accent KPIs */
.adm-kpi-success .adm-kpi-ic { background: rgba(24,178,107,.10); color: var(--success); }
.adm-kpi-primary .adm-kpi-ic { background: var(--primary-soft); color: var(--primary-dark); }
.adm-kpi-accent  .adm-kpi-ic { background: rgba(201,129,138,.14); color: var(--accent); }
.adm-kpi-warning .adm-kpi-ic { background: rgba(245,158,11,.14); color: var(--warning); }
.adm-kpi-neutral .adm-kpi-ic { background: var(--bg-soft); color: var(--ink-soft); }

/* "Lead" KPI spans two columns on phone, becomes regular at desktop */
.adm-kpi-lead {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #FAF1E5, var(--bg-card));
  border-color: var(--primary-light);
}
.adm-kpi-lead .adm-kpi-ic {
  width: 44px; height: 44px;
  background: var(--primary); color: #fff;
  box-shadow: var(--shadow-brand);
}
.adm-kpi-lead .adm-kpi-num { font-size: 28px; }
@media (min-width: 700px) {
  .adm-kpi-lead { grid-column: span 1; }
  .adm-kpi-lead .adm-kpi-ic { width: 40px; height: 40px; }
  .adm-kpi-lead .adm-kpi-num { font-size: 24px; }
}

/* ─── Financial summary cards ─── */
.adm-fin-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 18px;
}
@media (min-width: 700px) {
  .adm-fin-grid { grid-template-columns: 1fr 1fr 1fr; }
}
.adm-fin-card {
  padding: 18px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line-soft);
  background: var(--bg-card);
}
.adm-fin-card-label {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 800; color: var(--ink-mute);
  letter-spacing: .04em; text-transform: uppercase;
}
.adm-fin-card-num {
  font-size: 30px; font-weight: 800; color: var(--ink);
  margin-top: 6px; line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.adm-fin-card-unit { font-size: 13px; font-weight: 700; color: var(--ink-mute); }
.adm-fin-card-foot {
  display: flex; justify-content: space-between; gap: 8px;
  margin-top: 14px; padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 11.5px; color: var(--ink-soft); font-weight: 600;
}
.adm-fin-card-lead {
  background: linear-gradient(135deg, var(--ink), #1a1a1a);
  border-color: var(--ink);
  color: #fff;
}
.adm-fin-card-lead .adm-fin-card-label { color: rgba(255,255,255,.65); }
.adm-fin-card-lead .adm-fin-card-num { color: #fff; }
.adm-fin-card-lead .adm-fin-card-unit { color: rgba(255,255,255,.7); }
.adm-fin-card-lead .adm-fin-card-foot {
  color: rgba(255,255,255,.8); border-top-color: rgba(255,255,255,.18);
}
.adm-fin-card-success { background: linear-gradient(135deg, #F0FAF4, #fff); border-color: rgba(24,178,107,.3); }
.adm-fin-card-success .adm-fin-card-num { color: var(--success); }
.adm-fin-card-warning { background: linear-gradient(135deg, #FFF7EB, #fff); border-color: rgba(245,158,11,.3); }
.adm-fin-card-warning .adm-fin-card-num { color: #B45309; }

/* ─── Segmented control ─── */
.adm-segment {
  display: flex; gap: 4px; padding: 4px;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: 12px; margin-bottom: 16px;
}
.adm-segment-btn {
  flex: 1; padding: 9px 6px;
  border-radius: 9px; border: none;
  background: transparent; color: var(--ink-mute);
  font-size: 12px; font-weight: 700;
  transition: all .15s var(--ease);
  cursor: pointer;
}
.adm-segment-btn:hover { color: var(--ink); }
.adm-segment-btn.on {
  background: var(--ink); color: #fff;
}

/* ─── Order card (the to-do-list feel) ─── */
.adm-ord {
  position: relative; overflow: hidden;
  padding: 14px 14px 14px 18px;
}
.adm-ord-rail {
  position: absolute; inset-inline-start: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--line);
}
.adm-ord.is-pending .adm-ord-rail { background: var(--primary); }
.adm-ord.is-done    .adm-ord-rail { background: var(--success); }
.adm-ord-main { display: flex; flex-direction: column; gap: 8px; }
.adm-ord-row {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.adm-ord-ref {
  font-size: 13.5px; font-weight: 800; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.adm-ord-total {
  margin-inline-start: auto;
  font-size: 16px; font-weight: 800; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.adm-ord-unit { font-size: 11px; font-weight: 700; color: var(--ink-mute); }
.adm-ord-cust {
  font-size: 13px; font-weight: 700; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis;
}
.adm-ord-meta {
  display: flex; gap: 12px; flex-wrap: wrap;
  font-size: 11.5px; color: var(--ink-mute);
}
.adm-ord-meta span {
  display: inline-flex; align-items: center; gap: 4px;
}
.adm-ord-meta svg { flex-shrink: 0; opacity: .75; }
.adm-ord-note {
  display: flex; align-items: flex-start; gap: 6px;
  font-size: 11.5px; color: var(--primary-dark);
  padding: 8px 10px;
  background: var(--primary-soft);
  border-radius: var(--r-sm);
  line-height: 1.45;
}
.adm-ord-note svg { flex-shrink: 0; margin-top: 1px; }
.adm-ord-actions {
  display: flex; gap: 6px; flex-wrap: wrap; align-items: center;
  margin-top: 4px;
}
.adm-ord-del { margin-inline-start: auto; }
.adm-ord-btn {
  background: var(--bg-soft); color: var(--ink-soft);
  border-color: var(--line);
  margin-top: 4px;
}
.adm-ord-btn:hover { border-color: var(--primary-light); color: var(--ink); background: var(--bg-card); }
.adm-ord-btn.is-done {
  background: rgba(24,178,107,.10); color: var(--success);
  border-color: rgba(24,178,107,.3);
}

/* ─── Universal list row (.adm-li) ─── */
.adm-li {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
}
.adm-li-sm { padding: 10px 12px; gap: 8px; }
.adm-li-flat { background: transparent; border: 1px solid var(--line-soft); border-radius: var(--r); padding: 10px 12px; }
.adm-li-body { flex: 1; min-width: 0; }
.adm-li-name {
  font-size: 13px; font-weight: 700; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.adm-li-name-grow { flex: 1; min-width: 0; font-size: 13px; font-weight: 700; color: var(--ink); }
.adm-li-meta {
  display: flex; gap: 10px; flex-wrap: wrap;
  font-size: 11.5px; color: var(--ink-mute); margin-top: 3px;
}
.adm-li-meta span { display: inline-flex; align-items: center; gap: 4px; }
.adm-li-meta-clamp {
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical;
  overflow: hidden;
}
.adm-li-actions { display: flex; gap: 6px; align-items: center; }
.adm-li-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;
  color: var(--primary);
}
.adm-li-thumb-sm { width: 40px; height: 40px; border-radius: var(--r-sm); }
.adm-li-thumb img { width: 100%; height: 100%; object-fit: cover; }
.adm-thumb-emoji { background: var(--primary-soft); color: var(--primary); }
.adm-li-click { cursor: pointer; transition: border-color .15s var(--ease), transform .15s var(--ease); }
.adm-li-click:hover { border-color: var(--primary-light); transform: translateY(-1px); }
.adm-li-chev { color: var(--ink-mute); }
.adm-li.is-off .adm-li-name { color: var(--ink-mute); }
.adm-li.is-off .adm-li-thumb { opacity: .5; }

/* ─── Search input with icon ─── */
.adm-search {
  position: relative; margin-bottom: 12px;
}
.adm-search-ic {
  position: absolute; top: 50%; transform: translateY(-50%);
  inset-inline-start: 14px;
  color: var(--ink-mute); pointer-events: none;
  display: inline-flex;
}
.adm-search-input {
  padding-inline-start: 40px !important;
}

/* ─── Buttons ─── */
.adm-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; padding: 11px 16px;
  border-radius: var(--r); border: 1px solid transparent;
  font-size: 13px; font-weight: 700;
  cursor: pointer;
  transition: background .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease), transform .15s var(--ease);
}
.adm-btn-block { width: 100%; }
.adm-btn-sm { padding: 8px 12px; font-size: 11.5px; 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-card); color: var(--ink-soft);
  border-color: var(--line);
}
.adm-btn-ghost:hover { background: var(--bg-soft); border-color: var(--primary-light); color: var(--ink); }
.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: 1px solid var(--line);
  background: var(--bg-card); color: var(--ink-soft);
  cursor: pointer;
  transition: border-color .15s var(--ease), color .15s var(--ease), background .15s 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); border-color: 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: 10px; padding: 4px 0;
  cursor: pointer;
}
.adm-back:hover { color: var(--primary-dark); }

/* ─── Chips / badges / pills ─── */
.adm-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 11px; flex-shrink: 0;
  border-radius: 999px; border: 1px solid var(--line);
  background: var(--bg-card); color: var(--ink-soft);
  font-size: 11px; font-weight: 700;
  cursor: pointer;
  transition: all .15s var(--ease);
}
.adm-chip:hover { border-color: var(--primary-light); }
.adm-chip.on {
  background: var(--ink); color: #fff;
  border-color: var(--ink);
}
.adm-chip.is-on {
  background: rgba(24,178,107,.10); 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: 10.5px; 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;
  padding: 2px 8px;
  border-radius: 999px; font-size: 10px; font-weight: 800;
  background: var(--primary-soft); color: var(--primary-dark);
}
.adm-pill-cart { background: rgba(201,129,138,.16); color: var(--accent); }

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

/* ─── Customers ─── */
.adm-cust-avatar {
  width: 40px; height: 40px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 999px;
  background: var(--primary-soft); color: var(--primary);
}
.adm-cust-avatar-lg { width: 60px; height: 60px; }
.adm-cust-total {
  font-size: 14px; font-weight: 800; color: var(--success);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.adm-cust-total-unit { font-size: 10.5px; font-weight: 700; color: var(--ink-mute); }

.adm-cust-hero { padding: 18px; }
.adm-cust-hero-top {
  display: flex; align-items: center; gap: 14px;
}
.adm-cust-hero-id { min-width: 0; flex: 1; }
.adm-cust-hero-name {
  font-size: 16px; font-weight: 800; color: var(--ink);
}
.adm-cust-hero-meta {
  font-size: 11.5px; color: var(--ink-mute); margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.adm-cust-hero-tags {
  display: flex; gap: 5px; flex-wrap: wrap; margin-top: 6px;
}
.adm-cust-hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  margin-top: 16px; padding-top: 14px;
  border-top: 1px dashed var(--line);
}
.adm-cust-hero-stat { text-align: center; }
.adm-cust-hero-stat-num {
  font-size: 20px; font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.adm-cust-hero-stat-date { font-size: 12px; }
.adm-cust-hero-stat-label {
  font-size: 10px; font-weight: 700; color: var(--ink-mute);
  letter-spacing: .04em; text-transform: uppercase;
  margin-top: 3px;
}
.adm-cust-hero-contact {
  margin-top: 12px;
  font-size: 12px; color: var(--ink-soft);
  display: flex; align-items: center; gap: 6px;
}
.adm-cust-hero-contact svg { color: var(--primary); }

/* ─── Coupons ─── */
.adm-coupon-code {
  font-family: 'DM Mono', 'Menlo', monospace;
  letter-spacing: .12em; font-size: 13px;
  text-transform: uppercase;
}
.adm-coupon-edit {
  display: flex; align-items: center; gap: 6px; margin-top: 6px;
}

/* ─── Forms ─── */
.adm-form { display: flex; flex-direction: column; gap: 12px; }
.adm-form-row { display: flex; gap: 10px; }
.adm-form-row > * { flex: 1; min-width: 0; }
.adm-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (min-width: 700px) { .adm-form-grid { grid-template-columns: repeat(3, 1fr); } }
.adm-form-grid-add {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-items: center;
}
.adm-form-grid-add > input { grid-column: span 1; }
.adm-form-grid-add > button { grid-column: 1 / -1; }
@media (min-width: 700px) {
  .adm-form-grid-add { grid-template-columns: 1fr 1fr 1fr auto; }
  .adm-form-grid-add > input,
  .adm-form-grid-add > select { grid-column: span 1; }
  .adm-form-grid-add > button { grid-column: span 1; }
}
.adm-field { display: flex; flex-direction: column; gap: 5px; }
.adm-label { font-size: 11.5px; font-weight: 700; color: var(--ink-soft); }

.adm-input {
  width: 100%; padding: 11px 13px;
  border-radius: var(--r); border: 1px solid var(--line);
  background: var(--bg-card); color: var(--ink);
  font-size: 13px; outline: none;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
  font-family: inherit;
}
.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: 88px; font-family: inherit; line-height: 1.5; }
.adm-textarea-tall { min-height: 160px; }
.adm-input-sm { padding: 9px 11px; font-size: 12.5px; flex: 1; min-width: 90px; }
.adm-input-grow { flex: 1; }
.adm-input-num {
  width: 68px; flex: none; min-width: 0;
  text-align: center; font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.adm-input-color { padding: 4px; height: 42px; cursor: pointer; }

.adm-check-group {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 12px 14px;
  background: var(--bg-soft);
  border-radius: var(--r);
  border: 1px solid var(--line-soft);
}
@media (min-width: 700px) { .adm-check-group { grid-template-columns: repeat(3, 1fr); } }
.adm-check {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--ink); font-weight: 600;
  cursor: pointer;
}
.adm-check input { width: 16px; height: 16px; accent-color: var(--primary); }

.adm-helper {
  display: flex; align-items: center; gap: 5px;
  font-size: 11px; color: var(--ink-mute);
  line-height: 1.5;
}
.adm-helper svg { flex-shrink: 0; }

/* Add box (dashed bordered card for "create new" forms) */
.adm-add { background: var(--bg-card); }
.adm-add-inner { padding-top: 8px; border-top: 1px dashed var(--line); }

/* ─── Image uploader ─── */
.adm-img-grid {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 8px 0 12px;
}
.adm-img-cell {
  position: relative; width: 80px; height: 80px;
  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;
  cursor: pointer;
}
.adm-img-empty {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  width: 100%; padding: 18px 0;
  color: var(--ink-mute); font-size: 11.5px;
}
.adm-upload { position: relative; cursor: pointer; }
.adm-upload input[type=file] { display: none; }

/* ─── Banner preview ─── */
.adm-bnr-preview {
  position: relative;
  border-radius: var(--r); overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
}
.adm-bnr-preview img {
  width: 100%; height: 110px; object-fit: cover; display: block;
}
.adm-bnr-preview-del {
  position: absolute; top: 8px; inset-inline-end: 8px;
}

/* ─── Reviews ─── */
.adm-review { display: flex; flex-direction: column; gap: 8px; }
.adm-review-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 10px;
}
.adm-review-prod {
  font-size: 13px; font-weight: 800; color: var(--ink);
  flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.adm-review-stars { flex-shrink: 0; }
.adm-review-title { font-size: 13px; font-weight: 700; color: var(--ink); }
.adm-review-body {
  font-size: 12px; color: var(--ink-soft); line-height: 1.65;
  background: var(--bg-soft); padding: 10px 12px;
  border-radius: var(--r-sm);
}
.adm-review-meta {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
  font-size: 10.5px; color: var(--ink-mute);
}
.adm-review-actions {
  display: flex; gap: 6px; align-items: center;
  padding-top: 8px;
  border-top: 1px dashed var(--line-soft);
}

/* ─── Notes / empty / colors ─── */
.adm-note {
  display: flex; gap: 9px; 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.55;
}
.adm-note svg { flex-shrink: 0; color: var(--primary); margin-top: 1px; }
.adm-empty {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 48px 20px; text-align: center;
  color: var(--ink-mute);
  background: var(--bg-card);
  border: 1px dashed var(--line);
  border-radius: var(--r-lg);
}
.adm-empty-ic {
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--primary-light);
  margin-bottom: 4px;
}
.adm-empty-title { font-size: 14px; font-weight: 700; color: var(--ink); }
.adm-empty-sub { font-size: 12px; max-width: 280px; line-height: 1.5; }

.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-error   { color: var(--error); }
.adm-c-mute    { color: var(--ink-mute); }

/* ─── Responsive: laptop+ ─── */
@media (min-width: 700px) {
  .adm-wrap { padding: 28px 24px 40px; }
  .adm-h-title { font-size: 26px; }
  .adm-topbar { padding: 14px 24px; }
  .adm-tabs { padding: 12px 24px; }
  .adm-card-pad { padding: 22px; }
  .adm-kpi-num { font-size: 24px; }
  .adm-cust-hero { padding: 24px; }
}
@media (min-width: 1000px) {
  .adm-wrap { padding: 32px 32px 48px; }
  .adm-tabs { padding: 14px 32px; }
  .adm-topbar { padding: 14px 32px; }
}


/* ═══ 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; }
}

/* ─── Theme picker ─── */
.adm-theme-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
@media (min-width: 560px) { .adm-theme-grid { grid-template-columns: repeat(3, 1fr); } }
.adm-theme-card {
  position: relative; padding: 12px;
  border: 1.5px solid var(--line); border-radius: var(--r-lg);
  background: var(--bg-card); color: var(--ink);
  cursor: pointer; transition: all .2s var(--ease);
  display: flex; flex-direction: column; gap: 10px; align-items: stretch;
}
.adm-theme-card:hover { border-color: var(--primary-light); transform: translateY(-1px); }
.adm-theme-card.is-active {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-soft), var(--shadow-brand);
}
.adm-theme-swatches {
  display: flex; gap: 4px; border-radius: 10px; overflow: hidden;
  height: 38px;
}
.adm-theme-swatches > span { flex: 1; display: block; }
.adm-theme-name {
  font-size: 12px; font-weight: 700; color: var(--ink); text-align: start;
}
.adm-theme-check {
  position: absolute; top: 8px; inset-inline-end: 8px;
  width: 22px; height: 22px; border-radius: 999px;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
}

/* ═══ Visitor stats widget — polished cards ═══ */
.adm-visitors {
  margin: 16px 0 22px;
  padding: 22px;
  background: linear-gradient(135deg, var(--bg-card), var(--bg-soft));
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.adm-visitors-head { margin-bottom: 18px; }
.adm-visitors-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 800; color: var(--ink);
}
.adm-visitors-title svg { color: var(--primary); }
.adm-visitors-hint {
  font-size: 11px; color: var(--ink-mute);
  margin-top: 4px; font-weight: 500;
}
.adm-visitors-grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 600px) {
  .adm-visitors-grid { grid-template-columns: 1fr; }
}
.adm-visitor-card {
  position: relative;
  padding: 18px 18px 16px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  text-align: start;
  transition: all .2s var(--ease);
  overflow: hidden;
}
.adm-visitor-card::before {
  content: ""; position: absolute;
  top: 0; inset-inline-start: 0;
  width: 4px; height: 100%;
  background: var(--primary);
}
.adm-visitor-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.adm-visitor-card.adm-vc-primary::before { background: var(--primary); }
.adm-visitor-card.adm-vc-accent::before  { background: var(--accent); }
.adm-visitor-card.adm-vc-success::before { background: var(--success); }

.adm-vc-ic {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
  margin-bottom: 10px;
}
.adm-vc-accent .adm-vc-ic { background: rgba(201,129,138,.14); color: var(--accent); }
.adm-vc-success .adm-vc-ic { background: rgba(24,178,107,.12); color: var(--success); }

.adm-vc-label {
  font-size: 11px; font-weight: 800;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 6px;
}
.adm-vc-num {
  font-size: 32px; font-weight: 900;
  color: var(--ink); line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -.02em;
}
.adm-vc-primary .adm-vc-num { color: var(--primary-dark); }
.adm-vc-accent .adm-vc-num { color: var(--accent); }
.adm-vc-success .adm-vc-num { color: var(--success); }

.adm-vc-sub {
  font-size: 12px; color: var(--ink-soft);
  font-weight: 600;
}
