﻿/********************************* GOOGLE FONTS *************************/
@import url('https://fonts.googleapis.com/css2?family=Harmattan:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Beiruti:wght@200..900&display=swap');

/********************************* VARIABLES CSS *************************/
:root {
    /*-------User-Defined-colors-----*/
    --hue-bg: 40;
    --hue-btn: 200;
    --hue-font: 22;
    /*-------Apply-User-Defined-colors-----*/
    /*Color mode HSL(hue,saturation,lightness)*/
    --bg-color: hsl(var(--hue-bg), 33%,95%);
    --title-color: hsl(var(--hue-font), 14%,30%);
    --text-color: hsl(var(--hue-font),10%,45%);
    --btn-color: hsl(var(--hue-btn),70%,55%);
    --shadow-color: hsl(var(--hue-btn),70%,55%,0.4);
    --btn-hover: hsl(var(--hue-btn),70%,60%);
    --light-bg-btn: hsl(var(--hue-btn) 83% 95% / 1);
    /*-------Font-and-Typography-----*/
    /*2rem = 38px | 1rem = 16px*/
    --title-font: Beiruti;
    --text-font: Harmattan;
    --title-font-size: 2.5rem;
    --text-font-size: 0.8rem;
    /*-------Font-Weight-----*/
    --title-bold: 700;
    --text-bold: 600;
}
/********************************* Base *************************/

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html {
    position: relative;
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--text-font);
    direction: rtl;
    background-color: var(--bg-color);
    color: var(--font-color);
    border-color: var(--btn-color);
    transition: background 0.3s, color 0.3s;
}

h1, h2, h3, h4 {
    font-family: var(--title-font);
}

a {
    text-decoration: none;
    color: inherit;
}
/********************************* Utilities *************************/
.section {
    padding-block: 10rem 1rem;
    /*    background-color: lightpink;*/
}

.main-container {
    max-width: 1120px;
    margin-inline: auto;
    padding-inline: 1.5rem;
    /*    background-color: blue;*/
}

.glass-card {
    overflow: hidden;
    border-radius: calc(1rem + 8px);
    background: hsl(40 30% 99% / .7);
    backdrop-filter: blur(10px);
    border: 1px solid hsl(0 0% 100% / .5);
    box-shadow: 0 8px 32px hsl(25 15% 15% / .08), inset 0 1px #fff3;
}

.glass-section {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    min-height: 100vh;
    background: hsl(40 30% 10% / 30%);
    backdrop-filter: blur(5px);
}
/********************************* NAVBAR *************************/
.navbar {
    display: flex;
    position: fixed;
    top: 60px;
    left: 5%;
    width: 90%;
    min-height: 1vh;
    justify-content: space-around;
    padding-inline: 1.5rem;
    z-index: 100;
    transition: top 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

    .navbar.scrolled {
        top: 10px;
    }

/* logo */
.logo-container {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo-img {
    width: 3rem;
    aspect-ratio: 1/1;
    border-radius: 50%;
}

.navbar a.logo-text {
    font-family: var(--title-font);
    font-size: var(--title-font-size);
    font-weight: var(--text-bold);
    color: var(--title-color);
}
/* الحاوية الأساسية */
.marquee {
    overflow: hidden;
    white-space: nowrap;
    padding: 5px 0;
    background: var(--light-bg-btn, #007bff);
    direction: ltr;
    position: relative;
    width: 100%;
    border-bottom: 1px solid var(--btn-color);
}

/* التراك اللي بيتحرك */
.marquee-track {
    display: flex;
    width: max-content;
    will-change: transform; /* تحسين الأداء */
}


.marquee-item {
    display: flex;
    align-items: center;
    color: var(--btn-color);
    font-size: 1.3rem;
    font-weight: 800;
    padding: 0 40px;
    white-space: nowrap;
}

    /* الفاصل */
    .marquee-item::after {
        content: ""; /* نقطة كفاصل */
        margin-left: 80px;
        color: rgba(255, 255, 255, 0.5);
        font-size: 1.5rem;
    }

/* تعريف الحركة */
@keyframes marqueeScroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
    /* بنتحرك لنص المسافة بالضبط */
}
/* توقف عند الهوفر */
.marquee:hover .marquee-track {
    animation-play-state: paused;
}

.cart-btn {
    border: none;
    outline: none;
    background-color: transparent;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

    .cart-btn:hover {
        background-color: hsl(35 15% 88%);
    }
/********************************* Menu Title *************************/
.menu-title {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.menu-subtitle {
    color: var(--btn-color);
    font-size: 1.5rem;
}

.menu-main-title {
    font-family: var(--title-font);
    font-size: 3.5rem;
    font-weight: var(--title-bold);
    color: var(--title-color);
}

.menu-view {
    display: flex;
    justify-content: center;
    gap: 0.7rem;
    max-width: 280px;
    background-color: white;
    border-radius: 100px;
    margin: 0 auto;
    padding: 0.2em;
}

.Grid-view, .list-view {
    border: none;
    background-color: transparent;
    color: var(--text-color);
    padding: 0.3em 1em;
}

.list-view-text,
.Grid-view-text {
    font-weight: var(--text-bold);
}

.active-view {
    border-radius: 100px;
    background-color: var(--btn-color);
    color: white;
}
/********************************* Grid Card *************************/
.cards-container {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
}

.card-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
    width: 32%;
    transition: all 0.5s ease;
}

.items-amount {
    position: absolute;
    top: 16px;
    right: 16px;
    cursor: pointer;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    backdrop-filter: blur(50px);
    font-weight: var(--text-bold);
    background: hsl(40 30% 99% / 83%);
}

.img-card {
    object-fit: cover;
    width: 100%;
    height: 200px;
    border-radius: 1rem 1rem 0 0;
    object-position: center;
    transition: all 0.8s ease;
}

.img-placeholder {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.img-card:hover {
    transform: scale(1.1);
}

.body-card {
    padding: 1.5em;
    max-width: 100%;
    height: 150px;
}

.title-card-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.title-card {
    font-family: var(--title-font);
    font-size: 1.8rem;
    font-weight: var(--title-bold);
    color: var(--title-color);
}

.card-arrow {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    color: var(--title-color);
    cursor: pointer;
    background-color: #f3f1ed;
    width: 1.5rem;
    aspect-ratio: 1/1;
    border-radius: 50%;
    transition: all 0.5s ease;
}

    .card-arrow:hover {
        background-color: var(--btn-color);
        color: white;
        transform: translateX(-0.5rem);
    }

.description-card {
    /**/
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: var(--text-font-size);
    color: var(--text-color);
    text-align: justify;
}

.card-wrapper:hover .title-card {
    color: var(--btn-color);
}

.card-wrapper:hover .card-arrow {
    color: white;
    background-color: var(--btn-color);
}
/********************************* FOOTER ********************/
.site-footer {
    width: 90%;
    margin-right: 5%;
    background: hsl(0 0% 100% / .85);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border-top: 1px solid hsl(0 0% 0% / .06);
    box-shadow: 0 -2px 16px hsl(25 15% 15% / .05);
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 18px 32px;
    max-width: 1120px;
    margin-inline: auto;
    direction: rtl;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-info-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
    font-size: var(--text-font-size);
    font-weight: var(--text-bold);
    text-decoration: none;
    transition: color .2s;
    white-space: nowrap;
}

a.footer-info-link:hover {
    color: var(--btn-color);
}

.footer-icon {
    color: var(--btn-color);
    font-size: .85rem;
    flex-shrink: 0;
}


.footer-col-address .footer-info-link {
    white-space: normal;
    text-align: center;
    justify-content: center;
}


.footer-col-copy {
    align-items: flex-end;
    text-align: left;
}

.footer-copy {
    font-size: var(--text-font-size);
    color: var(--text-color);
    font-weight: 500;
    opacity: .7;
}

.footer-powered {
    font-size: var(--text-font-size);
    color: var(--text-color);
    font-weight: 500;
    opacity: .7;
}

.footer-brand {
    color: var(--btn-color);
    font-weight: var(--text-bold);
}

@media screen and (max-width: 768px) {
    .footer-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 16px 20px;
        gap: 8px;
    }

    .footer-col-copy {
        align-items: center;
    }

    .footer-col-address .footer-info-link {
        justify-content: center;
    }
}

@media screen and (max-width: 576px) {
    .footer-inner {
        padding: 14px 16px;
    }

    .footer-info-link {
        font-size: .72rem;
    }
}
/********************************* Alert ********************/
.alert-body {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: hsl(40 30% 99% / 85%);
    min-width: 300px;
}

.alert-close-btn {
    position: absolute;
    top: 26px;
    right: 30px;
    cursor: pointer;
    font-size: 1.2rem;
}

.bi-check-circle-fill {
    font-size: 2rem;
}

.alert-title {
    font-family: var(--title-font);
    color: var(--title-color);
    text-align: center;
}

.alert-message {
    color: var(--text-color);
    text-align: center;
}

.Alert-btns {
    display: flex;
    width: 100%;
    gap: 4px;
}

.alert-btn {
    border: none;
    outline: none;
    width: 100%;
    padding: 0.6em 0.6em;
    border-radius: 35px;
    background-color: var(--btn-color);
    color: white;
    transition: transform 0.3s;
    transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
    cursor: pointer;
}

.alert-btn-No {
    border: none;
    outline: none;
    width: 100%;
    padding: 0.3em 0.6em;
    border-radius: 35px;
    background-color: hsl(35deg 5.69% 20.86% / 21%);
    color: var(--btn-color);
    transition: transform 0.3s;
    transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
    cursor: pointer;
}

.alert-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0px 8px 25px var( --shadow-color);
}

.alert-btn-No:hover {
    transform: translateY(-2px);
    box-shadow: 0px 8px 25px var( --bg-color);
}

.success {
    color: #22c55e;
    font-size: 40px;
}

.error {
    color: #ff5252c9;
    font-size: 40px;
}

.warning {
    color: #f59e0b;
    font-size: 40px;
}
/********************************* grid-items-container ********************/
.grid-items-body {
    position: absolute;
    top: 0;
    left: 0;
    background-color: hsl(40deg 19.25% 91.41% / 92%);
    border-radius: 0px 16px 16px 0px;
    height: 100%;
    max-width: 500px;
    z-index: 101;
    overflow-y: auto;
}

.grid-items-header {
    position: relative;
    width: 100%;
    height: 25%;
}

.grid-items-img {
    width: 500px;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 0px 16px 0px 0px;
}

.grid-items-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    border: none;
    outline: none;
    background-color: hsl(40deg 19.25% 91.41% / 79%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .grid-items-close-btn:hover {
        background-color: hsl(40deg 19.25% 91.41%);
    }

    .grid-items-close-btn .bi-x {
        font-size: 1.5rem;
    }

.grid-items-text-cantainer {
    position: absolute;
    bottom: 0;
    padding: 0 1em 0 1em;
    width: 100%;
    box-shadow: inset 0px -124px 20px 0px rgba(255, 252, 252, 1);
    backdrop-filter: blur(2px);
}

.grid-items-title {
    font-size: var(--title-font-size);
    color: var(--title-color);
    font-family: var(--title-font);
}

.grid-items-paragraph {
    font-size: var(--text-font);
    font-family: var(--text-font);
    color: var(--text-color);
}

.grid-items-list {
    padding: 1.2em;
    min-height: 75%;
    border-radius: 0px 0px 16px 0px;
}

.item-card {
    padding: 0.8em;
    margin-bottom: 0.5em;
}

.item-content {
    display: flex;
    width: 100%;
}

.item-img {
    border-radius: 20px;
    height: 70px;
    width: 70px;
}

.item-text-container {
    padding: 0.2em;
    margin-right: 0.5em;
}

.item-text {
    display: flex;
    justify-content: space-between;
}

.item-text-title {
    font-size: 1rem;
    color: var(--title-color);
    font-family: var(--title-font);
    font-weight: var(--text-bold);
}

.item-content-paragraph {
    font-size: 0.9rem;
    color: var(--text-color);
}

.item-text-price {
    color: var(--btn-color);
    font-weight: var(--text-bold);
}

.cart-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.add-to-cart-btn {
    border: none;
    outline: none;
    background-color: var(--btn-color);
    color: white;
    padding: 0.1em 1em;
    border-radius: 35px;
}

    .add-to-cart-btn:hover {
        background-color: var(--btn-hover);
    }

.add-to-cart-btn-text {
    margin-right: 0.5em;
}

.qty-container {
    padding: 0.5em 1.2em;
    background-color: hsl(0deg 0% 87.55% / 50%);
    border-radius: 35px;
}

.qty-num {
    margin: 0 0.5em;
}

.plus-btn, .minus-btn {
    border: none;
    outline: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.no-products {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.hide {
    display: none;
}
/********************************* lIST VIEW **************************/
.menu-section {
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    cursor: pointer;
}

.section-info {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.section-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f4a460 0%, #d2691e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    flex-shrink: 0;
}

.section-text h2 {
    font-size: 28px;
    color: #2c2c2c;
    margin-bottom: 4px;
    font-weight: 600;
}

.section-text p {
    font-size: 0.8rem;
    color: #666;
    font-family: Arial, sans-serif;
}

.section-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #999;
    font-size: 0.8rem;
}

.toggle-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.section-header.collapsed .toggle-icon {
    transform: rotate(180deg);
}

.menu-items {
    display: flex;
    flex-direction: column;
    gap: 0;
}

    .menu-items.hidden {
        display: none;
    }

.menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
    gap: 16px;
}

    .menu-item:last-child {
        border-bottom: none;
    }

.item-info {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.item-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: #f0f0f0;
}

.item-details {
    flex: 1;
    min-width: 0;
}

    .item-details h3 {
        font-size: 18px;
        color: #2c2c2c;
        margin-bottom: 4px;
        font-weight: 600;
    }

    .item-details p {
        font-size: 13px;
        color: #888;
        font-family: Arial, sans-serif;
        line-height: 1.4;
    }

.item-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.item-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--btn-color) !important;
    min-width: 70px;
    text-align: right;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #666;
    transition: all 0.2s ease;
}

    .quantity-btn:hover {
        background: #f5f5f5;
        border-color: var(--btn-color);
    }

.quantity-display {
    min-width: 30px;
    text-align: center;
    font-size: 16px;
    color: #2c2c2c;
}

.add-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--btn-color);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

    .add-btn:hover {
        background: var(--btn-hover);
        transform: scale(1.05);
    }

