/* ==========================================
   CART TOP
========================================== */

.cartTop {
  position: absolute;
  right: 7px;
  top: 7px;
  z-index: 9999;
}

.cartTop .icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #f2921d;
  color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  position: relative;
  transition:
    background 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cartTop .icon:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.cartTop .icon:before {
  font-size: 18px;
  color: #f2921d;
}

.cartTop .sl {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 20px;
  background: #e53935;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cartTop .sl span {
  display: none;
}

/* ==========================================
   OVERLAY
========================================== */

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  transition: 0.25s ease;
  z-index: 99;
}

.cart-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ==========================================
   CART PANEL
========================================== */

.cartpanel {
  position: absolute;
  top: 55px;
  right: 0;
  width: 380px;
  max-width: calc(100vw - 20px);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0.25s ease;
  z-index: 9999;
}

.cartpanel.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ==========================================
   HEADER
========================================== */

.cartpanel .title {
  background: #fff;
  color: #222;
  padding: 18px 20px;
  border-bottom: 1px solid #eee;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  text-transform: none;
}

.cartpanel .title a {
  color: #222;
  font-weight: 700;
}

.btn-closecart {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  color: #666;
  cursor: pointer;
  transition: 0.2s;
}

.btn-closecart:hover {
  background: #eee;
  color: #222;
}

.cart-list {
  max-height: 360px;
  overflow-y: auto;
}

.cart-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cart-list li {
  display: flex;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid #f2f2f2;
  transition: 0.2s;
}

.cart-list li:hover {
  background: #fafafa;
}

.cartTop .product-img {
  width: 70px;
  height: 70px;
  flex-shrink: 0;
}

.cartTop .product-img img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
}

.cartTop .product-info {
  flex: 1;
}

.cartTop .product-name {
  margin-bottom: 5px;
  line-height: normal;
}

.cartTop .product-name a {
  color: #222;
  font-size: 13px;
  font-weight: 600;
}

.cartTop .amount {
  font-size: 12px;
  color: #888;
  line-height: normal;
}

.cartTop .pop-price {
  font-size: 12px;
  color: #777;
  line-height: normal;
}

.cartTop .pop-price span {
  color: #d70018;
  font-size: 14px;
  font-weight: 700;
}

.cartTop .remove-product {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  color: #666;
  cursor: pointer;
  transition: 0.2s;
}

.cartTop .remove-product:hover {
  background: #ffecec;
  color: #d70018;
}

.cartTop .checkout-panel {
  padding: 16px;
  background: #fff;
  border-top: 1px solid #eee;
}

.cartTop .checkout-panel .total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  margin-bottom: 15px;
}

.cartTop .checkout-panel .total strong {
  color: #d70018;
  font-size: 18px;
}

.cartTop .checkout-panel .button {
  margin-top: 8px;
}

.cartTop .btn-checkout {
  display: block;
  width: 100%;
  height: 44px;
  line-height: 44px;
  text-align: center;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  transition: 0.2s;
}

.checkout-panel .button:first-child .btn-checkout {
  background: #f5f5f5 !important;
  color: #222 !important;
}

.checkout-panel .button:last-child .btn-checkout {
  background: #e53935;
  color: #fff !important;
}

.checkout-panel .button:last-child .btn-checkout:hover {
  background: #cc081f;
}

body.cart-open {
  overflow: hidden;
}

body.cart-open .cartTop .icon {
  background: #f2921d;
  box-shadow: 0 8px 25px rgba(242, 146, 29, 0.35);
}

body.cart-open .cartTop .icon:before {
  color: #fff;
}

body.cart-open .cartTop .sl {
  background: #fff;
  color: #f2921d;
  font-weight: 700;
}

body.cart-open .cartTop .icon::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(242, 146, 29, 0.35);
  animation: cartPulse 1.5s infinite;
}

@keyframes cartPulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  100% {
    transform: scale(1.25);
    opacity: 0;
  }
}

@media (max-width: 768px) {
  .box_menu {
    position: relative;
  }

  .cartTop {
    right: 15px;
    top: 4px;
  }

  .cartTop .icon {
    width: 35px;
    height: 35px;
  }

  .cartpanel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 90%;
    max-width: 380px;
    height: 100vh;
    border-radius: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: right 0.3s ease;
  }

  .cartpanel.active {
    right: 0;
  }

  .cart-list {
    max-height: calc(100vh - 210px);
  }
}

