/* =============================================================
   BEEZ — لوحة التحكم (RTL), from the owner's CMS theme
   Modern admin shell: dark espresso sidebar, warm content area,
   card-styled tables and forms. Arabic-first (Cairo / Tajawal).
   ============================================================= */

:root{
  --ad-bg:        #F6F2EC;
  --ad-surface:   #FFFFFF;
  --ad-border:    #E7DCCC;
  --ad-ink:       #33241B;
  --ad-ink-soft:  #8A7A6A;
  --ad-espresso:  #5A4032;
  --ad-side:      #2C1F17;
  --ad-side-hover:#3E2C21;
  --ad-accent:    #D69400;
  --ad-accent-dk: #A87100;
  --ad-green:     #4E7D4B;
  --ad-red:       #B44A3C;
  --ad-radius:    14px;
  --ad-shadow:    0 4px 16px rgba(51,36,27,.07);
  --ad-side-w:    260px;
}

body{
  background:var(--ad-bg);
  color:var(--ad-ink);
  font-family:'Tajawal', sans-serif;
  font-size:.92rem;
}
h1,h2,h3,h4,h5,h6{ font-family:'Cairo', sans-serif; font-weight:700; color:var(--ad-ink); }

/* ---------------- Shell layout ---------------- */
.rh-admin-shell{ display:flex; min-height:100vh; }
.rh-admin-content{ flex:1; min-width:0; display:flex; flex-direction:column; }
.rh-admin-main{ padding:1.5rem; flex:1; }

