.product-small.box .custom-product-icons {
	position: absolute;
    bottom: 0px;
    left: 0;
    background: #fff;
    display: flex;
    justify-content: center;
    border-radius: 0 8px 0 8px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
    opacity: 0;
    transition: all .3s ease;
}
.product-small.box .custom-product-icons .action-child {
	position: relative;
    border-radius: 0;
    height: 45px;
    margin-bottom: 0 !important;
    width: 45px;
    padding: 0;
    font-size: 18px;
    transition: all .3s ease;
	display: flex;
    align-items: center;
    justify-content: center;
	color: #333;
	border-radius: 0 8px 0 8px;
}
.product-small.box .custom-product-icons .action-child:hover {
		background-color: #f9f9f9;
}
.product-small.box .custom-product-icons .action-child.quick-view:hover {
		color: var(--primary-color);
}
.product-small.box .custom-product-icons .added_to_cart {
		display: none !important;
}
.product-small.box:hover .custom-product-icons {
		opacity: 1;
}
.product-small.box .box-text {
	padding-bottom: 10px;
}
.product-small.box:hover .box-image {
	box-shadow: 0px 0px 6px 0px rgba(50, 50, 93, 0.1), 1px 1px 5px rgba(0, 0, 0, 0.02);
}
.product-small.box:hover .image-fade_in_back {
	transform: scale(0.95);
}
.product-small.box .image-fade_in_back {
    transition: transform .3s ease-out; 
}
.product-small.box .product-title {
	margin-bottom: 10px;
}
.product-small.box .product-title a {
	font-size: 17px;
	font-weight: 700;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}
.product-small.box .price-wrapper {
	display: flex; 
	flex-direction: column;
	font-size: 16px;
	gap: 4px;
}
.product-small.box .price-wrapper .woocommerce-Price-amount.amount {
	font-size: 16px;
	color: #d0021b;
}
.product-small.box .price-wrapper .old-price-with-discount del .amount {
	color: #888;
	font-size: 14px;
}
.product-small.box .price-wrapper .old-price-with-discount {
	display: flex;
	gap: 8px;
	align-items:center;
}
.product-small.box .price-wrapper .old-price-with-discount .discount-percentage {
	font-size: 12px;
	color: #d0021b;
}
.product-lightbox  {
	border-radius: 10px;
	overflow: hidden;
	padding: 20px;
}
.product-quick-view-container .product-lightbox-inner {
	padding: 0 !important;
	padding-left: 20px !important;
}
.product-quick-view-container .product-lightbox-inner .button.minus {
	border-radius: 99px 0 0 99px;
}
.product-quick-view-container .product-lightbox-inner .button.plus {
	border-radius: 0 99px 99px 0;
}
.product-quick-view-container .product-lightbox-inner .ux-quantity__button {
	padding: 0 10px;
}
.product-quick-view-container .product-lightbox-inner .single_add_to_cart_button {
	background-color: unset !important;
	border: 1px solid #c20a01;
	color: #c20a01;
	box-shadow: none !important;
	padding: 0 20px;
	border-radius: 99px;
}

.product-promotion {
    border: 2px dashed #e63946;
    border-radius: 5px;
    padding: 15px;
    margin: 30px 0;
    position: relative;
}

.product-promotion h3 {
    color: #e63946;
    font-size: 16px;
    font-weight: bold;
    display: inline-block;
	position: absolute;
	top: -15px;
	background: #fff;
	width: fit-content;
	padding: 0 5px;
}

.product-promotion ul {
    margin: 0;
}

.product-promotion ul li {
    margin-bottom: 8px;
    position: relative;
    list-style-type: disc;
    color: #333;
    font-size: 14px;
}

.product-promotion ul li:last-child {
    margin-bottom: 0;
}
.single-product .product-info form {
	gap:0;
	row-gap: 15px; 
	justify-content: space-between;
}
.single-product .product-info form .quantity {
	width: 120px;
}
.single-product .product-info form .single_add_to_cart_button {
	width: calc(100% - 138px);
	background: none !important;
	box-shadow: none;
	color: #c20a01;
	border: 1px solid #c20a01;
	border-radius: 4px;
}
.single-product .product-info form .single_add_to_cart_button:hover {
	color: #fff;
	background:#c20a01 !important;
}
.single-product .product-info form .ux-buy-now-button {
	width: 100%;
	background-color: #c20a01;
	border-radius: 4px;
	line-height: 40px;
}
.single-product .product-info form .quantity .button {
	padding: 0 15px;
}
.single-product .product-info form .quantity {
	display: flex;
	justify-content: space-between;
	border: 1px solid #ced4da;
	border-radius: 4px;
}
.single-product .product-info form .quantity .qty,.single-product .product-info form .quantity .button {
	border: none !important;
	box-shadow: none !important;
	background: none !important;
}
.ct-lightbox-sumary {
    padding-bottom: 0 !important;
}