/* =====================================
   PRODUCT DETAIL ACTION
===================================== */

.pd-action-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 15px;
}

/* =====================================
   QUANTITY
===================================== */

.pd-quantity-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pd-quantity-label {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.pd-quantity {
  display: flex;
  align-items: center;
  height: 46px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.pd-quantity-input {
  width: 60px;
  height: 46px;
  border: none;
  outline: none;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
}

.pd-quantity-buttons {
  width: 34px;
  border-left: 1px solid #eee;
}

.pd-quantity-buttons button {
  width: 100%;
  height: 22px;
  border: none;
  background: #fff;
  cursor: pointer;
  transition: 0.2s;
}

.pd-quantity-buttons button:hover {
  background: #fafafa;
  color: #f2921d;
}

.pd-quantity-buttons button:first-child {
  border-bottom: 1px solid #eee;
}

.pd-quantity-buttons i {
  font-size: 10px;
}

/* =====================================
   ADD TO CART
===================================== */

.pd-btn-cart {
  height: 46px;
  padding: 0 24px;
  border-radius: 10px;
  border: 1px solid #f2921d;
  background: #fff7ef;
  color: #f2921d !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.25s;
}

.pd-btn-cart:hover {
  background: #f2921d;
  color: #fff !important;
}

.pd-btn-cart span {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 5px;
}

/* =====================================
   BUY NOW
===================================== */

.pd-buy-wrap {
  margin-top: 12px;
}

.pd-btn-buy {
  width: 100%;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #f2921d, #ff7a00);
  color: #fff !important;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: 0.25s;
  box-shadow: 0 8px 20px rgba(242, 146, 29, 0.25);
}

.pd-btn-buy:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(242, 146, 29, 0.35);
}

/* =====================================
   DISABLED
===================================== */

.pd-disabled {
  background: #f5f5f5;
  border-color: #ddd;
  color: #999 !important;
  cursor: not-allowed;
}

/* =====================================
   MOBILE
===================================== */

@media (max-width: 768px) {
  .pd-action-wrap {
    flex-direction: column;
    align-items: stretch;
  }

  .pd-quantity-wrap {
    justify-content: space-between;
  }

  .pd-btn-cart {
    width: 100%;
  }

  .pd-btn-buy {
    height: 50px;
    font-size: 15px;
  }
}

/* ==========================================
   CART PAGE
========================================== */

.info-cart {
  margin-top: 20px;
  padding: 0 10px;
}

.info-cart .result-cart {
  font-size: 16px;
  color: #444;
  margin-bottom: 20px;
}

.info-cart .result-cart b {
  color: #f2921d;
}

/* ==========================================
   TABLE WRAPPER
========================================== */

.info-cart .table_cart {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.info-cart .tbl-addtocart {
  width: 100%;
  border-collapse: collapse;
}

.info-cart .tbl-addtocart thead {
  background: #fafafa;
}

.info-cart .tbl-addtocart thead td {
  padding: 18px 15px;
  font-size: 14px;
  font-weight: 700;
  color: #333;
  border-bottom: 1px solid #eee;
}

.info-cart .tbl-addtocart tbody tr {
  border-bottom: 1px solid #f3f3f3;
}

.info-cart .tbl-addtocart tbody td {
  padding: 18px 15px;
  vertical-align: middle;
}

/* ==========================================
   PRODUCT
========================================== */

.info-cart .img {
  width: 80px;
}

.info-cart .img img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #eee;
}

.info-cart .t-title a {
  color: #222;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}

.info-cart .t-title p {
  margin-top: 6px;
  color: #888;
  font-size: 13px;
}

.info-cart .t-close {
  margin-top: 8px;
}

.info-cart .t-close a {
  color: #999;
  font-size: 13px;
  cursor: pointer;
  transition: 0.2s;
}

.info-cart .t-close a:hover {
  color: #dc3545;
}

.info-cart .t-close i {
  margin-right: 4px;
}

/* ==========================================
   PRICE
========================================== */

.info-cart .red {
  color: #666;
  font-size: 15px;
  font-weight: 500;
}

.info-cart .t-bold span {
  color: #d70018;
  font-size: 16px;
  font-weight: 700;
}

/* ==========================================
   QUANTITY
========================================== */

.info-cart .quantity {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90px;
  height: 42px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.info-cart .ipt-qua {
  width: 55px;
  height: 42px;
  border: none;
  outline: none;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
}

.info-cart .group-button {
  width: 34px;
  border-left: 1px solid #eee;
}

.info-cart .group-button button {
  width: 100%;
  height: 20px;
  border: none;
  background: #fff;
  cursor: pointer;
  transition: 0.2s;
}

.info-cart .group-button button:hover {
  background: #f8f8f8;
  color: #f2921d;
}

.info-cart .group-button button:first-child {
  border-bottom: 1px solid #eee;
}

.info-cart .group-button i {
  font-size: 10px;
}

/* ==========================================
   TOTAL
========================================== */

.info-cart .calcPrice {
  background: #fafafa;
}

.info-cart .totalPrice {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 15px;
}

.info-cart .totalPrice .p {
  font-size: 18px;
  font-weight: 600;
}

.info-cart .total_price {
  color: #d70018;
  font-size: 24px;
  font-weight: 700;
}

/* ==========================================
   BUTTONS
========================================== */

.info-cart .div_button {
  padding: 20px;
  background: #fff;
}

.info-cart .fr {
  float: right;
}

.info-cart .fl {
  float: left;
}

.info-cart .btn {
  border: none;
  cursor: pointer;
  transition: 0.25s;
}

.info-cart .button-back,
.info-cart .button-buy,
.info-cart .button-cart {
  height: 46px;
  min-width: 160px;
  border-radius: 10px;
  padding: 0 24px;
  font-size: 14px;
  font-weight: 600;
}

.info-cart .button-back {
  background: #f5f5f5;
  color: #333;
}

.info-cart .button-back:hover {
  background: #e9e9e9;
}

.info-cart .button-buy {
  background: #fff7ef;
  border: 1px solid #f2921d;
  color: #f2921d;
}

.info-cart .button-buy:hover {
  background: #f2921d;
  color: #fff;
}

.info-cart .button-cart {
  background: linear-gradient(135deg, #f2921d, #ff7a00);
  color: #fff;
  margin-left: 10px;
}

.info-cart .button-cart:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(242, 146, 29, 0.25);
}

/* ==========================================
   MOBILE
========================================== */

@media (max-width: 768px) {
  .info-cart .table_cart {
    box-shadow: none;
    background: transparent;
  }

  .info-cart .tbl-addtocart,
  .info-cart .tbl-addtocart tbody,
  .info-cart .tbl-addtocart tr,
  .info-cart .tbl-addtocart td {
    display: block;
    width: 100%;
  }

  .info-cart .tbl-addtocart thead {
    display: none;
  }

  .info-cart .tbl-addtocart tbody tr {
    background: #fff;
    border-radius: 12px;
    margin-bottom: 15px;
    padding: 15px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
  }

  .info-cart .tbl-addtocart tbody td {
    padding: 8px 0;
    border: none;
    text-align: left !important;
  }

  .info-cart .img {
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
  }

  .info-cart .img img {
    width: 110px;
    height: 110px;
  }

  .info-cart .red:before {
    content: "Gi\00E1: ";
    font-weight: 600;
    color: #333;
  }

  .info-cart .t-bold:before {
    content: "Th\00E0nh ti\1EC1n: ";
    font-weight: 600;
    color: #333;
    margin-right: 5px;
  }

  .info-cart .quantity {
    margin: 10px 0;
  }

  .info-cart .calcPrice {
    margin-top: 15px;
    border-radius: 12px;
  }

  .info-cart .totalPrice {
    flex-direction: column;
    gap: 5px;
    padding: 15px;
  }

  .info-cart .total_price {
    font-size: 28px;
  }

  .info-cart .div_button {
    padding: 0;
    background: transparent;
  }

  .info-cart .fr,
  .info-cart .fl {
    float: none;
    width: 100%;
  }

  .info-cart .button-back,
  .info-cart .button-buy,
  .info-cart .button-cart {
    width: 100%;
    margin: 8px 0;
  }

  .info-cart .button-cart {
    margin-left: 0;
  }
}
/* ==========================================
   CHECKOUT PAGE
========================================== */

.checkout-page {
  margin-top: 20px;
  padding: 0 10px;
}

/* ==========================================
   CARD
========================================== */

.checkout-page .info_general {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  margin-bottom: 20px;
}

/* ==========================================
   TITLE
========================================== */

.checkout-page .info_title {
  padding: 18px 20px;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #f2921d, #ff7a00);
}

/* ==========================================
   ORDER TABLE
========================================== */

.checkout-page .table_info {
  padding: 0;
}

.checkout-page .table_info table {
  width: 100%;
  border-collapse: collapse;
}

.checkout-page .table_info thead {
  background: #fafafa;
}

.checkout-page .table_info thead td {
  padding: 15px;
  font-weight: 700;
  color: #333;
  border-bottom: 1px solid #eee;
}

.checkout-page .table_info tbody td {
  padding: 15px;
  vertical-align: middle;
  border-bottom: 1px solid #f5f5f5;
}

/* ==========================================
   PRODUCT
========================================== */

.checkout-page .img {
  width: 70px;
}

.checkout-page .img img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #eee;
}

.checkout-page .t-title a {
  color: #222;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.checkout-page .t-id {
  margin-top: 5px;
  color: #888;
  font-size: 12px;
}

.checkout-page .quantity {
  display: inline-flex;
  min-width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 50px;
  background: #fff7ef;
  color: #f2921d;
  font-weight: 700;
}

.checkout-page .in-price {
  color: #d70018;
  font-weight: 700;
}

/* ==========================================
   TOTAL
========================================== */

.checkout-page .row_info {
  padding: 20px;
  background: #fafafa;
}

.checkout-page .row_info .row_left {
  float: left;
  font-size: 16px;
  font-weight: 600;
}

.checkout-page .row_info .row_right {
  float: right;
}

.checkout-page .total_price {
  color: #d70018;
  font-size: 24px;
  font-weight: 700;
}

/* ==========================================
   FORM
========================================== */

.checkout-page .info_content {
  padding: 25px;
}

.checkout-page .infomed_title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #222;
}

.checkout-page .row_input {
  margin-bottom: 18px;
}

.checkout-page .row_left {
  margin-bottom: 8px;
}

.checkout-page .row_left label {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.checkout-page .row_left label span {
  color: #dc3545;
}

.checkout-page .form-control {
  width: 100%;
  height: 46px;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 0 15px;
  font-size: 14px;
  transition: 0.25s;
}

.checkout-page textarea.form-control {
  height: 120px;
  resize: vertical;
  padding: 12px 15px;
}

.checkout-page .form-control:focus {
  border-color: #f2921d;
  box-shadow: 0 0 0 3px rgba(242, 146, 29, 0.15);
}

/* ==========================================
   DELIVERY ADDRESS
========================================== */

.checkout-page .address_delivery {
  margin-top: 25px;
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
}

.checkout-page .ad_title {
  background: #fafafa;
  padding: 15px;
  font-size: 15px;
  font-weight: 700;
}

.checkout-page .ad_content {
  padding: 20px;
}

/* ==========================================
   PAYMENT METHOD
========================================== */

.checkout-page .wraspMethod {
  padding: 20px;
}

.checkout-page .radio {
  margin-bottom: 12px;
}

.checkout-page .choose-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px;
  border: 1px solid #eee;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.2s;
}

.checkout-page .choose-btn:hover {
  border-color: #f2921d;
  background: #fffaf4;
}

.checkout-page .choose-btn input {
  transform: scale(1.2);
}

.checkout-page .show_login_id {
  margin-top: 20px;
}

.checkout-page .show_login_id > div {
  display: none;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 20px;
  background: #fafafa;
}

.checkout-page .show_login_id > div.active {
  display: block;
}

/* ==========================================
   BUTTONS
========================================== */

.checkout-page .div_button {
  margin-top: 25px;
}

.checkout-page .fl {
  float: left;
}

.checkout-page .fr {
  float: right;
}

.checkout-page .btn {
  border: none;
  cursor: pointer;
}

.checkout-page .button-back,
.checkout-page .button-cart {
  min-width: 180px;
  height: 50px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  transition: 0.25s;
}

.checkout-page .button-back {
  background: #f5f5f5;
  color: #333;
}

.checkout-page .button-back:hover {
  background: #e9e9e9;
}

.checkout-page .button-cart {
  background: linear-gradient(135deg, #f2921d, #ff7a00);
  color: #fff;
}

.checkout-page .button-cart:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(242, 146, 29, 0.25);
}

/* ==========================================
   STICKY ORDER
========================================== */

@media (min-width: 992px) {
  .checkout-page #tab-orders {
    position: sticky;
    top: 90px;
  }
}

