/* cart-styles.css - Styles for cart page */

/* Base Styles */
body {
    font-family: Arial, sans-serif;
    background-color: #f6f6f6;
    margin: 0;
    padding: 0;
    padding-top: 70px; /* Space for fixed navbar */
    color: #333;
  }
  
  /* Navigation Bar Styles */
  .nav-bar {
    width: 100%;
    padding: 10px 20px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: rgba(83, 199, 164, 0.959);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    box-sizing: border-box;
  }
  
  .nav-bar a {
    margin-right: 20px;
    text-decoration: none;
    color: #333;
    font-size: 16px;
    font-weight: bold;
    transition: color 0.3s ease;
  }
  
  .nav-bar a:hover {
    color: #007bff;
  }
  
  /* Page Header */
  .page-header {
    text-align: center;
    margin-bottom: 25px;
    padding: 15px;
  }
  
  .page-header h1 {
    font-size: 32px;
    color: #2c3e50;
    margin: 0;
  }
  
  /* Wallet Container */
  .wallet-container {
    position: fixed;
    top: 10px;
    right: 20px;
    text-align: right;
    z-index: 1001;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-width: 180px;
  }
  
  .wallet-btn {
    padding: 8px 15px;
    font-size: 14px;
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    width: 100%;
    margin-bottom: 5px;
  }
  
  .wallet-btn:hover {
    background-color: #0056b3;
  }
  
  .wallet-btn.connected {
    background-color: #28a745;
  }
  
  .wallet-btn.connected:hover {
    background-color: #218838;
  }
  
  #walletStatus {
    font-size: 12px;
    margin: 5px 0 0 0;
    word-break: break-all;
  }
  
  /* Status Message */
  .status-message {
    max-width: 800px;
    margin: 10px auto;
    padding: 10px 15px;
    border-radius: 5px;
    text-align: center;
    display: none;
  }
  
  .status-message.info {
    display: block;
    background-color: #e3f2fd;
    color: #0d47a1;
    border-left: 5px solid #2196f3;
  }
  
  .status-message.success {
    display: block;
    background-color: #e8f5e9;
    color: #2e7d32;
    border-left: 5px solid #4caf50;
  }
  
  .status-message.error {
    display: block;
    background-color: #ffebee;
    color: #c62828;
    border-left: 5px solid #f44336;
  }
  
  /* Cart Container */
  .cart-content {
    max-width: 900px;
    margin: 0 auto 40px auto;
  }
  
  .cart-container {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
  }
  
  /* Cart Items Table */
  .cart-items {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
  }
  
  .cart-items th, .cart-items td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
  }
  
  .cart-items th {
    font-weight: 600;
    color: #555;
    background-color: #f9f9f9;
  }
  
  .cart-item {
    transition: background-color 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
  }
  
  .cart-item:hover {
    background-color: #f9f9f9;
  }
  
  /* Price column */
  .price-column {
    text-align: right;
    color: #333;
    font-weight: 600;
  }
  
  .price-fiat {
    display: block;
    font-size: 12px;
    color: #666;
    font-weight: normal;
    margin-top: 2px;
  }
  
  .price-header {
    text-align: right;
  }
  
  /* Product Details */
  .product-info {
    display: flex;
    align-items: center;
  }
  
  .product-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 15px;
  }
  
  .product-details {
    flex: 1;
  }
  
  .product-details h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
  }
  
  .variant {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 2px;
  }
  
  /* Quantity Controls */
  .quantity-control {
    display: flex;
    align-items: center;
    max-width: 120px;
  }
  
  .quantity-btn {
    width: 30px;
    height: 30px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
  }
  
  .quantity-btn:hover {
    background-color: #e0e0e0;
  }
  
  .quantity-input {
    width: 40px;
    height: 30px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin: 0 5px;
  }
  
  .quantity-input:focus {
    outline: none;
    border-color: #007bff;
  }
  
  /* Remove Button */
  .remove-btn {
    background: none;
    border: none;
    color: #dc3545;
    font-size: 18px;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 5px;
  }
  
  .remove-btn:hover {
    color: #c82333;
  }
  
  /* Cart Summary */
  .cart-summary {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
  }
  
  .summary-title {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    color: #333;
  }
  
  .summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
  }
  
  .summary-total {
    font-weight: bold;
    font-size: 18px;
    padding-top: 15px;
    border-top: 2px solid #ddd;
  }
  
  /* Cart Actions */
  .cart-actions {
    margin-top: 25px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
  }
  
  .btn {
    padding: 12px 20px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
  }
  
  .btn i {
    margin-right: 8px;
  }
  
  .btn-primary {
    background-color: #007bff;
    color: white;
    border: none;
  }
  
  .btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }
  
  .btn-outline {
    background-color: transparent;
    color: #007bff;
    border: 1px solid #007bff;
  }
  
  .btn-outline:hover {
    background-color: #f0f7ff;
  }
  
  .btn-danger {
    background-color: #dc3545;
    color: white;
    border: none;
  }
  
  .btn-danger:hover {
    background-color: #c82333;
  }
  
  .checkout-btn {
    flex: 1;
    min-width: 180px;
  }
  
  /* Empty Cart */
  .cart-empty {
    text-align: center;
    padding: 40px 20px;
  }
  
  .cart-empty i {
    font-size: 60px;
    color: #ccc;
    margin-bottom: 20px;
  }
  
  .cart-empty h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #333;
  }
  
  .start-shopping {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
  }
  
  .start-shopping:hover {
    background-color: #0056b3;
  }
  
  /* Loading State */
  .loading-cart {
    text-align: center;
    padding: 40px 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }
  
  /* Footer */
  footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    background-color: #f8f9fa;
    border-top: 1px solid #eee;
    color: #666;
  }
  
  /* Responsive Styles */
  @media (max-width: 768px) {
    .wallet-container {
      position: relative;
      top: 0;
      right: 0;
      width: 100%;
      margin-bottom: 20px;
      text-align: center;
    }
  
    .wallet-btn {
      max-width: 200px;
      margin: 0 auto;
    }
  
    #walletStatus {
      text-align: center;
    }
  
    .cart-actions {
      flex-direction: column;
    }
  
    .btn {
      width: 100%;
    }
  
    .cart-items th, .cart-items td {
      padding: 10px;
    }
  
    .product-info {
      flex-direction: column;
      text-align: center;
    }
  
    .product-img {
      margin-right: 0;
      margin-bottom: 10px;
    }
  
    .cart-item td {
      vertical-align: top;
    }
  
    .remove-btn {
      padding: 8px;
    }
  }
  
  /* Smaller screens */
  @media (max-width: 576px) {
    .cart-items {
      display: block;
    }
  
    .cart-items thead {
      display: none;
    }
  
    .cart-items tbody, .cart-items tr, .cart-items td {
      display: block;
      width: 100%;
      text-align: center;
    }
  
    .cart-item {
      margin-bottom: 20px;
      padding-bottom: 20px;
      border-bottom: 1px solid #eee;
    }
  
    .cart-item td {
      border-bottom: none;
      padding: 5px;
    }
  
    .price-column {
      text-align: center;
      margin: 10px 0;
    }
  
    .quantity-control {
      margin: 10px auto;
    }
  }