/* ===== Chef Ahmed — هوية الموقع (ثيم فاتح) ===== */
:root {
    --bg: #fdfaf3;
    --bg-soft: #f6f0e2;
    --card: #ffffff;
    --card-2: #fbf6ea;
    --border: #ece3cf;
    --border-gold: #e3cf9e;
    --text: #241f14;
    --muted: #857a63;
    --yellow: #ffd90f;
    --yellow-deep: #f5c400;
    --gold: #b8923d;
    --gold-soft: #9a7c35;
    --dark: #1c180f;
    --danger: #cc4444;
    --green: #2e9e66;
    --radius: 16px;
    --shadow: 0 8px 30px rgba(90, 70, 20, .12);
    --shadow-soft: 0 3px 14px rgba(90, 70, 20, .08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Cairo', 'Tajawal', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }

.container { width: min(1180px, 92%); margin-inline: auto; }

main { flex: 1; }

/* ===== الناف بار ===== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(253, 250, 243, .92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .6rem 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: .7rem;
    font-weight: 800;
    font-size: 1.2rem;
}

.brand img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--dark);
    box-shadow: 0 0 0 3px var(--yellow);
}

.brand span em { color: var(--gold); font-style: normal; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.3rem;
    font-weight: 700;
}

.nav-links a { color: var(--muted); transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }

.cart-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .45rem .8rem;
    border: 1.5px solid var(--gold);
    border-radius: 12px;
    transition: background .2s, border-color .2s;
}

.cart-btn:hover {
    background: rgba(184, 146, 61, .12);
}

.cart-count {
    background: var(--yellow);
    color: var(--dark);
    font-size: .75rem;
    min-width: 22px;
    height: 22px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-inline: 5px;
    font-weight: 900;
}

/* ===== الهيرو ===== */
.hero {
    position: relative;
    overflow: hidden;
    padding: 3.8rem 0 3.4rem;
    text-align: center;
    background:
        radial-gradient(ellipse 65% 60% at 50% -15%, rgba(255, 217, 15, .35), transparent),
        radial-gradient(ellipse 40% 40% at 88% 25%, rgba(184, 146, 61, .12), transparent),
        var(--bg-soft);
    border-bottom: 1px solid var(--border);
}

.hero img.hero-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.1rem;
    border-radius: 50%;
    border: 3px solid var(--dark);
    box-shadow: 0 0 0 6px var(--yellow), 0 14px 34px rgba(90, 70, 20, .25);
}

.hero h1 {
    font-size: clamp(1.8rem, 4.5vw, 2.9rem);
    font-weight: 900;
    margin-bottom: .5rem;
}

.hero h1 em {
    color: var(--gold);
    font-style: normal;
}

.hero p {
    color: var(--muted);
    font-size: 1.08rem;
    max-width: 560px;
    margin: 0 auto 1.7rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    border: none;
    border-radius: 999px;
    font-weight: 800;
    font-size: 1rem;
    padding: .8rem 2.2rem;
    transition: transform .15s, box-shadow .2s, background .2s;
}

.btn-primary {
    background: var(--yellow);
    color: var(--dark);
    box-shadow: var(--shadow-soft);
}

.btn-primary:hover { transform: translateY(-2px); background: var(--yellow-deep); box-shadow: 0 8px 22px rgba(245, 196, 0, .45); }

.btn-dark {
    background: var(--dark);
    color: var(--yellow);
}

.btn-dark:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(28, 24, 15, .3); }

.btn-outline {
    background: var(--card);
    color: var(--gold-soft);
    border: 1px solid var(--border-gold);
}

.btn-outline:hover { border-color: var(--gold); background: var(--card-2); }

.btn-danger { background: rgba(204, 68, 68, .08); color: var(--danger); border: 1px solid rgba(204, 68, 68, .3); }
.btn-danger:hover { background: rgba(204, 68, 68, .16); }

.btn-sm { padding: .4rem 1.1rem; font-size: .88rem; }
.btn-block { width: 100%; }

/* ===== عناوين الأقسام ===== */
.section { padding: 3rem 0; }

.section-title {
    text-align: center;
    margin-bottom: 2.2rem;
}

.section-title h2 {
    font-size: clamp(1.45rem, 3vw, 2rem);
    font-weight: 900;
}

