/* Additional Custom Styles for Oozy Restaurant */

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Accessibility Classes */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Enhanced Focus States */
.btn:focus,
.nav-link:focus,
input:focus,
button:focus {
    outline: 2px solid var(--primary-gold);
    outline-offset: 2px;
}

/* Additional Button Variations */
.btn-ghost {
    background: transparent;
    color: var(--primary-gold);
    border: 2px solid var(--primary-gold);
}

.btn-ghost:hover {
    background: var(--primary-gold);
    color: white;
}

/* بطاقات الأقسام الرئيسية */
.main-sections-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .section-card {
    background: transparent;
    border: 3px solid #d4af37;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    color: white;
  }
  
  .section-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  }
  
  .section-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    position: relative;
  }
  
  .section-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(27,94,32,0.8) 0%, rgba(46,125,50,0.6) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .section-card:hover .section-card-overlay {
    opacity: 1;
  }
  
  .section-card-content {
    padding: 25px;
    text-align: center;
  }
  
  .section-card-title {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  }

  .section-card-title i {
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
  }
  
  .section-card-description {
    color: rgba(255,255,255,0.9);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
  }
  
  .section-card-button {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
  }
  
  .section-card-button:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  }

  /* زر العودة للقائمة الرئيسية */
  .back-to-categories-btn {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #2e7d32;
    color: #2e7d32;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    /* إزالة float واستخدام positioning أفضل */
    position: relative;
    margin-left: auto;
    margin-right: 0;
    box-shadow: 0 2px 8px rgba(46, 125, 50, 0.15);
  }
  
  .back-to-categories-btn:hover {
    background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
    color: white;
    transform: translateY(-2px) translateX(-3px);
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
  }
  
  .back-to-categories-btn i {
    font-size: 14px;
    transition: transform 0.3s ease;
  }
  
  .back-to-categories-btn:hover i {
    transform: translateX(-2px);
  }
  
  /* تحسين للموبايل */
  @media (max-width: 768px) {
    .back-to-categories-btn {
      font-size: 12px;
      padding: 8px 16px;
      margin-bottom: 15px;
      width: auto;
      justify-self: flex-end;
    }
  }
  /* إضافة: container لزر العودة */
  .dishes-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 15px;
    width: 100%;
  }
  
  .dishes-header .back-to-categories-btn {
    margin: 0; /* إزالة margin لأن الـ container يتحكم في الموضع */
  }
  
  /* إخفاء/إظهار المحتوى */
  .hidden-view {
    display: none !important;
  }

.feature-card:hover .feature-title {
    color: var(--primary-gold);
}

/* Animation Enhancements */
.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.fade-in-left {
    animation: fadeInLeft 0.8s ease-out;
}

.fade-in-right {
    animation: fadeInRight 0.8s ease-out;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.mb-20 {
    margin-bottom: 20px;
}

.mt-20 {
    margin-top: 20px;
}

.p-20 {
    padding: 20px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-gold);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-dark);
}

/* Main Dishes Section Styles */
.main-dishes-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8ae4d 0%, #e6d7c0 100%);
    position: relative;
    overflow: hidden;
}

.main-dishes-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(240, 188, 18, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

/* Category Tabs */
.category-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 50px 0;
    flex-wrap: wrap;
}

.category-tab {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: #fff9f3;
    border: 2px solid #d4af37;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    color: #3a3a3a;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.15);
}

.category-tab:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.3);
    border-color: #b8941f;
    background: linear-gradient(135deg, #d4af37 0%, #b8941f 100%);
    color: white;
}

.category-tab.active {
    background: linear-gradient(135deg, #d4af37 0%, #b8941f 100%);
    color: white;
    border-color: #b8941f;
    transform: scale(1.05);
    font-weight: 700;
}

.category-tab i {
    font-size: 20px;
    flex-shrink: 0;
}

.category-tab span {
    display: inline !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative;
}

.dishes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

/* Dish Card */
.dish-card {
    background: linear-gradient(135deg, #ffffff 0%, #faf8f3 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(212, 175, 55, 0.12);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    border: 1px solid #e8dcc0;
}

.dish-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.dish-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.25);
    border-color: #d4af37;
}

