/*
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.   ***************/

/* CSS cho icon tick trong mô tả ngắn sản phẩm */
.product-short-description ul {
    list-style: none;
    padding-left: 0;
}

.product-short-description ul li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 10px;
    line-height: 1.5;
}

.product-short-description ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    /*background-color: #ffffff;*/
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    color: #911218;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}


/* ACF Price Range Filter Styles */
.price-range-filter {
    margin: 15px 0 !important;
    padding: 15px !important;
    background: #f8f9fa !important;
    border-radius: 6px !important;
    border: 1px solid #e9ecef !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
}

.price-range {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 5px 0 !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: thin !important;
}

.price-range::-webkit-scrollbar {
    height: 4px !important;
}

.price-range::-webkit-scrollbar-track {
    background: #f1f1f1 !important;
    border-radius: 2px !important;
}

.price-range::-webkit-scrollbar-thumb {
    background: #c1c1c1 !important;
    border-radius: 2px !important;
}

.price-range::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8 !important;
}

.range__item {
    display: flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
}

.range__input {
    margin-right: 6px !important;
    cursor: pointer !important;
    opacity: 0 !important;
    position: absolute !important;
}

.range__label {
    cursor: pointer !important;
    font-size: 13px !important;
    color: #555 !important;
    padding: 6px 12px !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    background: #fff !important;
    transition: all 0.2s ease !important;
    display: block !important;
    text-align: center !important;
    white-space: nowrap !important;
    font-weight: 500 !important;
    min-width: auto !important;
}

.range__label:hover {
    background: #f0f0f0 !important;
    border-color: #999 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1) !important;
}

.range__input:checked + .range__label {
    background: #911218 !important;
    color: #fff !important;
    border-color: #911218 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 3px 8px rgba(145, 18, 24, 0.3) !important;
}

.range__input:checked + .range__label:before {
    content: "✓ " !important;
    font-weight: bold !important;
}

.range__label .count {
    font-size: 11px !important;
    opacity: 0.7 !important;
    font-weight: normal !important;
    margin-left: 4px !important;
}

.range__input:checked + .range__label .count {
    opacity: 0.9 !important;
}

/* Product Attributes Filter Styles */
.product-attributes-filter {
    margin: 10px 0 !important;
    padding: 15px !important;
    background: #f8f9fa !important;
    border-radius: 6px !important;
    border: 1px solid #e9ecef !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
}

.attributes-container {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 15px !important;
    align-items: center !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: thin !important;
}

.attributes-container::-webkit-scrollbar {
    height: 4px !important;
}

.attributes-container::-webkit-scrollbar-track {
    background: #f1f1f1 !important;
    border-radius: 2px !important;
}

.attributes-container::-webkit-scrollbar-thumb {
    background: #c1c1c1 !important;
    border-radius: 2px !important;
}

.attributes-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8 !important;
}

.filter-label {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #333 !important;
    white-space: nowrap !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
}

.attribute-filter {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-shrink: 0 !important;
}

.attribute-select {
    padding: 6px 10px !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    background: #fff !important;
    font-size: 13px !important;
    color: #555 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    min-width: 150px !important;
    max-width: 200px !important;
}

.attribute-select:hover {
    border-color: #999 !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

.attribute-select:focus {
    outline: none !important;
    border-color: #911218 !important;
    box-shadow: 0 0 0 2px rgba(145, 18, 24, 0.2) !important;
}


/* Responsive Design */
@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/

.price-range-filter {
    margin: 10px 0 !important;
    padding: 12px !important;
}

.price-range {
    gap: 6px !important;
    padding: 3px 0 !important;
}

.range__label {
    font-size: 12px !important;
    padding: 5px 10px !important;
}

.range__label .count {
    font-size: 10px !important;
}

.product-attributes-filter {
    margin: 8px 0 !important;
    padding: 12px !important;
}

.attributes-container {
    gap: 10px !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
}

.attribute-filter {
    gap: 6px !important;
    flex-shrink: 0 !important;
}

.attribute-select {
    font-size: 12px !important;
    padding: 5px 8px !important;
    min-width: 120px !important;
    max-width: 150px !important;
}

.filter-label {
    font-size: 12px !important;
    flex-shrink: 0 !important;
}

}