  /* ===== Global ===== */

          :root {
            --bs-primary: #0d6efd;
            --bs-primary-dark: #0b5ed7;
            --bs-secondary: #6c757d;
            --bs-success: #198754;
            --bs-danger: #dc3545;
            --bs-light: #f8f9fa;
            --bs-dark: #212529;
            --bs-gray-100: #f8f9fa;
            --bs-gray-200: #e9ecef;
            --bs-gray-300: #dee2e6;
            --bs-gray-600: #6c757d;
            --bs-gray-800: #343a40;
        }

  body {
      font-family: 'Cairo', sans-serif;
      font-weight: 700;
            background-color: var(--bs-gray-100);
      margin: 0;
      scroll-behavior: smooth !important;
  }

  .navbar {
      margin: 0;
      border-radius: 0;
  }

  .btn {
      --bs-btn-padding-y: 0.575rem;
  }

  /* ===== Cart Sidebar ===== */
  .cart-sidebar {
      position: fixed;
      top: 0;
      right: -400px;
      width: 400px;
      height: 100vh;
      background: #ffffff;
      box-shadow: -8px 0 24px rgba(0, 0, 0, 0.15);
      transition: right 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
      z-index: 2000;
      display: flex;
      flex-direction: column;
      overflow: hidden;
  }

  .cart-sidebar.open {
      right: 0;
      max-width: 100%;
  }

  /* ===== Header ===== */
  .cart-sidebar .header {
      padding: 1.1rem;
      border-bottom: 1px solid #eaeaea;
      display: flex;
      align-items: center;
      justify-content: space-between;
      background: linear-gradient(to right, #4a6cf7, #6a82fb);
      color: white;
  }

  .cart-sidebar .header h5 {
      margin: 0;
      font-size: 1.35rem;
      font-weight: 700;
      display: flex;
      align-items: center;
      gap: 0.75rem;
  }

  .cart-sidebar .header .close-btn {
      background: rgba(255, 255, 255, 0.2);
      border: none;
      width: 38px;
      height: 38px;
      border-radius: 50%;
      font-size: 1.5rem;
      color: white;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.3s ease;
  }

  .cart-sidebar .header .close-btn:hover {
      background: rgba(255, 255, 255, 0.3);
      transform: rotate(90deg);
  }

  /* ===== Body (Product List) – one item per row ===== */
  .cart-sidebar .body {
      flex: 1;
      overflow-y: auto;
      padding: 1.5rem;
      background: #fafbff;

      /* switch to single-column flex layout */
      display: flex;
      flex-direction: column;
      gap: 1rem;
  }

  /* ===== Empty Cart ===== */
  .empty-cart {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      height: 100%;
      padding: 2rem;
      text-align: center;
  }

  .empty-cart i {
      font-size: 4rem;
      color: #d1d5db;
      margin-bottom: 1.5rem;
  }

  .empty-cart p {
      color: #6b7280;
      font-size: 1.1rem;
      line-height: 1.6;
      margin-bottom: 2rem;
  }

  .empty-cart button {
      background: #4a6cf7;
      color: white;
      border: none;
      padding: 0.8rem 2rem;
      border-radius: 8px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
      box-shadow: 0 4px 12px rgba(74, 108, 247, 0.25);
  }

  .empty-cart button:hover {
      background: #3a5ce5;
      transform: translateY(-2px);
  }

  /* ===== Cart Item ===== */
  .cart-item {
      display: flex;
      align-items: center;
      padding: 1.25rem;
      background: white;
      border-radius: 12px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
      border: 1px solid #f0f0f0;
      transition: all 0.3s ease;
  }

  .cart-item:hover {
      box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
      transform: translateY(-2px);
  }

  .cart-item img {
      width: 90px;
      height: 90px;
      object-fit: cover;
      border-radius: 10px;
      margin-left: 1rem;
      border: 1px solid #f5f5f5;
  }

  .cart-item-details {
      flex: 1;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
  }

  .cart-item-details h6 {
      margin: 0 0 0.5rem;
      font-size: 1.05rem;
      font-weight: 700;
      color: #2d3748;
  }

  .cart-item-details small {
      font-size: 0.9rem;
      color: #4a5568;
  }

  .cart-item-actions {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-top: 1rem;
  }

  .quantity-controls {
      display: flex;
      align-items: center;
      border: 1px solid #e2e8f0;
      border-radius: 8px;
      overflow: hidden;
  }

  .quantity-controls button {
      width: 36px;
      height: 36px;
      border: none;
      background: #f8f9fa;
      color: #4a5568;
      font-size: 1.1rem;
      transition: all 0.2s ease;
  }

  .quantity-controls button:hover {
      background: #edf2f7;
      color: #2d3748;
  }

  .quantity-controls input {
      width: 50px;
      text-align: center;
      border: none;
      background: transparent;
      font-size: 1rem;
      font-weight: 600;
      color: #2d3748;
  }

  .remove-btn {
      background: transparent;
      border: none;
      color: #e53e3e;
      font-size: 1.2rem;
      cursor: pointer;
      width: 36px;
      height: 36px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 8px;
      transition: all 0.3s ease;
  }

  .remove-btn:hover {
      background: rgba(229, 62, 62, 0.1);
      transform: scale(1.1);
  }

  /* ===== Footer (Summary & Checkout) ===== */
  .cart-sidebar .footer {
      padding: 1.5rem;
      background: white;
      border-top: 1px solid #eaeaea;
      box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
  }

  .cart-sidebar .footer .summary {
      display: flex;
      justify-content: space-between;
      background: #f8f9fc;
      padding: 1rem;
      border-radius: 12px;
  }

  .summary-item {
      flex: 1;
      text-align: center;
  }

  .summary-item:first-child {
      border-left: 1px solid #e2e8f0;
  }

  .cart-sidebar .footer .summary h6 {
      margin: 0 0 0.5rem;
      font-size: 0.95rem;
      color: #718096;
  }

  .cart-sidebar .footer .summary p {
      margin: 0;
      font-size: 1.3rem;
      font-weight: 700;
      color: #2d3748;
  }

  .cart-sidebar .footer .checkout-btn {
      width: 100%;
      padding: 1.1rem;
      font-size: 1.1rem;
      font-weight: 700;
      background: linear-gradient(to right, #4a6cf7, #6a82fb);
      color: white;
      border: none;
      border-radius: 12px;
      cursor: pointer;
      transition: all 0.3s ease;
      box-shadow: 0 6px 16px rgba(74, 108, 247, 0.35);
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.75rem;
  }

  .cart-sidebar .footer .checkout-btn:hover {
      background: linear-gradient(to right, #3a5ce5, #5a72e9);
      transform: translateY(-3px);
      box-shadow: 0 8px 20px rgba(74, 108, 247, 0.45);
  }

  /* ===== Cart Toggle Button ===== */
  .cart-toggle-btn {
      position: fixed;
      bottom: 2rem;
      right: 2rem;
      width: 60px;
      height: 60px;
      border-radius: 50%;
      background: linear-gradient(to right, #4a6cf7, #6a82fb);
      color: white;
      border: none;
      font-size: 1.5rem;
      cursor: pointer;
      box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.3s ease;
      z-index: 1000;
  }

  .cart-toggle-btn:hover {
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
      transform: scale(1.1) rotate(10deg);
  }

  .btn-success {
      background: #28a745 !important;
      border: none;
      border-radius: 0.375rem;
  }