.product-form {
    border: 1px solid #ccc;
    padding: 10px 5px;
    box-shadow: 0 1px 2px 0 rgba(60,64,67,.1), 0 2px 6px 2px rgba(60,64,67,.15);
}

h2 {
  margin-top: 0;
}

label {
  display: inline-block;
  margin-right: 10px;
  font-weight: bold;
}
.block-main-all {
    background-color: #F7F8FB;
    display: grid;
    grid-gap: 10px;
    grid-template-columns: repeat(1, minmax(0, 1fr));
}
.blogcont {
    display: grid;
    grid-gap: 10px;
    grid-template-columns: repeat(1, minmax(0, 1fr));
}
.bl-titlecart{
	border-bottom: 2px solid #D70018;
}
.h1cart{-webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    color: #0a263c;
    display: -webkit-box;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 10px 0 0;
overflow: hidden;}
.sl {
  width: 50px;
  text-align: center;
}

.add-to-cart-btn {
  background-color: #4CAF50;
    color: white;
    border: none;
    padding: 6px 10px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 0px;
    cursor: pointer;
}

.add-to-cart-btn:hover {
  background-color: #3e8e41;
}

.clear-cart-btn,
.checkout-btn {
  background-color: #f44336;
  color: white;
  border: none;
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  cursor: pointer;
}

.clear-cart-btn:hover,
.checkout-btn:hover {
  background-color: #c62828;
}

.cart-summary,.cart-list-summary {
  border: 1px solid #ccc;
  padding: 10px;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  margin-top: 20px;
}

.cart-count,.cart-list-count {
  font-weight: bold;color: #d70018;
}
.cart-total,.cart-list-total,.cart-total-tt {
  font-weight: bold;
  font-size: 1.2em;color: #d70018;
}
.xem-cart{padding: 5px 0px;
    margin: 10px 0px;
    float: left;
    width: 100%;
    text-align: center;
    background-color: aliceblue;
    text-decoration: none;}
.xem-cart:hover{color:#d70018;}
.cart-item,.cart-list {
overflow: hidden;
    display: grid;
    grid-template-columns: 120px repeat(1, minmax(0, 1fr)) 120px;
    grid-gap: 5px;
    width: 100%;
    align-items: center;
    border-bottom: 2px solid #e7e4e4;
    padding: 5px 0px;
}

.cart-item-name a,.cart-list-name a {
    text-decoration: none;
    text-align: left;
    font-size: 14px;
    color: #0e2431;
    font-weight: 700;
}
.cart-item-price,.cart-list-price{
    color: #d70018;
    font-size: 14px;
    font-weight: 700;
}
.cart-item-totalsp,.cart-list-totalsp {
    color: #3a78d0;
    font-weight: bold;text-align: right;
}
.cart-item-name a:hover,.cart-list-name a:hover{text-decoration: underline;color:}
.btn-decrease,
.btn-increase,
.btn-delesp,.cart-item-quantity,.cart-list-quantity {
    padding: 5px 15px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 11px;
    border: 1px solid rgba(0,0,0,.09);
    width: auto;
}
.btn-delesp {
    margin-left: 15px;
}
.btn-decrease:hover,
.btn-increase:hover,
.btn-delesp:hover {
  background-color: #ddd;
}
/* CSS cho input số lượng sản phẩm */
.sl {
width: 50px;
text-align: center;
}

/* CSS cho giỏ hàng */
.cart-items {
list-style: none;
padding: 0;
}

.cart-item-img {
width: 85px;
height: auto;
}

.cart-item-quantity,.cart-list-quantity {
font-weight: bold;
    width: 50px;
}

.cart-summary p,.cart-list-summary p{
font-size: 15px;
    margin: 0;
    text-align: right;
}

.clear-cart-btn,.more-cart-btn,.xem-cart-btn,.checkout-btn{
/*background-color: #4caf50;*/
border: none;
color: white;
cursor: pointer;
font-size: 15px;
margin-right: 15px;
padding: 8px 15px;
transition: background-color 0.3s ease;
}

.clear-cart-btn:hover {
background-color: #3e8e41;
}
.more-cart-btn {
    background-color: rgb(0 0 0 / 48%);
}
.clear-cart-btn {
background-color: #f44336;
}

.clear-cart-btn:hover {
background-color: #d32f2f;
}

.checkout-btn,.xem-cart-btn {
background-color: #4caf50;
}

.checkout-btn:hover {
background-color: #3e8e41;
}
        /*poup show card*/
        /* Ẩn popup mặc định */
.cart-popup {
display: none;
}
        /* Hiển thị popup khi được kích hoạt */
.cart-popup.show {
  position: fixed;
  top: 50%;
  left: 50%;
  min-height:50%;
  transform: translate(-50%, -50%);display: block !important;
  background-color: white;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  z-index: 999;
  padding: 20px;
  overflow-y: scroll;
}


/* Các style khác của popup */
.cart-popup h2 {
  font-size: 16px;
    margin-bottom: 15px;
    font-weight: 550;
}

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

.cart-popup .cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ddd;
}

