/* ============================================================
   واجهة المتجر — طابع كلاسيكي فاخر (كحلي × ذهبي × كريمي)
   ============================================================ */

:root {
  /* الألوان */
  --bg: #f8f5ee;
  --surface: #ffffff;
  --ink: #20293a;
  --ink-secondary: #596272;
  --ink-muted: #8b93a1;
  --line: rgba(32, 41, 58, 0.12);
  --line-soft: rgba(32, 41, 58, 0.07);

  --navy: #1c2c47;
  --navy-deep: #14202f;
  --navy-ink: #24344f;

  --gold: #a8802a;
  --gold-strong: #8a6414;
  --gold-bright: #c9a24b;
  --gold-soft: #f2e9d5;

  --wa: #1da851;
  --wa-strong: #168442;
  --danger: #b3413d;

  /* الخطوط */
  --font-head: 'Amiri', 'Tajawal', serif;
  --font-body: 'Tajawal', 'Segoe UI', system-ui, sans-serif;

  /* الأبعاد */
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(20, 32, 47, 0.06), 0 1px 3px rgba(20, 32, 47, 0.08);
  --shadow-md: 0 4px 10px -2px rgba(20, 32, 47, 0.1), 0 2px 4px rgba(20, 32, 47, 0.06);
  --shadow-lg: 0 10px 24px -6px rgba(20, 32, 47, 0.16), 0 4px 8px -4px rgba(20, 32, 47, 0.08);
  --shadow-xl: 0 20px 40px -10px rgba(20, 32, 47, 0.24), 0 8px 16px -8px rgba(20, 32, 47, 0.1);

  --container: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
}

input,
textarea {
  font-family: inherit;
  font-size: inherit;
}

a {
  color: var(--gold-strong);
  text-decoration: none;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ============ الهيدر ============ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--line-soft);
  box-shadow: var(--shadow-sm);
}

.site-header::after {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-bright) 20%, var(--gold) 50%, var(--gold-bright) 80%, transparent);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  padding: 2px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.3;
  color: var(--navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-tag {
  font-size: 13px;
  color: var(--ink-secondary);
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  transition: background 0.15s ease, transform 0.15s ease;
  flex-shrink: 0;
}

.cart-btn:hover {
  background: var(--navy-ink);
}

.cart-btn:active {
  transform: scale(0.97);
}

.cart-btn svg {
  width: 20px;
  height: 20px;
}

.cart-count {
  position: absolute;
  top: -6px;
  inset-inline-start: -6px;
  min-width: 22px;
  height: 22px;
  padding-inline: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  border: 2px solid var(--surface);
}

.cart-count.bump {
  animation: bump 0.35s ease;
}

@keyframes bump {
  0% { transform: scale(1); }
  40% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

/* ============ البطل (hero) ============ */

.hero {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23c9a24b' stroke-opacity='.07' stroke-width='1.5'%3E%3Crect x='22' y='22' width='28' height='28'/%3E%3Crect x='22' y='22' width='28' height='28' transform='rotate(45 36 36)'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(160deg, #22344f 0%, var(--navy) 45%, var(--navy-deep) 100%);
  color: #fff;
  text-align: center;
  padding-block: 64px 72px;
}

.hero-kicker {
  margin: 0 0 6px;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--gold-bright);
  font-weight: 500;
}

.hero-title {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(34px, 6vw, 52px);
  line-height: 1.35;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-block: 14px 10px;
  color: var(--gold-bright);
}

.hero-divider span {
  display: block;
  width: 90px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-bright));
}

.hero-divider span:last-child {
  background: linear-gradient(90deg, var(--gold-bright), transparent);
}

.hero-sub {
  margin: 0 auto;
  max-width: 620px;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.85);
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

