 * { box-sizing: border-box; }

  body {
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    background: #f4f4f4;
    color: #333;
  }

  .cart-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 24px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
    align-items: start;
  }

  .cart-page h1 {
    grid-column: 1 / -1;
    color: #6e1717;
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0 0 8px;
  }

  /* ---------- Cart items list ---------- */
  .cart-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .cart-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  }

  .cart-item img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 14px;
    flex-shrink: 0;
  }

  .cart-item-details {
    flex: 1;
    min-width: 0;
  }

  .cart-item-details h3 {
    margin: 0 0 6px;
    font-size: 1.05rem;
    color: #1a1a1a;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .cart-item-price {
    color: #c0392b;
    font-weight: 700;
    font-size: 0.95rem;
    margin: 0;
  }

  .cart-item-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
  }

  .quantity-counter {
    display: flex;
    align-items: center;
    border: 1px solid #e0e0e0;
    border-radius: 999px;
    overflow: hidden;
  }

  .quantity-btn {
    background: transparent;
    border: none;
    width: 34px;
    height: 34px;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    cursor: pointer;
  }

  .quantity-value {
    width: 26px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
  }

  .remove-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
  }

  .remove-btn svg {
    width: 20px;
    height: 20px;
  }

  .remove-btn:hover {
    color: #d92c2c;
  }

  /* ---------- Order summary ---------- */
  .order-summary {
    background: #fff;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 24px;
  }

  .order-summary h2 {
    margin: 0 0 20px;
    font-size: 1.2rem;
    color: #1a1a1a;
    font-weight: 800;
  }

  .summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    margin-bottom: 14px;
    color: #555;
  }

  .summary-row span:last-child {
    color: #1a1a1a;
    font-weight: 600;
  }

  .summary-divider {
    border: none;
    border-top: 1px solid #eee;
    margin: 16px 0;
  }

  .summary-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.15rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 24px;
  }

  .summary-total span:last-child {
    color: #c0392b;
  }

  .checkout-btn {
    width: 100%;
    background: #6e1717;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 16px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
  }

  .checkout-btn:hover {
    background: #4f0f0f;
    transform: translateY(-1px);
  }

  .toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #b83b3b;
    color: #fff;
    padding: 14px 24px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1000;
  }

  .toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }

  .empty-cart {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 24px;
}

.empty-cart-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-cart h2 {
    color: #1a1a1a;
    font-size: 1.5rem;
    margin: 0 0 8px;
}

.empty-cart p {
    color: #777;
    font-size: 1rem;
    margin: 0 0 28px;
}

.shop-now-btn {
    display: inline-block;
    background: #6e1717;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    padding: 14px 36px;
    border-radius: 999px;
    transition: background 0.2s ease, transform 0.15s ease;
}

.shop-now-btn:hover {
    background: #4f0f0f;
    transform: translateY(-1px);
}

  /* ---------- Responsive ---------- */
  @media (max-width: 768px) {
    .cart-page {
      grid-template-columns: 1fr;
      padding: 24px 16px;
      gap: 24px;
    }

    .order-summary {
      position: static;
    }
  }

  @media (max-width: 480px) {
    .cart-item {
      flex-wrap: wrap;
      padding: 12px;
    }

    .cart-item img {
      width: 70px;
      height: 70px;
    }

    .cart-item-details h3 {
      font-size: 0.95rem;
    }

    .cart-item-actions {
      width: 100%;
      justify-content: space-between;
      margin-top: 8px;
    }
  }