:root {
  --bg-base: #F4EFEA;
  --espresso: #1E130D;
  --roast-brown: #4A3223;
  --caramel: #B67B48;
  --caramel-dark: #8F5B2D;
  --text-primary: #1E130D;
  --text-secondary: #685244;

  --glass-bg: rgba(255, 255, 255, 0.78);
  --glass-bg-strong: rgba(255, 255, 255, 0.94);
  --glass-inset-bg: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(255, 255, 255, 0.95);
  --glass-border-subtle: rgba(30, 19, 13, 0.08);
  --glass-shadow: 0 10px 28px -8px rgba(30, 19, 13, 0.07), 
                  0 2px 6px -1px rgba(30, 19, 13, 0.03);
  --glass-blur: blur(18px) saturate(160%);
  --whatsapp-green: #1FAF54;
  --danger: #D9383A;
}

/* ضبط الأبعاد بدون المساس بخط الأيقونات ::before */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  padding-bottom: 105px;
}

button, input, select, textarea {
  font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* حماية صارمة لمكتبة الأيقونات RemixIcon حتى لا تتحول لمربعات أبداً */
i[class^="ri-"], i[class*=" ri-"] {
  font-family: 'remixicon' !important;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: inline-block;
}

img {
  max-width: 100%;
  display: block;
}

/* خلفية الإضاءة المحيطية */
.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: radial-gradient(circle at 50% 0%, #FAF7F2 0%, #EFE6DC 100%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(75px);
  opacity: 0.55;
}

.orb-1 { width: 400px; height: 400px; background: #DFBE9F; top: -120px; right: -100px; }
.orb-2 { width: 360px; height: 360px; background: #E8D3BD; bottom: 10%; left: -120px; }
.orb-3 { width: 280px; height: 280px; background: #C9966B; top: 38%; right: 25%; opacity: 0.28; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 14px;
  width: 100%;
  min-width: 0;
}

.hidden {
  display: none !important;
}

.section-spacing {
  margin-top: 24px;
}

.sub-section-margin {
  margin-top: 14px;
}

/* الطبقات الزجاجية السريعة */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 20px;
}

.glass-pill {
  background: var(--glass-bg-strong);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1.5px solid #FFFFFF;
  box-shadow: var(--glass-shadow);
  border-radius: 999px;
}

.glass-inset {
  background: var(--glass-inset-bg);
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow: inset 0 2px 5px rgba(30, 19, 13, 0.03);
  border-radius: 15px;
}

/* ==================== الترويسة العلوية النحيفة ==================== */
.slim-top-header {
  position: sticky;
  top: 8px;
  z-index: 100;
  margin-top: 8px;
  width: 100%;
}

.slim-header-bar {
  padding: 8px 12px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.header-brand-click {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  min-width: 0;
  flex: 1;
}

.header-logo-box {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #FFFFFF;
  border: 1px solid #FFF;
  box-shadow: 0 4px 10px rgba(182, 123, 72, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--espresso);
  overflow: hidden;
  flex-shrink: 0;
}

.header-logo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header-title-wrap {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
}

.header-title-wrap h1 {
  font-size: 1.08rem;
  font-weight: 900;
  color: var(--espresso);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.welcome-sub {
  font-size: 0.76rem;
  color: var(--text-secondary);
  font-weight: 700;
  white-space: nowrap;
}

/* ==================== المسرح الرئيسي وقسم الاقتراحات الذكية ==================== */
.main-stage {
  flex: 1;
  padding-top: 14px;
  padding-bottom: 24px;
  width: 100%;
  min-width: 0;
}

.spa-view, .market-section {
  width: 100%;
  min-width: 0;
}

.rec-section {
  margin-bottom: 24px;
  padding: 14px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.76), rgba(248, 238, 226, 0.72));
  border: 1.5px solid #FFFFFF;
  box-shadow: var(--glass-shadow);
}

.rec-stores-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 10px;
  margin-bottom: 12px;
  scrollbar-width: none;
}

.rec-stores-row::-webkit-scrollbar {
  display: none;
}

.rec-store-pill {
  background: #FFFFFF;
  border: 1px solid rgba(182, 123, 72, 0.25);
  border-radius: 14px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(30, 19, 13, 0.04);
  transition: transform 0.2s ease;
}

.rec-store-pill:hover {
  transform: translateY(-2px);
}

.rec-store-pill img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  object-fit: cover;
}

