/* ================= CART PAGE STYLES (cart.html) ================= */
/* Biến dùng chung xem tại :root trong style.css. File này chỉ chứa style riêng cho cart.html. */

.cart-section {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 56px 30px 120px;
}

.cart-title {
  margin: 0 0 48px;
  text-align: center;
  font-family: var(--font-ma-clayton);
  font-weight: 400;
  font-size: clamp(36px, 4vw, 56px);
  color: var(--color-gray-100);
}

.cart-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
}

.cart-table thead th {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--Zeus-7);
  text-align: left;
  font-family: var(--font-manrope);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-gray-100);
}

.cart-table thead th:last-child,
.cart-table tbody td:last-child {
  text-align: right;
}

.cart-table tbody td {
  padding: 32px 0;
  border-bottom: 1px solid var(--Zeus-7);
  vertical-align: middle;
  font-family: var(--font-manrope);
  font-size: 15px;
  color: var(--color-gray-100);
}

.cart-price-cell {
  font-weight: 600;
  white-space: nowrap;
  text-align: right;
}

.cart-product-cell {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cart-thumb {
  display: block;
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 6px;
}

.cart-thumb--red {
  background-color: #7a1f22;
}

.cart-thumb--orange {
  background-color: #e0791e;
  background-image: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.25) 0%, transparent 50%);
}

.cart-product-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cart-product-name {
  font-weight: 600;
  color: var(--color-gray-100);
  text-decoration: none;
}

.cart-product-name:hover {
  text-decoration: underline;
}

.cart-product-meta {
  font-size: 13px;
  color: var(--color-slate);
}

.cart-qty-input {
  width: 64px;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid rgba(30, 27, 22, 0.18);
  border-radius: 6px;
  font-family: var(--font-manrope);
  font-size: 14px;
  text-align: center;
}

.cart-qty-input:focus {
  outline: none;
  border-color: var(--color-teal);
}

.cart-summary {
  width: 100%;
  max-width: 320px;
  margin: 40px 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-manrope);
  font-size: 15px;
  color: var(--color-slate);
}

.cart-summary-total {
  padding-top: 12px;
  border-top: 1px solid var(--Zeus-7);
  font-weight: 600;
  font-size: 17px;
  color: var(--color-gray-100);
}

.cart-actions {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.cart-checkout {
  padding: 14px 56px;
}

.cart-remove-btn {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  color: var(--color-slate);
  opacity: 0.6;
}

.cart-remove-btn:hover {
  opacity: 1;
  color: var(--color-terracotta);
}

/* ================= RESPONSIVE ================= */
@media screen and (max-width: 640px) {
  .cart-section {
    padding: 40px 20px 80px;
  }

  .cart-product-cell {
    gap: 12px;
  }

  .cart-thumb {
    width: 56px;
    height: 56px;
  }

  .cart-table thead th:nth-child(2),
  .cart-table tbody td:nth-child(2) {
    display: none;
  }
}
