@import url('cashier/fonts/stylesheet.css');


/* تخصيص اللون الخاص بالكاشير */
/* خلفيّة شبه شفّافة + تدرّج عند التمرير */
/* يمكن وضعه في ملف مستقل مثل hero-mart.css ثم استدعاؤه بعد bootstrap */
:root {
    /* الألوان الأساسيّة */
    --hm-primary: linear-gradient(90deg, #17665e, #374a7c);
    /* اللون الأساسي بدون شفافيّة */
    --hm-primary-t: linear-gradient(90deg, #17665e, #374a7c);
    /* مع شفافيّة طفيفة للهيدر */
    --hm-secondary: #374a7c;
    /* اللون الثانوي */
    --hm-white: #ffffff;
    /* تدرّجات جاهزة للاستعمال */
    --hm-grad: linear-gradient(90deg, var(--hm-primary) 0%, var(--hm-secondary) 100%);
}

/* نسخة داكنة محتملة */
[data-theme="dark"] {
    --hm-white: #e9e9e9;
    --bs-body-bg: #0d1117;
    /* خلفية عامة داكنة */
}


.navbar-hm {
    /* background: var(--hm-primary-t); */
    box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
    transition: background .3s ease, box-shadow .3s ease;
    z-index: 9;
    position: sticky;
    top: 0;
    z-index: 99;
    background: #fff;
}

.navbar-brand {
    padding: 0 !important;
    border-radius: 6px;
    overflow: hidden;
    margin: 0;
    margin-top: 4px;
    margin-bottom: 4px;
}

.openMenu {
    display: inline-flex;
    cursor: pointer;
}

.openMenu svg {
    flex: 0 0 2.4rem;
    width: 2.4rem;
    height: auto;
}

.openMenu svg [stroke] {
    stroke: #364C7B;
}

.containerNavbar {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.containerNavbar>div:first-child {
    display: inline-flex;
    align-items: center;
}

.menuOver {
    width: 30vw;
    height: 100%;
    background-color: #1E3A5F;
    position: fixed;
    top: 0;
    right: -30vw;
    transition: 0.3s;
    z-index: 99999;
}

.menuOver.show {
    right: 0;
}

.menuOver+.bg {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    display: none;
}

.menuOver.show+.bg {
    display: block;
    animation: showOpacity 0.2s linear;
}

.menuOver>div:not(.fixed) {
    height: calc(100% - 70px);
    overflow: auto;
}

.menuOver>div.fixed {
    height: 70px;
    display: flex;
    padding: 0.75rem;
    gap: 0.75rem
}

.menuOver a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #355279;
    transition: 0.3s;
}

.menuOver a:hover {
    background-color: #355279;
    padding-right: 1.25rem;
}

.menuOver * {
    margin: 0 !important;
}

.menuOver i {
    font-size: 2rem;
    color: #E5E7EB;
}

.menuOver h6 {
    font-size: 0.925rem;
    color: #fff;
}

.btnCloseStore,
.btnLogout {
    background: #FACC15;
    border: 1px solid #FACC15;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    flex: 1 0 auto;
    border-radius: 0.25rem;
    color: #000;
    font-size: 0.925rem;
    transition: 0.3s;
    padding: 0.5rem;
}

.btnCloseStore svg {
    width: 1.75rem;
    height: auto;
    fill: #000;
    flex: 0 0 1.75rem;
}

.btnCloseStore:hover {
    background-color: #f8cf2f;
}

.btnLogout {
    background: #EF4444;
    border: 1px solid #EF4444;
    height: 100%;
}

.btnLogout:hover {
    background-color: #f65a5a;
}

.btnLogout svg {
    width: 2rem;
    height: auto;
    flex: 0 0 2rem;
}

@keyframes showOpacity {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.buttonNotifications {
    padding: 0 !important;
}

.buttonNotifications .bi-bell {
    font-size: 1.5rem !important;
    color: #452f8b;
}

.buttonNotifications .num {
    width: 1.125rem;
    height: 1.125rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
    font-weight: 400;
    color: #fff;
    top: -2px;
    left: -8px;
    background-color: #EF4444;
    border-radius: 50%;
}

.buttonNotifications+ul {
    padding: 0 !important;
    border-radius: 0.75rem;
    flex-direction: column;
    overflow: hidden;
}

.buttonNotifications.show+ul {
    display: flex;
}

.buttonNotifications+ul li {
    display: inline-flex;
    border-bottom: 1px solid #737b8340;
    padding: 0.75rem 1rem !important;
    max-width: 50vw;
    min-width: 20vw;
    white-space: nowrap;
    transition: 0.3s;
}

.buttonNotifications+ul li:hover {
    background-color: #43318a0f;
}

.buttonNotifications+ul li span {
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: 0.3s;
}

.buttonNotifications+ul li:hover span {
    color: #000 !important;
}

.buttonNotifications+ul li small {
    float: left;
    font-size: 0.625rem;
    margin-top: 0.325rem;
    font-weight: 300;
}

.buttonNotifications+ul li:last-child {
    border-bottom: none;
}

.buttonNotifications+ul li.linkShowAll {
    justify-content: center;
    padding: 0 !important;
}

.linkShowAll a {
    text-decoration: none;
    color: #44318a;
    font-weight: 400;
    padding: 0.75rem 1rem;
    width: 100%;
}

.navbar-hm.scrolled {
    /* يُضاف بالـ JS عندما تتخطى الصفحة 30px */
    /* background: var(--hm-grad); */
    box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
}

/* الروابط */
.navbar-hm .nav-link {
    color: var(--hm-white);
    font-weight: 500;
    transition: color .2s ease;
}

.navbar-hm .nav-link:hover,
.navbar-hm .nav-link:focus {
    color: #dcdcdc;
}

/* حالة مفعّلة (يمكنك إضافة class=active ديناميكياً بالـ Laravel) */
.navbar-hm .nav-link.active {
    position: relative;
    color: var(--hm-white);
}

.navbar-hm .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    right: 0;
    margin-inline: auto;
    width: 60%;
    height: 2px;
    background: var(--hm-secondary);
    border-radius: 1px;
}

/* مسافة داخلية أريح للهيدر */
.navbar-hm {
    padding-block: 1rem;
    /* الأعلى والأسفل */
    padding-inline: 1.75rem;
    /* اليمين واليسار */
}

/* مسافة إضافية للروابط */
.navbar-hm .nav-link {
    padding-inline: 0.9rem;
}

/* زر الـ Toggler */
.navbar-hm .navbar-toggler {
    border: none;
    outline: 0;
}

.navbar-hm .navbar-toggler-icon {
    filter: invert(85%);
    /* يجعل الأيقونة بيضاء */
}

/* شارة الإشعارات */
.navbar-hm .badge {
    font-size: .55rem;
    background: var(--hm-secondary);
}

/* أزرار فتح/إغلاق المتجر وخروج */
.btn-hm-outline {
    color: var(--hm-white);
    border-color: var(--hm-secondary);
}

.btn-hm-outline:hover {
    background: var(--hm-primary);
    color: var(--hm-white);
}


/* الخط العام */
body {
    font-family: 'Montserrat-Arabic', sans-serif;
    font-weight: 300;
    font-style: normal;
    background-color: var(--light-bg);
    color: var(--text-color);
    direction: rtl;
}

/* عناوين وأزرار */
h5,
h6 {
    font-weight: bold;
    color: var(--primary-color);
}

.btn {
    font-weight: bold;
    border-radius: 10px;
    transition: 0.2s ease;
}

.btn:hover {
    transform: scale(1.03);
}

/* زر تفريغ السلة */
#clear-cart {
    background-color: var(--danger-color);
    border: none;
}

#clear-cart:hover {
    background-color: #b02a37;
}