/* ---------------- Sidebar ---------------- */
.rh-admin-sidebar{
  width:var(--ad-side-w); flex:0 0 var(--ad-side-w);
  background:var(--ad-side); color:#D8CCC0;
  display:flex; flex-direction:column;
  position:sticky; top:0; height:100vh; overflow-y:auto;
}
.rh-admin-brand{
  display:flex; align-items:center; gap:.75rem;
  padding:1.1rem 1.25rem; color:#fff; text-decoration:none;
  font-family:'Cairo',sans-serif; font-weight:800; font-size:1.05rem;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.rh-admin-brand img{ height:40px; border-radius:10px; }
.rh-admin-brand:hover{ color:#fff; }

.rh-admin-nav{ flex:1; padding:.75rem .75rem 1rem; }
.rh-admin-nav ul{ list-style:none; margin:0; padding:0; }
.rh-admin-nav-title{
  font-size:.72rem; color:#9A8878; margin:1.1rem .6rem .4rem;
  font-family:'Cairo',sans-serif; font-weight:700;
}
.rh-admin-nav-link{
  display:flex; align-items:center; gap:.7rem;
  color:#D8CCC0; text-decoration:none; font-weight:500;
  padding:.55rem .8rem; border-radius:10px; margin-bottom:2px;
  transition:background .12s ease, color .12s ease;
}
.rh-admin-nav-link i{ width:20px; text-align:center; font-size:.9rem; color:#9A8878; transition:color .12s ease; }
.rh-admin-nav-link:hover{ background:var(--ad-side-hover); color:#fff; }
.rh-admin-nav-link:hover i{ color:var(--ad-accent); }
.rh-admin-nav-link.active{ background:var(--ad-accent); color:#fff; font-weight:700; }
.rh-admin-nav-link.active i{ color:#fff; }

.rh-admin-sidebar-footer{
  border-top:1px solid rgba(255,255,255,.08); padding:.9rem 1.25rem;
  display:flex; flex-direction:column; gap:.5rem;
}
.rh-admin-sidebar-footer a{ color:#D8CCC0; text-decoration:none; font-size:.87rem; }
.rh-admin-sidebar-footer a:hover{ color:#fff; }
.rh-admin-sidebar-footer i{ margin-inline-end:.5rem; color:#9A8878; }

/* ---------------- Topbar ---------------- */
.rh-admin-topbar{
  background:var(--ad-surface); border-bottom:1px solid var(--ad-border);
  display:flex; align-items:center; gap:1rem; padding:.65rem 1.5rem;
  position:sticky; top:0; z-index:1020;
}
.rh-admin-topbar-title{ font-family:'Cairo',sans-serif; font-weight:800; font-size:1rem; flex:1; }
.rh-admin-burger{
  display:none; background:none; border:1px solid var(--ad-border);
  border-radius:8px; width:38px; height:38px; color:var(--ad-ink);
}
.rh-admin-user{ display:flex; align-items:center; gap:.6rem; }
.rh-admin-user-avatar{
  width:38px; height:38px; border-radius:50%; background:var(--ad-espresso); color:#fff;
  display:flex; align-items:center; justify-content:center;
}
.rh-admin-user-meta{ line-height:1.25; }
.rh-admin-user-meta strong{ display:block; font-size:.85rem; font-family:'Cairo',sans-serif; }
.rh-admin-user-meta small{ color:var(--ad-ink-soft); font-size:.72rem; }

/* ---------------- Overview cards ---------------- */
.rh-stat-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:1rem; margin-bottom:1.5rem; }
.rh-stat-card{
  background:var(--ad-surface); border:1px solid var(--ad-border); border-radius:var(--ad-radius);
  padding:1.1rem 1.25rem; display:flex; align-items:center; gap:1rem; box-shadow:var(--ad-shadow);
}
.rh-stat-card i{
  width:48px; height:48px; flex:0 0 48px; border-radius:12px;
  display:flex; align-items:center; justify-content:center; font-size:1.25rem;
  background:var(--ad-bg); color:var(--ad-accent);
}
.rh-stat-card .num{ font-size:1.45rem; font-weight:800; font-family:'Cairo',sans-serif; line-height:1.2; }
.rh-stat-card .lbl{ color:var(--ad-ink-soft); font-size:.82rem; }

.rh-admin-card{
  background:var(--ad-surface); border:1px solid var(--ad-border); border-radius:var(--ad-radius);
  padding:1.25rem 1.4rem; box-shadow:var(--ad-shadow); margin-bottom:1.25rem;
}
.rh-admin-card h3{ font-size:1.05rem; margin-bottom:1rem; }

/* ---------------- Content / generated tables ---------------- */
.DashContents h2{
  font-size:1.25rem; margin-bottom:1rem; padding-bottom:.6rem;
  border-bottom:2px solid var(--ad-border);
}
.DashContents h3{ font-size:1.05rem; }

.DashContents .table{
  background:var(--ad-surface); border:1px solid var(--ad-border);
  border-radius:var(--ad-radius); overflow:hidden; box-shadow:var(--ad-shadow);
}
.DashContents .table thead th, .DashContents .table .tableHeader{
  background:#F1E9DC; color:var(--ad-ink); font-family:'Cairo',sans-serif;
  font-weight:700; font-size:.8rem; border-bottom:1px solid var(--ad-border);
  padding:.7rem .75rem; text-align:start;
}
.DashContents .table td{ vertical-align:middle; border-color:#F1EBE1; padding:.6rem .75rem; }
.DashContents .table img{ border-radius:8px; }

/* Buttons (Bootstrap overrides, warm palette) */
.btn{ border-radius:10px; font-family:'Cairo',sans-serif; font-weight:700; }
.btn-success{ background:var(--ad-green); border-color:var(--ad-green); }
.btn-success:hover{ background:#3E6540; border-color:#3E6540; }
.btn-info{ background:var(--ad-espresso); border-color:var(--ad-espresso); color:#fff; }
.btn-info:hover{ background:#48332a; border-color:#48332a; color:#fff; }
.btn-danger{ background:var(--ad-red); border-color:var(--ad-red); }
.btn-warning{ background:#C9A227; border-color:#C9A227; color:#fff; }
.btn-warning:hover{ color:#fff; }

/* Forms (DAL-generated) */
.DALForm{
  background:var(--ad-surface); border:1px solid var(--ad-border);
  border-radius:var(--ad-radius); padding:1.4rem; box-shadow:var(--ad-shadow);
}
.DALForm .form-group.row{ margin-bottom:.9rem; }
.DALForm .col-form-label{ font-weight:700; font-size:.85rem; color:var(--ad-espresso); }
.form-control, .form-select{ border-color:var(--ad-border); border-radius:10px; }
.form-control:focus, .form-select:focus{ border-color:var(--ad-espresso); box-shadow:0 0 0 .2rem rgba(90,64,50,.1); }
.image-view-thumbnail{ margin-top:.5rem; }
.image-view-thumbnail img{ border-radius:8px; }

/* Status badges (orders) */
.rh-status{ padding:.2rem .7rem; border-radius:999px; font-size:.75rem; font-weight:700; display:inline-block; }
.rh-status-new{ background:#E7F0FE; color:#2455A4; }
.rh-status-confirmed{ background:#EAF6EA; color:#3E6B3B; }
.rh-status-preparing{ background:#FFF4E0; color:#A2711C; }
.rh-status-shipped{ background:#EFE9FB; color:#5F44A5; }
.rh-status-delivered{ background:#E5F5EF; color:#1F7A55; }
.rh-status-cancelled{ background:#FBEAE8; color:#A43A2E; }

/* DataTables tweaks */
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select{
  border:1px solid var(--ad-border); border-radius:8px; padding:.25rem .5rem; margin-inline-start:.4rem;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current{
  background:var(--ad-espresso) !important; color:#fff !important; border-radius:8px; border-color:var(--ad-espresso) !important;
}

/* ---------------- Mobile ---------------- */
.rh-admin-overlay{ display:none; position:fixed; inset:0; background:rgba(0,0,0,.4); z-index:1029; }
@media (max-width: 991px){
  .rh-admin-sidebar{
    position:fixed; inset-inline-start:0; top:0; z-index:1030; height:100vh;
    transform:translateX(100%); transition:transform .2s ease;
  }
  [dir="ltr"] .rh-admin-sidebar{ transform:translateX(-100%); }
  body.rh-sidebar-open .rh-admin-sidebar{ transform:translateX(0); }
  body.rh-sidebar-open .rh-admin-overlay{ display:block; }
  .rh-admin-burger{ display:block; }
  .rh-admin-main{ padding:1rem; }
}

/* =============================================================
   Panel engine (PANEL.php + admin.js) — professional lists,
   comprehensive forms, tabs, toasts, order workflow.
   ============================================================= */

/* ---------------- Panel shell ---------------- */
.rh-panel-head{ display:flex; align-items:center; justify-content:space-between; gap:1rem; margin-bottom:1rem; flex-wrap:wrap; }
.rh-panel-title{ display:flex; align-items:center; gap:.75rem; }
.rh-panel-title h2{ margin:0; font-size:1.25rem; }
.rh-panel-title h2 i{ color:var(--ad-accent); margin-inline-end:.35rem; }
.rh-panel-count{ background:var(--ad-surface); border:1px solid var(--ad-border); color:var(--ad-ink-soft); border-radius:999px; padding:.15rem .7rem; font-size:.75rem; font-weight:700; }
.rh-panel-sub{ color:var(--ad-ink-soft); font-size:.8rem; }
.rh-back-btn{
  background:var(--ad-surface); border:1px solid var(--ad-border); color:var(--ad-ink);
  width:36px; height:36px; border-radius:10px; flex:0 0 36px;
}
.rh-back-btn:hover{ background:var(--ad-espresso); color:#fff; }

/* ---------------- List tables ---------------- */
.rh-panel-tablecard{ padding:.75rem 1rem; }
.rh-panel-table{ margin-bottom:0; }
.rh-panel-table thead th{ white-space:nowrap; }
.rh-actions-col{ width:1%; }
.rh-actions-cell{ white-space:nowrap; text-align:end; }
.rh-icon-btn{
  background:none; border:1px solid var(--ad-border); color:var(--ad-espresso);
  width:32px; height:32px; border-radius:8px; margin-inline-start:.25rem;
  display:inline-flex; align-items:center; justify-content:center; font-size:.8rem;
  transition:background .12s ease,color .12s ease;
}
.rh-icon-btn:hover{ background:var(--ad-espresso); color:#fff; border-color:var(--ad-espresso); }
.rh-icon-btn.rh-icon-danger{ color:var(--ad-red); }
.rh-icon-btn.rh-icon-danger:hover{ background:var(--ad-red); border-color:var(--ad-red); color:#fff; }
.rh-row-inactive td{ opacity:.55; }
.rh-cell-img{ width:44px; height:44px; object-fit:cover; border-radius:8px; border:1px solid var(--ad-border); }
.rh-cell-noimg{
  width:44px; height:44px; border-radius:8px; background:var(--ad-bg); border:1px dashed var(--ad-border);
  display:inline-flex; align-items:center; justify-content:center; color:var(--ad-ink-soft);
}
.rh-cell-video{ color:var(--ad-espresso); font-weight:700; font-size:.78rem; }
.rh-swatch{ width:18px; height:18px; border-radius:6px; display:inline-block; vertical-align:middle; border:1px solid rgba(0,0,0,.15); }
.rh-flag{ color:var(--ad-accent); font-size:.72rem; margin-inline-start:.15rem; }
.rh-price-old{ text-decoration:line-through; color:var(--ad-ink-soft); font-size:.8rem; }

.rh-pill{ padding:.18rem .6rem; border-radius:999px; font-size:.72rem; font-weight:700; display:inline-block; white-space:nowrap; }
.rh-pill-on{ background:#EAF6EA; color:#3E6B3B; }
.rh-pill-off{ background:#FBEAE8; color:#A43A2E; }
.rh-pill-warn{ background:#FFF4E0; color:#A2711C; }
.rh-pill-info{ background:#EFE9FB; color:#5F44A5; }

/* ---------------- Forms ---------------- */
.rh-form-grid{ display:grid; grid-template-columns:repeat(12,1fr); gap:1rem 1.25rem; }
.rh-col-4{ grid-column:span 4; } .rh-col-6{ grid-column:span 6; } .rh-col-12{ grid-column:span 12; }
.rh-field-label{ font-weight:700; font-size:.83rem; color:var(--ad-espresso); margin-bottom:.3rem; display:block; }
.rh-req{ color:var(--ad-red); }
.rh-hint{ color:var(--ad-ink-soft); font-size:.74rem; margin-top:.3rem; }
.rh-counter-over{ color:var(--ad-red); font-weight:700; }
.rh-field-error{ color:var(--ad-red); font-size:.76rem; font-weight:700; margin-top:.3rem; }
.rh-field-invalid .form-control, .rh-field-invalid .form-select{ border-color:var(--ad-red); box-shadow:0 0 0 .15rem rgba(180,74,60,.12); }

.rh-color-field{ display:flex; gap:.5rem; align-items:center; }
.rh-color-field input[type="color"]{ width:46px; height:38px; border:1px solid var(--ad-border); border-radius:10px; padding:2px; background:var(--ad-surface); }

.rh-switch{ display:inline-flex; align-items:center; gap:.6rem; cursor:pointer; margin:0; padding-top:.3rem; }
.rh-switch input{ display:none; }
.rh-switch-track{
  width:42px; height:24px; border-radius:999px; background:#D8CCC0; position:relative; flex:0 0 42px;
  transition:background .15s ease;
}
.rh-switch-track::after{
  content:""; position:absolute; top:3px; inset-inline-start:3px; width:18px; height:18px;
  border-radius:50%; background:#fff; transition:transform .15s ease; box-shadow:0 1px 3px rgba(0,0,0,.25);
}
.rh-switch input:checked + .rh-switch-track{ background:var(--ad-green); }
.rh-switch input:checked + .rh-switch-track::after{ transform:translateX(-18px); }
[dir="ltr"] .rh-switch input:checked + .rh-switch-track::after{ transform:translateX(18px); }
.rh-switch-label{ font-weight:700; font-size:.85rem; color:var(--ad-ink); }

.rh-upload{ display:flex; gap:1rem; align-items:center; flex-wrap:wrap; }
.rh-upload-preview img, .rh-upload-preview video{
  width:120px; height:80px; object-fit:cover; border-radius:10px; border:1px solid var(--ad-border); display:block;
}
.rh-upload-preview .rh-cell-noimg{ width:120px; height:80px; }
.rh-upload-status{ font-size:.78rem; color:var(--ad-ink-soft); margin-top:.35rem; }

.rh-form-actions{
  position:sticky; bottom:0; z-index:10; display:flex; align-items:center; gap:.75rem;
  background:var(--ad-surface); border:1px solid var(--ad-border); border-radius:var(--ad-radius);
  padding:.8rem 1.2rem; box-shadow:0 -4px 16px rgba(51,36,27,.08); margin-top:1rem;
}
.rh-tabs-root[data-active="variants"] .rh-form-actions,
.rh-tabs-root[data-active="gallery"] .rh-form-actions{ display:none; }

/* ---------------- Tabs (product editor) ---------------- */
.rh-tab-bar{ display:flex; gap:.35rem; flex-wrap:wrap; margin-bottom:1.1rem; border-bottom:2px solid var(--ad-border); }
.rh-tab-btn{
  background:none; border:none; border-bottom:3px solid transparent; color:var(--ad-ink-soft);
  padding:.55rem .9rem; font-family:'Cairo',sans-serif; font-weight:700; font-size:.85rem;
  margin-bottom:-2px; transition:color .12s ease,border-color .12s ease;
}
.rh-tab-btn i{ margin-inline-end:.3rem; }
.rh-tab-btn:hover{ color:var(--ad-ink); }
.rh-tab-btn.active{ color:var(--ad-accent-dk); border-bottom-color:var(--ad-accent); }
.rh-tab-btn.rh-tab-disabled{ opacity:.4; cursor:not-allowed; }
.rh-tab-pane{ display:none; }
.rh-tab-pane.active{ display:block; }

/* ---------------- Variants / gallery ---------------- */
.rh-variant-form{
  display:grid; grid-template-columns:repeat(5,minmax(120px,1fr)) auto; gap:.75rem; align-items:end;
  background:var(--ad-bg); border:1px solid var(--ad-border); border-radius:10px; padding:1rem; margin-top:1rem;
}
.rh-panel-table .rh-variant-sku{ min-width:90px; }
.rh-panel-table .rh-variant-adj{ min-width:80px; }
.rh-panel-table .rh-variant-stock{ min-width:70px; }
.rh-gallery-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(130px,1fr)); gap:.9rem; }
.rh-gallery-item{
  position:relative; border:2px solid var(--ad-border); border-radius:12px; overflow:hidden; background:var(--ad-bg);
}
.rh-gallery-item img{ width:100%; height:110px; object-fit:cover; display:block; }
.rh-gallery-main{ border-color:var(--ad-accent); }
.rh-gallery-badge{
  position:absolute; top:.4rem; inset-inline-start:.4rem; background:var(--ad-accent); color:#fff;
  border-radius:999px; padding:.1rem .55rem; font-size:.68rem; font-weight:700;
}
.rh-gallery-actions{
  display:flex; justify-content:center; gap:.3rem; padding:.4rem; background:var(--ad-surface);
}

/* ---------------- Orders ---------------- */
.rh-chip-bar{ display:flex; gap:.5rem; flex-wrap:wrap; margin-bottom:1.1rem; }
.rh-chip{
  background:var(--ad-surface); border:1px solid var(--ad-border); color:var(--ad-ink);
  border-radius:999px; padding:.35rem .9rem; font-weight:700; font-size:.8rem; font-family:'Cairo',sans-serif;
  transition:background .12s ease,color .12s ease;
}
.rh-chip span{ background:var(--ad-bg); border-radius:999px; padding:.05rem .45rem; font-size:.72rem; margin-inline-start:.25rem; }
.rh-chip:hover{ border-color:var(--ad-espresso); }
.rh-chip.active{ background:var(--ad-espresso); border-color:var(--ad-espresso); color:#fff; }
.rh-chip.active span{ background:rgba(255,255,255,.2); color:#fff; }

.rh-status-flow{ display:flex; gap:.5rem; flex-wrap:wrap; }
.rh-flow-btn{
  border:1px solid var(--ad-border); background:var(--ad-surface); color:var(--ad-ink-soft);
  border-radius:10px; padding:.45rem 1rem; font-weight:700; font-size:.82rem; font-family:'Cairo',sans-serif;
}
.rh-flow-btn:hover:not(:disabled){ border-color:var(--ad-espresso); color:var(--ad-ink); }
.rh-flow-btn.active{ cursor:default; }
.rh-flow-btn.active.rh-flow-new{ background:#E7F0FE; color:#2455A4; border-color:#2455A4; }
.rh-flow-btn.active.rh-flow-confirmed{ background:#EAF6EA; color:#3E6B3B; border-color:#3E6B3B; }
.rh-flow-btn.active.rh-flow-preparing{ background:#FFF4E0; color:#A2711C; border-color:#A2711C; }
.rh-flow-btn.active.rh-flow-shipped{ background:#EFE9FB; color:#5F44A5; border-color:#5F44A5; }
.rh-flow-btn.active.rh-flow-delivered{ background:#E5F5EF; color:#1F7A55; border-color:#1F7A55; }
.rh-flow-btn.active.rh-flow-cancelled{ background:#FBEAE8; color:#A43A2E; border-color:#A43A2E; }

.rh-order-cols{ display:grid; grid-template-columns:1fr 1fr; gap:1.25rem; }
.rh-dl{ display:grid; grid-template-columns:auto 1fr; gap:.45rem 1.2rem; margin:0; }
.rh-dl dt{ color:var(--ad-ink-soft); font-weight:700; font-size:.8rem; }
.rh-dl dd{ margin:0; font-size:.88rem; }

/* ---------------- Toasts ---------------- */
#RhToastHost{ position:fixed; bottom:1.25rem; inset-inline-start:1.25rem; z-index:2000; display:flex; flex-direction:column; gap:.5rem; }
.rh-toast{
  background:var(--ad-side); color:#fff; border-radius:12px; padding:.7rem 1.1rem;
  font-weight:700; font-size:.85rem; box-shadow:0 8px 24px rgba(0,0,0,.25);
  opacity:0; transform:translateY(10px); transition:opacity .25s ease, transform .25s ease;
  display:flex; align-items:center; gap:.5rem; max-width:380px;
}
.rh-toast.show{ opacity:1; transform:translateY(0); }
.rh-toast-success i{ color:#7FC97F; }
.rh-toast-error{ background:var(--ad-red); }
.rh-toast-error i{ color:#fff; }

/* ---------------- Home: quick-add + active products grid ---------------- */
.rh-quickadd{
  background:linear-gradient(135deg, var(--ad-espresso), var(--ad-accent-dk)); border-radius:var(--ad-radius);
  padding:1.1rem 1.25rem; margin-bottom:1.25rem; box-shadow:var(--ad-shadow);
}
.rh-quickadd-title{ color:#fff; font-weight:700; margin-bottom:.75rem; display:flex; align-items:center; gap:.5rem; }
.rh-quickadd-title i{ color:#FFD9A0; }
.rh-quickadd-row{ display:flex; align-items:center; gap:.75rem; flex-wrap:wrap; }
.rh-quickadd-imgbtn{ flex:0 0 auto; cursor:pointer; }
.rh-quickadd-imgpreview{
  width:56px; height:56px; border-radius:12px; background:rgba(255,255,255,.15);
  border:2px dashed rgba(255,255,255,.5); color:#fff; display:flex; align-items:center; justify-content:center;
  overflow:hidden; position:relative; font-size:1.1rem;
}
.rh-quickadd-imgpreview img{ width:100%; height:100%; object-fit:cover; }
.rh-quickadd-count{
  position:absolute; bottom:2px; inset-inline-end:2px; background:var(--ad-accent); color:#fff;
  font-size:.62rem; font-weight:700; border-radius:999px; padding:.05rem .35rem;
}
.rh-quickadd-name{ flex:1 1 220px; min-width:0; }
.rh-quickadd-price{ flex:0 1 140px; min-width:0; }
.rh-quickadd-btn{ flex:0 0 auto; white-space:nowrap; font-weight:700; }

.rh-quick-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:1rem; }
.rh-quick-card{
  background:var(--ad-bg); border:1px solid var(--ad-border); border-radius:12px; padding:.75rem; text-align:center;
}
.rh-quick-card img, .rh-quick-noimg{
  width:100%; aspect-ratio:1/1; object-fit:cover; border-radius:10px; margin-bottom:.5rem;
}
.rh-quick-noimg{
  display:flex; align-items:center; justify-content:center; background:var(--ad-surface);
  border:1px dashed var(--ad-border); color:var(--ad-ink-soft); font-size:1.3rem;
}
.rh-quick-name{
  font-weight:700; font-size:.85rem; overflow:hidden; text-overflow:ellipsis;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; min-height:2.3em;
}
.rh-quick-price{ color:var(--ad-accent-dk); font-weight:800; font-size:.9rem; margin:.25rem 0 .5rem; }
.rh-quick-actions{ display:flex; justify-content:center; gap:.4rem; }

/* ---------------- Responsive ---------------- */
@media (max-width: 991px){
  .rh-col-4, .rh-col-6{ grid-column:span 12; }
  .rh-order-cols{ grid-template-columns:1fr; }
  .rh-variant-form{ grid-template-columns:1fr 1fr; }
}

@media (max-width: 575px){
  .rh-quickadd-row{ gap:.6rem; }
  .rh-quickadd-name{ flex-basis:100%; order:1; }
  .rh-quickadd-price{ flex:1 1 auto; order:2; }
  .rh-quickadd-btn{ flex:1 1 auto; order:3; justify-content:center; }
  .rh-quickadd-imgbtn{ order:0; }
  .rh-quick-grid{ grid-template-columns:repeat(2, 1fr); gap:.7rem; }
  .rh-icon-btn{ width:40px; height:40px; }
}
.rh-category-picker{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:.55rem}
.rh-category-picker label{display:block;cursor:pointer;margin:0}
.rh-category-picker input{position:absolute;opacity:0;pointer-events:none}
.rh-category-picker span{display:flex;align-items:center;justify-content:center;min-height:44px;padding:.65rem .85rem;border:1px solid #d8d2ca;border-radius:12px;background:#fff;font-weight:700;text-align:center;transition:.15s}
.rh-category-picker input:checked+span{background:#5a4032;color:#fff;border-color:#5a4032;box-shadow:0 0 0 3px rgba(90,64,50,.12)}
@media(max-width:576px){.rh-category-picker{grid-template-columns:repeat(2,minmax(0,1fr))}.rh-category-picker span{min-height:48px}}

/* ---------- sign-in pages (BEEZ) ---------- */
.rh-auth-card{ background:var(--ad-surface); border:1px solid var(--ad-border); border-radius:var(--ad-radius); padding:2rem; box-shadow:var(--ad-shadow); }
.rh-btn{ display:inline-flex; align-items:center; justify-content:center; gap:.5em; background:var(--ad-accent); color:#fff; border:0; border-radius:999px; padding:.7rem 1.7rem; font-family:'Cairo',sans-serif; font-weight:700; cursor:pointer; }
.rh-btn:hover{ background:var(--ad-accent-dk); color:#fff; }
a.rh-btn{ text-decoration:none; }
.rh-btn-block{ width:100%; }
.rh-cap-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(210px,1fr)); gap:.4rem .8rem; }
.rh-cap-grid label{ display:flex; gap:.4rem; align-items:center; font-size:.88rem; }
.rh-json{ direction:ltr; text-align:left; white-space:pre-wrap; font-size:.8rem; max-width:520px; }
/* ---------- language switch ---------- */
.rh-lang-switch{ display:inline-flex; align-items:center; gap:.35rem; padding:.3rem .8rem; border:1px solid var(--ad-border); border-radius:999px; color:var(--ad-ink); text-decoration:none; font-size:.85rem; margin-inline-end:1rem; background:var(--ad-surface); }
.rh-lang-switch:hover{ border-color:var(--ad-accent); color:var(--ad-accent-dk); }
