/* ============ Tokens ============ */
:root {
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 26px;
  --font-body: "Tajawal", "Segoe UI", Tahoma, sans-serif;
  --font-display: "Reem Kufi", "Tajawal", serif;
  --max: 1240px;
  --header-h: 74px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .3s ease, color .3s ease;
}
/* كيتضاف مؤقتا منين تتبدّل الثيم باش يمشي التغيير بنعومة */
html.theme-switching *,
html.theme-switching *::before,
html.theme-switching *::after {
  transition: background-color .3s ease, border-color .3s ease, color .3s ease, box-shadow .3s ease !important;
}
body.modal-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 600; line-height: 1.35; letter-spacing: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--saffron); color: var(--ink); }
.skip-link {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--on-ink); padding: 8px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2.5px solid var(--terracotta); outline-offset: 3px; border-radius: 6px; }

/* ============ Layout helpers ============ */
.container { width: min(var(--max), 100% - 48px); margin-inline: auto; }
main { min-height: 55vh; padding-bottom: 40px; }
.section { padding-block: 74px; }
.section-tight { padding-block: 46px; }
.muted { color: var(--muted); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 700; letter-spacing: .04em;
  color: var(--terracotta); text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; opacity: .6; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  margin-bottom: 34px;
}
.section-head h2 { font-size: clamp(1.65rem, 3vw, 2.3rem); margin-top: 6px; }
.section-head p { color: var(--muted); margin-top: 8px; max-width: 560px; }
.text-link {
  display: inline-flex; align-items: center; gap: 4px; font-weight: 700;
  color: var(--terracotta); white-space: nowrap; padding-bottom: 3px;
  border-bottom: 1.5px solid transparent; transition: .2s;
}
.text-link:hover { border-color: currentColor; gap: 8px; }
.ic { flex: none; vertical-align: middle; }
.flip-rtl { transform: scaleX(-1); }
.w-full { width: 100%; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border: 1.5px solid transparent; border-radius: 999px;
  padding: 12px 24px; font-weight: 700; font-size: .96rem; line-height: 1.2;
  background: var(--surface); color: var(--ink); cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s, color .18s, border-color .18s;
  min-height: 46px; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--terracotta); color: var(--on-primary); box-shadow: 0 10px 24px -12px rgba(var(--terracotta-rgb), .55); }
.btn-primary:hover { background: var(--terracotta-dark); }
.btn-dark { background: var(--ink); color: var(--on-ink); }
.btn-dark:hover { background: var(--ink-hover); }
.btn-olive { background: var(--olive); color: var(--on-olive); }
.btn-olive:hover { background: var(--olive-dark); }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { background: var(--bg-2); border-color: var(--ink); }
.btn-light { background: var(--btn-light-bg); color: var(--ink); }
.btn-sm { padding: 8px 16px; min-height: 38px; font-size: .87rem; }
.btn-lg { padding: 15px 30px; min-height: 52px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn .ic { margin-top: -1px; }
.btn.loading { pointer-events: none; opacity: .8; position: relative; color: transparent !important; }
.btn.loading::after {
  content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: spin .7s linear infinite;
}
.btn-ghost.loading::after, .btn-light.loading::after { border-color: rgba(var(--ink-rgb), .25); border-top-color: var(--ink); }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid transparent;
  background: transparent; color: var(--ink); transition: .18s;
}
.icon-btn:hover { background: var(--bg-2); border-color: var(--line); }
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 10px; border-radius: 999px; font-size: .74rem; font-weight: 700;
  background: rgba(var(--tint-rgb), .9); color: var(--ink-2);
  border: 1px solid rgba(var(--ink-rgb), .1); backdrop-filter: blur(4px);
}
.chip-solid { background: var(--olive); color: var(--on-olive); border-color: transparent; }
.chip-fresh { background: var(--olive-soft); color: var(--olive-dark); }
.chip-saffron { background: var(--saffron-soft); color: var(--warn-ink-soft); }
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px;
  border-radius: 999px; font-size: .76rem; font-weight: 700; white-space: nowrap;
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-warn { background: var(--warn-bg); color: var(--warn-ink); }
.pill-info { background: var(--info-bg); color: var(--info-ink); }
.pill-olive { background: var(--olive-soft); color: var(--olive-dark); }
.pill-ok { background: var(--ok-bg); color: var(--ok-ink); }
.pill-danger { background: var(--danger-soft-bg); color: var(--danger); }
.pill-plain { background: var(--bg-2); color: var(--muted); }
.pill-plain::before { display: none; }

/* ============ Forms ============ */
.field { display: flex; flex-direction: column; gap: 7px; }
.field > label, .field-label { font-size: .88rem; font-weight: 700; color: var(--ink-2); }
.field .hint { font-size: .78rem; color: var(--muted); font-weight: 400; }
.input, .select, .textarea {
  width: 100%; border: 1.5px solid var(--line); background: var(--surface-2);
  border-radius: 13px; padding: 12px 14px; min-height: 48px;
  transition: border-color .18s, box-shadow .18s, background .18s;
  font-size: .96rem;
}
.input::placeholder, .textarea::placeholder { color: var(--placeholder); }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--terracotta);
  box-shadow: 0 0 0 4px rgba(var(--terracotta-rgb), .12); background: var(--surface-2);
}
.input.invalid, .select.invalid, .textarea.invalid { border-color: var(--danger); background: var(--danger-bg-soft); }
.textarea { min-height: 110px; resize: vertical; line-height: 1.6; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%237c6b58' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 14px center; padding-inline-start: 40px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .span-2 { grid-column: 1 / -1; }
.check-row { display: flex; align-items: flex-start; gap: 10px; font-size: .9rem; }
.check-row input { margin-top: 4px; accent-color: var(--terracotta); width: 17px; height: 17px; }
.error-text { color: var(--danger); font-size: .85rem; font-weight: 500; }
.form-error {
  display: none; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px;
  background: var(--danger-bg); color: var(--danger); font-size: .88rem; font-weight: 500;
}
.form-error.show { display: flex; }
/* قسم الترجمة الفرنسية فالنماذج (منتجات/تعاونيات) */
.fr-fields { grid-column: 1 / -1; border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; background: var(--surface-2, var(--surface)); }
.fr-fields > summary { cursor: pointer; font-weight: 700; font-size: .88rem; color: var(--ink-2); list-style: none; display: flex; align-items: center; gap: 8px; }
.fr-fields > summary::-webkit-details-marker { display: none; }
.fr-fields > summary::before { content: '+'; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: var(--line); font-size: .9rem; line-height: 1; }
.fr-fields[open] > summary::before { content: '−'; }
.fr-fields .form-grid { grid-template-columns: 1fr; }

/* ============ Announce + Header ============ */
.announce { background: var(--olive-dark); color: var(--on-olive-dark); font-size: .78rem; }
.announce-inner { display: flex; align-items: center; justify-content: center; gap: 28px; min-height: 36px; flex-wrap: wrap; padding-block: 5px; }
.announce-item { display: inline-flex; align-items: center; gap: 7px; opacity: .95; }
.announce-soft { color: var(--on-olive-dark-muted); }
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: var(--glass); backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid rgba(var(--line-rgb), .8);
}
.header-inner { display: flex; align-items: center; gap: 22px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand-mark { display: flex; filter: drop-shadow(0 4px 8px rgba(var(--terracotta-rgb), .3)); }
.brand-mark .brand-img { display: block; border-radius: 26%; object-fit: cover; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-display); font-size: 1.32rem; letter-spacing: -.02em; }
.brand-text small { font-size: .68rem; color: var(--muted); letter-spacing: .02em; margin-top: 1px; }
.main-nav { display: flex; align-items: center; gap: 4px; margin-inline-start: 12px; }
.nav-link { padding: 9px 13px; border-radius: 10px; font-size: .92rem; font-weight: 500; color: var(--ink-2); position: relative; transition: .18s; }
.nav-link:hover { background: rgba(var(--line-rgb), .5); color: var(--ink); }
.nav-link.active { color: var(--terracotta); font-weight: 700; }
.nav-link.active::after { content: ""; position: absolute; bottom: 2px; inset-inline: 13px; height: 2px; border-radius: 2px; background: var(--terracotta); }
.header-search {
  margin-inline-start: auto; display: flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 999px;
  padding: 4px 16px; height: 44px; width: min(300px, 26vw); color: var(--muted);
  transition: border-color .18s, box-shadow .18s;
}
.header-search:focus-within { border-color: var(--terracotta); box-shadow: 0 0 0 4px rgba(var(--terracotta-rgb), .1); }
.header-search input { border: 0; background: transparent; outline: 0; width: 100%; font-size: .88rem; color: var(--ink); }
.header-search input::placeholder { color: var(--muted-2); }
.header-actions { display: flex; align-items: center; gap: 2px; }
.account-link { display: flex; align-items: center; gap: 2px; border-radius: 999px; }
.account-name { font-size: .82rem; font-weight: 700; margin-inline-end: 8px; display: none; }
.cart-btn { position: relative; }
.cart-count {
  position: absolute; top: 2px; inset-inline-start: 2px;
  min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px;
  background: var(--bg-2); color: var(--muted); font-size: .68rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg); transition: .2s;
}
.cart-count.has { background: var(--terracotta); color: var(--on-primary); }
.search-jump { display: none; }
@media (min-width: 980px) { .account-name { display: inline; } }

/* ============ Hero ============ */
.hero { position: relative; overflow: hidden; padding-block: 44px 60px; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%23b8512e' stroke-opacity='.09' stroke-width='1'%3E%3Cpath d='M48 6l9.5 23.5L81 39l-23.5 9.5L48 72l-9.5-23.5L15 39l23.5-9.5z'/%3E%3Ccircle cx='48' cy='39' r='7'/%3E%3Cpath d='M0 0l6 6M90 90l6 6'/%3E%3C/g%3E%3C/svg%3E");
  opacity: .9; pointer-events: none;
  mask-image: linear-gradient(90deg, transparent 20%, #000 70%);
  -webkit-mask-image: linear-gradient(90deg, transparent 20%, #000 70%);
}
.hero-inner {
  position: relative; display: grid; grid-template-columns: 1.02fr .98fr;
  gap: clamp(28px, 5vw, 70px); align-items: center;
}
.hero-copy { padding-block: 16px; }
.hero h1 {
  font-size: clamp(2.3rem, 5vw, 4rem); line-height: 1.22; margin: 14px 0 20px;
  letter-spacing: -.02em; font-weight: 600;
}
.hero h1 .accent { position: relative; color: var(--terracotta); white-space: nowrap; }
.hero h1 .accent::after {
  content: ""; position: absolute; inset-inline: -4px; bottom: 6px; height: 10px;
  background: var(--saffron); opacity: .26; border-radius: 6px; z-index: -1;
  transform: rotate(-1.2deg);
}
.hero-lead { font-size: 1.08rem; color: var(--ink-2); max-width: 520px; line-height: 1.85; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 18px 26px; margin-top: 30px; color: var(--ink-2); font-size: .88rem; font-weight: 500; }
.hero-points span { display: inline-flex; align-items: center; gap: 8px; }
.hero-points .ic { color: var(--olive); }
.hero-note {
  margin-top: 26px; display: flex; align-items: center; gap: 10px;
  font-size: .82rem; color: var(--muted);
}
.hero-note-avatars { display: flex; }
.hero-note-avatars span {
  width: 30px; height: 30px; border-radius: 50%; background: var(--olive-soft);
  border: 2px solid var(--bg); margin-inline-start: -8px; display: grid; place-items: center;
  color: var(--olive-dark); font-size: .72rem; font-weight: 800;
}
.hero-note-avatars span:first-child { margin-inline-start: 0; }
.hero-media { position: relative; }
.arch {
  position: relative; overflow: hidden; aspect-ratio: 5 / 5.6;
  border-radius: 260px 260px 26px 26px; box-shadow: var(--shadow-md);
  border: 8px solid rgba(var(--tint-rgb), .7);
}
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(var(--shade-rgb), .45));
}
.float-card {
  position: absolute; background: var(--glass-strong); backdrop-filter: blur(10px);
  border: 1px solid rgba(var(--line-rgb), .9); border-radius: 16px; box-shadow: var(--shadow-md);
  padding: 11px 14px; display: flex; align-items: center; gap: 10px; z-index: 3;
}
.float-card .fc-ic {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: var(--olive-soft); color: var(--olive-dark); flex: none;
}
.float-card strong { display: block; font-size: .85rem; }
.float-card small { color: var(--muted); font-size: .72rem; }
.float-card.fc-top { top: 9%; inset-inline-start: -6%; }
.float-card.fc-bottom { bottom: 8%; inset-inline-end: -4%; padding: 10px 12px; }
.fc-product { display: flex; align-items: center; gap: 10px; }
.fc-product img { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; }
.fc-product .fc-price { font-weight: 800; color: var(--terracotta); font-size: .9rem; }
.fc-product small { display: block; font-size: .72rem; color: var(--muted); }
.float-card .fc-star { color: var(--saffron); display: flex; align-items: center; gap: 2px; font-size: .8rem; font-weight: 700; }
.hero-deco {
  position: absolute; inset-inline-start: -80px; top: 20px; width: 180px; height: 180px;
  border: 1.5px dashed rgba(var(--terracotta-rgb), .25); border-radius: 50%; pointer-events: none;
}
.hero-deco2 {
  position: absolute; inset-inline-end: -40px; bottom: 40px; width: 120px; height: 120px;
  border-radius: 50%; background: var(--saffron-soft); filter: blur(2px); opacity: .7; pointer-events: none;
}