/* زر الدفع */
.btn-success {
    font-size: 16px;
    padding: 10px;
    background-color: var(--success-color);
    border: none;
}

.btn-success:hover {
    background-color: #12574f;
}

/* تبويبات التصنيفات */
.nav-tabs .nav-link {
    color: var(--primary-color);
    font-weight: bold;
    border-radius: 5px 5px 0 0;
}

.nav-tabs .nav-link.active {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* قسم السلة */
#cart-items {
    background-color: #ffffff;
    border-radius: 8px;
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

/* السايد بار مثبت */
.sticky-sidebar {
    /* position: sticky; */
    top: 20px;
    z-index: 9997 !important;
    background-color: #fff;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* بطاقات المنتجات */
.card {
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out;
}

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

.card-title {
    font-size: 16px;
    font-weight: bold;
    color: var(--primary-color);
}

.card-text {
    font-size: 14px;
    color: #555;
}

/* زر الإضافة */
.btn.add-to-cart {
    background-color: var(--success-color);
    border: none;
    font-weight: bold;
}

.btn.add-to-cart:hover {
    background-color: #12574f;
}

/* زر الحذف داخل السلة */
.remove-item {
    color: #fff;
    background-color: var(--danger-color);
    border: none;
    border-radius: 6px;
    padding: 3px 7px;
    font-size: 13px;
}

/* بادج "غير متوفر" */
.badge.bg-danger {
    background-color: var(--accent-color);
    color: #000;
    font-weight: bold;
}

.product-box-dark {
    position: relative;
    height: 160px;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* السعر في الأعلى يمين */
/* .price-top {
    position: absolute;
    top: 5px;
    right: 8px;
    font-size: 12px;
    color: #fff;
    font-weight: bold;
    z-index: 999;
} */

/* اسم المنتج في المنتصف */
.product-overlay-centered {
    position: absolute;
    top: 0;
    bottom: 36px;
    left: 0;
    right: 0;
    background-color: rgb(0 0 0 / 59%);
}

/* الشريط السفلي للعداد */
/* .quantity-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #faf5f5;
    padding: 4px 6px;
    border-top: 1px solid #ccc;
}

.quantity-bar .btn {
    border-radius: 0;
}

.qty-input {
    max-width: none !important;
    border: none;
}

.product-name {
    color: white;
}

.increment,
.decrement {
    margin: 0px !important;
    width: 30px !important;
    border-radius: 50% !important;
} */


/* #showMoreBtn {
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    padding: 10px;

}

#showMoreBtn:hover {
    background-color: #176d61 !important;
    color: white !important;
    border-color: #176d61 !important;
} */


.bg-warning {
    /* background-color: #176d61 !important; */
    color: white !important;
}



/* تحسين شكل الجدول */
.table-custom {
    border-collapse: collapse;
    width: 100%;
    margin-top: 20px;
}

.table-custom th,
.table-custom td {
    padding: 15px;
    text-align: center;
    border: 1px solid #ddd;
    vertical-align: middle;
}

/* تلوين الصفوف بشكل متدرج */
.table-custom tbody tr:nth-child(odd) {
    background-color: #f9f9f9;
    /* تدرج لون الصف */
}

.table-custom tbody tr:hover {
    background-color: #f1f1f1;
    /* تأثير hover */
}

/* تحسين الأزرار في الجدول */
.table-custom .btn {
    min-width: 100px;
    padding: 8px;
    font-size: 12px;
}

/* تحسين التذييل */
.table-custom tfoot {
    background-color: #f8f9fa;
    font-weight: bold;
}

/* تحسين الشريط العلوي للجدول */
.table-custom th {
    background-image: linear-gradient(90deg, #17665e, #374a7c) !important;
    /* تطبيق التدرج على الخلفية */
    color: white;
    font-weight: bold;
}


/* تحسين الأيقونات داخل الأزرار */
.table-custom .btn i {
    font-size: 16px;
}

.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    /* خلفية غامقة */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    /* للتأكد من ظهور الـ loader فوق كل العناصر الأخرى */
}

.loader div {
    width: 50px;
    height: 50px;
    border: 6px solid #f3f3f3;
    border-top: 6px solid #3498db;
    border-radius: 50%;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


.selected-category {
    background-color: rgba(0, 0, 0, 0.5);
    /* لون خلفية ضبابي */
    opacity: 0.7;
    /* الشفافية لتقليل الوضوح */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    /* تأثير الظل لإبراز العنصر */
}



.app-container {
    position: absolute;
    top: 50px;
    /* يمكنك تعديل هذا حسب الحاجة */
    left: 0;
    right: 0;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 20px;
    padding: 20px;
    background-color: #f4f4f4;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    width: 80%;
    /* عرض القائمة يمكن تعديله */
    z-index: 9999;
    /* تأكد أن القائمة تظهر فوق باقي العناصر */
    display: none;
    /* ابدأ مخفية */
}

.app-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    transition: all 0.3s;
    z-index: 9999;
}

.app-icon a {
    text-align: center;
}

.app-icon img {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
}

.app-icon:hover {
    background-color: #ddd;
    transform: scale(1.05);
}

.app-icon span {
    font-size: 14px;
    color: #333;
}


.minimized-categories {
    max-height: 100px;
    overflow-y: hidden;
    transition: max-height 0.5s ease, opacity 0.5s ease;
    opacity: 0.7;
}

.minimized-categories .card {
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.minimized-categories h3 {
    display: none;
}


#searchInput::placeholder {
    color: #999;
    font-size: 1rem;
}

#searchInput:focus {
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.4);
    border-color: #007bff;
}

.navbar-hm {
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
}

.navbar-hm .navbar-brand img {
    height: 3rem !important;
    max-height: 3.5rem !important;
}

.navbar-hm .btn,
.navbar-hm .nav-link,
.navbar-hm .dropdown-menu {
    font-size: 0.9rem;
    padding: 0.4rem 0.6rem;
}

.navbar-hm .btn i,
.navbar-hm .nav-link i {
    font-size: 1rem;
}


/* توحيد ارتفاع البطاقات ومحاذاة الزر للأسفل */
.control-card .card-body {
    min-height: 240px;
}

/* تحسين مظهر الأيقونات بدون inline-style */
.control-card i {
    line-height: 1;
}

/* تقليل اختلاف الأسطر الطويلة */
.control-card p {
    text-wrap: balance;
}



/* إطار الصورة بنسبة أبعاد ثابتة لعدم تمدد/تشويه الصورة */
.product-card-visual .product-media {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    /* غيّرها إلى 1/1 إذا تحب مربّع */
    overflow: hidden;
    background: #111;
    /* خلفية احتياط */
    border-radius: .5rem .5rem 0 0;
}

/* الصورة واضحة ومقتصّة بشكل أنيق */
.product-card-visual .product-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* سر الوضوح هنا */
    object-position: center;
    /* تمركز أفضل */
    transform: scale(1.001);
    /* يمنع خطوط بيكسل على بعض الشاشات */
    transition: transform .3s ease, filter .3s ease, opacity .3s ease;
    opacity: 1;
}