.footer-text {
    text-align: right;
    color: #ccc;
    font-size: 0.8rem;
    margin-top: 20px;
    padding-right: 24px;
}
/********************************* Login ***************************/
.login-page {
    background: var(--bg-color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.login-container {
    position: relative;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;
}

.back-Menu {
    position: absolute;
    top: -33px;
    left: 5px;
    color: hsl(25 10% 45%);
}

.login-container h2 {
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
    font-size: 28px;
}

.login-form-group {
    margin-bottom: 20px;
}

    .login-form-group label {
        display: block;
        margin-bottom: 8px;
        color: #555;
        font-weight: 500;
    }

    .login-form-group input[type="email"],
    .login-form-group input[type="password"] {
        width: 100%;
        padding: 12px 15px;
        border: 1px solid #ddd;
        border-radius: 5px;
        font-size: 15px;
        transition: border-color 0.3s;
    }

    .login-form-group input:focus {
        outline: none;
        border-color: #3498db;
    }

.login-password-wrapper {
    position: relative;
}

    .login-password-wrapper input {
        padding-left: 45px;
    }

.login-toggle-password {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #666;
    user-select: none;
}

    .login-toggle-password:hover {
        color: #3498db;
    }

.login-submit-btn {
    width: 100%;
    padding: 14px;
    background: var(--btn-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px;
}

    .login-submit-btn:hover {
        background-color: #2980b9;
    }

.login-register-link {
    text-align: center;
    margin-top: 20px;
    color: #666;
}

    .login-register-link a {
        color: #3498db;
        text-decoration: none;
    }

        .login-register-link a:hover {
            text-decoration: underline;
        }

.login-validation-error {
    list-style: none;
    color: #e74c3c;
    font-size: 13px;
}

.login-external-login {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

    .login-external-login h3 {
        color: #2c3e50;
        font-size: 18px;
        margin-bottom: 15px;
        text-align: center;
    }

.login-external-btn {
    width: 100%;
    padding: 12px;
    background-color: white;
    color: #555;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 10px;
}

    .login-external-btn:hover {
        background-color: #f8f9fa;
        border-color: #3498db;
    }

.loginBtn {
    box-sizing: border-box;
    position: relative;
    /* width: 13em;  - apply for fixed size */
    margin: 0.2em;
    padding: 0 15px 0 46px;
    border: none;
    text-align: left;
    line-height: 34px;
    white-space: nowrap;
    border-radius: 0.2em;
    font-size: 16px;
    color: #FFF;
}

    .loginBtn:before {
        content: "";
        box-sizing: border-box;
        position: absolute;
        top: 0;
        left: 0;
        width: 34px;
        height: 100%;
    }

    .loginBtn:focus {
        outline: none;
    }

    .loginBtn:active {
        box-shadow: inset 0 0 0 32px rgba(0,0,0,0.1);
    }


/* Facebook */
.loginBtn--facebook {
    background-color: #4C69BA;
    background-image: linear-gradient(#4C69BA, #3B55A0);
    /*font-family: "Helvetica neue", Helvetica Neue, Helvetica, Arial, sans-serif;*/
    text-shadow: 0 -1px 0 #354C8C;
}

    .loginBtn--facebook:before {
        border-right: #364e92 1px solid;
        background: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/14082/icon_facebook.png') 6px 6px no-repeat;
    }

    .loginBtn--facebook:hover,
    .loginBtn--facebook:focus {
        background-color: #5B7BD5;
        background-image: linear-gradient(#5B7BD5, #4864B1);
    }


/* Google */
.loginBtn--google {
    /*font-family: "Roboto", Roboto, arial, sans-serif;*/
    background: #DD4B39;
}

    .loginBtn--google:before {
        border-right: #BB3F30 1px solid;
        background: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/14082/icon_google.png') 6px 6px no-repeat;
    }

    .loginBtn--google:hover,
    .loginBtn--google:focus {
        background: #E74B37;
    }
/********************************* Cart ********************/
.badge-count {
    background-color: var(--btn-color);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    position: absolute;
    top: 16px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-container-sidebar {
    background: var(--bg-color);
    border-radius: 20px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid #f0f0f0;
}

.cart-title-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-icon {
    width: 40px;
    height: 40px;
    background: hsl(35 15% 88%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--btn-color);
}

.cart-title-text h2 {
    font-size: 22px;
    font-weight: 600;
    color: var(--title-color);
    font-family: var(--title-font);
}

.cart-title-text p {
    font-size: 0.8rem;
    color: var(--text-color);
    margin-top: 2px;
}

.close-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: hsl(35 15% 88%);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #666;
    transition: all 0.3s;
}

    .close-btn:hover {
        background: #e5e5e5;
    }

.cart-items {
    padding: 16px 24px;
    flex-grow: 1;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #fafafa;
    border-radius: 16px;
    margin-bottom: 12px;
    transition: all 0.3s;
}

    .cart-item:hover {
        background: #f5f5f5;
    }

.item-image {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
}

.item-details {
    flex: 1;
}

.item-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--title-color);
    margin-bottom: 8px;
    margin-right: 20px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.quantity-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #666;
    transition: all 0.3s;
}

    .quantity-btn:hover {
        border-color: var(--btn-color);
        color: var(--btn-color);
    }

    .quantity-btn:active {
        transform: scale(0.95);
    }

.quantity-display {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
    color: #333;
}

.delete-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    transition: all 0.3s;
}

    .delete-btn:hover {
        color: #ff4444;
    }

.cart-summary {
    padding: 20px 24px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 15px;
}

    .summary-row.total {
        font-size: 18px;
        font-weight: 700;
        padding-top: 12px;
        border-top: 1px solid #f0f0f0;
        margin-top: 12px;
    }

        .summary-row.total .value {
            color: var(--btn-color);
        }

.checkout-btn {
    width: 100%;
    padding: 16px;
    background: var(--btn-color);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 16px;
    transition: all 0.3s;
}

    .checkout-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(255, 154, 158, 0.4);
    }

    .checkout-btn:active {
        transform: translateY(0);
    }

.clear-cart-btn {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: none;
    color: #999;
    font-size: 0.8rem;
    cursor: pointer;
    margin-top: 12px;
    transition: all 0.3s;
}

    .clear-cart-btn:hover {
        color: #ff4444;
    }

/* Scrollbar styling */
.cart-items::-webkit-scrollbar {
    width: 6px;
}

.cart-items::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 10px;
}

.cart-items::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 10px;
}

    .cart-items::-webkit-scrollbar-thumb:hover {
        background: #ccc;
    }