.section-title .line {
    width: 70px;
    height: 4px;
    margin: .6rem auto 0;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--gold), var(--yellow));
}

.section-title p { color: var(--muted); margin-top: .4rem; }

/* ===== كروت المنتجات ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .25s, border-color .25s, box-shadow .25s;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-soft);
}

.product-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-gold);
    box-shadow: var(--shadow);
}

.product-card .img-wrap {
    position: relative;
    aspect-ratio: 1 / .85;
    overflow: hidden;
}

.product-card .img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s;
}

.product-card:hover .img-wrap img { transform: scale(1.06); }

.product-card .body {
    padding: 1rem 1.1rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    flex: 1;
}

.product-card h3 { font-size: 1.05rem; font-weight: 800; }

.product-card .weight { color: var(--muted); font-size: .85rem; }

.product-card .foot {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
    flex-wrap: wrap;
}

.price {
    color: var(--gold-soft);
    font-weight: 900;
    font-size: 1.15rem;
}

.price small { font-weight: 700; font-size: .75em; margin-inline-start: 2px; }

/* ===== صفحة المنتج ===== */
.product-page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
    padding: 2.6rem 0 1rem;
}

.product-page .photo {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-gold);
    box-shadow: var(--shadow);
    position: sticky;
    top: 90px;
}

.product-info h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 900; margin-bottom: .5rem; }

.product-info .desc { color: var(--muted); font-size: 1rem; margin-bottom: 1.1rem; }

.meta-chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.3rem; }

.chip {
    background: var(--card-2);
    border: 1px solid var(--border-gold);
    color: var(--gold-soft);
    border-radius: 999px;
    padding: .25rem 1rem;
    font-size: .87rem;
    font-weight: 700;
}

.product-info .big-price { font-size: 1.9rem; font-weight: 900; color: var(--gold-soft); margin-bottom: 1.3rem; }
.product-info .big-price small { font-size: .5em; }

.field { margin-bottom: 1.1rem; }

.field label {
    display: block;
    font-weight: 700;
    margin-bottom: .4rem;
    font-size: .95rem;
}

.field label span { color: var(--muted); font-weight: 400; font-size: .85em; }

.input, textarea.input, select.input {
    width: 100%;
    background: var(--card);
    border: 1.5px solid var(--border);
    color: var(--text);
    border-radius: 12px;
    padding: .7rem 1rem;
    font-size: 1rem;
    transition: border-color .2s, box-shadow .2s;
}

.input:focus {
    outline: none;
    border-color: var(--yellow-deep);
    box-shadow: 0 0 0 3px rgba(255, 217, 15, .3);
}

textarea.input { resize: vertical; min-height: 90px; }

.qty-row { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.3rem; }

.qty-stepper {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid var(--border-gold);
    border-radius: 999px;
    overflow: hidden;
    background: var(--card);
}

.qty-stepper button {
    background: transparent;
    border: none;
    color: var(--gold-soft);
    font-size: 1.3rem;
    font-weight: 800;
    width: 46px;
    height: 46px;
    transition: background .15s;
}

.qty-stepper button:hover { background: var(--card-2); }

.qty-stepper input {
    width: 52px;
    text-align: center;
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 800;
}

.qty-stepper input:focus { outline: none; }

/* ===== السلة ===== */
.cart-list { display: flex; flex-direction: column; gap: 1rem; }

.cart-item {
    display: grid;
    grid-template-columns: 92px 1fr auto;
    gap: 1rem;
    align-items: center;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    box-shadow: var(--shadow-soft);
}

.cart-item img {
    width: 92px;
    height: 92px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--border-gold);
}

.cart-item h3 { font-size: 1.02rem; font-weight: 800; }

.cart-item .notes {
    color: var(--muted);
    font-size: .85rem;
    background: var(--card-2);
    border-inline-start: 3px solid var(--yellow-deep);
    padding: .3rem .8rem;
    border-radius: 8px;
    margin-top: .4rem;
}

.cart-item .side { display: flex; flex-direction: column; align-items: flex-end; gap: .6rem; }

.cart-summary {
    background: var(--card);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius);
    padding: 1.4rem;
    position: sticky;
    top: 90px;
    box-shadow: var(--shadow-soft);
}

