.error-text {
  color: red;
  font-size: 13px;
  display: block;
  margin-top: 4px;
}

.input-error {
  border-color: red;
}

.btn-light {
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  background-color: #a3a3a3;
}

.header-bottom .btn-menuproduct .menu-sidebar {
  display: none;
}

.bk-btn {
  margin-top: 10px;
  text-align: right;
}

.bk-btn .bk-btn-paynow {
  line-height: 1.5rem;
}

.bk-btn .bk-btn-installment {
  line-height: 1.5rem;
  margin-right: 0px;
}

.home_top {
  padding-top: 20px;
}

.cart-empty {
  text-align: center;
  padding: 60px 20px;
  color: #666;
}

.cart-empty .empty-cart-image {
  width: 320px;
  opacity: 0.8;
}

.cart-empty .btn {
  display: inline-block;
  background: #007bff;
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 16px;
  margin-top: 10px;
}

.cart-empty .btn:hover {
  background: #0056b3;
  border: 0;
}


@media (max-width: 991px) {
  .menu-desktop {
    display: none !important;
  }
}

@media (min-width: 991px) {
  .menu-mobile-right {
    display: none !important;
  }
}

@media (max-width: 786px) {

  .list_sanpham table,
  th,
  td {
    display: block;

  }

  .list_sanpham table tbody tr:nth-child(1) {
    display: none;
  }

  .list_sanpham table .count .uk-position-relative {
    flex-direction: row;
  }

  .list_sanpham td {
    padding-left: 120px !important;
    position: relative;
    text-align: left;
    width: 100%;
  }

  .table-tong tr {
    padding: 10px;
    display: block;
  }

  #ec-module-cart td {
    width: 100%;
  }

  .list_sanpham td:before {
    position: absolute;
    top: 6px;
    left: 5px;
    width: 45%;
    padding-right: 10px;
    white-space: nowrap;
    text-align: left;
  }

  .list_sanpham td:nth-of-type(1):before {
    content: "Hình ảnh";
  }

  .list_sanpham td:nth-of-type(2):before {
    content: "Sản phẩm";
  }

  .list_sanpham td:nth-of-type(3):before {
    content: "Mã sản phẩm";
  }

  .list_sanpham td:nth-of-type(4):before {
    content: "Đơn giá";
  }

  .list_sanpham td:nth-of-type(5):before {
    content: "Số lượng";
  }

  .list_sanpham td:nth-of-type(6):before {
    content: "Thành tiền";
  }

  .list_sanpham td:nth-of-type(7):before {
    content: "Xóa";
  }

  table .count .uk-position-relative {
    justify-content: left;
  }

  .box_dattour center {
    margin-bottom: 10px;
  }

  .box_dattour {
    display: block;
  }

  .box_dattour center a {
    display: inline-block;
  }

  .dat_hang button {
    margin-right: 0px;
    font-size: 14px;
  }

  .dat_hang {
    display: flex;
    justify-content: center;
    margin-bottom: 10px !important;
  }
}

.header-bottom .btn-menuproduct .menu-sidebar {
  display: none;
}