/*********************************  ADMIN DASHBOARD ********************/
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
/* NAVBAR */
.navbar-admin {
    background: #FFFFFF;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    transition: background 0.3s, border-color 0.3s;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.admin-back-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6B6560;
    font-size: 15px;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 10px;
    cursor: pointer;
    border: none;
    background: none;
    transition: background 0.2s;
}

    .admin-back-btn:hover {
        background: #F5F4F0;
    }

    .admin-back-btn svg {
        transform: scaleX(-1);
    }

.navbar-title {
    font-size: 1.5rem;
    font-family: var(--title-font);
    color: var(--title-color);
    font-weight: 800;
}

.admin-logout {
    background: var(--btn-color);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    padding: 6px 18px;
    border-radius: 10px;
    border: none;
    outline: none;
    transition: background 0.3s;
    cursor: pointer;
    transition: all 0.22s;
}

    .admin-logout:hover {
        transform: translateY(1px);
    }
/* MAIN */
.main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 28px 20px 60px;
}

/* TABS */
.tabs-wrapper {
    display: inline-flex;
    align-items: center;
    background: #FFFFFF;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 10px;
    padding: 4px;
    gap: 2px;
    margin-bottom: 24px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    flex-wrap: nowrap
}

.tab {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 18px;
    border-radius: 10px;
    font-family: var(--title-font);
    font-size: var(--text-font-size);
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.22s;
    white-space: nowrap;
    flex-shrink: 0;
}

    .tab.active {
        background: var(--btn-color);
        color: #fff;
        box-shadow: 0 2px 10px rgba(212,98,42,0.13);
    }

    .tab.inactive {
        background: transparent;
        color: #6B6560;
    }

        .tab.inactive:hover {
            background: var(--light-bg-btn);
            color: var(--btn-color);
        }

    .tab svg {
        flex-shrink: 0;
    }

/* STATS */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 14px;
    margin-bottom: 24px;
}

.stat-card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 20px 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s, background 0.3s;
    animation: fadeUp 0.5s ease both;
}

    .stat-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 14px rgba(0,0,0,0.09);
    }

    .stat-card:nth-child(1) {
        animation-delay: .05s
    }

    .stat-card:nth-child(2) {
        animation-delay: .10s
    }

    .stat-card:nth-child(3) {
        animation-delay: .15s
    }

    .stat-card:nth-child(4) {
        animation-delay: .20s
    }

.stat-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--light-bg-btn);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.3s;
}

    .stat-icon svg {
        color: var(--btn-color);
        transition: color 0.3s;
    }

.stat-label {
    font-size: var(--text-font-size);
    color: #6B6560;
    font-weight: 500;
    margin-bottom: 4px;
    font-family: var(--title-font);
}

.stat-value {
    font-family: var(--title-font);
    font-size: 1rem;
    font-weight: 800;
    color: #1A1714;
    letter-spacing: -0.5px;
    line-height: 1;
}

/* ORDERS PANEL */
.orders-panel {
    background: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.08);
    overflow: hidden;
    animation: fadeUp 0.5s ease 0.25s both;
    transition: background 0.3s;
}

/* Filter Bar */
.filter-bar {
    padding: 18px 20px 0;
    display: flex;
    gap: 12px;
    align-items: center;
}

.search-wrap {
    flex: 1;
    position: relative;
}

    .search-wrap svg {
        position: absolute;
        right: 14px;
        top: 50%;
        transform: translateY(-50%);
        color: #9E9893;
        pointer-events: none;
    }

.search-input {
    width: 100%;
    padding: 10px 42px 10px 16px;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 10px;
    font-family: 'Cairo', 'Tajawal', sans-serif;
    font-size: 13.5px;
    color: #1A1714;
    background: #F5F4F0;
    outline: none;
    direction: rtl;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.3s;
}

    .search-input:focus {
        border-color: var(--btn-color);
        box-shadow: 0 0 0 3px rgba(212,98,42,0.13);
        background: #FFFFFF;
    }

    .search-input::placeholder {
        color: #9E9893;
    }

.date-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 10px;
    padding: 10px 14px;
    background: #F5F4F0;
    min-width: 165px;
    transition: border-color 0.2s, background 0.3s;
}

    .date-wrap:hover {
        border-color: var(--btn-color);
    }

    .date-wrap svg {
        color: #9E9893;
        flex-shrink: 0;
    }

.date-input {
    border: none;
    background: transparent;
    font-family: 'Cairo', 'Tajawal', sans-serif;
    font-size: 13px;
    color: #9E9893;
    outline: none;
    width: 100%;
}

.refresh-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #F5F4F0;
    border: 1px solid rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #9E9893;
    transition: all 0.2s;
    flex-shrink: 0;
}

    .refresh-btn:hover {
        background: var(--light-bg-btn);
        color: var(--btn-color);
        border-color: rgba(212,98,42,0.2);
    }

/* Chips */
.status-chips {
    display: flex;
    gap: 8px;
    padding: 14px 20px 16px;
    flex-wrap: wrap;
}

.chip {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: 10px;
    font-family: 'Cairo', 'Tajawal', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.18s;
}

    .chip.active {
        background: var(--btn-color);
        color: #fff;
    }

    .chip.inactive {
        background: #F5F4F0;
        color: #6B6560;
        border: 1px solid rgba(0,0,0,0.08);
    }

        .chip.inactive:hover {
            background: var(--light-bg-btn);
            color: var(--btn-color);
        }

.chip-count {
    font-size: 11.5px;
    font-weight: 700;
    opacity: 0.8;
}

.divider {
    height: 1px;
    background: rgba(0,0,0,0.08);
}

/* Order Item */
.order-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    cursor: pointer;
    transition: background 0.15s;
    gap: 14px;
    animation: fadeUp 0.4s ease both;
}

    .order-item:hover {
        background: rgba(0,0,0,0.018);
    }

    .order-item.expanded {
        background: rgba(0,0,0,0.018);
    }

.order-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dot-confirmed {
    background: var(--btn-color);
}

.dot-unconfirmed {
    background: #C0BDB8;
}

.order-meta {
    flex: 1;
    min-width: 0;
}

.order-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.order-email {
    font-size: 17px;
    font-weight: 700;
    color: #1A1714;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.badge {
    font-size: 11.5px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 10px;
    white-space: nowrap;
}

.badge-unconfirmed {
    background: #dddddd;
    color: #444039;
}

.badge-confirmed {
    background: var(--light-bg-btn);
    color: var(--btn-color);
}

.order-sub {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #9E9893;
}

    .order-sub span {
        display: flex;
        align-items: center;
        gap: 4px;
    }

.order-id {
    font-family: monospace;
    letter-spacing: 0.5px;
}

.order-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.order-price {
    font-size: var(--text-font-size);
    font-weight: 800;
    color: var(--btn-color);
    letter-spacing: -0.3px;
}

.order-qty {
    font-size: 11.5px;
    color: #9E9893;
    font-weight: 500;
    margin-top: 2px;
}

.chevron-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: #F5F4F0;
    border: 1px solid rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9E9893;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

    .chevron-btn svg {
        transition: transform 0.3s ease;
    }

    .chevron-btn:hover {
        background: var(--light-bg-btn);
        color: var(--btn-color);
    }

    .chevron-btn.open svg {
        transform: rotate(180deg);
    }

