/* Echo Store unified stylesheet
   Source merge: style.css + mobile-admin-fixes.css + remaining-mobile-fixes.css
   Keep only this file linked in header.php
*/
body {
    direction: rtl;
    text-align: right;
    font-family: 'Cairo', sans-serif;
    background: #f7f8fa;
}

a {
    color: #1f7a63;
    text-decoration: none;
}

a:hover {
    color: #145c49;
}

button, .btn {
    background: #1f7a63;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 14px;
    cursor: pointer;
    transition: 0.3s;
}

button:hover, .btn:hover {
    background: #145c49;
}

.btn-primary {
    background: #f4b400;
    color: #000;
}

.btn-primary:hover {
    background: #d99a00;
}
:root{
  --primary:#1d4ed8;
  --primary-dark:#0f3ea8;
  --secondary:#7c3aed;
  --accent:#f59e0b;
  --success:#16a34a;
  --danger:#dc2626;
  --ink:#0f172a;
  --text:#1f2937;
  --muted:#64748b;
  --line:#dbe3ef;
  --soft:#f8fbff;
  --surface:#ffffff;
  --surface-2:#f6f8fc;
  --shadow:0 14px 40px rgba(15,23,42,.08);
  --shadow-strong:0 22px 60px rgba(29,78,216,.12);
  --radius:24px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Tahoma,Arial,sans-serif;background:radial-gradient(circle at top right,rgba(124,58,237,.07),transparent 24%),linear-gradient(180deg,#f9fbff 0,#f3f6fb 220px,#f6f8fc 100%);color:var(--text)}
a{text-decoration:none;color:inherit}
img{max-width:100%;display:block}
button,input,select,textarea{font:inherit}
.wrap{max-width:1280px;margin:auto;padding:0 20px}
.topbar{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.86);backdrop-filter:blur(14px);border-bottom:1px solid rgba(219,227,239,.85)}
.topbar-inner{display:flex;justify-content:space-between;align-items:center;gap:18px;min-height:86px}
.brand{display:flex;align-items:center;gap:14px;min-width:260px}
.brand img{width:72px;height:72px;object-fit:contain;border-radius:22px;padding:8px;background:linear-gradient(180deg,#fff,#f2f6ff);box-shadow:var(--shadow)}
.brand strong{display:block;font-size:24px;color:var(--ink);line-height:1.05}
.brand span{display:block;color:var(--muted);font-size:13px;margin-top:4px}
.nav{display:flex;flex-wrap:wrap;align-items:center;gap:8px;justify-content:flex-end}
.nav a{padding:11px 15px;border-radius:14px;font-weight:700;color:#334155;transition:.18s ease}
.nav a:hover,.nav a.active{background:#e8f0ff;color:var(--primary-dark)}
main.wrap{padding-top:26px;padding-bottom:54px}
.hero-shell,.card,.panel,.stat,.metric,.feature-box,.glass-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}
.hero-banner{position:relative;display:grid;grid-template-columns:1.3fr .95fr;gap:24px;overflow:hidden;padding:34px;border-radius:32px;background:linear-gradient(135deg,#0f172a 0,#1d4ed8 40%,#7c3aed 100%);color:#fff;box-shadow:var(--shadow-strong)}
.hero-banner:before,.hero-banner:after{content:"";position:absolute;border-radius:999px;background:rgba(255,255,255,.09)}
.hero-banner:before{width:310px;height:310px;left:-80px;bottom:-150px}
.hero-banner:after{width:230px;height:230px;right:-70px;top:-85px}
.hero-badge{display:inline-flex;align-items:center;gap:8px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.18);padding:8px 14px;border-radius:999px;font-size:13px;font-weight:700}
.hero-banner h1{font-size:48px;line-height:1.15;margin:18px 0 14px;max-width:760px}
.hero-banner p{margin:0 0 20px;font-size:16px;line-height:1.95;color:rgba(255,255,255,.92);max-width:720px}
.hero-side{display:grid;gap:14px;align-content:stretch}
.hero-image-box{min-height:280px;border-radius:28px;padding:20px;background:linear-gradient(180deg,rgba(255,255,255,.18),rgba(255,255,255,.08));border:1px solid rgba(255,255,255,.18);display:flex;align-items:center;justify-content:center}
.hero-image-box img{max-height:230px;filter:drop-shadow(0 18px 40px rgba(0,0,0,.22))}
.glass-card{padding:18px;background:rgba(255,255,255,.14);backdrop-filter:blur(6px);border:1px solid rgba(255,255,255,.14);color:#fff;box-shadow:none}
.hero-highlights{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:20px}
.mini-stat{padding:14px;border-radius:20px;background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.16)}
.mini-stat strong{display:block;font-size:24px;margin-bottom:4px}
.mini-stat span{font-size:13px;color:rgba(255,255,255,.9)}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:12px 18px;border:none;border-radius:15px;background:var(--primary);color:#fff;font-weight:800;cursor:pointer;transition:.18s ease;box-shadow:0 12px 25px rgba(29,78,216,.22)}
.btn:hover{transform:translateY(-1px);background:var(--primary-dark)}
.btn.alt{background:#fff;color:var(--primary-dark)}
.btn.soft{background:#eff6ff;color:var(--primary-dark);box-shadow:none}
.btn.warn{background:var(--accent);color:#111827}
.btn.danger{background:var(--danger)}
.btn.ghost{background:transparent;border:1px solid rgba(255,255,255,.22);box-shadow:none}
.section-title{display:flex;justify-content:space-between;align-items:end;gap:14px;margin:30px 0 16px}
.section-title h1,.section-title h2,.section-title h3{margin:0;color:var(--ink)}
.section-title p{margin:6px 0 0;color:var(--muted)}
.muted{color:var(--muted)}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:20px}
.grid.cols-4{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}
.grid.cols-3{grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}
.card,.panel{padding:22px}
.card h3,.panel h3{margin:0 0 8px;color:var(--ink)}
.product-card{padding:16px;display:flex;flex-direction:column;gap:12px;position:relative;overflow:hidden}
.product-card:hover{transform:translateY(-2px);transition:.18s ease;box-shadow:0 22px 44px rgba(15,23,42,.1)}
.product-image{width:100%;height:220px;object-fit:cover;border-radius:20px;background:linear-gradient(180deg,#eff6ff,#eef2ff)}
.price{font-size:22px;font-weight:900;color:var(--primary-dark)}
.badge,.pill{display:inline-flex;align-items:center;padding:7px 11px;border-radius:999px;background:#eef2f7;color:#334155;font-size:13px;font-weight:800}
.badge.primary{background:#e9f1ff;color:var(--primary-dark)}
.badge.success{background:#ecfdf3;color:#15803d}
.badge.warning{background:#fff7ed;color:#b45309}
.badge.danger{background:#fef2f2;color:#b91c1c}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.form-grid .full{grid-column:1/-1}
label{display:block;margin-bottom:7px;font-weight:800;color:var(--ink)}
input,select,textarea{width:100%;padding:13px 14px;border:1px solid #cbd5e1;border-radius:15px;background:#fff;outline:none;transition:.18s ease}
input:focus,select:focus,textarea:focus{border-color:#93c5fd;box-shadow:0 0 0 4px rgba(147,197,253,.22)}
textarea{min-height:130px;resize:vertical}
.search-row,.actions{display:flex;gap:12px;flex-wrap:wrap;align-items:center}
.search-row input,.actions input[type="text"],.actions input[type="search"],.actions input[type="number"],.search-row select{flex:1 1 180px}
.table-card{padding:0;overflow:auto}
table{width:100%;border-collapse:collapse;background:#fff}
th,td{padding:14px 16px;border-bottom:1px solid var(--line);text-align:right;vertical-align:top}
th{background:#f8fbff;color:#475569;font-size:14px;position:sticky;top:0}
tr:hover td{background:#fbfdff}
.alert{padding:13px 15px;border-radius:15px;margin:14px 0;font-weight:800}
.alert.success{background:#ecfdf3;color:#166534}
.alert.error{background:#fef2f2;color:#b91c1c}
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px}
.stat,.metric{padding:20px}
.stat strong,.metric strong{display:block;font-size:32px;color:var(--ink);margin-bottom:6px}
.stat small,.metric small{color:var(--muted)}
.two-col{display:grid;grid-template-columns:1.1fr .9fr;gap:20px}
.kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.metric{background:linear-gradient(180deg,#fff,#f8fbff)}
.metric .icon{width:48px;height:48px;border-radius:16px;background:#eaf2ff;color:var(--primary-dark);display:flex;align-items:center;justify-content:center;font-weight:900;margin-bottom:12px}
.list-clean{display:grid;gap:12px}
.list-item{display:flex;justify-content:space-between;gap:14px;padding:14px 16px;border:1px solid var(--line);border-radius:18px;background:#fff}
.dashboard-head{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;flex-wrap:wrap;margin-bottom:20px}
.progress{height:10px;border-radius:999px;background:#e2e8f0;overflow:hidden}
.progress>span{display:block;height:100%;background:linear-gradient(90deg,var(--primary),var(--secondary))}
.footer{margin-top:44px;padding:28px 0;color:var(--muted);text-align:center}
.empty{padding:32px;border:1px dashed #cbd5e1;border-radius:22px;background:#fff;text-align:center;color:var(--muted)}
.status-pending{background:#fff7ed;color:#b45309}.status-processing{background:#eff6ff;color:#1d4ed8}.status-shipped{background:#ecfeff;color:#0f766e}.status-delivered{background:#ecfdf3;color:#15803d}.status-cancelled{background:#fef2f2;color:#b91c1c}
.split-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.banner-grid{display:grid;grid-template-columns:2fr 1fr;gap:18px;margin-top:18px}
.feature-box{padding:20px}
.surface-soft{background:linear-gradient(180deg,#fff,#f8fbff)}
.hero-inline-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:12px}
.hero-inline-stats .glass-card{padding:14px}
.auth-shell{max-width:980px;margin:0 auto;display:grid;grid-template-columns:1fr 1fr;gap:22px;align-items:stretch}
.auth-side{background:linear-gradient(135deg,#0f172a,#1d4ed8 55%,#7c3aed);color:#fff;padding:32px;border-radius:30px;position:relative;overflow:hidden;box-shadow:var(--shadow-strong)}
.auth-side:before{content:"";position:absolute;width:240px;height:240px;border-radius:50%;background:rgba(255,255,255,.08);left:-60px;bottom:-90px}
.auth-side h1{margin:18px 0 10px;font-size:38px;line-height:1.2}
.auth-side p{line-height:1.9;color:rgba(255,255,255,.92)}
.auth-card{padding:28px;border-radius:30px;background:#fff;border:1px solid var(--line);box-shadow:var(--shadow)}
.shop-hero{display:grid;grid-template-columns:1.15fr .85fr;gap:18px;padding:24px;border-radius:30px;background:linear-gradient(135deg,#fff,#eff6ff)}
.filter-bar{display:grid;grid-template-columns:1.2fr .8fr auto;gap:12px;align-items:end}
.subtle-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.stat-chip{padding:16px 18px;border-radius:20px;background:#fff;border:1px solid var(--line);box-shadow:var(--shadow)}
.stat-chip strong{display:block;font-size:24px;color:var(--ink)}
.cover-card{padding:0;overflow:hidden}
.cover-card .content{padding:18px}
.logo-bubble{display:inline-flex;align-items:center;justify-content:center;width:56px;height:56px;border-radius:18px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.16)}
.shop-empty{grid-column:1/-1}
@media (max-width:1080px){.hero-banner,.shop-hero,.two-col,.auth-shell,.banner-grid{grid-template-columns:1fr}.kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.hero-banner h1{font-size:38px}}
@media (max-width:760px){.wrap{padding:0 14px}.topbar-inner{padding:10px 0;align-items:flex-start}.brand{min-width:auto}.brand strong{font-size:21px}.nav{width:100%;justify-content:flex-start}.hero-banner{padding:24px}.hero-banner h1{font-size:30px}.hero-highlights,.hero-inline-stats,.kpis,.subtle-grid,.form-grid,.filter-bar{grid-template-columns:1fr}.stats{grid-template-columns:1fr}.card,.panel{padding:18px}th,td{padding:12px 10px;font-size:14px}}

.admin-shortcuts{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px}
.shortcut-card{display:block;padding:22px;border-radius:24px;background:linear-gradient(180deg,#fff,#f8fbff);border:1px solid var(--line);box-shadow:var(--shadow);transition:.18s ease}
.shortcut-card strong{display:block;font-size:18px;color:var(--ink);margin-bottom:8px}
.shortcut-card span{color:var(--muted);line-height:1.8}
.shortcut-card:hover{transform:translateY(-2px);box-shadow:0 20px 40px rgba(15,23,42,.08)}
.admin-tabs{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0 24px}
.admin-tabs a{padding:11px 14px;border-radius:14px;background:#fff;border:1px solid var(--line);font-weight:800;color:#334155}
.admin-tabs a.active,.admin-tabs a:hover{background:#e8f0ff;color:var(--primary-dark)}
.table-media{display:flex;align-items:center;gap:12px;min-width:240px}
.table-media img{width:56px;height:56px;object-fit:cover;border-radius:14px;background:#f8fafc;padding:4px}
.auth-shell-register{max-width:1180px;grid-template-columns:.88fr 1.12fr;align-items:start}
.auth-side-register{min-height:100%;padding:28px}
.auth-side-register h1{font-size:34px}
.auth-logo-bubble{width:64px;height:64px}
.auth-side-logo{width:42px;height:42px;object-fit:contain}
.auth-card-register{padding:30px 32px}
.register-title h2{font-size:36px}
.register-form .field-help{display:block;margin-top:8px;color:var(--muted);background:#f8fafc;border:1px solid var(--line);padding:10px 12px;border-radius:12px}
.nested-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.checkbox-row{padding-top:4px}
.checkbox-label{display:flex;align-items:center;gap:10px;font-weight:500;color:#334155}
.checkbox-label input{width:auto}
.role-fields{padding:16px;border:1px solid var(--line);border-radius:20px;background:#fbfdff}
.register-actions{justify-content:space-between}
@media (max-width:1080px){.auth-shell-register{grid-template-columns:1fr}.auth-side-register{display:none}.auth-card-register{padding:24px}}
@media (max-width:760px){.brand img{width:58px;height:58px}.brand span{font-size:12px}.auth-card-register{padding:18px 16px;border-radius:22px}.register-title h2{font-size:28px}.nested-grid{grid-template-columns:1fr}.register-actions .btn{width:100%}.footer{padding:22px 0 34px}}


.admin-hero{padding:22px 24px;border-radius:28px;background:linear-gradient(135deg,#0f172a,#134e4a 55%,#0f766e);color:#fff;box-shadow:var(--shadow-strong);margin-bottom:18px}
.admin-hero h1{margin:0 0 8px;font-size:34px;color:#fff}
.admin-hero p{margin:0;color:rgba(255,255,255,.88);line-height:1.9}
.quick-links-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:14px;margin-top:16px}
.quick-link{padding:18px;border-radius:22px;background:#fff;border:1px solid var(--line);box-shadow:var(--shadow);display:block}
.quick-link strong{display:block;color:var(--ink);margin-bottom:8px}
.quick-link span{color:var(--muted);line-height:1.8}
.auth-shell-register{max-width:1080px;grid-template-columns:.76fr 1.24fr;gap:18px}
.auth-side-register{padding:24px}
.auth-side-register h1{font-size:30px}
.auth-side-register p{font-size:15px}
.auth-logo-bubble{width:56px;height:56px}
.auth-side-logo{width:34px;height:34px}
.register-card-header{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:10px}
.register-mark{display:flex;align-items:center;gap:12px}
.register-mark img{width:72px;height:72px;object-fit:contain}
.register-mark .meta{display:grid;gap:5px}
.register-mark .meta strong{font-size:16px;color:var(--ink)}
.register-mark .meta span{font-size:13px;color:var(--muted)}
.field-set{display:grid;gap:14px;padding:16px;border:1px solid var(--line);border-radius:22px;background:#fff}
.field-set h3{margin:0;font-size:17px;color:var(--ink)}
.field-set p{margin:0;color:var(--muted);font-size:14px}
.form-note{font-size:13px;color:var(--muted);margin-top:6px}
.inline-badge{display:inline-flex;align-items:center;padding:8px 12px;border-radius:999px;background:#f1f5f9;color:#0f172a;font-weight:800;font-size:12px}
.footer{margin-top:44px;padding:18px 0 28px;color:var(--muted);text-align:center;font-size:13px}
.footer.minimal{border-top:1px solid var(--line)}
@media (max-width:1080px){.register-mark img{width:58px;height:58px}.admin-hero h1{font-size:28px}}
@media (max-width:760px){.topbar{position:static}.nav{gap:8px}.nav a{padding:10px 12px;font-size:14px}.register-mark img{width:50px;height:50px}.register-mark .meta strong{font-size:15px}.auth-card-register{padding:16px 14px}.field-set{padding:14px;border-radius:18px}.admin-hero{padding:18px}.quick-links-grid{grid-template-columns:1fr}}

.admin-orders-layout{align-items:start}
.sticky-panel{position:sticky;top:110px}
.timeline{display:grid;gap:12px}
.timeline-item{display:flex;justify-content:space-between;gap:12px;padding:14px 16px;border:1px solid var(--line);border-radius:18px;background:#fff}
.timeline-item strong{color:var(--ink)}
.order-items-stack{display:grid;gap:12px}
.order-item-card{display:grid;grid-template-columns:64px 1fr auto;gap:12px;align-items:center;padding:12px 14px;border:1px solid var(--line);border-radius:18px;background:#fff}
.order-item-card img{width:64px;height:64px;object-fit:cover;border-radius:14px;background:#f8fafc;padding:4px}
.price-block{display:grid;justify-items:end;gap:4px}
.compact-list .list-item{padding:10px 12px;border-radius:14px}
.driver-open-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.selected-chip{border-color:#93c5fd;box-shadow:0 0 0 3px rgba(147,197,253,.18)}
@media (max-width:1080px){.sticky-panel{position:static}.driver-open-grid{grid-template-columns:1fr}}
.main-header {
    background: #fff;
    padding: 10px 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.nav-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    height: 40px;
}

.search-box {
    width: 100%;
    max-width: 400px;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
}
.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.product-info {
    padding: 10px;
}

.price {
    color: #1f7a63;
    font-weight: bold;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 12px;
}
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
}
@media (max-width: 768px) {
    .nav-flex {
        flex-direction: column;
        gap: 10px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

body {
    direction: rtl;
    text-align: right;
}

a {
    color: #1f7a63;
}

a:hover {
    color: #145c49;
}

.btn {
    background: #1f7a63;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 10px 16px;
    transition: all .25s ease;
    text-align: center;
}

.btn:hover {
    background: #145c49;
    transform: translateY(-1px);
}

.btn.soft {
    background: #eef7f3;
    color: #1f7a63;
}

.btn.soft:hover {
    background: #dcefe8;
    color: #145c49;
}

.btn.alt,
.btn-primary {
    background: #f4b400;
    color: #1f1f1f;
}

.btn.alt:hover,
.btn-primary:hover {
    background: #d99a00;
}

.full-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 18px;
}

.category-card {
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,.06);
    border: 1px solid #edf1ef;
    transition: all .25s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(0,0,0,.08);
}

.category-top {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 10px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
}

.enhanced-product-card {
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,.06);
    border: 1px solid #edf1ef;
    transition: all .3s ease;
    padding: 0;
}

.enhanced-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(0,0,0,.1);
}

.product-thumb-wrap {
    position: relative;
    background: #f7f8fa;
}

.product-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #f4b400;
    color: #222;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.product-body {
    padding: 16px;
}

.vendor-line {
    color: #1f7a63;
    font-size: 13px;
    margin-bottom: 6px;
    font-weight: 700;
}

.product-title {
    font-size: 17px;
    line-height: 1.5;
    margin: 0 0 10px;
    min-height: 52px;
}

.price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.price {
    color: #145c49;
    font-size: 20px;
    font-weight: 800;
}

.product-desc {
    min-height: 46px;
    margin-bottom: 14px;
}

.product-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.hero-banner {
    direction: rtl;
}

.hero-banner,
.feature-box,
.panel,
.table-card,
.card {
    border-radius: 22px;
}

.split-actions {
    gap: 10px;
    flex-wrap: wrap;
}

table {
    direction: rtl;
}

th, td {
    text-align: right;
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .categories-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .product-image {
        height: 150px;
    }

    .product-title {
        font-size: 14px;
        min-height: 42px;
    }

    .price {
        font-size: 16px;
    }

    .product-body {
        padding: 12px;
    }
}
/* ===== Echo Store v11 UI refresh ===== */
:root{
  --primary:#1f7a63;
  --primary-dark:#145c49;
  --secondary:#3f6f5d;
  --accent:#f4b400;
  --success:#198754;
  --danger:#c0392b;
  --ink:#18312b;
  --text:#24352f;
  --muted:#6c7b75;
  --line:#dbe5df;
  --soft:#f5faf7;
  --surface:#ffffff;
  --surface-2:#f7faf8;
  --shadow:0 14px 34px rgba(24,49,43,.08);
  --shadow-strong:0 22px 54px rgba(31,122,99,.16);
}

html,body{direction:rtl}
body{font-family:'Cairo',Tahoma,Arial,sans-serif;background:radial-gradient(circle at top right,rgba(244,180,0,.09),transparent 20%),linear-gradient(180deg,#fbfcfb 0,#f3f7f4 240px,#f6f8f7 100%);color:var(--text);text-align:right}
.main-header{position:sticky;top:0;z-index:60;background:rgba(255,255,255,.92);backdrop-filter:blur(12px);border-bottom:1px solid rgba(219,229,223,.95);padding:10px 0;box-shadow:none}
.container,.nav-flex{max-width:1280px;margin:auto;padding:0 20px}
.nav-flex{display:grid;grid-template-columns:auto 1fr auto;gap:16px;align-items:center}
.nav-right,.nav-center,.nav-left{display:flex;align-items:center}
.nav-right{justify-content:flex-start}
.nav-center{justify-content:center}
.nav-left{justify-content:flex-end;gap:12px}
.logo{height:54px;width:auto;object-fit:contain}
.search-box{width:min(100%,520px);max-width:520px;height:48px;padding:0 16px;border-radius:16px;border:1px solid var(--line);background:#fff;outline:none;text-align:right;box-shadow:inset 0 1px 2px rgba(0,0,0,.02)}
.search-box:focus,input:focus,select:focus,textarea:focus{border-color:rgba(31,122,99,.42);box-shadow:0 0 0 4px rgba(31,122,99,.12);outline:none}
.nav-left a{width:42px;height:42px;border-radius:14px;display:inline-flex;align-items:center;justify-content:center;background:#fff;border:1px solid var(--line);box-shadow:var(--shadow)}
.nav-left a:hover{color:var(--primary-dark);transform:translateY(-1px)}
.nav,.topbar,.topbar-inner,.brand img,.nav a.active,.nav a:hover,.admin-tabs a.active,.admin-tabs a:hover{color:inherit}
.badge.primary,.btn.soft,.nav a:hover,.nav a.active,.admin-tabs a.active,.admin-tabs a:hover{background:#eef7f3;color:var(--primary-dark)}
.hero-banner{background:linear-gradient(135deg,#12352f 0,#1f7a63 52%,#28463b 100%);box-shadow:var(--shadow-strong)}
.hero-banner:before,.hero-banner:after{background:rgba(255,255,255,.07)}
.home-hero-v11{align-items:center;min-height:420px}
.hero-copy{position:relative;z-index:2}
.hero-actions-row{margin-top:22px}
.hero-side-v11{display:flex;align-items:stretch}
.hero-showcase{width:100%;padding:22px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.18);backdrop-filter:blur(8px)}
.hero-showcase-head{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:18px}
.hero-showcase-head h3{margin:6px 0 0;color:#fff;font-size:26px}
.eyebrow{display:inline-block;font-size:12px;font-weight:800;letter-spacing:.4px;color:rgba(255,255,255,.78)}
.logo-orb{width:78px;height:78px;border-radius:24px;background:rgba(255,255,255,.14);display:flex;align-items:center;justify-content:center;border:1px solid rgba(255,255,255,.2)}
.logo-orb img{width:56px;height:56px;object-fit:contain}
.compact-stats-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.metrics-four{grid-template-columns:repeat(4,minmax(0,1fr))}
.hero-points-list{display:grid;gap:10px;margin-top:16px}
.point-row{display:flex;align-items:flex-start;gap:10px;color:rgba(255,255,255,.92);line-height:1.8}
.point-dot{width:10px;height:10px;border-radius:999px;background:var(--accent);flex:0 0 10px;margin-top:9px}

.section-title-spaced{margin-top:34px}
.top-summary-v11{margin-top:20px}
.stats-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.feature-list-v11 .list-item,.category-card-v11,.product-card-v11,.shop-product-card-v11{border:1px solid var(--line)}
.category-card-v11{display:flex;flex-direction:column;gap:12px;min-height:220px;background:linear-gradient(180deg,#fff,#fbfdfc)}
.category-card-v11 h3{margin:0;font-size:22px;color:var(--ink)}
.category-count{font-size:12px;font-weight:800;color:var(--primary-dark);background:#eef7f3;padding:7px 10px;border-radius:999px}
.category-top{display:flex;justify-content:space-between;align-items:center;gap:10px}
.categories-grid-v11{gap:20px}

.products-grid-v11{gap:22px}
.product-card-v11,.shop-product-card-v11{padding:0;border-radius:24px;background:linear-gradient(180deg,#fff,#fbfcfb);overflow:hidden;box-shadow:0 14px 34px rgba(24,49,43,.06)}
.product-card-v11:hover,.shop-product-card-v11:hover{transform:translateY(-6px);box-shadow:0 24px 44px rgba(24,49,43,.11)}
.product-thumb-wrap{background:linear-gradient(180deg,#f3f7f4,#eef5f1)}
.product-image{height:230px;object-fit:cover}
.product-badge{right:12px;left:auto;background:rgba(244,180,0,.95);color:#2f2500;box-shadow:0 8px 18px rgba(244,180,0,.2)}
.product-body{padding:18px}
.product-meta-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px;flex-wrap:wrap}
.vendor-line{color:var(--primary-dark)}
.stock-chip{display:inline-flex;align-items:center;padding:7px 10px;border-radius:999px;background:#eef7f3;color:var(--primary-dark);font-size:12px;font-weight:800}
.product-title{margin:0 0 8px;font-size:19px;line-height:1.6;color:var(--ink);min-height:60px}
.product-desc{min-height:52px;line-height:1.9}
.price-row{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}
.price{color:var(--primary-dark);font-size:23px;font-weight:900}
.link-inline{font-weight:800;color:var(--primary-dark)}
.link-inline:hover{color:#0e4a3a}
.product-actions-two{grid-template-columns:repeat(2,minmax(0,1fr))}
.product-form-v11{display:grid;grid-template-columns:90px 1fr;gap:10px;align-items:center}
.product-form-v11 input[type="number"]{width:100%;height:46px;border-radius:14px;border:1px solid var(--line);padding:0 12px;background:#fff;text-align:center}

.shop-hero-v11{background:linear-gradient(135deg,#fff,#f2f8f5);border:1px solid var(--line);padding:28px}
.shop-hero-badge{background:#eef7f3;border-color:#d6e8df;color:var(--primary-dark)}
.filter-card-v11{padding:20px;background:rgba(255,255,255,.86)}
.filter-bar-v11{grid-template-columns:1.2fr .8fr 120px}
.filter-bar-v11 label{display:block;margin-bottom:8px;font-weight:800;color:var(--ink)}
.filter-bar-v11 input,.filter-bar-v11 select{height:48px;border-radius:14px;border:1px solid var(--line);padding:0 14px;background:#fff;text-align:right}
.products-grid-shop{margin-top:0}
.shop-stats-v11{margin-top:20px}

.btn,.btn:hover,button,button:hover{box-shadow:none}
.btn{background:var(--primary);border-radius:14px;font-weight:800}
.btn:hover{background:var(--primary-dark)}
.btn.alt,.btn-primary{background:var(--accent);color:#2b2200}
.btn.alt:hover,.btn-primary:hover{background:#d99a00;color:#2b2200}
.card,.panel,.feature-box,.table-card,.shop-hero{border-radius:24px}
.table-card table,table{direction:rtl}
th,td{text-align:right}
.section-gap-lg{margin-top:32px}

@media (max-width:1080px){
  .nav-flex{grid-template-columns:1fr;justify-items:stretch}
  .nav-right,.nav-center,.nav-left{justify-content:center}
  .metrics-four,.compact-stats-grid,.stats-3,.product-actions-two{grid-template-columns:repeat(2,minmax(0,1fr))}
  .filter-bar-v11{grid-template-columns:1fr 1fr}
  .filter-bar-v11 button{grid-column:1/-1}
}
@media (max-width:760px){
  .container,.nav-flex{padding:0 14px}
  .main-header{position:static}
  .logo{height:48px}
  .search-box{max-width:100%}
  .hero-banner h1,.shop-hero-v11 h1{font-size:30px}
  .hero-showcase-head h3{font-size:22px}
  .metrics-four,.compact-stats-grid,.stats-3,.product-actions-two,.filter-bar-v11,.product-form-v11{grid-template-columns:1fr}
  .products-grid-v11,.products-grid-shop{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
  .categories-grid-v11{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
  .product-image{height:160px}
  .product-body{padding:14px}
  .product-title{font-size:15px;min-height:46px}
  .product-desc{font-size:13px;min-height:44px}
  .price{font-size:18px}
  .category-card-v11{min-height:auto;padding:16px}
}


/* v12 header + responsive hero fixes */
.nav-shell{display:grid;gap:10px}
.brand-link{display:inline-flex;align-items:center}
.header-search-form{width:100%;display:flex;justify-content:center}
.main-nav{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:10px;padding:2px 0 6px}
.main-nav a{display:inline-flex;align-items:center;justify-content:center;padding:10px 14px;border-radius:999px;background:transparent;border:1px solid transparent;color:var(--ink);font-weight:800;line-height:1}
.main-nav a:hover,.main-nav a.active{background:#eef7f3;border-color:#d8e8df;color:var(--primary-dark)}
.home-hero-v11{min-height:unset;padding:26px 28px}
.hero-banner h1{font-size:clamp(32px,4vw,56px);line-height:1.14}
.hero-banner p{font-size:15px;line-height:1.9}
.hero-showcase{height:auto}
.hero-showcase .glass-card strong{font-size:20px}

@media (max-width:1080px){
  .home-hero-v11{padding:22px 22px}
}
@media (max-width:760px){
  .nav-shell{gap:8px}
  .nav-left{gap:8px}
  .nav-left a{width:40px;height:40px}
  .main-nav{justify-content:flex-start;overflow-x:auto;flex-wrap:nowrap;padding-bottom:8px}
  .main-nav a{white-space:nowrap;padding:9px 12px;font-size:14px}
  .home-hero-v11{padding:18px;border-radius:24px;gap:16px}
  .hero-banner h1{font-size:clamp(24px,8vw,32px);margin:12px 0 10px}
  .hero-banner p{font-size:14px;margin-bottom:14px}
  .hero-actions-row{margin-top:14px}
  .hero-highlights{margin-top:14px}
  .hero-showcase{padding:16px;border-radius:20px}
  .hero-showcase-head{margin-bottom:12px}
  .hero-showcase-head h3{font-size:20px}
  .logo-orb{width:62px;height:62px;border-radius:18px}
  .logo-orb img{width:42px;height:42px}
}

/* ===== v13 mobile app style + product page ===== */
.mobile-menu{display:none;position:relative}
.mobile-menu summary{list-style:none;width:42px;height:42px;border-radius:14px;display:inline-flex;align-items:center;justify-content:center;background:#fff;border:1px solid var(--line);box-shadow:var(--shadow);cursor:pointer;font-size:22px;line-height:1}
.mobile-menu summary::-webkit-details-marker{display:none}
.mobile-drawer{position:absolute;top:52px;inset-inline-start:0;min-width:220px;background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:0 20px 40px rgba(24,49,43,.12);padding:10px;display:grid;gap:6px}
.mobile-drawer a{padding:10px 12px;border-radius:12px;font-weight:800;color:var(--ink)}
.mobile-drawer a:hover,.mobile-drawer a.active{background:#eef7f3;color:var(--primary-dark)}
.mobile-app-shell{padding-top:18px}
.product-thumb-link{display:block}
.compact-product-card .product-title a{color:inherit}
.compact-product-card .product-title a:hover{color:var(--primary-dark)}
.shop-hero-compact{grid-template-columns:minmax(0,1fr) 380px;gap:16px;padding:18px 20px;border-radius:24px}
.shop-hero-compact h1{font-size:34px;margin:8px 0}
.compact-copy p{margin-bottom:10px}
.compact-stats-row{gap:10px;margin-top:12px}
.compact-chip{padding:12px 14px;border-radius:18px}
.compact-chip strong{font-size:20px}
.filter-card-compact{padding:14px 16px;border-radius:22px}
.filter-bar-compact{grid-template-columns:1fr 180px 100px;gap:10px}
.filter-bar-compact label{margin-bottom:6px;font-size:13px}
.products-grid-mobile-app{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}
.compact-product-card{border-radius:20px}
.compact-product-card .product-image{height:180px}
.compact-product-body{padding:12px}
.compact-meta-row{margin-bottom:8px}
.compact-badge{font-size:12px;padding:7px 10px}
.compact-price-row{margin-bottom:10px}
.product-form-compact{grid-template-columns:72px 1fr;gap:8px}
.product-form-compact input[type="number"]{height:42px;border-radius:12px}
.product-form-compact .btn{padding:10px 12px;border-radius:12px}
.compact-section-title{margin-top:22px;margin-bottom:6px}
.compact-section-title h2{font-size:28px}
.product-page-shell{display:grid;grid-template-columns:minmax(0,1fr) 1fr;gap:20px;align-items:start}
.product-gallery-card,.product-details-card{padding:18px}
.product-page-image{width:100%;height:clamp(280px,42vw,520px);object-fit:cover;border-radius:22px;background:#f4f7f5}
.product-page-topline{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px;flex-wrap:wrap}
.back-link{font-weight:800;color:var(--primary-dark)}
.page-badge{position:static;display:inline-flex}
.product-details-card h1{margin:0 0 12px;font-size:clamp(28px,4vw,42px);line-height:1.25;color:var(--ink)}
.product-page-meta{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:14px}
.product-page-price{font-size:32px;font-weight:900;color:var(--primary-dark);margin-bottom:14px}
.product-page-description{line-height:2;background:#f7faf8;border:1px solid var(--line);padding:14px 16px;border-radius:18px;color:var(--text)}
.product-buy-box{display:grid;grid-template-columns:120px 1fr 1fr;gap:10px;align-items:end;margin-top:16px}
.product-buy-box label{display:block;margin-bottom:6px;font-weight:800}
.product-buy-box input{width:100%;height:46px;border-radius:14px;border:1px solid var(--line);padding:0 12px;text-align:center}
@media (max-width:1080px){
  .shop-hero-compact{grid-template-columns:1fr}
  .product-page-shell{grid-template-columns:1fr}
}
@media (max-width:760px){
  .desktop-nav{display:none}
  .mobile-menu{display:block}
  .app-topbar{grid-template-columns:auto 1fr auto;gap:10px}
  .app-actions{gap:8px}
  .app-actions a,.mobile-menu summary{width:40px;height:40px;border-radius:12px}
  .app-brand-wrap .logo{height:44px}
  .app-search-wrap .search-box{height:42px;border-radius:14px;padding:0 12px;font-size:14px}
  .mobile-app-shell{padding-top:12px}
  .wrap{padding:0 10px}
  .card,.panel,.feature-box,.table-card,.shop-hero{border-radius:20px}
  .home-hero-v11,.shop-hero-compact{padding:14px 14px;gap:12px}
  .home-hero-v11 .hero-showcase,.top-summary-v11,.banner-grid{gap:12px}
  .hero-badge{font-size:11px;padding:8px 10px}
  .hero-banner h1,.shop-hero-compact h1{font-size:24px;line-height:1.3}
  .hero-banner p,.shop-hero-compact p{font-size:13px;line-height:1.7}
  .hero-actions-row{gap:8px}
  .hero-actions-row .btn{padding:10px 12px;font-size:14px}
  .hero-highlights,.compact-stats-grid,.stats-3{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .mini-stat,.glass-card,.compact-chip,.stat-chip{padding:10px 10px;border-radius:16px}
  .mini-stat strong,.glass-card strong,.compact-chip strong,.stat-chip strong{font-size:18px}
  .section-title-spaced{margin-top:22px}
  .compact-section-title h2,.section-title h2{font-size:22px}
  .categories-grid-v11,.products-grid-v11,.products-grid-shop,.products-grid-mobile-app{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .category-card-v11{padding:14px;min-height:auto}
  .category-card-v11 h3{font-size:17px}
  .compact-product-card,.product-card-v11,.shop-product-card-v11{border-radius:18px}
  .compact-product-card .product-image,.product-image{height:122px}
  .compact-product-body,.product-body{padding:10px}
  .product-title{font-size:14px;min-height:38px;line-height:1.45}
  .product-desc,.vendor-line,.stock-chip,.link-inline,.compact-badge{font-size:11px}
  .price{font-size:16px}
  .product-form-compact,.product-form-v11{grid-template-columns:56px 1fr}
  .product-form-compact input[type="number"],.product-form-v11 input[type="number"]{height:36px;font-size:13px}
  .product-form-compact .btn,.product-form-v11 .btn{padding:8px 10px;font-size:13px}
  .filter-card-compact{padding:12px}
  .filter-bar-compact,.filter-bar-v11{grid-template-columns:1fr;gap:8px}
  .product-gallery-card,.product-details-card{padding:12px}
  .product-page-image{height:260px;border-radius:18px}
  .product-details-card h1{font-size:24px}
  .product-page-price{font-size:24px}
  .product-page-description{padding:12px 14px;border-radius:16px;font-size:14px;line-height:1.85}
  .product-buy-box{grid-template-columns:1fr;gap:8px}
}


/* ===== v14 mobile overhaul ===== */
main.wrap{padding-top:18px;padding-bottom:84px}
.table-card,.panel{overflow:hidden}.table-card{overflow-x:auto} table{min-width:680px}.admin-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 14px;padding:8px;background:#fff;border:1px solid var(--line);border-radius:18px;overflow:auto}.admin-tabs a{white-space:nowrap;padding:10px 14px;border-radius:999px;background:#f7faf8;border:1px solid var(--line);font-weight:800}.dashboard-head,.section-title{gap:10px}.split-actions{display:flex;gap:10px;flex-wrap:wrap}.split-actions .btn{flex:1 1 160px}.kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.metric{min-height:unset;padding:16px;border-radius:20px}.metric strong{font-size:24px}.list-clean{display:grid;gap:12px}.list-item{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 16px;background:#fff;border:1px solid var(--line);border-radius:18px}.hero-side-v11 .hero-showcase{min-height:auto}.top-summary-v11 .feature-box,.categories-grid-v11 .category-card-v11{min-height:auto}.mobile-filter-panel summary{display:flex;align-items:center;justify-content:space-between;cursor:pointer;list-style:none;font-weight:900;color:var(--ink);padding:2px 0 14px}.mobile-filter-panel summary::-webkit-details-marker{display:none}.mobile-filter-panel summary:after{content:"▾";font-size:18px;color:var(--primary-dark)}.mobile-filter-panel[open] summary:after{transform:rotate(180deg)}
@media (min-width:761px){.mobile-filter-panel summary{display:none}.mobile-filter-panel{padding:14px 16px}.mobile-filter-panel form{display:grid}.mobile-menu[open] .mobile-drawer{display:grid}}
@media (max-width:760px){body{background:#f4f7f5}.main-header{padding:8px 0;position:sticky;top:0;z-index:100}.nav-shell{gap:6px}.nav-flex{padding:0 10px}.app-topbar{grid-template-columns:auto auto 1fr auto;gap:8px}.app-brand-wrap{order:4}.app-search-wrap{order:3}.app-actions{order:1;display:flex;align-items:center;gap:8px}.app-actions a,.mobile-menu summary{width:42px;height:42px;border-radius:12px;box-shadow:none}.app-search-wrap .search-box{width:100%;max-width:none;height:42px}.app-brand-wrap .logo{height:38px}.mobile-menu{position:static}.mobile-menu[open] summary{position:relative;z-index:121}.mobile-menu[open] .mobile-drawer{position:fixed;top:68px;right:10px;left:10px;min-width:auto;max-height:calc(100vh - 90px);overflow:auto;border-radius:22px;padding:12px;z-index:120;box-shadow:0 30px 60px rgba(24,49,43,.18)}.desktop-nav{display:none}.home-hero-v11{grid-template-columns:1fr;padding:12px;border-radius:18px}.hero-copy{order:1}.hero-side-v11{display:none}.hero-banner h1{font-size:22px;line-height:1.35;margin:8px 0}.hero-banner p{font-size:13px;line-height:1.75;margin-bottom:10px}.hero-actions-row{display:grid;grid-template-columns:1fr 1fr;gap:8px}.hero-actions-row .btn{min-height:42px}.hero-highlights,.compact-stats-grid,.stats-3,.kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.mini-stat,.glass-card,.compact-chip,.stat-chip,.metric{padding:10px;border-radius:14px}.mini-stat strong,.glass-card strong,.compact-chip strong,.stat-chip strong,.metric strong{font-size:18px}.section-title{margin:20px 0 12px}.section-title p{font-size:13px;line-height:1.7}.section-title .btn{padding:9px 12px;font-size:13px}.top-summary-v11,.banner-grid,.two-col,.auth-shell,.product-page-shell{display:grid;grid-template-columns:1fr;gap:12px}.top-summary-v11 .feature-box,.two-col .panel{padding:14px}.products-grid-v11,.products-grid-shop,.products-grid-mobile-app,.categories-grid-v11{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.category-card-v11,.product-card-v11,.shop-product-card-v11,.compact-product-card{border-radius:18px}.category-card-v11{padding:12px}.category-card-v11 h3{font-size:16px}.product-image,.compact-product-card .product-image{height:110px}.product-body,.compact-product-body{padding:10px}.product-title{font-size:13px;min-height:36px;line-height:1.45}.product-desc{display:none}.product-meta-row{gap:6px;margin-bottom:6px}.vendor-line,.stock-chip,.compact-badge,.link-inline{font-size:10px}.price-row,.compact-price-row{margin-bottom:8px;gap:8px}.price{font-size:15px;line-height:1.15}.product-form-v11,.product-form-compact{grid-template-columns:54px 1fr;gap:6px}.product-form-v11 input[type="number"],.product-form-compact input[type="number"]{height:34px;padding:0 6px}.product-form-v11 .btn,.product-form-compact .btn{padding:8px 10px;font-size:12px}.product-actions-two{grid-template-columns:1fr;gap:8px}.shop-hero-compact{padding:12px;border-radius:18px;gap:10px}.shop-hero-copy h1{font-size:22px;margin:6px 0}.shop-hero-copy p{font-size:13px;margin:0}.compact-stats-row{margin-top:10px}.mobile-filter-panel{padding:12px;border-radius:18px}.mobile-filter-panel:not([open]) form{display:none}.filter-bar-compact,.filter-bar-v11{grid-template-columns:1fr;gap:8px}.filter-bar-v11 input,.filter-bar-v11 select{height:44px;border-radius:12px}.compact-section-title{margin-top:16px}.compact-section-title h2,.section-title h2{font-size:20px}.product-gallery-card,.product-details-card{padding:12px}.product-page-image{height:220px}.product-details-card h1{font-size:22px}.product-page-price{font-size:24px}.product-page-meta,.product-page-topline{gap:8px}.product-buy-box{grid-template-columns:1fr;gap:8px}.dashboard-head{display:grid;grid-template-columns:1fr;align-items:start}.split-actions{display:grid;grid-template-columns:1fr 1fr}.split-actions .btn{width:100%;min-width:0}.admin-tabs{margin-bottom:10px;border-radius:16px;padding:8px;flex-wrap:nowrap}.admin-tabs a{padding:9px 12px;font-size:13px}.table-card{padding:0 0 8px}.table-card table{min-width:560px}.table-card .section-title{padding:14px 14px 0 !important}.panel table th,.panel table td{font-size:13px;padding:10px 8px}.list-item{padding:12px 14px;border-radius:14px;align-items:flex-start}.auth-card-register,.card,.panel,.feature-box,.table-card{border-radius:18px}.footer{padding:18px 0 90px}.empty{padding:14px;font-size:14px}.hero-banner:before,.hero-banner:after{display:none}}
@media (max-width:480px){.wrap{padding:0 8px}.nav-flex{padding:0 8px}.app-topbar{grid-template-columns:auto auto 1fr auto}.hero-actions-row,.split-actions{grid-template-columns:1fr}.hero-highlights,.compact-stats-grid,.stats-3,.kpis{grid-template-columns:1fr 1fr}.products-grid-v11,.products-grid-shop,.products-grid-mobile-app,.categories-grid-v11{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.product-image,.compact-product-card .product-image{height:96px}.product-title{font-size:12px;min-height:34px}.price{font-size:14px}.main-header .search-box{font-size:13px}.mobile-menu[open] .mobile-drawer{top:64px;right:8px;left:8px}}


/* v15 mobile-first refinements */
:root{
  --primary:#1f7a63;
  --primary-dark:#145c49;
  --secondary:#2c8f75;
  --accent:#f4b400;
  --soft:#f4f8f5;
  --surface-2:#f3f7f4;
  --shadow-strong:0 18px 50px rgba(20,92,73,.12);
}
body{background:linear-gradient(180deg,#fbfcfb 0,#f4f7f5 100%)}
.hero-banner{background:linear-gradient(135deg,#114436 0,#1f7a63 58%,#2a8c73 100%)}
.btn,.progress>span{background:var(--primary)}
.btn:hover{background:var(--primary-dark)}
.main-header{background:rgba(255,255,255,.94);backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
.app-topbar{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:14px;padding:10px 0}
.app-brand-wrap{display:flex;justify-content:flex-end}
.app-search-wrap{min-width:0}
.app-actions{display:flex;align-items:center;gap:10px}
.app-actions a,.mobile-menu summary{display:inline-flex;align-items:center;justify-content:center;width:46px;height:46px;background:#fff;border:1px solid var(--line);border-radius:14px;color:var(--ink)}
.header-search-form{width:100%}
.search-box{width:100%;height:48px;border-radius:16px;background:#fff}
.main-nav.desktop-nav{display:flex;justify-content:center;gap:10px;padding:0 0 12px}
.mobile-menu{position:relative}
.mobile-drawer{inset-inline-start:auto;inset-inline-end:0;min-width:250px}
.mobile-drawer a{display:block}
.mobile-bottom-nav{display:none}
.main-header .logo{height:56px;width:auto;object-fit:contain}
.hero-shell,.card,.panel,.feature-box,.table-card,.shop-hero{scroll-margin-top:82px}
.product-card,.category-card-v11,.feature-box,.panel,.auth-card-register,.auth-side-register,.shop-hero-v11{border-radius:22px}
.product-card .btn,.category-card-v11 .btn,.split-actions .btn{min-height:44px}
.kpis{grid-template-columns:repeat(auto-fit,minmax(170px,1fr))}
.admin-hero{display:none}
@media (max-width:900px){
  .main-nav.desktop-nav{display:none}
  .mobile-menu{display:block}
  .auth-side{display:none}
  .auth-shell,.auth-shell-register,.banner-grid,.two-col,.product-page-shell,.hero-banner,.shop-hero-v11{grid-template-columns:1fr}
  .hero-side-v11,.hero-side,.top-summary-v11 .feature-box:first-child + .feature-box + .feature-box{display:block}
}
@media (max-width:760px){
  body{background:#f3f6f4}
  .wrap{padding:0 10px}
  main.wrap.mobile-app-shell{padding-top:10px;padding-bottom:96px}
  .main-header{padding:6px 0}
  .app-topbar{grid-template-columns:auto auto 1fr auto;gap:8px;padding:6px 0}
  .app-actions{order:1}
  .app-search-wrap{order:3}
  .app-brand-wrap{order:4}
  .main-header .logo{height:42px}
  .app-actions a,.mobile-menu summary{width:42px;height:42px;border-radius:12px}
  .search-box{height:42px;border-radius:14px;padding:0 12px;font-size:14px}
  .mobile-menu[open]::before{content:'';position:fixed;inset:0;background:rgba(15,23,42,.16);z-index:119}
  .mobile-menu[open] .mobile-drawer{position:fixed;top:70px;right:10px;left:10px;min-width:auto;max-height:calc(100vh - 150px);overflow:auto;padding:14px;border-radius:22px;z-index:120;display:grid;grid-template-columns:1fr;gap:8px}
  .mobile-drawer a{padding:13px 14px;font-size:15px;border:1px solid var(--line);background:#f8fbf9}
  .hero-banner,.home-hero-v11{padding:14px !important;border-radius:20px;min-height:auto}
  .hero-badge{font-size:12px;padding:7px 10px}
  .hero-banner h1,.shop-hero-copy h1{font-size:21px !important;line-height:1.35;margin:8px 0}
  .hero-banner p,.shop-hero-copy p{font-size:13px;line-height:1.75}
 .hero-image-box,.glass-card.hero-summary-card{display:none !important}
.home-hero-v11 .hero-side-v11,
.home-hero-v11 .hero-side{
  display:block !important;
}
  .hero-actions-row{grid-template-columns:1fr 1fr;gap:8px}
  .hero-highlights,.compact-stats-grid,.stats-3,.kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .mini-stat,.compact-chip,.stat-chip,.metric{padding:10px;border-radius:14px}
  .mini-stat strong,.compact-chip strong,.stat-chip strong,.metric strong{font-size:18px}
  .section-title{margin:16px 0 10px;align-items:center}
  .section-title h2{font-size:22px}
  .section-title p{font-size:13px;margin-top:4px}
  .section-title .btn{padding:8px 12px;font-size:13px}
  .top-summary-v11,.banner-grid,.two-col,.auth-shell,.auth-shell-register,.product-page-shell{grid-template-columns:1fr;gap:12px}
  .feature-box,.panel,.card,.shop-hero{padding:14px !important;border-radius:18px}
  .products-grid-v11,.products-grid-shop,.products-grid-mobile-app,.categories-grid-v11{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .product-card-v11,.shop-product-card-v11,.compact-product-card,.category-card-v11{border-radius:18px}
  .product-thumb-wrap{display:block}
  .product-image,.compact-product-card .product-image{height:118px;border-radius:16px 16px 0 0}
  .product-body,.compact-product-body{padding:10px}
  .product-meta-row,.compact-meta-row{display:flex;justify-content:space-between;align-items:center;gap:6px;margin-bottom:6px}
  .vendor-line,.stock-chip,.compact-badge,.link-inline,.product-badge,.category-count{font-size:10px}
  .product-title{font-size:13px;line-height:1.45;min-height:38px;margin:0 0 4px}
  .product-desc{display:none}
  .price-row,.compact-price-row{gap:8px;margin:0 0 8px;align-items:flex-end}
  .price{font-size:16px;line-height:1.15}
  .product-form-v11,.product-form-compact{display:grid;grid-template-columns:52px 1fr;gap:6px}
  .product-form-v11 input[type=number],.product-form-compact input[type=number]{height:36px;padding:0 6px;border-radius:10px}
  .product-form-v11 .btn,.product-form-compact .btn,.product-actions-two .btn{min-height:38px;padding:8px 10px;font-size:12px;border-radius:12px}
  .product-actions-two{display:grid;grid-template-columns:1fr;gap:8px}
  .shop-hero-v11{padding:14px !important;gap:12px}
  .mobile-filter-panel{padding:12px !important}
  .mobile-filter-panel summary{display:flex;align-items:center;justify-content:space-between;padding:0;font-size:18px;font-weight:900}
  .mobile-filter-panel summary::after{content:'▾';font-size:18px}
  .mobile-filter-panel:not([open]) form{display:none}
  .filter-bar-v11,.filter-bar-compact,.form-grid,.nested-grid{grid-template-columns:1fr}
  .filter-bar-v11 input,.filter-bar-v11 select,input,select,textarea{height:44px;border-radius:12px}
  textarea{min-height:110px}
  .dashboard-head{display:grid;grid-template-columns:1fr;gap:10px;margin-bottom:12px}
  .split-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
  .split-actions .btn{min-width:0;width:100%}
  .admin-tabs{display:flex;flex-wrap:nowrap;overflow:auto;gap:8px;padding:8px;margin:0 0 12px;border-radius:16px;scrollbar-width:none}
  .admin-tabs::-webkit-scrollbar{display:none}
  .admin-tabs a{white-space:nowrap;padding:10px 12px;border-radius:999px;font-size:13px}
  .table-card{padding:0 0 8px !important;overflow-x:auto}
  .table-card table,table{min-width:560px}
  th,td{padding:10px 8px;font-size:13px}
  .list-item{padding:12px 14px;border-radius:14px;align-items:flex-start}
  .auth-card-register{padding:14px !important}
  .register-card-header{display:grid;gap:10px}
  .register-mark{display:flex;align-items:center;gap:10px}
  .field-set{padding:12px;border:1px solid var(--line);border-radius:16px;background:#fbfcfb}
  .checkbox-row{padding:0 4px}
  .product-page-image{height:220px}
  .product-details-card h1{font-size:24px}
  .product-buy-box,.hero-actions-row{display:grid;grid-template-columns:1fr;gap:8px}
  .footer{padding:18px 0 84px}
  .mobile-bottom-nav{position:fixed;right:8px;left:8px;bottom:8px;display:grid;grid-template-columns:repeat(4,1fr);gap:8px;padding:8px;background:rgba(255,255,255,.96);backdrop-filter:blur(14px);border:1px solid var(--line);border-radius:22px;box-shadow:0 18px 40px rgba(15,23,42,.12);z-index:110}
  .mobile-bottom-nav a{display:flex;align-items:center;justify-content:center;min-height:44px;padding:10px 6px;border-radius:14px;background:#f7faf8;color:#334155;font-size:12px;font-weight:900;text-align:center}
  .mobile-bottom-nav a.active{background:#eaf5ef;color:var(--primary-dark)}
  .desktop-nav{display:none !important}
}
@media (max-width:480px){
  .wrap{padding:0 8px}
  .products-grid-v11,.products-grid-shop,.products-grid-mobile-app,.categories-grid-v11{gap:8px}
  .product-image,.compact-product-card .product-image{height:104px}
  .product-title{font-size:12px;min-height:34px}
  .price{font-size:14px}
  .hero-banner h1,.shop-hero-copy h1{font-size:19px !important}
  .section-title h2{font-size:20px}
  .stat-chip,.compact-chip,.metric,.mini-stat{padding:9px}
  .hero-highlights,.compact-stats-grid,.stats-3,.kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
}


/* v16 targeted fixes */
:root{--primary:#1f7a63;--primary-dark:#145c49;--secondary:#2f9a7d;--accent:#f4b400;--ink:#17352f;--text:#1f352f;--muted:#6d7f78;--line:#d7e5dd;--soft:#f4faf7;--surface-2:#f4f8f6;--shadow-strong:0 22px 60px rgba(31,122,99,.14)}
body{background:linear-gradient(180deg,#fafcfb 0,#f2f6f4 220px,#f4f7f5 100%)}
.hero-banner,.auth-side{background:linear-gradient(135deg,#0f4d3f 0,#1f7a63 55%,#2f9a7d 100%)}
.shop-hero{background:linear-gradient(135deg,#fff,#f3f9f6)}
.btn,.btn:hover,.btn.soft,.btn.alt,.badge.primary,.nav a.active,.nav a:hover,.desktop-nav a.active,.desktop-nav a:hover{transition:.18s ease}
.btn{box-shadow:0 12px 25px rgba(31,122,99,.18)}
.btn.soft{background:#edf7f2;color:var(--primary-dark)}
.brand-link-full{display:inline-flex;align-items:center;gap:10px}
.brand-title-text{display:inline-flex;align-items:center;gap:4px;font-weight:900;font-size:22px;line-height:1}
.echo-word{color:#f4b400}
.store-word{color:#1f7a63}
.desktop-nav .danger-link,.mobile-drawer .danger-link{background:#fff5f5;color:#b42318}
.mobile-drawer{display:grid;gap:8px}
.mobile-drawer a{display:block;width:100%;padding:14px 16px;border-radius:16px;background:#fff;border:1px solid var(--line);font-weight:800;color:var(--ink)}
.mobile-drawer a.active{background:#edf7f2;color:var(--primary-dark)}
.main-nav .danger-link{background:#fff5f5;color:#b42318}
.promo-panel-guest{padding:20px;background:linear-gradient(180deg,#fff,#f7fbf8)}
.hero-actions-row .btn,.product-actions .btn,.product-form-v11 .btn,.product-form-compact .btn{min-height:42px}
@media (max-width:760px){
  .brand-title-text{font-size:18px}
  .app-topbar{grid-template-columns:auto auto 1fr auto;align-items:center}
  .app-brand-wrap{order:4;justify-self:end}
  .brand-link-full{gap:6px}
  .app-brand-wrap .logo{height:36px}
  .mobile-menu[open] .mobile-drawer{top:74px;right:12px;left:12px;padding:12px;background:#f9fcfa;border:1px solid var(--line)}
  .mobile-drawer a{font-size:16px;line-height:1.35}
  .home-hero-v11{padding:10px;gap:10px}
  .hero-banner h1{font-size:20px;line-height:1.4}
  .hero-banner p{font-size:12px;line-height:1.7}
  .hero-badge{font-size:11px;padding:6px 10px}
  .hero-highlights,.compact-stats-grid,.stats-3,.kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  .mini-stat,.glass-card,.compact-chip,.stat-chip,.metric{padding:9px}
  .products-grid-v11,.products-grid-shop,.products-grid-mobile-app,.categories-grid-v11{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .product-image,.compact-product-card .product-image{height:92px}
  .product-card,.category-card-v11{padding:0}
  .product-body,.compact-product-body,.category-card-v11{padding:10px}
  .product-title{font-size:12px;min-height:32px}
  .price{font-size:14px}
  .product-form-v11 input[type="number"],.product-form-compact input[type="number"]{height:32px}
  .top-summary-v11 .feature-box,.two-col .panel,.promo-panel-guest{padding:12px}
  .list-item{padding:12px 12px}
  table{min-width:520px}
}


/* ===== v17 mobile-first completion ===== */
:root{
  --primary:#1f7a63;
  --primary-dark:#145c49;
  --secondary:#2f9a7d;
  --accent:#f4b400;
  --line:#d9e7e0;
  --soft:#f3faf6;
}
body{background:linear-gradient(180deg,#fafcfb 0,#f3f7f5 200px,#f5f7f6 100%)}
.main-header{background:rgba(255,255,255,.96);border-bottom:1px solid var(--line)}
.brand-title-text{white-space:nowrap}
.mobile-drawer-head{padding:4px 2px 10px;border-bottom:1px solid var(--line);margin-bottom:4px}
.mobile-drawer-brand{display:flex;align-items:center;gap:10px}
.mobile-drawer-brand img{width:42px;height:42px;object-fit:contain;border-radius:12px;background:#fff;border:1px solid var(--line);padding:5px}
.mobile-drawer-brand strong{display:block;font-size:18px}
.mobile-drawer-brand small{display:block;color:var(--muted);margin-top:3px}
.compact-mobile-head{margin-bottom:14px}
.compact-summary-cards .stat-chip{background:#fff}
.mobile-stack-actions{display:flex;flex-wrap:wrap;gap:10px}
.mobile-stack-actions .btn{flex:1 1 180px}
.mobile-table-card table{min-width:500px}
.checkout-layout{display:grid;grid-template-columns:340px minmax(0,1fr);gap:18px;align-items:start}
.checkout-summary-panel{position:sticky;top:98px}
.compact-form-grid textarea{min-height:120px}
.empty-state-panel{padding:22px}
.product-sticky-summary{position:sticky;top:96px}
.auth-card,.auth-card-register,.panel,.card,.feature-box,.metric,.stat-chip{box-shadow:0 10px 25px rgba(23,53,47,.05)}
select{background-color:#fff}
option{direction:rtl}
@media (max-width:900px){
  .checkout-layout{grid-template-columns:1fr}
  .checkout-summary-panel,.product-sticky-summary{position:static}
}
@media (max-width:760px){
  html,body{overflow-x:hidden}
  .brand-title-text{font-size:16px}
  .main-header .container,.nav-shell{overflow:visible}
  .app-topbar{grid-template-columns:auto auto 1fr auto;gap:8px}
  .app-actions a,.mobile-menu summary{font-size:20px}
  .mobile-menu[open] .mobile-drawer{top:72px;right:8px;left:8px;border-radius:20px;padding:12px;max-height:calc(100vh - 92px)}
  .mobile-drawer a{padding:12px 14px;border-radius:14px;font-size:15px;line-height:1.4}
  .mobile-drawer-head{padding-bottom:8px}
  .hero-banner,.home-hero-v11,.shop-hero,.panel,.card,.feature-box{scroll-margin-top:86px}
  .hero-banner,.home-hero-v11{padding:12px !important}
  .hero-highlights,.compact-stats-grid,.stats-3,.kpis,.subtle-grid{gap:8px}
  .section-title{margin:14px 0 10px}
  .section-title h2{font-size:20px}
  .section-title p{font-size:12px;line-height:1.7}
  .split-actions{grid-template-columns:1fr}
  .split-actions .btn{width:100%}
  .list-clean{gap:10px}
  .list-item{padding:11px 12px;border-radius:14px}
  .products-grid-v11,.products-grid-shop,.products-grid-mobile-app,.categories-grid-v11{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .product-image,.compact-product-card .product-image{height:96px}
  .product-title{font-size:12px;line-height:1.4;min-height:34px}
  .price{font-size:14px}
  .price-row,.compact-price-row{align-items:center}
  .category-card-v11 h3{font-size:15px}
  .category-card-v11 p{font-size:12px;line-height:1.6}
  .dashboard-head h1,.product-details-card h1{font-size:22px}
  .product-page-image{height:210px}
  .product-page-description{font-size:13px;line-height:1.8}
  .mobile-bottom-nav a{font-size:11px;min-height:42px}
  .table-card table,table{min-width:520px}
  input,select,textarea,button,.btn{font-size:16px}
}
@media (max-width:480px){
  .wrap{padding:0 8px}
  .brand-title-text{font-size:15px}
  .search-box{font-size:13px}
  .hero-banner h1,.shop-hero-copy h1,.dashboard-head h1{font-size:19px !important}
  .hero-banner p,.shop-hero-copy p{font-size:12px}
  .product-image,.compact-product-card .product-image{height:88px}
  .product-title{font-size:11px;min-height:32px}
  .price{font-size:13px}
  .stat-chip,.compact-chip,.metric,.mini-stat{padding:8px}
  .mobile-drawer a{font-size:14px}
}


/* v19 admin/report improvements */
.compact-form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}
.mobile-stack-actions{display:flex;flex-wrap:wrap;gap:8px}
.mobile-stack-actions > *{display:inline-flex}
@media (max-width:760px){
  .compact-form-grid{grid-template-columns:1fr}
  .mobile-stack-actions{flex-direction:column}
  .mobile-stack-actions .btn{width:100%}
}


/* v20 mobile and interaction fixes */
.mobile-menu-toggle{display:none;align-items:center;justify-content:center;width:48px;height:48px;border-radius:16px;border:1px solid var(--line);background:#fff;color:var(--ink);font-size:28px;font-weight:900;box-shadow:var(--shadow)}
.mobile-drawer-overlay{position:fixed;inset:0;background:rgba(15,23,42,.42);z-index:60}
.mobile-drawer{position:fixed;top:0;right:0;width:min(84vw,340px);height:100vh;background:#fff;border-left:1px solid var(--line);box-shadow:-20px 0 60px rgba(15,23,42,.18);z-index:70;transform:translateX(110%);transition:.22s ease;padding:18px;display:grid;align-content:start;gap:16px;overflow:auto}
.mobile-drawer.open{transform:translateX(0)}
.mobile-drawer-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.mobile-drawer-brand{display:flex;align-items:center;gap:12px}.mobile-drawer-brand img{width:64px;height:64px;object-fit:contain}.mobile-drawer-close{width:42px;height:42px;border:0;border-radius:14px;background:#f1f5f9;font-size:28px;line-height:1;color:#0f172a}.mobile-drawer-links{display:grid;gap:10px}.mobile-drawer-links a{display:flex;align-items:center;min-height:48px;padding:12px 14px;border-radius:16px;border:1px solid var(--line);background:#fff;font-weight:800;color:#12372d}.mobile-drawer-links a.active{background:#e8f6f1;border-color:#9cd5c1}.drawer-open{overflow:hidden}
.app-toast{position:fixed;left:16px;right:16px;bottom:86px;background:#0f172a;color:#fff;border-radius:18px;padding:14px 16px;display:flex;gap:12px;justify-content:space-between;align-items:center;box-shadow:0 24px 60px rgba(15,23,42,.28);z-index:90;opacity:0;transform:translateY(20px);transition:.22s ease}.app-toast.visible{opacity:1;transform:translateY(0)}.app-toast-actions{display:flex;gap:8px;flex-wrap:wrap}.app-toast .btn.soft{background:rgba(255,255,255,.14);color:#fff;border-color:rgba(255,255,255,.14)}
.map-picker-card{padding:14px;border:1px solid var(--line);border-radius:22px;background:#fbfefd}.map-picker-toolbar{display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:12px}.map-picker-frame{height:280px;border-radius:18px;overflow:hidden;border:1px solid var(--line);background:#eef6f2}
.checkout-summary-panel .panel{background:#fff}
@media (max-width:760px){.desktop-nav{display:none}.mobile-menu-toggle{display:inline-flex}.app-actions{gap:8px}.app-actions>a{width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;border-radius:14px;border:1px solid var(--line);background:#fff}.app-topbar{display:grid;grid-template-columns:auto 1fr auto;gap:8px;align-items:center}.brand-title-text{font-size:20px;white-space:nowrap}.app-search-wrap{min-width:0}.search-box{max-width:none;padding:10px 12px}.checkout-layout,.product-page-shell,.two-col{grid-template-columns:1fr!important}.mobile-stack-actions>*{width:100%}.map-picker-frame{height:240px}.app-toast{bottom:78px}.sticky-panel{scroll-margin-top:90px}}


/* v21 registration and mobile drawer fixes */
.field-help{display:block;margin-top:6px;color:var(--muted);font-size:12px}
.role-fields[hidden]{display:none !important}
.mobile-drawer-overlay[hidden]{display:none !important}
.mobile-drawer{opacity:0;visibility:hidden;pointer-events:none}
.mobile-drawer.open{opacity:1;visibility:visible;pointer-events:auto}
.register-form input[type=file]{padding:10px;background:#fff}
@media (max-width:760px){
  .app-actions{order:1;justify-self:start}
  .app-search-wrap{order:2}
  .app-brand-wrap{order:3;justify-self:end}
  .mobile-menu-toggle{margin-inline-start:0;margin-inline-end:0}
  .brand-link-full{gap:8px}
  .brand-link-full .logo{height:48px;width:auto}
  .brand-title-text{font-size:18px}
  .mobile-drawer{right:0;left:auto;width:min(88vw,340px);border-left:1px solid var(--line);border-right:0}
  .mobile-drawer-links a{min-height:50px;font-size:16px;border-radius:18px}
}


.badge.warning{background:#fff1c2;color:#7a4f00}
.stack-form{display:flex;flex-direction:column;gap:10px}


/* v24 clarity and mobile drawer fixes */
.metric small,.stat-chip span,.compact-chip span,.mini-stat small{color:#33554b !important;opacity:1 !important;font-weight:700}
.metric strong,.stat-chip strong,.compact-chip strong,.mini-stat strong{color:#10372f}
.metric .icon{background:#eef6f2;border:1px solid #d8ece4}
.metric-highlight{border-color:#9cd5c1;background:linear-gradient(180deg,#f7fffb 0%,#edf8f2 100%)}
.labelled-kpis .metric{min-height:138px;justify-content:flex-start}
#order-details{scroll-margin-top:100px}
.stack-actions{display:grid;gap:8px}
@media (max-width:760px){
  .mobile-menu-toggle{order:3;margin-inline-start:auto;position:relative;z-index:71}
  .app-actions{justify-content:flex-start}
  .mobile-drawer{top:0 !important;right:0 !important;left:auto !important;width:min(86vw,340px) !important;max-height:none !important;height:100vh !important;border-right:0 !important;border-left:1px solid var(--line) !important;border-radius:0 !important;padding:18px 14px 120px !important;transform:translateX(110%) !important;display:grid !important;opacity:0;visibility:hidden;pointer-events:none}
  .mobile-drawer.open{transform:translateX(0) !important;opacity:1 !important;visibility:visible !important;pointer-events:auto !important}
  .mobile-drawer-links{display:grid;gap:10px}
  .mobile-drawer-links a{display:flex !important;align-items:center;justify-content:flex-start;min-height:50px;padding:13px 14px !important;font-size:15px !important;line-height:1.45 !important;white-space:normal;background:#fff;border:1px solid var(--line);border-radius:16px}
  .mobile-drawer-head{padding-bottom:10px;margin-bottom:6px;border-bottom:1px solid var(--line)}
  .mobile-drawer-close{display:inline-flex;align-items:center;justify-content:center}
  .kpis,.subtle-grid.stats-3{grid-template-columns:repeat(2,minmax(0,1fr)) !important}
  .metric,.stat-chip{min-height:110px}
  .table-card table{min-width:680px}
}
.tracking {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.step {
    display: flex;
    align-items: center;
    gap: 15px;
    opacity: 0.4;
}

.step.active {
    opacity: 1;
}

.circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.step.active .circle {
    background: #2e7d32;
    color: white;
}

.label {
    font-size: 16px;
}

.driver-live-box {
    background: #f8fbf9;
    border: 1px solid #dbe8e2;
    border-radius: 16px;
    padding: 14px;
}

#liveDeliveryMap .leaflet-control-container .leaflet-top,
#liveDeliveryMap .leaflet-control-container .leaflet-bottom {
    z-index: 400;
}



.notification-link{position:relative;display:inline-flex;align-items:center;justify-content:center}
.notif-badge{position:absolute;top:-8px;left:-10px;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:#dc2626;color:#fff;font-size:11px;line-height:18px;text-align:center;font-weight:800}
.stack-list{display:grid;gap:14px}

/* v25 legal and trust pages */
.site-footer{margin-top:28px;padding-top:22px;background:#0f221d;color:#eaf5f0;border-top:1px solid rgba(255,255,255,.08)}
.site-footer-grid{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:20px;align-items:start}
.footer-brand{display:inline-block;font-size:18px;margin-bottom:8px}
.footer-text{color:#c7ddd3;line-height:1.8;margin:0}
.site-footer h4{margin:0 0 10px;font-size:15px;color:#fff}
.footer-links{display:grid;gap:8px}
.footer-links a{color:#d6ebe2;text-decoration:none}
.footer-links a:hover{color:#fff;text-decoration:underline}
.footer-copy{padding-top:14px;margin-top:16px;border-top:1px solid rgba(255,255,255,.08);color:#c7ddd3}
.legal-hero{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:24px;border-radius:24px}
.legal-hero h1{margin:6px 0 10px}
.legal-hero p{max-width:760px;margin:0;color:#33554b;line-height:1.9}
.legal-hero-badge{display:inline-flex;align-items:center;justify-content:center;padding:12px 16px;border-radius:999px;background:#fff;border:1px solid var(--line);font-weight:800;color:#10372f;white-space:nowrap}
.legal-stack{display:grid;gap:16px}
.legal-panel{padding:22px}
.legal-panel h2{margin:0 0 12px;font-size:20px;color:#10372f}
.legal-panel p{margin:0;color:#31524a;line-height:1.95}
.legal-list{margin:0;padding-right:18px;display:grid;gap:10px;color:#31524a;line-height:1.9}
.legal-grid{align-items:start}
.timeline-lite{display:grid;gap:12px}
.timeline-lite>div{display:flex;align-items:flex-start;gap:10px;padding:12px 14px;background:#f8fbf9;border:1px solid #dbe8e2;border-radius:16px;color:#25433b}
.timeline-lite strong{width:28px;height:28px;display:inline-flex;align-items:center;justify-content:center;border-radius:999px;background:#10372f;color:#fff;flex:0 0 28px}
.legal-shortcuts .stat-chip{display:grid;gap:8px;align-content:start}
@media (max-width:760px){
  .site-footer-grid{grid-template-columns:1fr;gap:16px}
  .legal-hero{flex-direction:column;align-items:flex-start}
  .legal-hero-badge{white-space:normal}
}

.order-details-page{display:grid;gap:20px}
.order-details-layout{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(300px,.9fr);gap:20px;align-items:start}
.order-details-layout.second-row{grid-template-columns:1.2fr 1fr}
.order-side-stack{gap:20px}
.order-overview-card{padding:22px}
.status-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:16px}
.workflow-strip{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-top:18px}
.workflow-step{padding:16px;border-radius:18px;border:1px solid #dbe8e2;background:#f8fbf9;display:grid;gap:6px}
.workflow-step .step-index{width:32px;height:32px;border-radius:999px;background:#dfe9e4;color:#21433a;display:inline-flex;align-items:center;justify-content:center;font-weight:800}
.workflow-step strong{color:#173c33}
.workflow-step small{color:#5f756d;line-height:1.7}
.workflow-step.done{background:#eef8f2;border-color:#cfe6d8}
.workflow-step.done .step-index,.workflow-step.active .step-index{background:#10372f;color:#fff}
.workflow-step.active{background:linear-gradient(135deg,#0f4f3d,#1f7a59);border-color:#0f4f3d}
.workflow-step.active strong,.workflow-step.active small{color:#fff}
.workflow-strip.is-cancelled .workflow-step.active{background:#fff5f5;border-color:#efc4c4}
.workflow-strip.is-cancelled .workflow-step.active .step-index{background:#b42318}
.info-panel h3{margin:0 0 14px;color:#173c33}
.info-list{display:grid;gap:12px}
.info-list>div{display:flex;justify-content:space-between;gap:12px;padding:12px 14px;border:1px solid var(--line);border-radius:16px;background:#fff}
.info-list strong{color:#173c33}
.order-items-list{display:grid;gap:12px}
.order-item-card{display:grid;grid-template-columns:74px 1fr auto;gap:14px;align-items:center;padding:14px;border:1px solid var(--line);border-radius:18px;background:#fff}
.order-item-media{width:74px;height:74px;border-radius:18px;background:#f1f6f3;display:flex;align-items:center;justify-content:center;overflow:hidden;border:1px solid #dbe8e2}
.order-item-media img{width:100%;height:100%;object-fit:cover}
.order-item-content{display:grid;gap:6px}
.order-item-content strong{color:#173c33}
.order-item-content span,.order-item-content small{color:#60756d}
.order-item-total{font-weight:800;color:#10372f}
.order-detail-timeline .timeline-item{align-items:center}
.small-text{font-size:12px}
@media (max-width: 980px){
  .order-details-layout,.order-details-layout.second-row,.status-summary-grid,.workflow-strip{grid-template-columns:1fr 1fr}
}
@media (max-width: 720px){
  .order-details-layout,.order-details-layout.second-row,.status-summary-grid,.workflow-strip{grid-template-columns:1fr}
  .order-item-card{grid-template-columns:56px 1fr;align-items:start}
  .order-item-total{grid-column:1/-1}
  .info-list>div{flex-direction:column}
}

/* workspace re-organization */
.workspace-shell{margin:18px 0 22px;padding:18px 20px;border:1px solid #d8e7df;border-radius:24px;background:linear-gradient(180deg,#fbfdfc,#f4f8f6);display:grid;gap:14px}
.workspace-toolbar{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}
.workspace-controls{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.workspace-select{display:grid;gap:6px;min-width:220px}
.workspace-select span{font-size:13px;color:#5f756d;font-weight:700}
.workspace-pills{display:flex;gap:10px;flex-wrap:wrap}
.workspace-pill{border:1px solid #cfe0d8;background:#fff;border-radius:999px;padding:10px 16px;font-weight:800;color:#21433a;cursor:pointer}
.workspace-pill.active{background:#0f6a52;color:#fff;border-color:#0f6a52}
.workspace-actions{display:flex;gap:10px;flex-wrap:wrap}
.dashboard-section-block,.home-section-block{display:block}
.table-toolbar{padding:14px 20px 0}
.split-table-toolbar{display:grid;grid-template-columns:minmax(0,1fr) 180px;gap:12px;align-items:center}
.table-filter-input,.table-role-filter{width:100%}
.admin-tabs{display:flex;gap:10px;flex-wrap:wrap;overflow:auto;padding-bottom:4px;margin-bottom:16px}
.admin-tabs a{white-space:nowrap}
.home-workspace-shell{margin-top:0}
@media (max-width: 900px){
  .workspace-toolbar{flex-direction:column}
  .workspace-controls,.workspace-actions,.workspace-pills{width:100%}
  .workspace-select{min-width:0;width:100%}
  .split-table-toolbar{grid-template-columns:1fr}
}


/* ===== Unified responsive and mobile fixes ===== */
/* Mobile admin + global overflow fixes for Echo Store */

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

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

img, svg, video, canvas, iframe {
  max-width: 100%;
  height: auto;
}

.wrap,
.container,
.nav-shell,
.mobile-app-shell,
.workspace-shell,
.workspace-toolbar,
.dashboard-head,
.section-title,
.panel,
.card,
.feature-box,
.table-card,
.admin-tabs,
.kpis,
.grid,
.two-col,
.banner-grid,
.subtle-grid,
.form-grid,
.compact-form-grid,
.filter-bar,
.filter-bar-v11,
.filter-bar-compact,
.checkout-layout,
.product-page-shell,
.order-details-layout,
.order-details-layout.second-row,
.workflow-strip,
.status-summary-grid,
.split-table-toolbar {
  max-width: 100%;
  min-width: 0;
}

input,
select,
textarea,
button,
.btn,
.search-box {
  max-width: 100%;
}

.table-card,
.mobile-table-card {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-card table,
.mobile-table-card table {
  width: 100%;
}

.actions,
.inline-actions,
.stack-actions,
.split-actions,
.workspace-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.actions .btn,
.inline-actions .btn,
.stack-actions .btn,
.split-actions .btn,
.workspace-actions .btn {
  min-width: 0;
}

.list-item,
.section-title,
.dashboard-head,
.table-toolbar,
.split-table-toolbar,
.workspace-toolbar {
  gap: 10px;
}

.table-media,
.brand-link,
.brand-link-full,
.app-topbar,
.nav-flex,
.app-search-wrap,
.app-brand-wrap,
.app-actions {
  min-width: 0;
}

/* forms inside admin tables */
.table-card form,
.panel form {
  max-width: 100%;
}

/* kill inline min-widths that force page scroll */
[style*="min-width:270px"],
[style*="min-width: 270px"],
[style*="min-width:240px"],
[style*="min-width: 240px"] {
  min-width: 0 !important;
  width: 100%;
}

/* Improve chips and long text wrapping */
.badge,
.pill,
.workspace-pill,
.compact-chip,
.inline-badge,
.stock-chip,
.link-inline,
.vendor-line,
.muted,
strong,
small,
span,
label,
th,
td {
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 900px) {
  .workspace-shell,
  .admin-orders-layout,
  .checkout-layout,
  .product-page-shell,
  .two-col,
  .banner-grid,
  .order-details-layout,
  .order-details-layout.second-row,
  .workflow-strip,
  .status-summary-grid {
    grid-template-columns: 1fr !important;
  }

  .workspace-toolbar,
  .dashboard-head,
  .section-title,
  .list-item,
  .split-table-toolbar {
    display: grid !important;
    grid-template-columns: 1fr !important;
    align-items: start;
  }

  .workspace-pills,
  .admin-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .workspace-pills::-webkit-scrollbar,
  .admin-tabs::-webkit-scrollbar {
    display: none;
  }

  .compact-form-grid,
  .form-grid,
  .filter-bar,
  .filter-bar-v11,
  .filter-bar-compact,
  .nested-grid,
  .driver-open-grid,
  .kpis,
  .subtle-grid,
  .grid.cols-4,
  .grid.cols-3 {
    grid-template-columns: 1fr 1fr !important;
  }
}

@media (max-width: 760px) {
  body {
    overflow-x: hidden !important;
  }

  .wrap {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .panel,
  .card,
  .feature-box,
  .table-card,
  .auth-card-register,
  .auth-card,
  .hero-showcase,
  .product-details-card,
  .product-gallery-card,
  .checkout-summary-panel,
  .checkout-form-panel {
    padding-left: 12px !important;
    padding-right: 12px !important;
    border-radius: 18px !important;
  }

  .dashboard-head,
  .section-title,
  .table-toolbar,
  .split-table-toolbar,
  .workspace-toolbar,
  .list-item,
  .table-media,
  .order-item-card {
    display: grid !important;
    grid-template-columns: 1fr !important;
    align-items: start;
  }

  .actions,
  .inline-actions,
  .stack-actions,
  .split-actions,
  .workspace-actions,
  .mobile-stack-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100%;
  }

  .actions .btn,
  .inline-actions .btn,
  .stack-actions .btn,
  .split-actions .btn,
  .workspace-actions .btn,
  .mobile-stack-actions > * {
    width: 100% !important;
  }

  .compact-form-grid,
  .form-grid,
  .filter-bar,
  .filter-bar-v11,
  .filter-bar-compact,
  .nested-grid,
  .driver-open-grid,
  .kpis,
  .subtle-grid,
  .grid,
  .grid.cols-4,
  .grid.cols-3,
  .hero-highlights,
  .compact-stats-grid,
  .stats-3,
  .products-grid-v11,
  .products-grid-shop,
  .products-grid-mobile-app,
  .categories-grid-v11,
  .quick-links-grid,
  .admin-shortcuts,
  .status-summary-grid,
  .workflow-strip {
    grid-template-columns: 1fr !important;
  }

  .table-card,
  .mobile-table-card,
  .panel table {
    overflow-x: auto !important;
  }

  .table-card table,
  .mobile-table-card table,
  .panel table,
  table {
    min-width: 0 !important;
    width: 100% !important;
  }

  .table-card table thead,
  .mobile-table-card table thead,
  .panel table thead {
    display: none;
  }

  .table-card table,
  .table-card tbody,
  .table-card tr,
  .table-card td,
  .mobile-table-card table,
  .mobile-table-card tbody,
  .mobile-table-card tr,
  .mobile-table-card td,
  .panel table,
  .panel tbody,
  .panel tr,
  .panel td {
    display: block;
    width: 100%;
  }

  .table-card tr,
  .mobile-table-card tr,
  .panel tr {
    margin: 0 0 10px;
    padding: 12px;
    border-bottom: 0 !important;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
  }

  .table-card td,
  .mobile-table-card td,
  .panel td {
    padding: 8px 0 !important;
    text-align: right !important;
    border: 0 !important;
  }

  .table-card td::before,
  .mobile-table-card td::before,
  .panel td::before {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: 800;
    color: var(--muted);
  }

  /* Labels for known admin tables */
  .table-card table thead th:nth-child(1), .panel table thead th:nth-child(1) { --h: "#"; }

  /* admin-users */
  .table-card tr td:nth-child(1)::before { content: "المستخدم"; }
  .table-card tr td:nth-child(2)::before { content: "الدور والحالة"; }
  .table-card tr td:nth-child(3)::before { content: "تفاصيل"; }
  .table-card tr td:nth-child(4)::before { content: "الإجراء"; }

  /* when table has more columns, let content remain usable without forcing whole page scroll */
  .table-card td > .actions,
  .table-card td > form,
  .table-card td > div,
  .panel td > .actions,
  .panel td > form,
  .panel td > div {
    max-width: 100%;
  }

  .admin-tabs a,
  .workspace-pill,
  .btn,
  select,
  input,
  textarea {
    min-width: 0 !important;
  }

  .app-topbar,
  .nav-flex {
    grid-template-columns: auto auto 1fr auto !important;
  }

  .brand-title-text {
    white-space: normal !important;
    line-height: 1.15;
  }

  .search-box {
    width: 100%;
  }

  .mobile-bottom-nav {
    right: 6px !important;
    left: 6px !important;
    gap: 6px !important;
  }
}

@media (max-width: 480px) {
  .wrap {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  .panel,
  .card,
  .feature-box,
  .table-card {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .main-header .search-box,
  .btn,
  input,
  select,
  textarea {
    font-size: 14px;
  }
}


/* ===== Remaining screenshot-based fixes ===== */
/* Remaining mobile fixes based on screenshots */

/* 1) admin summary/stat cards outside hero should not use hero colors */
.card.mini-stat,
.panel .mini-stat,
.grid .mini-stat,
.workflow-card,
.quick-order-pill {
  background: #ffffff !important;
  border: 1px solid var(--line) !important;
  box-shadow: 0 10px 24px rgba(23,53,47,.05);
}

.card.mini-stat strong,
.panel .mini-stat strong,
.grid .mini-stat strong,
.workflow-card strong,
.quick-order-pill {
  color: #10372f !important;
}

.card.mini-stat span,
.panel .mini-stat span,
.grid .mini-stat span,
.workflow-card span,
.workflow-card small,
.quick-order-pill small {
  color: #4b635a !important;
  opacity: 1 !important;
  font-weight: 700;
}

/* 2) admin tabs and workspace pills should scroll horizontally, not shrink */
.admin-tabs,
.workspace-pills {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  gap: 8px !important;
  scrollbar-width: none;
}

.admin-tabs::-webkit-scrollbar,
.workspace-pills::-webkit-scrollbar {
  display: none;
}

.admin-tabs a,
.workspace-pill {
  flex: 0 0 auto !important;
  white-space: nowrap !important;
}

/* 3) mobile drawer must be above everything, and bottom nav must hide while open */
.mobile-drawer-overlay {
  z-index: 140 !important;
}

.mobile-drawer {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  left: auto !important;
  width: min(88vw, 360px) !important;
  min-width: 0 !important;
  height: 100vh !important;
  z-index: 150 !important;
  border-radius: 0 !important;
  border-left: 1px solid var(--line) !important;
  border-right: 0 !important;
  transform: translateX(110%);
}

.mobile-drawer.open {
  transform: translateX(0) !important;
}

body.drawer-open {
  overflow: hidden !important;
}

body.drawer-open .mobile-bottom-nav {
  opacity: 0 !important;
  pointer-events: none !important;
}

.mobile-drawer-head,
.mobile-drawer-brand {
  min-width: 0;
}

.mobile-drawer-brand strong,
.mobile-drawer-brand small,
.mobile-drawer-links a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* 4) prevent the tiny popup-like menu on some pages */
@media (max-width: 760px) {
  .mobile-drawer {
    display: grid !important;
    align-content: start !important;
    padding: 18px 14px 120px !important;
    box-shadow: -20px 0 60px rgba(15,23,42,.18) !important;
  }

  .mobile-drawer-links {
    display: grid !important;
    gap: 10px !important;
  }

  .mobile-drawer-links a {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    min-height: 50px !important;
    width: 100% !important;
    padding: 13px 14px !important;
    font-size: 15px !important;
    line-height: 1.45 !important;
  }

  /* shop / topbar */
  .app-topbar {
    grid-template-columns: auto auto 1fr auto !important;
    gap: 8px !important;
  }

  .app-search-wrap {
    min-width: 0 !important;
  }

  .search-box {
    width: 100% !important;
    max-width: none !important;
  }
}

/* 5) workflow cards on admin dashboard */
.workflow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.workflow-card {
  padding: 16px;
  border-radius: 20px;
  display: grid;
  gap: 8px;
  align-content: start;
}

.workflow-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef6f2;
  border: 1px solid #d8ece4;
  font-size: 22px;
}

.quick-order-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.quick-order-pill {
  padding: 14px 16px;
  border-radius: 18px;
  text-decoration: none;
}

@media (max-width: 760px) {
  .workflow-grid,
  .quick-order-strip {
    grid-template-columns: 1fr !important;
  }
}

/* ===== Final header logo fixes ===== */
.brand,
.brand-link,
.brand-link-full,
.app-brand-wrap,
.mobile-drawer-brand {
  min-width: 0;
}

.brand img,
.logo,
.brand-link img,
.brand-link-full img,
.app-brand-wrap .logo,
.main-header .logo,
.mobile-drawer-brand img {
  width: auto !important;
  max-width: 140px;
  object-fit: contain !important;
}

.brand img {
  height: 72px;
}

.main-header .logo,
.app-brand-wrap .logo,
.logo {
  max-height: 56px;
}

.mobile-drawer-brand img {
  width: 56px !important;
  height: 56px !important;
}

@media (max-width: 760px) {
  .brand img {
    width: auto !important;
    height: 48px !important;
    max-width: 110px !important;
    padding: 4px !important;
    border-radius: 14px;
  }

  .main-header .logo,
  .app-brand-wrap .logo,
  .logo,
  .brand-link-full .logo {
    width: auto !important;
    height: 42px !important;
    max-width: 110px !important;
    object-fit: contain !important;
  }
}

@media (max-width: 480px) {
  .brand img,
  .main-header .logo,
  .app-brand-wrap .logo,
  .logo,
  .brand-link-full .logo {
    height: 38px !important;
    max-width: 96px !important;
  }
}

.store-header {
  margin-bottom: 20px;
}

.store-box {
  display: flex;
  align-items: center;
  gap: 15px;
}

.store-logo {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
}

.disabled-product {
  filter: grayscale(100%);
  opacity: 0.6;
}

.btn.disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* ===== v26 home hero size reduction and safer public homepage ===== */
.home-workspace-shell{
  padding:12px 14px !important;
  gap:10px !important;
  border-radius:20px !important;
  margin:10px 0 16px !important;
}
.home-workspace-shell .workspace-toolbar{
  align-items:center !important;
  gap:12px !important;
}
.home-workspace-shell .workspace-toolbar > div:first-child strong{
  display:block;
  font-size:18px !important;
  line-height:1.35 !important;
}
.home-workspace-shell .workspace-toolbar .muted{
  font-size:13px !important;
  line-height:1.7 !important;
}
.home-workspace-shell .workspace-controls{
  gap:8px !important;
}
.home-workspace-shell .workspace-select{
  min-width:180px !important;
}
.home-workspace-shell .workspace-select select{
  height:42px !important;
}
.home-workspace-shell .workspace-pills{
  gap:8px !important;
}
.home-workspace-shell .workspace-pill{
  padding:9px 14px !important;
  font-size:14px !important;
}
.home-hero-v11{
  min-height:unset !important;
  padding:18px 20px !important;
  gap:16px !important;
  align-items:start !important;
  border-radius:24px !important;
}
.home-hero-v11 .hero-copy{
  display:grid;
  gap:12px;
  align-content:start;
}
.home-hero-v11 .hero-badge{
  width:max-content;
  max-width:100%;
  font-size:12px !important;
  padding:7px 12px !important;
}
.home-hero-v11 h1{
  font-size:clamp(28px,2.4vw,40px) !important;
  line-height:1.28 !important;
  margin:0 !important;
  max-width:760px !important;
}
.home-hero-v11 p{
  font-size:15px !important;
  line-height:1.85 !important;
  margin:0 !important;
  max-width:720px !important;
}
.home-hero-v11 .hero-actions-row{
  margin-top:4px !important;
  gap:10px !important;
}
.home-hero-v11 .hero-actions-row .btn{
  min-height:44px !important;
  padding:11px 16px !important;
}
.home-hero-v11 .hero-highlights{
  margin-top:2px !important;
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  gap:10px !important;
}
.home-hero-v11 .mini-stat{
  padding:12px 12px !important;
  border-radius:18px !important;
  min-height:unset !important;
}
.home-hero-v11 .mini-stat strong{
  font-size:18px !important;
  margin-bottom:3px !important;
}
.home-hero-v11 .mini-stat span{
  font-size:12px !important;
  line-height:1.5 !important;
}
.home-hero-v11 .hero-side-v11{
  align-self:stretch !important;
}
.home-hero-v11 .hero-showcase{
  padding:16px !important;
  border-radius:20px !important;
}
.home-hero-v11 .hero-showcase-head{
  margin-bottom:12px !important;
}
.home-hero-v11 .hero-showcase-head h3{
  font-size:22px !important;
  line-height:1.3 !important;
}
.home-hero-v11 .logo-orb{
  width:64px !important;
  height:64px !important;
  border-radius:18px !important;
}
.home-hero-v11 .logo-orb img{
  width:42px !important;
  height:42px !important;
}
.home-hero-v11 .compact-stats-grid{
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:10px !important;
}
.home-hero-v11 .compact-stats-grid .glass-card{
  padding:12px !important;
  border-radius:16px !important;
}
.home-hero-v11 .compact-stats-grid .glass-card strong{
  font-size:17px !important;
}
.home-hero-v11 .compact-stats-grid .glass-card div{
  font-size:12px !important;
  line-height:1.5 !important;
}
.home-hero-v11 .hero-points-list{
  gap:8px !important;
  margin-top:12px !important;
}
.home-hero-v11 .point-row{
  line-height:1.7 !important;
  font-size:14px !important;
}
.home-hero-v11 .point-dot{
  width:8px !important;
  height:8px !important;
  flex:0 0 8px !important;
  margin-top:8px !important;
}
.home-section-block .promo-panel-guest,
.home-section-block .feature-box,
.home-section-block .panel{
  border-radius:20px !important;
}
.home-section-block .list-item{
  align-items:flex-start !important;
}
@media (min-width: 761px){
  .home-hero-v11{
    grid-template-columns:minmax(0,1.08fr) minmax(320px,.92fr) !important;
  }
}
@media (max-width: 1080px){
  .home-workspace-shell{
    padding:12px !important;
  }
  .home-hero-v11{
    padding:16px !important;
    gap:14px !important;
  }
  .home-hero-v11 .hero-highlights{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
  .home-hero-v11 .compact-stats-grid{
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  }
}
@media (max-width: 760px){
  .home-workspace-shell{
    padding:10px !important;
    gap:8px !important;
    border-radius:18px !important;
  }
  .home-workspace-shell .workspace-toolbar{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:10px !important;
  }
  .home-workspace-shell .workspace-toolbar > div:first-child strong{
    font-size:16px !important;
  }
  .home-workspace-shell .workspace-toolbar .muted{
    font-size:12px !important;
  }
  .home-workspace-shell .workspace-pill{
    padding:8px 12px !important;
    font-size:13px !important;
  }
  .home-hero-v11{
    padding:14px !important;
    gap:12px !important;
    border-radius:20px !important;
  }
  .home-hero-v11 h1{
    font-size:22px !important;
    line-height:1.35 !important;
  }
  .home-hero-v11 p{
    font-size:13px !important;
    line-height:1.75 !important;
  }
  .home-hero-v11 .hero-badge{
    font-size:11px !important;
    padding:6px 10px !important;
  }
  .home-hero-v11 .hero-actions-row{
    grid-template-columns:1fr !important;
  }
  .home-hero-v11 .hero-highlights{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:8px !important;
  }
  .home-hero-v11 .mini-stat{
    padding:10px !important;
  }
  .home-hero-v11 .mini-stat strong{
    font-size:16px !important;
  }
  .home-hero-v11 .mini-stat span{
    font-size:11px !important;
  }
  .home-hero-v11 .hero-showcase{
    padding:14px !important;
  }
  .home-hero-v11 .hero-showcase-head h3{
    font-size:18px !important;
  }
  .home-hero-v11 .compact-stats-grid{
    grid-template-columns:1fr !important;
  }
  .home-hero-v11 .compact-stats-grid .glass-card strong{
    font-size:16px !important;
  }
  .home-hero-v11 .point-row{
    font-size:13px !important;
  }
}
@media (max-width: 480px){
  .home-hero-v11{
    padding:12px !important;
  }
  .home-hero-v11 h1{
    font-size:20px !important;
  }
  .home-hero-v11 .hero-highlights{
    grid-template-columns:1fr !important;
  }
}

/* المنتجات في الرئيسية والمتجر: منتجان في كل صف */
.home .products-grid,
.products-grid,
.products-grid-v11 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 14px !important;
}

/* بطاقات المنتجات تتمدد بشكل صحيح داخل العمود */
.products-grid > *,
.products-grid-v11 > * {
  min-width: 0;
}

/* الجوال الصغير جدًا: يبقى عمودان مع تصغير التباعد */
@media (max-width: 640px) {
  .home .products-grid,
  .products-grid,
  .products-grid-v11 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .product-card,
  .enhanced-product-card,
  .product-card-v11 {
    border-radius: 18px;
  }

  .product-title,
  .product-card h3 {
    font-size: 16px !important;
    line-height: 1.4;
  }

  .product-desc {
    font-size: 13px !important;
  }

  .price,
  .price-row .price {
    font-size: 15px !important;
  }

  .product-actions,
  .product-actions-two {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .product-image,
  .product-thumb-wrap img {
    height: 140px !important;
    object-fit: cover;
  }
}

/* إذا كانت الشاشة ضيقة جدًا جدًا */
@media (max-width: 380px) {
  .home .products-grid,
  .products-grid,
  .products-grid-v11 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .product-image,
  .product-thumb-wrap img {
    height: 120px !important;
  }
}


/* ===== Header compact search + logo space fix ===== */
.header-search-icon-wrap{display:flex;justify-content:center}
.header-search-icon,
.header-icon-link{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:14px;border:1px solid var(--line);background:#fff;color:var(--ink);text-decoration:none;font-size:20px;line-height:1;flex:0 0 auto}
.cart-link{font-size:18px}
.user-link{font-size:17px}
.notification-link{position:relative}
.app-topbar{grid-template-columns:auto auto 1fr !important}
.app-brand-wrap{justify-content:flex-end;min-width:0}
.brand-link-full{display:inline-flex;align-items:center;gap:8px;max-width:100%}
.brand-title-text{font-size:20px;line-height:1.05;white-space:nowrap;overflow:visible}
.mobile-drawer-search{margin:4px 0 14px}
.mobile-drawer-search-form{display:grid;grid-template-columns:1fr 46px;gap:8px;align-items:center}
.mobile-drawer-search-form .search-box{height:46px;margin:0}
.mobile-drawer-search-btn{height:46px;border:1px solid var(--line);border-radius:14px;background:#fff;font-size:18px}
@media (max-width:760px){
  .app-topbar{grid-template-columns:auto auto 1fr !important;gap:6px !important}
  .app-actions{gap:6px !important}
  .header-search-icon,.header-icon-link,.app-actions>a{width:38px !important;height:38px !important;border-radius:12px !important;font-size:17px !important}
  .cart-link{font-size:16px !important}
  .user-link{font-size:15px !important}
  .app-brand-wrap{order:3 !important;justify-self:end;min-width:0}
  .header-search-icon-wrap{order:2 !important}
  .brand-link-full{gap:6px !important}
  .brand-title-text{font-size:17px !important;line-height:1 !important;white-space:nowrap !important}
  .main-header .logo,.app-brand-wrap .logo,.logo,.brand-link-full .logo{height:44px !important;max-width:120px !important}
}
@media (max-width:480px){
  .app-topbar{grid-template-columns:auto auto minmax(0,1fr) !important}
  .header-search-icon,.header-icon-link,.app-actions>a{width:36px !important;height:36px !important;font-size:16px !important}
  .brand-title-text{font-size:15px !important}
  .main-header .logo,.app-brand-wrap .logo,.logo,.brand-link-full .logo{height:40px !important;max-width:112px !important}
}


/* ===== v24 mobile product cards + hero tuning ===== */
.products-grid-v11,.products-grid-shop,.products-grid-mobile-app{align-items:stretch}
.product-card,.product-card-v11,.shop-product-card-v11,.compact-product-card{height:100%;display:flex;flex-direction:column}
.product-thumb-wrap,.product-thumb-link{display:block}
.product-body,.compact-product-body{display:flex;flex-direction:column;gap:10px;flex:1}
.product-meta-row,.compact-meta-row{min-height:24px}
.product-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:calc(1.45em * 2)}
.product-desc-clamp{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:calc(1.7em * 2);margin:0;color:#5b7069}
.product-info-stack{display:grid !important;grid-template-columns:minmax(0,1fr);gap:10px;margin-top:auto}
.product-mini-links{display:grid;grid-template-columns:1fr 1fr;gap:8px;align-items:stretch}
.product-mini-link,.product-mini-store{display:flex;align-items:center;justify-content:center;min-height:40px;border-radius:12px;text-align:center}
.product-mini-store{padding:8px 10px;font-size:13px}
.compact-product-card .price-row .badge,.compact-product-card .danger{justify-self:start}
.compact-product-card .offer-countdown{font-size:12px;line-height:1.5}
.compact-product-card .price,.compact-product-card strong[style*="font-size:28px"]{font-size:20px !important;line-height:1.2}
.compact-product-card span[style*="text-decoration:line-through"]{font-size:13px !important}
.products-grid-shop .product-image,.products-grid-mobile-app .product-image,.products-grid-v11 .product-image{object-fit:contain;background:#fff;padding:10px}
.home-hero-v11,.hero-banner{min-height:clamp(280px,48vh,520px)}
.hero-banner h1,.shop-hero-copy h1{font-size:clamp(26px,4vw,44px)}
.hero-banner p,.shop-hero-copy p{font-size:clamp(14px,1.6vw,16px)}
@media (max-width:760px){
  html{font-size:15px}
  body{font-size:15px}
  .hero-banner,.home-hero-v11{min-height:auto;padding:14px !important}
  .products-grid-v11,.products-grid-shop,.products-grid-mobile-app{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;grid-auto-rows:1fr}
  .product-card,.product-card-v11,.shop-product-card-v11,.compact-product-card{min-height:100%;border-radius:18px}
  .products-grid-shop .product-image,.products-grid-mobile-app .product-image,.products-grid-v11 .product-image{height:128px !important;object-fit:contain !important;padding:8px;background:#fff}
  .product-body,.compact-product-body{padding:10px !important;gap:8px}
  .product-meta-row,.compact-meta-row{display:grid !important;grid-template-columns:1fr auto;align-items:start;gap:6px;min-height:36px}
  .compact-badge,.stock-chip,.vendor-line,.product-badge{font-size:10px !important}
  .product-title{font-size:13px !important;line-height:1.45;min-height:calc(1.45em * 2)}
  .product-desc-clamp{font-size:11px;line-height:1.6;min-height:calc(1.6em * 2)}
  .product-info-stack{gap:8px !important}
  .compact-price-row > div:first-child{display:grid !important;gap:4px;justify-items:start}
  .compact-product-card .price,.compact-product-card strong[style*="font-size:28px"]{font-size:16px !important}
  .compact-product-card span[style*="text-decoration:line-through"]{font-size:11px !important}
  .product-mini-links{grid-template-columns:1fr 1fr;gap:6px}
  .product-mini-link,.product-mini-store{min-height:36px;font-size:11px;padding:7px 6px}
  .product-form-v11,.product-form-compact{grid-template-columns:48px 1fr;gap:6px;margin-top:auto}
  .product-form-v11 input[type=number],.product-form-compact input[type=number]{height:34px;font-size:12px}
  .product-form-v11 .btn,.product-form-compact .btn{min-height:34px;font-size:12px;padding:6px 8px}
  .hero-banner h1,.shop-hero-copy h1,.dashboard-head h1,.product-details-card h1{font-size:18px !important;line-height:1.35}
  .hero-banner p,.shop-hero-copy p,.section-title p{font-size:12px !important}
  .section-title h2{font-size:18px !important}
  .btn{font-size:13px}
}
@media (max-width:420px){
  html{font-size:14px}
  .products-grid-v11,.products-grid-shop,.products-grid-mobile-app{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .products-grid-shop .product-image,.products-grid-mobile-app .product-image,.products-grid-v11 .product-image{height:118px !important}
  .product-title{font-size:12px !important}
  .product-desc-clamp{font-size:10.5px}
  .product-mini-link,.product-mini-store{font-size:10px}
}
@media (min-width:761px) and (max-width:1024px){
  .products-grid-v11,.products-grid-shop,.products-grid-mobile-app{grid-template-columns:repeat(3,minmax(0,1fr))}
}

/* ===== v27 home slider + product card refinements ===== */
.home-slider-section{margin:10px 0 24px}
.home-slider{position:relative;border-radius:26px;overflow:hidden;min-height:clamp(220px,32vw,420px);background:#eef2f7;border:1px solid var(--line);box-shadow:var(--shadow)}
.home-slider-track{position:relative;min-height:inherit}
.home-slide{position:absolute;inset:0;opacity:0;pointer-events:none;transition:opacity .35s ease,transform .35s ease;background-size:cover;background-position:center;transform:scale(1.01)}
.home-slide.is-active{opacity:1;pointer-events:auto;z-index:2;transform:scale(1)}
.home-slide-overlay{position:absolute;inset:0;background:linear-gradient(90deg,rgba(15,23,42,.72) 0,rgba(15,23,42,.42) 45%,rgba(15,23,42,.12) 100%)}
.home-slide-content{position:relative;z-index:2;display:flex;align-items:center;min-height:inherit;padding:30px 34px}
.home-slide-copy{max-width:min(560px,100%);color:#fff}
.home-slide-badge{display:inline-flex;align-items:center;gap:8px;padding:8px 14px;border-radius:999px;background:rgba(255,255,255,.18);backdrop-filter:blur(8px);font-size:12px;font-weight:800}
.home-slide h1{margin:14px 0 10px;color:#fff;font-size:clamp(24px,4vw,42px);line-height:1.2}
.home-slide p{margin:0;color:rgba(255,255,255,.95);font-size:15px;line-height:1.9}
.home-slider-nav{position:absolute;top:50%;transform:translateY(-50%);z-index:3;width:44px;height:44px;border:0;border-radius:999px;background:rgba(255,255,255,.92);color:#102b24;font-size:20px;font-weight:900;cursor:pointer;box-shadow:0 14px 30px rgba(0,0,0,.16)}
.home-slider-nav.prev{left:16px}
.home-slider-nav.next{right:16px}
.home-slider-dots{position:absolute;left:18px;bottom:16px;z-index:3;display:flex;gap:8px}
.home-slider-dots button{width:10px;height:10px;border:0;border-radius:999px;background:rgba(255,255,255,.55);cursor:pointer}
.home-slider-dots button.is-active{width:26px;background:#fff}
.home-slider-fallback .home-slide{position:relative;opacity:1;pointer-events:auto}

.home .products-grid,
.products-grid,
.products-grid-v11,
.products-grid-shop,
.products-grid-mobile-app{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px;align-items:stretch}
.home .products-grid > *,
.products-grid > *,
.products-grid-v11 > *,
.products-grid-shop > *,
.products-grid-mobile-app > *{min-width:0}
.product-card,.product-card-v11,.shop-product-card-v11,.compact-product-card{height:100%;border-radius:22px;overflow:hidden}
.product-thumb-wrap{background:#fff}
.products-grid-shop .product-image,.products-grid-mobile-app .product-image,.products-grid-v11 .product-image,.product-image{width:100%;height:180px;object-fit:contain;background:#fff;padding:12px;border-radius:0}
.product-body,.compact-product-body{padding:12px 12px 14px !important;gap:8px}
.product-title,.compact-product-card .product-title{font-size:15px;line-height:1.55;min-height:calc(1.55em * 2);margin:0}
.product-desc,.product-desc-clamp{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:calc(1.7em * 2);font-size:13px;line-height:1.7}
.compact-price-row > div:first-child{display:grid;gap:4px;justify-items:start}
.compact-product-card .price,.compact-product-card strong[style*="font-size:28px"]{font-size:22px !important;line-height:1.2}
.compact-product-card span[style*="text-decoration:line-through"]{font-size:14px !important}
.product-mini-links{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.product-mini-link,.product-mini-store{min-height:38px;font-size:12px;padding:8px 6px}
.product-form-v11,.product-form-compact{display:grid;grid-template-columns:56px 1fr;gap:8px;margin-top:auto}
.product-form-v11 input[type=number],.product-form-compact input[type=number]{height:38px;padding:0 8px}
.product-form-v11 .btn,.product-form-compact .btn{min-height:38px}

@media (min-width:1200px){
  .products-grid-v11,.products-grid-shop,.products-grid-mobile-app{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media (min-width:761px) and (max-width:1199px){
  .products-grid-v11,.products-grid-shop,.products-grid-mobile-app{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:760px){
  .home-slider{min-height:210px;border-radius:20px}
  .home-slide-content{padding:16px}
  .home-slide-badge{font-size:11px;padding:6px 10px}
  .home-slide h1{font-size:22px;line-height:1.3;margin:10px 0 8px}
  .home-slide p{font-size:12px;line-height:1.7}
  .home-slider-nav{width:36px;height:36px;font-size:16px}
  .home-slider-nav.prev{left:10px}
  .home-slider-nav.next{right:10px}
  .home-slider-dots{left:12px;bottom:12px}
  .products-grid-v11,.products-grid-shop,.products-grid-mobile-app{grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:10px !important}
  .products-grid-shop .product-image,.products-grid-mobile-app .product-image,.products-grid-v11 .product-image,.product-image{height:132px !important;padding:8px !important}
  .product-body,.compact-product-body{padding:10px !important}
  .product-title,.compact-product-card .product-title{font-size:13px !important}
  .product-desc,.product-desc-clamp{font-size:11px !important}
  .compact-product-card .price,.compact-product-card strong[style*="font-size:28px"]{font-size:17px !important}
  .compact-product-card span[style*="text-decoration:line-through"]{font-size:11px !important}
  .product-mini-link,.product-mini-store{font-size:10.5px;min-height:34px}
}
@media (max-width:420px){
  .home-slider{min-height:190px}
  .home-slide h1{font-size:19px}
  .products-grid-v11,.products-grid-shop,.products-grid-mobile-app{grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:8px !important}
  .products-grid-shop .product-image,.products-grid-mobile-app .product-image,.products-grid-v11 .product-image,.product-image{height:120px !important}
}


/* ===== v33 slider desktop single-slide + hide mobile action buttons ===== */
.home-workspace-shell .workspace-pills{display:none !important}
.home-slider-section{margin:14px 0 24px}
.home-slider{
  position:relative;
  min-height:auto;
  border-radius:26px;
  overflow:hidden;
  background:#fff;
  border:1px solid var(--line);
  box-shadow:var(--shadow);
}
.home-slider-track{position:relative}
.home-slide{
  display:none;
  position:relative;
  background:#fff;
}
.home-slide.is-active{display:block}
.home-slide-media{
  background:#f4f7f6;
}
.home-slide-media img{
  display:block;
  width:100%;
  height:clamp(260px,32vw,390px);
  object-fit:contain;
  object-position:center;
  background:#f4f7f6;
}
.home-slide-media-fallback{
  height:clamp(240px,30vw,360px);
  background:linear-gradient(135deg,#f97316 0,#fb923c 55%,#fdba74 100%);
}
.home-slide-overlay{display:none !important}
.home-slide-content{display:none !important}
.home-slide-panel{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:18px 22px 20px;
  background:#fff;
}
.home-slide-copy{
  max-width:70%;
  color:#173a32;
}
.home-slide-badge{
  display:inline-flex;
  align-items:center;
  padding:6px 12px;
  border-radius:999px;
  background:#eef7f3;
  color:#165c48;
  font-size:12px;
  font-weight:800;
}
.home-slide h1,
.home-slide h2{
  margin:10px 0 6px;
  color:#173a32;
  font-size:clamp(24px,3vw,40px);
  line-height:1.2;
}
.home-slide p{
  margin:0;
  color:#52756b;
  font-size:15px;
  line-height:1.8;
}
.home-slide-actions{
  margin-top:0;
  min-width:320px;
  justify-content:flex-end;
}
.home-slide-actions .btn{min-width:150px}
.home-slider-nav{
  top:calc(clamp(260px,32vw,390px) / 2);
  transform:translateY(-50%);
}
.home-slider-dots{
  left:50%;
  transform:translateX(-50%);
  bottom:94px;
}
@media (min-width:1200px){
  .home-slider{max-width:1240px;margin:0 auto}
}
@media (max-width:760px){
  .home-slider{border-radius:22px}
  .home-slide-media img{height:220px}
  .home-slide-panel{
    padding:12px 14px 14px;
    display:block;
  }
  .home-slide-copy{max-width:100%}
  .home-slide h1,.home-slide h2{font-size:24px;margin:8px 0 4px}
  .home-slide p{font-size:12px;line-height:1.65}
  .home-slide-actions{display:none !important}
  .home-slider-nav{display:none !important}
  .home-slider-dots{bottom:12px}
}
@media (max-width:420px){
  .home-slide-media img{height:190px}
  .home-slide-panel{padding:10px 12px 12px}
  .home-slide h1,.home-slide h2{font-size:20px}
}

.favorite-corner-form{position:absolute;top:10px;left:10px;z-index:4;margin:0}
.favorite-corner{width:38px;height:38px;border:1px solid rgba(220,38,38,.14);border-radius:999px;background:rgba(255,255,255,.98);box-shadow:0 10px 25px rgba(15,23,42,.12);font-size:20px;font-weight:800;line-height:1;cursor:pointer;display:grid;place-items:center;color:#dc2626}
.favorite-corner.is-fav{background:#fff1f2;color:#be123c}
.social-summary-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0 0 18px}
.social-summary-chip{background:#f7faf8;border:1px solid #e5eeea;border-radius:18px;padding:12px;text-align:center}
.social-summary-chip strong{display:block;font-size:20px;color:#173d36}
.social-summary-chip span{display:block;margin-top:6px;color:#688178;font-size:13px}
.social-card-block{padding:18px;margin-bottom:18px}
.social-form{display:grid;gap:10px;margin-bottom:18px}
.social-form textarea,.social-form select{width:100%;border:1px solid #d9e5df;border-radius:16px;padding:12px 14px;font:inherit;background:#fff}
.social-list{display:grid;gap:12px}
.social-item{border:1px solid #e4ece8;border-radius:18px;padding:14px 16px;background:#fcfdfd}
.social-item-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}
.social-item p{margin:0;line-height:1.9}
.rating-stars{color:#d97706;font-weight:800}
.rating-picker{display:grid;gap:6px}
.product-image,.compact-product-card .product-image,.product-page-image,.order-item-thumb{object-fit:contain!important;object-position:center;background:#fff}
.product-image,.compact-product-card .product-image{padding:10px}
.product-page-image{padding:18px}
@media (max-width:760px){.social-summary-row{grid-template-columns:repeat(2,minmax(0,1fr))}.favorite-corner{width:34px;height:34px;font-size:18px}.social-card-block{padding:14px}}


/* admin sidebar + modals */
.admin-sidebar-toggle{position:fixed;top:96px;right:16px;z-index:1200;width:48px;height:48px;border:none;border-radius:14px;background:var(--primary);color:#fff;font-size:24px;box-shadow:0 10px 30px rgba(0,0,0,.12);cursor:pointer}
.admin-sidebar-backdrop{position:fixed;inset:0;background:rgba(15,23,42,.35);z-index:1190}
.admin-sidebar{position:fixed;top:88px;right:16px;width:270px;max-height:calc(100vh - 110px);overflow:auto;background:#fff;border:1px solid var(--line);border-radius:22px;box-shadow:0 20px 60px rgba(15,23,42,.12);padding:14px;z-index:1201;transform:translateX(110%);transition:.22s ease}
.admin-sidebar.is-open,.admin-sidebar.is-desktop{transform:none}
.admin-sidebar.is-desktop{right:24px;width:260px}
.admin-sidebar-head{display:flex;align-items:center;justify-content:space-between;padding-bottom:10px;margin-bottom:10px;border-bottom:1px solid var(--line)}
.admin-sidebar-head strong{font-size:20px;color:var(--ink)}
.admin-sidebar-close{width:36px;height:36px;border:none;border-radius:12px;background:#eef7f3;font-size:22px;color:var(--primary-dark);cursor:pointer}
.admin-sidebar-links{display:grid;gap:8px}
.admin-sidebar-links a{padding:12px 14px;border-radius:14px;background:#f8fbfa;color:var(--ink);font-weight:800;border:1px solid var(--line)}
.admin-sidebar-links a.active,.admin-sidebar-links a:hover{background:#eaf7f3;color:var(--primary-dark)}
@media (min-width:1100px){body:has(.admin-sidebar.is-desktop) .wrap,body:has(.admin-sidebar.is-desktop) .container,body:has(.admin-sidebar.is-desktop) .mobile-app-shell{padding-right:300px}.admin-sidebar-toggle{display:none}.admin-sidebar-backdrop{display:none!important}}
@media (max-width:1099px){.admin-sidebar{top:82px;right:10px;left:10px;width:auto;max-height:calc(100vh - 100px)} }
.admin-modal[hidden]{display:none!important}.admin-modal{position:fixed;inset:0;z-index:1300;background:rgba(15,23,42,.38);display:flex;align-items:center;justify-content:center;padding:16px}.admin-modal-card{width:min(820px,100%);max-height:calc(100vh - 40px);overflow:auto;background:#fff;border-radius:24px;border:1px solid var(--line);box-shadow:0 20px 60px rgba(15,23,42,.18);padding:18px}.admin-modal-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.admin-modal-head h3{margin:0}.admin-modal-head button{width:40px;height:40px;border:none;border-radius:12px;background:#eef7f3;font-size:26px;cursor:pointer;color:var(--primary-dark)}body.modal-open,body.admin-sidebar-open{overflow:hidden}.featured-store-badge{display:inline-flex;align-items:center;gap:4px;padding:5px 10px;border-radius:999px;background:#fff7db;color:#9a6700;font-size:12px;font-weight:800;border:1px solid #f7d774;margin-bottom:6px} .plan-buy-hint{padding:12px 14px;border-radius:14px;background:#f7fcfa;border:1px solid #cfe8dd}

/* ===== customer addresses and delivery distance ===== */
.saved-address-switches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.saved-address-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid #d7e7e1;
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
}
.saved-address-chip input {
  accent-color: #0f766e;
}
.saved-address-chip.active,
.saved-address-chip:has(input:checked) {
  border-color: #0f766e;
  background: #ecfeff;
}
.customer-address-grid {
  margin-top: 12px;
}
.customer-address-card {
  padding: 16px;
}
.compact-map-picker .map-picker-frame {
  min-height: 220px;
}
.radio-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

/* ===== settlement print ===== */
.print-only { display: none !important; }
@media print {
  body * { visibility: hidden !important; }
  #settlement-print-area, #settlement-print-area * { visibility: visible !important; }
  #settlement-print-area {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
  }
  .no-print, header, footer, nav, .mobile-bottom-nav, .site-header, .site-footer, .dashboard-head, .workspace-shell, .btn, button, form {
    display: none !important;
  }
  .print-only { display: block !important; }
  table { width: 100% !important; border-collapse: collapse !important; }
  th, td { border: 1px solid #999 !important; padding: 8px !important; color: #000 !important; background: #fff !important; }
  .panel, .surface-soft, .table-card { box-shadow: none !important; border: 0 !important; background: #fff !important; }
  .badge { border: 1px solid #999 !important; color: #000 !important; background: #fff !important; }
  .settlement-print-head { margin-bottom: 16px !important; }
  .settlement-print-head h1 { margin: 0 0 6px !important; font-size: 24px !important; }
}

@media (max-width: 760px) {
  .saved-address-switches {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .customer-address-grid {
    display: grid;
    grid-template-columns: 1fr;
  }
}


/* ===== checkout summary simplification ===== */
.checkout-note {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8fafc;
  color: #334155;
}
.checkout-note--danger {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

/* ===== print settlement only ===== */
.print-only { display: none !important; }
@media print {
  body * { visibility: hidden !important; }
  #settlement-print-area,
  #settlement-print-area * { visibility: visible !important; }
  #settlement-print-area {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
  }
  .no-print,
  header,
  footer,
  nav,
  .mobile-bottom-nav,
  .site-header,
  .site-footer,
  .dashboard-head,
  .workspace-shell,
  .btn,
  button,
  form { display: none !important; }
  .print-only { display: block !important; }
  table { width: 100% !important; border-collapse: collapse !important; }
  th, td {
    border: 1px solid #999 !important;
    padding: 8px !important;
    color: #000 !important;
    background: #fff !important;
  }
  .panel, .surface-soft, .table-card {
    box-shadow: none !important;
    border: 0 !important;
    background: #fff !important;
  }
  .badge {
    border: 1px solid #999 !important;
    color: #000 !important;
    background: #fff !important;
  }
  .settlement-print-head { margin-bottom: 16px !important; }
  .settlement-print-head h1 { margin: 0 0 6px !important; font-size: 24px !important; }
}


/* ===== tax & settlement print ===== */
.tax-note-small { font-size: 13px; color: #5c6b66; margin-top: 8px; }

.print-only { display: none !important; }
@media print {
  body * { visibility: hidden !important; }
  #settlement-print-area, #settlement-print-area * { visibility: visible !important; }
  #settlement-print-area { position: absolute !important; inset: 0 !important; width: 100% !important; background: #fff !important; margin: 0 !important; padding: 0 !important; }
  .no-print, header, footer, nav, .mobile-bottom-nav, .site-header, .site-footer, .dashboard-head, .workspace-shell, .btn, button, form { display: none !important; }
  .print-only { display: block !important; }
  table { width: 100% !important; border-collapse: collapse !important; }
  th, td { border: 1px solid #999 !important; padding: 8px !important; color: #000 !important; background: #fff !important; }
  .panel, .surface-soft, .table-card { box-shadow: none !important; border: 0 !important; background: #fff !important; }
  .badge { border: 1px solid #999 !important; color: #000 !important; background: #fff !important; }
  .settlement-print-head { margin-bottom: 16px !important; }
  .settlement-print-head h1 { margin: 0 0 6px !important; font-size: 24px !important; }
}


.products-grid-mobile-app{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;align-items:stretch}
.compact-product-card,.product-card-v11{background:#fff;border:1px solid rgba(15,23,42,.06);box-shadow:0 10px 24px rgba(15,23,42,.06)}
.product-thumb-wrap{position:relative;display:block;border-radius:18px;overflow:hidden;background:#f8fafc}
.product-image{width:100%;height:220px;object-fit:cover!important;object-position:center;padding:0!important;background:#f8fafc}
.product-badge.product-video-badge{top:42px;background:#111827}
.product-gallery-card{padding:16px}
.product-main-media{border-radius:24px;overflow:hidden;background:#ffffff;display:flex;align-items:center;justify-content:center;min-height:420px;border:1px solid #edf2f0}
.product-page-image,.product-page-video{width:100%;height:100%;max-height:640px;object-fit:contain!important;background:#ffffff}
.product-page-video{aspect-ratio:9/16}
.product-gallery-thumbs{display:grid;grid-template-columns:repeat(auto-fill,minmax(82px,1fr));gap:10px;margin-top:12px}
.product-gallery-thumb{border:1px solid #e5e7eb;background:#fff;border-radius:16px;padding:0;overflow:hidden;cursor:pointer;position:relative;height:92px}
.product-gallery-thumb img,.product-gallery-thumb video{width:100%;height:100%;object-fit:cover}
.product-gallery-thumb.is-active{outline:2px solid var(--primary,#16a34a);outline-offset:1px}
.thumb-video-mark{position:absolute;inset-inline-start:8px;top:8px;z-index:2;background:rgba(17,24,39,.82);color:#fff;border-radius:999px;padding:2px 7px;font-size:12px}
@media (max-width:1200px){.products-grid-mobile-app{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:760px){.products-grid-mobile-app{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px}.product-image{height:180px}.product-main-media{min-height:320px}.product-gallery-thumbs{grid-template-columns:repeat(4,minmax(0,1fr))}.product-page-video{aspect-ratio:9/16}}

/* ===== v6 product grid fix: more cards per row + full image visible ===== */
.products-grid,
.products-grid-v11,
.products-grid-shop,
.products-grid-mobile-app{
  display:grid !important;
  grid-template-columns:repeat(auto-fill,minmax(200px,1fr)) !important;
  gap:14px !important;
  align-items:stretch !important;
}
.product-card,
.product-card-v11,
.shop-product-card-v11,
.compact-product-card{
  height:100%;
  min-width:0;
}
.products-grid .product-thumb-wrap,
.products-grid-v11 .product-thumb-wrap,
.products-grid-shop .product-thumb-wrap,
.products-grid-mobile-app .product-thumb-wrap{
  aspect-ratio:1 / 1;
  min-height:unset !important;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#f8fafc;
}
.products-grid .product-image,
.products-grid-v11 .product-image,
.products-grid-shop .product-image,
.products-grid-mobile-app .product-image,
.product-image{
  width:100% !important;
  height:100% !important;
  max-height:none !important;
  object-fit:contain !important;
  object-position:center center !important;
  padding:10px !important;
  background:#f8fafc !important;
}

@media (min-width:1400px){
  .products-grid,
  .products-grid-v11,
  .products-grid-shop,
  .products-grid-mobile-app{grid-template-columns:repeat(5,minmax(0,1fr)) !important;}
}
@media (min-width:1024px) and (max-width:1399px){
  .products-grid,
  .products-grid-v11,
  .products-grid-shop,
  .products-grid-mobile-app{grid-template-columns:repeat(4,minmax(0,1fr)) !important;}
}
@media (min-width:761px) and (max-width:1023px){
  .products-grid,
  .products-grid-v11,
  .products-grid-shop,
  .products-grid-mobile-app{grid-template-columns:repeat(3,minmax(0,1fr)) !important;}
}
@media (max-width:760px){
  .products-grid,
  .products-grid-v11,
  .products-grid-shop,
  .products-grid-mobile-app{grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:10px !important;}
  .products-grid .product-thumb-wrap,
  .products-grid-v11 .product-thumb-wrap,
  .products-grid-shop .product-thumb-wrap,
  .products-grid-mobile-app .product-thumb-wrap{aspect-ratio:1 / 1;}
  .products-grid .product-image,
  .products-grid-v11 .product-image,
  .products-grid-shop .product-image,
  .products-grid-mobile-app .product-image,
  .product-image{padding:8px !important;}
}


/* v10 mobile header and install banner */
.app-menu-slot{display:flex;align-items:center;justify-content:center;flex:0 0 auto}
.app-install-banner{display:none}
@media (max-width:760px){
  .app-topbar{display:flex !important;align-items:center;gap:8px;padding:6px 0 !important}
  .app-brand-wrap{order:1;flex:0 0 auto;margin-inline-start:0}
  .app-menu-slot{order:2;flex:0 0 auto}
  .app-actions{order:3;display:flex;align-items:center;gap:6px;margin-inline-start:auto;flex-wrap:nowrap}
  .app-actions .search-link{display:inline-flex}
  .mobile-menu-toggle,.app-menu-trigger{display:inline-flex !important;position:static !important;z-index:1 !important;width:40px !important;height:40px !important;border-radius:13px !important;font-size:24px !important}
  .header-icon-link,.app-actions>a{width:38px !important;height:38px !important;border-radius:12px !important;font-size:17px !important}
  .brand-link-full{display:inline-flex;align-items:center;gap:6px !important;max-width:100%}
  .brand-title-text{font-size:18px !important;line-height:1.1}
  .main-header .logo,.app-brand-wrap .logo,.logo,.brand-link-full .logo{height:46px !important;max-width:130px !important}
  .app-install-banner{position:fixed;right:10px;left:10px;bottom:84px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 14px;border-radius:20px;background:linear-gradient(135deg,#0b6d63,#15803d);color:#fff;box-shadow:0 18px 40px rgba(11,109,99,.24);z-index:120;opacity:0;transform:translateY(18px);transition:.22s ease}
  .app-install-banner[hidden]{display:none !important}
  .app-install-banner.visible{opacity:1;transform:translateY(0)}
  .app-install-copy{display:grid;gap:3px;min-width:0}
  .app-install-copy strong{font-size:15px;color:#fff}
  .app-install-copy span{font-size:12px;line-height:1.65;color:rgba(255,255,255,.92)}
  .app-install-actions{display:flex;align-items:center;gap:8px;flex:0 0 auto}
  .app-install-btn{border:none;background:#fff;color:#0b6d63;border-radius:999px;padding:10px 14px;font-size:12px;font-weight:900;cursor:pointer;white-space:nowrap}
  .app-install-dismiss{width:34px;height:34px;border:none;border-radius:50%;background:rgba(255,255,255,.16);color:#fff;font-size:20px;line-height:1;cursor:pointer}
}
@media (max-width:480px){
  .brand-title-text{font-size:16px !important}
  .main-header .logo,.app-brand-wrap .logo,.logo,.brand-link-full .logo{height:42px !important;max-width:116px !important}
  .app-install-banner{right:8px;left:8px;bottom:82px;padding:10px 12px;border-radius:18px}
  .app-install-btn{padding:9px 12px;font-size:11px}
}


/* ===== v11 mobile header: move menu button next to icons ===== */
.app-actions .app-menu-slot{display:inline-flex;position:relative;flex:0 0 auto}
.app-menu-slot .mobile-menu-toggle{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border:1px solid var(--line);border-radius:14px;background:#fff;color:var(--ink);font-size:20px;line-height:1;cursor:pointer}
@media (max-width:760px){
  .app-topbar{display:flex !important;flex-direction:column !important;align-items:center !important;gap:10px !important}
  .app-brand-wrap{order:1 !important;justify-content:center !important;width:100% !important}
  .brand-link-full{justify-content:center !important}
  .app-actions{order:2 !important;display:flex !important;align-items:center !important;justify-content:flex-start !important;gap:8px !important;width:100% !important;flex-wrap:nowrap !important;overflow-x:auto !important;padding:0 2px 2px !important;scrollbar-width:none !important}
  .app-actions::-webkit-scrollbar{display:none}
  .app-actions .app-menu-slot{display:inline-flex !important}
  .app-actions .mobile-menu-toggle{display:inline-flex !important;flex:0 0 auto}
}
@media (max-width:480px){
  .app-actions{gap:6px !important}
}


/* v5 mobile + iPhone safeguards */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{padding-bottom:calc(env(safe-area-inset-bottom, 0px) + 0px)}
.main-header{padding-top:env(safe-area-inset-top, 0px)}
.mobile-bottom-nav{padding-bottom:calc(env(safe-area-inset-bottom, 0px) + 8px)}
input,select,textarea,button{font-size:16px}
img{max-width:100%;height:auto}
.table-card{overflow:hidden}
.table-card table{display:block;width:100%;overflow:auto;-webkit-overflow-scrolling:touch}
@supports (-webkit-touch-callout: none){
  .mobile-drawer{padding-bottom:calc(env(safe-area-inset-bottom, 0px) + 18px)}
  .app-install-banner{bottom:calc(env(safe-area-inset-bottom, 0px) + 78px)}
}
@media (max-width: 820px){
  .split-actions{flex-wrap:wrap}
  .actions{flex-wrap:wrap}
  .form-grid{grid-template-columns:1fr!important}
  .panel, .card{border-radius:18px}
  .store-box{align-items:flex-start!important}
}

.admin-modal-dialog{width:min(920px,100%);max-height:calc(100vh - 40px);overflow:auto;background:#fff;border-radius:24px;border:1px solid var(--line);box-shadow:0 20px 60px rgba(15,23,42,.18);padding:18px}.admin-modal-dialog.narrow{width:min(620px,100%)}.admin-modal-body{padding-top:6px}.admin-modal .form-grid{align-items:start}.admin-modal input,.admin-modal select,.admin-modal textarea{background:#fff;opacity:1}.rank-badge{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border-radius:999px;background:#f8fafc;border:1px solid #dbe4ee;font-weight:800;font-size:12px}.rank-guide-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px}.rank-guide-card{padding:14px;border-radius:18px;background:#fff;border:1px solid #e2e8f0;box-shadow:0 8px 22px rgba(15,23,42,.05)}.points-mini-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:10px}.points-mini-card{padding:12px;border-radius:16px;background:#f8fbfa;border:1px solid #e5eeea}.review-stars{font-size:14px;letter-spacing:2px}.muted-note{color:#64748b;font-size:13px}.driver-rank-note{padding:14px 16px;border-radius:18px;background:#eff8ff;border:1px solid #bfdbfe}.driver-review-box{margin-top:12px;padding:14px;border-radius:18px;background:#f8fbfa;border:1px solid #e5eeea}


/* v9 admin layout normalization */
@media (min-width:1100px){
  .admin-sidebar{width:220px !important}
  body:has(.admin-sidebar.is-desktop) .wrap,
  body:has(.admin-sidebar.is-desktop) .container,
  body:has(.admin-sidebar.is-desktop) .mobile-app-shell{padding-right:240px !important;max-width:1520px}
}
.admin-page-header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:18px}
.admin-page-actions{display:flex;gap:10px;flex-wrap:wrap}
.admin-stack{display:grid;gap:18px}
.admin-section-card{padding:18px 20px;border-radius:24px;background:#fff;border:1px solid rgba(148,163,184,.2);box-shadow:0 14px 34px rgba(15,23,42,.06)}
.admin-inline-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.admin-entity-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:16px}
.admin-entity-card{padding:18px;border-radius:22px;background:#fff;border:1px solid rgba(148,163,184,.22);box-shadow:0 14px 34px rgba(15,23,42,.06);display:grid;gap:14px;min-width:0}
.admin-entity-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;flex-wrap:wrap}
.admin-entity-title{display:grid;gap:6px;min-width:0}
.admin-entity-title strong{font-size:22px;line-height:1.4}
.admin-entity-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.admin-entity-meta-block{padding:12px 14px;border-radius:16px;background:#f8fafc;border:1px solid #e2e8f0;min-width:0}
.admin-entity-meta-block.full{grid-column:1/-1}
.admin-entity-meta-block .label{display:block;font-size:12px;color:#64748b;margin-bottom:6px}
.admin-entity-actions{display:flex;gap:10px;flex-wrap:wrap}
.admin-entity-actions form{margin:0}
.admin-toolbar-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:18px}
.admin-main-shell{display:grid;gap:18px;margin-top:22px}
.admin-main-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.admin-main-tab{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:16px 18px;border:none;border-radius:20px;background:#fff;color:#0f172a;cursor:pointer;font-weight:800;border:1px solid rgba(148,163,184,.22);box-shadow:0 10px 24px rgba(15,23,42,.06);text-align:right}
.admin-main-tab.active{background:#0f172a;color:#fff}
.admin-main-tab small{display:block;font-weight:500;opacity:.72;margin-top:5px;line-height:1.6}
.admin-main-tab strong{font-size:20px;white-space:nowrap}
.admin-main-content{display:grid;gap:18px}
.admin-main-hero{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap;padding:22px 24px;border-radius:24px;background:linear-gradient(135deg,#0f172a 0%,#1e293b 100%);color:#fff;box-shadow:0 24px 56px rgba(15,23,42,.18)}
.admin-main-hero .muted{color:rgba(255,255,255,.74)}
.admin-main-section{display:none;gap:18px}
.admin-main-section.active{display:grid}
.admin-summary-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:16px}
.admin-summary-card{padding:18px;border-radius:22px;background:#fff;border:1px solid rgba(148,163,184,.22);box-shadow:0 12px 30px rgba(15,23,42,.06)}
.admin-summary-card strong{font-size:28px;display:block;margin-top:6px}
.admin-split-grid,.admin-double-grid{display:grid;gap:18px}
.admin-split-grid{grid-template-columns:1.15fr .85fr}
.admin-double-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.admin-table-card{padding:0;border-radius:22px;background:#fff;border:1px solid rgba(148,163,184,.22);box-shadow:0 12px 30px rgba(15,23,42,.06);overflow:hidden}
.admin-card-head{padding:20px 20px 0}
.admin-card-body{padding:20px}
.admin-list{display:grid;gap:12px}
.admin-list-item,.priority-driver{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:18px}
.priority-driver-main{display:flex;align-items:center;gap:12px}
.priority-score{padding:10px 12px;border-radius:999px;background:#0f172a;color:#fff;font-weight:800}
.priority-note{padding:16px 18px;border-radius:20px;background:#eff6ff;border:1px solid #bfdbfe;color:#1d4ed8}
@media (max-width:1200px){
  .admin-main-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}
  .admin-toolbar-grid,.admin-split-grid,.admin-double-grid{grid-template-columns:1fr}
}
@media (max-width:760px){
  .admin-inline-filters,.admin-entity-meta,.admin-main-tabs{grid-template-columns:1fr}
  .admin-entity-grid{grid-template-columns:1fr}
  .admin-page-header,.admin-entity-head,.admin-list-item,.priority-driver,.admin-main-hero{display:grid;grid-template-columns:1fr}
  .admin-entity-actions,.admin-page-actions{display:grid;grid-template-columns:1fr}
  .admin-entity-actions .btn,.admin-page-actions .btn{width:100%}
}


/* v10 admin density fixes */
.admin-page-shell{display:grid;gap:18px}
.admin-page-shell.two-col{grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr);align-items:start}
.admin-section-card,.admin-table-card,.panel.surface-soft,.panel{min-width:0}
.admin-inline-filters{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}
.admin-main-shell{max-width:100%}
.admin-main-hero{align-items:flex-start}
.admin-main-tabs{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}
.admin-main-tab{min-height:96px;align-items:flex-start}
.admin-summary-grid{grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}
.admin-split-grid,.admin-double-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.admin-card-body,.admin-card-head{min-width:0}
.admin-table-card table.table-compact{table-layout:fixed}
.admin-table-card table.table-compact td,.admin-table-card table.table-compact th{vertical-align:top}
.admin-entity-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(360px,1fr));gap:18px}
.admin-entity-card{padding:20px;border-radius:24px;background:#fff;border:1px solid rgba(148,163,184,.22);box-shadow:0 14px 34px rgba(15,23,42,.06);display:grid;gap:16px;min-width:0}
.admin-entity-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;flex-wrap:wrap}
.admin-entity-identity{display:grid;gap:4px;min-width:0}
.admin-entity-identity strong{font-size:22px;line-height:1.4;color:#0f172a;word-break:break-word}
.admin-entity-sub{color:#64748b;word-break:break-word}
.admin-entity-badges{display:flex;gap:8px;flex-wrap:wrap}
.admin-entity-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.admin-entity-meta .meta-box{padding:14px 16px;border-radius:18px;background:#f8fbfa;border:1px solid #e5eeea;display:grid;gap:4px;min-width:0}
.admin-entity-meta .meta-box.full{grid-column:1/-1}
.admin-entity-meta .meta-box span{color:#64748b;font-size:13px}
.admin-entity-meta .meta-box strong{font-size:15px;line-height:1.7;word-break:break-word}
.admin-entity-doc{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:12px 14px;border-radius:18px;background:#fcfcfd;border:1px dashed #cbd5e1}
.admin-entity-doc img{width:72px;height:72px;border-radius:16px;object-fit:cover;border:1px solid #dbe4ee;display:block}
.admin-entity-actions{display:flex;gap:10px;flex-wrap:wrap}
.admin-entity-actions .btn,.admin-entity-actions form{margin:0}
.admin-entity-actions form{display:inline-flex}
.admin-note-card{padding:16px 18px;border-radius:20px;background:#eff6ff;border:1px solid #bfdbfe;color:#1e3a8a}
.admin-flow-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}
.admin-flow-card{padding:16px;border-radius:20px;background:#fff;border:1px solid rgba(148,163,184,.22);display:grid;gap:6px}
@media (max-width:1100px){.admin-page-shell.two-col,.admin-split-grid,.admin-double-grid{grid-template-columns:1fr}}
@media (max-width:760px){.admin-entity-grid{grid-template-columns:1fr}.admin-entity-meta{grid-template-columns:1fr}.admin-entity-head,.admin-entity-actions,.admin-entity-doc{display:grid;grid-template-columns:1fr}.admin-main-tab{min-height:auto}.admin-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* ===== Temu-like compact product grid (home + shop) =====
   يجعل البطاقات متقاربة جداً، والصور تملأ مربع الصورة بالكامل لتوحيد العرض. */
.home .products-grid,
.products-grid,
.products-grid-v11,
.products-grid-shop,
.products-grid-mobile-app{
  gap:6px !important;
  align-items:start !important;
}

.product-card,
.product-card-v11,
.enhanced-product-card,
.shop-product-card-v11,
.compact-product-card{
  border-radius:10px !important;
  box-shadow:none !important;
  border:0 !important;
  background:#fff !important;
  overflow:hidden !important;
}

.products-grid .product-thumb-wrap,
.products-grid-v11 .product-thumb-wrap,
.products-grid-shop .product-thumb-wrap,
.products-grid-mobile-app .product-thumb-wrap,
.product-thumb-wrap,
.product-thumb-link{
  aspect-ratio:1 / 1 !important;
  width:100% !important;
  border-radius:0 !important;
  overflow:hidden !important;
  background:#f3f4f6 !important;
  display:block !important;
  min-height:0 !important;
  padding:0 !important;
  margin:0 !important;
}

.products-grid .product-image,
.products-grid-v11 .product-image,
.products-grid-shop .product-image,
.products-grid-mobile-app .product-image,
.compact-product-card .product-image,
.product-image{
  width:100% !important;
  height:100% !important;
  display:block !important;
  object-fit:cover !important;
  object-position:center center !important;
  padding:0 !important;
  margin:0 !important;
  border-radius:0 !important;
  background:#f3f4f6 !important;
}

.product-body,
.compact-product-body{
  padding:6px 6px 8px !important;
  gap:4px !important;
}

.product-meta-row,
.compact-meta-row{
  min-height:0 !important;
  margin:0 !important;
  gap:4px !important;
}

.product-rating-line{
  margin:0 !important;
  min-height:0 !important;
  line-height:1.2 !important;
}

.product-title,
.compact-product-card .product-title{
  font-size:12px !important;
  line-height:1.35 !important;
  min-height:calc(1.35em * 2) !important;
  margin:2px 0 0 !important;
}

.product-desc,
.product-desc-clamp{
  font-size:10.5px !important;
  line-height:1.35 !important;
  min-height:calc(1.35em * 2) !important;
  margin:0 !important;
}

.price-row,
.compact-price-row,
.product-info-stack{
  gap:4px !important;
  margin:0 !important;
}

.price,
.compact-product-card .price,
.compact-product-card strong[style*="font-size:28px"]{
  font-size:15px !important;
  line-height:1.15 !important;
}

.product-actions,
.product-actions-two,
.product-mini-links,
.product-form-v11,
.product-form-compact{
  gap:4px !important;
  margin-top:4px !important;
}

.product-actions .btn,
.product-actions-two .btn,
.product-mini-link,
.product-mini-store,
.product-form-v11 .btn,
.product-form-compact .btn{
  min-height:30px !important;
  padding:5px 6px !important;
  border-radius:8px !important;
  font-size:10.5px !important;
}

.favorite-corner-form{top:4px !important;left:4px !important;right:auto !important;z-index:5 !important;}
.favorite-corner{width:30px !important;height:30px !important;border-radius:50% !important;font-size:18px !important;background:rgba(255,255,255,.94) !important;box-shadow:0 2px 8px rgba(0,0,0,.08) !important;}
.product-badge{top:4px !important;right:4px !important;border-radius:999px !important;padding:4px 8px !important;font-size:10px !important;line-height:1 !important;background:#ffc107 !important;color:#2b2b2b !important;}
.product-badge.product-video-badge{top:32px !important;background:#111827 !important;color:#fff !important;}

.section-title,
.section-title-spaced,
.compact-section-title{
  margin:8px 0 6px !important;
  gap:6px !important;
}
.section-title h2,.compact-section-title h2{font-size:18px !important;margin:0 !important;}
.section-title p,.compact-section-title p{font-size:11px !important;margin:2px 0 0 !important;line-height:1.35 !important;}

@media (min-width:1200px){
  .products-grid-v11,.products-grid-shop,.products-grid-mobile-app{grid-template-columns:repeat(5,minmax(0,1fr)) !important;gap:8px !important;}
}
@media (min-width:761px) and (max-width:1199px){
  .products-grid-v11,.products-grid-shop,.products-grid-mobile-app{grid-template-columns:repeat(4,minmax(0,1fr)) !important;gap:7px !important;}
}
@media (max-width:760px){
  .wrap{padding-inline:6px !important;}
  .home .products-grid,
  .products-grid,
  .products-grid-v11,
  .products-grid-shop,
  .products-grid-mobile-app{grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:6px !important;}
  .product-card,.product-card-v11,.enhanced-product-card,.shop-product-card-v11,.compact-product-card{border-radius:10px !important;}
  .product-body,.compact-product-body{padding:5px 5px 7px !important;gap:3px !important;}
  .product-title,.compact-product-card .product-title{font-size:11px !important;line-height:1.3 !important;min-height:calc(1.3em * 2) !important;}
  .product-desc,.product-desc-clamp{font-size:9.5px !important;line-height:1.3 !important;min-height:calc(1.3em * 2) !important;}
  .compact-badge,.stock-chip,.vendor-line,.link-inline{font-size:9px !important;padding:4px 6px !important;line-height:1 !important;}
  .price,.compact-product-card .price,.compact-product-card strong[style*="font-size:28px"]{font-size:14px !important;}
  .product-actions .btn,.product-actions-two .btn,.product-mini-link,.product-mini-store,.product-form-v11 .btn,.product-form-compact .btn{min-height:28px !important;font-size:10px !important;padding:4px 5px !important;}
}
@media (max-width:420px){
  .home .products-grid,
  .products-grid,
  .products-grid-v11,
  .products-grid-shop,
  .products-grid-mobile-app{gap:5px !important;}
  .product-body,.compact-product-body{padding:4px 4px 6px !important;}
}
