/* Reset & Base Styles */
:root {
    --primary-color: #136640;
    --primary-dark: #35b16f;
    --primary-light: #9ddbba;
    --secondary-color: #FF7043;
    --secondary-dark: #E64A19;
    --background: #cbbba0;
    --surface: #FFFFFF;
    --error: #D32F2F;
    --success: #388E3C;
    --warning: #FFA000;
    --text-primary: #212121;
    --text-secondary: #757575;
    --divider: #BDBDBD;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Tajawal', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--background);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-bottom: 60px;
    padding-top: 60px;
    overflow-x: hidden;
    /* Space for fixed footer */
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* Header Styles */
header {
    background-color: var(--primary-color);
    color: white;
    padding: 0.7rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    height: 60px;
}

.logo {
    font-size: 1.3rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 6px;
}

.logo img {
    width: 3.5rem;
    height: 1.8rem;
}

.logo i {
    font-size: 0rem;
}

.search-bar {
    flex-grow: 1;
    margin: 0 1rem;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 0.5rem 1rem 0.5rem 0.8rem;
    border-radius: 20px;
    border: none;
    outline: none;
    background-color: rgba(255, 255, 255, 0.9);
    transition: var(--transition);
    font-size: 0.9rem;
}

.search-bar input:focus {
    background-color: white;
    box-shadow: 0 0 0 2px var(--primary-light);
}

.search-bar button {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1rem;
}

.notification-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.1rem;
    position: relative;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    margin-left: 8px;
}

.notification-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.notification-count {
    position: absolute;
    top: 0;
    left: 0;
    background-color: var(--error);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Sidebar Styles */
.sidebar {
    touch-action: pan-y;
    -webkit-overscroll-behavior: contain; /* Older WebKit prefix */
    overscroll-behavior: contain; /* Standard property */
    width: 250px;
    background-color: var(--surface);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    right: -250px;
    height: 100vh;
    z-index: 99;
    transition: var(--transition);
    padding-top: 70px;
    padding-bottom: 100px; /* إضافة مساحة أسفل القائمة لضمان ظهور جميع العناصر */
    overflow-y: auto;
}

.sidebar.open {
    right: 0;
}

.sidebar-toggle {
    position: sticky;
    top: 15px;
    right: 15px;
    background-color: var(--primary-color);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 10%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 101;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0);
    transition: var(--transition);
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 98;
    display: none;
}

.sidebar-open .sidebar-overlay {
    display: block;
}

.sidebar-toggle:hover {
    background-color: var(--primary-dark);
    transform: scale(1.1);
}

.sidebar-menu {
    list-style: none;
    padding: 1rem 0;
    margin-bottom: 80px; /* إضافة هامش سفلي لضمان ظهور جميع العناصر */
}