/* ============ Trust strip ============ */
.trust-strip { border-block: 1px solid var(--line); background: rgba(var(--tint-rgb), .5); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item {
  display: flex; align-items: center; gap: 11px; padding: 20px 22px;
  border-inline-start: 1px solid var(--line);
}
.trust-item:first-child { border-inline-start: 0; }
.trust-item .t-ic {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  background: var(--bg-2); color: var(--olive); display: grid; place-items: center;
}
.trust-item strong { display: block; font-size: .87rem; line-height: 1.4; }
.trust-item small { color: var(--muted); font-size: .75rem; }

/* ============ Categories ============ */
.cat-scroller {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr);
  gap: 14px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none;
}
.cat-scroller::-webkit-scrollbar { display: none; }
@media (min-width: 1101px) {
  .cat-scroller { grid-auto-flow: row; grid-template-columns: repeat(8, 1fr); overflow: visible; }
}
.cat-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 16px; display: flex; flex-direction: column; align-items: center; gap: 11px;
  text-align: center; transition: .2s; box-shadow: var(--shadow-sm);
}
.cat-card:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: var(--shadow-md); }
.cat-ic {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  background: var(--terracotta-soft); color: var(--terracotta); transition: .2s;
}
.cat-card:nth-child(2n) .cat-ic { background: var(--saffron-soft); color: var(--saffron-ink); }
.cat-card:nth-child(3n) .cat-ic { background: var(--olive-soft); color: var(--olive); }
.cat-card:nth-child(4n) .cat-ic { background: var(--violet-bg); color: var(--violet-ink); }
.cat-card:hover .cat-ic { transform: rotate(-6deg) scale(1.05); }
.cat-card strong { font-size: .88rem; font-weight: 700; }
.cat-card small { color: var(--muted); font-size: .73rem; margin-top: -7px; }

/* ============ Product cards ============ */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-grid.three { grid-template-columns: repeat(3, 1fr); }
.product-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .22s ease, box-shadow .22s ease, border-color .22s;
  display: flex; flex-direction: column; position: relative;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.p-media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--bg-2); }
.p-media > a { display: block; height: 100%; }
.p-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.3,1); }
.product-card:hover .p-media img { transform: scale(1.045); }
.p-badges { position: absolute; top: 10px; inset-inline-start: 10px; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.discount {
  position: absolute; top: 10px; inset-inline-end: 10px;
  background: var(--terracotta); color: var(--on-primary); font-size: .7rem; font-weight: 800;
  padding: 4px 8px; border-radius: 8px; direction: ltr;
}
.quick-add {
  position: absolute; bottom: 10px; inset-inline-start: 10px;
  width: 38px; height: 38px; border-radius: 50%; border: 0;
  background: rgba(var(--tint-rgb), .93); color: var(--ink);
  display: grid; place-items: center; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .35);
  transition: .2s; backdrop-filter: blur(4px);
}
.quick-add:hover { background: var(--terracotta); color: var(--on-primary); transform: scale(1.07); }
.quick-add:disabled { opacity: .5; cursor: not-allowed; }
.p-body { padding: 14px 15px 15px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.p-coop {
  display: flex; align-items: center; gap: 4px; font-size: .72rem; font-weight: 600;
  color: var(--olive); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.p-coop:hover { color: var(--terracotta); }
.verified-dot {
  width: 14px; height: 14px; border-radius: 50%; background: var(--olive); color: var(--on-olive);
  display: inline-grid; place-items: center; flex: none;
}
.p-title { font-weight: 700; font-size: .97rem; line-height: 1.5; color: var(--ink); min-height: 2.9em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.p-title:hover { color: var(--terracotta); }
.p-rating { display: flex; align-items: center; margin-top: 1px; }
.p-foot { margin-top: auto; padding-top: 8px; display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; }
.p-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.p-price strong { font-size: 1.02rem; font-weight: 800; color: var(--terracotta); }
.p-price s { font-size: .76rem; color: var(--muted-2); }
.p-unit { font-size: .7rem; color: var(--muted); font-weight: 500; }

/* Stars */
.stars { display: inline-flex; align-items: center; gap: 1px; line-height: 1; }
.stars svg { display: inline-block; }
.stars-count { font-size: .7rem; color: var(--muted); margin-inline-start: 4px; font-weight: 500; direction: ltr; }
.half-star { position: relative; display: inline-flex; }
.half-fill { position: absolute; inset-inline-start: 0; top: 0; overflow: hidden; width: 50%; }

/* ============ Impact / coops / story ============ */
.impact {
  background: var(--olive-dark); color: var(--on-olive-dark); border-radius: 30px;
  overflow: hidden; position: relative;
}
.impact::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='110' height='110' viewBox='0 0 110 110'%3E%3Cg fill='none' stroke='%23fbf7ef' stroke-opacity='.06'%3E%3Cpath d='M55 10l11 27 27 11-27 11-11 27-11-27-27-11 27-11z'/%3E%3C/g%3E%3C/svg%3E");
}
.impact-inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 20px; padding: clamp(30px, 5vw, 60px); }
.impact-copy h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); margin-bottom: 16px; color: var(--on-olive-dark); }
.impact-copy p { color: var(--on-olive-dark-muted); max-width: 540px; line-height: 1.9; }
.impact-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 26px; margin-top: 30px; }
.impact-stat strong { font-family: var(--font-display); font-size: 2.1rem; display: block; color: var(--saffron); line-height: 1.2; }
.impact-stat span { font-size: .82rem; color: var(--on-olive-dark-muted); }
.impact-media { position: relative; border-radius: 22px; overflow: hidden; transform: rotate(-1.5deg); box-shadow: 0 30px 60px -30px #000; }
.impact-media img { aspect-ratio: 4 / 3.4; object-fit: cover; width: 100%; }
.impact-quote {
  position: absolute; bottom: 16px; inset-inline: 16px; background: rgba(var(--tint-rgb), .94);
  color: var(--ink); border-radius: 14px; padding: 12px 14px; font-size: .82rem; line-height: 1.7;
}
.impact-quote strong { display: block; font-size: .78rem; color: var(--terracotta); margin-top: 4px; }

.coop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.coop-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 330px;
  display: flex; align-items: flex-end; color: var(--on-image); box-shadow: var(--shadow-sm);
  isolation: isolate;
}
.coop-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s; }
.coop-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(var(--shade-rgb), .08) 20%, rgba(var(--shade-rgb), .86) 100%);
}
.coop-card:hover img { transform: scale(1.05); }
.coop-body { padding: 20px; width: 100%; }
.coop-tag {
  display: inline-flex; align-items: center; gap: 5px; font-size: .7rem; font-weight: 700;
  background: rgba(var(--tint-rgb), .18); border: 1px solid rgba(255, 255, 255, .3);
  padding: 4px 9px; border-radius: 999px; backdrop-filter: blur(6px); margin-bottom: 8px;
}
.coop-body h3 { font-size: 1.15rem; margin-bottom: 3px; color: var(--on-image); }
.coop-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .78rem; color: var(--on-image-muted); }
.coop-meta span { display: inline-flex; align-items: center; gap: 4px; }
.coop-arrow {
  position: absolute; top: 16px; inset-inline-end: 16px; width: 36px; height: 36px;
  border-radius: 50%; background: rgba(var(--tint-rgb), .92); color: var(--ink);
  display: grid; place-items: center; transition: .2s;
}
.coop-card:hover .coop-arrow { background: var(--terracotta); color: var(--on-primary); }

/* ============ Steps / CTA ============ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; position: relative; box-shadow: var(--shadow-sm);
}
.step-num {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  background: var(--terracotta-soft); color: var(--terracotta);
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; margin-bottom: 16px;
}
.step:nth-child(2) .step-num { background: var(--saffron-soft); color: var(--saffron-ink); }
.step:nth-child(3) .step-num { background: var(--olive-soft); color: var(--olive); }
.step h3 { font-size: 1.08rem; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: .9rem; line-height: 1.8; }
.step-arrow { position: absolute; top: 38px; inset-inline-start: -16px; color: var(--line-2); font-size: 1.2rem; }

.cta-band {
  background: var(--terracotta); color: var(--on-primary); border-radius: 28px; overflow: hidden;
  position: relative; padding: clamp(30px, 5vw, 54px);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.cta-band::after {
  content: ""; position: absolute; inset-inline-start: -60px; top: -80px; width: 260px; height: 260px;
  border-radius: 50%; background: rgba(var(--tint-rgb), .08);
}
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--on-primary); margin-bottom: 6px; }
.cta-band p { color: var(--on-primary-soft); max-width: 560px; }
.cta-band .btn { background: var(--ink); color: var(--on-ink); }

.quote-band { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: start; background: var(--bg-2); border-radius: var(--radius-lg); padding: 32px 36px; border: 1px solid var(--line); }
.quote-band .q-ic { color: var(--terracotta); opacity: .7; }
.quote-band blockquote { margin: 0; font-size: 1.1rem; line-height: 1.9; color: var(--ink-2); }
.quote-band cite { display: block; margin-top: 10px; font-style: normal; font-size: .84rem; color: var(--muted); font-weight: 600; }

/* ============ Shop ============ */
.page-hero { padding: 38px 0 26px; }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: 6px; }
.page-hero p { color: var(--muted); }
.breadcrumbs { display: flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--muted); margin-bottom: 14px; flex-wrap: wrap; }
.breadcrumbs a:hover { color: var(--terracotta); }
.breadcrumbs .ic { opacity: .6; }
.shop-layout { display: grid; grid-template-columns: 250px 1fr; gap: 30px; align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 16px); display: flex; flex-direction: column; gap: 18px; }
.filter-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.filter-box h3 { font-family: var(--font-body); font-size: .86rem; font-weight: 800; margin-bottom: 10px; color: var(--ink); }
.filter-list { display: flex; flex-direction: column; gap: 2px; }
.filter-link {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 7px 9px; border-radius: 9px; font-size: .86rem; color: var(--ink-2);
}
.filter-link:hover { background: var(--bg-2); }
.filter-link.active { background: var(--terracotta-soft); color: var(--terracotta); font-weight: 700; }
.filter-link span.count { font-size: .72rem; color: var(--muted); }
.filter-link.active span.count { color: var(--terracotta); }
.shop-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.shop-search { flex: 1; min-width: 200px; display: flex; align-items: center; gap: 9px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 999px; padding: 0 16px; height: 46px; }
.shop-search input { border: 0; outline: 0; background: transparent; width: 100%; }
.shop-search:focus-within { border-color: var(--terracotta); }
.toolbar-select { min-width: 170px; height: 46px; min-height: 46px; border-radius: 999px; padding-block: 0; }
.result-count { font-size: .84rem; color: var(--muted); }
.mobile-filters { display: none; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.filter-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: var(--bg-2); font-size: .76rem; font-weight: 600; }
.filter-chip a { display: inline-flex; color: var(--muted); }