/* تأثير blur-up مؤقت لحين التحميل */
.product-card-visual .product-img.blur-up {
    filter: blur(8px);
    opacity: .8;
}

/* تدرّج سفلي لتحسين تباين النص */
.product-card-visual .media-gradient {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 45%;
    background: linear-gradient(to top, rgba(0, 0, 0, .75), rgba(0, 0, 0, 0));
    pointer-events: none;
}

/* العناوين فوق الصورة */
.product-card-visual .media-caption {
    position: absolute;
    left: .75rem;
    right: .75rem;
    bottom: .5rem;
    z-index: 2;
}

/* شارة السعر العلوية */
.product-card-visual .price-badge {
    position: absolute;
    top: .5rem;
    inset-inline-start: .5rem;
    /* يدعم RTL */
    z-index: 2;
    background: rgba(0, 0, 0, .7);
    backdrop-filter: blur(6px);
    color: #fff;
    font-weight: 700;
    font-size: .9rem;
    padding: .35rem .6rem;
    border-radius: .5rem;
    line-height: 1;
    border: 1px solid rgba(255, 255, 255, .12);
}

/* اقتصاص سطرين للاسم */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* تفاعل بسيط عند المرور */
.product-card-visual:hover .product-img {
    transform: scale(1.04);
}

/* شريط الأزرار أسفل البطاقة */
.product-card-visual .quantity-bar {
    border-top: 1px solid rgba(255, 255, 255, .06);
    background: #0f0f0f;
    border-radius: 0 0 .5rem .5rem;
}