.rec-store-pill span {
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--espresso);
}

.section-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 10px;
}

.sec-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.sec-heading i {
  font-size: 1.4rem;
  color: var(--caramel);
  flex-shrink: 0;
}

.sec-heading h2 {
  font-size: 1.12rem;
  font-weight: 900;
  color: var(--espresso);
}

.sec-heading p {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.quick-type-filter {
  display: flex;
  gap: 6px;
}

.mini-filter-btn {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid #FFF;
  color: var(--roast-brown);
  padding: 6px 12px;
  border-radius: 11px;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
}

.mini-filter-btn.active {
  background: var(--espresso);
  color: #FFF;
  border-color: var(--espresso);
}

/* شريط التصنيفات الأفقي */
.pills-scroll-bar {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 6px;
  margin-bottom: 14px;
  border-radius: 15px;
  width: 100%;
  max-width: 100%;
  scrollbar-width: none;
}

.pills-scroll-bar::-webkit-scrollbar {
  display: none;
}

.cat-pill {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid transparent;
  padding: 8px 14px;
  border-radius: 11px;
  font-weight: 800;
  font-size: 0.86rem;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: 0.2s;
}

.cat-pill.active {
  background: #FFF;
  color: var(--espresso);
  border-color: #FFF;
  box-shadow: 0 3px 10px rgba(30, 19, 13, 0.06);
}

/* ==================== شبكة المتاجر (سريعة وسلسة) ==================== */
.stores-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  width: 100%;
}

.store-card {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid #FFFFFF;
  box-shadow: var(--glass-shadow);
  border-radius: 18px;
  padding: 13px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  min-width: 0;
  transition: transform 0.2s ease;
}

.store-card:hover {
  transform: translateY(-2px);
}

.store-card-head {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.store-card-logo {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: #FFF;
  border: 1.5px solid #FFF;
  box-shadow: 0 4px 10px rgba(30, 19, 13, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  color: var(--caramel);
  overflow: hidden;
  flex-shrink: 0;
}

.store-card-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.store-card-info {
  flex: 1;
  min-width: 0;
}

.store-card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}

.store-card-title {
  font-size: 1rem;
  font-weight: 900;
  color: var(--espresso);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rating-chip {
  background: rgba(230, 149, 0, 0.16);
  color: #995C00;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 900;
  flex-shrink: 0;
}

.store-card-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.store-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px dashed rgba(30, 19, 13, 0.1);
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--roast-brown);
}

.work-status-chip {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  flex-shrink: 0;
}

.work-status-chip.open { background: rgba(31, 175, 84, 0.15); color: #117A37; }
.work-status-chip.closed { background: rgba(230, 149, 0, 0.18); color: #995C00; }
.work-status-chip.maint { background: rgba(217, 56, 58, 0.15); color: var(--danger); }

/* ==================== صفحة البحث المستقلة ==================== */
.search-page-card {
  padding: 16px;
}

.search-head-margin {
  margin-bottom: 12px;
}

.big-search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  background: #FFFFFF;
  border: 2px solid var(--caramel);
  border-radius: 15px;
}

.big-search-box i {
  font-size: 1.3rem;
  color: var(--caramel);
}

.big-search-box input {
  width: 100%;
  border: none;
  background: transparent;
  padding: 13px 0;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--espresso);
  outline: none;
}

.clear-search-btn {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
}

.search-sub-heading {
  font-size: 1.02rem;
  font-weight: 900;
  color: var(--espresso);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.search-sub-heading i {
  color: var(--caramel);
}

/* ==================== صفحة "سلتي وطلباتي" المدمجة ==================== */
.hub-switcher {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 7px;
  margin-bottom: 14px;
  border-radius: 18px;
}

.hub-tab-btn {
  background: transparent;
  border: none;
  padding: 12px 8px;
  border-radius: 13px;
  font-size: 0.92rem;
  font-weight: 900;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: 0.2s;
}

.hub-tab-btn i {
  font-size: 1.15rem;
}

.hub-tab-btn.active {
  background: var(--espresso);
  color: #FFFFFF;
  box-shadow: 0 5px 14px rgba(30, 19, 13, 0.18);
}

.inline-count {
  background: var(--caramel);
  color: #FFF;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 0.76rem;
}

.helper-banner {
  padding: 12px 14px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--roast-brown);
}

