/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/

/* Ép nút Order Now màu đỏ và rộng 100% */
.custom-mess-btn {
    background-color: #b00c35 !important;
    color: #ffffff !important;
    width: 100% !important;
    display: block !important;
    text-align: center !important;/* Sold Badge */
.fake-sold-badge {
    border: 1px solid #111;
    border-radius: 12px;
    padding: 2px 10px;
    font-size: 11px;
    color: #8b2b2b;
    background: #fff;
    font-weight: 600;
}

/* Hàng màu cố định 2 dòng */
.loop-color-swatches-wrap {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    min-height: 44px; /* Giữ chỗ cho 2 dòng màu */
    max-height: 44px;
    overflow: hidden;
    margin: 5px 0;
}

.color-swatch {
    width: 20px;
    height: 20px;
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 2px;
    box-shadow: inset 0 0 0 2px #fff;
}

/* Nút ORDER NOW đỏ */
.custom-mess-btn {
    background-color: #a81039 !important;
    color: #fff !important;
    width: 100% !important;
    display: block !important;
    text-align: center !important;
    padding: 10px 0 !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
}

/* Khử khoảng trống Flatsome */
.product-small .box-text { padding-bottom: 5px !important; }
.product-small .price-wrapper { margin-bottom: 0 !important; }
    border-radius: 3px !important;
    margin-top: 10px !important;
    padding: 10px 0 !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    transition: all 0.3s ease !important;
}

/* Màu khi khách hàng di chuột vào nút */
.custom-mess-btn:hover {
    background-color: #8c092a !important;
    color: #ffffff !important;
}

/* Container bao ngoài Sold */
.fake-sold-container {
    margin-top: 2px;
    margin-bottom: 5px;
}

/* Badge Sold */
.fake-sold-badge {
    display: inline-block;
    background-color: #f1f1f1; /* Màu nền nhẹ cho badge */
    color: #444;
    padding: 2px 8px;
    font-size: 11px;
    border-radius: 10px;
    font-weight: 600;
}

/* Container màu - Ép sát lên trên */
.loop-color-swatches-wrap {
    display: flex;
    gap: 6px;
    margin-top: 2px;
    margin-bottom: 5px;
    flex-wrap: wrap;
    min-height: 44px; /* Đủ cho 2 hàng màu */
    max-height: 44px;
    overflow: hidden;
    width: 100%;
}

.loop-swatch-item.color-swatch {
    width: 20px;
    height: 20px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 2px;
    box-shadow: inset 0 0 0 2px #ffffff;
}

/* Đảm bảo nút ORDER NOW không bị đẩy quá xa */
.custom-mess-btn {
    margin-top: 5px !important;
}

/* Badge Đã bán dùng chung cho cả shop và trang con */
.fake-sold-badge {
    border: 1px solid #111;
    border-radius: 12px;
    padding: 2px 12px;
    font-size: 12px;
    color: #8b2b2b;
    background: #fff;
    font-weight: 600;
    display: inline-block;
}

/* Hàng màu ngoài trang danh sách */
.loop-color-swatches-wrap {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    min-height: 44px;
    max-height: 44px;
    overflow: hidden;
    margin: 5px 0;
}

.color-swatch {
    width: 20px;
    height: 20px;
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 2px;
    box-shadow: inset 0 0 0 2px #fff;
}