.cart-popup .cart-item img {
  max-height: 80px;
  margin-right: 10px;
}

.cart-popup .cart-item button {
  padding: 5px 10px;
  background-color: #fff;
  border: none;
  cursor: pointer;
}

.cart-popup .cart-item button:hover {
  background-color: #ddd;
}

.cart-popup .cart-item .cart-item-totalsp {
  font-weight: bold;
}

.cart-popup .cart-summary {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-top: 20px;
}

.cart-popup .cart-summary p {
  margin: 0;
}

.cart-popup .cart-summary .cart-total {
  font-weight: bold;
  margin-bottom: 10px;
}

/*.cart-popup button {
  margin-top: 10px;
  padding: 5px 10px;
  background-color: #fff;
  border: none;
  cursor: pointer;
}*/
.sl {
  width: 40px; /* độ rộng của input */
  height: 28px; /* chiều cao của input */
  padding: 0 10px; /* khoảng cách giữa nội dung và viền */
  border: 1px solid #ccc; /* đường viền của input */
  border-radius: 4px; /* bo tròn cạnh input */
  font-size: 14px; /* kích thước font chữ */
  line-height: 1.5; /* độ cao dòng chữ */
}


.cart-popup button:hover {
  background-color: #ddd;
}
.popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 20px;
  height: 20px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  color: #333;
  text-align: center;
  border: 1px solid #333;
  border-radius: 50%;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.popup-close:hover {
  background-color: #333;
  color: #fff;
}
.view-cart-btn {
	color: #fff;
    transition: all 0.3s ease;
    border: transparent;
    border-radius: 5px;
    background-color: #FFCB4F;
    font-weight: 550;
    box-shadow: 0 1px 2px 0 rgba(60,64,67,.1), 0 2px 6px 2px rgba(60,64,67,.15);
}

.view-cart-btn:hover {
  background-color: #0062cc;
}
#checkout-form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0 auto;
  padding: 20px;
  border: 2px solid #ccc;
  border-radius: 5px;
}

#checkout-form div {
  margin: 10px;
}

#checkout-form label {
  font-weight: bold;
}

#checkout-form input[type="text"],
#checkout-form input[type="tel"],
#checkout-form input[type="email"],
#checkout-form textarea {
  width: 100%;
  padding: 10px;
  margin: 5px 0;
  border: 1px solid #ccc;
  border-radius: 3px;
  box-sizing: border-box;
  font-family: inherit;
}

#checkout-form input[type="submit"] {
  background-color: #4CAF50;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  font-size: 16px;
}

