/* OMRINAD 0.8.0 — design layer
 * Loaded after app.css / store.css / mobile.css.
 * Brand colours (--brand, --brand-strong, --brand-deep, --brand-soft) are injected per page by
 * design_head() from the chosen theme; do NOT redefine them here or the theme choice would be overridden.
 */

:root {
  --surface: #fff;
  --bg: #f6f8f5;
  --line: #e3e9e3;
  --muted: #68736b;
  --text: #1c2b24;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 10px rgba(20, 50, 40, 0.07);
  --shadow-md: 0 12px 34px rgba(19, 51, 40, 0.12);
  --warn: #b45309;
  --danger: #b42318;
  --font-ui:
    "Tajawal", system-ui, -apple-system, "Segoe UI", Tahoma, "Noto Sans Arabic",
    sans-serif;
}

/* ---------- typography ---------- */
body {
  font-family: var(--font-ui);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
button,
input,
select,
textarea {
  font: inherit;
}
h1,
h2,
h3 {
  line-height: 1.3;
  text-wrap: balance;
}
p {
  text-wrap: pretty;
}
.price,
.grand,
.basket-total b,
[dir="ltr"] {
  font-variant-numeric: tabular-nums;
}

/* ---------- accessibility ---------- */
:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brand, #19896b) 70%, #fff);
  outline-offset: 2px;
  border-radius: 6px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
@media (prefers-contrast: more) {
  :root {
    --line: #8a948d;
    --muted: #3e4943;
  }
}

/* ---------- storefront identity ---------- */
.announcement {
  text-align: center;
  font-size: 0.85rem;
  padding: 7px 12px;
  background: var(--brand-deep, #163e33);
  color: #fff;
}
.logo-img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  vertical-align: middle;
  margin-inline-end: 8px;
}
.hero-img {
  width: 100%;
  height: 100%;
  max-height: 340px;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}
.store-nav-icon svg,
.wa-float svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- product cards ---------- */
.product-card {
  position: relative;
}
.product-picture {
  background:
    linear-gradient(
      100deg,
      transparent 30%,
      rgba(255, 255, 255, 0.55) 50%,
      transparent 70%
    ),
    var(--brand-soft, #eef3ed);
  background-size:
    200% 100%,
    100% 100%;
  animation: oa-shimmer 1.6s linear infinite;
}
.product-picture:has(img.is-loaded),
.product-picture img.is-loaded {
  animation: none;
}
@keyframes oa-shimmer {
  from {
    background-position:
      200% 0,
      0 0;
  }
  to {
    background-position:
      -100% 0,
      0 0;
  }
}
.product-picture img {
  position: relative;
}
.badge-row {
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  max-width: calc(100% - 52px);
  pointer-events: none;
}
.badge-tag {
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
.badge-tag.is-sale {
  background: var(--danger);
  color: #fff;
}
.badge-tag.is-low {
  background: #fff4d8;
  color: var(--warn);
}
.badge-tag.is-out {
  background: #3b4540;
  color: #fff;
}
.favorite[aria-pressed="true"] {
  color: var(--danger);
}
.similar-products {
  margin-block: 28px;
}

/* ---------- catalog toolbar ---------- */
.sort-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.sort-controls select {
  min-height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  padding-inline: 12px;
}
.check-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding-inline: 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  cursor: pointer;
}

/* ---------- toast ---------- */
.toast-region {
  position: fixed;
  inset-inline: 12px;
  bottom: calc(150px + env(safe-area-inset-bottom));
  z-index: 60;
  display: grid;
  gap: 8px;
  justify-items: center;
  pointer-events: none;
}
@media (min-width: 701px) {
  .toast-region {
    bottom: 24px;
  }
}
.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 460px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--brand-deep, #163e33);
  color: #fff;
  box-shadow: var(--shadow-md);
  animation: oa-toast-in 0.22s ease-out;
}
.toast.is-error {
  background: var(--danger);
}
.toast a {
  color: #fff;
  font-weight: 800;
  text-decoration: underline;
}
.toast.is-leaving {
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.2s,
    transform 0.2s;
}
@keyframes oa-toast-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}
.add-form.is-busy button {
  opacity: 0.6;
  pointer-events: none;
}

