/* Keep complete category labels and the original used-market column configuration. */
.shop-tile b { white-space:normal!important; overflow:visible!important; text-overflow:clip!important; line-height:1.55; min-height:3.1em; overflow-wrap:anywhere; }
.shop-tile-pic img { object-fit:contain; background:#faf8f5; }
[hidden] { display:none!important; }
.review-category-icon img { width:36px; height:36px; object-fit:contain; vertical-align:middle; }
.store-sidebar details summary { cursor:pointer; padding:12px 8px; font-weight:700; }
.store-sidebar details a { display:block; margin:3px 0; }
@media(max-width:640px) {
  .review-product-table, .review-delivery .table-wrap { overflow:visible; }
  .review-product-table table, .review-delivery table { display:block; width:100%; min-width:0!important; }
  .review-product-table thead, .review-delivery thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
  .review-product-table tbody, .review-delivery tbody { display:grid; gap:12px; }
  .review-product-table tr, .review-delivery tr { display:grid; padding:12px; border:1px solid #dce3e7; border-radius:12px; background:var(--panel,#fff); }
  .review-product-table td, .review-delivery td, .review-delivery th { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px; min-width:0; padding:8px 0; white-space:normal; }
  .review-product-table td::before, .review-delivery td::before { content:attr(data-label); font-weight:700; }
  .review-product-table td:last-child { justify-content:flex-start; }
  .review-product-table input, .review-product-table select, .review-delivery input, .review-delivery select { max-width:100%; min-width:0; min-height:44px; }
  .review-delivery select, .review-delivery input { flex:1; width:55%; }
  [data-dl-form].review-delivery tbody th { width:100%; }
  .rr-crit-form { display:flex!important; flex-wrap:wrap!important; gap:12px!important; min-width:0!important; }
  .rr-crit-form > * { max-width:100%; }
  .rr-crit-form input[type="text"] { width:100%; }
  .o-adminmain:has(.rr-crit-form) .sa-table table { min-width:0!important; width:100%; }
  .o-adminmain:has(.rr-crit-form) .sa-table thead { display:none; }
  .o-adminmain:has(.rr-crit-form) .sa-table td { white-space:normal; }
}

/* Batch 52 — comfortable finger targets on phones (at least ~44px), same look. */
@media(max-width:760px){
  .v-header-actions{gap:2px}
  .v-header-actions>a,.v-header-actions>.v8-mobile-menu{min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;position:relative}
  .v8-switch a{padding:12px 7px}
  .o-search button{min-height:44px;padding:7px 16px}
  .o-search input{padding:13px 3px;font-size:16px}
  .v8-announce-close{min-width:44px;min-height:44px}
  .v8-announce-bar>a{display:inline-block;padding:10px 4px}
  .o-section-head>a{display:inline-block;padding:14px 0 14px 12px;margin-block:-14px}
  .category-branch>a,.category-branch>details>.category-branch>a{display:block;padding:12px 0}
  .category-branch>details>summary{min-height:44px;display:flex;align-items:center}
  .v-store h3>a{display:inline-block;padding:10px 4px}
  .v-store>a.o-soft{min-height:44px;display:inline-flex;align-items:center;justify-content:center}
  .o-footer>div>a{display:inline-block;padding:12px 4px}
  .o-footer>div{gap:4px 12px}
}
/* Bottom bar: highlight the tab you are on (it used to always highlight «الرئيسية»). */
@media(max-width:760px){.v8-bottom a:first-child{color:#6e7e9a}.v8-bottom a.active{color:var(--blue);font-weight:700}}

/* Batch 52 — admin menu (admin-nav.js): quick filter, complete groups, counts; overview cards that open their section. */
.adm-nav-search{width:100%;margin-bottom:10px;padding:10px 12px;border:1px solid #dbe4f0;border-radius:12px;font:inherit;font-size:13px;background:#f8fafc}
.o-sidebar summary{display:flex;align-items:center;justify-content:space-between;gap:8px}
.o-sidebar summary small{font-weight:700;font-size:11px;color:#64748b;background:#eef2f8;border-radius:20px;padding:1px 8px}
.o-sidebar a[hidden],.o-sidebar details[hidden]{display:none!important}
.o-sidebar.adm-nav-filtering summary{pointer-events:none}
a.adm-stat-link{display:block;color:inherit;text-decoration:none;position:relative;transition:border-color .15s,box-shadow .15s}
a.adm-stat-link:hover,a.adm-stat-link:focus-visible{border-color:#1d4ed8;box-shadow:0 6px 18px rgba(29,78,216,.12)}
a.adm-stat-wait{border-color:#f59e0b;background:#fffbeb}
a.adm-stat-wait em{display:inline-block;margin-top:8px;font-style:normal;font-size:11px;font-weight:800;color:#b45309;background:#fef3c7;border-radius:20px;padding:2px 10px}
.adm-latest-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:16px;margin-top:18px}
.adm-latest{margin:0}
.adm-latest-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}
.adm-latest-head h2{margin:0;font-size:16px}.adm-latest-head a{color:#1d4ed8;font-size:13px;font-weight:700;padding:8px 0}
.adm-latest ul{list-style:none;margin:0;padding:0}
.adm-latest li{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-top:1px solid #edf1f6;font-size:13px}
.adm-latest li span{color:#64748b;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}

/* Batch 52 — store fixes (store-fixes.js). */
.o-photo{position:relative}
.v-soldout{position:absolute;inset-inline:8px;bottom:8px;z-index:2;text-align:center;background:rgba(6,21,38,.86);color:#fff;font-size:12px;font-weight:800;border-radius:10px;padding:6px 8px}
[data-soldout] .o-photo img{filter:grayscale(.75);opacity:.7}
.sf-soldout{display:block;margin-top:4px;color:#b45309;font-weight:800;font-size:11px}
.dash-main a.primary-btn,.store-main a.primary-btn{border-radius:26px}
.dash-main table button,.dash-main table a.soft-btn,.dash-main table .o-soft{border-radius:20px;border:1px solid #dbe4f0;background:#fff;padding:8px 16px;min-height:38px;font-weight:700}
.dash-main .o-table,.dash-main .table-wrap,.promo-stats-table{max-width:100%;overflow-x:auto}
@media(max-width:760px){
  .dash-main{display:flex;flex-direction:column}
  .dash-main>.pos-promo{order:5;margin-top:18px}
  .launch-merchant{font-size:12px;padding:10px 12px;line-height:1.7}
}
.sf-delivery-nag{border-color:#f59e0b;background:#fffbeb;order:-1}.sf-delivery-nag a{color:#1d4ed8;font-weight:800;white-space:nowrap}