#checkout-form input[type="submit"]:hover {
  background-color: #3e8e41;
}
.error-message {
    color: #f00;
}
.xnhan{color: #FC0509;}
.cart_center {
    margin: 0 auto;
}
.contblog {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 2px 0 rgba(60,64,67,.1), 0 2px 6px 2px rgba(60,64,67,.15);
    display: grid;
    grid-gap: 10px;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    padding: 10px;
    position: relative;
    font-size: 15px;
    text-align: justify !important;
}
.cartshop-items,.cartshop-lists,.cartshop-successfull {
    list-style: none;
    padding: 0;
    margin: 0;
	display: grid;
    grid-gap: 5px;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    align-content: baseline;
}
.cartshop-items li p,.cartshop-successfull li p {
    margin: 0;
    text-align: center;
    font-size: 14px;
}
.cartshop-successfull li p strong{
	color: #d70018;cursor: pointer;
}
.cartshop-successfull li p strong:hover{
	color:#2c893b;
}
.bl1 {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    grid-gap: 5px;justify-items: baseline;
}
.funpri {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    grid-gap: 5px;
    justify-items: baseline;
}
.func {
    display: flex;
    justify-items: baseline;
    align-items: baseline;
}
/*khach*/
.info_cus {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    grid-gap: 15px;
    align-items: start;
}
.info_custome {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    grid-gap: 10px;
}
.title-info,.info-giaonhan,.info-thanhtoan {
    font-size: 20px;
    text-transform: uppercase;
    border-bottom: 2px solid #eee;text-align: center;
}
.note {
    color: red;
    font-style: italic;
}
.inpt-group {
	display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    grid-gap: 5px;
}
.inpt-group >label >span {
    color: #f00;
}
.inpt-group >input,.inpt-group >textarea,.chosen-selecta,.chosen-select {
    color: blue;
    border: 1px solid #d1d5db;
    min-height: 30px;width: 100%;
}
.info-submit {
    text-align: right;
}
.info-submit >input {
    color: #fff;
    border: 1px solid #ed1c24;
    border-radius: 5px;
    background-color: #ed1c24;
    padding: 5px 10px;
}
.info-submit >input:hover{background-color:#535353;}
.inf-table{margin-top:10px;}
.inf-table >.table-bordered,.form_all_tt >div >.table-bordered{margin-bottom:5px;}
.form_all_tt {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    grid-gap: 10px;
}
.contain-thprovince{display: grid;
grid-gap: 10px;}
.ndcc{color: #FF0000;
    font-size: 12px;
    text-align: justify;
font-style: italic;}
.tamtinh {
    display: grid;
    grid-gap: 10px;
    grid-template-columns: calc(100% - 180px) repeat(1, minmax(0, 1fr));
    justify-items: end;
    margin-top: 10px;
    align-items: baseline;font-style: italic;
}
.texttamtinh {
    font-weight: 550;
    color: #155ee5;
}
.sukienbtn {
    width: 100%;
    text-align: center;
    border-bottom: 3px double #464646;
    border-top: 3px double #464646;
    margin-top: 10px;
}
.loading-overlay {
  position: fixed;
    top: 35%;
    left: calc(50% - 230px);
    width: 350px;
    height: 200px;
    background-color: rgb(0 0 0 / 70%);
    display: flex;
    align-items: center;
    justify-content: center;z-index:9999;
}

.loading-container {
  display: grid;
    align-items: center;
    justify-content: center;
    grid-gap: 10px;
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.success-message {
        background-image: url(../img/dau-tick-successful.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 33px;
    width: 50px;
    height: 50px;
    z-index: 9999;
    margin-left: auto;
    margin-right: auto;
    border-radius: 25px;
    border: 1px solid #a39e9e;
    background-color: #a39e9e38;
}
.txtsuccess {
    color: #fff;text-align: center;
}
.cxndhkh{color: orange;}
.dxnkh{color: forestgreen;}
.dhdhkh{color: darkred;}
.dkdhkh{color: darkblue;}
.tablecart {
    background: #fff !important;
    box-shadow: 0 1px 2px 0 rgba(60,64,67,.1), 0 2px 6px 2px rgba(60,64,67,.15) !important;
    border-spacing: 0;
    width: 100%;
    clear: both;
    margin: 0;
}
.tablecart * {
    word-wrap: break-word;
}
.tablecart tfoot tr td, .tablecart tfoot tr th, .tablecart thead tr td, .tablecart thead tr th {
    color: #2c3338;
}
.tablecart tfoot td, .tablecart tfoot th, .tablecart thead td, .tablecart thead th{
    line-height: 1.4em;
}
.tablecart thead td, .tablecart thead th {
    border-bottom: 1px solid #c3c4c7;
}
.tablecart tfoot td, .tablecart th, .tablecart thead td {
    font-weight: 400;
}
.tablecart td {
    vertical-align: inherit !important;
}
.tablecart td, .tablecart th {
    color: #50575e;
}
.tablecart tfoot td, .tablecart th, .tablecart thead td {
    text-align: left;
    line-height: 1.3em;
    font-size: 14px;
}
.tablecart td,.tablecart th{
    padding: 5px 10px;
}
.tablecart >tbody >:nth-child(odd){
    background-color: #f6f7f7;
}
.tablecart tr:hover{
    background-color: antiquewhite;
}
.ttdh,.ttdhxn{
    text-align:right;color:red !important;
}
.ttpt{text-align:right;color:green !important;}
.ttptpri{text-align:right;color:green !important;font-size:18px;}
.ingr {
    display: grid;
    grid-template-columns: 35% repeat(1, minmax(0, 1fr));
    grid-gap: 10px;
    align-items: center;
    border-bottom: 1px dashed #ddd;
}
.ingr h3 {
    font-size: 18px;
    margin: 0;
    color: #ff0000;
}
.ingr label {
    font-weight: 600;
    margin-bottom: 0;
}
.ingrtt {
    background-color: darkgray;
    text-transform: uppercase;
    padding: 5px 10px;
}
.ingrtt >h2 {
    margin: 0px;
    color: #fff;
    font-weight: 600;font-size: 15px;
}
.bodyorders {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    grid-gap: 5px;
}
.khachorders .lbldh{
    width: 100%;
    text-align: center;
    text-transform: uppercase;
    margin-right: 0;
    color: #008000;
}
.khachorders .dhmkm{color: #ff0000;}
.khachorders * {
    font-size: 14px;
}
.dhdg:before {
    content: "\f1b9";
    font-family: "FontAwesome";
    margin-right: 10px;
}
@media only screen and (max-width: 768px) {
	.cart-popup.show {
		width: 90%;
	}
}