.helper-banner i {
  font-size: 1.25rem;
  color: var(--caramel);
  flex-shrink: 0;
}

.checkout-page-card {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.search-invoice-panel {
  padding: 16px;
  margin-bottom: 14px;
}

.invoice-hint-top {
  margin-top: 8px;
}

/* ==================== شبكة المنتجات (2 بالجوال و 4 بالكمبيوتر - أداء خفيف وسريع) ==================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  width: 100%;
}

.product-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid #FFFFFF;
  box-shadow: var(--glass-shadow);
  border-radius: 20px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  min-width: 0;
  transition: transform 0.2s ease;
}

.product-card:hover {
  transform: translateY(-2px);
}

.product-img-wrap {
  position: relative;
  height: 170px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.6);
}

.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge-bundle {
  position: absolute;
  top: 6px;
  left: 6px;
  background: linear-gradient(135deg, #D9383A, #B85D19);
  color: #FFF;
  font-size: 0.68rem;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 999px;
}

.badge-free-delivery {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(30, 19, 13, 0.85);
  color: #FFF;
  font-size: 0.66rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.badge-category {
  position: absolute;
  bottom: 6px;
  left: 6px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--espresso);
  font-size: 0.66rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 7px;
}

.multi-img-indicator {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(30, 19, 13, 0.78);
  color: #FFF;
  font-size: 0.66rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.product-info {
  padding: 8px 4px 2px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 4px;
  min-width: 0;
}

.prod-store-mini {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--caramel-dark);
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-title {
  font-size: 0.94rem;
  font-weight: 900;
  color: var(--espresso);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-desc {
  font-size: 0.76rem;
  color: var(--text-secondary);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-footer {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}

.product-price {
  font-size: 1rem;
  font-weight: 900;
  color: var(--espresso);
  white-space: nowrap;
}

.product-price small {
  font-size: 0.72rem;
  color: var(--caramel-dark);
}

.product-price del {
  font-size: 0.72rem;
  color: var(--text-secondary);
  margin-right: 3px;
}

.btn-add {
  background: var(--espresso);
  color: #FFF;
  border: none;
  padding: 7px 11px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.78rem;
  cursor: pointer;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.btn-add:hover { background: var(--caramel); }
.btn-add:disabled { background: rgba(30, 19, 13, 0.25); cursor: not-allowed; }

/* ==================== واجهة المتجر الفردي وصفحة المنتج ==================== */
.sub-nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.sub-nav-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-glass-sm {
  background: rgba(255, 255, 255, 0.9);
  color: var(--espresso);
  border: 1px solid #FFF;
  padding: 7px 13px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.82rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 3px 8px rgba(30, 19, 13, 0.05);
}

.store-banner-card {
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.store-banner-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
}

.store-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.store-avatar {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: #FFF;
  border: 1.5px solid #FFF;
  box-shadow: 0 5px 14px rgba(30, 19, 13, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--caramel);
  overflow: hidden;
  flex-shrink: 0;
}

.store-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.store-meta {
  min-width: 0;
  flex: 1;
}

.store-name-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.store-name-line h2 {
  font-size: 1.18rem;
  font-weight: 900;
}

.store-meta p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 600;
  margin-top: 2px;
}

.store-mini-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--roast-brown);
}

.store-mini-tags span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.store-mini-tags i { color: var(--caramel); }

.store-social-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.store-action-chip {
  text-decoration: none;
  background: var(--espresso);
  color: #FFF;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.store-icon-link {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #FFF;
  color: var(--espresso);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.05rem;
}

.slim-promo {
  padding: 8px 12px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 800;
}