.ct-lightbox-content form {
	margin-bottom: 0;
}
.all-coupons-container {
	display: flex;
	margin-bottom: 16px;
}
.coupon_item.lite {
    flex: 0 0 auto;
    border-radius: 0;
    filter: none;
    min-height: 0;
    overflow: hidden;
    padding: 0 !important;
    margin-left: 5px;
    margin-right: 5px;
}
.coupon_item {
    position: relative;
    background: #fff;
    filter: drop-shadow(0px 0px 3px rgba(0, 0, 0, .15));
    padding: 10px;
    display: flex;
    min-height: 120px;
    border-radius: 5px;
    min-height: 100px;
	text-transform: uppercase;
	font-weight:600;
}

.coupon_item.lite .coupon_content {
    border: 1px solid #e63946;
    color: #e63946;
    border-radius: 5px;
    padding: 3px 12px;
    position: relative;
    font-size: 14px;
}
.coupon_item.lite .coupon_content:before, .coupon_item.lite .coupon_content:after {
    content: '';
    position: absolute;
    border-radius: 999px;
    width: 10px;
    height: 10px;
    background: #fff;
    border: 1px solid #e63946;
    top: 50%;
    transform: translateY(-50%);
}
.coupon_item.lite .coupon_content:before {
    left: -5px;
}
.coupon_item.lite .coupon_content:after {
    right: -5px;
}

.woocommerce-tabs ul li a, .product-section-title-related {
	text-transform: unset !important;
	font-size: 18px;
}
.product-section-title-related , .recently-viewed-wrapper h3{
	text-transform: unset !important;
	font-size: 22px;
}

.recently-viewed-wrapper .slider-col > .product-small {
	padding: 0 9.8px 19.6px;
}

/* cart page */
.delivery-schedule-form #delivery_date,.delivery-schedule-form #delivery_time {
	padding: 0 10px;
}

.woocommerce-cart-form__cart-item .quantity .button {
	padding: 0 15px; 
	border:  none;
}
.woocommerce-cart-form__cart-item .quantity input {
	border: none; 
	box-shadow: none  !important;
}
.woocommerce-cart-form__cart-item .quantity {
	border: 1px solid #ddd;
	border-radius: 6px;
	overflow: hidden;
}


/* Styling cho khối Chính sách sản phẩm */
.product-policises-wrapper {
    margin-top: 10px;
    padding: 15px;
    border-top: 1px solid #eee;
}

