/* static/css/cart.css */

/* Cart Page Container */
.cart-page {
    padding: 2rem 0;
  }
  
  .cart-page h1 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
  }
  
  /* Cart Items Container */
  #cart-items-container {
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid rgba(128, 0, 0, 0.3);
  }
  
  /* Empty Cart Message */
  .empty-cart-message {
    text-align: center;
    padding: 3rem 0;
  }
  
  .empty-cart-message p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
  }
  
  /* Cart Items */
  .cart-item {
    display: grid;
    grid-template-columns: 80px 2fr 1fr 1fr 1fr 50px;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(128, 0, 0, 0.3);
    gap: 1rem;
  }
  
  .cart-item:last-child {
    border-bottom: none;
  }
  
  /* Cart Item Image */
  .cart-item-image {
    width: 80px;
    height: 80px;
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid rgba(128, 0, 0, 0.3);
  }
  
  .cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  /* Cart Item Details */
  .cart-item-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .cart-item-name {
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 600;
  }
  
  .cart-item-options {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: #aaa;
  }
  
  .color-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-left: 5px;
    vertical-align: middle;
    border: 1px solid rgba(255, 255, 255, 0.3);
  }
  
  /* Cart Item Price */
  .cart-item-price {
    font-weight: 600;
    color: var(--text-light);
  }
  
  /* Cart Item Quantity */
  .quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid rgba(128, 0, 0, 0.3);
    border-radius: 4px;
    overflow: hidden;
    width: fit-content;
  }
  
  .quantity-btn {
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    color: var(--text-light);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .quantity-btn:hover {
    background-color: var(--accent-maroon);
  }
  
  .quantity-input {
    width: 40px;
    height: 30px;
    text-align: center;
    border: none;
    border-left: 1px solid rgba(128, 0, 0, 0.3);
    border-right: 1px solid rgba(128, 0, 0, 0.3);
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
  }
  
  /* Cart Item Total */
  .cart-item-total {
    font-weight: 700;
    color: var(--text-light);
  }
  
  /* Cart Item Actions */
  .cart-item-actions {
    display: flex;
    justify-content: center;
  }
  
  .remove-item-btn {
    background-color: transparent;
    border: none;
    color: #aaa;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
  }
  
  .remove-item-btn:hover {
    color: #ff4d4d;
  }
  
  /* Cart Summary */
  .cart-summary {
    margin-top: 2rem;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid rgba(128, 0, 0, 0.3);
  }
  
  .cart-summary h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(128, 0, 0, 0.3);
  }
  
  .summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
  }
  
  .summary-row.total {
    padding-top: 1rem;
    margin-top: 0.5rem;
    border-top: 1px solid rgba(128, 0, 0, 0.3);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-light);
  }
  
  /* Cart Actions */
  .cart-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
    gap: 1rem;
  }
  
  .continue-shopping {
    background-color: transparent;
    color: var(--text-light);
    border: 1px solid rgba(128, 0, 0, 0.5);
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
  }
  
  .continue-shopping:hover {
    background-color: rgba(0, 0, 0, 0.5);
  }
  
  .clear-cart {
    background-color: transparent;
    color: #ff4d4d;
    border: 1px solid #ff4d4d;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .clear-cart:hover {
    background-color: #ff4d4d;
    color: white;
  }
  
  .checkout {
    background: linear-gradient(145deg, var(--accent-maroon), var(--primary-maroon));
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .checkout:hover {
    background: linear-gradient(145deg, var(--text-light), var(--accent-maroon));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(128, 0, 0, 0.4);
  }
  
  /* Checkout Container */
  #checkout-container {
    margin-top: 2rem;
  }
  
  #checkout-container h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
  }
  
  /* Checkout Grid */
  .checkout-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
  }
  
  @media (max-width: 992px) {
    .checkout-grid {
      grid-template-columns: 1fr;
    }
  }
  
  /* Checkout Form */
  .checkout-form-container {
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid rgba(128, 0, 0, 0.3);
  }
  
  .form-section {
    margin-bottom: 2rem;
  }
  
  .form-section h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(128, 0, 0, 0.3);
  }
  
  .form-group {
    margin-bottom: 1rem;
  }
  
  .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-light);
  }
  
  .form-group input,
  .form-group select {
    width: 100%;
    padding: 0.8rem;
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(128, 0, 0, 0.3);
    border-radius: 4px;
    color: white;
  }
  
  .form-group input:focus,
  .form-group select:focus {
    outline: none;
    border-color: var(--accent-maroon);
  }
  
  .form-row {
    display: flex;
    gap: 1rem;
  }
  
  .form-row .form-group {
    flex: 1;
  }
  
  /* Payment Section */
  #stripe-payment-element {
    margin-top: 1rem;
  }
  
  .payment-message {
    color: #ff4d4d;
    text-align: center;
    margin-top: 1rem;
    min-height: 20px;
  }
  
  /* Checkout Actions */
  .checkout-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
  }
  
  .back-btn {
    background-color: transparent;
    color: var(--text-light);
    border: 1px solid rgba(128, 0, 0, 0.5);
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .back-btn:hover {
    background-color: rgba(0, 0, 0, 0.5);
  }
  
  .checkout-btn {
    background: linear-gradient(145deg, var(--accent-maroon), var(--primary-maroon));
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
  }
  
  .checkout-btn:hover {
    background: linear-gradient(145deg, var(--text-light), var(--accent-maroon));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(128, 0, 0, 0.4);
  }
  
  /* Order Summary */
  .order-summary {
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid rgba(128, 0, 0, 0.3);
    align-self: start;
  }
  
  .order-summary h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(128, 0, 0, 0.3);
  }
  
  /* Checkout Items */
  #checkout-items {
    margin-bottom: 1.5rem;
  }
  
  .checkout-item {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(128, 0, 0, 0.2);
  }
  
  .checkout-item:last-child {
    border-bottom: none;
  }
  
  .checkout-item-name {
    font-weight: 600;
    color: var(--text-light);
  }
  
  .checkout-item-details {
    font-size: 0.9rem;
    color: #aaa;
    margin: 0.2rem 0;
  }
  
  .checkout-item-price {
    margin-top: 0.5rem;
    font-weight: 600;
  }
  
  /* Order Confirmation */
  #order-confirmation {
    margin-top: 2rem;
  }
  
  .confirmation-container {
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    padding: 3rem;
    border: 1px solid rgba(128, 0, 0, 0.3);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
  }
  
  .confirmation-container i {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    color: #4CAF50;
  }
  
  .confirmation-container h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }
  
  .confirmation-container p {
    margin-bottom: 1rem;
    color: #ddd;
  }
  
  .order-number {
    font-size: 1.2rem;
    margin: 1.5rem 0;
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    display: inline-block;
  }
  
  /* Responsive Styles */
  @media (max-width: 768px) {
    .cart-item {
      grid-template-columns: 80px 1fr;
      row-gap: 0.8rem;
    }
    
    .cart-item-image {
      grid-row: span 2;
    }
    
    .cart-item-price,
    .cart-item-quantity,
    .cart-item-total {
      grid-column: 2;
    }
    
    .cart-item-actions {
      position: absolute;
      top: 1rem;
      right: 1rem;
    }
    
    .cart-actions {
      flex-direction: column;
    }
    
    .form-row {
      flex-direction: column;
    }
  }