/* ============ Product page ============ */
.pdp { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(28px, 4vw, 56px); align-items: start; padding-top: 10px; }
.pdp-media { position: sticky; top: calc(var(--header-h) + 20px); }
.pdp-img { border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-2); position: relative; aspect-ratio: 1 / 1; }
.pdp-img img { width: 100%; height: 100%; object-fit: cover; }
.pdp-img .p-badges { top: 16px; inset-inline-start: 16px; }
.pdp-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.pdp-thumb { width: 70px; height: 70px; border-radius: 12px; overflow: hidden; border: 2px solid transparent; opacity: .75; }
.pdp-thumb.active { border-color: var(--terracotta); opacity: 1; }
.pdp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pdp-info .p-coop { font-size: .82rem; margin-bottom: 8px; }
.pdp-info h1 { font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.4; }
.pdp-sub { color: var(--muted); margin-top: 4px; }
.pdp-rating { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: .82rem; color: var(--muted); }
.pdp-rating .stars { transform: scale(1.15); transform-origin: right center; }
.pdp-price-row { display: flex; align-items: flex-end; gap: 12px; margin-top: 20px; padding-block: 16px; border-block: 1px solid var(--line); }
.pdp-price { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--terracotta); line-height: 1; }
.pdp-compare { color: var(--muted-2); text-decoration: line-through; font-size: 1rem; }
.pdp-unit { color: var(--muted); font-size: .85rem; padding-bottom: 3px; }
.pdp-stock { display: inline-flex; align-items: center; gap: 6px; margin-inline-start: auto; font-size: .8rem; font-weight: 600; color: var(--success); padding-bottom: 4px; }
.pdp-stock.low { color: var(--warn-ink); }
.pdp-stock.out { color: var(--danger); }
.pdp-desc { color: var(--ink-2); line-height: 1.9; margin-top: 18px; }
.buy-row { display: flex; gap: 10px; margin-top: 22px; align-items: stretch; }
.qty {
  display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px;
  background: var(--surface); overflow: hidden; flex: none;
}
.qty button { width: 40px; height: 48px; border: 0; background: transparent; display: grid; place-items: center; color: var(--ink-2); }
.qty button:hover { background: var(--bg-2); }
.qty span { min-width: 34px; text-align: center; font-weight: 700; font-size: .95rem; }
.buy-row .btn-primary { flex: 1; }
.pdp-trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 20px; }
.trust-mini { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 12px 6px; border-radius: 14px; background: var(--bg-2); font-size: .72rem; color: var(--ink-2); font-weight: 600; }
.trust-mini .ic { color: var(--olive); }
.info-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 16px 18px; margin-top: 16px; }
.info-card h4 { font-family: var(--font-body); font-size: .86rem; margin-bottom: 6px; display: flex; align-items: center; gap: 7px; }
.info-card h4 .ic { color: var(--terracotta); }
.info-card p { font-size: .83rem; color: var(--muted); line-height: 1.8; }
.delivery-note { display: flex; gap: 10px; align-items: flex-start; }
.delivery-note .ic { color: var(--olive); margin-top: 3px; }
.delivery-note strong { display: block; font-size: .84rem; }
.delivery-note small { color: var(--muted); font-size: .76rem; }
.accordion { border-top: 1px solid var(--line); margin-top: 18px; }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-head { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: none; border: 0; padding: 14px 0; font-weight: 700; font-size: .9rem; text-align: start; }
.acc-head .ic { transition: transform .2s; color: var(--muted); }
.acc-item.open .acc-head .ic { transform: rotate(180deg); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.acc-body-inner { padding-bottom: 14px; font-size: .86rem; color: var(--muted); line-height: 1.85; }
.acc-item.open .acc-body { max-height: 440px; }
.reviews-section { margin-top: 50px; padding-top: 34px; border-top: 1px solid var(--line); }
.review-summary { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin-bottom: 24px; }
.review-score { font-family: var(--font-display); font-size: 2.6rem; line-height: 1; color: var(--terracotta); }
.review-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.review-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.review-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 6px; }
.review-top strong { font-size: .86rem; }
.review-top time { font-size: .72rem; color: var(--muted); }
.review-card p { font-size: .84rem; color: var(--ink-2); line-height: 1.8; }
.review-form { margin-top: 22px; background: var(--bg-2); border-radius: var(--radius); padding: 18px; }
.rate-input { display: flex; gap: 4px; direction: ltr; }
.rate-input button { border: 0; background: none; padding: 2px; color: var(--line-2); }
.rate-input button.on { color: var(--saffron); }

/* ============ Cart ============ */
.cart-layout { display: grid; grid-template-columns: 1.5fr .8fr; gap: 28px; align-items: start; margin-top: 8px; }
.cart-list { display: flex; flex-direction: column; gap: 12px; }
.cart-item {
  display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px;
}
.cart-item img { width: 96px; height: 96px; border-radius: 12px; object-fit: cover; }
.ci-title { font-weight: 700; font-size: .96rem; line-height: 1.5; }
.ci-coop { font-size: .74rem; color: var(--olive); margin-top: 2px; }
.ci-foot { display: flex; align-items: center; gap: 14px; margin-top: 10px; flex-wrap: wrap; }
.ci-price { font-weight: 800; color: var(--terracotta); font-size: .94rem; }
.qty.small button { width: 32px; height: 36px; }
.qty.small span { min-width: 26px; font-size: .85rem; }
.ci-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.ci-remove { color: var(--muted); display: inline-flex; align-items: center; gap: 5px; font-size: .75rem; }
.ci-remove:hover { color: var(--danger); }
.ci-total { font-weight: 800; font-size: .95rem; white-space: nowrap; }
.summary {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 22px; position: sticky; top: calc(var(--header-h) + 16px);
}
.summary h3 { font-size: 1.1rem; margin-bottom: 16px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; font-size: .88rem; color: var(--ink-2); padding-block: 6px; }
.sum-row strong { font-weight: 700; }
.sum-total { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 14px; font-size: 1.05rem; }
.sum-total strong { font-family: var(--font-display); font-size: 1.35rem; color: var(--terracotta); }
.free-ship { background: var(--bg-2); border-radius: 12px; padding: 10px 12px; margin-block: 8px; font-size: .78rem; color: var(--ink-2); }
.free-ship .bar { height: 5px; border-radius: 4px; background: var(--line); margin-top: 7px; overflow: hidden; }
.free-ship .bar span { display: block; height: 100%; background: var(--olive); border-radius: 4px; transition: width .5s; }
.coupon-row { display: flex; gap: 8px; margin-top: 12px; }
.coupon-row .input { min-height: 42px; padding-block: 8px; }
.sum-note { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: .75rem; margin-top: 12px; justify-content: center; }
.continue-link { display: flex; justify-content: center; margin-top: 12px; font-size: .82rem; color: var(--muted); }
.continue-link:hover { color: var(--terracotta); }

/* ============ Checkout ============ */
.checkout-layout { display: grid; grid-template-columns: 1.4fr .8fr; gap: 28px; align-items: start; }
.checkout-steps { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.co-step { display: flex; align-items: center; gap: 7px; font-size: .8rem; color: var(--muted); }
.co-step span { width: 24px; height: 24px; border-radius: 50%; background: var(--bg-2); display: grid; place-items: center; font-size: .75rem; font-weight: 700; }
.co-step.active { color: var(--ink); font-weight: 700; }
.co-step.active span { background: var(--terracotta); color: var(--on-primary); }
.co-sep { width: 22px; height: 1px; background: var(--line-2); }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; margin-bottom: 16px; }
.form-card h3 { font-size: 1.06rem; display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.form-card h3 .n { width: 26px; height: 26px; border-radius: 8px; background: var(--terracotta-soft); color: var(--terracotta); font-family: var(--font-body); font-size: .8rem; display: grid; place-items: center; }
.slot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.radio-card {
  display: flex; align-items: flex-start; gap: 10px; border: 1.5px solid var(--line); border-radius: 13px;
  padding: 12px 14px; cursor: pointer; transition: .18s; background: var(--surface-2); position: relative;
}
.radio-card:hover { border-color: var(--line-2); }
.radio-card input { position: absolute; opacity: 0; pointer-events: none; }
.radio-card.selected { border-color: var(--terracotta); background: var(--surface-tint); box-shadow: 0 0 0 3px rgba(var(--terracotta-rgb), .1); }
.radio-dot { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-2); flex: none; margin-top: 2px; display: grid; place-items: center; }
.radio-dot::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: transparent; transition: .18s; }
.radio-card.selected .radio-dot { border-color: var(--terracotta); }
.radio-card.selected .radio-dot::after { background: var(--terracotta); }
.radio-card strong { display: block; font-size: .88rem; }
.radio-card small { color: var(--muted); font-size: .76rem; line-height: 1.6; display: block; }

/* عناوين محفوظة مختارة فخلاص الطلب */
.addr-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.addr-chip {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  color: var(--ink-2); padding: 7px 13px; font-size: .8rem; cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease, color .16s ease;
}
.addr-chip:hover { border-color: var(--terracotta); color: var(--terracotta); }
.addr-chip.selected { border-color: var(--terracotta); background: var(--surface-tint); color: var(--terracotta); font-weight: 700; }
.addr-chip small { color: var(--muted); font-size: .72rem; }
.addr-chip.selected small { color: var(--terracotta); }
.pay-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pay-option { flex-direction: column; align-items: flex-start; }
.pay-option .pay-ic { display: flex; align-items: center; gap: 6px; color: var(--ink); }
.pay-option .recommended { position: absolute; top: -9px; inset-inline-end: 10px; background: var(--olive); color: var(--on-olive); font-size: .62rem; padding: 2px 8px; border-radius: 999px; font-weight: 700; }
.pay-option.is-off { opacity: .55; cursor: not-allowed; background: var(--bg-2); }
.pay-option.is-off strong { color: var(--muted); }
.pay-option .soon { position: absolute; top: -9px; inset-inline-end: 10px; background: var(--line-2); color: var(--ink-2); font-size: .62rem; padding: 2px 8px; border-radius: 999px; font-weight: 700; }
.pay-panel { margin-top: 14px; padding: 16px; border: 1px dashed var(--line-2); border-radius: 13px; background: var(--surface-2); }
.demo-note { display: flex; align-items: flex-start; gap: 7px; font-size: .75rem; color: var(--warn-ink); background: var(--saffron-soft); border-radius: 9px; padding: 8px 10px; margin-top: 10px; }
.cmi-note { display: flex; align-items: flex-start; gap: 12px; }
.cmi-note .cmi-ic { width: 40px; height: 40px; border-radius: 50%; background: var(--olive-soft); color: var(--olive-dark); display: grid; place-items: center; flex: none; }
.cmi-note strong { display: block; font-size: .88rem; margin-bottom: 4px; color: var(--ink); }
.cmi-note p { font-size: .78rem; color: var(--muted); line-height: 1.7; margin: 0; }
.checkout-summary .cart-mini { display: flex; gap: 10px; padding-block: 8px; border-bottom: 1px solid var(--line); align-items: center; }
.checkout-summary .cart-mini img { width: 46px; height: 46px; border-radius: 9px; object-fit: cover; }
.checkout-summary .cart-mini .cm-info { flex: 1; min-width: 0; }
.checkout-summary .cart-mini strong { display: block; font-size: .8rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.checkout-summary .cart-mini small { color: var(--muted); font-size: .72rem; }
.checkout-summary .cm-price { font-size: .8rem; font-weight: 700; white-space: nowrap; }

/* ============ Order / tracking ============ */
.order-hero { padding: 34px 0 24px; }
.order-hero .pill { margin-bottom: 8px; }
.order-hero h1 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
.order-ref { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--muted); margin-top: 8px; }
.order-ref strong { color: var(--ink); font-family: var(--font-body); direction: ltr; letter-spacing: .04em; }
.order-layout { display: grid; grid-template-columns: 1.35fr .75fr; gap: 26px; align-items: start; }
.timeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin: 18px 0 8px; position: relative; }
.tl-step { position: relative; text-align: center; padding-top: 30px; font-size: .76rem; color: var(--muted); }
.tl-step::before {
  content: ""; position: absolute; top: 10px; inset-inline-start: 50%; width: 100%; height: 2px;
  background: var(--line); z-index: 0;
}
.tl-step:last-child::before { display: none; }
.tl-dot {
  position: absolute; top: 2px; inset-inline-start: 50%; transform: translateX(50%);
  width: 18px; height: 18px; border-radius: 50%; background: var(--bg);
  border: 2px solid var(--line-2); z-index: 1; display: grid; place-items: center;
}
.tl-step.done { color: var(--ink); font-weight: 700; }
.tl-step.done::before { background: var(--olive); }
.tl-step.done .tl-dot { background: var(--olive); border-color: var(--olive); color: var(--on-olive); }
.tl-step.current .tl-dot { box-shadow: 0 0 0 5px rgba(var(--olive-rgb), .22); }
.tl-step.current { color: var(--olive-dark); }
.timeline-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px 22px; }
.timeline-card h3 { font-size: 1rem; display: flex; align-items: center; gap: 8px; }
.timeline-cancelled { padding: 14px; background: var(--danger-bg); border-radius: 12px; color: var(--danger); font-size: .85rem; display: flex; gap: 8px; align-items: center; }
.shipment { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-top: 14px; }
.shipment-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.shipment-head a { font-weight: 700; font-size: .9rem; color: var(--olive-dark); }
.shipment-head a:hover { color: var(--terracotta); }
.shipment-items { display: flex; flex-direction: column; gap: 12px; padding-top: 12px; }
.ship-item { display: flex; gap: 12px; align-items: center; }
.ship-item img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; }
.ship-item .si-info { flex: 1; min-width: 0; }
.ship-item strong { display: block; font-size: .86rem; line-height: 1.5; }
.ship-item small { color: var(--muted); font-size: .74rem; }
.ship-item .si-price { font-size: .84rem; font-weight: 700; white-space: nowrap; }
.order-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: calc(var(--header-h) + 16px); }
.order-side .summary { position: static; }
.side-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.side-card h4 { font-family: var(--font-body); font-size: .86rem; margin-bottom: 10px; display: flex; align-items: center; gap: 7px; }
.side-card p { font-size: .82rem; color: var(--muted); line-height: 1.8; }
.side-card .ic { color: var(--terracotta); }
.demo-panel { border: 1.5px dashed var(--line-2); background: transparent; }
.demo-panel .btn { margin-top: 8px; }
.success-banner { display: flex; align-items: center; gap: 14px; background: var(--olive-soft); border: 1px solid var(--ok-border); color: var(--olive-dark); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 18px; }
.success-banner .s-ic { width: 44px; height: 44px; border-radius: 50%; background: var(--olive); color: var(--on-olive); display: grid; place-items: center; flex: none; }
.success-banner strong { display: block; font-size: .95rem; margin-bottom: 2px; }
.success-banner p { font-size: .82rem; color: var(--ok-ink-2); }