.product-card-visual .product-media {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    /* يمكن تعديلها لـ 1/1 لعرض مربعات */
    overflow: hidden;
    background: #111;
    border-radius: .5rem .5rem 0 0;
}

.product-card-visual .product-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.001);
    transition: transform .3s ease, filter .3s ease, opacity .3s ease;
}

.product-card-visual .product-img.blur-up {
    filter: blur(8px);
    opacity: .8;
}

.product-card-visual:hover .product-img {
    transform: scale(1.04);
}

.product-card-visual .media-gradient {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 45%;
    background: linear-gradient(to top, rgba(0, 0, 0, .75), rgba(0, 0, 0, 0));
    pointer-events: none;
}

.product-card-visual .media-caption {
    position: absolute;
    left: .75rem;
    right: .75rem;
    bottom: .5rem;
    z-index: 2;
}

.product-card-visual .price-badge {
    position: absolute;
    top: .5rem;
    inset-inline-start: .5rem;
    z-index: 2;
    background: rgba(0, 0, 0, .7);
    backdrop-filter: blur(6px);
    color: #fff;
    font-weight: 700;
    font-size: .9rem;
    padding: .35rem .6rem;
    border-radius: .5rem;
    border: 1px solid rgba(255, 255, 255, .12);
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-visual .quantity-bar {
    border-top: 1px solid rgba(255, 255, 255, .06);
    background: #0f0f0f;
    border-radius: 0 0 .5rem .5rem;
}


.product-card-visual .product-media {
    padding-bottom: 3rem;
    /* يترك مساحة للزر أسفل */
}

.product-card-visual .media-caption {
    bottom: 4.75rem;
}

.product-card-visual .media-gradient {
    height: 35%;
    /* كان 45% - لتفادي تغطية الزر */
}

nav {
    height: 69px;
}

.sticky-sidebar {
    height: calc(110vh - 69px - 3rem);
    margin-top: 1.5rem;
    overflow: auto;
    position: sticky;
    top: calc(69px + 1.5rem);
    padding: 0.625rem;
}

.sticky-sidebar .level1 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.sticky-sidebar .level1>* {
    margin: 0 !important;
}

.sticky-sidebar .level1 h5 {
    font-size: 1rem;
    font-weight: 500;
}

#clear-cart {
    font-size: 11px;
}

.sticky-sidebar .level1 button {
    padding: 0.325rem 0.7rem;
    font-size: 13px;
    font-weight: 500;
    border-radius: 4px;
}

#cart-items {
    min-height: calc(100% - 260px);
    max-height: calc(100% - 403px);
}

#cart-items>div,
#cart-items>div>div {
    display: flex;
}

#cart-items>div>div {
    flex-direction: column;
    gap: 0.325rem;
}

#cart-items>div>div * {
    margin: 0;
}

#cart-items>div {
    border-radius: 0.5rem;
    overflow: hidden;
    padding: 0.25rem;
    position: relative;
    gap: 0.325rem;
    box-shadow: 0 0 5px 1px #0000002e;
    margin-bottom: 0.5rem;
}

#cart-items>div:last-child {
    margin-bottom: 0;
}


#cart-items>div .text {
    width: 100%;
}

#cart-items>div img {
    width: 3.85rem;
    height: 3.85rem;
    flex: 0 0 3.85rem;
    object-fit: cover;
    border-radius: 0.325rem;
}