.cart-summary .row {
    display: flex;
    justify-content: space-between;
    padding: .45rem 0;
    color: var(--muted);
    gap: .8rem;
}

.cart-summary .row.total {
    color: var(--text);
    font-weight: 900;
    font-size: 1.2rem;
    border-top: 1px dashed var(--border-gold);
    margin-top: .5rem;
    padding-top: 1rem;
}

.cart-summary .summary-actions {
    display: flex;
    flex-direction: column;
    gap: .9rem;
    margin-top: 1.2rem;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2rem;
    align-items: start;
    padding: 2.6rem 0;
}

/* ===== الشيك أوت ===== */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
    align-items: start;
    padding: 2.6rem 0;
}

.panel {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.6rem;
    box-shadow: var(--shadow-soft);
}

.panel h2 {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
    padding-bottom: .7rem;
    border-bottom: 1px solid var(--border);
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1.2rem; }
.form-grid .full { grid-column: 1 / -1; }

.toggle-row {
    display: flex;
    align-items: center;
    gap: .8rem;
    background: var(--card-2);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    padding: .85rem 1.1rem;
    cursor: pointer;
    user-select: none;
    transition: border-color .2s;
}

.toggle-row:has(input:checked) { border-color: var(--yellow-deep); background: rgba(255, 217, 15, .1); }
.toggle-row input { width: 20px; height: 20px; accent-color: var(--yellow-deep); cursor: pointer; flex-shrink: 0; }
.toggle-row strong { font-size: .98rem; }
.toggle-row small { color: var(--muted); display: block; }

.summary-item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .55rem 0;
    border-bottom: 1px dashed var(--border);
    font-size: .93rem;
}

.summary-item:last-of-type { border-bottom: none; }
.summary-item .q { color: var(--gold-soft); font-weight: 800; }
.summary-item .n { color: var(--muted); font-size: .82rem; display: block; }

.error-text { color: var(--danger); font-size: .85rem; margin-top: .3rem; font-weight: 600; }

/* ===== صفحة النجاح ===== */
.success-box {
    max-width: 620px;
    margin: 3rem auto;
    text-align: center;
    background: var(--card);
    border: 1px solid var(--border-gold);
    border-radius: 20px;
    padding: 2.6rem 1.8rem;
    box-shadow: var(--shadow);
}