/* ORDER DETAIL EXPANDED */
.order-detail {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.42s cubic-bezier(0.4,0,0.2,1), opacity 0.3s ease;
    opacity: 0;
    background: #F5F4F0;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

    .order-detail.open {
        max-height: 800px;
        opacity: 1;
    }

.detail-body {
    padding: 16px 20px 18px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.detail-section {
    background: #FFFFFF;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.08);
    overflow: hidden;
    transition: background 0.3s;
}

.detail-section-title {
    padding: 9px 14px;
    background: #F5F4F0;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    font-size: 10.5px;
    font-weight: 800;
    color: #9E9893;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: background 0.3s;
}

.item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 14px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

    .item-row:last-child {
        border-bottom: none;
    }

/*.item-name {
    font-size: 13.5px;
    font-weight: 600;
    color: #1A1714;
}*/

.item-qty {
    font-size: 16px;
    color: #9E9893;
    margin-top: 2px;
}


.detail-info-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 9px 14px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    gap: 10px;
}

    .detail-info-row:last-child {
        border-bottom: none;
    }

.detail-info-label {
    font-size: var(--text-font-size);
    color: #9E9893;
    font-weight: 500;
    flex-shrink: 0;
}

.detail-info-value {
    font-size: var(--text-font-size);
    color: #1A1714;
    font-weight: 600;
    text-align: left;
}

.notes-label {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px 4px;
    font-size: 12px;
    color: #9E9893;
    font-weight: 600;
}

.notes-box {
    margin: 0 14px 12px;
    padding: 9px 12px;
    background: #F5F4F0;
    border-radius: 8px;
    font-size: 13px;
    color: #6B6560;
    font-weight: 500;
    border: 1px solid rgba(0,0,0,0.08);
    transition: background 0.3s;
}

.update-status-section {
    grid-column: 1 / -1;
}

.status-update-btns {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 12px 14px;
}

.status-update-btn {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 7px 18px;
    border-radius: 10px;
    cursor: pointer;
    border: 1.5px solid rgba(0,0,0,0.08);
    background: transparent;
    color: #6B6560;
    transition: all 0.2s;
}

    .status-update-btn:hover {
        border-color: var(--btn-color);
        color: var(--btn-color);
        background: var(--light-bg-btn);
    }

    .status-update-btn.current-status {
        border-color: var(--btn-color);
        background: var(--btn-color);
        color: var(--bg-color);
        font-weight: 700;
    }

/* Footer */
.orders-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-top: 1px solid rgba(0,0,0,0.08);
    background: rgba(0,0,0,0.015);
}

.footer-info {
    font-size: 13px;
    color: #9E9893;
    font-weight: 500;
}

.footer-total {
    font-size: 0.5rem;
    font-weight: 800;
}

    .footer-total span {
        color: var(--bg-color);
        margin-right: 4px;
        transition: color 0.3s;
    }

/* ════ THEME PANEL ════ */
.theme-panel {
    background: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.08);
    overflow: hidden;
    display: none;
    transition: background 0.3s;
}

    .theme-panel.active {
        display: block;
        animation: fadeUp 0.4s ease both;
    }

.theme-section {
    padding: 24px 26px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

    .theme-section:last-child {
        border-bottom: none;
    }

.theme-section-title {
    font-size: 15px;
    font-weight: 800;
    color: #1A1714;
    margin-bottom: 5px;
}

.theme-section-desc {
    font-size: 13px;
    color: #9E9893;
    margin-bottom: 18px;
}

/* Color swatches */
.color-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.color-swatch {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: transform 0.15s, border-color 0.2s;
    position: relative;
}

    .color-swatch:hover {
        transform: scale(1.12);
    }

    .color-swatch.selected {
        border-color: #1A1714;
    }

        .color-swatch.selected::after {
            content: '✓';
            position: absolute;
            inset: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #fff;
            font-size: 17px;
            font-weight: 800;
            text-shadow: 0 1px 4px rgba(0,0,0,0.5);
        }

.custom-color-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}

.custom-color-label {
    font-size: 13px;
    color: #6B6560;
    font-weight: 500;
}

.custom-color-input {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.08);
    cursor: pointer;
    padding: 3px;
    background: none;
}

/* Preview */
.theme-preview {
    background: #F5F4F0;
    border-radius: 10px;
    padding: 16px;
    border: 1px solid rgba(0,0,0,0.08);
    margin-top: 16px;
    transition: background 0.3s;
}

.preview-title {
    font-size: 11px;
    font-weight: 700;
    color: #9E9893;
    letter-spacing: 1.2px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.preview-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.preview-btn-primary {
    background: #D4622A;
    color: #fff;
    padding: 8px 18px;
    border-radius: 10px;
    font-family: 'Cairo', 'Tajawal', sans-serif;
    font-size: 13px;
    font-weight: 700;
    border: none;
    transition: background 0.3s;
}

.preview-btn-outline {
    background: transparent;
    color: #D4622A;
    padding: 8px 18px;
    border-radius: 10px;
    font-family: 'Cairo', 'Tajawal', sans-serif;
    font-size: 13px;
    font-weight: 700;
    border: 2px solid #D4622A;
    transition: all 0.3s;
}

.preview-badge-sample {
    background: #FDF0EA;
    color: #D4622A;
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    transition: all 0.3s;
}

/* Font options */
.font-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.font-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-radius: 10px;
    border: 2px solid rgba(0,0,0,0.08);
    cursor: pointer;
    transition: all 0.2s;
    background: #F5F4F0;
}

    .font-option:hover {
        border-color: #D4622A;
        background: #FDF0EA;
    }

    .font-option.selected {
        border-color: #D4622A;
        background: #FDF0EA;
    }

.font-option-name {
    font-size: 15px;
    font-weight: 700;
    color: #1A1714;
}

.font-option-preview {
    font-size: 13px;
    color: #9E9893;
    margin-top: 2px;
}

.font-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #D4622A;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s, background 0.3s;
    flex-shrink: 0;
}

.font-option.selected .font-check {
    opacity: 1;
}

/* Dark mode toggle */
.toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
}

.toggle-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #1A1714;
}

.toggle-desc {
    font-size: 12.5px;
    color: #9E9893;
    margin-top: 2px;
}

.toggle-switch {
    width: 52px;
    height: 28px;
    border-radius: 100px;
    background: rgba(0,0,0,0.08);
    cursor: pointer;
    position: relative;
    transition: background 0.3s;
    flex-shrink: 0;
    border: none;
}

    .toggle-switch.on {
        background: #D4622A;
    }

    .toggle-switch::after {
        content: '';
        position: absolute;
        width: 22px;
        height: 22px;
        border-radius: 50%;
        background: #fff;
        top: 3px;
        right: 3px;
        transition: left 0.3s, right 0.3s;
        box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    }

    .toggle-switch.on::after {
        right: auto;
        left: 3px;
    }

/* PRODUCT PANEL */
.product-panel {
    background: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.08);
    overflow: hidden;
    display: none;
    transition: background 0.3s;
}

    .product-panel.active {
        display: block;
        animation: fadeUp 0.4s ease both;
    }

.product-panel-header {
    padding: 22px 26px 0;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    padding-bottom: 18px;
}

.product-panel-title {
    font-size: 16px;
    font-weight: 800;
    color: #1A1714;
    margin-bottom: 4px;
}

.product-panel-desc {
    font-size: 13px;
    color: #9E9893;
}

.product-form {
    padding: 24px 26px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

    .form-row.single {
        grid-template-columns: 1fr;
    }

    .form-row.triple {
        grid-template-columns: 1fr 1fr 1fr;
    }

.form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.form-label {
    font-size: 13px;
    font-weight: 700;
    color: #6B6560;
    display: flex;
    align-items: center;
    gap: 5px;
}

    .form-label .req {
        color: #D4622A;
        font-size: 0.8rem;
    }

.form-input, .form-select, .form-textarea {
    font-size: var(--text-font-size);
    color: #1A1714;
    background: #F5F4F0;
    border: 1.5px solid rgba(0,0,0,0.08);
    border-radius: 10px;
    outline: none;
    direction: rtl;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.3s;
    width: 100%;
}

.form-input {
    padding: 10px 14px;
}

.form-select {
    padding: 10px 14px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239E9893' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 12px center;
    padding-left: 32px;
}

.form-textarea {
    padding: 10px 14px;
    resize: vertical;
    min-height: 90px;
    line-height: 1.6;
}

    .form-input:focus, .form-select:focus, .form-textarea:focus {
        border-color: var(--bg-color);
        box-shadow: 0 0 0 3px var(--shadow-color);
        background: #FFFFFF;
    }

    .form-input::placeholder, .form-textarea::placeholder {
        color: #9E9893;
    }

/* Image upload */
.upload-zone, .upload-zone-update {
    border: 2px dashed var(--btn-color);
    border-radius: 10px;
    padding: 28px 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    background: #F5F4F0;
    position: relative;
    overflow: hidden;
}

    .upload-zone:hover, .upload-zone-update:hover {
        border-color: var(--btn-color);
        background: var(--light-bg-btn);
    }

    .upload-zone.has-image,
    .upload-zone-update.has-image {
        border-style: solid;
        border-color: var(--btn-color);
    }

        /* لإظهار الصورة بشكل صحيح داخل المنطقة عند وجودها */
        .upload-zone.has-image #uploadPreview,
        .upload-zone-update.has-image #uploadPreview {
            width: 100%;
            height: 100%;
            object-fit: contain;
            position: absolute;
            top: 0;
            left: 0;
            z-index: 5;
        }

    .upload-zone input[type=file] {
        position: absolute;
        inset: 0;
        opacity: 0;
        cursor: pointer;
        width: 100%;
        height: 100%;
    }

    .upload-zone-update input[type="file"] {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        cursor: pointer;
        z-index: 10;
    }


.upload-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--light-bg-btn);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
}

    .upload-icon svg {
        color: var(--btn-color);
    }

.upload-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #1A1714;
    margin-bottom: 4px;
}

.upload-sub {
    font-size: 12px;
    color: #9E9893;
}

.upload-preview {
    width: 100%;
    max-height: 160px;
    object-fit: cover;
    border-radius: 8px;
    display: none;
}

.upload-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none; /* عشان الضغطة تعدي للـ input اللي تحته */
}

/* Price input with currency */
.price-input-wrap {
    position: relative;
}

.price-currency {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    font-weight: 700;
    color: #9E9893;
    pointer-events: none;
}

.price-input-wrap .form-input {
    padding-left: 36px;
}

/* Toggle availability */
.availability-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: #F5F4F0;
    border-radius: 10px;
    border: 1.5px solid rgba(0,0,0,0.08);
}

.availability-info .avail-label {
    font-size: 13.5px;
    font-weight: 700;
    color: #1A1714;
}

.availability-info .avail-desc {
    font-size: 12px;
    color: #9E9893;
    margin-top: 2px;
}

/* Form actions */
.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
    padding: 0 26px 26px;
}

