/* WRAP */
.custom-buy-wrap {
	width: 100%;
}

/* QUANTITY */
.custom-qty {
	display: flex;
	align-items: center;
	width: max-content;
	border: 1px solid #e7e7e7;
	border-radius: 8px;
	overflow: hidden;
	margin-bottom: 14px;
	background: var(--color-white);
}

.custom-qty .qty-btn {
	width: 35px;
	height: 35px;
	border: none;
	background: var(--color-white);
	cursor: pointer;
	color: var(--color-black);
	font-size: 15px;
	transition: 0.25s;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: unset !important;
	padding: 0;
}

.custom-qty .plus i, .custom-qty .minus i {
	margin-left: 10px;
}

.custom-qty .qty-btn:hover {
	background: #f5f5f5;
}

.custom-qty .qty-input {
	width: 52px;
	height: 42px;
	border: none;
	border-left: 1px solid #eee;
	border-right: 1px solid #eee;
	text-align: center;
	font-size: 15px;
	font-weight: 600;
	outline: none;
	box-shadow: none;
	margin: 0;
	padding: 0;
	background: var(--color-white);
}

.custom-qty .qty-input::-webkit-inner-spin-button,
.custom-qty .qty-input::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* BUTTONS */
.custom-buy-buttons button {
	flex: 1;
	min-height: 58px;
	width: 100%;
	border-radius: 10px;
	cursor: pointer;
	transition: 0.25s;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 10px 14px;
	position: relative;
	overflow: hidden;
}

/* ICON */
.custom-buy-buttons button i {
	margin-right: 6px;
	font-size: 14px;
}

/* TEXT */
.custom-buy-buttons .main-text {
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	display: flex;
	align-items: center;
	justify-content: center;
	text-transform: uppercase;
}

.custom-buy-buttons .sub-text {
	font-size: 11px;
	margin-top: 4px;
	opacity: 0.9;
	font-weight: 500;
	text-align: center;
	line-height: 1.3;
}

/* ADD CART */
.custom-add-cart {
	background: var(--color-main);
	border: 1px solid var(--color-main);
	color: var(--color-white);
	box-shadow: 0 4px 14px rgba(12, 122, 29, 0.18);
}

.custom-add-cart:hover {
	background: var(--color-main);
	transform: translateY(-2px);
}

/* BUY NOW */
.custom-buy-now {
	background: var(--color-white);
	border: 1px solid var(--color-main);
	color: var(--color-main);
}

.custom-buy-now:hover {
	background: var(--color-main);
	color: var(--color-white);
	transform: translateY(-2px);
}

#price-display-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.label-price {
    font-weight: bold;
    color: var(--color-black);
    font-size: 18px;
    margin-right: 10px;
}

.sale-price {
    color: #ee4d2d;
    font-weight: bold;
    font-size: 24px;
}

.old-price-strikethrough {
    text-decoration: line-through;
    color: #929292;
    font-size: 16px;
}