/* ==========================================
   MOBILE
========================================== */

@media (max-width: 768px) {
  .checkout-page .info_content {
    padding: 15px;
  }

  .checkout-page .table_info table,
  .checkout-page .table_info tbody,
  .checkout-page .table_info tr,
  .checkout-page .table_info td {
    display: block;
    width: 100%;
  }

  .checkout-page .table_info thead {
    display: none;
  }

  .checkout-page .table_info tbody tr {
    padding: 15px;
    border-bottom: 1px solid #eee;
  }

  .checkout-page .table_info tbody td {
    padding: 5px 0;
    border: none;
  }

  .checkout-page .img {
    margin: auto;
    text-align: center;
    width: 100%;
    margin-bottom: 10px;
  }

  .checkout-page .img img {
    width: 90px;
    height: 90px;
  }

  .checkout-page .row_info .row_left,
  .checkout-page .row_info .row_right {
    float: none;
    text-align: center;
  }

  .checkout-page .total_price {
    display: block;
    margin-top: 8px;
    font-size: 28px;
  }

  .checkout-page .fl,
  .checkout-page .fr {
    float: none;
    width: 100%;
  }

  .checkout-page .button-back,
  .checkout-page .button-cart {
    width: 100%;
    margin-top: 10px;
  }
}

/* ==========================================
   ORDER DETAIL PAGE
========================================== */

