/* CARD WRAPPER */
.product-small.box {
    border-radius: 18px;
    overflow: hidden;
    background: var(--color-white);
    box-shadow: 0 10px 30px rgba(0,0,0,.12);
    transition: transform .3s ease, box-shadow .3s ease;
}

.product-small.box:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgb(220 38 38 / .3), 0 0 20px rgb(220 38 38 / .15);
    border-color: rgb(220 38 38 / .4);
}

/* Hover card thì toàn bộ chữ đổi màu */
.product-small.box:hover,
.product-small.box:hover a,
.product-small.box:hover .product-title a {
    color: var(--Rose-Red) !important;
}

/* IMAGE */
.product-small.box .box-image {
    position: relative;
    border-radius: 18px 18px 0 0;
    overflow: hidden;
}

.product-small.box img {
    width: 100%;
    height: 20rem;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

/* VERIFIED BADGE */
.product-small.box .box-image::after {
    content: "Verified";
    position: absolute;
    top: 12px;
    right: 12px;
    background: #0B602B url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 20 20'%3E%3Cpath d='M10 0a10 10 0 100 20 10 10 0 000-20zm-1.2 14.2L4.8 10.2l1.4-1.4 2.6 2.6 5-5 1.4 1.4-6.4 6.4z'/%3E%3C/svg%3E") no-repeat 8px center;
    background-size: 14px;
    color: var(--color-white);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px 4px 26px;
    border-radius: 999px;
    box-shadow: 0 4px 10px rgba(0,0,0,.2);
}

.products_info .location .location_text {
	position: relative;
	top: 2px;
}

/* TEXT AREA */
.product-small.box .box-text {
    padding: 14px 16px 18px;
}

/* TITLE */
.product-small.box .product-title {
    margin: 0 0 8px;
    font-size: 1.15rem;
    line-height: 1.4;
    font-weight: 600;
}

.product-small.box .product-title a {
    color: var(--color-black);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
	text-overflow: ellipsis;
    min-height: 2.6em;
}

/* LOCATION */
.product-small.box .products_info {
    margin-top: 6px;
}

.product-small.box .location {
    display: flex;
    align-items: center;
	margin-top: 10px;
    gap: 6px;
    font-size: 14px;
    color: #555;
}

.product-small.box .location1 {
    display: flex;
    align-items: center;
    margin-top: 10px;
    gap: 6px;
    font-size: 14px;
    color: #555;
}

.product-small.box .location_img img {
    width: 20px;
    height: 20px;
}

.button_text {
    display: flex;
    margin-top: 10px;
    flex-wrap: wrap;
}

/* Button chung */
.button_text button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 999px;
    color: var(--color-white);
    border: none;
    line-height: 1;
    white-space: nowrap;
    cursor: default;
}

/* Full Service */
.btn-full-service {
    background: linear-gradient(135deg, #7c3aed, #3b82f6);
}

/* Message */
.btn-message {
    background: linear-gradient(135deg, #059669, #0d9488);
}

/* Hàng nút dưới */
.button_bottom {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 8px;
}

/* View Profile */
.btn-view-profile {
    padding: 12px 20px;
    font-size: 12px;
    background: #f1f1f1;
    color: var(--color-black);
    border-radius: 10px;
    text-decoration: none;
    white-space: nowrap;
}

/* Nút tròn */
.btn-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    text-decoration: none;
	transition-property: transform;
    transition-timing-function: cubic-bezier(.4, 0, .2, 1);
    transition-duration: .15s;
}

/* WhatsApp */
.btn-whatsapp {
    background: #0B602B;
}

/* Telegram */
.btn-telegram {
    background: rgb(37 99 235);
}

.btn-circle img {
    width: 25px !important;
    height: 25px !important;
}

/* Hover */
.btn-view-profile:hover,
.btn-circle:hover {
    opacity: 0.9;
}

.pt-half, .op-7 {
	display: none;
}

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

    .product-small.box .box-text {
        padding: 12px 14px;
    }

    .product-small.box .product-title {
        font-size: 15px;
    }
	
	.products-grid-custom .product-small.box img {
        height: 160px;
        object-fit: cover;
    }
	
	.products-grid-custom .product-small.box .location_img img {
		height: 20px;
	}
	
	.products-grid-custom .product-small.box .box-image::after,
    .products-grid-custom .btn-whatsapp,
    .products-grid-custom .btn-telegram,
    .products-grid-custom .product-small.box .location1,
	.products-grid-custom .button_text button {
        display: none !important;
    }
	
	body.single-product .product-small.box img {
        height: 160px;
        object-fit: cover;
    }
	
	body.single-product .product-small.box .location_img img {
		height: 20px;
	}
	
	body.single-product .product-small.box .box-image::after,
    body.single-product .btn-whatsapp,
    body.single-product .btn-telegram,
    body.single-product .product-small.box .location1 {
        display: none !important;
    }

    body.single-product .button_text {
        flex-wrap: nowrap;
    }

    body.single-product .button_text button {
        font-size: 8px;
    }
}