.discount-badge {
    background: #117a2b;
    color: var(--color-white);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.countdown-text {
    color: #117a2b;
    font-size: 14px;
    font-weight: 500;
}

.option-group {
    margin-bottom: 15px;
}

.option-title {
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 16px;
    color: #333;
}

.option-item.active {
    border-color: #117a2b;
    color: #117a2b;
    font-weight: bold;
}

.custom-short-description {
    padding-top: 15px;
    border-top: 1px solid var(--color-black);
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}

.mt {
    color: var(--color-black) !important;
    font-weight: 500 !important;
    font-size: 22px;
    margin-bottom: 10px;
	margin-top: 0 !important;
}

.custom-qty button {
    background: var(--color-white);
    border: none;
    margin: 0;
    height: 100%;
    cursor: pointer;
}

.custom-buy-buttons .main-text {
    font-size: 15px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 6px;
}

.custom-buy-buttons .sub-text {
    font-size: 10px;
    margin-top: 2px;
}

.ux-mini-cart-qty {
    display: none !important;
}

.label-price {
	font-size: 20px;
	font-weight: 600;
	color: var(--color-black);
}

/* Giá sale */
.sale-price span.amount {
	color: var(--color-red);
	font-size: 18px;
	line-height: 1;
}

/* Giá gốc */
.regular-price span.amount {
	color: #999;
	font-size: 15px;
	text-decoration: line-through;
	line-height: 1;
}

/* % giảm */
.discount-percent {
	background: var(--color-main);
	color: var(--color-white);
	font-size: 14px;
	font-weight: 700;
	padding: 5px 10px;
	border-radius: 4px;
	line-height: 1;
}

/* Còn bao nhiêu ngày */
.sale-days {
	color: var(--color-main);
	font-size: 15px;
	font-weight: 600;
}

/* Không sale */
.normal-price {
	color: var(--color-red);
	font-size: 32px;
	font-weight: 600;
}

/* Tích chọn */
.custom-product-options {
    display: flex;
    flex-direction: column;
}

/* .custom-product-options .option-group {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
	gap: 20px;
} */

.custom-product-options .option-title {
    min-width: 90px;
    font-size: 16px;
    color: var(--color-black);
    line-height: 42px;
}

.custom-product-options .option-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex: 1;
}

.custom-product-options .option-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    background: var(--color-white);
    color: var(--color-black);
	margin: 0 8px 8px 0;
    font-size: 15px;
	font-weight: 500;
	text-transform: none;
    cursor: pointer;
    transition: all .25s ease;
    user-select: none;
    border-radius: 2px;
    box-shadow: none;
    outline: none;
}

.custom-product-options .option-item:hover {
    border-color: var(--color-main);
    color: var(--color-main);
}

/* ACTIVE */
.custom-product-options .option-item.active {
    border-color: var(--color-main);
    color: var(--color-main);
    background: var(--color-white);
}

/* GÓC CAM */
.custom-product-options .option-item.active::before {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 20px;
    height: 20px;
    background: var(--color-main);
    clip-path: polygon(100% 0, 0 100%, 100% 100%);
}

/* ICON */
.custom-product-options .option-item.active::after {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: -1px;
    bottom: 1px;
    font-size: 10px;
    color: var(--color-white);
    z-index: 2;
    line-height: 1;
	padding: 1px 3px;
    border-top-left-radius: 4px;
}

@media (max-width: 575px) {
	.custom-buy-wrap { 
		flex-direction: column; 
	}
	
	.custom-qty { 
		margin: 0;
		margin-bottom: 10px;
	}
	
	.custom-buy-buttons { 
		flex-direction: column; 
	}
}
/* MOBILE */
@media(max-width:768px) {
	.custom-buy-buttons {
		display: grid;
		gap: 10px;
	}

	.custom-buy-buttons button {
		min-height: 54px;
		padding: 10px;
	}

	.custom-buy-buttons .main-text {
		font-size: 14px;
	}

	.custom-buy-buttons .sub-text {
		font-size: 10px;
	}

	.custom-qty .qty-btn {
		width: 38px;
		height: 38px;
	}

	.custom-qty .qty-input {
		width: 46px;
		height: 38px;
		font-size: 14px;
	}
	
	.custom-product-options .option-group {
        flex-direction: column;
        gap: 10px;
    }

    .custom-product-options .option-title {
        min-width: 100%;
        line-height: normal;
        font-size: 15px;
    }

    .custom-product-options .option-items {
        width: 100%;
		flex-wrap: nowrap;
    }

    .custom-product-options .option-item {
        font-size: 12px;
    }
	
	.sale-price, .normal-price {
		font-size: 24px;
	}

	.regular-price {
		font-size: 16px;
	}

	.label-price {
		font-size: 16px;
	}

	.sale-days {
		font-size: 13px;
	}
}