/* ============ الأزرار ============ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 26px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-gold {
  background: linear-gradient(180deg, #b98f33, var(--gold-strong));
  color: #fff;
  box-shadow: 0 2px 6px rgba(138, 100, 20, 0.35);
}

.btn-gold:hover {
  background: linear-gradient(180deg, #c79a3a, #96700f);
  box-shadow: 0 4px 10px rgba(138, 100, 20, 0.4);
}

.btn-wa {
  background: var(--wa);
  color: #fff;
}

.btn-wa:hover {
  background: var(--wa-strong);
}

.btn-wa-outline {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.btn-wa-outline:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-outline {
  background: var(--surface);
  border-color: var(--line);
  color: var(--navy);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold-strong);
  background: #fffdf8;
}

.btn-block {
  width: 100%;
}

.btn-text {
  background: none;
  border: none;
  color: var(--ink-secondary);
  font-size: 15px;
  padding: 8px 12px;
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
}

.btn-text:hover {
  color: var(--ink);
  background: var(--line-soft);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: none;
  background: transparent;
  color: var(--ink-secondary);
  border-radius: 10px;
  transition: background 0.15s ease, color 0.15s ease;
}

.icon-btn:hover {
  background: var(--line-soft);
  color: var(--ink);
}

.icon-btn svg {
  width: 20px;
  height: 20px;
}

/* ============ شريط الأدوات والفئات ============ */

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-block: 44px 20px;
}

.section-title {
  position: relative;
  margin: 0;
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  padding-inline-start: 16px;
}

.section-title::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 8px;
  bottom: 8px;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold-strong));
}

.search-box {
  position: relative;
  flex: 1;
  max-width: 340px;
  min-width: 220px;
}

.search-box svg {
  position: absolute;
  inset-inline-start: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--ink-muted);
  pointer-events: none;
}

.search-box input {
  width: 100%;
  padding: 11px 16px;
  padding-inline-start: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.search-box input::placeholder {
  color: var(--ink-muted);
}

.search-box input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(168, 128, 42, 0.15);
}

.cats {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-block: 4px 14px;
  margin-bottom: 14px;
  scrollbar-width: thin;
}

.cat-pill {
  flex-shrink: 0;
  padding: 8px 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-secondary);
  font-weight: 500;
  font-size: 15px;
  transition: all 0.15s ease;
}

.cat-pill:hover {
  border-color: var(--gold);
  color: var(--gold-strong);
}

.cat-pill.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

/* ============ شبكة المنتجات ============ */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 24px;
  padding-bottom: 72px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(168, 128, 42, 0.35);
}

.card-media {
  aspect-ratio: 4 / 3;
  background: #eef0f3;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card:hover .card-media img {
  transform: scale(1.04);
}

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 18px 20px;
}

.card-title {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.5;
}

.card-desc {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--ink-secondary);
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

.price {
  font-size: 18px;
  font-weight: 800;
  color: var(--gold-strong);
  white-space: nowrap;
}

.price-ask {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-secondary);
  background: var(--gold-soft);
  border: 1px solid rgba(168, 128, 42, 0.25);
  padding: 5px 10px;
  border-radius: 8px;
  line-height: 1.5;
}

.price-ask svg {
  width: 15px;
  height: 15px;
  color: var(--gold-strong);
  flex-shrink: 0;
}

.btn-add {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 500;
  font-size: 14px;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn-add:hover {
  background: var(--gold-strong);
}

.btn-add:active {
  transform: scale(0.96);
}

.btn-add svg {
  width: 16px;
  height: 16px;
}

/* ============ الحالة الفارغة ============ */

.empty-state {
  text-align: center;
  padding: 72px 20px;
  color: var(--ink-secondary);
}

.empty-state svg {
  width: 56px;
  height: 56px;
  color: var(--ink-muted);
  margin-inline: auto;
  margin-bottom: 14px;
}

.empty-state h3 {
  margin: 0 0 6px;
  font-size: 20px;
  color: var(--ink);
  font-weight: 700;
}

.empty-state p {
  margin: 0;
  font-size: 15px;
}

/* ============ الفوتر ============ */

.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.82);
  border-top: 3px solid var(--gold);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 36px;
  padding-block: 48px 36px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.footer-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px;
}