.dish-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #d4af37 0%, #b8941f 100%);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 3px 10px rgba(212, 175, 55, 0.4);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.dish-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
}

.dish-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.dish-card:hover .dish-image img {
    transform: scale(1.1);
}

.dish-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dish-card:hover .dish-overlay {
    opacity: 1;
}

.quick-view-btn {
    background: white;
    color: #d4af37;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    transform: scale(0);
}

.dish-card:hover .quick-view-btn {
    transform: scale(1);
}

.quick-view-btn:hover {
    background: #1b5e20;
    color: white;
    transform: scale(1.1);
}

.dish-content {
    padding: 16px 12px;
    text-align: center;
}

.section-title {
    font-size: 36px;
    font-weight: 800;
    color: #fdfbfb;
    margin-bottom: 15px;
    transition: color 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.dish-title {
    font-size: 20px;
    font-weight: 700;
    color: #2c2c2c;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.dish-card:hover .dish-title {
    color: #1b5e20;
    font-weight: 800;
}

.dish-description {
    color: #4a4a4a;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    min-height: 44px;
    font-weight: 500;
}

/* Per-item note (e.g., serves N people, pre-order) */
.dish-note {
    background: #fff9e6;
    border-right: 3px solid #ffc107;
    padding: 8px 12px;
    border-radius: 10px;
    color: #856404;
    font-size: 13px;
    line-height: 1.5;
    margin: -8px 0 14px; /* pulls note closer to description */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.dish-note i {
    color: #ffc107;
}

.dish-section-subtitle {
    color: #514242;
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 20px;
    font-weight: 500;
}

.main-dishes-section .section-subtitle {
    color: #000000;
    font-weight: 700;
}

.about-section .section-subtitle {
    color: #e9e6e6;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.dish-footer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.dish-price {
    display: flex;
    align-items: baseline;
    gap: 5px;
    justify-content: center;
}

.price-amount {
    font-size: 24px;
    font-weight: 800;
    color: #1b5e20;
}

.price-currency {
    font-size: 14px;
    color: #2c2c2c;
    font-weight: 600;
}

/* Dish Actions (quantity + add-to-cart) */
.dish-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
}

.quantity-control {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 22px; /* slightly smaller than button */
    padding: 4px;
    width: 100%;
    justify-content: space-between;
}

.quantity-control .quantity-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: #d4af37;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 14px;
}

.quantity-control .quantity-btn:hover {
    background: #b8941f;
    transform: scale(1.05);
}

.quantity-control .quantity-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.quantity-control input {
    background: transparent;
    border: none;
    text-align: center;
    font-weight: 800;
    font-size: 18px;
    color: #D9534F;
    width: 40px;
    outline: none;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    text-shadow: 0 1px 3px rgba(0,0,0,0.15);
    font-family: 'Arial', sans-serif;
    letter-spacing: 0.5px;
}

.quantity-control .quantity-display {
    min-width: 34px;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    color: #2c2c2c;
    margin: 0 6px;
}

/* Make the add-to-cart button more dominant than quantity */
.dish-actions .add-to-cart-btn {
    width: 100%;
    justify-content: center;
}

.add-to-cart-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #d4af37 0%, #b8941f 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(212, 175, 55, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.5);
    background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%);
}

.add-to-cart-btn:active {
    transform: translateY(0);
}

/* Category Note */
.category-note {
    background: linear-gradient(135deg, #fff9e6 0%, #fff5d6 100%);
    border-right: 4px solid #ffc107;
    padding: 20px 30px;
    border-radius: 10px;
    margin-top: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 3px 15px rgba(255, 193, 7, 0.1);
}

.category-note i {
    color: #ffc107;
    font-size: 24px;
}

.category-note span {
    color: #856404;
    font-size: 14px;
    line-height: 1.6;
}

/* View Full Menu Button */
.view-full-menu {
    text-align: center;
    margin-top: 60px;
}

.btn-large {
    padding: 18px 40px;
    font-size: 18px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #d4af37 0%, #b8941f 100%);
    color: white;
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.5);
    background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%);
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: white;
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10000;
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(-50%) translateY(0);
}

