/* ===== Cart Page – Corset Chuẩn ===== */

/* Breadcrumb */
.cart-breadcrumb {
  background: #faf7f5;
  padding: 12px 0;
  border-bottom: 1px solid #f0ece8;
}
.cart-breadcrumb .breadcrumb {
  margin: 0;
  padding: 0;
  background: transparent;
  font-size: 13px;
}
.cart-breadcrumb .breadcrumb-item a {
  color: #888;
  text-decoration: none;
  transition: color 0.3s;
}
.cart-breadcrumb .breadcrumb-item a:hover {
  color: #ad0353;
}
.cart-breadcrumb .breadcrumb-item.active {
  color: #ad0353;
  font-weight: 600;
}
.cart-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  color: #ccc;
}

/* Hero */
.cart-hero {
  background: linear-gradient(135deg, #690429 0%, #ad0353 50%, #d44a8a 100%);
  padding: 48px 0 44px;
  position: relative;
  overflow: hidden;
}
.cart-hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -60px;
  width: 300px;
  height: 300px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}
.cart-hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -40px;
  width: 220px;
  height: 220px;
  background: rgba(255,255,255,0.03);
  border-radius: 50%;
}
.cart-hero-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  z-index: 1;
}
.cart-hero-icon {
  width: 64px;
  height: 64px;
  background: rgba(255,255,255,0.15);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #fff;
  flex-shrink: 0;
  backdrop-filter: blur(4px);
}
.cart-hero-text h1 {
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 4px;
  letter-spacing: 0.5px;
}
.cart-hero-text p {
  color: rgba(255,255,255,0.75);
  font-size: 14px;
  margin: 0;
}

/* Section */
.cart-section {
  padding: 40px 0 60px;
  background: #f5f2ef;
  min-height: 400px;
}

/* Empty cart */
.empty-cart {
  text-align: center;
  padding: 60px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.04);
}
.empty-cart .empty-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #fdf0f3, #fce4ec);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: #ad0353;
  margin-bottom: 20px;
}
.empty-cart h3 {
  font-size: 20px;
  color: #333;
  margin: 0 0 8px;
  font-weight: 600;
}
.empty-cart p {
  font-size: 14px;
  color: #999;
  margin: 0 0 28px;
}
.empty-cart .btn-shop {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  background: linear-gradient(135deg, #ad0353, #d44a8a);
  color: #fff;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 4px 16px rgba(173,3,83,0.25);
}
.empty-cart .btn-shop:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(173,3,83,0.35);
  color: #fff;
}

/* Cart card */
.cart-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.05);
  overflow: hidden;
}
.cart-card-header {
  padding: 24px 28px 20px;
  border-bottom: 1px solid #f0ece8;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.cart-card-header h2 {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0;
}
.cart-card-header .cart-count-label {
  font-size: 13px;
  color: #999;
  margin: 0;
}
.cart-card-header .cart-count-label strong {
  color: #ad0353;
  font-weight: 700;
}

/* Table wrapper */
.cart-table-wrap {
  padding: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Table */
.cart-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 680px;
}
.cart-table thead th {
  background: #fdfaf8;
  color: #666;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 14px 16px;
  border-bottom: 2px solid #f0ece8;
  text-align: left;
  white-space: nowrap;
}
.cart-table thead th:last-child {
  text-align: center;
}
.cart-table tbody td {
  padding: 18px 16px;
  border-bottom: 1px solid #f5f2ef;
  vertical-align: middle;
  color: #444;
}
.cart-table tbody tr:last-child td {
  border-bottom: none;
}
.cart-table tbody tr {
  transition: background 0.2s;
}
.cart-table tbody tr:hover {
  background: #fdfaf8;
}

/* Product cell */
.cart-table .product-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cart-table .product-cell .product-thumb {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: #f5f2ef;
  overflow: hidden;
  flex-shrink: 0;
}
.cart-table .product-cell .product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cart-table .product-cell .product-name {
  font-weight: 600;
  color: #1a1a2e;
  font-size: 14px;
  line-height: 1.4;
}
.cart-table .product-cell .product-name small {
  display: block;
  color: #999;
  font-weight: 400;
  font-size: 12px;
  margin-top: 2px;
}

/* Quantity input */
.cart-table .qty-input {
  width: 56px;
  padding: 8px 6px;
  border: 2px solid #e8e4e0;
  border-radius: 8px;
  font-size: 14px;
  text-align: center;
  color: #333;
  background: #fdfaf8;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
  font-weight: 600;
}
.cart-table .qty-input:focus {
  border-color: #ad0353;
  box-shadow: 0 0 0 3px rgba(173,3,83,0.08);
  background: #fff;
}

/* Price cell */
.cart-table .price-cell {
  font-weight: 600;
  color: #333;
  white-space: nowrap;
}
.cart-table .total-cell {
  font-weight: 700;
  color: #ad0353;
  white-space: nowrap;
  font-size: 15px;
}

/* Color swatch */
.color-swatch {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #e0d8d0;
  vertical-align: middle;
  margin-left: 6px;
}

/* Delete button */
.delete-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 8px;
  background: #fef2f2;
  color: #dc2626;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}
.delete-btn:hover {
  background: #dc2626;
  color: #fff;
  transform: scale(1.08);
}

/* Total row */
.total-row {
  background: #fdfaf8 !important;
}
.total-row td {
  padding: 16px !important;
  font-weight: 700;
  border-top: 2px solid #f0ece8 !important;
}
.total-row .total-label {
  font-size: 15px;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.total-row .total-amount {
  font-size: 20px;
  color: #ad0353;
  font-weight: 800;
}

/* Cart actions */
.cart-actions {
  padding: 20px 28px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.continue-shopping {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #888;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s;
}
.continue-shopping:hover {
  color: #ad0353;
  text-decoration: none;
}
.btn-checkout {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  background: linear-gradient(135deg, #ad0353, #d44a8a);
  color: #fff;
  border: none;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  font-family: inherit;
  box-shadow: 0 4px 16px rgba(173,3,83,0.25);
}
.btn-checkout:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(173,3,83,0.35);
  color: #fff;
  text-decoration: none;
}

/* Trust badges */
.cart-trust {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}
.cart-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #888;
}
.cart-trust-item i {
  color: #ad0353;
  font-size: 16px;
}

/* Responsive */
@media (max-width: 767px) {
  .cart-hero { padding: 32px 0 28px; }
  .cart-hero-icon { width: 48px; height: 48px; font-size: 22px; border-radius: 12px; }
  .cart-hero-text h1 { font-size: 22px; }
  .cart-hero-text p { font-size: 13px; }
  .cart-section { padding: 24px 0 40px; }
  .cart-card-header { padding: 18px 16px 14px; }
  .cart-card-header h2 { font-size: 16px; }
  .cart-table { font-size: 13px; }
  .cart-table thead th { font-size: 11px; padding: 10px 10px; }
  .cart-table tbody td { padding: 14px 10px; }
  .cart-table .qty-input { width: 48px; padding: 6px 4px; font-size: 13px; }
  .cart-table .product-cell .product-thumb { width: 40px; height: 40px; }
  .cart-actions {
    flex-direction: column;
    padding: 16px;
  }
  .btn-checkout { width: 100%; justify-content: center; }
  .continue-shopping { justify-content: center; }
  .cart-trust { gap: 16px; }
  .cart-trust-item { font-size: 12px; }
}