.footer-brand strong {
  font-family: var(--font-head);
  font-size: 21px;
  color: #fff;
  line-height: 1.4;
}

.footer-tag {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.8;
}

.footer-col h4 {
  margin: 0 0 14px;
  font-size: 17px;
  color: var(--gold-bright);
  font-weight: 700;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--gold-bright);
}

.footer-muted {
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
}

.footer-about p {
  margin: 0;
  font-size: 14px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.65);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-block: 16px;
}

.footer-bottom p {
  margin: 0;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

.xenon-link {
  color: var(--gold-bright);
  font-weight: 700;
  transition: color 0.15s ease;
}

.xenon-link:hover {
  color: #e3c06a;
  text-decoration: underline;
}

/* ============ سلة الطلب (اللوحة الجانبية) ============ */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(16, 24, 38, 0.55);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.overlay.show {
  opacity: 1;
}

.cart-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  inset-inline-end: 0;
  z-index: 100;
  width: 400px;
  max-width: 94vw;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
  transform: translateX(-110%);
  visibility: hidden;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s;
}

.cart-drawer.open {
  transform: translateX(0);
  visibility: visible;
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(180deg, #fffdf8, var(--surface));
}

.drawer-head h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
}

.drawer-head h2 svg {
  color: var(--gold-strong);
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-item {
  display: flex;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: #fdfcfa;
}

.cart-item-img {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  background: #eef0f3;
  flex-shrink: 0;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cart-item-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cart-item-price {
  font-size: 13px;
  color: var(--gold-strong);
  font-weight: 700;
}

.cart-item-price.ask {
  color: var(--ink-secondary);
  font-weight: 400;
  font-size: 12px;
}

.cart-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.qty-controls {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px;
  background: var(--surface);
}

.qty-controls button {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  border-radius: 50%;
  color: var(--navy);
  transition: background 0.15s ease;
}

.qty-controls button:hover {
  background: var(--gold-soft);
}

.qty-controls svg {
  width: 14px;
  height: 14px;
}

.qty-num {
  min-width: 26px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
}

.cart-item-remove {
  border: none;
  background: none;
  color: var(--ink-muted);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
}

.cart-item-remove:hover {
  color: var(--danger);
  background: rgba(179, 65, 61, 0.08);
}

.cart-item-remove svg {
  width: 16px;
  height: 16px;
}

.drawer-empty {
  flex: 1;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  color: var(--ink-secondary);
  padding: 20px;
}

.cart-drawer.is-empty .drawer-empty {
  display: flex;
}

.cart-drawer.is-empty .drawer-body,
.cart-drawer.is-empty .drawer-foot {
  display: none;
}

.drawer-empty svg {
  width: 52px;
  height: 52px;
  color: var(--ink-muted);
  margin-bottom: 8px;
}

.drawer-empty p {
  margin: 0;
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
}

.drawer-empty span {
  font-size: 14px;
}

.drawer-foot {
  padding: 16px 20px 20px;
  border-top: 1px solid var(--line-soft);
  background: #fdfcfa;
}

.total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
  font-size: 16px;
}

.total-row strong {
  font-size: 20px;
  color: var(--navy);
  font-weight: 800;
}

.total-note {
  margin: 0 0 10px;
  font-size: 12.5px;
  color: var(--ink-secondary);
}

.drawer-foot .btn {
  margin-top: 8px;
}

/* ============ النوافذ المنبثقة ============ */

.modal-wrap {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(16, 24, 38, 0.55);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.25s ease;
  overflow-y: auto;
}

.modal-wrap.show {
  opacity: 1;
}

.modal {
  width: 100%;
  max-width: 440px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  transform: translateY(14px);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-wrap.show .modal {
  transform: translateY(0);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line-soft);
}

.modal-head h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
}

.modal-body {
  padding: 18px 20px 20px;
  overflow-y: auto;
}