/* تنسيق عام لعناصر القائمة الجانبية */
.sidebar-item {
    margin: 0.5rem 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.sidebar-item a {
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: inherit;
    text-decoration: none;
    width: 100%;
    font-weight: 500;
    position: relative;
}

/* تنسيق الشارة في القائمة الجانبية */
.sidebar-item .badge {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--error);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.sidebar-item:hover {
    background-color: rgba(87, 194, 132, 0.1);
    color: var(--primary-color);
    transform: translateX(-3px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* تحسين تجربة المستخدم عند النقر على عناصر القائمة */
.sidebar-item:active {
    transform: translateX(-1px);
    transition: transform 0.1s ease;
}

.sidebar-item.active {
    background-color: rgba(87, 194, 132, 0.15);
    color: var(--primary-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.sidebar-item.active::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background-color: var(--primary-color);
    border-radius: 0 4px 4px 0;
}

.sidebar-item i {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.sidebar-item:hover i {
    transform: scale(1.1);
}

/* تنسيق خاص لزر إضافة منتج */
.sidebar-item.add-product {
    background-color: rgba(87, 194, 132, 0.15);
    margin: 1rem 1rem;
}

.sidebar-item.add-product:hover {
    background-color: rgba(87, 194, 132, 0.25);
}

.sidebar-item.add-product a {
    color: var(--primary-color);
    font-weight: 600;
}

.sidebar-item.add-product i {
    color: var(--primary-color);
}

/* تنسيق خاص لزر تسجيل الخروج */
.sidebar-item.logout {
    margin-top: 2rem;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.sidebar-item.logout:hover {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--error);
    border-color: rgba(220, 53, 69, 0.3);
}

.sidebar-item.logout i {
    color: var(--error);
}

/* تنسيق خاص للملف الشخصي */
.sidebar-item.profile {
    background-color: rgba(19, 102, 64, 0.08);
    margin-bottom: 1.5rem;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.sidebar-item.profile::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(19, 102, 64, 0.05) 0%, rgba(53, 177, 111, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.sidebar-item.profile:hover {
    background-color: rgba(19, 102, 64, 0.12);
    color: var(--primary-color);
    transform: translateX(-3px);
    box-shadow: 0 3px 10px rgba(19, 102, 64, 0.15);
}

.sidebar-item.profile:hover::after {
    opacity: 1;
}

.sidebar-item.profile.active {
    background-color: rgba(19, 102, 64, 0.15);
    color: var(--primary-color);
}

.sidebar-item.profile.active::before {
    background-color: var(--primary-color);
}

.sidebar-item.profile a {
    position: relative;
    z-index: 2;
}

.sidebar-item a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: inherit;
    text-decoration: none;
    width: 100%;
}

.sub-links {
    display: none;
    background-color: rgba(87, 194, 132, 0.05);
    border-radius: 0 0 8px 8px;
    overflow: hidden;
    max-height: 0;
    transition: all 0.3s ease-in-out;
    margin: 0 1rem;
    border: 1px solid rgba(87, 194, 132, 0.2);
    border-top: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 10;
}

.sub-links.show {
    display: block;
    max-height: 200px; /* Altura máxima para el menú desplegable */
}

.sub-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.8rem 2.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: var(--transition);
    border-right: 3px solid transparent;
    text-decoration: none;
}

.sub-link:hover {
    color: var(--primary-color);
    background-color: rgba(87, 194, 132, 0.1);
    border-right-color: var(--primary-color);
}

.sub-link i {
    width: 20px;
    text-align: center;
    font-size: 0.9rem;
}

.avatar-container {
    margin-right: auto;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(19, 102, 64, 0.2);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(157, 219, 186, 0.2);
    position: relative;
}

.avatar-container.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(240, 248, 255, 0.7);
    z-index: 1;
}

.avatar-container.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid #0d6efd;
    border-top-color: transparent;
    border-radius: 50%;
    position: absolute;
    z-index: 2;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.sidebar-user-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
    filter: brightness(1.02) contrast(1.05);
}

.sidebar-user-avatar.default-avatar {
    opacity: 0.9;
}

/* تأثير عند تحويم الماوس على صورة المستخدم */
.sidebar-item.profile:hover .sidebar-user-avatar {
    filter: brightness(1.1) contrast(1.08);
}

.sidebar-item.profile:hover .avatar-container {
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(19, 102, 64, 0.3);
    border-color: var(--primary-dark);
}

.sidebar-item.profile:active .avatar-container {
    transform: scale(1.04);
    transition: transform 0.1s ease;
}

.sidebar-item.profile a {
    display: flex;
    align-items: center;
    width: 100%;
    text-decoration: none;
}

/* تنسيق أيقونة المستخدم في الملف الشخصي */
.sidebar-item.profile i {
    color: var(--primary-color);
    font-size: 1.2rem;
    background-color: rgba(157, 219, 186, 0.2);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-left: 5px;
    transition: all 0.3s ease;
}

.sidebar-item.profile:hover i {
    background-color: rgba(157, 219, 186, 0.4);
    transform: scale(1.1);
}

.sidebar-item.profile.active i {
    background-color: var(--primary-color);
    color: white;
}

/* Main Content Styles */
main {
    flex: 1;
    padding: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    transition: var(--transition);
}

main.sidebar-open {
    margin-right: 250px;
}

/* Footer Navigation */
footer {
    background-color: var(--surface);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 60px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    /* إخفاء الفوتر على الأجهزة الكبيرة */
    display: none;
}

.footer-nav {
    width: 100%;
    height: 100%;
    position: relative;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 0 10px;
    position: relative;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.25s ease;
    position: relative;
    width: 55px;
    height: 100%;
    opacity: 0.85;
}

.nav-item[data-page="favorites-page"] {
    margin-left: 2rem;
    /* زيادة المسافة من الجهة اليسرى (نظراً للاتجاه RTL) */
}

.nav-item[data-page="exchange-page"] {
    margin-right: 2rem;
    /* زيادة المسافة من الجهة اليمنى */
}

/* Center Button */
.nav-item.center-button {
    position: absolute;
    left: 50%;
    top: -18px;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white !important;
    box-shadow: 0 4px 10px rgba(87, 194, 132, 0.3);
    border: 3px solid var(--surface);
    z-index: 1001;
    transition: all 0.3s ease;
}

.nav-item.center-button:hover {
    transform: translateX(-50%) scale(1.05);
    box-shadow: 0 6px 15px rgba(87, 194, 132, 0.4);
}

.nav-item.center-button .nav-icon {
    font-size: 1.4rem;
    transition: all 0.3s ease;
}

/* Footer Add Button Menu */
.footer-add-menu {
    position: absolute;
    bottom: 55px;
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.15);
    width: 200px;
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.footer-add-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1);
    bottom: 65px;
}

.footer-add-menu::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid white;
}

.footer-add-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.footer-add-option:hover {
    background-color: rgba(87, 194, 132, 0.1);
    color: var(--primary-color);
}

.footer-add-option i {
    width: 24px;
    text-align: center;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.footer-add-option span {
    font-weight: 500;
}

/* Regular Buttons */
.nav-item:not(.center-button) {
    padding-top: 8px;
}

.nav-item:hover {
    opacity: 1;
    color: var(--primary-color);
}

.nav-item.active {
    color: var(--primary-color);
    opacity: 1;
}

.nav-icon {
    font-size: 1.2rem;
    margin-bottom: 3px;
    transition: all 0.25s ease;
}

.nav-text {
    font-size: 0.8rem;
    display: block;
}

.favorite-count {
    position: absolute;
    top: 2px;
    left: 55%;
    background-color: var(--error);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    display: none;
}

/* أنماط أزرار التسجيل/الحساب */
#auth-section {
    display: flex;
    align-items: center;
}

.auth-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.auth-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

#user-profile-btn {
    cursor: pointer;
}

