.product-small.box .custom-product-icons {
		position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    display: flex;
    justify-content: center;
    border-radius: 5px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
    opacity: 0;
    transform: translate3d(-50%, 150%, 0);
    transition: all .3s ease;
}
.product-small.box .custom-product-icons .action-child {
		position: relative;
    border-radius: 0;
    border-right: 1px solid #eee;
    height: 45px;
    margin-bottom: 0 !important;
    width: 45px;
    padding: 0;
    font-size: 14px;
    transition: all .3s ease;
    border-radius: 5px;
		display: flex;
    align-items: center;
    justify-content: center;
		color: #333;
}
.product-small.box .custom-product-icons .action-child:hover {
		background-color: #f5f5f5;
}
.product-small.box .custom-product-icons .action-child.quick-view:hover {
		color:#c20a01;
}
.product-small.box .custom-product-icons .added_to_cart {
		display: none !important;
}
.product-small.box:hover .custom-product-icons {
		opacity: 1;
		transform: translate3d(-50%, 0, 0);
}
.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: 16px;
	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 .old-price-with-discount del .amount {
	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% - 140px);
	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;
}
.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;
}

/* 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;
}


/* checkout */
.woocommerce-checkout .flatsome-checkout-left {
	border: none;
}
.woocommerce-checkout .flatsome-checkout-right > .col-inner {
	border: none;
	padding: 0;
}
.woocommerce-privacy-policy-text {
	margin-top: 10px;
}
.woocommerce-checkout-review-order {
	border-radius: 6px;
}
.woocommerce-checkout input {
	border-radius: 6px !important;
}
.woocommerce-checkout .checkout-step-content .button {
	margin:0;
	border-radius:6px;
	text-transform: unset;
}
.checkout-step-nav::after {
	content: none !important;
}
.woocommerce-checkout .checkout-step-nav .button.checkout-back-link {
	background: #fff;
	color: #222;
	border: 1px solid #555;
}

.woocommerce-billing-fields > h3, /* Hide default "Billing details" title */
.woocommerce-additional-fields > h3 /* Hide default "Additional information" title */
{ display: none !important; }

/* 2. Custom Step Indicator */
.custom-checkout-steps-indicator { padding: 15px 0; margin-bottom: 25px; border-bottom: 1px solid #eee; font-size: 1.1em; text-align: center; color: #666; }
.custom-checkout-steps-indicator .step-item { padding: 0 8px; }
.custom-checkout-steps-indicator .step-item a { color: #1976D2; text-decoration: none; }
.custom-checkout-steps-indicator .step-item a:hover { text-decoration: underline; }
.custom-checkout-steps-indicator .step-item.active { color: #111; font-weight: 600; }
.custom-checkout-steps-indicator .step-separator { color: #bbb; margin: 0 3px; font-size: 0.9em; }

/* 3. Step Content Area (Left Column) */
#checkout-step-content-wrapper { position: relative; } /* Needed for potential absolute positioning */
.checkout-step-content { display: none; animation: fadeIn 0.3s ease-out; }
.checkout-step-content.active-step-content { display: block; }
.checkout-step-title { font-size: 1.6em; margin-top: 0; margin-bottom: 1.5em; border-bottom: 1px solid #eee; padding-bottom: 0.5em; }

/* 4. Right Column (Order Summary) */
.flatsome-checkout-right .checkout-sidebar { padding: 20px; }
.flatsome-checkout-right #order_review #payment { display: none !important; } /* Ensure payment form is hidden here */
.flatsome-checkout-right #order_review_heading { margin-top: 0; font-size: 1.4em; }
.flatsome-checkout-right #order_review { border: 1px solid #eee; padding: 20px; border-radius: 3px; margin-top: 1em; }

/* 5. Navigation Buttons */
.checkout-step-nav { margin-top: 30px; padding-top: 20px; border-top: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.checkout-step-nav .checkout-back-link { /* Back/Cart link */
    order: 1; /* Place first */
    font-size: 0.95em;
    color: #555;
    text-decoration: none;
    line-height: 38px; /* Match button height */
}
.checkout-step-nav .checkout-back-link:hover { color: #111; }

.checkout-step-nav .checkout-next-link, /* Next button */
#checkout-payment-step #place_order /* Place Order button */
{
    order: 2; /* Place last */
    margin-left: auto; /* Push to the right */
}
/* Make Place Order button consistent */
#checkout-payment-step #place_order {
    width: auto; /* Don't force full width unless needed */
    padding-left: 30px;
    padding-right: 30px;
}

/* Ensure nav takes full width if buttons wrap */
.checkout-step-nav::after { content: ""; display: table; clear: both; }


/* 6. Responsive */
@media screen and (max-width: 849px) {
    .flatsome-checkout-row .large-7.col,
    .flatsome-checkout-row .large-5.col { width: 100%; max-width: 100%; }
    .flatsome-checkout-right { margin-top: 30px; }
    .checkout-step-title { font-size: 1.4em; }
    .custom-checkout-steps-indicator { font-size: 1em; text-align: left; }
    
    .checkout-step-nav .checkout-back-link { order: 2; text-align: center; margin-top: 15px; } /* Back link below */
}

/* 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; }

@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;
    }
}