/* ============ Account ============ */
.account-layout { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }
.account-side { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; position: sticky; top: calc(var(--header-h) + 16px); }
.avatar-circle { width: 56px; height: 56px; border-radius: 50%; background: var(--terracotta-soft); color: var(--terracotta); display: grid; place-items: center; font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 10px; }
.account-side h3 { font-family: var(--font-body); font-size: 1rem; }
.account-side .phone { font-size: .8rem; color: var(--muted); direction: ltr; text-align: right; }
.account-menu { display: flex; flex-direction: column; gap: 2px; margin-top: 16px; }
.account-menu a, .account-menu button {
  display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 9px;
  font-size: .86rem; background: none; border: 0; text-align: start; color: var(--ink-2);
}
.account-menu a:hover, .account-menu button:hover { background: var(--bg-2); }
.account-menu .danger { color: var(--danger); }
.account-main h1 { font-size: 1.8rem; margin-bottom: 4px; }
.order-list { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.order-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; transition: .2s;
}
.order-card:hover { border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.oc-ref { font-size: .78rem; color: var(--muted); direction: ltr; text-align: right; }
.oc-date { font-size: .74rem; color: var(--muted); }
.oc-main { flex: 1; min-width: 180px; }
.oc-main strong { font-size: .92rem; display: block; }
.oc-thumbs { display: flex; }
.oc-thumbs img { width: 40px; height: 40px; border-radius: 9px; object-fit: cover; border: 2px solid var(--surface); margin-inline-start: -10px; }
.oc-thumbs img:first-child { margin-inline-start: 0; }
.oc-total { font-weight: 800; color: var(--terracotta); white-space: nowrap; }

/* ============ Auth ============ */
.auth-layout { display: grid; grid-template-columns: 1fr 1fr; min-height: 620px; background: var(--surface); border: 1px solid var(--line); border-radius: 30px; overflow: hidden; margin-block: 30px; }
.auth-media { position: relative; min-height: 300px; }
.auth-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.auth-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(var(--shade-rgb), .82), rgba(var(--shade-rgb), .1) 60%); }
.auth-media-copy { position: absolute; bottom: 30px; inset-inline: 30px; color: var(--on-image); z-index: 2; }
.auth-media-copy h2 { font-size: 1.7rem; color: var(--on-image); margin-bottom: 8px; }
.auth-media-copy p { font-size: .88rem; color: var(--on-image-muted); line-height: 1.8; }
.auth-card { padding: clamp(26px, 4vw, 52px); display: flex; flex-direction: column; justify-content: center; }
.auth-card h1 { font-size: 1.9rem; margin-bottom: 4px; }
.auth-card > p { color: var(--muted); margin-bottom: 22px; font-size: .9rem; }
.tabs { display: flex; gap: 4px; background: var(--bg-2); padding: 4px; border-radius: 999px; margin-bottom: 22px; }
.tab { flex: 1; border: 0; background: transparent; padding: 9px 10px; border-radius: 999px; font-size: .85rem; font-weight: 700; color: var(--muted); }
.tab.active { background: var(--surface); color: var(--ink); box-shadow: 0 2px 8px -2px rgba(0,0,0,.12); }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-foot { margin-top: 16px; font-size: .82rem; color: var(--muted); text-align: center; }
.auth-foot a { color: var(--terracotta); font-weight: 700; }
.demo-logins { margin-top: 22px; border-top: 1px dashed var(--line-2); padding-top: 16px; }
.demo-logins > span { font-size: .74rem; color: var(--muted); display: block; margin-bottom: 8px; }
.demo-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.demo-btns button { border: 1px solid var(--line); background: var(--bg); border-radius: 999px; padding: 6px 12px; font-size: .76rem; font-weight: 600; }
.demo-btns button:hover { border-color: var(--terracotta); color: var(--terracotta); }
.pwa-note { font-size: .72rem; color: var(--muted); display: flex; align-items: center; gap: 6px; margin-top: 12px; }

/* ============ Join coop ============ */
.join-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding-top: 30px; }
.join-hero h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 14px; }
.join-hero p { color: var(--muted); line-height: 1.9; max-width: 480px; }
.join-benefits { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; }
.join-benefits li { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; }
.join-benefits .ic { color: var(--olive); margin-top: 2px; }
.join-form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-sm); }
.join-form-card h2 { font-size: 1.3rem; margin-bottom: 4px; }
.join-form-card > p { color: var(--muted); font-size: .84rem; margin-bottom: 18px; }

/* ============ Footer ============ */
.site-footer { background: var(--footer-bg); color: var(--footer-fg); margin-top: 40px; position: relative; overflow: hidden; }
.footer-pattern {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23fbf7ef' stroke-opacity='.05'%3E%3Cpath d='M60 12l12 28 28 12-28 12-12 28-12-28-28-12 28-12z'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.footer-grid { position: relative; display: grid; grid-template-columns: 1.6fr .8fr .8fr .9fr; gap: 34px; padding-block: 54px 36px; }
.brand-light .brand-text strong { color: var(--footer-strong); }
.brand-light .brand-text small { color: var(--footer-muted); }
.footer-brand p { font-size: .86rem; color: var(--footer-muted); line-height: 1.9; margin-top: 14px; max-width: 330px; }
.footer-badges { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.pay-pill { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--footer-pill-border); border-radius: 999px; padding: 4px 10px; font-size: .7rem; color: var(--footer-pill-fg); }
.footer-col { display: flex; flex-direction: column; gap: 9px; }
.footer-col h4 { font-family: var(--font-body); font-size: .88rem; color: var(--footer-strong); margin-bottom: 4px; }
.footer-col a { font-size: .82rem; color: var(--footer-muted); }
.footer-col a:hover { color: var(--saffron); }
.footer-bottom { position: relative; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--footer-line); padding-block: 18px; font-size: .74rem; color: var(--footer-muted); }

/* ============ Bottom nav ============ */
#bottom-nav { display: none; position: fixed; bottom: 0; inset-inline: 0; z-index: 80; background: var(--glass-strong); border-top: 1px solid var(--line); backdrop-filter: blur(14px); padding-bottom: env(safe-area-inset-bottom); }
.bottom-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.bottom-inner.five { grid-template-columns: repeat(5, 1fr); }
.bottom-link { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 4px 7px; font-size: .68rem; color: var(--muted); font-weight: 600; }
.bottom-link.active { color: var(--terracotta); }
.bottom-ic { position: relative; display: flex; }
.bottom-badge { position: absolute; top: -4px; inset-inline-start: -8px; background: var(--terracotta); color: var(--on-primary); font-size: .6rem; min-width: 16px; height: 16px; border-radius: 999px; display: grid; place-items: center; padding: 0 4px; font-weight: 800; }