.order-detail-page {
  margin-top: 20px;
}

/* ==========================================
   ORDER HEADER
========================================== */

.order-detail-page .boxManagerTitle {
  background: #fff;
  border-radius: 16px;
  padding: 25px;
  margin-bottom: 25px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  text-align: center;
}

.order-detail-page .boxManagerTitle .code {
  font-size: 28px;
  font-weight: 700;
  color: #222;
  margin-bottom: 8px;
}

.order-detail-page .boxManagerTitle .code span {
  color: #dc3545;
}

.order-detail-page .boxManagerTitle .txt {
  color: #777;
  font-size: 14px;
}

/* ==========================================
   CARD
========================================== */

.order-detail-page .info_general {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  margin-bottom: 20px;
}

/* ==========================================
   TITLE
========================================== */

.order-detail-page .info_title {
  background: linear-gradient(135deg, #f2921d, #ff7a00);
  color: #fff;
  padding: 18px 20px;
  font-size: 18px;
  font-weight: 700;
}

/* ==========================================
   ORDER TABLE
========================================== */

.order-detail-page .table_info table {
  width: 100%;
  border-collapse: collapse;
}

.order-detail-page .table_info thead {
  background: #fafafa;
}

.order-detail-page .table_info thead td {
  padding: 15px;
  font-weight: 700;
  color: #333;
  border-bottom: 1px solid #eee;
}

.order-detail-page .table_info tbody td {
  padding: 15px;
  border-bottom: 1px solid #f5f5f5;
  vertical-align: middle;
}

/* ==========================================
   PRODUCT
========================================== */

.order-detail-page .img {
  width: 70px;
}

.order-detail-page .img img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #eee;
}

