/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #f7f9fc;
    color: #333;
    line-height: 1.6;
  }
  
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
  }
  
  /* Header */
  .main-header {
    text-align: center;
    padding: 30px 20px;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 30px;
  }
  
  .main-header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
  }
  
  .main-header p {
    color: #7f8c8d;
    margin-top: 8px;
  }
  
  /* Products Grid */
  .products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
  }
  
  .product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
  }
  
  .product-card:hover {
    transform: translateY(-5px);
  }
  
  .product-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
  }
  
  .card-body {
    padding: 16px;
  }
  
  .card-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 6px;
  }
  
  .card-price {
    color: #e67e22;
    font-weight: bold;
    margin-bottom: 12px;
  }
  
  .btn-add {
    width: 100%;
    padding: 10px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s;
  }
  
  .btn-add:hover {
    background: #2980b9;
  }
  
  .quantity-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }
  
  .qty-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: #ecf0f1;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
  }
  
  .qty-btn:hover {
    background: #bdc3c7;
    color: white;
  }
  
  .qty-display {
    font-weight: 600;
    min-width: 40px;
    text-align: center;
  }
  
  /* Sidebar Cart */
  .cart-sidebar {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    position: sticky;
    top: 20px;
    height: fit-content;
  }
  
  .cart-header h2 {
    font-size: 1.3rem;
    margin-bottom: 16px;
    color: #2c3e50;
  }
  
  .cart-items {
    min-height: 100px;
    margin: 20px 0;
    border-bottom: 1px solid #eee;
  }
  
  .cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-top: 1px dashed #eee;
  }
  
  .cart-item:first-child {
    border-top: none;
  }
  
  .item-info {
    flex: 1;
  }
  
  .item-name {
    font-weight: 600;
    font-size: 0.95rem;
  }
  
  .item-subtotal {
    font-size: 0.9rem;
    color: #7f8c8d;
  }
  
  .remove-item {
    color: #e74c3c;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
  }
  
  .empty-cart {
    color: #95a5a6;
    text-align: center;
    font-style: italic;
    padding: 20px 0;
  }
  
  .cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    margin: 20px 0;
    color: #2c3e50;
  }
  
  .btn-confirm {
    width: 100%;
    padding: 14px;
    background: #2ecc71;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
  }
  
  .btn-confirm:hover:not(:disabled) {
    background: #27ae60;
  }
  
  .btn-confirm:disabled {
    background: #95a5a6;
    cursor: not-allowed;
  }
  
  /* Modal */
  .modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
  }
  
  .modal.hidden {
    display: none;
  }
  
  .modal-content {
    background: white;
    padding: 40px;
    border-radius: 16px;
    width: 90%;
    max-width: 450px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  }
  
  .modal-content i {
    font-size: 4rem;
    color: #2ecc71;
    margin-bottom: 16px;
  }
  
  .order-details {
    margin: 20px 0;
    text-align: left;
  }
  
  .order-line {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
  }
  
  .final-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.3rem;
    margin: 20px 0;
    font-weight: 600;
  }
  
  .btn-primary {
    width: 100%;
    padding: 12px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
  }
  
  .btn-primary:hover {
    background: #2980b9;
  }
  
  /* Responsive */
  @media (max-width: 768px) {
    .container {
      grid-template-columns: 1fr;
    }
  }