/* ============ Dashboards ============ */
.dash-layout { display: grid; grid-template-columns: 240px 1fr; gap: 26px; align-items: start; padding-top: 26px; }
.dash-side { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; position: sticky; top: calc(var(--header-h) + 16px); }
.dash-brand { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.dash-brand .avatar-circle { margin: 0; width: 44px; height: 44px; font-size: 1.1rem; flex: none; }
.dash-brand strong { font-size: .88rem; display: block; line-height: 1.4; }
.dash-brand small { font-size: .7rem; color: var(--muted); }
.dash-nav { display: flex; flex-direction: column; gap: 2px; }
.dash-nav button, .dash-nav a { display: flex; align-items: center; gap: 9px; padding: 10px 11px; border: 0; background: none; border-radius: 9px; font-size: .86rem; color: var(--ink-2); text-align: start; font-weight: 500; }
.dash-nav button:hover, .dash-nav a:hover { background: var(--bg-2); }
.dash-nav .active { background: var(--terracotta-soft); color: var(--terracotta); font-weight: 700; }
.dash-main { min-width: 0; }
.dash-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.dash-head h1 { font-size: clamp(1.55rem, 3vw, 2rem); }
.dash-head p { color: var(--muted); font-size: .86rem; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.kpi .kpi-label { font-size: .76rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.kpi .kpi-value { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; margin-top: 6px; line-height: 1.2; }
.kpi .kpi-value small { font-family: var(--font-body); font-size: .76rem; color: var(--muted); font-weight: 500; }
.kpi .kpi-sub { font-size: .72rem; color: var(--muted); margin-top: 2px; }
.kpi.accent { background: var(--olive-dark); color: var(--on-olive-dark); border-color: transparent; }
.kpi.accent .kpi-label, .kpi.accent .kpi-sub { color: var(--on-olive-dark-muted); }
.kpi.accent .kpi-value { color: var(--saffron); }
.dash-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 16px; margin-bottom: 20px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; min-width: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.panel-head h3 { font-family: var(--font-body); font-size: .92rem; }
.panel-head a { font-size: .76rem; color: var(--terracotta); font-weight: 700; }
.chart { display: flex; align-items: flex-end; gap: 10px; height: 150px; padding-top: 10px; }
.chart .bar-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.chart .bar { width: 100%; max-width: 34px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--saffron), var(--saffron-2)); min-height: 4px; transition: height .6s; position: relative; }
.chart .bar-wrap:hover .bar { background: var(--terracotta); }
.chart .bar-label { font-size: .65rem; color: var(--muted); }
.chart .bar-value { font-size: .62rem; color: var(--ink-2); font-weight: 700; direction: ltr; }
.data-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.data-table th { text-align: start; font-weight: 600; color: var(--muted); font-size: .72rem; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.data-table td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table .t-title { display: flex; align-items: center; gap: 9px; min-width: 150px; }
.data-table .t-title img { width: 38px; height: 38px; border-radius: 8px; object-fit: cover; }
.data-table .t-title strong { font-size: .8rem; display: block; line-height: 1.4; }
.data-table .t-title small { color: var(--muted); font-size: .68rem; }
.table-wrap { overflow-x: auto; }
.row-actions { display: flex; gap: 5px; align-items: center; }
.mini-btn { border: 1px solid var(--line); background: var(--surface-2); border-radius: 8px; padding: 5px 9px; font-size: .72rem; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.mini-btn:hover { border-color: var(--terracotta); color: var(--terracotta); }
.mini-btn.primary { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.mini-btn.primary:hover { background: var(--terracotta); border-color: var(--terracotta); color: var(--on-primary); }
.mini-btn.danger { color: var(--danger); }
.mini-btn:disabled { opacity: .45; cursor: not-allowed; }
.order-row { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: var(--surface); margin-bottom: 10px; }
.order-row-top { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; }
.order-row-top .ref { font-size: .76rem; color: var(--muted); direction: ltr; }
.order-row-body { display: flex; gap: 12px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.order-row-body .cust { font-size: .8rem; color: var(--muted); }
.order-status-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.dash-empty { text-align: center; padding: 30px 16px; color: var(--muted); font-size: .86rem; }
.ops-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.ops-chart { display: flex; align-items: flex-end; gap: 6px; height: 140px; padding-top: 10px; }
.ops-bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; height: 100%; }
.ops-bar > span { width: 100%; max-width: 42px; background: linear-gradient(180deg, var(--terracotta), var(--saffron)); border-radius: 6px 6px 3px 3px; min-height: 4px; transition: height .3s ease; }
.ops-bar > small { font-size: .62rem; color: var(--muted); direction: ltr; }
.modal-extra { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 16px; }
.modal-extra > h3 { font-size: 1rem; display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
@media (max-width: 760px) { .ops-grid { grid-template-columns: 1fr; } }
.dash-tabs { display: none; gap: 4px; background: var(--bg-2); border-radius: 999px; padding: 4px; margin-bottom: 16px; overflow-x: auto; }
.dash-tabs button { flex: 1; border: 0; background: transparent; border-radius: 999px; padding: 8px 10px; font-size: .8rem; font-weight: 600; white-space: nowrap; color: var(--muted); }
.dash-tabs button.active { background: var(--surface); color: var(--ink); box-shadow: 0 2px 6px -2px rgba(0,0,0,.12); }
.pending-banner { display: flex; gap: 10px; align-items: flex-start; background: var(--saffron-soft); border: 1px solid var(--warn-border); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 16px; font-size: .82rem; color: var(--warn-ink-soft); }
.pending-banner .ic { margin-top: 3px; }
.pending-banner.pay-fail { background: var(--danger-bg); border-color: var(--danger-border); color: var(--danger); }
.pay-wait-note { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--muted); margin-top: 8px; }
.pay-wait-note .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--saffron); animation: payPulse 1.2s ease-in-out infinite; }
@keyframes payPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.75); } }
.stock-low { color: var(--danger); font-weight: 700; }
.top-product-row { display: flex; align-items: center; gap: 9px; padding-block: 8px; border-bottom: 1px solid var(--line); font-size: .8rem; }
.top-product-row:last-child { border-bottom: 0; }
.top-product-row .rank { width: 22px; height: 22px; border-radius: 7px; background: var(--bg-2); display: grid; place-items: center; font-size: .7rem; font-weight: 800; color: var(--muted); flex: none; }
.top-product-row .tp-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-product-row .tp-rev { font-weight: 700; white-space: nowrap; }

/* ============ Modal / toast / misc ============ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 150; background: var(--scrim);
  display: grid; place-items: center; padding: 18px; opacity: 0; transition: opacity .22s;
  backdrop-filter: blur(3px); overflow-y: auto;
}
.modal-overlay.show { opacity: 1; }
.modal {
  background: var(--surface); border-radius: 22px; width: min(640px, 100%); max-height: 90vh;
  overflow-y: auto; padding: 24px; position: relative; transform: translateY(12px) scale(.99);
  transition: transform .22s; box-shadow: 0 40px 100px -40px #000;
}
.modal-overlay.show .modal { transform: none; }
.modal.wide { width: min(860px, 100%); }
.modal h2 { font-size: 1.3rem; margin-bottom: 4px; }
.modal .modal-sub { color: var(--muted); font-size: .84rem; margin-bottom: 18px; }
.modal-close { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 2; }
.modal-actions { display: flex; gap: 8px; justify-content: flex-start; margin-top: 20px; }
.image-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 8px; max-height: 180px; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; padding: 8px; }
.image-current { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2, rgba(0,0,0,.02)); }
.image-current img { width: 92px; height: 92px; border-radius: 10px; object-fit: cover; flex: none; }
.file-btn { position: relative; overflow: hidden; }
.img-opt { border-radius: 9px; overflow: hidden; border: 2px solid transparent; padding: 0; background: none; aspect-ratio: 1; }
.img-opt img { width: 100%; height: 100%; object-fit: cover; }
.img-opt.selected { border-color: var(--terracotta); }
.toast-root { position: fixed; bottom: 24px; inset-inline-start: 50%; transform: translateX(50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 9px; background: var(--ink); color: var(--toast-fg);
  padding: 11px 18px; border-radius: 999px; font-size: .85rem; font-weight: 600;
  box-shadow: 0 18px 40px -18px rgba(0,0,0,.5); opacity: 0; transform: translateY(10px); transition: .28s;
  max-width: min(92vw, 520px);
}
.toast.show { opacity: 1; transform: none; }
.toast-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--saffron); flex: none; }
.toast-success .toast-dot { background: var(--toast-ok); }
.toast-error .toast-dot { background: var(--toast-err); }
.empty-state { text-align: center; padding: 52px 20px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.empty-ic { width: 74px; height: 74px; border-radius: 22px; background: var(--bg-2); color: var(--muted); display: grid; place-items: center; margin-bottom: 8px; }
.empty-state h3 { font-size: 1.25rem; }
.empty-state p { color: var(--muted); font-size: .88rem; max-width: 340px; margin-bottom: 10px; }
.spinner { width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--terracotta); animation: spin .8s linear infinite; }
.page-loading { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 100px 0; color: var(--muted); font-size: .84rem; }
.skeleton-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.sk { background: linear-gradient(90deg, var(--skel-1) 25%, var(--skel-2) 37%, var(--skel-1) 63%); background-size: 400% 100%; animation: shimmer 1.4s infinite linear; border-radius: 8px; }
.sk-media { aspect-ratio: 1; margin-bottom: 10px; border-radius: 12px; }
.sk-line { height: 10px; margin-bottom: 8px; }
.sk-line.w60 { width: 60%; }
.sk-line.w40 { width: 40%; }
.spin-center { display: flex; justify-content: center; padding: 30px; }
.notfound { text-align: center; padding: 90px 20px; }
.notfound h1 { font-size: 3rem; color: var(--terracotta); }
.notfound p { color: var(--muted); margin-bottom: 18px; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { to { background-position: -400% 0; } }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
#app.page-in { animation: pageIn .32s ease backwards; }

/* How page */
.how-hero { text-align: center; max-width: 720px; margin-inline: auto; padding-top: 40px; }
.how-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin-block: 8px 12px; }
.how-hero p { color: var(--muted); font-size: 1.02rem; }
.how-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.how-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.how-card .hc-ic { width: 44px; height: 44px; border-radius: 13px; background: var(--olive-soft); color: var(--olive-dark); display: grid; place-items: center; margin-bottom: 12px; }
.how-card h3 { font-family: var(--font-body); font-size: 1rem; margin-bottom: 6px; }
.how-card p { font-size: .87rem; color: var(--muted); line-height: 1.9; }
.faq { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; background: none; border: 0; text-align: start; padding: 16px 0; font-weight: 700; font-size: .92rem; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-a { display: none; padding-bottom: 16px; color: var(--muted); font-size: .87rem; line-height: 1.9; }
.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-q .ic { transform: rotate(180deg); }
.faq-q .ic { transition: .2s; color: var(--muted); }

/* ============ Coop profile ============ */
.coop-profile { margin-top: 4px; }
.coop-cover {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  min-height: 360px; display: flex; align-items: flex-end;
  background: var(--ink); box-shadow: var(--shadow-md);
}
.coop-cover > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.coop-cover-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(var(--shade-rgb), .05) 0%, rgba(var(--shade-rgb), .28) 38%, rgba(var(--shade-rgb), .62) 66%, rgba(var(--shade-rgb), .93) 100%);
}
.coop-cover-body { position: relative; padding: clamp(22px, 4vw, 40px); color: var(--on-image); width: 100%; }
.coop-profile-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.coop-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(var(--tint-rgb), .16); border: 1px solid rgba(var(--tint-rgb), .28);
  backdrop-filter: blur(6px); border-radius: 999px; padding: 5px 11px;
  font-size: .72rem; font-weight: 600;
}
.coop-cover-body h1 {
  display: flex; align-items: center; gap: 10px;
  font-size: clamp(1.9rem, 4.4vw, 3rem); color: var(--on-image);
  text-shadow: 0 2px 20px rgba(0, 0, 0, .4);
}
.coop-verified {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  background: var(--saffron); color: var(--ink); display: inline-grid; place-items: center;
  box-shadow: 0 4px 14px -4px rgba(var(--terracotta-rgb), .5);
}
.coop-cover-meta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 14px; font-size: .84rem; color: var(--on-image-muted); }
.coop-cover-meta span { display: inline-flex; align-items: center; gap: 6px; }
.coop-cover-meta .ic { color: var(--saffron); }

.coop-story {
  display: grid; grid-template-columns: 1.5fr .9fr; gap: 34px;
  padding: 38px 0 8px; align-items: start;
}
.coop-story-text { color: var(--ink-2); font-size: .95rem; line-height: 2; }
.coop-perks { display: grid; gap: 8px; margin-top: 18px; }
.coop-perks li {
  display: flex; align-items: center; gap: 9px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 11px; padding: 9px 12px;
  font-size: .84rem; color: var(--ink-2); font-weight: 500;
}
.coop-perks .ic { color: var(--olive); flex: none; }
.coop-facts {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow-sm);
}
.coop-facts h3 { font-family: var(--font-body); font-size: .92rem; margin-bottom: 12px; }
.fact-row {
  display: flex; justify-content: space-between; gap: 16px;
  padding-block: 9px; border-bottom: 1px solid var(--line); font-size: .82rem;
}
.fact-row:last-of-type { border-bottom: 0; }
.fact-row span { color: var(--muted); }
.fact-row strong { text-align: end; font-weight: 600; }
.coop-trust {
  display: flex; align-items: center; gap: 8px; margin-top: 14px;
  background: var(--olive-soft); color: var(--olive-dark);
  border-radius: 11px; padding: 10px 12px; font-size: .76rem; font-weight: 600;
}

.quick-add.added { background: var(--olive); border-color: var(--olive); color: var(--on-olive); transform: scale(1.04); }

/* ============ Admin extras ============ */
.admin-avatar { background: var(--olive-soft); color: var(--olive-dark); font-size: 1rem; }
.mono-ref { direction: ltr; display: inline-block; font-size: .76rem; font-weight: 700; color: var(--terracotta); }
.mono-ref:hover { text-decoration: underline; }
.status-bars { display: flex; flex-direction: column; gap: 10px; }
.status-bar-row { display: grid; grid-template-columns: 96px 1fr 34px; align-items: center; gap: 10px; }
.sb-label .pill { font-size: .68rem; }
.sb-track { height: 9px; border-radius: 999px; background: var(--bg-2); overflow: hidden; }
.sb-fill { display: block; height: 100%; border-radius: 999px; background: var(--line-2); transition: width .6s; }
.sb-fill.sb-pending { background: var(--saffron); }
.sb-fill.sb-confirmed, .sb-fill.sb-preparing { background: var(--info-fill); }
.sb-fill.sb-shipped { background: var(--olive); }
.sb-fill.sb-delivered { background: var(--success); }
.sb-fill.sb-cancelled { background: var(--danger); }
.sb-num { font-size: .76rem; font-weight: 700; text-align: end; direction: ltr; }
.pay-tag {
  display: inline-block; font-size: .68rem; font-weight: 600; white-space: nowrap;
  background: var(--bg-2); color: var(--muted); border-radius: 999px; padding: 3px 9px;
}
.pay-tag.paid { background: var(--ok-bg); color: var(--ok-ink); }