.btn-submit {
    font-size: 0.8rem;
    font-weight: 700;
    padding: 11px 28px;
    border-radius: 10px;
    background: var(--btn-color);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(212,98,42,0.13);
}

    .btn-submit:hover {
        opacity: 0.9;
        transform: translateY(-1px);
    }

    .btn-submit:active {
        transform: translateY(0);
    }

.btn-cancel {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 11px 22px;
    border-radius: 10px;
    background: transparent;
    color: #6B6560;
    border: 1.5px solid rgba(0,0,0,0.08);
    cursor: pointer;
    transition: all 0.2s;
}

    .btn-cancel:hover {
        background: #F5F4F0;
        color: #1A1714;
    }

/* Success toast */
.toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: #1A1714;
    color: #fff;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.09);
    z-index: 999;
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1), opacity 0.3s;
    opacity: 0;
}

    .toast.show {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }


/* ANIMATIONS */
@@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/********************************* CHECKOUT ********************/
.checkout-container {
    position: relative;
    width: 100%;
    max-width: 560px;
    padding: 0.5em;
}

.checkout-back-Menu {
    text-decoration: none;
    color: var(--text-color);
    position: absolute;
    top: 0;
    left: 0;
    font-size: 0.8rem;
}

    .checkout-back-Menu:hover {
        color: var(--title-color);
    }

.checkout-title {
    font-family: var(--title-font);
    font-size: var(--title-font-size);
    color: var(--title-color);
    margin-bottom: 28px;
}

.checkout-label {
    display: block;
    font-size: var(--text-font-size);
    font-weight: 500;
    color: var(--title-color);
    margin-bottom: 8px;
}

.checkout-input {
    width: 100%;
    padding: 16px 20px;
    border: 1.5px solid #e5e0db;
    border-radius: 14px;
    font-size: var(--text-font-size);
    color: var(--title-color);
    background: #fff;
    outline: none;
    transition: border-color 0.2s;
}

    .checkout-input:focus {
        border-color: var(--btn-color);
    }

    .checkout-input::placeholder {
        color: var(--text-color);
    }

.back-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #555;
    font-size: 0.8rem;
    font-weight: 500;
    background: none;
    border: none;
    cursor: pointer;
    margin-bottom: 28px;
    padding: 0;
}

    .back-btn svg {
        width: 16px;
        height: 16px;
    }

.checkout-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.checkout-item-card {
    background: #fff;
    border-radius: 16px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.checkout-item-img {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    background: #ddd;
}

.checkout-item-info {
    flex: 1;
}

/*.item-name {
    font-size: 15px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 2px;
}*/

.check-out-item-price {
    color: var(--btn-color);
}

.total-card {
    background: var(--light-bg-btn);
    border-radius: 16px;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.total-label {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
}

.total-amount {
    font-size: 18px;
    font-weight: 700;
    color: #c8622a;
}

.form-group {
    margin-bottom: 20px;
}

.confirm-btn {
    width: 100%;
    padding: 18px;
    background: var(--btn-color);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    font-family: var(--title-font);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    margin-top: 12px;
    transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
    letter-spacing: 0.3px;
}


    .confirm-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0px 8px 25px var( --shadow-color);
    }

    .confirm-btn:active {
        transform: scale(0.98);
    }


/* Placeholder food images using CSS gradients */
.img-ribeye {
    background: linear-gradient(135deg, #6b4226 0%, #a0653a 50%, #7a4f2d 100%);
    position: relative;
    overflow: hidden;
}

.img-salmon {
    background: linear-gradient(135deg, #5a7a4a 0%, #8aaa6a 40%, #4a6a3a 100%);
    position: relative;
    overflow: hidden;
}

.img-chicken {
    background: linear-gradient(135deg, #3a3a3a 0%, #5a5a5a 50%, #2a2a2a 100%);
    position: relative;
    overflow: hidden;
}
/********************************* ORDER CONFIRMATION PAGE ********************/
.confirmation-page {
    min-height: 100vh;
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
}

.confirmation-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    max-width: 480px;
    animation: confirmFadeUp 0.6s ease both;
}

/* ---- Success Icon ---- */
.confirm-icon-wrap {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: hsl(var(--hue-btn) 83% 95% / 1);
    display: flex;
    justify-content: center;
    align-items: center;
    animation: confirmPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

    .confirm-icon-wrap svg {
        width: 38px;
        height: 38px;
        color: var(--btn-color);
    }

/* ---- Texts ---- */
.confirm-title {
    font-family: var(--title-font);
    font-size: 2.2rem;
    font-weight: var(--title-bold);
    color: var(--title-color);
    text-align: center;
}

.confirm-subtitle {
    font-size: var(--text-font-size);
    color: var(--text-color);
    text-align: center;
    margin-top: -1rem;
}

/* ---- QR Card ---- */
.qr-card {
    background: white;
    border-radius: calc(1rem + 4px);
    padding: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    box-shadow: 0 2px 20px hsl(25 15% 15% / 0.08);
    border: 1px solid hsl(0 0% 100% / 0.5);
}

.qr-img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    border-radius: 8px;
}

/* ---- Notice Box ---- */
.confirm-notice {
    width: 100%;
    background-color: hsl(var(--hue-btn) 83% 95% / 1);
    border: 1.5px solid hsl(var(--hue-btn) 70% 77% / 0.6);
    border-radius: 14px;
    padding: 1rem 1.2rem;
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: var(--text-font-size);
    color: var(--btn-color);
    font-weight: 600;
    text-align: center;
    justify-content: center;
}

/* ---- Back Button ---- */
.back-to-menu-btn {
    width: 100%;
    padding: 0.8rem;
    border: 1.5px solid hsl(var(--hue-font) 10% 80%);
    border-radius: 50px;
    background: transparent;
    color: var(--text-color);
    font-family: var(--title-font);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s;
    text-decoration: none;
    display: block;
}

    .back-to-menu-btn:hover {
        background-color: var(--btn-color);
        color: white;
        border-color: var(--btn-color);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px var(--shadow-color);
    }

/* ---- Animations ---- */
@@keyframes confirmFadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@@keyframes confirmPop {
    from {
        opacity: 0;
        transform: scale(0.6);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}
/* ======= PAGINATION ======= */
.orders-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 10px;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 6px;
    direction: rtl;
    flex-wrap: wrap;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    border-radius: 10px;
    border: 1.5px solid var(--border);
    background: var(--card-bg, #fff);
    color: var(--text, #374151);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.18s ease;
    line-height: 1;
}

    .page-btn:hover:not(.page-btn-disabled):not(.page-btn-active) {
        background: var(--light-bg-btn);
        border-color: var(--btn-hover);
        color: var(--btn-color) !important;
    }

.page-btn-active {
    background: var(--btn-color);
    border-color: var(--btn-color);
    color: white;
    box-shadow: 0 2px 8px var(--shadow-color);
}

.page-btn-nav {
    font-weight: 600;
}

.page-btn-disabled {
    opacity: 0.38;
    cursor: not-allowed;
    pointer-events: none;
}

.page-info {
    font-size: 12.5px;
    color: var(--text-muted, #6b7280);
    background: var(--bg, #f9fafb);
    border: 1.5px solid var(--border, #e5e7eb);
    border-radius: 10px;
    padding: 7px 14px;
    white-space: nowrap;
}
/********************************* Category  ********************/
/* ── Cards grid ── */
.cat-grid-wrapper {
    padding: 20px 20px 8px;
}

.cat-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
}

/* ── Single card ── */
.cat-card {
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(0,0,0,.07);
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
    transition: all .25s ease, box-shadow .25s ease;
    animation: fadeUp .4s ease both;
}

    .cat-card:hover {
        box-shadow: 0 10px 28px rgba(0,0,0,.11);
    }

    /* stagger animation per card */
    .cat-card:nth-child(1) {
        animation-delay: .04s
    }

    .cat-card:nth-child(2) {
        animation-delay: .08s
    }

    .cat-card:nth-child(3) {
        animation-delay: .12s
    }

    .cat-card:nth-child(4) {
        animation-delay: .16s
    }

    .cat-card:nth-child(5) {
        animation-delay: .20s
    }

    .cat-card:nth-child(6) {
        animation-delay: .24s
    }

/* ── Image wrapper ── */
.cat-card-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #F5F4F0;
}

.cat-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform .55s ease;
}

.cat-card:hover .cat-card-img {
    transform: scale(1.06);
}

/* Placeholder when no image */
.cat-card-img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    color: hsl(var(--hue-btn) 40% 78%);
    background: linear-gradient( 135deg, hsl(var(--hue-btn) 50% 94%) 0%, hsl(var(--hue-btn) 60% 90%) 100% );
}

/* ── Items count badge ── */
.cat-items-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: hsl(0 0% 100% / .85);
    backdrop-filter: blur(8px);
    color: var(--btn-color);
    font-size: .68rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
    border: 1px solid hsl(var(--hue-btn) 70% 85% / .6);
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

/* ── 3-dot menu on image ── */
.cat-dropdown-wrap {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
}

.cat-dots-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: hsl(0 0% 100% / .82);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-size: 1rem;
    cursor: pointer;
    transition: background .18s, color .18s, box-shadow .18s;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
}

    .cat-dots-btn:hover,
    .cat-dots-btn.active {
        background: #fff;
        color: #1A1714;
        box-shadow: 0 4px 14px rgba(0,0,0,.14);
    }

.cat-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 140px;
    background: #fff;
    border: 1px solid rgba(0,0,0,.09);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,.12), 0 2px 6px rgba(0,0,0,.06);
    z-index: 400;
    overflow: hidden;
}

    .cat-dropdown-menu.open {
        display: block;
    }

.cat-dropdown-item {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    padding: 10px 16px;
    font-size: .78rem;
    font-weight: 600;
    font-family: var(--text-font);
    background: transparent;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s;
    white-space: nowrap;
    direction: rtl;
}

.cat-dropdown-edit {
    color: #1A1714;
}

    .cat-dropdown-edit:hover {
        background: var(--light-bg-btn);
        color: var(--btn-color);
    }

.cat-dropdown-delete {
    color: #e53e3e;
}

    .cat-dropdown-delete:hover {
        background: hsl(0 80% 97%);
    }

.cat-dropdown-divider {
    height: 1px;
    background: rgba(0,0,0,.07);
    margin: 2px 0;
}

.cat-delete-form {
    margin: 0;
    padding: 0;
    display: block;
}

/* ── Card body ── */
.cat-card-body {
    padding: 14px 16px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cat-card-title {
    font-family: var(--title-font);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--title-color);
    line-height: 1.3;
    margin: 0;
    transition: color .2s;
}

.cat-card:hover .cat-card-title {
    color: var(--btn-color);
}

.cat-card-desc {
    font-size: .73rem;
    color: var(--text-color);
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cat-card-desc-empty {
    color: #C0BDB8;
    font-style: italic;
}

/* ── Reuse search bar styles from Items view ── */
.items-search-bar {
    padding: 14px 20px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 5px;
}

.items-search-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-input-wrap {
    position: relative;
    flex: 1;
}

.search-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9E9893;
    font-size: .85rem;
    pointer-events: none;
}

.search-input-field {
    width: 100%;
    padding: 10px 38px 10px 40px;
    border: 1.5px solid rgba(0,0,0,.08);
    border-radius: 10px;
    font-size: .78rem;
    font-family: var(--text-font);
    color: #1A1714;
    background: #F5F4F0;
    outline: none;
    direction: rtl;
    transition: border-color .2s, box-shadow .2s, background .2s;
}

    .search-input-field::placeholder {
        color: #9E9893;
    }

    .search-input-field:focus {
        border-color: var(--btn-color);
        box-shadow: 0 0 0 3px hsl(var(--hue-btn) 70% 55% / .12);
        background: #fff;
    }

.search-clear-btn {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9E9893;
    font-size: .7rem;
    text-decoration: none;
    transition: background .15s, color .15s;
}

    .search-clear-btn:hover {
        background: rgba(0,0,0,.07);
        color: #e53e3e;
    }

.search-result-hint {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .73rem;
    color: var(--btn-color);
    font-weight: 600;
    background: var(--light-bg-btn);
    border: 1px solid hsl(var(--hue-btn) 70% 77% / .5);
    border-radius: 8px;
    padding: 5px 12px;
    width: fit-content;
}

    .search-result-hint strong {
        font-weight: 800;
    }

/* ── Footer & pagination ── */
.items-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 20px;
    border-top: 1px solid rgba(0,0,0,.08);
    background: rgba(0,0,0,.012);
    direction: rtl;
}