.product-policises {
    display: flex;
    gap: 10px;
	justify-content: center;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-policises li.media {
    display: flex;
    align-items: center;
	gap: 5px;
	font-size: 13px;
	margin: 0;
}

.product-policises li.media .mr-2 {
     flex-shrink: 0;
}

.product-policises li.media .media-body {
    flex-grow: 1;
}
.product-hotline {
	margin: 0 !important;
}
.product-hotline a {
	color: #ff0000;
}
.sfs-item .added_to_cart {
	display: none !important;
}
.sfs-item .add_to_cart_button.added {
	display: flex !important;
}



.woocommerce-table--order-details tfoot tr td img,
.woocommerce-thankyou-order-details .woocommerce-order-overview__payment-method img{
	width: 28px;
}


/* Fade In Animation */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Validation Error Styling */
.woocommerce-invalid input, .woocommerce-invalid select, .woocommerce-invalid textarea { border-color: #e2401c !important; }
.woocommerce .form-row.woocommerce-invalid label { color: #e2401c !important; }
#checkout-validation-error { margin-bottom: 1.5em; }


/* coupon */
.coupon_grid_container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin: 30px 0;
}

.custom-category-description, .single-product .tabbed-content {
	position: relative;
}
.single-product .product-section {
	border: none;
}
.yith-wcan-filters {
    background: none !important;
}

@media(max-width:849px){
	.product-policises {
        flex-wrap: wrap;
		gap: 20px;
    }

	.woocommerce .shop_table {
		margin-bottom:0;
	}
	.woocommerce .shop_table #cart_note{
		margin-bottom:0;
	}
}
@media(max-width: 549px) {
	.flatsome-checkout-right .checkout-sidebar {
		padding: 0;
	}
	.checkout-step-nav .checkout-next-link {
		order: 1;
	}
	.checkout-step-nav { flex-direction: column; align-items: stretch;gap: 10px; } /* Stack buttons */
	.product-quick-view-container .product-lightbox-inner {
		padding-left: 0 !important;
		padding-top: 20px !important;
	}
	.product-policises {
		gap: 10px;
    }
	.product-small.box .custom-product-icons {
		opacity: 1;
	}
}


/* --- TÙY CHỈNH TRANG THANH TOÁN --- */

/* Bố cục chung */
.woocommerce-checkout .col-1, .woocommerce-checkout .col-2 {
    float: none;
    width: 100%;
}
.woocommerce-checkout #customer_details {
    margin-bottom: 2em;
}
.woocommerce-billing-fields__field-wrapper {
	display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

/* Cột bên trái: Thông tin khách hàng */
.woocommerce-checkout .form-row {
	width: 100%;
}


.woocommerce form .form-row input.input-text, 
.woocommerce form .form-row textarea,
.select2-container--default .select2-selection--single {
    border-radius: 12px !important;
    border: 1px solid #ddd;
    padding: 10px 20px !important;
    box-shadow: none !important;
	min-height: 44px;
}

.woocommerce form .form-row textarea {
	height: 140px !important;
}

.woocommerce form .form-row-first, .woocommerce form .form-row-last {
    width: 48%;
}

/* Trường radio Nhà riêng/Công ty */
.address-type-field .woocommerce-input-wrapper {
    display: flex;
    gap: 20px;
}
.address-type-field .woocommerce-input-wrapper input {
    margin-right: 5px;
}

/* Cột bên phải: Tóm tắt đơn hàng */
.checkout-sidebar-new {
    background-color: #f8f8f8;
    border-radius: 8px;
    overflow: hidden;
    position: sticky;
    top: 30px;
}

.checkout-sidebar-new .cart-totals-header {
    background-color: var(--primary-color);
    padding: 15px 20px;
    color: white;
}
.checkout-sidebar-new .cart-totals-header h4 {
    margin: 0;
    color: white;
    font-size: 16px;
}

.checkout-sidebar-new .order-review-wrapper {
    padding: 15px 20px;
}

/* Danh sách sản phẩm */
.checkout-order-review-list {
    list-style: none;
    margin: 0;
    padding: 0 0 15px 0;
    border-bottom: 1px solid #eee;
}
.checkout-order-review-list .product-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}
.checkout-order-review-list .product-thumbnail {
    width: 60px;
    height: 60px;
}
.checkout-order-review-list .product-thumbnail img {
    border-radius: 4px;
}
.checkout-order-review-list .product-info {
    flex: 1;
}
.checkout-order-review-list .product-name {
    display: block;
    font-weight: 500;
}
.checkout-order-review-list .product-quantity-badge {
    display: inline-block;
    background-color: #eee;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-top: 5px;
}
.checkout-order-review-list .product-total {
    font-weight: 500;
}
.checkout-order-review-list .variation {
    font-size: 0.9em;
    color: #666;
}

/* Các dòng tổng tiền */
.checkout-sidebar-new .cart-totals-body {
    padding: 0;
}
.checkout-sidebar-new .total-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
}
.checkout-sidebar-new .grand-total {
    font-size: 1.2em;
    font-weight: bold;
    border-top: 1px solid #eee;
    margin-top: 10px;
    padding-top: 10px;
}
.checkout-sidebar-new .grand-total .value .woocommerce-Price-amount {
    color: #e53935;
}

/* Nút đặt hàng và phương thức thanh toán */
.woocommerce-checkout-payment {
    background: transparent !important;
    border-radius: 0 !important;
    padding: 20px 0 !important;
}

#place_order.button {
    width: 100%;
    background-color: #2c2c2c !important;
    border-radius: 50px !important;
    font-size: 16px !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    padding: 15px !important;
}
.woocommerce-checkout-review-order-table thead {
	display: none;
}
#billing_country_field {
	display: none;
}

.form-row .select2-selection__rendered {
	line-height: 1.5 !important;
}
/* Ẩn các tiêu đề không cần thiết */
#order_review_heading {
    display: none;
}