/* assets/css/style.css - ملف التصميم الرئيسي */

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

body {
    font-family: 'Cairo', sans-serif;
    background-color: #f8f5f0;
    color: #2c1810;
    line-height: 1.6;
}

:root {
    --primary-gradient: linear-gradient(135deg, #bd9656 0%, #9a7118 100%);
    --primary-color: #bd9656;
    --secondary-color: #9a7118;
    --text-dark: #2c1810;
    --text-light: #6b4423;
    --bg-light: #f8f5f0;
    --white: #ffffff;
    --shadow: 0 4px 15px rgba(0,0,0,0.1);
    --border-radius: 15px;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header Styles */
.main-header {
    background: var(--primary-gradient);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

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

.nav-icons {
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 100%;
}

.nav-icons > * {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
}

.nav-brand .logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-brand .logo h1 {
    color: var(--white);
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.nav-menu {
    display: flex;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    background-color: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--white);
    transition: 0.3s;
}

.cart-icon {
    position: relative;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.2);
    min-height: 50px;
    min-width: 50px;
}

.cart-icon:hover {
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(189,150,86,0.1), rgba(154,113,24,0.1));
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 70%, rgba(189,150,86,0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(154,113,24,0.1) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    background: var(--primary-gradient);
    color: var(--white);
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(189,150,86,0.3);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.product-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.product-image {
    height: 200px;
    background: linear-gradient(45deg, #bd9656, #9a7118);
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #e74c3c;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.product-info p {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.product-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
}

.product-weight {
    color: var(--text-light);
    font-size: 0.9rem;
}

.add-to-cart-btn {
    width: 100%;
    background: var(--primary-gradient);
    color: var(--white);
    border: none;
    padding: 0.8rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(189,150,86,0.3);
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: var(--white);
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 1001;
    overflow-y: auto;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #eee;
    background: var(--primary-gradient);
    color: var(--white);
}

.close-cart {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

.cart-content {
    padding: 1rem;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Section Styles */
.section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.footer-section p,
.footer-section a {
    color: #ccc;
    text-decoration: none;
    margin-bottom: 0.5rem;
    display: block;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #444;
    color: #999;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--primary-gradient);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        transition: right 0.3s ease;
        padding-top: 2rem;
        text-align: left;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        text-align: center;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .section-title {
        font-size: 2rem;
    }
    .navbar .container {
    display: flex;
    align-items: center; /* Vertically align all items */
  }

  /* 2. Push the hamburger menu and everything after it to the right */
  .nav-toggle {
    margin-right: auto; /* This is the magic key! */
    margin-left: 3px;
  }
  
  /* 3. Add some space between the hamburger menu and the cart icon */
  .nav-icons {
    margin-right: 1rem; /* 1rem is usually 16px */
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 100%;
  }
  
  .nav-icons > * {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
  }

  /* 4. Ensure the main nav menu doesn't interfere with the layout */
  .nav-menu {
    /* Your existing styles for positioning it off-screen are likely correct */
    /* This rule just makes sure it's not a flex item on desktop */
    display: none; 
  }

  .nav-menu.active {
      display: flex; /* Make it visible when active */
  }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-card {
        margin: 0 1rem;
    }
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-family: 'Cairo', sans-serif;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn {
    background: var(--primary-gradient);
    color: var(--white);
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Cairo', sans-serif;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(189,150,86,0.3);
}

.btn-sh {
    background: var(--primary-gradient);
    color: var(--white);
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Cairo', sans-serif;
    padding-top: 20px;
        text-decoration: none;

}

.btn-sh:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(189,150,86,0.3);
}
/* Alert Messages */
.alert {
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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


/* =================================
   Cart Sidebar - تحسينات سلة التسوق
   ================================= */

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -100%; /* يبدأ مخفياً */
    width: 420px;
    max-width: 90%; /* يضمن عدم تجاوزه 90% من عرض الشاشة الصغيرة */
    height: 100vh;
    background: var(--white);
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: right 0.4s ease-in-out;
    z-index: 1001;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #eee;
    background: var(--primary-gradient);
    color: var(--white);
    flex-shrink: 0; /* يمنع التقلص */
}

.cart-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.close-cart {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.close-cart:hover {
    transform: rotate(90deg);
}

.cart-body {
    padding: 1rem;
    flex-grow: 1; /* يأخذ المساحة المتاحة */
    overflow-y: auto; /* يسمح بالتمرير عند زيادة المنتجات */
}

/* Cart Items Styling */
.cart-item {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.cart-item:last-child {
    border-bottom: none;
}

/* تم التعديل هنا */
.cart-item-image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--border-radius);
    border: 2px solid #eee;
}

.cart-item-details {
    flex-grow: 1;
}

/* تم التعديل هنا */
.cart-item-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 0.5rem 0;
}

/* تم التعديل هنا */
.cart-item-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-item-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* تم التعديل هنا */
.quantity-controls {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 20px;
}

/* تم التعديل هنا */
.quantity-controls .quantity-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.3rem 0.7rem;
    font-size: 1.2rem;
    color: var(--text-light);
}

/* تم التعديل هنا */
.quantity-controls span {
    padding: 0 0.5rem;
    font-weight: 600;
}

/* تم التعديل هنا */
.remove-item {
    background: none;
    border: none;
    color: #e74c3c;
    font-size: 1rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.2s;
}

.remove-item:hover {
    color: #c0392b;
}

/* Empty Cart Message */
.cart-empty {
    text-align: center;
    padding: 4rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    color: var(--text-light);
}

.cart-empty i {
    color: #ccc;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 2px solid #f0f0f0;
    background: #fff;
    flex-shrink: 0; /* يمنع التقلص */
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 700;
}

.cart-total span:last-child {
    color: var(--primary-color);
}

.btn-checkout {
    width: 100%;
    text-align: center;
    padding: 1rem;
    font-size: 1.1rem;
}

/* تعديل مهم لمنع تمرير الصفحة عند فتح السلة */
body.cart-open {
    overflow: hidden;
}

/* =================================
   User Authentication Styles
   ================================= */

.auth-links {
    display: flex;
    gap: 12px;
    align-items: center;
    height: 100%;
}

.auth-link {
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    justify-content: center;
    min-height: 50px;
}

.auth-link span {
    display: inline-block;
}

.auth-link::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: left 0.5s ease;
}

.auth-link:hover::before {
    left: 100%;
}

.login-link {
    color: var(--white);
    border-color: rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}

.login-link:hover {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.6);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255,255,255,0.2);
}

.register-link {
    background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.1) 100%);
    color: var(--white);
    border-color: rgba(255,255,255,0.5);
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.register-link:hover {
    background: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0.2) 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.7);
}