.items-footer-info {
    font-size: .74rem;
    color: #9E9893;
    font-weight: 500;
    white-space: nowrap;
}

    .items-footer-info strong {
        color: #1A1714;
        font-weight: 700;
    }

.items-pagination {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    direction: rtl;
}

.pg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 6px;
    border-radius: 9px;
    font-size: .75rem;
    font-weight: 600;
    text-decoration: none;
    border: 1.5px solid rgba(0,0,0,.08);
    background: #fff;
    color: #6B6560;
    cursor: pointer;
    transition: all .18s;
    white-space: nowrap;
    line-height: 1;
    font-family: var(--text-font);
}

    .pg-btn:hover:not(.pg-active):not(.pg-disabled) {
        background: var(--light-bg-btn);
        border-color: hsl(var(--hue-btn) 70% 77% / .6);
        color: var(--btn-color);
    }

    .pg-btn.pg-active {
        background: var(--btn-color);
        border-color: var(--btn-color);
        color: #fff;
        box-shadow: 0 2px 8px var(--shadow-color);
        cursor: default;
    }

    .pg-btn.pg-disabled {
        opacity: .35;
        cursor: not-allowed;
        pointer-events: none;
    }

    .pg-btn.pg-nav {
        padding: 0 10px;
    }

.pg-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 34px;
    font-size: .8rem;
    color: #9E9893;
    font-weight: 600;
    letter-spacing: 1px;
    user-select: none;
}
/*================================*/
.cat-panel-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.cate-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-add-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 10px;
    background: var(--btn-color);
    color: #fff;
    font-size: .78rem;
    font-weight: 700;
    font-family: var(--title-font);
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all .22s;
    white-space: nowrap;
    box-shadow: 0 2px 8px var(--shadow-color);
}

    .btn-add-category:hover {
        background: var(--btn-hover);
        transform: translateY(-1px);
        box-shadow: 0 6px 16px var(--shadow-color);
        color: #fff;
    }

    .btn-add-category:active {
        transform: translateY(0);
    }
/* ── Responsive ── */
@@media (max-width: 900px) {
    .cat-cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@@media (max-width: 640px) {
    .cat-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .cat-grid-wrapper {
        padding: 14px 12px 8px;
    }

    .btn-add-item span {
        display: none;
    }

    .items-footer {
        justify-content: center;
    }

    .pg-btn {
        min-width: 30px;
        height: 30px;
        font-size: .7rem;
    }

    .search-input-field {
        font-size: .72rem;
    }

    .items-search-bar {
        padding: 12px 12px 0;
    }
}

@media (max-width: 400px) {
    .cat-cards-grid {
        grid-template-columns: 1fr;
    }
}

/********************************* ITEMS TABLE ********************/
/* ── Panel header ── */
.items-panel-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.items-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* ── Add button ── */
.btn-add-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 10px;
    background: var(--btn-color);
    color: #fff;
    font-size: .78rem;
    font-weight: 700;
    font-family: var(--title-font);
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all .22s;
    white-space: nowrap;
    box-shadow: 0 2px 8px var(--shadow-color);
}

    .btn-add-item:hover {
        background: var(--btn-hover);
        transform: translateY(-1px);
        box-shadow: 0 6px 16px var(--shadow-color);
        color: #fff;
    }

    .btn-add-item:active {
        transform: translateY(0);
    }

/* ── Search Bar ── */
.items-search-bar {
    padding: 14px 20px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 5px;
}

.items-search-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-input-wrap {
    position: relative;
    flex: 1;
}

.search-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9E9893;
    font-size: .85rem;
    pointer-events: none;
}

.search-input-field {
    width: 100%;
    padding: 10px 38px 10px 40px;
    border: 1.5px solid rgba(0,0,0,.08);
    border-radius: 10px;
    font-size: .78rem;
    font-family: var(--text-font);
    color: #1A1714;
    background: #F5F4F0;
    outline: none;
    direction: rtl;
    transition: border-color .2s, box-shadow .2s, background .2s;
}

    .search-input-field::placeholder {
        color: #9E9893;
    }

    .search-input-field:focus {
        border-color: var(--btn-color);
        box-shadow: 0 0 0 3px hsl(var(--hue-btn) 70% 55% / .12);
        background: #fff;
    }

.search-clear-btn {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9E9893;
    font-size: .7rem;
    text-decoration: none;
    transition: background .15s, color .15s;
}

    .search-clear-btn:hover {
        background: rgba(0,0,0,.07);
        color: #e53e3e;
    }

.refresh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--btn-color);
    color: #fff;
    font-size: .8rem;
    border: none;
    cursor: pointer;
    transition: all .2s;
    flex-shrink: 0;
    box-shadow: 0 2px 8px var(--shadow-color);
}

    .refresh-btn:hover {
        background: var(--btn-hover);
        transform: translateY(-1px);
    }

/* ══ Filter Tabs ══ */
.items-filter-tabs {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 10px 20px 0;
    border-bottom: 1.5px solid rgba(0,0,0,.07);
    margin-bottom: 0;
}

.filter-tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 14px;
    font-size: .76rem;
    font-weight: 600;
    font-family: var(--text-font);
    color: #9E9893;
    text-decoration: none;
    border-bottom: 2.5px solid transparent;
    margin-bottom: -1.5px;
    transition: color .18s, border-color .18s;
    white-space: nowrap;
}

    .filter-tab:hover {
        color: var(--btn-color);
    }

/* Active states */
.filter-tab--active {
    color: var(--btn-color);
    border-bottom-color: var(--btn-color);
}

    .filter-tab--active.filter-tab--shown {
        color: #0F6E56;
        border-bottom-color: #1D9E75;
    }

    .filter-tab--active.filter-tab--hidden {
        color: #9E9893;
        border-bottom-color: #B4B2A9;
    }

/* Count pills */
.filter-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 18px;
    padding: 0 6px;
    border-radius: 20px;
    font-size: .65rem;
    font-weight: 700;
}

.filter-tab-count--all {
    background: var(--light-bg-btn);
    color: var(--btn-color);
}

.filter-tab-count--shown {
    background: var(--light-bg-btn);
    color: var(--btn-color);
}

.filter-tab-count--hidden {
    background: #F5F4F0;
    color: #9E9893;
}

/* ── Table wrapper ── */
.items-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ── Table ── */
.items-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .82rem;
    direction: rtl;
}

    .items-table thead tr {
        background: #F5F4F0;
        border-bottom: 1.5px solid rgba(0,0,0,.08);
    }

    .items-table thead th {
        padding: 12px 18px;
        font-size: .72rem;
        font-weight: 800;
        color: #9E9893;
        letter-spacing: .8px;
        text-transform: uppercase;
        white-space: nowrap;
        text-align: right;
    }

    .items-table .col-img {
        width: 80px;
        text-align: center;
    }

    .items-table .col-name {
        min-width: 160px;
    }

    .items-table .col-cat {
        width: 130px;
    }

    .items-table .col-price {
        width: 100px;
    }

    .items-table .col-status {
        width: 110px;
    }

    .items-table .col-visible {
        width: 70px;
        text-align: center;
    }

    .items-table .col-actions {
        width: 56px;
        text-align: center;
    }