.hidden {
    display: none !important;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

/* Notification Center */
.notification-center {
    position: fixed;
    top: 70px;
    right: 20px;
    width: 350px;
    max-height: 500px;
    overflow-y: auto;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: none;
    transform: translateY(-20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.notification-center.show {
    display: block;
    transform: translateY(0);
    opacity: 1;
}

.notification-header {
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-title {
    font-weight: bold;
    color: var(--primary-color);
}

.mark-all-read {
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: 500;
    cursor: pointer;
}

.notification-list {
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: var(--transition);
}

.notification-item:hover {
    background-color: #f9f9f9;
}

.notification-item.unread {
    background-color: #f5f5ff;
}

.notification-message {
    color: #1d1d1d;
}

.notification-time {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* Search Results Dropdown */
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-height: 400px;
    overflow-y: auto;
    z-index: 100;
    display: none;
    padding: 0.5rem 0;
    margin-top: 5px;
    /* تخصيص شريط التمرير */
    scrollbar-width: thin;
    scrollbar-color: rgba(19, 102, 64, 0.3) transparent;
}

/* تخصيص شريط التمرير لمتصفح Chrome و Safari */
.search-results::-webkit-scrollbar {
    width: 6px;
}

.search-results::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 10px;
}

.search-results::-webkit-scrollbar-thumb {
    background-color: rgba(19, 102, 64, 0.3);
    border-radius: 10px;
    border: 2px solid transparent;
}

.search-results::-webkit-scrollbar-thumb:hover {
    background-color: rgba(19, 102, 64, 0.5);
}

.search-results.show {
    display: block;
}

.search-result-item {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
}

.search-result-item:hover {
    background-color: #f9f9f9;
}

.search-result-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.search-result-info {
    flex: 1;
}

.search-result-name {
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
}

.search-result-price {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.search-result-details {
    display: flex;
    gap: 10px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.search-result-category {
    background-color: rgba(19, 102, 64, 0.1);
    color: var(--primary-color);
    padding: 2px 8px;
    border-radius: 4px;
}

.search-result-status {
    background-color: rgba(0, 0, 0, 0.05);
    padding: 2px 8px;
    border-radius: 4px;
}

.search-view-all {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.8rem;
    background-color: #f5f5f5;
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    gap: 8px;
    transition: var(--transition);
}

.search-view-all:hover {
    background-color: #e9e9e9;
}

.search-loading {
    padding: 1.5rem;
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
}

.search-error {
    padding: 1rem;
    text-align: center;
    color: var(--error);
}

.no-results {
    padding: 1.5rem;
    text-align: center;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.no-results i {
    font-size: 2rem;
    color: #ddd;
}

/* Search Results Page Styles */
.search-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.search-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.search-count {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* تخصيص شريط التمرير في الصفحة الرئيسية */
.main-content {
    /* تخصيص شريط التمرير */
    padding:10px;
    scrollbar-width: thin;
    scrollbar-color: rgba(19, 102, 64, 0.3) transparent;
}

/* تخصيص شريط التمرير لمتصفح Chrome و Safari */
.main-content::-webkit-scrollbar {
    width: 8px;
}

.main-content::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 10px;
}

.main-content::-webkit-scrollbar-thumb {
    background-color: rgba(19, 102, 64, 0.3);
    border-radius: 10px;
    border: 2px solid transparent;
}

.main-content::-webkit-scrollbar-thumb:hover {
    background-color: rgba(19, 102, 64, 0.5);
}

.no-results, .no-query {
    text-align: center;
    padding: 3rem 1rem;
    background-color: #f9f9f9;
    border-radius: 10px;
    margin: 2rem 0;
}

.no-results-icon, .no-query-icon {
    font-size: 3rem;
    color: #ccc;
    margin-bottom: 1rem;
}

.no-results h2, .no-query h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.no-results p, .no-query p {
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

/* Toast Messages */
.toast-message {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    max-width: 80%;
    text-align: center;
}

.toast-message.show {
    opacity: 1;
}

/* Responsive Adjustments */
@media (max-width: 400px) {
    .nav-container {
        padding: 0 5px;
    }

    .nav-item {
        width: 48px;
    }

    .nav-item.center-button {
        width: 46px;
        height: 46px;
        top: -16px;
    }

    .nav-icon {
        font-size: 1.1rem;
    }

    .nav-text {
        font-size: 0.7rem;
    }
}

@media (min-width: 768px) {
    .nav-container {
        max-width: 600px;
    }

    .nav-item.center-button {
        width: 54px;
        height: 54px;
        top: -20px;
    }
}

@media (max-width: 480px) {
    .sidebar {
        width: 80%;
        right: -80%;
        padding-top: 55px;
        padding-bottom: 70px;
    }

    .sidebar-item {
        margin: 0.35rem 0.7rem;
        border-radius: 5px;
    }

    .sidebar-item a {
        padding: 0.6rem 0.7rem;
        font-size: 0.95rem;
    }

    .sidebar-item i {
        font-size: 1rem;
        width: 20px;
    }

    /* تعديل حجم الشارة */
    .sidebar-item .badge {
        width: 18px;
        height: 18px;
        font-size: 0.65rem;
        left: 6px;
    }

    /* تعديل القائمة الفرعية */
    .sub-links {
        margin: 0 0.7rem;
    }

    .sub-link {
        padding: 0.6rem 0.7rem;
        font-size: 0.85rem;
    }

    /* تعديل صورة المستخدم في القائمة */
    .sidebar-user-avatar {
        width: 28px;
        height: 28px;
    }

    .avatar-container {
        width: 32px;
        height: 32px;
    }

    /* تقليل المسافة بين عناصر القائمة */
    .sidebar-menu {
        padding: 0.5rem 0;
        margin-bottom: 60px;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .logo span {
        display: none;
    }

    .search-bar {
        margin: 0 0.5rem;
    }

    /* Sidebar responsive */
    .sidebar {
        width: 85%;
        right: -85%;
        padding-top: 60px;
        padding-bottom: 80px;
    }

    main.sidebar-open {
        margin-right: 0;
        overflow: hidden;
    }

    .sidebar-toggle {
        right: 10px;
    }

    body.sidebar-open {
        overflow: hidden;
    }

    .notification-center {
        width: 90%;
        right: 5%;
    }

    /* إظهار الفوتر في الأجهزة الصغيرة */
    footer {
        display: block;
    }

    /* إضافة هامش أسفل المحتوى لتجنب تداخل الفوتر */
    main {
        padding-bottom: 70px;
    }

    /* تعديل عناصر القائمة الجانبية */
    .sidebar-item {
        margin: 0.4rem 0.8rem;
        border-radius: 6px;
    }

    .sidebar-item a {
        padding: 0.7rem 0.9rem;
        font-size: 1rem;
    }

    .sidebar-item i {
        font-size: 1.1rem;
        width: 22px;
    }

    /* تعديل حجم الشارة */
    .sidebar-item .badge {
        width: 20px;
        height: 20px;
        font-size: 0.7rem;
        left: 8px;
    }

    /* تعديل القائمة الفرعية */
    .sub-links {
        margin: 0 0.8rem;
    }

    .sub-link {
        padding: 0.7rem 0.9rem;
        font-size: 0.9rem;
    }
}

/* Categories Section */
.categories-container {
    position: relative;
    margin-bottom: 1.5rem;
}

.categories {
    display: flex;
    overflow-x: auto;
    gap: 0.8rem;
    padding: 1rem 0;
    scrollbar-width: none;
    scroll-behavior: smooth;
}

.categories::-webkit-scrollbar {
    display: none;
}

.category {
    min-width: 100px;
    text-align: center;
    padding: 0.8rem 0.5rem;
    background-color: var(--surface);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid transparent;
    flex-shrink: 0;
}

.category:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-light);
}

.category.active {
    background-color: var(--primary-color);
    color: white;
}

.category-icon {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.category.active .category-icon {
    color: white;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* الإعداد الافتراضي للشاشات الصغيرة: بطاقتان في الصف */
    gap: 1rem;
    transition: var(--transition);
}

/* زيادة عدد البطاقات في الصف للشاشات المتوسطة */
@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 بطاقات في الصف */
    }
}

/* زيادة عدد البطاقات في الصف للشاشات الكبيرة */
@media (min-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr); /* 4 بطاقات في الصف */
    }
}

/* زيادة عدد البطاقات في الصف للشاشات الكبيرة جداً */
@media (min-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(5, 1fr); /* 5 بطاقات في الصف */
    }
}

/* Product Card Styles - Based on i.html reference */
.product-card {
    background-color: var(--surface);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    min-width: 0; /* لمنع تجاوز العرض في الشاشات الصغيرة */
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-image-container {
    position: relative;
    width: 100%;
    height: auto;
    overflow: visible;
    padding-bottom: 100%; /* زيادة النسبة إلى 100% لإتاحة مساحة أكبر للصورة */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* تنسيق placeholder للصور */
.image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.image-placeholder::after {
    content: '';
    width: 30px;
    height: 30px;
    border: 3px solid #ddd;
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    margin: auto;
    object-fit: contain; /* تغيير إلى contain لعرض الصورة بمقاسها الأصلي */
    transition: opacity 0.3s, transform 0.3s;
    background-color: transparent;
    z-index: 2;
}

/* تنسيق الصور المحملة تدريجياً */
.lazy-image {
    opacity: 0;
}

.lazy-image.loaded {
    opacity: 1;
}

.product-card:hover .product-image {
    transform: scale(1.03);
}

/* Quick View Button */
.quick-view {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    background-color: rgba(19, 102, 64, 0.9); /* زيادة التعتيم قليلاً */
    padding: 8px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    border-radius: 6px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    z-index: 10; /* تأكيد أن الزر يظهر فوق العناصر الأخرى */
}

.product-card:hover .quick-view,
.product-card:active .quick-view,
.product-card:focus .quick-view {
    opacity: 1;
    transform: translateY(0);
}

.quick-view-btn {
    width: 100%;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.8);
    color: white;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.8rem; /* زيادة حجم الخط قليلاً */
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.quick-view-btn:hover {
    background-color: white;
    color: var(--primary-color);
    transform: scale(1.03);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.quick-view-btn i {
    font-size: 0.85rem; /* تقليل حجم الأيقونة */
}

/* Quick View Modal */
.quick-view-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.quick-view-content {
    background-color: white;
    border-radius: 12px;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: modalFadeIn 0.3s ease;
}

@media (min-width: 768px) {
    .quick-view-content {
        flex-direction: row;
    }
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    border: none;
}

.close-modal:hover {
    background-color: var(--error);
    color: white;
}

.modal-product-image {
    flex: 1;
    padding: 20px;
}

.modal-product-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
}

.modal-product-info {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.modal-product-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.modal-product-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.modal-product-info p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
}

.modal-actions {
    display: flex;
    gap: 10px;
}

.modal-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.modal-btn:first-child {
    background-color: var(--primary-color);
    color: white;
    flex: 2;
}

.modal-btn:first-child:hover {
    background-color: var(--primary-dark);
}

.modal-btn:not(:first-child) {
    background-color: #f0f0f0;
    color: var(--text-primary);
    flex: 1;
}

.modal-btn:not(:first-child):hover {
    background-color: #e0e0e0;
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: bold;
    z-index: 10;
}

.product-badge.sell {
    background-color: var(--primary-color);
    color: white;
}

.product-badge.swap {
    background-color: var(--secondary-color);
    color: white;
}

.product-badge.pickup {
    background-color: var(--warning);
    color: white;
}

.product-info {
    padding: 0.4rem; /* تقليل الهامش الداخلي من 0.6rem إلى 0.4rem */
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* تنسيق عنصر الاحتواء لاسم المنتج والسعر */
.product-title-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.2rem;
}

.product-title {
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-primary);
    font-size: 0.95rem; /* تعديل حجم الخط ليناسب البطاقات الأصغر */
    margin: 0;
    flex: 1;
    padding-left: 5px;
}

.product-price {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 0.95rem; /* تعديل حجم الخط ليناسب البطاقات الأصغر */
    white-space: nowrap;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.3rem; /* تقليل الهامش السفلي من 0.4rem إلى 0.3rem */
    color: var(--text-secondary);
    font-size: 0.65rem; /* تقليل حجم الخط من 0.7rem إلى 0.65rem */
}

.product-category {
    display: flex;
    align-items: center;
    gap: 5px;
}

.product-category i {
    color: var(--primary-color);
}

.product-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Product Features */
.product-features {
    margin-bottom: 15px;
}

.feature-badge {
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    background-color: #f8f9fa;
    color: #555;
    margin-right: 5px;
    display: inline-block;
    margin-bottom: 5px;
}

.product-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.3rem;
    margin-top: auto;
}

.action-btn {
    padding: 0.2rem; /* تقليل الهامش الداخلي */
    border-radius: 3px;
    font-size: 0.7rem; /* تقليل حجم الخط */
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px; /* تقليل المسافة بين الأيقونة والنص */
    border: none;
    cursor: pointer;
}

/* أنماط الأزرار المعطلة */
.action-btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    position: relative;
    box-shadow: none;
}

.action-btn.disabled::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: inherit;
}

