/*
Theme Name: Flatsome Child Theme
Theme URI: https://lml.vn
Description: Thiet ke boi LML
Author: Le Phong
Author URI: https://zalo.me/0333361760
Template: flatsome
Version: 3.15
*/

@import url("../flatsome/style.css");

.custom-product-cat>div:hover {
	transition: opacity .3s, transform .3s, background-color .3s;
	transform: translateY(-5px);
}

.custom-product-cat>div>div {
	background-color: #f8f8f8;
    border-radius: 10px;
}

.custom-product-cat img {
	padding: 30px;
    border-radius: 50%;
}

.variation-thumbnails-wrapper {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.variation-thumb-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    position: relative;
}

.variation-thumb {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #ddd;
    padding: 2px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.variation-thumb-btn:hover .variation-thumb {
    transform: scale(1.1);
    border-color: #333;
}

.variation-thumb-btn:hover .variation-thumb,
.variation-thumb-btn.active .variation-thumb {
    transform: scale(1.1);
    border-color: #333;
}

/* Tooltip nổi khi hover */
.variation-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 4px 8px;
    border-radius: 6px;
    white-space: nowrap;
    font-size: 12px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    margin-bottom: 6px;
    z-index: 100;
}

.variation-thumb-btn:hover .variation-tooltip {
    opacity: 1;
}

.variation-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

/* Styling flatsome_product_box_actions */
/* Ghi đè lại grid */
.grid-tools {
    gap: 10px;
    justify-content: center;
	padding-bottom: 10px !important;
}

/* Container chứa các nút - đảm bảo nằm ngang */
.product-small .box-text .product-box-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
	padding-bottom: 10px;
}

/* Nút Quick View */
a.quick-view {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: #000;
    color: #fff;
    border-radius: 8px;
    font-size: 16px;
    text-indent: -9999px;
    position: relative;
}

/* Thêm icon Quick View */
a.quick-view::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    background-image: url('/wp-content/uploads/2025/05/quick-view-eye.png');
	background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transform: translate(-50%, -50%);
}

/* Nút add to cart dạng biến thể */
a.add-to-cart-grid {
    width: 40px !important;
    height: 40px;
    background-color: #000 !important;
    border-radius: 8px;
    display: inline-block !important;
    position: relative;
    overflow: hidden;
    text-indent: -9999px;
}

/* Ẩn chữ cộng nếu muốn dùng icon */
a.add-to-cart-grid .cart-icon strong {
    display: none;
}

/* Thêm icon */
a.add-to-cart-grid::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    background-image: url('/wp-content/uploads/2025/05/shopping-cart.png');
	background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transform: translate(-50%, -50%);
}

/* Custom product variation options */
.swatch-container {
    display: flex;
    gap: 10px; /* khoảng cách giữa các swatch */
    flex-wrap: wrap;
}

.swatch-label {
    cursor: pointer;
    display: inline-block;
    position: relative;
}

.swatch-label.swatch-disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.swatch-image {
    width: 50px;
    height: 50px;
    border-radius: 50%; /* hình tròn */
    border: 2px solid transparent;
    object-fit: cover;
    transition: border-color 0.3s ease;
}

/* Khi radio được check, viền swatch đổi màu */
.swatch-label input[type="radio"]:checked + .swatch-image {
    border-color: #007cba; /* màu viền khi chọn */
}

/* Hiệu ứng hover */
.swatch-label:hover .swatch-image {
    border-color: #005177;
}

/* Radio label */
.radio-label {
    font-weight: 500;
	margin-bottom: 0;
}