.slim-promo i { color: var(--caramel); font-size: 1.05rem; flex-shrink: 0; }
.store-state-notice { padding: 10px 12px; border-radius: 12px; font-size: 0.84rem; font-weight: 800; background: rgba(230, 149, 0, 0.15); color: #8A5200; }

/* صفحة المنتج المستقلة */
.product-page-card {
  padding: 16px;
  width: 100%;
  min-width: 0;
}

.detail-body {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 18px;
  align-items: start;
  min-width: 0;
}

.detail-gallery {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.main-img-stage {
  position: relative;
  height: 300px;
  border-radius: 18px;
  overflow: hidden;
  background: #FFF;
}

.main-img-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbnails-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  max-width: 100%;
  scrollbar-width: none;
}

.thumbnails-row::-webkit-scrollbar { display: none; }

.thumb-item {
  width: 60px;
  height: 60px;
  border-radius: 11px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 0.65;
  background: #FFF;
  flex-shrink: 0;
}

.thumb-item.active { border-color: var(--caramel); opacity: 1; }
.thumb-item img { width: 100%; height: 100%; object-fit: cover; }

.detail-info-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.prod-store-link-box {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(182, 123, 72, 0.14);
  color: var(--espresso);
  padding: 6px 12px;
  border-radius: 11px;
  font-size: 0.84rem;
  cursor: pointer;
  align-self: flex-start;
}

.detail-title-price {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.detail-title-price h2 {
  font-size: 1.22rem;
  font-weight: 900;
}

.detail-price-box {
  background: var(--espresso);
  color: #FFF;
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 1.12rem;
  font-weight: 900;
  white-space: nowrap;
  flex-shrink: 0;
}

.detail-price-box small { font-size: 0.76rem; color: var(--caramel); }
.detail-price-box del { font-size: 0.78rem; color: #CCC; margin-right: 4px; }

.stock-pill { font-size: 0.84rem; font-weight: 800; color: var(--whatsapp-green); display: flex; align-items: center; gap: 5px; }
.stock-pill.out { color: var(--danger); }

.specs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.spec-card { padding: 9px 11px; border-radius: 12px; background: rgba(255,255,255,0.82); border: 1px solid #FFF; display: flex; align-items: center; gap: 8px; }
.spec-card i { font-size: 1.15rem; color: var(--caramel); }
.spec-card div { display: flex; flex-direction: column; min-width: 0; }
.spec-card small { font-size: 0.7rem; color: var(--text-secondary); font-weight: 700; }
.spec-card strong { font-size: 0.84rem; font-weight: 800; }

.detail-desc-box { padding: 12px 14px; display: flex; flex-direction: column; gap: 5px; }
.detail-desc-box h4 { font-size: 0.88rem; font-weight: 900; color: var(--roast-brown); display: flex; align-items: center; gap: 6px; }
.detail-desc-box p { font-size: 0.9rem; line-height: 1.65; white-space: pre-line; }

.detail-actions-bar { display: flex; gap: 10px; margin-top: 4px; }
.detail-qty-selector { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 14px; }
.btn-detail-add { flex: 1; background: var(--espresso); color: #FFF; border: none; padding: 13px 16px; border-radius: 14px; font-size: 0.95rem; font-weight: 900; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; }
.full-width-btn { width: 100%; }

/* ==================== عناصر السلات والفواتير ==================== */
.store-carts-grid { display: flex; flex-direction: column; gap: 10px; }

.store-cart-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1.5px solid #FFF;
  border-radius: 18px;
  padding: 13px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 5px 14px rgba(30, 19, 13, 0.05);
}

.sc-right { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.sc-logo { width: 46px; height: 46px; border-radius: 13px; background: var(--bg-base); display: flex; align-items: center; justify-content: center; font-size: 1.35rem; color: var(--caramel); overflow: hidden; flex-shrink: 0; }
.sc-logo img { width: 100%; height: 100%; object-fit: cover; }
.sc-info { min-width: 0; flex: 1; }
.sc-info h4 { font-size: 0.98rem; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-info p { font-size: 0.82rem; color: var(--text-secondary); font-weight: 700; }
.sc-open-btn { background: var(--espresso); color: #FFF; padding: 8px 12px; border-radius: 11px; font-size: 0.8rem; font-weight: 800; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; flex-shrink: 0; }

.cart-store-header { padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.smart-hint { padding: 10px 12px; display: flex; align-items: center; justify-content: center; gap: 6px; font-weight: 800; font-size: 0.86rem; text-align: center; }
.blocker-notice { padding: 11px 12px; border-radius: 12px; background: rgba(217, 56, 58, 0.12); border: 1px solid rgba(217, 56, 58, 0.35); color: var(--danger); font-weight: 800; font-size: 0.86rem; text-align: center; }

.cart-items { display: flex; flex-direction: column; gap: 8px; }
.cart-item { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: rgba(255, 255, 255, 0.88); border: 1px solid #FFF; padding: 10px 12px; border-radius: 13px; }
.cart-item-info { min-width: 0; flex: 1; }
.cart-item-info h4 { font-size: 0.92rem; font-weight: 800; }
.cart-item-info span { font-size: 0.82rem; color: var(--caramel-dark); font-weight: 800; }
.qty-controls { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.qty-btn { width: 30px; height: 30px; border-radius: 8px; border: 1px solid rgba(30, 19, 13, 0.15); background: #FFF; color: var(--espresso); display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 0.95rem; }

.cart-summary { padding: 13px; display: flex; flex-direction: column; gap: 6px; }
.summary-row { display: flex; justify-content: space-between; font-size: 0.9rem; font-weight: 700; color: var(--text-secondary); }
.total-row { border-top: 1px solid var(--glass-border-subtle); padding-top: 8px; font-size: 1.08rem; color: var(--espresso); font-weight: 900; }

.checkout-form { display: flex; flex-direction: column; gap: 11px; }
.section-heading { display: flex; align-items: center; gap: 7px; padding-bottom: 5px; border-bottom: 1px solid var(--glass-border-subtle); }
.section-heading i { color: var(--caramel); font-size: 1.2rem; }
.section-heading h3 { font-size: 0.98rem; font-weight: 900; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group label { font-size: 0.84rem; font-weight: 800; color: var(--roast-brown); }
.input-glass-wrap { display: flex; align-items: center; gap: 8px; background: #FFFFFF; border: 1.5px solid rgba(30, 19, 13, 0.1); padding: 0 12px; border-radius: 12px; min-width: 0; }
.input-glass-wrap i { color: var(--caramel); font-size: 1.1rem; flex-shrink: 0; }
.input-glass-wrap input { width: 100%; border: none; background: transparent; padding: 11px 0; font-size: 0.92rem; font-weight: 700; color: var(--espresso); outline: none; min-width: 0; }
.flex-1 { flex: 1; min-width: 0; }
.gps-row { display: flex; gap: 8px; }
.btn-gps { background: rgba(182, 123, 72, 0.18); color: var(--espresso); border: 1px solid rgba(182, 123, 72, 0.4); padding: 10px 12px; border-radius: 12px; font-weight: 800; font-size: 0.84rem; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.hint-text { font-size: 0.8rem; color: var(--text-secondary); font-weight: 700; }
.btn-submit-order { background: var(--whatsapp-green); color: #FFF; border: none; padding: 14px; border-radius: 14px; font-size: 0.98rem; font-weight: 900; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; box-shadow: 0 8px 20px rgba(31, 175, 84, 0.25); }
.btn-submit-order:disabled { background: #AAA; box-shadow: none; cursor: not-allowed; }

/* فواتير الزبون المنسدلة */
.track-search-box { display: flex; gap: 8px; }
.btn-search { background: var(--espresso); color: #FFF; border: none; padding: 0 16px; border-radius: 12px; font-weight: 800; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0; }
.customer-orders-list { display: flex; flex-direction: column; gap: 10px; }
.cust-invoice-accordion { background: rgba(255, 255, 255, 0.9); border: 1.5px solid #FFF; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 14px rgba(30, 19, 13, 0.05); }
.cust-inv-header { width: 100%; background: transparent; border: none; padding: 13px 14px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; text-align: right; gap: 8px; }
.cust-inv-right { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.cust-arrow { width: 32px; height: 32px; border-radius: 9px; background: rgba(182, 123, 72, 0.15); color: var(--espresso); display: flex; align-items: center; justify-content: center; font-size: 1.15rem; flex-shrink: 0; transition: 0.3s; }
.cust-invoice-accordion.open .cust-arrow { transform: rotate(180deg); background: var(--espresso); color: #FFF; }
.status-pill { background: rgba(182, 123, 72, 0.18); color: var(--espresso); padding: 4px 10px; border-radius: 999px; font-size: 0.76rem; font-weight: 800; flex-shrink: 0; }
.status-pill.canceled { background: rgba(217, 56, 58, 0.15); color: var(--danger); }
.cust-inv-body { display: none; padding: 12px 14px 14px; border-top: 1px solid var(--glass-border-subtle); flex-direction: column; gap: 10px; }
.cust-invoice-accordion.open .cust-inv-body { display: flex; }
.status-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.step-box { text-align: center; padding: 8px 4px; border-radius: 9px; font-size: 0.72rem; background: rgba(255,255,255,0.8); color: var(--text-secondary); font-weight: 800; display: flex; flex-direction: column; align-items: center; gap: 3px; border: 1px solid #FFF; }
.step-box.done { background: var(--espresso); color: #FFF; }
.courier-call-box { background: rgba(31, 175, 84, 0.14); border: 1px solid rgba(31, 175, 84, 0.35); color: #0E692F; padding: 10px 12px; border-radius: 11px; font-weight: 800; font-size: 0.86rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }

/* ==================== الشريط السفلي العائم (3 أزرار نظيفة) ==================== */
.floating-dock-wrapper {
  position: fixed;
  bottom: 12px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  padding: 0 14px;
  z-index: 900;
  pointer-events: none;
}

.floating-dock {
  pointer-events: auto;
  padding: 5px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border: 1.5px solid #FFFFFF;
  box-shadow: 0 14px 32px rgba(30, 19, 13, 0.16), 0 3px 8px rgba(30, 19, 13, 0.05);
  max-width: 400px;
  width: 100%;
}

.dock-nav-item {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 7px 4px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  transition: all 0.2s ease;
}

.dock-nav-item i {
  font-size: 1.25rem;
}

.dock-nav-item.active {
  background: var(--espresso);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(30, 19, 13, 0.2);
}

.dock-icon-wrap {
  position: relative;
  display: inline-flex;
}

.dock-clean-badge {
  position: absolute;
  top: -5px;
  right: -12px;
  background: var(--danger);
  color: #FFF;
  font-size: 0.68rem;
  font-weight: 900;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #FFF;
}

/* ==================== الفوتر الهادئ ==================== */
.site-footer {
  margin-top: auto;
  padding-bottom: 8px;
  width: 100%;
}

.footer-glass {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.sharorah-footer-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--roast-brown);
}

.sharorah-footer-pill i { color: var(--caramel); font-size: 0.95rem; }
.footer-brand h3 { font-size: 0.92rem; font-weight: 900; }
.footer-brand p { font-size: 0.76rem; color: var(--text-secondary); font-weight: 600; }

/* نافذة التقييم والإشعارات */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30, 19, 13, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  z-index: 1000;
}

.glass-modal {
  background: rgba(250, 246, 240, 0.97);
  border: 1.5px solid #FFF;
  border-radius: 24px;
  width: 100%;
  max-width: 380px;
  overflow: hidden;
}

.modal-header { padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--glass-border-subtle); }
.modal-title { display: flex; align-items: center; gap: 8px; }
.modal-title h2 { font-size: 1rem; font-weight: 900; }
.icon-close-btn { width: 30px; height: 30px; border-radius: 50%; background: rgba(30, 19, 13, 0.08); border: none; font-size: 1.15rem; cursor: pointer; }
.modal-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.rating-modal-body { align-items: center; text-align: center; }
.stars-selector { display: flex; gap: 8px; margin: 6px 0; direction: ltr; }
.stars-selector button { background: none; border: none; font-size: 2.1rem; color: #DDD; cursor: pointer; }
.stars-selector button.active { color: #F5A623; }

.toast {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 18px;
  font-weight: 900;
  font-size: 0.86rem;
  z-index: 2500;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 92vw;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.toast i { color: var(--whatsapp-green); font-size: 1.2rem; flex-shrink: 0; }
.loading-box { grid-column: 1 / -1; text-align: center; padding: 34px 16px; font-weight: 800; color: var(--roast-brown); display: flex; align-items: center; justify-content: center; gap: 8px; }
.spin-icon { display: inline-block; animation: spin 1s linear infinite; }
@keyframes spin { 100% { transform: rotate(360deg); } }

/* ==================== التجاوب الشبكي للجوال والتابلت ==================== */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .stores-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .welcome-sub { display: none; }
  .stores-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .product-card { padding: 7px; border-radius: 16px; }
  .product-img-wrap { height: 135px; border-radius: 12px; }
  .product-title { font-size: 0.86rem; }
  .product-price { font-size: 0.92rem; }
  .btn-add { padding: 6px 9px; font-size: 0.74rem; }
  .detail-body { grid-template-columns: 1fr; }
  .main-img-stage { height: 230px; }
  .gps-row { flex-direction: column; }
  .status-steps { grid-template-columns: repeat(2, 1fr); }
}