.item-row-tr {
    border-bottom: 1px solid rgba(0,0,0,.06);
    transition: background .15s;
    animation: fadeUp .35s ease both;
}

    .item-row-tr:last-child {
        border-bottom: none;
    }

    .item-row-tr:hover {
        background: rgba(0,0,0,.018);
    }

.items-table tbody td {
    padding: 14px 18px;
    vertical-align: middle;
    text-align: right;
}

/* Thumbnail */
.item-thumb {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    object-fit: cover;
    display: block;
    margin: 0 auto;
    border: 1px solid rgba(0,0,0,.07);
}

.item-thumb-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: #F5F4F0;
    border: 1px dashed rgba(0,0,0,.12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: #cbd5e0;
    font-size: 1.3rem;
}

.item-row-name {
    display: block;
    font-weight: 700;
    color: #1A1714;
    font-size: .87rem;
    font-family: var(--title-font);
}

.item-row-desc {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: .72rem;
    color: #9E9893;
    margin-top: 2px;
    max-width: 240px;
}

.item-cat-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 8px;
    background: #F5F4F0;
    color: #6B6560;
    font-size: .72rem;
    font-weight: 600;
    border: 1px solid rgba(0,0,0,.07);
}

/*.item-price {
    font-size: .82rem;
}*/

/* ══ Status Badge ══ */
.vis-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: .72rem;
    font-weight: 600;
    white-space: nowrap;
}

.vis-badge--shown {
    background: var(--light-bg-btn);
    color: var(--btn-color);
}

.vis-badge--hidden {
    background: #F5F4F0;
    color: #9E9893;
}

.vis-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.vis-dot--shown {
    background: var(--btn-color);
}

.vis-dot--hidden {
    background: #B4B2A9;
}

/* ══ Visibility Toggle ══ */
.vis-toggle-form {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

.vis-toggle {
    position: relative;
    width: 38px;
    height: 21px;
    border-radius: 11px;
    background: #D3D1C7;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: background .2s;
}
    /* knob — starts on LEFT side (RTL layout) */
    .vis-toggle::after {
        content: '';
        position: absolute;
        width: 15px;
        height: 15px;
        border-radius: 50%;
        background: #fff;
        top: 3px;
        left: 3px;
        transition: transform .2s;
    }
/* ON: knob slides to RIGHT */
.vis-toggle--on {
    background: var(--btn-color)
}

    .vis-toggle--on::after {
        transform: translateX(17px);
    }

/* ══ 3-dot dropdown ══ */
.dropdown-wrap {
    position: relative;
    display: inline-block;
}

.dots-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9E9893;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background .18s, color .18s;
}

    .dots-btn:hover, .dots-btn.active {
        background: #F5F4F0;
        color: #1A1714;
    }

.dropdown-menu-custom {
    display: none;
    position: absolute;
    left: 0;
    top: calc(100% + 6px);
    min-width: 140px;
    background: #fff;
    border: 1px solid rgba(0,0,0,.09);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.06);
    z-index: 300;
    overflow: hidden;
    animation: dropFadeIn .18s ease both;
}

    .dropdown-menu-custom.open {
        display: block;
    }

@@keyframes dropFadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.dropdown-item-custom {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    padding: 10px 16px;
    font-size: .78rem;
    font-weight: 600;
    font-family: var(--text-font);
    background: transparent;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s;
    white-space: nowrap;
    direction: rtl;
}

.dropdown-item-edit {
    color: #1A1714;
}

    .dropdown-item-edit:hover {
        background: var(--light-bg-btn);
        color: var(--btn-color);
    }

.dropdown-item-delete {
    color: #e53e3e;
}

    .dropdown-item-delete:hover {
        background: hsl(0 80% 97%);
    }

.dropdown-divider-custom {
    height: 1px;
    background: rgba(0,0,0,.07);
    margin: 2px 0;
}

.delete-form {
    margin: 0;
    padding: 0;
    display: block;
}

/* ══ Footer ══ */
.items-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 20px;
    border-top: 1px solid rgba(0,0,0,.08);
    background: rgba(0,0,0,.012);
    direction: rtl;
}

.items-footer-info {
    font-size: .74rem;
    color: #9E9893;
    font-weight: 500;
    white-space: nowrap;
}

    .items-footer-info strong {
        color: #1A1714;
        font-weight: 700;
    }

/* ── Pagination ── */
.items-pagination {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    direction: rtl;
}

.pg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 6px;
    border-radius: 9px;
    font-size: .75rem;
    font-weight: 600;
    text-decoration: none;
    border: 1.5px solid rgba(0,0,0,.08);
    background: #fff;
    color: #6B6560;
    cursor: pointer;
    transition: all .18s;
    white-space: nowrap;
    line-height: 1;
    font-family: var(--text-font);
}

    .pg-btn:hover:not(.pg-active):not(.pg-disabled) {
        background: var(--light-bg-btn);
        border-color: hsl(var(--hue-btn) 70% 77% / .6);
        color: var(--btn-color);
    }

    .pg-btn.pg-active {
        background: var(--btn-color);
        border-color: var(--btn-color);
        color: #fff;
        box-shadow: 0 2px 8px var(--shadow-color);
        cursor: default;
    }

    .pg-btn.pg-disabled {
        opacity: .35;
        cursor: not-allowed;
        pointer-events: none;
    }

    .pg-btn.pg-nav {
        padding: 0 10px;
    }

.pg-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 34px;
    font-size: .8rem;
    color: #9E9893;
    font-weight: 600;
    letter-spacing: 1px;
    user-select: none;
}

/* ── Responsive ── */
@@media (max-width: 640px) {
    .items-table thead th,
    .items-table tbody td {
        padding: 10px;
    }

    .item-row-desc {
        display: none;
    }

    .items-table .col-cat,
    .items-table thead th.col-cat,
    .items-table .col-status,
    .items-table thead th.col-status {
        display: none;
    }

    .btn-add-item span {
        display: none;
    }

    .items-footer {
        justify-content: center;
    }

    .pg-btn {
        min-width: 30px;
        height: 30px;
        font-size: .7rem;
    }

    .refresh-btn span {
        display: none;
    }

    .items-search-bar {
        padding: 12px 12px 0;
    }

    .items-filter-tabs {
        padding: 8px 12px 0;
        gap: 0;
    }

    .filter-tab {
        padding: 8px 10px;
        font-size: .72rem;
    }
}
/********************************* MARQUEE ********************/

.items-table-wrapper {
    overflow-x: auto;
}

.items-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .82rem;
    direction: rtl;
}

    .items-table thead tr {
        background: #F5F4F0;
        border-bottom: 1.5px solid rgba(0,0,0,.08);
    }

    .items-table thead th {
        padding: 12px 18px;
        font-size: .72rem;
        font-weight: 800;
        color: #9E9893;
        letter-spacing: .8px;
        text-transform: uppercase;
        white-space: nowrap;
        text-align: right;
    }

.item-row-tr {
    border-bottom: 1px solid rgba(0,0,0,.06);
    transition: background .15s;
    animation: fadeUp .35s ease both;
}

    .item-row-tr:last-child {
        border-bottom: none;
    }

    .item-row-tr:hover {
        background: rgba(0,0,0,.018);
    }

.items-table tbody td {
    padding: 14px 18px;
    vertical-align: middle;
    color: #1A1714;
    text-align: right;
}

/* ── Active row highlight ── */
.mq-row-active {
    background: hsl(var(--hue-btn) 83% 97% / 1) !important;
    border-right: 3px solid var(--btn-color);
}

    .mq-row-active:hover {
        background: hsl(var(--hue-btn) 83% 95% / 1) !important;
    }

/* ── Column widths ── */
.mq-col-active {
    width: 60px;
    text-align: center !important;
}

.mq-col-msg {
    min-width: 200px;
}

.mq-col-status {
    width: 130px;
}

.mq-col-actions {
    width: 56px;
    text-align: center !important;
}

/* ── Custom radio button ── */
.mq-radio-form {
    margin: 0;
    display: inline;
}

.mq-radio-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    width: 32px;
    height: 32px;
}

/*.mq-radio {
    display: none;
}*/

.mq-radio {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 5px;
    border: 2.5px solid #C0BDB8;
    background: #fff;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: border-color .2s, background .2s, box-shadow .2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .mq-radio::after {
        content: '';
        position: absolute;
        width: 5px;
        height: 9px;
        border-right: 2.5px solid #fff;
        border-bottom: 2.5px solid #fff;
        transform: rotate(45deg) translate(-1px, -1px);
        opacity: 0;
        transition: opacity .15s;
    }

    .mq-radio:checked {
        background: var(--btn-color);
        border-color: var(--btn-color);
        box-shadow: 0 0 0 3px hsl(var(--hue-btn) 70% 55% / .15);
    }

        .mq-radio:checked::after {
            opacity: 1;
        }

.mq-radio-wrap:hover .mq-radio {
    border-color: var(--btn-color);
    box-shadow: 0 0 0 3px hsl(var(--hue-btn) 70% 55% / .1);
}

/* ── امسح mq-radio-dot كلها ── */
.mq-radio-dot {
    display: none;
}

/* ── Message text ── */
.mq-message-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
    font-size: .82rem;
    color: #6B6560;
}

.mq-msg-active {
    color: #1A1714;
    font-weight: 600;
}

/* ── Status badges ── */
.mq-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: .7rem;
    font-weight: 700;
    white-space: nowrap;
}

.mq-badge-on {
    background: var(--light-bg-btn);
    color: var(--btn-color);
    border: 1px solid hsl(var(--hue-btn) 70% 77% / .4);
}

.mq-badge-off {
    background: #F5F4F0;
    color: #9E9893;
    border: 1px solid rgba(0,0,0,.07);
}

/* ── 3-dot dropdown (reused from Items view) ── */
.dropdown-wrap {
    position: relative;
    display: inline-block;
}

