/* Cart Page container */
.cart-container {
  padding: 100px 0 50px;
  min-height: 80vh;
}

/* Glassmorphism for Cart */
.cart-table-container {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Table Styles - Dark Theme */
.cart-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 15px;
}

.cart-table thead th {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 15px;
  color: #ffc107; /* Warning/Gold color */
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  background: transparent;
}

.cart-table tbody tr {
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s;
}

.cart-table tbody tr:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.1);
}

.cart-table td {
  padding: 15px;
  vertical-align: middle;
  color: #fff;
  border: none;
}

/* Product Info in Table */
.cart-product-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.cart-product-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-product-name {
  font-weight: 600;
  color: #fff;
  margin: 0;
}

.cart-product-name a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

.cart-product-name a:hover {
  color: #ffc107;
}

/* Quantity Control */
.qty-control {
  display: flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  overflow: hidden;
  width: 120px;
  background: rgba(0, 0, 0, 0.2);
}

.qty-btn {
  background: transparent;
  border: none;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  transition: background 0.2s;
}

.qty-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffc107;
}

.qty-input {
  width: 50px;
  border: none;
  text-align: center;
  font-weight: 600;
  outline: none;
  background: transparent;
  color: #fff;
}

/* Summary Box */
.cart-summary {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
}

.summary-title {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 15px;
  margin-bottom: 20px;
  color: #ffc107;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  color: rgba(255, 255, 255, 0.7);
}

.summary-total {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
}

/* Buttons */
.btn-checkout {
  width: 100%;
  padding: 12px;
  border-radius: 25px;
  background: linear-gradient(45deg, #ffc107, #ffdb4d);
  color: #000;
  font-weight: 700;
  border: none;
  transition: all 0.3s;
  box-shadow: 0 4px 10px rgba(255, 193, 7, 0.3);
}

.btn-checkout:hover {
  background: #ffca2c;
  transform: translateY(-2px);
}

.btn-remove {
  color: #dc3545;
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  transition: color 0.2s;
}

.btn-remove:hover {
  color: #a71d2a;
}

/* Animations */
@keyframes slideOut {
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

.cart-item-removing {
  animation: slideOut 0.5s forwards;
}

/* Responsive */
@media (max-width: 768px) {
  .cart-table thead {
    display: none;
  }

  .cart-table tr {
    display: block;
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 10px;
  }

  .cart-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
  }

  .cart-table td:last-child {
    border-bottom: none;
  }

  .cart-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #888;
  }
}