.buy-btn {
    background-color: var(--primary-color);
    color: white;
    width: 48%;
}

.buy-btn:hover {
    background-color: var(--primary-dark);
}

.exchange-btn {
    background-color: var(--secondary-color);
    color: white;
    width: 48%;
}

.exchange-btn:hover {
    background-color: var(--secondary-dark);
}

.details-btn {
    background-color: #EEEEEE;
    color: var(--text-primary);
    width: 100%;
    margin-top: 0.2rem; /* تقليل الهامش العلوي من 0.3rem إلى 0.2rem */
}

.details-btn:hover {
    background-color: #E0E0E0;
}

/* Product Status */
.product-status {
    display: inline-block;
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.product-status.new {
    background-color: #E8F5E9;
    color: var(--success);
}

.product-status.used {
    background-color: #FFF8E1;
    color: var(--warning);
}

.product-status.old {
    background-color: #FFEBEE;
    color: var(--error);
}

/* Favorite Button */
.favorite-btn {
    position: absolute;
    top: 5px;
    left: 5px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #ccc;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    z-index: 10;
}

.favorite-btn:hover {
    color: #fe9d9d;
    transform: scale(1.1);
}

.favorite-btn.active {
    color: #ff4757;
}

/* حالة التحميل لزر المفضلة */
.favorite-btn.loading {
    pointer-events: none;
    position: relative;
    color: transparent;
}

.favorite-btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid #ccc;
    border-top-color: #ff4757;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.favorite-btn.active.loading::after {
    border: 2px solid #ff4757;
    border-top-color: transparent;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Page Title */
.page-title {
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-title i {
    font-size: 1.5rem;
}

/* Responsive Adjustments for Products */
@media (max-width: 768px) {
    .products-grid {
        gap: 0.6rem; /* تقليل المسافة بين البطاقات */
    }

    .category {
        min-width: 80px;
        padding: 0.8rem 0.3rem;
    }

    .category-icon {
        font-size: 1.5rem;
    }

    .product-image-container {
        padding-bottom: 100%; /* الحفاظ على نسبة 100% للصورة */
    }

    /* تحسين زر العرض السريع في الشاشات الصغيرة */
    .quick-view {
        bottom: 8px;
        left: 8px;
        right: 8px;
        padding: 6px;
        z-index: 10;
    }

    .quick-view-btn {
        font-size: 0.75rem;
        padding: 6px;
    }

    /* تأكيد أن الأزرار تظهر بجوار بعضها */
    .product-actions {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 0.2rem; /* تقليل المسافة بين الأزرار */
    }

    .buy-btn, .exchange-btn {
        width: 48%;
    }

    .details-btn {
        width: 100%;
        margin-top: 0.2rem; /* تقليل الهامش العلوي */
    }
}

/* تحسينات للأجهزة الصغيرة جداً */
@media (max-width: 360px) {
    /* تحسينات القائمة الجانبية للأجهزة الصغيرة جداً */
    .sidebar {
        width: 75%;
        right: -75%;
        padding-top: 50px;
        padding-bottom: 65px;
    }

    .sidebar-item {
        margin: 0.3rem 0.6rem;
        border-radius: 4px;
    }

    .sidebar-item a {
        padding: 0.5rem 0.6rem;
        font-size: 0.9rem;
    }

    .sidebar-item i {
        font-size: 0.95rem;
        width: 18px;
    }

    .sidebar-item .badge {
        width: 16px;
        height: 16px;
        font-size: 0.6rem;
        left: 5px;
    }

    .sub-links {
        margin: 0 0.6rem;
    }

    .sub-link {
        padding: 0.5rem 0.6rem;
        font-size: 0.8rem;
    }

    .avatar-container {
        width: 30px;
        height: 30px;
        border-width: 1px;
    }

    .sidebar-menu {
        padding: 0.4rem 0;
        margin-bottom: 50px;
    }

    /* تحسينات بطاقات المنتجات */
    .products-grid {
        gap: 0.4rem; /* تقليل المسافة بين البطاقات أكثر */
    }

    .product-image-container {
        padding-bottom: 100%; /* الحفاظ على نسبة 100% للصورة */
    }

    /* تحسين زر العرض السريع في الشاشات الصغيرة جداً */
    .quick-view {
        bottom: 5px;
        left: 5px;
        right: 5px;
        padding: 5px;
        z-index: 10;
        opacity: 0; /* إخفاء الزر حتى يتم لمس البطاقة */
    }

    .quick-view-btn {
        font-size: 0.7rem;
        padding: 5px;
        gap: 4px;
    }

    .quick-view-btn i {
        font-size: 0.8rem;
    }

    .product-info {
        padding: 0.3rem; /* تقليل الهامش الداخلي من 0.5rem إلى 0.3rem */
    }

    .product-title {
        font-size: 0.85rem; /* زيادة حجم الخط */
    }

    .product-price {
        font-size: 0.85rem; /* زيادة حجم الخط */
    }

    .product-meta {
        font-size: 0.6rem; /* تقليل حجم الخط من 0.65rem إلى 0.6rem */
        margin-bottom: 0.2rem; /* تقليل الهامش السفلي من 0.3rem إلى 0.2rem */
    }

    .action-btn {
        padding: 0.15rem; /* زيادة الهامش الداخلي قليلاً */
        font-size: 0.6rem; /* زيادة حجم الخط */
    }

    /* تأكيد أن الأزرار تظهر بجوار بعضها حتى في الشاشات الصغيرة جدًا */
    .product-actions {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 0.15rem; /* تقليل المسافة بين الأزرار من 0.2rem إلى 0.15rem */
    }

    .buy-btn, .exchange-btn {
        width: 48%;
    }

    .details-btn {
        width: 100%;
        margin-top: 0.15rem; /* تقليل الهامش العلوي من 0.2rem إلى 0.15rem */
    }
}

/* Wallet Styles */
.balance-card {
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    padding: 30px;
    text-align: center;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.balance-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.balance-card h2 {
    font-size: 36px;
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 10px;
}

.balance-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.btn-custom {
    background-color: var(--primary-color);
    color: white;
    width: 100%;
    font-weight: 600;
    padding: 12px;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-custom:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(87, 194, 132, 0.3);
}

.transaction-table {
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 30px;
}

.transaction-table .card-header {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 20px;
    font-weight: bold;
    font-size: 18px;
}

.transaction-table table {
    margin-bottom: 0;
}

.transaction-table th,
.transaction-table td {
    padding: 15px;
    text-align: center;
    vertical-align: middle;
}

.transaction-table tbody tr {
    transition: all 0.3s ease;
}

.transaction-table tbody tr:hover {
    background-color: #f8f9fa;
}

.badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 12px;
}

.bg-success {
    background-color: #28a745 !important;
}

.bg-danger {
    background-color: #dc3545 !important;
}

/* Modal Styles */
.modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.modal-header {
    background-color: var(--primary-color);
    color: white;
    border-radius: 20px 20px 0 0;
    padding: 15px 20px;
}

.modal-title {
    font-weight: bold;
}

.modal-body {
    padding: 20px;
}

.form-label {
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-control {
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(87, 194, 132, 0.2);
}

.form-select {
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(87, 194, 132, 0.2);
}

/* Favorite Items */
.favorite-item {
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    padding: 20px;
    transition: all 0.3s ease;
}

.favorite-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.favorite-item img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
}

.favorite-item .item-info {
    margin-right: 20px;
    flex-grow: 1;
}

.favorite-item .item-info h5 {
    font-size: 18px;
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 8px;
}

.favorite-item .item-info p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 10px;
}

.favorite-item .item-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.favorite-item .item-actions .btn-cart,
.favorite-item .item-actions .remove-btn {
    padding: 8px 15px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
}

.favorite-item .btn-cart {
    background-color: var(--primary-color);
    color: white;
    border: none;
}

.favorite-item .btn-cart:hover {
    background-color: var(--primary-dark);
}

.favorite-item .remove-btn {
    color: var(--error);
    background-color: transparent;
    border: 1px solid var(--error);
}

.favorite-item .remove-btn:hover {
    background-color: var(--error);
    color: white;
}

/* Cart Summary */
.cart-summary {
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 25px;
    position: sticky;
    top: 100px;
    transition: all 0.3s ease;
}

.cart-summary:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.summary-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 16px;
}

