/* 
  HD-INOX Cart Page Styles (gio-hang.css)
*/

.cart-container {
  /* padding: 40px 0 80px; */
}

.cart-breadcrumb {
  font-size: 13px;
  color: #888;
  margin-bottom: 20px;
}
.cart-breadcrumb a { color: inherit; text-decoration: none; }
.cart-breadcrumb span { color: #111; font-weight: 600; }

.cart-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 40px;
  text-transform: uppercase;
}

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: flex-start;
}

/* LEFT: CART ITEMS */
.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid #eee;
  position: relative;
}

.cart-item-img {
  width: 120px;
  aspect-ratio: 1;
  position: relative;
  /* border: 1px solid #eee; */
  /* padding: 5px; */
  background: white;
}
/* HD-INOX Branded Frame */
/* .cart-item-img::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  border: 4px solid var(--blue-primary);
  pointer-events: none;
} */
.cart-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-info {
  flex: 1;
}

.cart-item-title {
  font-size: 16px;
  font-weight: 700;
  color: #111;
  margin-bottom: 5px;
  line-height: 1.4;
}

.cart-item-variant {
  font-size: 13px;
  color: var(--blue-primary);
  margin-bottom: 15px;
}
.cart-item-variant span { color: #888; margin-left: 10px; }

.cart-item-bottom {
  display: flex;
  align-items: center;
  gap: 30px;
}

.cart-qty-box {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 4px;
}
.cart-qty-btn {
  width: 30px;
  height: 30px;
  border: none;
  background: none;
  cursor: pointer;
  color: #888;
  font-size: 16px;
}
.cart-qty-input {
  width: 40px;
  height: 30px;
  text-align: center;
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
  border-top: none;
  border-bottom: none;
  font-weight: 500;
}

.cart-item-price {
  font-weight: 700;
  font-size: 16px;
  color: #111;
}

.cart-item-remove {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-primary);
  cursor: pointer;
  transition: 0.2s;
}
.cart-item-remove:hover {
  background: #f5f5f5;
  border-color: #ccc;
}

/* RIGHT: SUMMARY */
.cart-summary {
  background: #f7f9fc;
  padding: 30px;
  border-radius: 8px;
}

.summary-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 30px;
  text-transform: uppercase;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  font-size: 14px;
  color: #444;
}
.summary-row.total-row {
  margin-top: 30px;
  border-top: 1px solid #ddd;
  padding-top: 20px;
  font-weight: 800;
  color: #111;
  font-size: 18px;
}
.summary-row.total-row .total-price {
  font-size: 24px;
}

/* Voucher */
.summary-voucher {
  margin-top: 25px;
}
.voucher-label {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
  display: block;
}
.voucher-input-group {
  display: flex;
  gap: 10px;
}
.voucher-input-group input {
  flex: 1;
  height: 40px;
  padding: 0 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 13px;
}
.btn-apply {
  background: #c1d4f0;
  color: var(--blue-primary);
  border: none;
  padding: 0 20px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

.btn-checkout {
  width: 100%;
  height: 50px;
  background: var(--blue-primary);
  color: white;
  border: none;
  border-radius: 4px;
  font-weight: 700;
  font-size: 15px;
  margin-top: 30px;
  text-transform: uppercase;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 991px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }
  .cart-summary {
    margin-top: 20px;
  }
}

@media (max-width: 576px) {
  .cart-item {
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .cart-item-img {
    width: 80px;
  }
  .cart-item-remove {
    position: absolute;
    top: 20px; right: 0;
  }
}