/* ---------- progress (wholesale minimum) ---------- */
.progress-card {
  margin: 12px 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.progress-text {
  font-weight: 700;
  margin-bottom: 8px;
}
.progress-bar {
  height: 10px;
  border-radius: 999px;
  background: var(--brand-soft, #eaf4ee);
  overflow: hidden;
}
.progress-bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--brand, #19896b);
  transition: width 0.4s ease;
}

/* ---------- thank-you steps ---------- */
.steps {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.steps li {
  position: relative;
  padding: 0 34px 18px 0;
  display: grid;
}
.steps li::before {
  content: "";
  position: absolute;
  inset-inline-start: auto;
  right: 0;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: var(--surface);
}
.steps li::after {
  content: "";
  position: absolute;
  right: 7px;
  top: 22px;
  bottom: 0;
  width: 2px;
  background: var(--line);
}
.steps li:last-child::after {
  display: none;
}
.steps li.done::before {
  background: var(--brand, #19896b);
  border-color: var(--brand, #19896b);
}
.steps small {
  color: var(--muted);
}

/* ---------- floating WhatsApp ---------- */
.wa-float {
  position: fixed;
  inset-inline-start: 14px;
  bottom: calc(82px + env(safe-area-inset-bottom));
  z-index: 40;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: var(--shadow-md);
}
.wa-float svg {
  width: 28px;
  height: 28px;
}
@media (min-width: 701px) {
  .wa-float {
    bottom: 22px;
  }
}

/* ---------- mobile conversion helpers ---------- */
@media (max-width: 700px) {
  .sticky-buy {
    position: sticky;
    bottom: calc(66px + env(safe-area-inset-bottom));
    z-index: 20;
    padding: 10px;
    margin-inline: -10px;
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
  }
  #checkout .summary {
    position: sticky;
    bottom: calc(66px + env(safe-area-inset-bottom));
    z-index: 15;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 10px 14px;
    box-shadow: var(--shadow-md);
  }
}

/* ---------- admin ---------- */
.nav-group-label {
  margin: 14px 12px 4px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--muted);
  opacity: 0.85;
}
.sidebar nav .nav-group-label:first-child {
  margin-top: 4px;
}
.diag-pre {
  white-space: pre-wrap;
  overflow: auto;
  max-height: 360px;
  direction: ltr;
  text-align: left;
  background: var(--bg);
  padding: 12px;
  border-radius: var(--radius-sm);
}

/* ---------- offline page ---------- */
.offline-card {
  max-width: 420px;
  margin: 12vh auto 0;
  padding: 24px;
  text-align: center;
  display: grid;
  gap: 12px;
  justify-items: center;
}

/* ---------- alternative store themes ----------
 * Emerald keeps the original store look. Other themes recolour the main brand surfaces.
 */
body.store:not([data-store-theme="emerald"]) .button,
body.store:not([data-store-theme="emerald"])
  button:not(.secondary):not(.favorite):not(.text-button):not(
    [data-qty-minus]
  ):not([data-qty-plus]):not([data-product-view]),
body.store:not([data-store-theme="emerald"]) .add-cart-button {
  background: var(--brand-strong);
  border-color: var(--brand-strong);
  color: #fff;
}
body.store:not([data-store-theme="emerald"]) .button.secondary,
body.store:not([data-store-theme="emerald"]) button.secondary {
  background: var(--brand-soft);
  color: var(--brand-strong);
  border-color: transparent;
}
body.store:not([data-store-theme="emerald"]) .hero {
  background: var(--brand-soft);
}
body.store:not([data-store-theme="emerald"]) .hero-art {
  background: var(--brand-strong);
  color: #fff;
}
body.store:not([data-store-theme="emerald"]) .eyebrow,
body.store:not([data-store-theme="emerald"]) .price,
body.store:not([data-store-theme="emerald"]) a:not(.button):hover {
  color: var(--brand-strong);
}
body.store:not([data-store-theme="emerald"]) .logo span {
  background: var(--brand-strong);
  color: #fff;
}
body.store:not([data-store-theme="emerald"]) .categories a.active,
body.store:not([data-store-theme="emerald"]) .switch a.active {
  background: var(--brand-strong);
  color: #fff;
  border-color: var(--brand-strong);
}
body.store:not([data-store-theme="emerald"]) .store-cart-nav b,
body.store:not([data-store-theme="emerald"]) .cart-link b {
  background: var(--brand-strong);
  color: #fff;
}

/* =====================================================================
 * 0.9.0 — compact lists (admin): list = short info, details on tap,
 * secondary actions in a menu, technical data hidden by default.
 * ===================================================================== */
.back-link {
  display: inline-block;
  padding: 6px 0;
  font-weight: 700;
  color: var(--brand-strong, #176c4d);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 24px;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}
.chip.is-ok,
.badge.is-ok {
  background: #e6f4ec;
  border-color: transparent;
  color: #176c4d;
}
.chip.is-muted,
.badge.is-muted {
  background: #eef0ee;
  border-color: transparent;
  color: #5b665f;
}
.badge.is-warn {
  background: #fff4d8;
  border-color: transparent;
  color: var(--warn);
}
.badge.is-bad {
  background: #fde8e6;
  border-color: transparent;
  color: var(--danger);
}
.badge.is-info {
  background: #e8eefb;
  border-color: transparent;
  color: #234d92;
}
.chip-link {
  text-decoration: none;
  background: var(--brand-soft, #eaf4ee);
  border-color: transparent;
  color: var(--brand-strong, #176c4d);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.inline-form {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  margin: 0;
}
.cust-toolbar {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}
.cust-toolbar input[type="search"] {
  flex: 1;
  min-width: 0;
}
.cust-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.cust-tools .muted {
  margin-inline-end: auto;
}
.tool-pop {
  position: relative;
}
.tool-pop > summary {
  list-style: none;
  cursor: pointer;
}
.tool-pop > summary::-webkit-details-marker {
  display: none;
}
.tool-pop-body {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 6px);
  z-index: 30;
  width: min(92vw, 420px);
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  display: grid;
  gap: 10px;
}
.cust-list,
.ord-list {
  display: grid;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: visible;
}
.cust-row,
.ord-row,
.list-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  min-height: 54px;
  border-bottom: 1px solid var(--line);
}
.cust-row:last-child,
.ord-row:last-child,
.list-row:last-child {
  border-bottom: 0;
}
.cust-check {
  display: grid;
  place-items: center;
  min-width: 28px;
  min-height: 44px;
}
.cust-main,
.ord-main {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 1px;
  color: inherit;
  text-decoration: none;
}
.cust-main strong,
.ord-main strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cust-main small,
.ord-main small,
.list-row small {
  color: var(--muted);
  font-size: 0.8rem;
}
.ord-amount {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ord-amount i,
.cust-summary i,
.city-fee i {
  font-style: normal;
  font-weight: 500;
  font-size: 0.75em;
  color: var(--muted);
}
.ord-time {
  min-width: 56px;
  text-align: end;
}
.list-row {
  justify-content: space-between;
  color: inherit;
  text-decoration: none;
}
@media (max-width: 700px) {
  .ord-row {
    flex-wrap: wrap;
  }
  .ord-main {
    flex-basis: calc(100% - 120px);
  }
  .ord-time {
    order: 9;
  }
  .cust-row .chip,
  .cust-row .account-pill {
    display: none;
  }
}
.cust-row .customer-menu,
.ord-row .order-menu {
  position: relative;
}
.stage-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 2px 0 8px;
  scrollbar-width: none;
}
.stage-tabs a {
  flex: 0 0 auto;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.86rem;
  text-decoration: none;
}
.stage-tabs a b {
  margin-inline-start: 4px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.stage-tabs a.is-active {
  background: var(--brand-strong, #176c4d);
  border-color: var(--brand-strong, #176c4d);
  color: #fff;
}
.stage-tabs a.is-active b {
  color: #fff;
}
.bulk-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}
.pagination {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  margin: 12px 0;
}
.ord-head,
.cust-detail > header {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}
.ord-head h2,
.cust-detail h2 {
  margin: 0;
}
.ord-actions,
.cust-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 8px 0;
}
.cust-summary,
.kv {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  margin: 8px 0;
}
.cust-summary > div,
.kv > div {
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.cust-summary small,
.kv small {
  color: var(--muted);
  font-size: 0.78rem;
}
.cust-summary .wide,
.kv .wide {
  grid-column: 1 / -1;
}
.inner-edit {
  margin-top: 8px;
}
.inner-edit > summary {
  display: inline-flex;
  list-style: none;
  cursor: pointer;
}
.inner-edit > summary::-webkit-details-marker {
  display: none;
}
.row-menu {
  position: relative;
}
.row-menu > summary {
  list-style: none;
  cursor: pointer;
}
.row-menu > summary::-webkit-details-marker {
  display: none;
}
.ord-totals {
  margin: 8px 0 0;
  color: var(--muted);
}
.ord-totals b {
  color: var(--text);
}
.imp-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 8px;
  margin: 10px 0;
}
.imp-stats > div {
  display: grid;
  padding: 8px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.imp-stats b {
  font-size: 1.3rem;
}
.imp-stats small {
  color: var(--muted);
}
.imp-list {
  margin: 6px 0;
  padding-inline-start: 18px;
  display: grid;
  gap: 3px;
  font-size: 0.9rem;
}
.imp-city {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.imp-commit {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}
.city-list {
  display: grid;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.city-item {
  border-bottom: 1px solid var(--line);
}
.city-item:last-child {
  border-bottom: 0;
}
.city-item > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 6px 12px;
  list-style: none;
  cursor: pointer;
}
.city-item > summary::-webkit-details-marker {
  display: none;
}
.city-item.is-off > summary {
  opacity: 0.6;
}
.city-names {
  flex: 1;
  min-width: 0;
  display: grid;
}
.city-names small {
  color: var(--muted);
}
.city-fee {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.city-fee em {
  color: var(--danger);
  font-style: normal;
  font-weight: 600;
  font-size: 0.8rem;
}
.city-edit {
  padding: 8px 12px 14px;
  display: grid;
  gap: 8px;
}
.city-note {
  margin: 0 0 8px;
}
.city-picker-hint {
  display: block;
  padding: 6px 10px;
  color: var(--muted);
  font-size: 0.8rem;
}
.city-days {
  color: var(--muted);
  font-size: 0.75rem;
}
.shipping-city.is-fuzzy .shipping-city-name b::after {
  content: " ؟";
  color: var(--muted);
}
.set-list {
  display: grid;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.set-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  min-height: 52px;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}
.set-row:last-child {
  border-bottom: 0;
}
.set-row span {
  display: grid;
}
.set-row small {
  color: var(--muted);
}
.set-row i {
  font-style: normal;
  font-size: 1.4rem;
  color: var(--muted);
}
.track-form form {
  display: grid;
  gap: 10px;
}

/* 0.9.1 — BL */
.bl-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.bl-row > a { display: grid; gap: 2px; flex: 1; text-decoration: none; color: inherit; }
.inline-form { display: inline; margin: 0; }
.button.linklike { background: none; border: 0; box-shadow: none; width: 100%; text-align: right; padding: 8px 10px; }
.is-disabled { opacity: .45; pointer-events: none; }

/* 0.9.2 — unified import engine */
.imp-steps { display: flex; gap: 6px; list-style: none; margin: 0 0 12px; padding: 0; overflow-x: auto; font-size: .85rem; }
.imp-steps li { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: var(--surface-2, #f1f3f2); color: var(--muted, #667); white-space: nowrap; }
.imp-steps li.is-active { background: var(--brand, #0f7b5f); color: #fff; }
.imp-steps li.is-done { background: #dff3ea; color: #0b5d47; }
.imp-steps b { font-weight: 700; }
.imp-ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.imp-way { display: grid; gap: 8px; align-content: start; padding: 12px; border: 1px solid var(--line, #dde3e0); border-radius: 12px; }
.imp-scroll { overflow: auto; max-width: 100%; max-height: 70vh; border: 1px solid var(--line, #dde3e0); border-radius: 10px; -webkit-overflow-scrolling: touch; }
.imp-sheet { border-collapse: collapse; min-width: 100%; font-size: .88rem; }
.imp-sheet th, .imp-sheet td { padding: 6px 8px; border-bottom: 1px solid var(--line, #e6ebe8); border-inline-end: 1px solid var(--line, #eef1ef); text-align: start; vertical-align: top; white-space: nowrap; }
.imp-sheet thead th { position: sticky; top: 0; background: var(--surface-2, #f6f8f7); z-index: 1; min-width: 150px; }
.imp-sheet select { width: 100%; margin-top: 4px; }
.imp-col { display: block; font-weight: 700; }
.imp-data small { display: block; color: var(--muted, #667); font-weight: 400; }
.imp-msg { display: block; color: var(--muted, #667); white-space: normal; max-width: 220px; }
.imp-row.is-error td { background: #fdf0ee; }
.imp-row.is-review td { background: #fff8e6; }
.imp-row.is-duplicate td, .imp-row.is-ignored td { opacity: .6; }
.imp-fix input { min-width: 130px; padding: 4px 6px; }

/* 0.9.3 — SEO, identity, product page */
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px 6px; list-style: none; margin: 0 0 10px; padding: 0; font-size: .85rem; color: var(--muted, #667); }
.breadcrumbs li + li::before { content: "/"; margin-inline-end: 6px; opacity: .6; }
.breadcrumbs a { color: inherit; text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--text, #1b2a24); font-weight: 600; }
.product-lead { margin: 8px 0; color: var(--muted, #556); line-height: 1.7; }
.product-actions { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 8px 0; }
.product-description { margin: 18px 0; }
.product-description h2 { font-size: 1.1rem; margin: 0 0 8px; }
.stock.in { color: #0b6b4a; }
.stock.out { color: var(--danger, #b3261e); }
.category-intro { margin: 0 0 12px; color: var(--muted, #556); line-height: 1.7; }
.not-found { text-align: center; padding: 28px 12px; display: grid; gap: 12px; justify-items: center; }
.not-found-search { display: flex; gap: 6px; width: min(420px, 100%); }
.not-found-search input { flex: 1; min-width: 0; }
.logo-img { display: block; width: 36px; height: 36px; object-fit: contain; }
/* admin: SEO section */
.snippet { direction: rtl; border: 1px solid var(--line, #dde3e0); border-radius: 10px; padding: 10px 12px; background: #fff; margin: 0 0 12px; max-width: 640px; }
.snippet-url { font-size: .8rem; color: #3c6e47; margin-bottom: 2px; unicode-bidi: plaintext; }
.snippet-title { color: #1a0dab; font-size: 1.05rem; line-height: 1.35; overflow-wrap: anywhere; }
.snippet-desc { color: #4d5156; font-size: .88rem; line-height: 1.5; overflow-wrap: anywhere; }
.seo-count { display: block; margin: -4px 0 8px; color: var(--muted, #667); font-size: .8rem; }
.seo-count.warn { color: #9a5b00; }
.seo-count.ok { color: #0b6b4a; }
.seo-checklist { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 4px; font-size: .9rem; }
.seo-checklist li.ok span { color: #0b6b4a; font-weight: 700; }
.seo-checklist li.warn span { color: #9a5b00; font-weight: 700; }
.subcard { border: 1px solid var(--line, #dde3e0); border-radius: 10px; padding: 8px 10px; margin: 8px 0; }
.subcard > summary { cursor: pointer; font-weight: 600; }
.related-picker { display: grid; gap: 8px; }
.related-results, .related-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.related-results { flex-direction: column; border: 1px solid var(--line, #dde3e0); border-radius: 10px; max-height: 220px; overflow: auto; }
.related-results button { width: 100%; text-align: right; background: none; border: 0; box-shadow: none; padding: 8px 10px; color: inherit; }
.related-results button:hover { background: var(--surface-2, #f1f5f3); }
.related-chips li { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 10px; border-radius: 999px; background: var(--surface-2, #eaf3ee); font-size: .88rem; }
.related-chips li button { border: 0; background: none; box-shadow: none; padding: 0 6px; cursor: pointer; font-size: 1.1rem; line-height: 1; color: inherit; }
.media-pick { border: 1px solid var(--line, #dde3e0); border-radius: 12px; margin: 10px 0; padding: 10px 12px; }
.media-pick legend { font-weight: 700; padding: 0 6px; }
.media-pick-current { display: flex; align-items: center; gap: 10px; margin: 6px 0; }
.media-pick-current img { width: 64px; height: 64px; object-fit: contain; border-radius: 8px; border: 1px solid var(--line, #dde3e0); background: #fff; }
.media-pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; margin-top: 8px; max-height: 260px; overflow: auto; }
.media-pick-grid label { display: grid; gap: 4px; justify-items: center; cursor: pointer; }
.media-pick-grid img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.shop-header .logo > span:first-child { min-width: 36px; min-height: 36px; }
.invoice-logo { display: block; width: 56px; height: 56px; object-fit: contain; margin-bottom: 6px; }
@media print { .invoice-logo { width: 48px; height: 48px; } }
/* 0.9.3 — admin menu: scroll inside the drawer so every item (and logout) stays reachable */
.sidebar { display: flex; flex-direction: column; max-height: 100vh; max-height: 100dvh; overflow: hidden; }
.sidebar > nav { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.sidebar > .sidebar-bottom, .sidebar > .brand { flex: none; }