/* ---- Panel switching ---- */
.dash-section { display: block; }
.dash-section[hidden] { display: none; }

/* ---- Permissions in the side bar / team editor ---- */
.dash-perms { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.dash-perms small { display: block; font-size: .7rem; font-weight: 700; color: var(--muted); margin-bottom: 7px; }
.perm-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.perm-chips .pill { font-size: .65rem; padding: 3px 8px; }
.perm-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 9px;
  border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: var(--surface-2);
}
.perm-grid .pill { margin-inline-start: 4px; }
.data-table .perm-chips { max-width: 230px; }

/* ---- Reports ---- */
.chart-wide { height: 200px; gap: 6px; }
.chart-wide .bar { max-width: 26px; }
.report-filters { padding: 16px 18px; }
.report-filters form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.report-filters .field { min-width: 150px; }
.report-filters .field label { display: block; margin-bottom: 4px; }

/* ---- Shipping methods in checkout ---- */
.ship-grid { display: grid; gap: 10px; }
.ship-card { align-items: flex-start; }
.ship-info { flex: 1; min-width: 0; }
.ship-info .pill { margin-inline-start: 4px; vertical-align: middle; }
.ship-fee { font-weight: 800; font-size: .84rem; color: var(--terracotta); white-space: nowrap; }
.ship-card.is-off { opacity: .5; cursor: not-allowed; }
.ship-card.is-off .ship-fee { color: var(--muted); }

/* ---- Order tracking timeline ---- */
.event-list { display: flex; flex-direction: column; }
.event-row {
  display: grid; grid-template-columns: 12px 1fr; gap: 12px; padding: 12px 2px;
  border-bottom: 1px dashed var(--line); position: relative;
}
.event-row:last-child { border-bottom: 0; }
.event-dot { width: 11px; height: 11px; border-radius: 999px; background: var(--line-2); margin-top: 7px; flex: none; }
.event-dot.pending { background: var(--saffron); }
.event-dot.confirmed, .event-dot.preparing { background: var(--info-fill); }
.event-dot.shipped { background: var(--olive); }
.event-dot.delivered { background: var(--success); }
.event-dot.cancelled { background: var(--danger); }
.event-body strong { display: block; font-size: .84rem; font-weight: 600; }
.event-body small { color: var(--muted); font-size: .72rem; }

/* ---- Coop settlement terms ---- */
.terms-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.terms-grid > div { background: var(--bg-2); border-radius: 12px; padding: 10px 13px; }
.terms-grid .span-2 { grid-column: span 2; }
.terms-grid small { display: block; font-size: .7rem; font-weight: 700; color: var(--muted); margin-bottom: 3px; }
.terms-grid strong { font-size: .84rem; line-height: 1.5; word-break: break-word; }

.checkout-form { min-width: 0; }

/* ============ Theme switch ============ */
.theme-toggle { position: relative; }
.theme-toggle:hover { color: var(--saffron); border-color: var(--saffron); }
.msg-btn { position: relative; }
.msg-count { inset-inline-start: auto; inset-inline-end: -2px; background: var(--olive); }

/* ============ Favorites ============ */
.fav-btn {
  position: absolute;
  bottom: 10px;
  inset-inline-end: 10px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--glass-strong);
  color: var(--muted);
  cursor: pointer;
  z-index: 2;
  transition: color .18s ease, transform .18s ease, background-color .18s ease;
}
.fav-btn:hover { color: var(--terracotta); transform: translateY(-1px); }
.fav-btn.is-on { color: var(--danger); border-color: var(--danger); }
.fav-btn.is-on svg { fill: var(--danger); }
.fav-inline { display: inline-flex; align-items: center; gap: 6px; }
.fav-inline.is-on { color: var(--danger); }
.fav-inline.is-on svg { fill: var(--danger); }