.auth-link i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    display: inline-block; /* إظهار الأيقونات على الكمبيوتر */
    margin-left: 5px;
}

.auth-link:hover i {
    transform: scale(1.1) rotate(5deg);
}

/* إضافة تأثيرات إضافية للأزرار */
.auth-link:active {
    transform: translateY(1px);
    transition: transform 0.1s ease;
}

/* تأثير النبض للزر الرئيسي */
.register-link {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }
    50% {
        box-shadow: 0 4px 15px rgba(0,0,0,0.1), 0 0 0 8px rgba(255,255,255,0.1);
    }
    100% {
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }
}

/* User Menu Dropdown */
.user-menu {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

.user-dropdown {
    position: relative;
}

.user-btn {
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.1) 100%);
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.3);
    padding: 10px 18px;
    border-radius: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Cairo', sans-serif;
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    min-height: 50px;
}

.user-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: left 0.5s ease;
}

.user-btn:hover::before {
    left: 100%;
}

.user-btn:hover {
    background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.2) 100%);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255,255,255,0.2);
}

.user-btn i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.user-btn:hover i {
    transform: scale(1.1);
}

.user-dropdown-content {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    min-width: 220px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(189,150,86,0.2);
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.user-dropdown:hover .user-dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.user-dropdown-content::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    width: 16px;
    height: 16px;
    background: white;
    border: 1px solid rgba(189,150,86,0.2);
    border-bottom: none;
    border-right: none;
    transform: rotate(45deg);
}

.user-dropdown-content a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(240,240,240,0.5);
    position: relative;
    overflow: hidden;
}

.user-dropdown-content a:last-child {
    border-bottom: none;
}

.user-dropdown-content a::before {
    content: '';
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    transition: right 0.3s ease;
    z-index: -1;
}

.user-dropdown-content a:hover::before {
    right: 0;
}

.user-dropdown-content a:hover {
    color: white;
    transform: translateX(8px);
    box-shadow: 0 5px 15px rgba(189,150,86,0.3);
}