.dots-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9E9893;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background .18s, color .18s;
}

    .dots-btn:hover, .dots-btn.active {
        background: #F5F4F0;
        color: #1A1714;
    }

.dropdown-menu-custom {
    display: none;
    position: absolute;
    left: 0;
    top: calc(100% + 6px);
    min-width: 140px;
    background: #fff;
    border: 1px solid rgba(0,0,0,.09);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.06);
    z-index: 300;
    overflow: hidden;
    animation: dropFadeIn .18s ease both;
}

    .dropdown-menu-custom.open {
        display: block;
    }

@@keyframes dropFadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.dropdown-item-custom {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    padding: 10px 16px;
    font-size: .78rem;
    font-weight: 600;
    font-family: var(--text-font);
    background: transparent;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s;
    white-space: nowrap;
    direction: rtl;
}

.dropdown-item-edit {
    color: #1A1714;
}

    .dropdown-item-edit:hover {
        background: var(--light-bg-btn);
        color: var(--btn-color);
    }

.dropdown-item-delete {
    color: #e53e3e;
}

    .dropdown-item-delete:hover {
        background: hsl(0 80% 97%);
    }

.dropdown-divider-custom {
    height: 1px;
    background: rgba(0,0,0,.07);
    margin: 2px 0;
}

.delete-form {
    margin: 0;
    padding: 0;
    display: block;
}

/* ── Footer ── */
.items-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 20px;
    border-top: 1px solid rgba(0,0,0,.08);
    background: rgba(0,0,0,.012);
    direction: rtl;
}

.items-footer-info {
    font-size: .74rem;
    color: #9E9893;
    font-weight: 500;
}

    .items-footer-info strong {
        color: #1A1714;
        font-weight: 700;
    }

/* ── Add button (reused) ── */
.btn-add-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 10px;
    background: var(--btn-color);
    color: #fff;
    font-size: .78rem;
    font-weight: 700;
    font-family: var(--title-font);
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all .22s;
    white-space: nowrap;
    box-shadow: 0 2px 8px var(--shadow-color);
}

    .btn-add-item:hover {
        background: var(--btn-hover);
        transform: translateY(-1px);
        box-shadow: 0 6px 16px var(--shadow-color);
        color: #fff;
    }

/* ── Slide-in modal ── */
.mq-modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.35);
    backdrop-filter: blur(3px);
    z-index: 500;
    animation: backdropIn .2s ease both;
}

    .mq-modal-backdrop.open {
        display: block;
    }

@@keyframes backdropIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.mq-modal-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 480px;
    height: 100vh;
    background: #fff;
    z-index: 600;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
    box-shadow: 4px 0 32px rgba(0,0,0,.12);
    direction: rtl;
}

    .mq-modal-panel.open {
        transform: translateX(0);
    }

.mq-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(0,0,0,.08);
    flex-shrink: 0;
}

.mq-modal-title {
    font-family: var(--title-font);
    font-size: 1.05rem;
    font-weight: 800;
    color: #1A1714;
}

.mq-modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: #F5F4F0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #6B6560;
    font-size: .85rem;
    transition: background .18s, color .18s;
}

    .mq-modal-close:hover {
        background: #e5e5e5;
        color: #1A1714;
    }

.mq-modal-form {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
}

.mq-textarea {
    resize: vertical;
    min-height: 110px;
    line-height: 1.7;
}

.mq-char-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
}

.mq-char-count {
    font-size: .68rem;
    color: #C0BDB8;
    font-weight: 500;
}

.mq-modal-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
    padding-top: 8px;
}

/* ── Validation ── */
.field-error {
    font-size: 0.9225rem;
    color: #e53e3e;
    font-weight: 600;
}

/* ── Responsive ── */
@@media (max-width: 640px) {
    .items-table thead th,
    .items-table tbody td {
        padding: 10px 10px;
    }

    .mq-col-status {
        display: none;
    }

    .items-table thead th.mq-col-status {
        display: none;
    }

    .mq-modal-panel {
        max-width: 100%;
    }

    .btn-add-item span {
        display: none;
    }
}

/********************************* MEDIA QUERIES ********************/
@media screen and (max-width:1200px) {
    /*Home Main Menu*/
    .card-wrapper {
        width: 48%;
    }
}

@media (max-width: 900px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    /*CATEGORY ADMIN*/
    .cat-cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media (max-width: 768px) {
    body {
        padding: 12px;
    }
    /*Home Main Menu*/
    .menu-section {
        padding: 20px;
    }

    .section-icon {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }

    .section-text h2 {
        font-size: 1.37rem;
    }

    .section-text p {
        font-size: 0.8rem;
    }

    .menu-item {
        padding: 16px 0;
    }

    .item-details h3 {
        font-size: 1rem;
    }

    .item-details p {
        font-size: 0.75rem;
    }

    .item-price {
        font-size: 1.2rem;
        min-width: 60px;
    }
    /*HOME FOOTER*/
    .footer-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 16px 20px;
        gap: 8px;
    }

    .footer-col-copy {
        align-items: center;
    }

    .footer-col-address .footer-info-link {
        justify-content: center;
    }

    /*ADMIN LAYOUT*/
    .tab {
        padding: 7px 13px;
        font-size: 13px;
        gap: 5px;
    }

        .tab svg,
        .tab i {
            width: 13px;
            height: 13px;
            font-size: 13px;
        }
    /* Stack filter bar items vertically */
    .filter-bar {
        flex-wrap: wrap;
        gap: 8px;
        padding: 14px 14px 0;
    }

    /* Search input takes full width on its own row */
    .search-wrap {
        flex: 1 1 100%;
        width: 100%;
    }

    /* Date input stretches to fill remaining space beside buttons */
    .date-wrap {
        flex: 1 1 auto;
        min-width: 0;
    }

    /* Prevent action buttons from shrinking */
    .refresh-btn {
        flex-shrink: 0;
    }
}

@media (max-width: 640px) {
    html {
        font-size: 14px;
    }
    /*CATEGORY ADMIN*/
    .cat-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .cat-grid-wrapper {
        padding: 14px 12px 8px;
    }

    .btn-add-item span {
        display: none;
    }

    .items-footer {
        justify-content: center;
    }

    .pg-btn {
        min-width: 30px;
        height: 30px;
        font-size: .7rem;
    }

    .search-input-field {
        font-size: .72rem;
    }

    .items-search-bar {
        padding: 12px 12px 0;
    }

    /*ITEM ADMIN*/
    .items-table thead th,
    .items-table tbody td {
        padding: 10px;
    }

    .item-row-desc {
        display: none;
    }

    .items-table .col-cat,
    .items-table thead th.col-cat,
    .items-table .col-status,
    .items-table thead th.col-status {
        display: none;
    }

    .btn-add-item span {
        display: none;
    }

    .items-footer {
        justify-content: center;
    }

    .pg-btn {
        min-width: 30px;
        height: 30px;
        font-size: .7rem;
    }

    .refresh-btn span {
        display: none;
    }

    .items-search-bar {
        padding: 12px 12px 0;
    }

    .items-filter-tabs {
        padding: 8px 12px 0;
        gap: 0;
    }

    .filter-tab {
        padding: 8px 10px;
        font-size: .72rem;
    }

    /*MARQUEE ADMIN TABLE*/
    .items-table thead th,
    .items-table tbody td {
        padding: 10px 10px;
    }

    .mq-col-status {
        display: none;
    }

    .items-table thead th.mq-col-status {
        display: none;
    }

    .mq-modal-panel {
        max-width: 100%;
    }

    .btn-add-item span {
        display: none;
    }
}

@media screen and (max-width:576px) {
    /*Home Main Menu*/

    .grid-items-body {
        max-width: 400px;
    }

    .navbar {
        align-content: center;
        gap: 16px;
    }

    .section {
        padding-block: 15rem 1rem;
    }

    .cards-container {
        flex-direction: column;
    }

    .card-wrapper {
        width: 100%;
    }

    .cart-container {
        flex-direction: column;
    }

    .qty-container {
        text-align: center;
    }

    .menu-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .item-info {
        width: 100%;
    }

    .item-actions {
        width: 100%;
        justify-content: space-between;
        padding-left: 76px;
    }

    .section-toggle span {
        display: none;
    }

    /*HOME FOOTER*/
    .footer-inner {
        padding: 14px 16px;
    }

    .footer-info-link {
        font-size: .72rem;
    }
}


@media (max-width: 480px) {
    .tabs-wrapper {
        padding: 3px;
        gap: 1px;
        border-radius: 8px;
    }

    .tab {
        padding: 6px 10px;
        font-size: 12px;
        gap: 4px;
        border-radius: 7px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-bottom: 16px;
    }

    .stat-card {
        padding: 14px 14px;
        gap: 11px;
        border-radius: 13px;
    }

    .stat-icon {
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }

        .stat-icon svg {
            width: 18px;
            height: 18px;
        }

    .stat-label {
        font-size: 12px;
        margin-bottom: 3px;
    }

    .stat-value {
        font-size: 0.95rem;
    }

    .item-row {
        flex-direction: column;
    }
}

@media (max-width: 400px) {

    /*Home Main Menu*/
    .grid-items-body {
        max-width: 350px;
    }

    .section-info {
        gap: 12px;
    }

    .section-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .section-text h2 {
        font-size: 1.25rem;
    }

    .item-image {
        width: 50px;
        height: 50px;
    }

    .item-actions {
        padding-left: 66px;
    }
    /*CATEGORY ADMIN*/
    .cat-cards-grid {
        grid-template-columns: 1fr;
    }


    .date-wrap {
        flex: 1 1 60%;
    }

   
}

@media (max-width: 360px) {
    .navbar a.logo-text {
        font-size:1.5rem;
    }

    .admin-logout{
        font-size:10px;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
}