.order-mini {
  margin: 0 0 14px;
  padding: 10px 14px;
  background: var(--gold-soft);
  border: 1px solid rgba(168, 128, 42, 0.25);
  border-radius: 10px;
  font-size: 14px;
  color: var(--ink);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.field > span {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.req {
  color: var(--danger);
}

.field input,
.field textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  resize: vertical;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--ink-muted);
  font-size: 14px;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(168, 128, 42, 0.15);
}

.field input.error {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(179, 65, 61, 0.12);
}

.btn-loc {
  justify-content: center;
}

.btn-loc svg {
  color: var(--gold-strong);
}

.loc-status {
  font-size: 13.5px;
  line-height: 1.7;
  min-height: 0;
}

.loc-status .ok {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #1c7a45;
  font-weight: 500;
}

.loc-status .err {
  color: var(--danger);
}

.loc-status a {
  font-size: 12.5px;
  text-decoration: underline;
}

.modal-foot {
  margin-top: 4px;
}

.success-body {
  text-align: center;
  padding-block: 28px;
}

.success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: rgba(29, 168, 81, 0.12);
  color: var(--wa);
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-icon svg {
  width: 32px;
  height: 32px;
}

.success-body h4 {
  margin: 0 0 6px;
  font-size: 20px;
  color: var(--ink);
}

.success-body p {
  margin: 0 0 18px;
  font-size: 14.5px;
  color: var(--ink-secondary);
}

/* نافذة انستقرام */

.ig-modal {
  max-width: 380px;
  text-align: center;
  padding: 34px 26px 22px;
  position: relative;
}

.ig-close {
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
}

.ig-badge {
  width: 76px;
  height: 76px;
  margin: 0 auto 16px;
  border-radius: 22px;
  background: linear-gradient(45deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px -6px rgba(214, 41, 118, 0.5);
}

.ig-modal h3 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
}

.ig-modal p {
  margin: 0 0 20px;
  font-size: 15px;
  color: var(--ink-secondary);
}

.btn-ig {
  display: flex;
  width: 100%;
  background: linear-gradient(45deg, #fa7e1e, #d62976, #962fbf);
  color: #fff;
  margin-bottom: 8px;
}

.btn-ig:hover {
  filter: brightness(1.08);
}

/* ============ التنبيه العائم ============ */

.toast {
  position: fixed;
  bottom: 24px;
  inset-inline-start: 50%;
  transform: translateX(50%) translateY(80px);
  z-index: 130;
  background: var(--navy);
  color: #fff;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 15px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  pointer-events: none;
  max-width: 90vw;
  text-align: center;
}

.toast.show {
  transform: translateX(50%) translateY(0);
  opacity: 1;
}

/* ============ التجاوب ============ */

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .brand-logo {
    width: 44px;
    height: 44px;
  }

  .brand-name {
    font-size: 19px;
  }

  .brand-tag {
    font-size: 11.5px;
  }

  .cart-label {
    display: none;
  }

  .cart-btn {
    padding: 10px 14px;
  }

  .hero {
    padding-block: 44px 52px;
  }

  .toolbar {
    flex-direction: column;
    align-items: stretch;
    margin-block: 30px 16px;
  }

  .section-title {
    font-size: 26px;
  }

  .search-box {
    max-width: none;
  }

  .grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
  }

  .card-body {
    padding: 12px 12px 14px;
  }

  .card-title {
    font-size: 16px;
  }

  .card-desc {
    font-size: 12.5px;
    margin-bottom: 10px;
  }

  .card-foot {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-add {
    justify-content: center;
    padding: 12px 16px;
  }

  .cart-btn {
    min-height: 44px;
  }

  .qty-controls button {
    width: 32px;
    height: 32px;
  }

  .cart-item-remove {
    width: 36px;
    height: 36px;
  }

  .price {
    font-size: 16px;
    text-align: center;
  }

  .price-ask {
    justify-content: center;
  }

  .footer-grid {
    gap: 26px;
    padding-block: 36px 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