.user-dropdown-content a i {
    width: 18px;
    text-align: center;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.user-dropdown-content a:hover i {
    transform: scale(1.1);
}

.user-dropdown-content a span {
    font-weight: 600;
    transition: all 0.3s ease;
}

.user-dropdown-content a:hover span {
    transform: translateX(2px);
}

/* تأثيرات إضافية لقائمة المستخدم */
.user-dropdown-content a:nth-child(1) {
    animation-delay: 0.1s;
}

.user-dropdown-content a:nth-child(2) {
    animation-delay: 0.2s;
}

.user-dropdown-content a:nth-child(3) {
    animation-delay: 0.3s;
}

.user-dropdown-content a {
    animation: slideInRight 0.3s ease forwards;
    opacity: 0;
    transform: translateX(20px);
}

.user-dropdown:hover .user-dropdown-content a {
    animation: slideInRight 0.3s ease forwards;
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* تأثير التموج عند النقر */
.user-btn:active {
    transform: translateY(-1px) scale(0.98);
    transition: all 0.1s ease;
}

/* تأثير الإضاءة للقائمة */
.user-dropdown-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(189,150,86,0.05) 0%, rgba(154,113,24,0.05) 100%);
    pointer-events: none;
    border-radius: 20px;
}

/* Responsive Design for Auth */
@media (max-width: 768px) {
    .nav-icons {
        flex-direction: row; /* جعل العناصر في نفس الصف */
        gap: 8px;
        align-items: center;
    }
    
    .auth-links {
        flex-direction: row; /* جعل الأزرار في نفس الصف */
        gap: 6px;
        width: auto;
    }
    
    .auth-link {
        width: auto;
        text-align: center;
        padding: 8px;
        font-size: 0.8rem;
        min-width: 40px;
        min-height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* إخفاء النص وإظهار الأيقونات فقط على الهاتف */
    .auth-link span {
        display: none;
    }
    
    .auth-link i {
        display: inline-block !important;
        margin: 0;
        font-size: 1rem;
    }
    
    .user-dropdown-content {
        right: -20px;
        min-width: 180px;
        top: calc(100% + 10px);
    }
    
    .user-btn span {
        display: none;
    }
    
    .user-btn {
        padding: 8px;
        font-size: 0.8rem;
        min-height: 40px;
        min-width: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .user-dropdown-content a {
        padding: 10px 15px;
        font-size: 0.85rem;
    }
    
    .cart-icon {
        min-height: 40px;
        min-width: 40px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .nav-icons {
        gap: 4px;
    }
    
    .auth-links {
        gap: 4px;
    }
    
    .auth-link {
        padding: 6px;
        font-size: 0.75rem;
        min-height: 35px;
        min-width: 35px;
    }
    
    /* إظهار الأيقونات فقط على الهاتف الصغير */
    .auth-link span {
        display: none;
    }
    
    .auth-link i {
        display: inline-block !important;
        margin: 0;
        font-size: 0.9rem;
    }
    
    .user-dropdown-content {
        right: -15px;
        min-width: 160px;
    }
    
    .user-btn {
        padding: 6px;
        font-size: 0.75rem;
        min-height: 35px;
        min-width: 35px;
    }
    
    .cart-icon {
        min-height: 35px;
        min-width: 35px;
        font-size: 1.1rem;
    }
}

/* Responsive Design for Cart */
@media (max-width: 768px) {
    /* ... الأنماط السابقة ... */
    
    .cart-sidebar {
        width: 100%;
        max-width: 100%; /* يأخذ العرض كاملاً */
        right: -100%;
    }
}
/* ---- تصميم جديد لأزرار الكمية ---- */

.quantity-controls {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 25px; /* حواف أكثر دائرية */
    overflow: hidden;    /* لإخفاء أي زوائد خارج الحواف الدائرية */
    background-color: #fff;
}

.quantity-controls button {
    background-color: transparent; /* خلفية شفافة */
    border: none;
    cursor: pointer;
    padding: 8px 12px;
    font-size: 16px;
    font-weight: bold;
    color: #555;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.quantity-controls button:hover {
    background-color: #f0f0f0; /* لون خفيف عند التمرير */
    color: #000;
}

.quantity-controls span {
    padding: 0 12px;
    font-weight: 700; /* خط أعرض للرقم */
    font-size: 16px;
    min-width: 20px; /* عرض أدنى لمنع اهتزاز التصميم عند تغير الرقم */
    text-align: center;
    border-left: 1px solid #ddd;  /* فاصل يسار الرقم */
    border-right: 1px solid #ddd; /* فاصل يمين الرقم */
}

/* لإزالة الفاصل من الأطراف (اختياري لكن يحسن المظهر) */
.quantity-controls button:first-child + span {
    border-left: none;
}
.quantity-controls span + button {
    border-left: 1px solid #ddd;
}