.success-box .check {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.3rem;
    border-radius: 50%;
    background: rgba(46, 158, 102, .1);
    border: 2px solid var(--green);
    color: var(--green);
    font-size: 2.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-box h1 { font-size: 1.6rem; font-weight: 900; margin-bottom: .4rem; }
.success-box p { color: var(--muted); margin-bottom: .4rem; }
.success-box .order-no { color: var(--gold-soft); font-weight: 900; font-size: 1.15rem; }

.success-details {
    text-align: right;
    background: var(--card-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.1rem 1.3rem;
    margin: 1.4rem 0;
}

.success-details .row { display: flex; justify-content: space-between; gap: 1rem; padding: .32rem 0; font-size: .95rem; }
.success-details .row span:first-child { color: var(--muted); flex-shrink: 0; }

/* ===== الفلاش ===== */
.flash {
    padding: .85rem 1.2rem;
    border-radius: 12px;
    margin: 1.1rem auto 0;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: .6rem;
}

.flash-success { background: rgba(46, 158, 102, .1); border: 1px solid rgba(46, 158, 102, .35); color: #1f7a4c; }
.flash-error { background: rgba(204, 68, 68, .08); border: 1px solid rgba(204, 68, 68, .3); color: #b23a3a; }

/* ===== حالة فارغة ===== */
.empty-state {
    text-align: center;
    padding: 4.5rem 1rem;
    color: var(--muted);
}

.empty-state .icon { font-size: 3.5rem; margin-bottom: 1rem; }
.empty-state h2 { color: var(--text); font-weight: 800; margin-bottom: .5rem; }

/* ===== الفوتر ===== */
footer {
    border-top: 1px solid var(--border);
    background: var(--bg-soft);
    padding: 2rem 0;
    margin-top: 2.5rem;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: .92rem;
}

.footer-inner .brand img { width: 40px; height: 40px; }

.footer-social {
    display: flex;
    align-items: center;
    gap: .7rem;
    flex-wrap: wrap;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: var(--text);
    font-weight: 700;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: .45rem 1rem;
    transition: border-color .2s, background .2s, transform .15s;
}

.footer-social a:hover {
    border-color: var(--gold);
    background: var(--card-2);
    transform: translateY(-2px);
}

.powered-by {
    flex-basis: 100%;
    text-align: center;
    color: var(--muted);
    font-size: .8rem;
    transition: color .2s;
}

.powered-by:hover { color: var(--gold); }

/* ===== الأدمن ===== */
.admin-layout { display: flex; min-height: 100vh; min-height: 100dvh; }

.sidebar {
    width: 250px;
    flex-shrink: 0;
    background: var(--card);
    border-inline-end: 1px solid var(--border);
    padding: 1.4rem 1rem;
    display: flex;
    flex-direction: column;
    gap: .3rem;
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100dvh;
}

.sidebar .brand { margin-bottom: 1.5rem; padding-inline: .6rem; font-size: 1.05rem; }
.sidebar .brand img { width: 42px; height: 42px; }

.sidebar a.nav-item {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .65rem 1rem;
    border-radius: 12px;
    color: var(--muted);
    font-weight: 700;
    transition: background .15s, color .15s;
}

.sidebar a.nav-item:hover { background: var(--card-2); color: var(--text); }
.sidebar a.nav-item.active { background: var(--yellow); color: var(--dark); }

.sidebar .logout { margin-top: auto; }

.admin-main { flex: 1; padding: 1.8rem 2rem; min-width: 0; background: var(--bg); }

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.6rem;
    flex-wrap: wrap;
}

.admin-header h1 { font-size: 1.45rem; font-weight: 900; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
    gap: 1.1rem;
    margin-bottom: 1.8rem;
}

.stat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.2rem 1.3rem;
    box-shadow: var(--shadow-soft);
}

.stat-card .label { color: var(--muted); font-size: .87rem; font-weight: 700; }
.stat-card .value { font-size: 1.65rem; font-weight: 900; color: var(--gold-soft); margin-top: .1rem; }
.stat-card .value small { font-size: .55em; }

/* جداول */
.table-wrap {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow-x: auto;
    box-shadow: var(--shadow-soft);
}

table { width: 100%; border-collapse: collapse; min-width: 640px; }

th, td { padding: .8rem 1rem; text-align: right; }

thead th {
    background: var(--card-2);
    color: var(--gold-soft);
    font-size: .85rem;
    font-weight: 800;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

tbody tr { border-bottom: 1px solid var(--border); transition: background .15s; }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--bg); }

td img.thumb {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--border-gold);
}

.badge {
    display: inline-block;
    padding: .18rem .8rem;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 800;
    white-space: nowrap;
}