#cart-items>div button {
    position: absolute;
    left: 0;
    bottom: 0;
    background-color: #dc3545;
    color: #fff;
    border: 1px solid #dc3545;
    padding: 0.125rem;
    border-radius: 0 0.25rem 0 0.25rem;
    display: inline-flex;
    font-size: 0.925rem;
}

#cart-items>div h6 {
    font-size: 0.85rem;
    color: #222;
    font-weight: 400;
    display: flex;
    width: 100%;
    justify-content: space-between;
    gap: 0.325rem;
    align-items: center;
}

#cart-items>div h6 b {
    color: #fff;
    background-color: #44318a;
    padding: 0.25rem;
    border-radius: 0.25rem;
    font-weight: 400;
    font-size: 0.65rem;
}

#cart-items>div p {
    font-size: 0.625rem;
}

#cart-items>div p b {
    font-size: 0.85rem;
}

#cart-items>div p>span {
    display: inline-flex;
    gap: 0.25rem;
}

.formDataClient,
.payment,
.textDiscount {
    background-color: #ffffff;
    border-radius: 8px;
    max-height: 400px;
    overflow-y: auto;
    padding: 6px 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    margin-top: 0.625rem;

}

.formDataClient h5,
.payment h5 {
    font-size: 0.9rem;
    color: #222;
    font-weight: 500;
    margin: 0 0 0.5rem 0 !important;
}

