body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.cart-section {
  flex: 1 0 auto;
  min-height: 60vh;
  background: #fff;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  font-family: 'Poppins', sans-serif;
}

.cart-section h2 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 40px;
  font-weight: 500;
  color: #333;
}

#cart-items {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  padding: 16px;
  background-color: #fff;
  border-radius: 8px;
  border-bottom: 1px solid #eee;
  transition: all 0.2s ease;
}

.cart-item:hover {
  background-color: #fafafa;
}

.cart-item-content {
  display: flex;
  align-items: stretch;
  gap: 32px;
  flex: 1;
  min-width: 0;
  min-height: 220px;
}

.cart-item-image {
  width: 220px;
  height: 220px;
  object-fit: contain;
  background: #fff;
  border-radius: 4px;
  flex-shrink: 0;
}

.cart-item-details {
  flex: 1;
  min-width: 0;
  padding-right: 20px;
}

.cart-item-details h4 {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 12px;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-details p {
  margin: 4px 0;
  font-size: 0.9rem;
  color: #888;
}

.cart-item-price {
  font-weight: 500;
  color: #333 !important;
  font-size: 1rem !important;
  margin-top: 12px !important;
}

.delete-button {
  padding: 8px 16px;
  background: none;
  color: #666;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.delete-button:hover {
  color: #000;
}

.delete-button i {
  font-size: 0.9rem;
}

.cart-total {
  padding: 24px 0;
  border-top: 1px solid #eee;
  margin-top: 40px;
  text-align: right;
}

.cart-total h3 {
  font-size: 1.4rem;
  color: #333;
  margin-bottom: 20px;
  font-weight: 500;
}

.cart-total button {
  padding: 12px 32px;
  background-color: #000;
  color: white;
  font-size: 1rem;
  font-weight: 500;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-block;
}

.cart-total button:hover {
  background-color: #333;
}

/* Mensaje de carrito vacío */
#cart-items p {
  text-align: center;
  font-size: 1.1rem;
  color: #888;
  padding: 40px 0;
}

@media (max-width: 768px) {
  .cart-section {
    padding: 20px;
  }

  .cart-item {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 12px;
  }
  
  .cart-item-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    padding-right: 0;
  }
  
  .cart-item-image {
    width: 100%;
    height: 320px;
    object-fit: contain;
    background: #fff;
  }
  
  .cart-item-details {
    width: 100%;
  }
  
  .cart-item-details h4 {
    white-space: normal;
    font-size: 1rem;
  }
  
  .delete-button {
    width: 100%;
    justify-content: center;
    padding: 10px;
    border-top: 1px solid #eee;
    margin-top: 8px;
  }
  
  .cart-total {
    text-align: center;
    padding: 20px 0;
  }
  
  .cart-total h3 {
    font-size: 1.2rem;
  }
  
  .cart-total button {
    width: 100%;
    padding: 14px;
  }
}

footer {
  flex-shrink: 0;
}