.notification-success {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: white;
}

.notification-info {
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
    color: white;
}

.notification-error {
    background: linear-gradient(135deg, #D9534F 0%, #c9302c 100%);
    color: white;
}

/* Cart Navigation Link and Icon */
.cart-nav-link {
  position: relative;
  display: flex !important;
  align-items: center;
  gap: 8px;
}

.cart-icon {
  font-size: 18px;
  transition: transform 0.3s ease;
}

.cart-nav-link:hover .cart-icon {
  transform: scale(1.1);
}

/* Cart Badge */
.cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: linear-gradient(135deg, #D4AF37, #B8860B);
  color: white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(212, 175, 55, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.3);
  min-width: 24px;
  animation: cartBadgePulse 0.3s ease-out;
}

@keyframes cartBadgePulse {
  0% { transform: scale(0.8); opacity: 0.8; }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

/* Loading Animation */
.dishes-container.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.dishes-container.loading::after {
    content: '';
    width: 50px;
    height: 50px;
    border: 4px solid #f0f0f0;
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Error Message */
.error-message,
.no-dishes {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 18px;
}

/* Cart Page */
.cart-page {
    margin-top: 80px;
    padding: 2rem 0 4rem;
    min-height: calc(100vh - 80px);
    background: #f8f9fa;
}

.cart-wrap {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.cart-items-section {
    background: #fff;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.cart-items-section h2 {
    font-size: 1.8rem;
    color: #D9534F;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 700;
}

.cart-row {
    display: grid;
    grid-template-columns: 120px 1fr; /* Image + Content */
    gap: 1rem;
    align-items: start;
    padding: 1rem;
    border: 1px solid #eee;
    background: #fff;
    border-radius: 12px;
    margin-bottom: 1rem;
    transition: box-shadow 0.3s ease;
}

.cart-row:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.cart-row .thumb {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid #f0f0f0;
}

.cart-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

.cart-content .name {
    font-weight: 700;
    color: #333;
    font-size: 1.1rem;
    line-height: 1.3;
    word-break: break-word;
    margin-bottom: 0.5rem;
}

.quantity-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-section .quantity-control {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border-radius: 25px;
    padding: 4px;
    gap: 8px;
}

.price-section {
    display: flex;
    align-items: center;
}

.price-section .line-total {
    font-weight: 800;
    color: #D9534F;
    font-size: 1.1rem;
}

.remove-section {
    display: flex;
    align-items: center;
    margin-top: 0.5rem;
}

.cart-row .remove {
    background: #ffebee;
    border: 1px solid #ffcdd2;
    color: #dc3545;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
}

.cart-row .remove:hover {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
    transform: translateY(-1px);
}

.cart-page .summary {
    background: #fff;
    padding: 1.5rem;
    border-radius: 15px;
    position: sticky;
    top: 100px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.cart-page .summary h3 {
    margin-bottom: 1.2rem;
    color: #D9534F;
    font-size: 1.4rem;
    text-align: center;
    font-weight: 700;
}

.cart-page .summary table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.cart-page .summary table td {
    padding: 0.75rem 0;
    border-bottom: 1px solid #eeeeee;
    font-size: 1rem;
}

.cart-page .summary table td:first-child {
    color: #333;
}

.cart-page .summary table td:last-child {
    text-align: left;
    font-weight: 700;
    color: #D9534F;
}

.cart-page .summary .total-row {
    font-weight: 800;
    color: #333;
    font-size: 1.1rem;
    border-top: 2px solid #D9534F;
}

.cart-page .summary .total-row td {
    padding-top: 1rem;
}

.cart-page .form {
    margin-top: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-page .form input,
.cart-page .form textarea {
    padding: 1rem;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease, background 0.3s ease;
    background: #f8f9fa;
}

.cart-page .form input:focus,
.cart-page .form textarea:focus {
    outline: none;
    border-color: #D9534F;
    background: #fff;
}

.cart-page .submit {
    width: 100%;
    margin-top: 1rem;
    padding: 1.1rem;
    font-size: 1.05rem;
    border-radius: 10px;
    background: #D9534F;
    color: white;
    border: none;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 3.25rem;
}

.cart-page .submit:hover {
    background: #c9302c;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 83, 79, 0.3);
}

.cart-page .submit:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.cart-page .empty-cart {
    text-align: center;
    padding: 3rem 1.5rem;
    color: #666;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.cart-page .empty-cart h3 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    color: #D9534F;
}

.cart-page .empty-cart p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 1rem;
}

.cart-page .empty-cart .btn {
    display: inline-block;
    padding: 0.9rem 1.6rem;
    background: #D9534F;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.cart-page .empty-cart .btn:hover {
    background: #c9302c;
    transform: translateY(-2px);
}

/* Cart-specific tuning for shared quantity control */
.cart-page .quantity-control {
    padding: 6px;
    border-radius: 24px;
}

.cart-page .quantity-control .quantity-btn {
    width: 36px;
    height: 36px;
    font-size: 14px;
}

.cart-page .quantity-control .quantity-display {
    min-width: 40px;
    font-size: 16px;
}


/* Menu Page Styles */
.menu-page {
    margin-top: 80px;
    padding: 2rem 0 4rem;
    min-height: calc(100vh - 80px);
    background: linear-gradient(135deg, 
        var(--secondary-dark) 0%, 
        var(--primary-dark) 50%, 
        var(--pure-black) 100%);
}

.menu-header-section {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-bottom: 50px;
}

.menu-images-sidebar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 25px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.menu-images-sidebar .menu-images-sidebar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    width: 100%;
    max-width: 600px;
}

.menu-page-image:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 35px rgba(0,0,0,0.25);
}

/* استجابة للشاشات المختلفة */
@media (max-width: 1200px) {
    .menu-images-sidebar .menu-images-sidebar {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .menu-images-sidebar {
        padding: 20px 15px;
        gap: 15px;
    }
    
    .menu-images-sidebar .menu-images-sidebar {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .menu-images-sidebar {
        padding: 15px 10px;
    }
    
    .menu-images-sidebar .menu-images-sidebar {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
}

.menu-page-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

/* .menu-page-image:hover consolidated above (kept the stronger hover with scale) */

/* Image Modal */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    backdrop-filter: blur(5px);
}

.image-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    animation: zoomIn 0.3s ease;
}

.modal-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.close-modal:hover {
    background: rgba(255,255,255,0.2);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0.7); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.section-header {
    flex: 1;
    text-align: center;
    padding: 40px 20px;
}

.sub-category-tabs {
    margin-top: 20px;
    margin-bottom: 30px;
}

/* Size selector small card styling -الاحجام في الاقسام مختلفة الحجم */
.dish-content .size-select-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid #ececec;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    margin: 6px auto 0;
}

.dish-content .size-label {
    font-weight: 700;
    color: #000000; /* اجعل كلمة الحجم بالأسود */
    font-size: 13px;
    margin: 0;
}

.dish-content .size-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: #f8f9fa;
    border: 1px solid #e6e6e6;
    color: #333;
    font-size: 13px;
    padding: 6px 28px 6px 10px;
    border-radius: 8px;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dish-content .size-select:focus {
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.dish-content .size-select-wrap::after {
    content: "\f107"; /* fa-chevron-down */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #777;
    margin-right: 6px;
}

/* Mobile layout: make size/type card full-width, stacked, and centered above price */
@media (max-width: 576px) {
  /* Stack price vertically and add a label above it */
  .dish-price {
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }

  .dish-price::before {
    content: 'السعر';
    font-weight: 700;
    color: #000;
    font-size: 13px;
    line-height: 1;
  }
  .dish-content .size-select-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 320px; /* keeps a nice width on small phones */
    padding: 10px 12px;
    margin: 8px auto 0; /* centered above price */
  }

  .dish-content .size-label {
    margin: 0 0 6px 0; /* move label above the select */
    font-size: 14px;
  }

  .dish-content .size-select {
    width: 100%;
    text-align: center;
  }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .btn {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