.formDataClient input {
    font-size: 0.85rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

.payment .towOptions {
    display: flex;
    gap: 1rem;
}

.payment .towOptions>div {
    flex: 0 0 calc(50% - 0.5rem);
    padding: 0 !important;
}

.payment .towOptions input+label {
    width: 100%;
    border: 1px solid #989898;
    padding: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    opacity: 0.5;
    transition: 0.3s;
    cursor: pointer;
}

.payment .towOptions input:checked+label {
    border: 1px solid #15685C;
    opacity: 1;
}

.payment .towOptions input+label svg {
    width: 1.75rem;
    height: 1.75rem;
    flex: 0 0 1.75rem;
}

.payment .towOptions input+label [fill] {
    fill: #989898;
    transition: 0.3s;
}

.payment .towOptions input:checked+label [fill] {
    fill: #15685C;
}

.textDiscount p {
    margin: 0;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.325rem;
    color: #333;
}

.textDiscount p b {
    color: #1b1b1b;
}

.textDiscount p:first-child {
    margin-bottom: 0.325rem;
}

.totalPrice {
    margin: 1rem 0;
    text-align: center;
    font-weight: 600;
    color: #413787;
    font-size: 1rem;
}

.boxProduct {
    background-color: #fff;
    box-shadow: 0 0 4px 1px rgba(0, 0, 0, 0.16);
    border-radius: 0.75rem;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.boxProduct::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-color: rgba(0, 0, 0, 0.1);
}

.boxProduct .img {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.boxProduct .img img {
    height: auto;
    width: auto;
    max-width: calc(100% - 1rem);
    max-height: calc(100% - 1rem);
    object-fit: contain;
}

.boxProduct h6 {
    color: #1b1d1d;
    margin-bottom: 0.75rem !important;
    text-align: center;
    position: relative;
    z-index: 3;
    margin-bottom: 0.75rem !important;
}

.boxProduct .text {
    margin: 0.75rem 1rem !important;
    height: calc(100% - 180px - 1.5rem);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.boxProduct .quantity-bar {
    display: flex;
    background-color: #fff;
    position: relative;
    z-index: 9;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    padding: 0.25rem 0.325rem;
    border-radius: 0.25rem;
}

.boxProduct .quantity-bar .inputCounter {
    display: flex;
    gap: 0.325rem;
}

.boxProduct .price-top {
    flex: 0 0 30%;
    width: calc(50% - 0.5rem);
    font-size: 0.85rem;
    font-weight: 400;
    color: #1b1d1d;
}

.boxProduct .quantity-bar .inputCounter input {
    width: 50px;
    font-size: 0.8rem;
    border: 1px solid #E5E7EB;
    text-align: center;
    border-radius: 0.25rem;
}

.boxProduct .quantity-bar .inputCounter button {
    border-radius: 0.25rem;
    border: 1px solid #413787;
    background-color: #413787;
    font-weight: 500;
    color: #fff;
    font-size: 1.125rem;
    width: 1.625rem;
    height: 1.625rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.boxProduct .quantity-bar .inputCounter .decrement {
    background-color: #fff;
    color: #413787;
}

.boxProduct .badgeNoCount {
    background-color: #413787;
    color: #fff;
    text-align: center;
    border-radius: 0.25rem;
    width: 100%;
    padding: 0.325rem;
    display: block;
    font-size: 0.85rem;
}

/* تحسينات كارد المنتج */
.boxProduct.out-of-stock {
    background-color: #fff5f5;
    border: 1px solid #fed7d7;
}

.boxProduct.out-of-stock::before {
    background-color: rgba(254, 215, 215, 0.1);
}

.boxProduct.out-of-stock .img img {
    opacity: 0.7;
}

.boxProduct.out-of-stock .product-name {
    color: #c53030;
}

.boxProduct.out-of-stock .quantity-bar {
    background-color: #fff5f5;
    border: 1px solid #fed7d7;
}

.boxProduct.out-of-stock .quantity-bar .inputCounter input {
    background-color: #fff;
    border-color: #fed7d7;
    color: #c53030;
}

.boxProduct.out-of-stock .quantity-bar .inputCounter button {
    background-color: #c53030;
    border-color: #c53030;
    color: #fff;
}

.boxProduct.out-of-stock .quantity-bar .inputCounter .decrement {
    background-color: #fff;
    color: #c53030;
    border-color: #c53030;
}

/* زر إظهار/إخفاء المنتج */
.product-toggle-btn {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    width: 2rem;
    height: 2rem;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.product-toggle-btn:hover {
    background-color: #413787;
    color: #fff;
    border-color: #413787;
    transform: scale(1.1);
}

.product-toggle-btn.hidden {
    background-color: #e53e3e;
    color: #fff;
    border-color: #e53e3e;
}

.product-toggle-btn.hidden i {
    transform: rotate(180deg);
}

/* حالة المخزون */
.stock-status {
    margin-top: 0.5rem;
}

.boxProduct.out-of-stock .stock-status .badgeNoCount {
    background-color: #e53e3e;
    color: #fff;
    font-weight: 500;
}

/* حالة المنتج المخفي */
.boxProduct.product-hidden {
    opacity: 0.3;
    transform: scale(0.95);
    transition: all 0.3s ease;
    pointer-events: none;
}

.boxProduct.product-hidden .product-toggle-btn {
    pointer-events: all;
    opacity: 1;
    transform: scale(1);
}

.boxProduct.product-hidden:hover {
    opacity: 0.5;
    transform: scale(0.98);
}

.show-more-box {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

#showMoreBtn {
    border: 1px solid #176d61;
    color: #176d61;
    font-size: 1rem;
    font-weight: 400;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    transition: 0.3s;
    cursor: pointer;
}

#showMoreBtn:hover {
    background-color: #176d61;
    color: #fff;
}

.filter {
    display: inline-flex;
    align-items: center;
    gap: 0.325rem;
    font-size: 0.85rem;
}

.filter svg {
    width: 0.925rem;
    height: 0.925rem;
}

.filter svg [fill] {
    fill: #e2e2e2;
}

.filter.top svg path:first-of-type {
    fill: #413787;
}

.filter.bottom svg path:last-of-type {
    fill: #413787;
}

#searchInput {
    width: 100%;
    border: 1px solid #dcdcdc;
    padding: 0.5rem 1rem;
    font-weight: 400;
    color: #1b1d1d;
    border-radius: 0.25rem;
}

.customLoader {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.customLoader>div {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.customLoader svg {
    width: 2rem;
    height: 2rem;
    flex: 0 0 2rem;
    animation: rotateInfinite 0.6s linear infinite;
}

@keyframes rotateInfinite {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.customLoader span {
    color: #fff;
    font-size: 1.25rem;
}

.formSearchHistor {
    margin-top: 1rem !important;
}

.formSearchHistor label {
    color: #1b1d1d;
    font-weight: 400;
}

.formSearchHistory .row {
    align-items: flex-end;
}

.formSearchHistory input,
.customInput {
    width: 100%;
    margin-top: 0.625rem;
    padding: 0.325rem 0.75rem;
    border-radius: 0.25rem;
    border: 1px solid #dcdcdc;
    font-weight: 400;
    font-size: 1rem;
    color: #1b1b1b;
}

.btnGo {
    background-color: #176d61;
    color: #fff;
    border: 1px solid #176d61;
    padding: 0.25rem 1rem;
    border-radius: 0.25rem;
}

.tableCustom {
    width: 100%;
    margin-bottom: 3rem;
    border-collapse: separate;
    border-spacing: 0;
}

.tableCustom thead tr {
    background-color: #EFEFEF;
}

.tableCustom td,
.tableCustom th {
    border-top: 1px solid #e6e6e8;
    padding: 0.75rem 0.5rem;
    color: #444050;
    font-size: 0.9rem;
    font-weight: 300;
}

.tableCustom th {
    font-weight: 600;
}

.tableCustom tbody tr {
    transition: 0.3s;
}

.tableCustom tbody tr:hover {
    background-color: #f5f5f5;
    transform: scale(1.01);
}

.tableCustom tbody tr:last-child td,
.tableCustom tbody tr:last-child th {
    border-bottom: 1px solid #e6e6e8;
}

.tableCustom tr td:first-child,
.tableCustom tr th:first-child {
    border-right: 1px solid #e6e6e8;
    padding-right: 1rem;
}

.tableCustom tr td:last-child,
.tableCustom tr th:last-child {
    border-left: 1px solid #e6e6e8;
    padding-left: 1rem;
    text-align: left;
}

.tableCustom thead tr:first-child th:first-child {
    border-radius: 0 0.5rem 0 0;
}

.tableCustom thead tr:first-child th:last-child {
    border-radius: 0.5rem 0 0 0;
}

.tableCustom tbody tr:last-child td:first-child {
    border-radius: 0 0 0.5rem 0;
}

.tableCustom tbody tr:last-child td:last-child {
    border-radius: 0 0 0 0.5rem;
}

.tableCustom td a {
    font-size: 0.75rem;
    font-weight: 400;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.tableCustom td a i {
    font-size: 1.125rem;
}

.searchTextBarcode input#searchInput {
    width: auto;
    max-width: 100%;
}

.boxCategory {
    width: 100%;
    height: 300px;
    display: flex;
    position: relative;
    border-radius: 0.75rem;
    cursor: pointer;
    overflow: hidden;
}

.boxCategory img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 1s;
}

.boxCategory:hover img {
    transform: scale(1.1);
}

.boxCategory::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.boxCategory h6 {
    position: absolute;
    right: 0.75rem;
    bottom: 1rem;
    z-index: 9;
    color: #fff !important;
    max-width: calc(100% - 2rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.boxProduct .add-product-btn {
    border-radius: 0.25rem;
    font-size: 0.9rem;
    font-weight: 400;
}

.update-quantity-form {
    position: relative;
    display: inline-flex;
    margin-right: auto;
    border: 1px solid #42378775;
    padding: 0.25rem;
    border-radius: 0.325rem;
    gap: 0.325rem;
}

.update-quantity-form input {
    text-align: right;
    border: 1px solid #fff;
    width: 70px;
    padding: 0;
    text-align: center;
    outline: none;
    border-radius: 0.325rem;
    transition: 0.3s;
}

.update-quantity-form input:focus {
    border: 1px solid #413787;
}

.update-quantity-form button {
    border-radius: 0.325rem;
    background-color: #413787;
    border: 1px solid #413787;
    color: #fff;
    border-radius: 0.325rem;
    padding: 0.25rem 0.5rem;
}

.titlePage {
    color: #444050;
    font-size: 1.5rem;
    font-weight: 600;
}

.noUi-horizontal {
    height: 12px !important;
}

.noUi-horizontal .noUi-handle {
    width: 22px !important;
    height: 22px !important;
    border-radius: 5px !important;
}

.noUi-handle:after {
    left: 6px !important;
}

.noUi-handle:after,
.noUi-handle:before {
    top: 3px !important;
}

.noUi-connect {
    background: linear-gradient(-90deg, rgba(23, 102, 94, 0.8), rgba(55, 75, 124, 0.8)) !important;
}

.tableManageProducts tr td:first-child,
.tableManageProducts tr th:first-child {
    width: 35%;
}

.tableCustom .form-check-input,
.headerTimeBox .form-check-input {
    width: 2.75rem;
    height: 1.35rem;
}

.tableCustom .form-check-input:checked,
.headerTimeBox .form-check-input:checked {
    background-color: #176D61;
    border-color: #176D61;
}

.btnToolTable {
    font-size: 0.85rem;
    font-weight: 400;
    border-radius: 0.325rem;
}

.time-box {
    border: 1px solid #dcdcdc;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.time-box .time-slider {
    margin-top: 2.5rem;
}

.time-box .noUi-tooltip {
    font-size: 0.85rem;
    color: #413787;
    font-weight: 500;
}

.headerTimeBox h5 {
    font-size: 1rem;
    color: #636363;
    font-weight: 500;
}

.rowBoxesNums .display-4 {
    position: absolute;
    left: 1.5rem;
    bottom: 1.5rem;
    transform: scale(1.5);
    opacity: 0.8;
    display: flex;
}

.rowBoxesNums .card-body {
    padding: 1rem 1rem 4rem 1rem;
}

.rowBoxesNums .card-title {
    text-align: right;
    font-size: 17px;
}

.rowBoxesNums .card-body p {
    text-align: right;
    padding: 0.5rem;
    font-size: 14px !important;
    font-weight: 400 !important;
    margin: 0 !important;
}

.rowBoxesNums .card-body>div {
    display: flex;
    justify-content: flex-start;
}

/* تنسيقات أساسية للإشعارات */
.notification-dropdown,
.navbar-nav .dropdown-menu {
    position: absolute !important;
    z-index: 9999 !important;
    float: none !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15) !important;
    background: #fff !important;
    min-width: 320px !important;
    max-width: 400px !important;
    right: 0 !important;
    left: auto !important;
    transform: none !important;
    top: 100% !important;
    padding: 0 !important;
    overflow: hidden;
    max-height: 80vh !important;
    overflow-y: auto !important;
}

/* تنسيقات عناصر الإشعارات */
.notification-item {
    display: block !important;
    border-bottom: 1px solid #e9ecef !important;
    padding: 1rem !important;
    transition: all 0.3s ease !important;
    max-width: none !important;
    min-width: auto !important;
    white-space: normal !important;
    background: #fff !important;
}

.notification-item:last-child {
    border-bottom: none !important;
}

.notification-item:hover {
    background-color: #f8f9fa !important;
    transform: translateX(-2px) !important;
}

.notification-item.unread {
    background-color: #f0f8ff !important;
    border-left: 4px solid #007bff !important;
}

.notification-item.unread:hover {
    background-color: #e6f3ff !important;
}

/* تنسيقات محتوى الإشعار */
.notification-dropdown-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 0.75rem !important;
    padding-bottom: 0.5rem !important;
    border-bottom: 1px solid #f1f3f4 !important;
}

.notification-dropdown-icon {
    flex-shrink: 0;
}

.notification-dropdown-icon i {
    font-size: 0.75rem !important;
}

.notification-dropdown-time {
    font-size: 0.75rem !important;
    color: #6c757d !important;
    font-weight: 400 !important;
}

.notification-dropdown-message {
    margin-bottom: 1rem !important;
    line-height: 1.5 !important;
    color: #212529 !important;
    font-size: 0.9rem !important;
}

/* تنسيقات الأزرار */
.notification-dropdown-actions .btn {
    padding: 0.375rem 0.75rem !important;
    font-size: 0.875rem !important;
    border-radius: 6px !important;
    transition: all 0.3s ease !important;
}

.notification-dropdown-actions .btn:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

/* تنسيقات الإشعار الفارغ */
.notification-empty {
    padding: 3rem 1rem !important;
    text-align: center !important;
    background: #f8f9fa !important;
}

.notification-empty i {
    font-size: 3rem !important;
    margin-bottom: 1rem !important;
    color: #adb5bd !important;
}

.notification-empty p {
    color: #6c757d !important;
    font-size: 0.9rem !important;
    margin: 0 !important;
}

/* تنسيقات تذييل الإشعارات */
.notification-footer {
    border-top: 1px solid #e9ecef !important;
    padding: 1rem !important;
    text-align: center !important;
    background: #f8f9fa !important;
}

.notification-footer a {
    color: #495057 !important;
    text-decoration: none !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    padding: 0.5rem 1rem !important;
    border-radius: 6px !important;
    display: inline-block !important;
}

.notification-footer a:hover {
    color: #007bff !important;
    background: #e3f2fd !important;
    transform: translateY(-1px) !important;
}

/* تأكيد ظهور القائمة المنسدلة */
.dropdown-menu.show {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

/* تنسيقات معلومات المنتج في الإشعارات */
.product-info {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 1rem;
}

.product-details {
    padding: 1rem;
}

.product-name,
.product-price,
.product-stock,
.product-id {
    margin-bottom: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f3f4;
}

.product-name:last-child,
.product-price:last-child,
.product-stock:last-child,
.product-id:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.product-name strong,
.product-price strong,
.product-stock strong,
.product-id strong {
    color: #495057;
    margin-left: 0.5rem;
}

.product-price {
    color: #28a745;
    font-weight: 500;
}

.product-stock .badge {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
}

.product-id code {
    background: #e9ecef;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #495057;
}

/* تنسيقات إضافية للإشعارات */
.notification-dropdown-content {
    width: 100%;
}

.notification-dropdown-actions {
    display: flex !important;
    gap: 0.5rem !important;
    justify-content: flex-end !important;
}

/* تأكيد عدم ظهور الإشعارات خارج الشاشة */
@media (max-width: 768px) {
    .notification-dropdown,
    .navbar-nav .dropdown-menu {
        position: fixed !important;
        top: 60px !important;
        right: 10px !important;
        left: 10px !important;
        width: auto !important;
        min-width: auto !important;
        max-width: calc(100vw - 20px) !important;
    }
}

/* إصلاح مشكلة RTL */
[dir="rtl"] .notification-dropdown,
[dir="rtl"] .navbar-nav .dropdown-menu {
    right: auto !important;
    left: 0 !important;
}

[dir="rtl"] .notification-dropdown-actions {
    justify-content: flex-start !important;
}

/* تحسين مظهر زر الإشعارات */
.buttonNotifications {
    padding: 0.5rem !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
}

.buttonNotifications:hover {
    background-color: rgba(69, 47, 139, 0.1) !important;
    transform: translateY(-1px) !important;
}

/* تحسين مظهر العداد */
.buttonNotifications .num {
    width: 1.25rem !important;
    height: 1.25rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.7rem !important;
    font-weight: 600 !important;
    color: #fff !important;
    top: -4px !important;
    right: -4px !important;
    background: linear-gradient(45deg, #ff6b6b, #ee5a52) !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 8px rgba(238, 90, 82, 0.4) !important;
    animation: pulse 2s infinite !important;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(238, 90, 82, 0.4);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 4px 16px rgba(238, 90, 82, 0.6);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(238, 90, 82, 0.4);
    }
}