.badge-new { background: rgba(245, 196, 0, .18); color: #8a6d00; border: 1px solid rgba(245, 196, 0, .5); }
.badge-preparing { background: rgba(59, 130, 246, .1); color: #2563ac; border: 1px solid rgba(59, 130, 246, .3); }
.badge-ready { background: rgba(46, 158, 102, .1); color: #1f7a4c; border: 1px solid rgba(46, 158, 102, .35); }
.badge-delivered { background: rgba(120, 120, 120, .1); color: #666; border: 1px solid rgba(120, 120, 120, .3); }
.badge-cancelled { background: rgba(204, 68, 68, .08); color: #b23a3a; border: 1px solid rgba(204, 68, 68, .3); }
.badge-muted { background: var(--bg-soft); color: var(--muted); border: 1px solid var(--border); }
.badge-gold { background: var(--card-2); color: var(--gold-soft); border: 1px solid var(--border-gold); }

.filter-tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.3rem; }

.filter-tabs a {
    padding: .35rem 1.05rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--muted);
    font-size: .9rem;
    font-weight: 700;
    transition: all .15s;
}

.filter-tabs a:hover { border-color: var(--border-gold); color: var(--text); }
.filter-tabs a.active { background: var(--dark); color: var(--yellow); border-color: var(--dark); }

/* صفحة تسجيل الدخول */
.login-wrap {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background:
        radial-gradient(ellipse 60% 50% at 50% -10%, rgba(255, 217, 15, .3), transparent),
        var(--bg-soft);
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: var(--card);
    border: 1px solid var(--border-gold);
    border-radius: 20px;
    padding: 2.4rem 2rem;
    box-shadow: var(--shadow);
    text-align: center;
}

.login-card img { width: 86px; height: 86px; margin: 0 auto 1rem; border-radius: 50%; border: 2px solid var(--dark); box-shadow: 0 0 0 5px var(--yellow); }
.login-card h1 { font-size: 1.35rem; font-weight: 900; margin-bottom: .3rem; }
.login-card p { color: var(--muted); font-size: .92rem; margin-bottom: 1.5rem; }
.login-card form { text-align: right; }

/* صفحة تفاصيل الطلب */
.order-detail-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 1.5rem;
    align-items: start;
}

.order-side { display: flex; flex-direction: column; gap: 1.5rem; }

@media (max-width: 900px) {
    .order-detail-grid { grid-template-columns: 1fr; }
}

/* أزرار الترقيم */
.pagination-links { margin-top: 1.5rem; }
.pagination-links nav { display: flex; justify-content: center; }

/* ===== ريسبونسف ===== */
@media (max-width: 900px) {
    .product-page, .cart-layout, .checkout-layout { grid-template-columns: 1fr; gap: 1.5rem; }
    .product-page .photo, .cart-summary { position: static; }
    .form-grid { grid-template-columns: 1fr; }
    .sidebar { width: 210px; }
}

@media (max-width: 640px) {
    .container { width: 94%; }

    /* ناف بار مضغوط */
    .navbar-inner { padding: .5rem 0; }
    .brand { font-size: 1rem; gap: .5rem; }
    .brand img { width: 40px; height: 40px; border-width: 1.5px; box-shadow: 0 0 0 2.5px var(--yellow); }
    .nav-links { gap: .8rem; font-size: .9rem; }
    .cart-btn { font-size: .9rem; }

    /* هيرو أصغر */
    .hero { padding: 2.4rem 0 2.2rem; }
    .hero img.hero-logo { width: 92px; height: 92px; box-shadow: 0 0 0 4px var(--yellow), 0 10px 24px rgba(90, 70, 20, .2); }
    .hero p { font-size: .97rem; margin-bottom: 1.3rem; }
    .btn { padding: .72rem 1.8rem; font-size: .95rem; }

    .section { padding: 2.2rem 0; }
    .section-title { margin-bottom: 1.5rem; }

    /* كرتين في الصف على الموبايل */
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: .8rem; }
    .product-card .body { padding: .75rem .8rem .9rem; gap: .35rem; }
    .product-card h3 { font-size: .92rem; line-height: 1.4; }
    .product-card .weight { font-size: .78rem; }
    .price { font-size: 1rem; }
    .product-card .foot .btn { display: none; } /* الكرت كله قابل للضغط */

    /* صفحة المنتج */
    .product-page { padding-top: 1.4rem; }
    .qty-stepper button { width: 50px; height: 50px; }

    /* السلة */
    .cart-item { grid-template-columns: 68px 1fr; padding: .8rem; }
    .cart-item img { width: 68px; height: 68px; }
    .cart-item .side { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }

    .panel { padding: 1.2rem 1rem; }

    .success-box { margin: 1.5rem auto; padding: 2rem 1.2rem; }

    .footer-inner { flex-direction: column; text-align: center; gap: .6rem; }
    .footer-social { justify-content: center; margin-top: .4rem; }

    /* الأدمن على الموبايل */
    .admin-layout { flex-direction: column; }
    .sidebar {
        width: 100%;
        height: auto;
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: .4rem;
        padding: .8rem;
        border-inline-end: none;
        border-bottom: 1px solid var(--border);
    }
    .sidebar .brand { margin-bottom: 0; font-size: .95rem; }
    .sidebar a.nav-item { padding: .45rem .8rem; font-size: .88rem; }
    .sidebar .logout { margin-top: 0; margin-inline-start: auto; }
    .admin-main { padding: 1.2rem .9rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: .7rem; }
    .stat-card { padding: .9rem 1rem; }
    .stat-card .value { font-size: 1.35rem; }
}

@media (max-width: 380px) {
    .products-grid { grid-template-columns: 1fr; }
}
