﻿.cart-checkout-page {
  margin-bottom: 50px;
}

.cart-page-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  margin-bottom: 18px;
  margin-top: 20px;
}

.cart-page-head.page-hero-head {
  align-items: center;
}

.cart-page-head.page-hero-head .cart-continue-btn {
  margin-top: 8px;
}

.breadcrumb-cart {
  color: #8a8a8a;
  margin-bottom: 6px;
}

.breadcrumb-cart a {
  color: #a20101;
}

.cart-page-head h1 {
  margin: 0;
  font-family: var(--font-malik-bold);
  color: var(--bs-primary);
}

.cart-panel,
.checkout-panel {
  background: #fff;
  border: 1px solid rgba(194, 1, 22, 0.14);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.cart-panel {
  padding: 18px;
}

.checkout-panel {
  padding: 18px;
  position: sticky;
  top: 90px;
}

.cart-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.cart-panel-head h2,
.checkout-panel h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #222;
  margin-bottom: 10px;
}

.cart-total {
  color: #c20116;
  font-weight: 800;
}

.cart-empty-message {
  display: block;
  padding: 14px;
  border: 1px dashed #d8b6b9;
  border-radius: 8px;
  background: #fff7f8;
  text-align: center;
}

.cart-empty-message p {
  margin-bottom: 14px;
}

.cart-table {
  margin-bottom: 0;
}

.cart-table th {
  background: #fff5e6;
  color: var(--bs-primary);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .2px;
  border-bottom: 2px solid var(--bs-primary);
}

.cart-table th,
.cart-table td {
  vertical-align: middle;
}

.col-stt {
  width: 48px;
  text-align: center;
}

.col-product {
  min-width: 280px;
}

.col-qty {
  width: 150px;
}

.col-price {
  width: 130px;
  white-space: nowrap;
  font-weight: 700;
  color: #a20101;
}

.col-action {
  width: 80px;
  text-align: center;
}

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

.product-cell .thumb {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #eee;
  flex-shrink: 0;
}

.product-cell .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-cell .title {
  display: block;
  font-weight: 700;
  color: #222;
  line-height: 1.35;
}

.product-cell .unit-price {
  margin-top: 4px;
  color: #8c8c8c;
  font-size: 13px;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
}

.btn-qty {
  width: 36px;
  height: 36px;
  border: 0;
  background: #fafafa;
  font-weight: 700;
}

.qty-input {
  width: 36px;
  height: 36px;
  border: 0;
  text-align: center;
}

.btn-remove {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid #f1c6ca;
  background: #fff7f8;
  color: #c20116;
}

.checkout-form .form-group {
  margin-bottom: 10px;
}

.checkout-form label {
  margin-bottom: 4px;
  font-weight: 600;
}

.form-note {
  display: block;
  margin-bottom: 10px;
  color: #666;
  background: #fff9f0;
  border: 1px solid #ffe4bb;
  border-radius: 8px;
  padding: 10px;
}

.field-error {
  display: block;
  color: #dc3545;
  font-size: 12px;
}

.form-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.btn-order {
  flex: 1;
}

.btn-reset {
  min-width: 100px;
}

@media (max-width: 991.98px) {
  .checkout-panel {
    position: static;
  }
}

@media (max-width: 767.98px) {
  .cart-checkout-page {
    padding-top: 28px;
  }

  .cart-page-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .cart-page-head.page-hero-head {
    align-items: center;
  }

  .cart-panel,
  .checkout-panel {
    padding: 14px;
  }

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

  .cart-table {
    min-width: 680px;
  }

  .form-actions {
    flex-direction: column;
  }

  .btn-reset {
    width: 100%;
  }
}

#floatingCart {
  display: none !important;
}