.summary-item:last-of-type {
    font-weight: bold;
    padding-top: 10px;
    margin-top: 10px;
    border-top: 1px solid #f0f0f0;
}

.checkout-btn {
    background-color: var(--primary-color);
    color: white;
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.checkout-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(87, 194, 132, 0.3);
}

/* Profile Page Styles */
.profile-page {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.user-profile {
    background-color: var(--surface);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    transition: all 0.3s ease;
}

.user-profile:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.avatar-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-light);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.avatar-upload-label {
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.avatar-upload-label:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.profile-info {
    flex: 1;
}

.user-name {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.user-email {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group.full-width {
    width: 100%;
}

.form-group label {
    font-weight: 600;
    color: var(--text-secondary);
}

.form-control {
    padding: 0.8rem 1rem;
    border: 1px solid var(--divider);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px var(--primary-light);
    outline: none;
}

.submit-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 0.8rem;
    border-radius: 8px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    margin-top: 1rem;
}

.submit-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(87, 194, 132, 0.3);
}

/* User Stats */
.user-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background-color: var(--surface);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    border-right: 4px solid transparent;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.products-card {
    border-right-color: #136640;
}

.favorites-card {
    border-right-color: #e74c3c;
}

.exchanges-card {
    border-right-color: #3498db;
}

.wallet-card {
    border-right-color: #f39c12;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 20px;
    color: white;
}

.products-card .stat-icon {
    background-color: rgba(19, 102, 64, 0.1);
    color: #136640;
}

.favorites-card .stat-icon {
    background-color: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

.exchanges-card .stat-icon {
    background-color: rgba(52, 152, 219, 0.1);
    color: #3498db;
}

.wallet-card .stat-icon {
    background-color: rgba(243, 156, 18, 0.1);
    color: #f39c12;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-info {
    flex: 1;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Recent Activity */
.recent-activity {
    background-color: var(--surface);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.recent-activity:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.section-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
}

.activity-item:hover {
    background-color: #f0f0f0;
    transform: translateX(-5px);
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.activity-info {
    flex: 1;
}

.activity-title {
    font-weight: 600;
    color: var(--text-primary);
}

.activity-time {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Alert Messages */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.alert-success {
    background-color: #E8F5E9;
    color: var(--success);
    border: 1px solid #C8E6C9;
}

.alert-danger {
    background-color: #FFEBEE;
    color: var(--error);
    border: 1px solid #FFCDD2;
}

/* Responsive Adjustments */
@media (min-width: 768px) {
    .user-profile {
        flex-direction: row;
    }

    .avatar-upload {
        margin-left: 2rem;
    }
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }

    .user-stats {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }
}

/* Add Product Page Styles */
.add-product-container {
    max-width: 800px;
    margin: 0 auto;
}

.add-product-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-section {
    background-color: var(--surface);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    transition: all 0.3s ease;
}

.form-section:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.section-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--divider);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px var(--primary-light);
    outline: none;
}

.form-text {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.form-row {
    display: flex;
    gap: 1rem;
}

.product-type-options {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.product-type-option {
    flex: 1;
    position: relative;
    cursor: pointer;
}

.product-type-option input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.option-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border: 2px solid var(--divider);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.option-content i {
    font-size: 1.5rem;
    color: var(--text-secondary);
}

.product-type-option input:checked + .option-content {
    border-color: var(--primary-color);
    background-color: rgba(87, 194, 132, 0.1);
}

.product-type-option input:checked + .option-content i,
.product-type-option input:checked + .option-content span {
    color: var(--primary-color);
    font-weight: 600;
}

.single-upload-container {
    margin-bottom: 1.5rem;
}

.image-preview-container {
    position: relative;
    margin-bottom: 1rem;
}

.image-preview-wrapper {
    position: relative;
    overflow: hidden;
}

.image-preview {
    width: 100%;
    height: 250px;
    border: 2px dashed var(--divider);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    background-color: #f9f9f9;
    position: relative;
}

.image-preview i {
    font-size: 2.5rem;
    color: var(--divider);
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.image-preview p {
    color: var(--text-secondary);
    font-size: 1rem;
    text-align: center;
    padding: 0 1rem;
    margin-bottom: 0.5rem;
}

.upload-count {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.image-preview.highlight {
    border-color: var(--primary-color);
    background-color: rgba(87, 194, 132, 0.05);
}

.image-preview:hover i {
    color: var(--primary-color);
    transform: scale(1.1);
}

.image-preview.has-image {
    border-style: solid;
    border-color: var(--primary-color);
    padding: 0;
}

.image-preview.has-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-thumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 1rem;
}

.image-thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    border: 2px solid var(--divider);
    transition: all 0.3s ease;
}

.image-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-thumbnail.main {
    border-color: var(--primary-color);
}

.image-thumbnail .thumbnail-actions {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-thumbnail:hover .thumbnail-actions {
    opacity: 1;
}

.thumbnail-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: white;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.thumbnail-btn:hover {
    transform: scale(1.1);
}

.thumbnail-btn.delete-btn:hover {
    background-color: var(--error);
    color: white;
}

.thumbnail-btn.main-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.upload-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.upload-btn {
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    background-color: #f5f5f5;
    color: var(--text-secondary);
    border: 1px solid var(--divider);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.upload-btn:hover {
    background-color: #eeeeee;
    color: var(--text-primary);
}

.upload-btn i {
    font-size: 1rem;
}

.clear-btn {
    background-color: #FFF5F5;
    color: var(--error);
    border-color: #FFCDD2;
}

.clear-btn:hover {
    background-color: #FFEBEE;
    color: var(--error);
}

.image-tips {
    background-color: rgba(87, 194, 132, 0.1);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.image-tips p {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.image-tips ul {
    padding-right: 1.5rem;
    margin: 0;
}

.image-tips li {
    color: var(--text-secondary);
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
}

.form-actions {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    justify-content: center;
}

.submit-btn, .cancel-btn {
    min-width: 180px;
    height: 50px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.submit-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    flex: 0 0 auto;
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s ease;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(87, 194, 132, 0.4);
}

.submit-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 5px rgba(87, 194, 132, 0.4);
}

.cancel-btn {
    background-color: white;
    color: var(--text-secondary);
    border: 1px solid var(--divider);
    flex: 0 0 auto;
}

.cancel-btn:hover {
    background-color: #f8f8f8;
    color: var(--text-primary);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.cancel-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.submit-btn i, .cancel-btn i {
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.submit-btn:hover i {
    transform: translateX(-3px);
}

.info-card {
    background-color: #FFF8E1;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
    border-right: 4px solid var(--warning);
}

.info-icon {
    font-size: 2rem;
    color: var(--warning);
    display: flex;
    align-items: flex-start;
}

.info-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.info-content p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.info-content ul {
    padding-right: 1.5rem;
    margin: 0;
}

.info-content li {
    margin-bottom: 0.3rem;
    color: var(--text-secondary);
}

.pricing-info {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 1.5rem;
}

.pricing-item {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--divider);
}

.pricing-item.total {
    border-bottom: none;
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

.pricing-note {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.pricing-note i {
    color: var(--warning);
}

/* Terms Styles */
.terms-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.term-item {
    display: flex;
    gap: 1rem;
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.term-item:hover {
    transform: translateX(-5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.term-icon {
    font-size: 1.5rem;
    display: flex;
    align-items: flex-start;
}

.term-icon i {
    color: var(--primary-color);
}

.term-item:nth-child(2) .term-icon i {
    color: var(--error);
}

.term-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.term-content p {
    color: var(--text-secondary);
    margin: 0;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-check-input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.form-check-label {
    color: var(--text-primary);
    font-weight: 500;
    cursor: pointer;
}

/* Alert Messages */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.alert-success {
    background-color: #E8F5E9;
    color: var(--success);
    border: 1px solid #C8E6C9;
}

.alert-danger {
    background-color: #FFEBEE;
    color: var(--error);
    border: 1px solid #FFCDD2;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }

    .product-type-options {
        flex-direction: column;
    }

    .info-card {
        flex-direction: column;
    }

    .form-actions {
        flex-direction: column-reverse;
        gap: 1rem;
    }

    .submit-btn, .cancel-btn {
        width: 100%;
        min-width: unset;
    }

    .submit-btn {
        margin-bottom: 0.5rem;
    }

    .additional-images {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .form-section {
        padding: 1.5rem 1rem;
    }

    .section-title {
        font-size: 1.1rem;
    }

    .submit-btn, .cancel-btn {
        height: 45px;
        font-size: 0.9rem;
    }

    .additional-images {
        grid-template-columns: repeat(1, 1fr);
    }

    .main-preview {
        height: 200px;
    }

    .image-preview {
        height: 120px;
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

/* تنسيقات الإشعارات السريعة */
.quick-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    text-align: center;
    max-width: 90%;
    min-width: 250px;
}

.quick-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.quick-notification.success {
    background-color: #28a745;
    color: white;
}

.quick-notification.error {
    background-color: #dc3545;
    color: white;
}

.quick-notification.warning {
    background-color: #ffc107;
    color: #333;
}

.quick-notification.info {
    background-color: #17a2b8;
    color: white;
}

/* تعديلات القائمة الجانبية للأجهزة الصغيرة */
@media (max-width: 576px) {
    .sidebar {
        width: 220px; /* تقليل عرض القائمة الجانبية في الأجهزة الصغيرة */
    }

    .sidebar-item {
        margin: 0.4rem 0.8rem;
    }

    .sidebar-item a {
        padding: 0.7rem 0.8rem;
        font-size: 0.9rem;
    }

    .sidebar-item i {
        font-size: 1rem;
        width: 20px;
    }

    .sub-links {
        margin: 0 0.8rem;
    }

    .sub-link {
        padding: 0.7rem 2rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 400px) {
    .sidebar {
        width: 200px; /* تقليل عرض القائمة الجانبية أكثر في الأجهزة الصغيرة جداً */
    }

    .sidebar-item {
        margin: 0.3rem 0.6rem;
    }

    .sidebar-item a {
        padding: 0.6rem 0.7rem;
        font-size: 0.85rem;
    }
}