.cart-icon {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.container-cart {
  max-width: 1400px;
  margin: 0 auto;
  padding: 25px 20px;
  display: grid;
  grid-template-columns: 1fr 580px;
  gap: 25px;
  align-items: start;
}

/* FORM BÊN TRÁI */
.checkout-form {
  background: white;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.form-section {
  margin-bottom: 25px;
}

.form-section:last-child {
  margin-bottom: 0;
}

.section-title {
  font-size: 17px;
  font-weight: 600;
  color: #333;
  text-transform: uppercase;
  margin-bottom: 15px;
  padding: 8px 7px 7px 7px;
  border-radius: 5px 5px 0 0;
  background: #eee;
  /* border-bottom: 2px solid #ff6b35; */
}

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

.form-group label {
  display: block;
  font-weight: 600;
  color: #555;
  margin-bottom: 6px;
  font-size: 13px;
}

.form-group label .required {
  color: #ff6b35;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.3s;
  height: 40px;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #ff6b35;
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 70px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 12px;
}

.payment-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.payment-option {
  position: relative;
}

.payment-option input[type="radio"] {
  position: absolute;
  opacity: 0;
}
.empty-cart-text{
  font-size: 16px;
}
.payment-option label {
  display: block;
  padding: 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  background: white;
  font-weight: normal;
}

.payment-option input[type="radio"]:checked+label {
  border-color: var(--color-main2);
  /* background: #eee; */
}

.option-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.option-icon {
  font-size: 20px;
}

.option-title {
  font-weight: 600;
  font-size: 14px;
  color: #333;
}

.option-details {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e0e0e0;
  display: none;
  font-size: 13px;
  color: #555;
  line-height: 1.6;
}

.payment-option input[type="radio"]:checked+label .option-details {
  display: block;
}

.option-details p {
  margin-bottom: 10px;
}

.option-details ul {
  list-style: none;
  padding-left: 0;
}

.option-details ul li {
  padding: 5px 0;
  padding-left: 20px;
  position: relative;
}

.option-details ul li:before {
  content: "•";
  position: absolute;
  left: 5px;
  color: #ff6b35;
  font-weight: bold;
}

.option-details strong {
  /* color: #ff6b35; */
}

.submit-btn {
  width: 100%;
  padding: 14px;
  background: #ff6b35;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 10px;
}

.submit-btn:hover {
  background: #ff5722;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 107, 53, 0.3);
}

/* CART BÊN PHẢI */
.cart-sidebar {
  position: sticky;
  top: 25px;
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  max-height: calc(100vh - 50px);
  overflow-y: auto;
}

.cart-header {
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  color: #333;
  margin-bottom: 15px;
  padding-bottom: 0;
  /* border-bottom: 2px solid #ff6b35; */
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-count {
  color: #333;
  padding: 0px 0 0 10px;
  border-radius: 15px;
  font-size: 13px;
}

.clear-cart-btn {
  background: #ff4444;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  margin-bottom: 15px;
  width: 100%;
}

.clear-cart-btn:hover {
  background: #cc0000;
  transform: translateY(-1px);
}

.cart-items {
  margin-bottom: 15px;
}

.cart-item {
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.cart-item:last-child {
  border-bottom: none;
}

.item-main {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
}

.item-image {
  width: 55px;
  height: 55px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.item-details {
  flex: 1;
}

.item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.item-name {
  font-weight: 600;
  color: #333;
  font-size: 15px;
  margin-bottom: 4px;
  line-height: 1.3;
}

.delete-item-btn {
  background: #ff4444;
  color: white;
  border: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s;
  padding: 0;
}

.delete-item-btn:hover {
  background: #cc0000;
  transform: scale(1.1);
}

.item-tag {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 4px;
}

.tag-main {
  background: #eee;
  color: #333;
}

.tag-addon {
  background: #e3f2fd;
  color: #1976d2;
}

.tag-standalone {
  background: #fff3e0;
  color: #f57c00;
}

.item-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--color-main2);
  border-radius: 6px;
  overflow: hidden;
}
.qty-control .qty-btn:nth-child(1){
  border-right: 1px solid var(--color-main2);
}
.qty-control .qty-btn:nth-child(3){
  border-left: 1px solid var(--color-main2);
}
.qty-btn {
  width: 24px;
  height: 24px;
  /* border: 1.5px solid #ff6b35; */
  background: white;
  color: #ff6b35;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  padding: 0;
}

.qty-btn:hover {
  background: #ff6b35;
  color: white;
}

.qty-display {
  min-width: 30px;
  text-align: center;
  font-weight: 600;
  font-size: 13px;
  color: #333;
}

.item-price {
  font-weight: 700;
  color: #ff6b35;
  font-size: 14px;
}

.item-addons {
  margin-left: 65px;
  margin-top: 6px;
}

.addon-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  background: #f8f9ff;
  border-radius: 5px;
  margin-bottom: 5px;
  font-size: 12px;
}

.addon-item:last-child {
  margin-bottom: 0;
}

.addon-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.addon-name {
  color: #555;
  flex: 1;
}

.addon-name::before {
  content: "↳ ";
  color: #ff6b35;
}

.addon-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.addon-price {
  font-weight: 600;
  color: #ff6b35;
  margin-left: 8px;
  font-size: 12px;
}

.delete-addon-btn {
  background: #ff8a80;
  color: white;
  border: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s;
  padding: 0;
  margin-left: 10px;
}

.delete-addon-btn:hover {
  background: #ff5252;
}

.cart-summary {
  background: #eee;
  padding: 15px;
  border-radius: 8px;
  margin-top: 15px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 13px;
}

.summary-label {
  color: #666;
}

.summary-value {
  font-weight: 600;
  color: #333;
}

.summary-total {
  margin-top: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-top: 0;
}

.summary-total .summary-label,
.summary-total .summary-value {
  font-size: 16px;
  font-weight: 700;
  color: #ff6b35;
}

.empty-cart {
  text-align: center;
  padding: 40px 20px;
  color: #999;
}

.empty-cart-icon {
  font-size: 60px;
  margin-bottom: 15px;
  opacity: 0.3;
}

/* SCROLLBAR */
.cart-sidebar::-webkit-scrollbar {
  width: 5px;
}

.cart-sidebar::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.cart-sidebar::-webkit-scrollbar-thumb {
  background: #ff6b35;
  border-radius: 10px;
}
.clear-cart-btn-icon{
  width: 20px;
  height: 20px;
}
/* RESPONSIVE */
@media (max-width: 1024px) {
  .container-cart {
    grid-template-columns: 1fr;
  }

  .cart-sidebar {
    position: relative;
    top: 0;
    max-height: none;
    order: -1;
  }
}

@media (max-width: 768px) {

  .container-cart {
    padding: 20px 15px;
    gap: 20px;
  }

  .checkout-form,
  .cart-sidebar {
    padding: 18px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .payment-methods {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-title {
    font-size: 16px;
  }

  .item-addons {
    margin-left: 0;
  }
}

@media (max-width: 480px) {
  .header-content {
    padding: 0 15px;
  }

  .cart-icon {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }

  .payment-methods {
    grid-template-columns: 1fr;
  }
  .form-section {
  margin-bottom: 0;
}
}

.item-price:empty,
.addon-price:empty {
  display: none;
}