/* CARD */
.product-small.box {
    background: #f8f8f8;
    border-radius: 18px;
    overflow: hidden;
    padding: 10px;
    height: 100%;
    transition: 0.3s;
}

.product-small.box:hover {
    transform: translateY(-3px);
}

/* ẢNH FULL KHUNG */
.product-small .box-image {
    margin: -10px -10px 12px;
    overflow: hidden;
    border-radius: 18px 18px 0 0;
}

.product-small .box-image img {
    width: 100%;
    object-fit: cover;
    display: block;
}

/* SALE */
.badge-inner {
    background: transparent !important;
}

.onsale {
    position: absolute;
    top: -20%;
    left: 10px;
    background: var(--dusty-rose) !important;
    color: var(--color-white) !important;
    font-size: 11px !important;
    font-weight: 600;
    padding: 6px 10px !important;
    border-radius: 6px;
    line-height: 1;
    min-height: unset !important;
    min-width: unset !important;
    writing-mode: horizontal-tb !important;
    transform: none !important;
    z-index: 5;
}

/* TIÊU ĐỀ */
.product-small .product-title {
    margin-bottom: 8px;
    line-height: 1.4;
}

.product-small .product-title a {
    font-size: 17px;
    font-weight: 600;
    color: var(--color-main);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
	min-height: 2.5em;
}

/* PRICE + CART */
.price-cart-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 8px;
    width: 100%;
}

.price-wrapper {
    flex: 1;
    min-width: 0;
}

span.amount {
	color: var(--highlight) !important;
}

del span.amount {
	color: var(--color-main) !important;
}

.price-wrapper .price {
    margin: 0;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.4;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

/* Giá cũ */
.price del {
    opacity: 0.5;
    font-size: 14px;
}

/* Giá mới */
.price ins {
    text-decoration: none;
}

/* Nút cart */
.cart-icon-wrapper {
    flex-shrink: 0;
}

.cart-icon-wrapper .button,
.cart-icon-wrapper .added_to_cart {
    width: 40px;
    height: 40px;
    min-height: 40px;
    min-width: 40px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: var(--color-white) !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 !important;
    font-size: 0 !important;
    overflow: hidden;
    transition: 0.3s;
}

.cart-icon-wrapper .button::before,
.cart-icon-wrapper .added_to_cart::before {
    content: "\f290";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 16px;
    color: #222;
    transition: 0.3s;
}

/* Hover */
.cart-icon-wrapper .button:hover,
.cart-icon-wrapper .added_to_cart:hover {
    background: var(--sage-green) !important;
    border-color: var(--sage-green);
}

.cart-icon-wrapper .button:hover::before,
.cart-icon-wrapper .added_to_cart:hover::before {
    color: var(--color-white);
}

/* Ẩn text */
.cart-icon-wrapper .button span,
.cart-icon-wrapper .added_to_cart {
    color: transparent !important;
    text-indent: -9999px;
    display: none !important;
}

/* Khung icon */
.custom-wishlist-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 9;

    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

/* Hover ảnh hiện icon */
.box-image:hover .custom-wishlist-icon {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-wishlist-icon a:hover {
	background: var(--color-main);
}

.custom-wishlist-icon:hover i {
	color: var(--color-white);
}

/* Style nút */
.custom-wishlist-icon a {
    width: 40px;
    height: 40px;
    background: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    text-decoration: none;
}

/* Icon */
.custom-wishlist-icon i {
    font-size: 18px;
    color: var(--color-black);
    left: 10px;
    top: 9px;
    position: relative;
}

/* Hover */
.custom-wishlist-icon a:hover {
    transform: scale(1.05);
}

/* MOBILE */
@media (max-width: 768px) {
    .product-small.box {
        padding: 8px;
        border-radius: 14px;
    }

    .product-small .box-image {
        margin: -8px -8px 10px;
        border-radius: 14px 14px 0 0;
    }

    .product-small .product-title a {
        font-size: 14px;
    }

    .price-wrapper .price {
        font-size: 14px;
    }

    .price del {
        font-size: 11px;
    }
	
	.price-cart-wrap {
		display: block;
	}

    .cart-icon-wrapper .button, .cart-icon-wrapper .added_to_cart {
        width: 32px;
        height: 32px;
        min-width: 32px;
        min-height: 32px;
    }

    .onsale {
        font-size: 10px;
		top: -50%;
    }
}

.woocommerce.widget_product_categories, .woocommerce.widget_price_filter {
	background-color: var(--color-white);
	border-radius: 15px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
	overflow: hidden;
	border: 1px solid #f1f1f5;
	padding: 0 !important;
}

.woocommerce.widget_product_categories .is-divider, .product-categories .cat-item-17 {
	display: none;
}

.woocommerce.widget_product_categories .widget-title {
	background-color: var(--color-main);
	padding: 15px 20px !important;
	margin: 0 !important;
	color: var(--color-white);
	font-weight: bold;
	display: flex;
	align-items: center;
}

.widget_product_categories .widget-title::before {
	content: "\f03a";
	font-family: "Font Awesome 5 Free";
	margin-right: 10px;
	font-size: 14px;
}

.product-categories {
	padding: 15px 10px;
}

.product-categories li {
	border: none !important;
	padding: 3px 0px;
}

.product-categories .children {
	padding-left: 10px;
	margin-top: 5px;
	margin-left: 10px;
}

.product-categories .children .cat-item.active a {
	color: var(--color-main);
}

.product-categories .children .cat-item a {
	transition: all 0.3s linear;
	padding:10px 0px !important;
	color: var(--color-black);
}

.product-categories .cat-item.active .icon-angle-down {
	color: var(--color-black);
}

.product-categories .children .cat-item a:hover {
	padding-left: 0.5rem;
	color: var(--color-main);
}

.widget_product_categories .toggle {
	margin-right: 10px !important;
}

.woocommerce.widget_price_filter .widget-title {
	color: var(--color-main);
	display: flex;
	padding: 15px 0px 10px 20px;

}

.woocommerce.widget_price_filter .widget-title::before {
	content: "\f0b0";
	font-family: "Font Awesome 5 Free";
	margin-right: 8px;
}

.woocommerce.widget_price_filter .is-divider {
	width: 90%;
	max-width: 90%;
	margin-left: auto;
	margin-right: auto;
	height: 2px;
	background-color: #eee;
	display: block;
}

.woocommerce.widget_price_filter .ui-widget-content {
	width: 90%;
	max-width: 90%;
	margin: 20px auto 20px auto;
	display: block;
}

.woocommerce.widget_price_filter .ui-widget-content span {
	background: var(--color-main);

}

.woocommerce.widget_price_filter .price_slider_amount {
	display: flex !important;
	flex-direction: column-reverse !important;
}

.woocommerce.widget_price_filter .price_slider_amount .price_label {
	padding: 10px;
	color: var(--color-main);
	margin: 3px 0px 10px 0px;
}

.woocommerce.widget_price_filter .price_slider_amount .button {
	background-color: var(--color-main);
	border-radius: 20px;
	margin-left: 10px;
}

.widget>ul>li>a {
	color: var(--color-black);
}

@media (max-width: 768px) {
	.custom-wishlist-icon i {
		left: unset;
	}
}