/* ============ Account: tabs + عناوين ============ */
.acct-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.acct-tab {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--line); background: var(--surface); color: var(--muted);
  border-radius: 999px; padding: 7px 14px; font-size: .82rem; font-weight: 700; cursor: pointer;
  transition: color .16s ease, border-color .16s ease, background-color .16s ease;
}
.acct-tab:hover { color: var(--terracotta); border-color: var(--terracotta); }
.acct-tab.active { background: var(--terracotta); border-color: var(--terracotta); color: var(--on-primary); }
.acct-tab .tab-n {
  min-width: 20px; padding: 0 6px; border-radius: 999px; font-size: .7rem;
  background: rgba(var(--ink-rgb), .1); color: inherit;
}
.acct-tab.active .tab-n { background: rgba(var(--on-primary-rgb, 255, 255, 255), .22); }
.addr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.addr-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 14px; }
.addr-card.is-default { border-color: var(--olive); box-shadow: 0 0 0 3px var(--olive-soft); }
.addr-card p { font-size: .82rem; color: var(--muted); line-height: 1.7; margin: 8px 0 12px; }
.addr-top { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.addr-foot { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }

/* ============ Chat / messages ============ */
.chat-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.chat-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chat-new { display: flex; gap: 8px; flex-wrap: wrap; }
.chat-layout { display: grid; grid-template-columns: 320px 1fr; gap: 16px; align-items: start; min-height: 460px; }
.chat-side {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 640px;
  overflow-y: auto;
}
.thread-item {
  display: flex;
  gap: 10px;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  transition: background-color .16s ease;
}
.thread-item:last-child { border-bottom: 0; }
.thread-item:hover { background: var(--bg-2); }
.thread-item.active { background: var(--surface-tint); box-shadow: inset 3px 0 0 var(--terracotta); }
.thread-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--bg-2); color: var(--muted); flex: none; }
.thread-ic.order { background: var(--olive-soft); color: var(--olive-dark); }
.thread-ic.support { background: var(--info-bg); color: var(--info-ink); }
.thread-ic.team { background: var(--violet-bg); color: var(--violet-ink); }
.thread-main { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 3px; }
.thread-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.thread-subject { font-weight: 700; font-size: .87rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread-time { font-size: .66rem; color: var(--muted-2); white-space: nowrap; }
.thread-bottom { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.thread-preview { font-size: .78rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.thread-unread { background: var(--terracotta); color: var(--on-primary); font-size: .64rem; font-weight: 800; min-width: 18px; height: 18px; border-radius: 999px; display: grid; place-items: center; padding: 0 5px; }
.thread-coop { font-size: .7rem; color: var(--olive); display: inline-flex; align-items: center; gap: 4px; }
.thread-none { padding: 22px 16px; font-size: .82rem; color: var(--muted); text-align: center; }
.chat-main {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 460px;
}
.chat-head { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.chat-head-main { flex: 1; min-width: 0; }
.chat-title { font-weight: 800; font-size: .95rem; }
.chat-sub { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .74rem; color: var(--muted); margin-top: 3px; }
.chat-state.closed { color: var(--danger); font-weight: 700; }
.chat-back { display: none; }
.chat-body { flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 12px; background: var(--surface-2); min-height: 260px; max-height: 520px; }
.chat-none { margin: auto; text-align: center; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: .84rem; }
.msg { max-width: min(76%, 520px); display: flex; flex-direction: column; gap: 3px; }
.msg.mine { align-self: flex-start; align-items: flex-start; }
.msg.other { align-self: flex-end; align-items: flex-end; }
.msg-author { font-size: .68rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.msg-role { background: var(--olive-soft); color: var(--olive-dark); border-radius: 999px; padding: 1px 7px; font-weight: 700; font-size: .62rem; }
.msg-body {
  padding: 10px 13px;
  border-radius: 16px;
  font-size: .87rem;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
  background: var(--surface);
  border: 1px solid var(--line);
}
.msg.mine .msg-body { background: var(--terracotta); color: var(--on-primary); border-color: transparent; border-start-start-radius: 6px; }
.msg.other .msg-body { border-start-end-radius: 6px; }
.msg-time { font-size: .62rem; color: var(--muted-2); }
.composer { display: flex; gap: 10px; align-items: flex-end; padding: 12px 14px; border-top: 1px solid var(--line); background: var(--surface); }
.composer textarea {
  flex: 1;
  resize: none;
  min-height: 42px;
  max-height: 140px;
  padding: 10px 13px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--ink);
  font: inherit;
  font-size: .88rem;
}
.composer textarea:focus { outline: 2px solid rgba(var(--terracotta-rgb), .25); border-color: var(--terracotta); }
.chat-picker { margin: auto; padding: 30px 20px; }

/* ============ Admin: appearance / payments / coupons / alerts ============ */
.appearance-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.theme-cards { display: grid; gap: 12px; }
.theme-card {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  text-align: start;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.theme-card:hover { transform: translateY(-1px); }
.theme-card.active { border-color: var(--terracotta); box-shadow: 0 0 0 3px rgba(var(--terracotta-rgb), .16); }
.theme-card.selected { background: var(--surface-2); }
.theme-card.editing::after {
  content: "بلا حفظ";
  margin-inline-start: auto;
  font-size: .68rem;
  font-weight: 700;
  color: var(--danger);
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  border-radius: 999px;
  padding: 2px 9px;
  white-space: nowrap;
}
.theme-chips { display: flex; gap: 5px; }
.theme-chip-dot { width: 22px; height: 22px; border-radius: 7px; border: 1px solid rgba(var(--ink-rgb), .16); }
.theme-card-body { flex: 1; min-width: 0; }
.theme-card-body strong { display: block; font-size: .9rem; }
.theme-card-body span { display: block; font-size: .76rem; color: var(--muted); }
.swatch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.swatch { border: 1px solid var(--line); border-radius: 12px; padding: 10px; background: var(--surface-2); }
.swatch label { display: block; font-size: .72rem; color: var(--muted); margin-bottom: 6px; }
.swatch-row { display: flex; align-items: center; gap: 8px; }
.swatch input[type="color"] { width: 34px; height: 30px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: none; cursor: pointer; }
.swatch input[type="text"] { flex: 1; min-width: 0; font-size: .78rem; font-family: ui-monospace, "Cascadia Mono", monospace; }
.swatch .reset-one { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 4px; border-radius: 6px; }
.swatch .reset-one:hover { color: var(--danger); background: var(--danger-bg); }
.preview-shell { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg); color: var(--ink); }
.preview-top { padding: 16px; background: var(--surface); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.preview-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.preview-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.preview-pill-row { display: flex; gap: 6px; flex-wrap: wrap; }
.alert-list { display: flex; flex-direction: column; gap: 8px; }
.alert-row { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-size: .84rem; }
.alert-row.warn { border-color: var(--warn-border); background: var(--warn-bg); color: var(--warn-ink); }
.alert-row.danger { border-color: var(--danger-border); background: var(--danger-bg); color: var(--danger); }
.alert-row.ok { border-color: var(--ok-border); background: var(--ok-bg); color: var(--ok-ink); }
.alert-row .ic { flex: none; }
.alert-row .grow { flex: 1; min-width: 0; }
.method-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.method-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; background: var(--surface); display: flex; flex-direction: column; gap: 8px; }
.method-card.off { opacity: .62; }
.method-head { display: flex; align-items: center; gap: 9px; }
.method-head strong { flex: 1; min-width: 0; font-size: .9rem; }
.method-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--bg-2); color: var(--olive-dark); flex: none; }
.method-desc { font-size: .78rem; color: var(--muted); line-height: 1.55; }
.method-meta { display: flex; gap: 6px; flex-wrap: wrap; font-size: .72rem; color: var(--muted); }
.method-foot { display: flex; gap: 8px; align-items: center; justify-content: space-between; margin-top: 2px; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: .8rem; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .track { width: 42px; height: 24px; border-radius: 999px; background: var(--line-2); transition: background-color .18s ease; flex: none; }
.switch .track::after { content: ""; display: block; width: 18px; height: 18px; border-radius: 50%; background: var(--surface); margin: 3px; transition: transform .18s ease; box-shadow: var(--shadow-sm); }
.switch input:checked + .track { background: var(--olive); }
.switch input:checked + .track::after { transform: translateX(-18px); }
.rtl-note { font-size: .74rem; color: var(--muted); }

/* ============ استرجاع كلمة السر ============ */
.auth-back {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  font-size: .8rem; font-weight: 700; color: var(--muted); margin-bottom: 16px; transition: .18s;
}
.auth-back:hover { color: var(--terracotta); gap: 9px; }
.demo-hint {
  display: none; align-items: flex-start; gap: 8px; padding: 10px 14px; border-radius: 12px;
  background: var(--info-bg); color: var(--info-ink); font-size: .84rem; font-weight: 500; line-height: 1.6;
}
.demo-hint.show { display: flex; }
.demo-hint .ic { flex: none; margin-top: 2px; }
.forgot-row { display: flex; justify-content: flex-end; margin-top: -4px; }
.forgot-row a { font-size: .8rem; font-weight: 700; color: var(--terracotta); }
.forgot-row a:hover { text-decoration: underline; }

/* ============ كرت الأمان فحسابي ============ */
.security-card {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  padding: 20px 22px;
}
.security-card .section-head { align-items: center; }
.security-card .pill { font-size: .66rem; }
.pwd-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* ============ جرس الإشعارات ============ */
.notif-btn { position: relative; }
.notif-count { inset-inline-start: auto; inset-inline-end: -2px; background: var(--saffron); color: var(--ink); }
.notif-count.has { background: var(--terracotta); color: var(--on-primary); }

/* ============ صفحة الإشعارات ============ */
.notif-hero {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 18px; flex-wrap: wrap; padding-bottom: 20px;
}
.notif-hero p { max-width: 560px; }
.notif-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.notif-actions .pill { font-size: .72rem; }
.notif-list { display: flex; flex-direction: column; gap: 10px; padding-bottom: 20px; }
.notif-item {
  position: relative; display: flex; align-items: flex-start; gap: 14px; min-width: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background-color .18s ease;
}
.notif-item:hover { border-color: var(--line-2); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.notif-item.unread { background: var(--surface-tint); border-color: rgba(var(--terracotta-rgb), .28); }
.notif-ic {
  flex: none; width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center;
  background: var(--bg-2); color: var(--ink-2);
}
.notif-order .notif-ic { background: var(--olive-soft); color: var(--olive); }
.notif-coop .notif-ic { background: var(--terracotta-soft); color: var(--terracotta); }
.notif-stock .notif-ic { background: var(--warn-bg); color: var(--warn-ink); }
.notif-finance .notif-ic { background: var(--ok-bg); color: var(--ok-ink); }
.notif-price .notif-ic { background: var(--saffron-soft); color: var(--saffron-ink); }
.notif-review .notif-ic { background: var(--violet-bg); color: var(--violet-ink); }
.notif-main { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.notif-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.notif-top strong { font-size: .9rem; line-height: 1.5; }
.notif-top time { flex: none; font-size: .7rem; color: var(--muted); }
.notif-body { font-size: .82rem; color: var(--muted); line-height: 1.65; }
.notif-kind { font-size: .68rem; font-weight: 700; color: var(--muted-2); margin-top: 2px; }
.notif-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--terracotta); margin-top: 6px; }

/* ============ تقييمات بالصور ============ */
.review-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.verified-buy {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px;
  background: var(--ok-bg); color: var(--ok-ink); font-size: .66rem; font-weight: 800;
}
.verified-buy .ic { margin-top: -1px; }
.review-photos { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.review-photo {
  display: block; width: 72px; height: 72px; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line); transition: border-color .18s ease, transform .18s ease;
}
.review-photo:hover { border-color: var(--terracotta); transform: translateY(-1px); }
.review-photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-picker { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.photo-add {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px; border-radius: 999px;
  border: 1.5px dashed var(--line-2); background: var(--surface); color: var(--ink-2);
  font-size: .8rem; font-weight: 700; cursor: pointer; transition: .18s;
}
.photo-add:hover { border-color: var(--terracotta); color: var(--terracotta); background: var(--surface-tint); }
.photo-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.photo-thumb {
  position: relative; width: 62px; height: 62px; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line);
}
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.photo-thumb button {
  position: absolute; top: 3px; inset-inline-end: 3px; width: 20px; height: 20px; padding: 0;
  border: 0; border-radius: 50%; background: rgba(var(--shade-rgb), .72); color: #fff;
  display: grid; place-items: center; transition: background-color .18s ease;
}
.photo-thumb button:hover { background: var(--danger); }

/* ============ Responsive ============ */
@media (max-width: 1100px) {
  .main-nav { display: none; }
  .header-search { width: min(340px, 35vw); margin-inline-start: auto; }
  .hero-inner { gap: 30px; }
  .float-card.fc-top { inset-inline-start: 0; }
  .float-card.fc-bottom { inset-inline-end: 0; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .container { width: min(var(--max), 100% - 32px); }
  .announce { font-size: .7rem; }
  .announce-inner { gap: 16px; }
  .announce-soft { display: none; }
  .header-search { display: none; }
  .search-jump { display: inline-flex; }
  .hero { padding-block: 26px 40px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-copy { order: 1; text-align: center; }
  .hero h1 { font-size: clamp(2.1rem, 7vw, 3rem); }
  .hero-lead { margin-inline: auto; }
  .hero-cta, .hero-points, .hero-note { justify-content: center; }
  .hero-media { order: 2; max-width: 460px; margin-inline: auto; width: 100%; }
  .arch { aspect-ratio: 5 / 5; border-radius: 200px 200px 24px 24px; }
  .float-card.fc-top { inset-inline-start: -4px; top: 7%; }
  .float-card.fc-bottom { inset-inline-end: -4px; bottom: 6%; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(3) { border-inline-start: 0; }
  .trust-item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .trust-item { padding: 16px; }
  .section { padding-block: 52px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 22px; }
  .product-grid, .product-grid.three { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .p-title { font-size: .88rem; min-height: 2.8em; }
  .p-body { padding: 11px 12px 12px; }
  .impact-inner { grid-template-columns: 1fr; }
  .impact-media { order: -1; max-height: 280px; }
  .impact-media img { aspect-ratio: 16 / 9; }
  .coop-grid { grid-template-columns: 1fr 1fr; }
  .coop-grid .coop-card:last-child { grid-column: 1 / -1; min-height: 240px; }
  .steps { grid-template-columns: 1fr; }
  .step-arrow { display: none; }
  .shop-layout { grid-template-columns: 1fr; }
  .filters { display: none; }
  .mobile-filters { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 16px; padding-bottom: 4px; }
  .mobile-filters a { white-space: nowrap; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: .78rem; font-weight: 600; }
  .mobile-filters a.active { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
  .pdp { grid-template-columns: 1fr; gap: 22px; }
  .pdp-media { position: static; }
  .pdp-img { max-width: 560px; margin-inline: auto; }
  .reviews-section { margin-top: 34px; }
  .review-list { grid-template-columns: 1fr; }
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .summary, .order-side { position: static; }
  .order-layout { grid-template-columns: 1fr; }
  .account-layout { grid-template-columns: 1fr; }
  .account-side { position: static; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px; }
  .account-side .avatar-circle { margin-bottom: 0; }
  .account-menu { flex-direction: row; flex-wrap: wrap; margin-top: 0; }
  .auth-layout { grid-template-columns: 1fr; min-height: 0; }
  .auth-media { min-height: 230px; }
  .auth-media-copy { inset-inline: 22px; bottom: 20px; }
  .join-hero { grid-template-columns: 1fr; gap: 24px; }
  .join-hero .join-benefits { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; padding-block: 40px 26px; }
  .footer-brand { grid-column: 1 / -1; }
  .dash-layout { grid-template-columns: 1fr; gap: 14px; }
  .dash-side { display: none; }
  .dash-main { width: 100%; }
  .dash-tabs { display: flex; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .dash-grid { grid-template-columns: 1fr; }
  .quote-band { grid-template-columns: 1fr; padding: 24px; }
  .quote-band .q-ic { display: none; }
  .how-grid { grid-template-columns: 1fr; }
  .coop-cover { min-height: 300px; border-radius: var(--radius); }
  .coop-story { grid-template-columns: 1fr; gap: 22px; padding-top: 28px; }
  .coop-cover-meta { gap: 10px 16px; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .appearance-grid { grid-template-columns: 1fr; }
  .chat-layout { grid-template-columns: 1fr; }
  .chat-layout.show-thread .chat-side { display: none; }
  .chat-layout:not(.show-thread) .chat-main { display: none; }
  .chat-back { display: grid; }
  .msg { max-width: 88%; }
}
@media (max-width: 640px) {
  body { padding-bottom: 66px; }
  #bottom-nav { display: block; }
  .announce-inner { min-height: 32px; }
  .header-inner { min-height: 64px; gap: 6px; }
  .brand-text strong { font-size: 1.12rem; }
  .brand-text small { font-size: .6rem; }
  .brand-mark svg, .brand-mark .brand-img { width: 36px; height: 36px; }
  .account-link .icon-btn { width: 38px; height: 38px; }
  .cart-btn { width: 38px; height: 38px; }
  .icon-btn { width: 38px; height: 38px; }
  .search-jump { display: none; }
  .hero { padding-top: 18px; }
  .hero h1 { font-size: clamp(1.9rem, 8.5vw, 2.5rem); line-height: 1.3; }
  .hero-lead { font-size: .95rem; }
  .hero-cta .btn { flex: 1; min-width: 130px; padding-inline: 16px; }
  .hero-points { gap: 10px 16px; font-size: .8rem; }
  .hero-note { font-size: .74rem; }
  .float-card { padding: 8px 10px; }
  .float-card .fc-ic { width: 32px; height: 32px; }
  .float-card strong { font-size: .78rem; }
  .float-card small { font-size: .65rem; }
  .fc-product img { width: 38px; height: 38px; }
  .float-card.fc-top { top: 5%; }
  .float-card.fc-bottom { bottom: 5%; }
  .trust-item { padding: 12px 10px; gap: 8px; }
  .trust-item .t-ic { width: 34px; height: 34px; border-radius: 10px; }
  .trust-item strong { font-size: .78rem; }
  .trust-item small { font-size: .68rem; }
  .cat-scroller { grid-auto-columns: 132px; gap: 10px; }
  .cat-card { padding: 14px 10px; gap: 8px; }
  .cat-ic { width: 46px; height: 46px; border-radius: 14px; }
  .cat-card strong { font-size: .8rem; }
  .cat-card small { font-size: .68rem; }
  .product-grid, .product-grid.three { gap: 10px; }
  .quick-add { width: 34px; height: 34px; }
  .p-price strong { font-size: .92rem; }
  .p-price s { display: none; }
  .p-unit { font-size: .65rem; }
  .p-coop { font-size: .67rem; }
  .impact { border-radius: 22px; }
  .impact-inner { padding: 22px; }
  .impact-stats { gap: 14px; }
  .impact-stat strong { font-size: 1.6rem; }
  .impact-stat span { font-size: .72rem; }
  .impact-quote { font-size: .74rem; }
  .coop-grid { grid-template-columns: 1fr; }
  .coop-grid .coop-card:last-child { grid-column: auto; }
  .coop-card { min-height: 260px; }
  .section-tight { padding-block: 36px; }
  .pdp-trust { gap: 6px; }
  .trust-mini { font-size: .65rem; padding: 10px 4px; }
  .buy-row { flex-wrap: wrap; }
  .buy-row .qty { width: 100%; justify-content: space-between; }
  .buy-row .btn-primary, .buy-row .btn-olive { flex: 1; }
  .pdp-price { font-size: 1.6rem; }
  .cart-item { grid-template-columns: 74px 1fr; gap: 12px; }
  .cart-item img { width: 74px; height: 74px; }
  .ci-actions { grid-column: 2; flex-direction: row; justify-content: space-between; align-items: center; }
  .ci-actions .ci-total { margin-inline-start: auto; }
  .slot-grid { grid-template-columns: 1fr; }
  .pay-options { grid-template-columns: 1fr; }
  .pay-option { flex-direction: row; align-items: center; }
  .pay-option .recommended { top: -8px; }
  .timeline { grid-template-columns: 1fr; gap: 0; margin-top: 6px; }
  .tl-step { display: flex; align-items: center; gap: 10px; text-align: start; padding: 10px 0 10px 0; padding-inline-start: 30px; }
  .tl-step::before { top: 50%; inset-inline-start: 8px; width: 2px; height: 100%; transform: none; }
  .tl-step:last-child::before { display: none; }
  .tl-dot { top: 50%; inset-inline-start: 0; transform: translateY(-50%); }
  .tl-step.done::before { width: 2px; }
  .order-hero h1 { font-size: 1.55rem; }
  .order-card { gap: 10px; }
  .oc-main { min-width: 120px; }
  .oc-total { font-size: .88rem; }
  .auth-card { padding: 22px; }
  .auth-card h1 { font-size: 1.5rem; }
  .auth-media { min-height: 190px; }
  .auth-media-copy h2 { font-size: 1.2rem; }
  .auth-media-copy p { font-size: .78rem; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: auto; }
  .terms-grid { grid-template-columns: 1fr; }
  .terms-grid .span-2 { grid-column: auto; }
  .perm-grid { grid-template-columns: 1fr 1fr; }
  .report-filters form { flex-direction: column; align-items: stretch; }
  .chart-wide { height: 160px; gap: 3px; }
  .chart-wide .bar-value { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 4px; }
  .footer-brand { grid-column: auto; }
  .toast-root { bottom: 82px; }
  .modal { padding: 20px 16px; border-radius: 18px; }
  .kpi { padding: 12px 14px; }
  .kpi .kpi-value { font-size: 1.3rem; }
  .dash-head { margin-bottom: 14px; }
  .data-table th:nth-child(3), .data-table td:nth-child(3) { display: none; }
  .image-picker { grid-template-columns: repeat(4, 1fr); }
  .page-hero { padding-top: 22px; }
  .summary { padding: 18px; }
  .coop-cover { min-height: 250px; }
  .coop-cover-body { padding: 18px; }
  .coop-cover-body h1 { font-size: 1.55rem; gap: 8px; }
  .coop-verified { width: 26px; height: 26px; }
  .coop-cover-meta { font-size: .74rem; gap: 8px 12px; }
  .coop-tag { font-size: .66rem; padding: 4px 9px; }
  .status-bar-row { grid-template-columns: 80px 1fr 26px; gap: 8px; }
  .sb-label .pill { font-size: .62rem; padding: 3px 8px; }
  .notif-hero { align-items: flex-start; padding-top: 22px; }
  .notif-actions { width: 100%; justify-content: space-between; }
  .notif-item { padding: 12px 13px; gap: 11px; }
  .notif-ic { width: 36px; height: 36px; border-radius: 11px; }
  .notif-top { flex-direction: column; gap: 0; }
  .notif-top strong { font-size: .86rem; }
  .review-photo, .photo-thumb { width: 60px; height: 60px; }
  .security-card { padding: 16px; }
  .pwd-actions .btn { width: 100%; }
  .pwd-actions .muted { font-size: .72rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---------- الصفحات القانونية ---------- */
.legal-page { max-width: 1040px; padding-top: 34px; padding-bottom: 50px; }
.legal-hero { max-width: 720px; margin-bottom: 28px; }
.legal-hero h1 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 8px 0 10px; }
.legal-hero p { color: var(--muted); line-height: 1.9; font-size: .95rem; }
.legal-updated { display: inline-block; margin-top: 10px; font-size: .76rem; }
.legal-layout { display: grid; grid-template-columns: 250px 1fr; gap: 34px; align-items: start; }
.legal-toc { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 2px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.legal-toc strong { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 8px; }
.legal-toc button, .legal-toc a { background: none; border: 0; text-align: right; padding: 6px 8px; border-radius: 8px; color: var(--ink); font: inherit; font-size: .82rem; cursor: pointer; }
.legal-toc button:hover, .legal-toc a:hover { background: var(--surface-2, rgba(0,0,0,.04)); }
.legal-toc a { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 12px; color: var(--muted); }
.legal-toc a.active { color: var(--terracotta); font-weight: 700; }
.legal-body { min-width: 0; }
.legal-body section { padding: 0 0 22px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.legal-body h2 { font-size: 1.15rem; margin-bottom: 10px; }
.legal-body p, .legal-body li { color: var(--muted); line-height: 1.95; font-size: .9rem; }
.legal-body ul, .legal-body ol { margin: 8px 0; padding-inline-start: 20px; display: grid; gap: 5px; }
.legal-body a { color: var(--terracotta); text-decoration: underline; text-underline-offset: 3px; }
.legal-body strong { color: var(--ink); }
.legal-help { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.legal-help strong { display: block; margin-bottom: 3px; }
.legal-help p { margin: 0; font-size: .84rem; }
.footer-legal a { color: inherit; text-decoration: none; opacity: .8; }
.footer-legal a:hover { opacity: 1; text-decoration: underline; }
.loyalty-redeem { margin: 10px 0 4px; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 10px; }
.loyalty-redeem p { margin: 4px 0 0; font-size: .72rem; }
.terms-note { font-size: .7rem; color: var(--muted); line-height: 1.7; margin: 8px 0 0; }
.terms-note a { color: var(--terracotta); text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 860px) {
  .legal-layout { grid-template-columns: 1fr; gap: 20px; }
  .legal-toc { position: static; flex-direction: row; flex-wrap: wrap; }
  .legal-toc strong { width: 100%; }
  .legal-toc a { border-top: 0; margin-top: 0; padding-top: 6px; }
}

/* ---------- الفاتورة ---------- */
.invoice-page { padding-top: 26px; padding-bottom: 40px; max-width: 920px; }
.invoice-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.invoice-sheet {
  background: #fff; color: rgb(47 42 36); border: 1px solid var(--line); border-radius: 18px;
  padding: 34px; box-shadow: 0 24px 60px -34px rgba(47, 42, 36, .35); font-size: .88rem;
}
.invoice-head { display: flex; justify-content: space-between; gap: 20px; border-bottom: 2px solid rgb(236 227 211); padding-bottom: 18px; }
.invoice-logo { font-family: var(--font-display, 'Reem Kufi', sans-serif); font-size: 1.6rem; font-weight: 700; color: rgb(184 81 46); }
.invoice-brand p { margin: 3px 0 0; color: rgb(107 98 87); font-size: .8rem; }
.invoice-meta { text-align: left; }
.invoice-meta h1 { font-size: 1.6rem; margin: 0 0 6px; letter-spacing: .02em; }
.invoice-meta p { margin: 3px 0; color: rgb(91 84 73); font-size: .82rem; }
.invoice-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin: 22px 0; }
.invoice-parties h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: rgb(138 129 116); margin: 0 0 7px; }
.invoice-parties p { margin: 3px 0; line-height: 1.6; }
.invoice-table { width: 100%; border-collapse: collapse; margin: 8px 0 20px; }
.invoice-table th { text-align: right; font-size: .72rem; color: rgb(107 98 87); border-bottom: 1px solid rgb(232 223 205); padding: 9px 6px; }
.invoice-table td { padding: 10px 6px; border-bottom: 1px solid rgb(241 233 218); vertical-align: top; font-size: .82rem; }
.invoice-table th:last-child, .invoice-table td:last-child { text-align: left; }
.invoice-table th:nth-child(n+3), .invoice-table td:nth-child(n+3) { text-align: left; white-space: nowrap; }
.invoice-totals { display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; align-items: start; }
.invoice-totals table { width: 100%; border-collapse: collapse; }
.invoice-totals td { padding: 7px 4px; border-bottom: 1px solid rgb(241 233 218); font-size: .84rem; }
.invoice-totals td:last-child { text-align: left; font-weight: 700; }
.invoice-totals tr.grand td { font-size: 1rem; border-bottom: 0; border-top: 2px solid rgb(236 227 211); padding-top: 12px; color: rgb(184 81 46); }
.invoice-note h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: rgb(138 129 116); margin: 0 0 7px; }
.invoice-note p { margin: 4px 0; font-size: .8rem; color: rgb(91 84 73); }
.invoice-foot { margin-top: 26px; padding-top: 16px; border-top: 1px solid rgb(236 227 211); font-size: .78rem; color: rgb(107 98 87); }
.invoice-foot p { margin: 4px 0; }

@media (max-width: 640px) {
  .invoice-sheet { padding: 20px; border-radius: 14px; }
  .invoice-head { flex-direction: column; }
  .invoice-meta { text-align: right; }
  .invoice-parties { grid-template-columns: 1fr; gap: 14px; }
  .invoice-totals { grid-template-columns: 1fr; }
  .invoice-table th:nth-child(2), .invoice-table td:nth-child(2) { display: none; }
}

@media print {
  @page { size: A4; margin: 12mm; }
  body { background: #fff !important; }
  #site-header, #site-footer, #bottom-nav, #toast-root, #modal-root, .no-print, .skip-link { display: none !important; }
  main#app { display: block !important; }
  .invoice-page { max-width: none; padding: 0; }
  .invoice-sheet { border: 0; border-radius: 0; box-shadow: none; padding: 0; }
  .invoice-table tr { break-inside: avoid; }
  a { color: inherit !important; text-decoration: none !important; }
}

/* ============ Product variants ============ */
.p-from { font-size: .72rem; color: var(--muted); font-weight: 700; margin-inline-end: 2px; }
.pdp-variants { margin: 18px 0 14px; }
.pdp-variants .field-label { display: block; margin-bottom: 8px; }
.variant-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.variant-pill {
  display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px;
  min-width: 92px; padding: 9px 14px; border: 1.5px solid var(--line-2);
  background: var(--surface); color: var(--ink); border-radius: 12px; text-align: start;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.variant-pill span { font-size: .84rem; font-weight: 700; }
.variant-pill strong { font-size: .78rem; color: var(--terracotta); }
.variant-pill small { font-size: .68rem; color: var(--muted); }
.variant-pill:hover:not(:disabled) { border-color: var(--terracotta); }
.variant-pill.selected {
  border-color: var(--terracotta); background: var(--terracotta-soft);
  box-shadow: 0 0 0 1px var(--terracotta) inset;
}
.variant-pill:disabled { opacity: .5; cursor: not-allowed; text-decoration: line-through; }
.variants-editor { border-top: 1px dashed var(--line-2); padding-top: 14px; }
.variants-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.variants-head .field-label { display: block; }
.variants-head .muted { font-size: .74rem; margin-top: 3px; max-width: 46ch; }
.variant-rows { display: grid; gap: 8px; }
.variant-row {
  display: grid; grid-template-columns: minmax(110px, 1.2fr) 90px 80px minmax(90px, .9fr) auto auto;
  gap: 8px; align-items: center; padding: 8px; border: 1px solid var(--line);
  border-radius: 12px; background: var(--surface-2);
}
.variant-row .input { min-height: 38px; font-size: .82rem; }
.variant-on { white-space: nowrap; font-size: .76rem; }
.variant-summary { font-size: .74rem; margin-top: 8px; min-height: 1em; }
@media (max-width: 760px) {
  .variant-row { grid-template-columns: 1fr 1fr; }
  .variant-row .input[data-v-sku] { grid-column: 1 / -1; }
  .variants-head { flex-direction: column; }
}

/* ============ Language switch + LTR ============ */
.lang-btn {
  width: auto; min-width: 38px; height: 32px; padding: 0 9px;
  border: 1.5px solid var(--line); border-radius: 999px;
  font-size: .72rem; font-weight: 800; letter-spacing: .04em;
}
.lang-btn:hover { border-color: var(--terracotta); color: var(--terracotta); }
html[lang="fr"] { --font-display: "Tajawal", "Segoe UI", serif; }
html[dir="ltr"] .flip-rtl { transform: none; }
html[dir="ltr"] .toast-root { transform: translateX(-50%); }
html[dir="ltr"] .legal-toc button,
html[dir="ltr"] .legal-toc a,
html[dir="ltr"] .invoice-table th,
html[dir="ltr"] .invoice-meta,
html[dir="ltr"] .account-side .phone,
html[dir="ltr"] .oc-ref { text-align: left; }
@media (max-width: 640px) {
  .msg-btn { display: none; }
  .lang-btn { min-width: 34px; height: 30px; padding: 0 7px; }
}

/* ---------- إعلانات Google (AdSense) ---------- */
.ad-slot {
  box-sizing: border-box;
  width: min(100% - 32px, 1080px);
  min-height: 116px;
  margin: 30px auto;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  background: var(--surface-tint);
  overflow: hidden;
}
.ad-slot .ad-label {
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--muted-2);
}
.ad-slot ins.adsbygoogle { width: 100%; display: block; }
.ad-slot:empty { display: none; }
