:root {
      --primary-color: #ff4b2b;
      --primary-dark: #ff1c00;
      --text-color: #333;
      --bg-color: whitesmoke;
      --card-bg: rgba(255, 255, 255, 0.24);
      --header-bg: #ff4b2b;
      --header-text: #fff;
      --shadow-color: rgba(255, 73, 41, 0.3);
      --border-color: rgba(0, 0, 0, 0.1);
      --card-shadow: 0 4px 15px rgba(255, 73, 41, 0.2);
    }

    .dark-mode {
      --primary-color: #ff6b4b;
      --primary-dark: #ff4b2b;
      --text-color: #eee;
      --bg-color: #1e1e1e;
      --card-bg: #2a2a2a;
      --header-bg: #222;
      --header-text: #eee;
      --shadow-color: rgba(255, 255, 255, 0.1);
      --border-color: #444;
      --card-shadow: 0 4px 15px rgba(255, 73, 41, 0.3);
    }

    body {
      font-family: "Tahoma", sans-serif;
      margin: 0;
      background-color: var(--bg-color);
      color: var(--text-color);
      direction: rtl;
      transition: background 0.5s ease, color 0.5s ease;
    }

    /* ===== هدر (ثابت در بالا) ===== */
    header {
      background: var(--header-bg);
      color: var(--header-text);
      padding: 12px 16px 12px;
      transition: background 0.5s ease, color 0.5s ease;
      position: fixed;
      top: 0;
      right: 0;
      left: 0;
      z-index: 1000;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    /* بخش بالای هدر */
    .top-bar {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .header-right {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .logo {
      width: 40px;
      height: 40px;
      border-radius: 10px;
      object-fit: cover;
    }

    header h1 {
      font-size: 18px;
      margin: 0;
    }

    .header-actions {
      display: flex;
      align-items: center;
      gap: 15px;
    }

    /* دکمه تغییر حالت تاریک/روشن */
    .theme-toggle {
      position: relative;
      width: 60px;
      height: 30px;
      background: linear-gradient(90deg, #ffd700, #ff8c00);
      border-radius: 25px;
      cursor: pointer;
      transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
      display: flex;
      align-items: center;
      padding: 0 4px;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
      overflow: hidden;
    }

    .theme-toggle::before {
      content: '☀️';
      position: absolute;
      left: 6px;
      font-size: 14px;
      transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
      z-index: 2;
      filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.2));
    }

    .theme-toggle::after {
      content: '🌙';
      position: absolute;
      right: 6px;
      font-size: 14px;
      transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
      z-index: 2;
      filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.2));
      opacity: 0.3;
      transform: scale(0.8);
    }

    .dark-mode .theme-toggle {
      background: linear-gradient(90deg, #2c3e50, #34495e);
    }

    .dark-mode .theme-toggle::before {
      opacity: 0.3;
      transform: scale(0.8);
    }

    .dark-mode .theme-toggle::after {
      opacity: 1;
      transform: scale(1);
    }

    .theme-toggle-handle {
      width: 22px;
      height: 22px;
      background: linear-gradient(135deg, #ffffff, #f0f0f0);
      border-radius: 50%;
      transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
      box-shadow: 
        0 3px 8px rgba(0, 0, 0, 0.2),
        inset 0 -2px 4px rgba(0, 0, 0, 0.1),
        inset 0 2px 4px rgba(255, 255, 255, 0.8);
      position: relative;
      z-index: 3;
      transform: translateX(0);
      margin-right: 2px;
    }

    .dark-mode .theme-toggle-handle {
      transform: translateX(-35px);
      background: linear-gradient(135deg, #e0e0e0, #c0c0c0);
      box-shadow: 
        0 3px 8px rgba(0, 0, 0, 0.3),
        inset 0 -2px 4px rgba(0, 0, 0, 0.2),
        inset 0 2px 4px rgba(255, 255, 255, 0.3);
    }

    .cart-toggle {
      cursor: pointer;
      font-size: 20px;
      transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
      position: relative;
    }

    .cart-count {
      position: absolute;
      top: -8px;
      left: -8px;
      background: var(--primary-dark);
      color: white;
      border-radius: 50%;
      width: 18px;
      height: 18px;
      font-size: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    /* ===== سرچ بار ===== */
    .search-box {
      display: flex;
      justify-content: center;
      margin-top: 10px;
      position: relative;
    }

    .search-box input {
      width: 80%;
      max-width: 350px;
      padding: 10px 15px;
      border: none;
      border-radius: 25px;
      outline: none;
      font-size: 14px;
      transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
      background: rgba(255, 255, 255, 0.9);
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .search-box input:focus {
      box-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
      transform: scale(1.02);
    }

    /* آیکون ذره‌بین - فقط در موبایل نمایش داده می‌شود */
    .search-icon {
      position: absolute;
      left: calc(10% + 15px);
      top: 50%;
      transform: translateY(-50%);
      color: #888;
      font-size: 16px;
      z-index: 2;
      display: none;
    }

    .dark-mode .search-icon {
      color: #888;
    }

    /* ===== کتگوری‌ها ===== */
    .categories {
      display: flex;
      gap: 10px;
      overflow-x: auto;
      padding: 10px;
      background: #fff;
      position: fixed;
      top: 95px;
      right: 0;
      left: 0;
      z-index: 999;
      border-bottom: 1px solid #eee;
      transition: background 0.5s ease;
      padding-top: 25px;
      padding-bottom: 15px;
    }

    .dark-mode .categories {
      background: #2a2a2a;
      border-color: #444;
    }

    .categories button {
      flex: 0 0 auto;
      background: #fff;
      border: 1px solid #ddd;
      border-radius: 15px;
      padding: 8px 14px;
      cursor: pointer;
      font-size: 14px;
      white-space: nowrap;
      transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    .dark-mode .categories button {
      background: #333;
      border: 1px solid #555;
      color: #eee;
    }

    .categories button:hover, .categories button.active {
      background: var(--primary-color);
      color: #fff;
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(255, 75, 43, 0.3);
    }

    /* ===== بخش منو - بهبود یافته برای دسکتاپ ===== */
    .menu {
      display: flex;
      flex-direction: column;
      gap: 15px;
      padding: 15px;
      margin-top: 175px;
      max-width: 500px;
      margin-left: auto;
      margin-right: auto;
    }

    /* ===== طراحی کارت‌ها - بهبود یافته ===== */
    .card {
      background: white;
      border-radius: 12px;
      padding: 15px;
      display: flex;
      gap: 15px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
      border: 1px solid #f0f0f0;
      transition: all 0.3s ease;
      position: relative;
      cursor: pointer;
      opacity: 0;
      transform: translateY(30px);
      animation: cardSlideIn 0.6s ease forwards;
    }

    .dark-mode .card {
      background: #2a2a2a;
      border: 1px solid #444;
      box-shadow: 0 2px 8px rgba(255, 255, 255, 0.05);
    }

    .card:hover {
      transform: translateY(-5px);
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }

    .dark-mode .card:hover {
      box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1);
    }

    /* انیمیشن لود شدن کارت‌ها */
    @keyframes cardSlideIn {
      from {
        opacity: 0;
        transform: translateY(30px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    /* تأخیر برای کارت‌های مختلف */
    .card:nth-child(1) { animation-delay: 0.1s; }
    .card:nth-child(2) { animation-delay: 0.2s; }
    .card:nth-child(3) { animation-delay: 0.3s; }
    .card:nth-child(4) { animation-delay: 0.4s; }
    .card:nth-child(5) { animation-delay: 0.5s; }
    .card:nth-child(6) { animation-delay: 0.5s; }
    .card:nth-child(7) { animation-delay: 0.5s; }
    .card:nth-child(8) { animation-delay: 0.5s; }
    .card:nth-child(9) { animation-delay: 0.5s; }
    .card:nth-child(10) { animation-delay: 0.5s; }

    /* تصویر محصول */
    .card-image {
      width: 100px;
      height: 100px;
      border-radius: 10px;
      object-fit: cover;
      flex-shrink: 0;
      cursor: pointer;
      transition: all 0.3s ease;
      opacity: 0;
      animation: imageFadeIn 0.8s ease 0.3s forwards;
    }

    @keyframes imageFadeIn {
      from {
        opacity: 0;
        transform: scale(0.8);
      }
      to {
        opacity: 1;
        transform: scale(1);
      }
    }

    /* محتوای متنی کارت */
    .card-content {
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    /* عنوان محصول */
    .card h3 {
      margin: 0;
      font-size: 18px;
      font-weight: 600;
      color: #333;
      text-align: right;
      cursor: pointer;
      opacity: 0;
      animation: textSlideIn 0.5s ease 0.4s forwards;
    }

    .dark-mode .card h3 {
      color: #eee;
    }

    /* توضیحات محصول */
    .card p {
      font-size: 14px;
      color: #666;
      text-align: right;
      line-height: 1.5;
      margin: 0;
      display: -webkit-box;
      -webkit-line-clamp: 1;
      -webkit-box-orient: vertical;
      overflow: hidden;
      text-overflow: ellipsis;
      max-height: 42px;
      opacity: 0;
      animation: textSlideIn 0.5s ease 0.5s forwards;
    }

    .dark-mode .card p {
      color: #ccc;
    }

    @keyframes textSlideIn {
      from {
        opacity: 0;
        transform: translateX(20px);
      }
      to {
        opacity: 1;
        transform: translateX(0);
      }
    }

    /* قیمت و دکمه */
    .card-footer {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-top: 10px;
      opacity: 0;
      animation: footerFadeIn 0.5s ease 0.6s forwards;
    }

    @keyframes footerFadeIn {
      from {
        opacity: 0;
        transform: translateY(10px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .price {
      font-size: 18px;
      font-weight: 700;
      color: #333;
    }

    .dark-mode .price {
      color: #eee;
    }

    /* دکمه افزودن به سبد خرید */
    .add-to-cart-btn {
      background: #ff4b2b;
      color: white;
      border: none;
      border-radius: 8px;
      padding: 8px 16px;
      cursor: pointer;
      font-size: 14px;
      font-weight: 600;
      transition: all 0.3s ease;
      display: flex;
      align-items: center;
      gap: 5px;
      position: relative;
      overflow: hidden;
    }

    .add-to-cart-btn::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
      transition: left 0.5s;
    }

    .add-to-cart-btn:hover::before {
      left: 100%;
    }

    /* ===== Modal جزئیات محصول ===== */
    .product-modal {
      position: fixed;
      top: 0;
      right: 0;
      bottom: 0;
      left: 0;
      background: rgba(0, 0, 0, 0.7);
      display: none;
      justify-content: center;
      align-items: center;
      z-index: 3000;
      padding: 20px;
    }

    .product-modal.active {
      display: flex;
      animation: fadeIn 0.3s ease;
    }

    .modal-content {
      background: white;
      border-radius: 20px;
      width: 100%;
      max-width: 400px;
      max-height: 90vh;
      overflow-y: auto;
      position: relative;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
      animation: modalSlideIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    @keyframes modalSlideIn {
      from {
        opacity: 0;
        transform: scale(0.8) translateY(50px);
      }
      to {
        opacity: 1;
        transform: scale(1) translateY(0);
      }
    }

    .dark-mode .modal-content {
      background: #2a2a2a;
      color: #eee;
    }

    .modal-header {
      position: relative;
    }

    .modal-image {
      width: 100%;
      height: 200px;
      object-fit: cover;
      border-radius: 20px 20px 0 0;
    }

    .close-modal {
      position: absolute;
      top: 15px;
      left: 15px;
      background: rgba(0, 0, 0, 0.5);
      color: white;
      border: none;
      border-radius: 50%;
      width: 40px;
      height: 40px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      font-size: 20px;
      transition: all 0.3s ease;
    }

    .close-modal:hover {
      background: rgba(0, 0, 0, 0.7);
      transform: scale(1.1) rotate(90deg);
    }

    .modal-body {
      padding: 20px;
    }

    .modal-title {
      font-size: 24px;
      font-weight: 700;
      margin: 0 0 15px 0;
      color: #333;
      text-align: right;
      line-height: 1.4;
    }

    .dark-mode .modal-title {
      color: #eee;
    }

    .modal-stats {
      display: flex;
      justify-content: space-between;
      margin-bottom: 20px;
      padding: 15px;
      background: #f8f8f8;
      border-radius: 12px;
    }

    .dark-mode .modal-stats {
      background: #333;
    }

    .stat-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
    }

    .stat-value {
      font-size: 18px;
      font-weight: 700;
      color: #333;
      margin-bottom: 5px;
    }

    .dark-mode .stat-value {
      color: #eee;
    }

    .stat-label {
      font-size: 12px;
      color: #666;
    }

    .dark-mode .stat-label {
      color: #ccc;
    }

    .modal-nutrition {
      margin-bottom: 20px;
      padding: 15px;
      background: #f8f8f8;
      border-radius: 12px;
    }

    .dark-mode .modal-nutrition {
      background: #333;
    }

    .nutrition-title {
      font-size: 16px;
      font-weight: 600;
      margin-bottom: 10px;
      color: #333;
      text-align: right;
    }

    .dark-mode .nutrition-title {
      color: #eee;
    }

    .nutrition-info {
      font-size: 14px;
      color: #666;
      text-align: right;
      line-height: 1.6;
    }

    .dark-mode .nutrition-info {
      color: #ccc;
    }

    .modal-description {
      font-size: 14px;
      color: #666;
      text-align: right;
      line-height: 1.6;
      margin-bottom: 20px;
      padding: 15px;
      background: #f9f9f9;
      border-radius: 12px;
      font-style: normal;
    }

    .dark-mode .modal-description {
      color: #ccc;
      background: #333;
    }

    /* کنترل‌کننده تعداد */
    .quantity-controls {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 15px;
      margin: 20px 0;
      padding: 10px;
    }

    .quantity-btn {
      width: 40px;
      height: 40px;
      border: 2px solid var(--primary-color);
      background: white;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      font-size: 18px;
      font-weight: bold;
      color: var(--primary-color);
      transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    .quantity-btn:disabled {
      border-color: #ccc;
      color: #ccc;
      background: #f5f5f5;
      cursor: not-allowed;
      transform: none !important;
    }

    .quantity-btn:disabled:hover {
      background: #f5f5f5;
      color: #ccc;
      border-color: #ccc;
      transform: none !important;
      box-shadow: none !important;
    }

    .dark-mode .quantity-btn:disabled {
      border-color: #666;
      color: #666;
      background: #3a3a3a;
    }

    .dark-mode .quantity-btn:disabled:hover {
      background: #3a3a3a;
      color: #666;
      border-color: #666;
    }

    .quantity-btn:hover:not(:disabled) {
      background: var(--primary-color);
      color: white;
      transform: scale(1.1);
    }

    .dark-mode .quantity-btn {
      background: #2a2a2a;
      border-color: var(--primary-color);
      color: var(--primary-color);
    }

    .quantity-display {
      font-size: 20px;
      font-weight: 700;
      color: var(--text-color);
      min-width: 40px;
      text-align: center;
      transition: all 0.3s ease;
      transform: scale(1);
    }

    .dark-mode .quantity-display {
      color: #eee;
    }

    /* انیمیشن برای تغییر عدد */
    .quantity-display.changing {
      transform: scale(1.2);
      color: var(--primary-color);
    }

    .modal-footer {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding-top: 15px;
      border-top: 1px solid #eee;
    }

    .dark-mode .modal-footer {
      border-top: 1px solid #444;
    }

    .modal-price {
      font-size: 24px;
      font-weight: 700;
      color: #ff4b2b;
    }

    .modal-add-btn {
      background: #ff4b2b;
      color: white;
      border: none;
      border-radius: 10px;
      padding: 12px 24px;
      cursor: pointer;
      font-size: 16px;
      font-weight: 600;
      transition: all 0.3s ease;
      display: flex;
      align-items: center;
      gap: 8px;
      position: relative;
      overflow: hidden;
    }

    .modal-add-btn::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
      transition: left 0.5s;
    }

    .modal-add-btn:hover::before {
      left: 100%;
    }

    .modal-add-btn:hover {
      background: #ff1c00;
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(255, 75, 43, 0.4);
    }

    /* ===== سبد خرید ===== */
    .cart-sidebar {
      position: fixed;
      top: 0;
      left: -400px;
      width: 350px;
      height: 100%;
      background: var(--bg-color);
      box-shadow: -2px 0 20px rgba(0, 0, 0, 0.15);
      z-index: 2000;
      transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
      padding: 20px;
      overflow-y: auto;
      direction: rtl;
    }

    .cart-sidebar.active {
      left: 0;
    }

    .cart-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 20px;
      padding-bottom: 10px;
      border-bottom: 1px solid #ddd;
    }

    .dark-mode .cart-header {
      border-bottom: 1px solid #444;
    }

    .close-cart {
      background: none;
      border: none;
      font-size: 20px;
      cursor: pointer;
      color: var(--text-color);
      transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    .close-cart:hover {
      transform: rotate(90deg);
      color: var(--primary-color);
    }

    .cart-items {
      display: flex;
      flex-direction: column;
      gap: 15px;
      margin-bottom: 20px;
      max-height: 60vh;
      overflow-y: auto;
    }

    .cart-item {
      display: flex;
      gap: 10px;
      padding: 10px;
      border-radius: 10px;
      background: var(--card-bg);
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
      position: relative;
      transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
      animation: cartItemSlideIn 0.4s ease;
    }

    .cart-item.removing {
      animation: cartItemRemove 0.5s ease forwards;
    }

    @keyframes cartItemSlideIn {
      from {
        opacity: 0;
        transform: translateX(-20px);
      }
      to {
        opacity: 1;
        transform: translateX(0);
      }
    }

    @keyframes cartItemRemove {
      from {
        opacity: 1;
        transform: translateX(0);
      }
      to {
        opacity: 0;
        transform: translateX(100px);
        height: 0;
        padding: 0;
        margin: 0;
        border: none;
      }
    }

    .dark-mode .cart-item {
      box-shadow: 0 2px 8px rgba(255, 255, 255, 0.05);
    }

    .cart-item img {
      width: 60px;
      height: 60px;
      border-radius: 10px;
      object-fit: cover;
      transition: all 0.3s ease;
    }

    .cart-item-details {
      flex: 1;
    }

    .cart-item-name {
      font-weight: bold;
      margin-bottom: 5px;
    }

    .cart-item-price {
      color: var(--primary-color);
      font-size: 14px;
    }

    .cart-item-controls {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-top: 5px;
    }

    .cart-item-remove {
      background: #ff4b2b;
      color: white;
      border: none;
      border-radius: 5px;
      padding: 5px 10px;
      cursor: pointer;
      font-size: 12px;
      transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
      display: flex;
      align-items: center;
      gap: 5px;
    }

    .cart-item-remove:hover {
      background: #ff1c00;
      transform: scale(1.05);
    }

    .cart-total {
      display: flex;
      justify-content: space-between;
      font-weight: bold;
      font-size: 18px;
      padding: 15px 0;
      border-top: 1px solid #ddd;
    }

    .dark-mode .cart-total {
      border-top: 1px solid #444;
    }

    .cart-actions {
      display: flex;
      gap: 10px;
      margin-bottom: 15px;
    }

    .clear-cart-btn {
      flex: 1;
      padding: 10px;
      background: #ff9800;
      color: white;
      border: none;
      border-radius: 8px;
      cursor: pointer;
      font-size: 14px;
      transition: all 0.3s ease;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 5px;
    }

    .clear-cart-btn:hover {
      background: #f57c00;
      transform: translateY(-2px);
    }

    .checkout-btn {
      width: 100%;
      padding: 12px;
      background: var(--primary-color);
      color: white;
      border: none;
      border-radius: 10px;
      font-size: 16px;
      cursor: pointer;
      transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
      position: relative;
      overflow: hidden;
    }

    .checkout-btn::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
      transition: left 0.5s;
    }

    .checkout-btn:hover::before {
      left: 100%;
    }

    .checkout-btn:hover {
      background: var(--primary-dark);
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(255, 75, 43, 0.4);
    }

    .empty-cart {
      text-align: center;
      padding: 20px;
      color: #777;
    }

    .overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.5);
      z-index: 1500;
      display: none;
      transition: all 0.4s ease;
    }

    .overlay.active {
      display: block;
      animation: fadeIn 0.4s ease;
    }

    @keyframes fadeIn {
      from { opacity: 0; }
      to { opacity: 1; }
    }

    /* کانتینر پاپ‌آپ‌ها */
    .toast-container {
      position: fixed;
      bottom: 20px;
      right: 20px;
      z-index: 3000;
      display: flex;
      flex-direction: column-reverse;
      gap: 10px;
      max-width: 300px;
    }

    /* پیام افزوده شدن به سبد خرید */
    .toast {
      background: var(--primary-color);
      color: white;
      padding: 15px 20px;
      border-radius: 10px;
      box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
      transform: translateY(100px);
      opacity: 0;
      transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
      display: flex;
      align-items: center;
      gap: 10px;
      font-size: 16px;
      max-width: 300px;
      position: relative;
    }

    .toast.show {
      transform: translateY(0);
      opacity: 1;
    }

    .toast i {
      font-size: 18px;
    }

    /* ===== رسپانسیو برای دسکتاپ ===== */
    @media (min-width: 1025px) {
      .menu {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(480px, 1fr));
        gap: 25px;
        padding: 30px;
        margin-top: 175px;
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
      }
      
      .card {
        background: white;
        border-radius: 16px;
        padding: 25px;
        display: flex;
        gap: 25px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        border: 1px solid #f0f0f0;
        transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        position: relative;
        cursor: pointer;
        opacity: 0;
        transform: translateY(30px);
        animation: cardSlideInDesktop 0.6s ease forwards;
        min-height: 200px;
      }

      .dark-mode .card {
        background: #2a2a2a;
        border: 1px solid #444;
        box-shadow: 0 4px 20px rgba(255, 255, 255, 0.05);
      }

      .card:hover {
        transform: translateY(-8px) scale(1.02);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
      }

      .dark-mode .card:hover {
        box-shadow: 0 12px 40px rgba(255, 255, 255, 0.1);
      }

      @keyframes cardSlideInDesktop {
        from {
          opacity: 0;
          transform: translateY(40px) scale(0.95);
        }
        to {
          opacity: 1;
          transform: translateY(0) scale(1);
        }
      }

      /* تصویر محصول در دسکتاپ */
      .card-image {
        width: 160px;
        height: 160px;
        border-radius: 12px;
        object-fit: cover;
        flex-shrink: 0;
        cursor: pointer;
        transition: all 0.4s ease;
        opacity: 0;
        animation: imageFadeInDesktop 0.8s ease 0.3s forwards;
        border: 3px solid transparent;
      }

      .card:hover .card-image {
        transform: scale(1.05);
        border-color: var(--primary-color);
      }

      @keyframes imageFadeInDesktop {
        from {
          opacity: 0;
          transform: scale(0.8) rotate(-5deg);
        }
        to {
          opacity: 1;
          transform: scale(1) rotate(0);
        }
      }

      /* محتوای متنی کارت در دسکتاپ */
      .card-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        gap: 15px;
      }

      /* عنوان محصول در دسکتاپ */
      .card h3 {
        margin: 0;
        font-size: 22px;
        font-weight: 700;
        color: #333;
        text-align: right;
        cursor: pointer;
        opacity: 0;
        animation: textSlideInDesktop 0.5s ease 0.4s forwards;
        line-height: 1.3;
      }

      .dark-mode .card h3 {
        color: #eee;
      }

      /* توضیحات محصول در دسکتاپ */
      .card p {
        font-size: 16px;
        color: #666;
        text-align: right;
        line-height: 1.6;
        margin: 0;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        opacity: 0;
        animation: textSlideInDesktop 0.5s ease 0.5s forwards;
      }

      .dark-mode .card p {
        color: #ccc;
      }

      @keyframes textSlideInDesktop {
        from {
          opacity: 0;
          transform: translateX(30px);
        }
        to {
          opacity: 1;
          transform: translateX(0);
        }
      }

      /* قیمت و دکمه در دسکتاپ */
      .card-footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: auto;
        opacity: 0;
        animation: footerFadeInDesktop 0.5s ease 0.6s forwards;
      }

      @keyframes footerFadeInDesktop {
        from {
          opacity: 0;
          transform: translateY(20px) scale(0.9);
        }
        to {
          opacity: 1;
          transform: translateY(0) scale(1);
        }
      }

      .price {
        font-size: 22px;
        font-weight: 800;
        color: var(--primary-color);
        direction: ltr;
        text-align: left;
        flex-shrink: 0;
      }

      .dark-mode .price {
        color: var(--primary-color);
      }

      /* دکمه افزودن به سبد خرید در دسکتاپ */
      .add-to-cart-btn {
        background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
        color: white;
        border: none;
        border-radius: 12px;
        padding: 14px 28px;
        cursor: pointer;
        font-size: 16px;
        font-weight: 600;
        transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        display: flex;
        align-items: center;
        gap: 8px;
        position: relative;
        overflow: hidden;
        box-shadow: 0 4px 15px rgba(255, 75, 43, 0.3);
      }

      .add-to-cart-btn:hover {
        transform: translateY(-3px) scale(1.05);
        box-shadow: 0 8px 25px rgba(255, 75, 43, 0.5);
      }

      .add-to-cart-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
        transition: left 0.6s;
      }

      .add-to-cart-btn:hover::before {
        left: 100%;
      }

      /* افکت glow روی کارت‌ها در حالت hover */
      .card::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        border-radius: 16px;
        background: linear-gradient(135deg, transparent, transparent);
        opacity: 0;
        transition: opacity 0.4s ease;
        z-index: -1;
      }

      .card:hover::after {
        opacity: 1;
        background: linear-gradient(135deg, 
          rgba(255, 75, 43, 0.1), 
          rgba(255, 108, 75, 0.05));
      }

      .dark-mode .card:hover::after {
        background: linear-gradient(135deg, 
          rgba(255, 107, 75, 0.2), 
          rgba(255, 75, 43, 0.1));
      }

      /* آیکون ذره‌بین در PC نمایش داده نمی‌شود */
      .search-icon {
        display: none;
      }
    }

    /* ===== رسپانسیو برای دسکتاپ بزرگ ===== */
    @media (min-width: 1200px) {
      .menu {
        grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
        gap: 30px;
        padding: 40px;
        max-width: 1400px;
      }
      
      .card {
        padding: 30px;
        gap: 30px;
        border-radius: 20px;
      }
      
      .card-image {
        width: 180px;
        height: 180px;
      }
      
      .card h3 {
        font-size: 24px;
      }
      
      .card p {
        font-size: 17px;
        -webkit-line-clamp: 1;
      }
      
      .price {
        font-size: 24px;
      }
      
      .add-to-cart-btn {
        padding: 16px 32px;
        font-size: 17px;
      }
    }

    /* حالت موبایل و تبلت */
    @media (max-width: 1024px) {
      .menu {
        display: flex;
        flex-direction: column;
        gap: 15px;
        padding: 15px;
        margin-top: 175px;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
      }
      
      .cart-sidebar {
        width: 300px;
      }
      
      .card {
        padding: 15px;
        gap: 15px;
      }
      
      .card-image {
        width: 100px;
        height: 100px;
      }
      
      /* نمایش آیکون ذره‌بین فقط در موبایل */
      .search-icon {
        display: block;
        left: calc(10% + 90px);
      }
      
      /* اضافه کردن padding برای آیکون در موبایل */
      .search-box input {
        padding-left: 40px;
      }

      .toast-container {
        right: 10px;
        left: 10px;
        max-width: none;
      }
      
      .modal-content {
        max-width: 95%;
        margin: 10px;
      }
      
      /* بهبود Modal در موبایل */
      .modal-body {
        padding: 15px;
      }
      
      .modal-title {
        font-size: 20px;
        font-weight: 700;
        margin-bottom: 15px;
        text-align: right;
        line-height: 1.4;
      }
      
      .modal-stats {
        flex-direction: row;
        justify-content: space-around;
        gap: 10px;
        padding: 12px;
        margin-bottom: 15px;
      }
      
      .stat-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
      }
      
      .stat-value {
        font-size: 16px;
        font-weight: 700;
        margin-bottom: 5px;
      }
      
      .stat-label {
        font-size: 12px;
        color: #666;
      }
      
      .modal-nutrition {
        margin-bottom: 15px;
        padding: 12px;
      }
      
      .nutrition-title {
        font-size: 14px;
        font-weight: 600;
        margin-bottom: 8px;
      }
      
      .nutrition-info {
        font-size: 13px;
        line-height: 1.5;
      }
      
      .modal-description {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 15px;
        padding: 12px;
      }
      
      .quantity-controls {
        margin: 15px 0;
        gap: 12px;
      }
      
      .quantity-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
      }
      
      .quantity-display {
        font-size: 18px;
        min-width: 35px;
      }
      
      .modal-footer {
        flex-direction: column;
        gap: 15px;
        padding-top: 15px;
      }
      
      .modal-price {
        font-size: 20px;
        text-align: center;
        width: 100%;
      }
      
      .modal-add-btn {
        width: 100%;
        justify-content: center;
        padding: 12px;
      }
    }

    @media (max-width: 480px) {
      .cart-sidebar {
        width: 85%;
        left: -100%;
      }
      
      header h1 {
        font-size: 16px;
      }
      
      .search-box input {
        width: 90%;
        padding-left: 40px;
      }
      
      .search-icon {
        left: calc(5% + 0px);
      }
      
      .card {
        padding: 10px;
        gap: 10px;
      }
      
      .card h3 {
        font-size: 16px;
      }
      
      .card p {
        font-size: 13px;
      }
      
      .price {
        font-size: 16px;
      }
      
      .add-to-cart-btn {
        padding: 6px 12px;
        font-size: 13px;
      }
      
      .card-image {
        width: 100px;
        height: 100px;
      }
      
      .modal-body {
        padding: 12px;
      }
      
      .modal-title {
        font-size: 18px;
      }
      
      .modal-stats {
        padding: 10px;
      }
      
      .modal-nutrition,
      .modal-description {
        padding: 10px;
      }
      
      .quantity-controls {
        margin: 12px 0;
        gap: 10px;
      }
      
      .quantity-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
      }
      
      .quantity-display {
        font-size: 16px;
        min-width: 32px;
      }
    }