.order-detail-page .t-title a {
  color: #222;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.order-detail-page .t-id {
  margin-top: 5px;
  font-size: 12px;
  color: #888;
}

.order-detail-page .quantity {
  display: inline-flex;
  min-width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 50px;
  background: #fff7ef;
  color: #f2921d;
  font-weight: 700;
}

.order-detail-page .in-price {
  color: #d70018;
  font-weight: 700;
}

/* ==========================================
   TOTAL
========================================== */

.order-detail-page .row_info {
  background: #fafafa;
  padding: 20px;
}

.order-detail-page .row_info > div {
  margin-bottom: 10px;
}

.order-detail-page .row_info > div:last-child {
  margin-bottom: 0;
}

.order-detail-page .row_left {
  float: left;
  font-weight: 600;
  color: #333;
}

.order-detail-page .row_right {
  float: right;
}

.order-detail-page .total_price {
  color: #d70018;
  font-size: 22px;
  font-weight: 700;
}

/* ==========================================
   CUSTOMER INFO
========================================== */

.order-detail-page .info_content {
  padding: 20px;
}

.order-detail-page .stepfinish {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.order-detail-page .boxFinish {
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
}

.order-detail-page .boxFinish .tit {
  background: #fafafa;
  padding: 15px 18px;
  font-size: 16px;
  font-weight: 700;
  color: #333;
}

.order-detail-page .boxFinish .content {
  padding: 15px 20px;
}

.order-detail-page .boxFinish ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.order-detail-page .boxFinish li {
  padding: 12px 0;
  border-bottom: 1px solid #f3f3f3;
}

.order-detail-page .boxFinish li:last-child {
  border-bottom: none;
}

.order-detail-page .boxFinish .att {
  float: left;
  width: 180px;
  font-weight: 600;
  color: #666;
}

.order-detail-page .boxFinish .ats {
  overflow: hidden;
  color: #222;
  line-height: 1.6;
}

/* ==========================================
   BUTTON
========================================== */

.order-detail-page .div_button {
  margin-top: 20px;
}

.order-detail-page .button-back,
.order-detail-page .button-cart,
.order-detail-page .button {
  min-width: 180px;
  height: 48px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  transition: 0.25s;
}

.order-detail-page .button-back {
  background: #f5f5f5;
  color: #333;
}

.order-detail-page .button-back:hover {
  background: #e9e9e9;
}

.order-detail-page .button-cart {
  background: linear-gradient(135deg, #f2921d, #ff7a00);
  color: #fff;
}

.order-detail-page .button-cart:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(242, 146, 29, 0.25);
}

.order-detail-page .button.v1 {
  background: #f5f5f5;
  color: #333;
}

/* ==========================================
   STICKY ORDER
========================================== */

@media (min-width: 992px) {
  .order-detail-page .info_order {
    position: sticky;
    top: 90px;
  }
}

/* ==========================================
   MOBILE
========================================== */

@media (max-width: 768px) {
  .order-detail-page .boxManagerTitle {
    padding: 20px 15px;
  }

  .order-detail-page .boxManagerTitle .code {
    font-size: 22px;
  }

  .order-detail-page .table_info table,
  .order-detail-page .table_info tbody,
  .order-detail-page .table_info tr,
  .order-detail-page .table_info td {
    display: block;
    width: 100%;
  }

  .order-detail-page .table_info thead {
    display: none;
  }

  .order-detail-page .table_info tbody tr {
    padding: 15px;
    border-bottom: 1px solid #eee;
  }

  .order-detail-page .table_info tbody td {
    border: none;
    padding: 5px 0;
  }

  .order-detail-page .img {
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
  }

  .order-detail-page .img img {
    width: 90px;
    height: 90px;
  }

  .order-detail-page .row_left,
  .order-detail-page .row_right {
    float: none;
    text-align: center;
  }

  .order-detail-page .row_right {
    margin-top: 5px;
  }

  .order-detail-page .boxFinish .att {
    float: none;
    width: 100%;
    margin-bottom: 5px;
  }

  .order-detail-page .ats {
    width: 100%;
  }

  .order-detail-page .button-back,
  .order-detail-page .button-cart,
  .order-detail-page .button {
    width: 100%;
  }
}

/* ==========================================
   ORDER SUCCESS
========================================== */

.box_success {
  max-width: 900px;
  margin: 30px auto;
  padding: 50px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  text-align: center;
}

/* icon success */

.box_success .img {
  margin-bottom: 25px;
}

.box_success .img img {
  max-height: 120px;
  animation: successZoom 0.5s ease;
}

@keyframes successZoom {
  from {
    opacity: 0;
    transform: scale(0.7);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* title */

.box_success .s_title {
  font-size: 34px;
  font-weight: 800;
  color: #27ae60;
  margin-bottom: 15px;
  line-height: 1.3;
}

/* order block */

.box_success .block {
  margin-top: 25px;
}

.box_success .block2 {
  background: #f8fafc;
  border: 2px dashed #dbe4ea;
  border-radius: 16px;
  padding: 25px;
}

.box_success .block2 > div:first-child {
  font-size: 15px;
  color: #666;
  margin-bottom: 10px;
}

.box_success .block2 .id {
  font-size: 34px;
  font-weight: 800;
  color: #f2921d;
  letter-spacing: 2px;
}

/* buttons */

.box_success .buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.box_success .button-web {
  min-width: 220px;
  height: 52px;
  line-height: 52px;
  padding: 0 30px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  transition: 0.25s;
  display: inline-block;
}

.box_success .btn-order {
  background: #f2921d;
  color: #fff;
}

.box_success .btn-order:hover {
  background: #d97d0d;
  color: #fff;
  transform: translateY(-2px);
}

.box_success .btn-back {
  background: #f5f5f5;
  color: #333;
  border: 1px solid #ddd;
}

.box_success .btn-back:hover {
  background: #eee;
  color: #333;
  transform: translateY(-2px);
}

/* text */

.box_success .text2 {
  margin-top: 35px;
  padding-top: 25px;
  border-top: 1px solid #eee;
}

.box_success .text2 div {
  font-size: 15px;
  color: #666;
  margin-bottom: 8px;
}

/* check icon effect */

.box_success:before {
  content: "?";
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #27ae60;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  font-weight: bold;
  margin: 0 auto 20px;
  box-shadow: 0 8px 25px rgba(39, 174, 96, 0.25);
}

/* ==========================================
   MOBILE
========================================== */

@media (max-width: 768px) {
  .box_success {
    padding: 25px 20px;
    margin: 20px 10px;
    border-radius: 16px;
  }

  .box_success .s_title {
    font-size: 26px;
  }

  .box_success .block2 {
    padding: 18px;
  }

  .box_success .block2 .id {
    font-size: 26px;
    word-break: break-word;
  }

  .box_success .buttons {
    flex-direction: column;
    gap: 10px;
  }

  .box_success .button-web {
    width: 100%;
    min-width: initial;
  }

  .box_success .text2 div {
    font-size: 14px;
  }
}

.table-history-list {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background-color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.05),
    0 1px 3px rgba(0, 0, 0, 0.02);
  margin: 20px 0;
  font-family: inherit;
}

.table-history-list thead {
  background-color: #f8f9fa;
}

.table-history-list th {
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 600;
  color: #495057;
  text-align: left;
  border-bottom: 2px solid #dee2e6;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.table-history-list tbody tr {
  transition: background-color 0.2s ease;
}

.table-history-list tbody tr:not(:last-child) td {
  border-bottom: 1px solid #e9ecef;
}

.table-history-list tbody tr:hover {
  background-color: #fdfdfd;
}

.table-history-list td {
  padding: 16px 20px;
  font-size: 15px;
  color: #495057;
  vertical-align: middle;
}

.table-history-list td .code a {
  color: #007bff;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease;
}

.table-history-list td .code a:hover {
  color: #0056b3;
  text-decoration: underline;
}

.table-history-list td .status-wrapper {
  display: inline-block;
  vertical-align: middle;
}

.table-history-list td .btn-cancel-order {
  background-color: #fff1f0;
  color: #f5222d;
  border: 1px solid #ffa39e;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  margin-left: 12px;
  display: inline-block;
  vertical-align: middle;
  transition: all 0.2s ease;
}

.table-history-list td .btn-cancel-order:hover {
  background-color: #f5222d;
  color: #ffffff;
  border-color: #f5222d;
  box-shadow: 0 2px 4px rgba(245, 34, 45, 0.2);
}

.table-history-list td .btn-cancel-order:disabled {
  background-color: #f5f5f5;
  color: #bfbfbf;
  border-color: #d9d9d9;
  cursor: not-allowed;
  box-shadow: none;
}

@media screen and (max-width: 768px) {
  .table-history-list,
  .table-history-list thead,
  .table-history-list tbody,
  .table-history-list th,
  .table-history-list td,
  .table-history-list tr {
    display: block;
  }

  .table-history-list thead {
    display: none;
  }

  .table-history-list {
    box-shadow: none;
    background: transparent;
  }

  .table-history-list tbody tr {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    border: 1px solid #e9ecef;
  }

  .table-history-list tbody tr:hover {
    background-color: #ffffff;
  }

  .table-history-list td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 8px;
    border-bottom: 1px dashed #f1f3f5 !important;
    text-align: right;
    font-size: 14px;
  }

  .table-history-list td:last-child {
    border-bottom: none !important;
  }

  .table-history-list td::before {
    content: attr(data-cont);
    float: left;
    font-weight: 600;
    color: #868e96;
    text-transform: none;
    padding-right: 15px;
  }

  .table-history-list td .btn-cancel-order {
    margin-left: 0;
    margin-top: 4px;
  }
}
