/*
Theme Name:   Flatsome Child
Theme URI:    https://lacamie.com
Description:  Child theme for Flatsome
Author:       MrSeadev
Author URI:   https://lacamie.com
Template:     flatsome
Version:      1.0.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  flatsome-child
*/

body.archive.tax-product_cat .row.category-page-row,
body.archive.tax-product_cat .row.row-small,
body.archive.tax-product_cat .page-title-inner.container,

body.post-type-archive-product .row.category-page-row,
body.post-type-archive-product .row.row-small,
body.post-type-archive-product .page-title-inner.container {
    max-width: unset !important;
}


.nav-dark .nav>li>a {
    color: unset;
}

.nav-dropdown-default .nav-column li>a,
.nav-dropdown.nav-dropdown-default>li>a {
    border-bottom: none;
}

h5.header-title {
    font-weight: 500;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: sfufuturaregular;
}

body,
p,
a,
li,
input,
textarea {
    font-family: sfufuturaregular;
}


.nav-column li>a,
.nav-dropdown.nav-dropdown-default>li>a {
    border-bottom: 1px solid #ececec;
}

.nav-dark .cart-icon strong {
    border-color: unset;
    color: unset;
}

.nav-dark .cart-icon strong:after {
    border-color: unset;
}

/* @media (min-width:768px) {
    .header-nav.header-nav-main.nav.nav-right {
        justify-content: flex-start;
    }
} */


.is-divider.divider.clearfix {
    background-color: transparent;
}

.mrs-btn-buy-now {
    margin-top: -30px !important;
}

.mrs-large-category-top {
    margin-top: 4px;
}

.mrs-large-category-top a {
    color: #fff !important;
}

.mrs-large-category-top .col.mrs-col-category:last-child {
    margin-top: 4px;
}

@media (min-width: 768px) {
    .mrs-large-category-top .col.mrs-col-category:first-child .col-inner {
        width: calc(100% - 2px);
        margin-right: 2px;
    }

    .mrs-large-category-top .col.mrs-col-category:last-child .col-inner {
        width: calc(100% - 2px);
        margin-left: 2px;
    }

    .mrs-large-category-top .col.mrs-col-category:last-child {
        margin-top: 0;
    }


    .mrs-row-in-spotlight div.col>.col-inner {
        width: calc(100% - 4px);
        margin-right: 2px;
        margin-left: 2px;
    }
}

/* List product on home */
.row-dashed .col-inner,
.row-solid .col-inner {
    padding: 0;
}

.row-dashed .col:before,
.row-solid .col:before {
    border-left: 0;
    content: " ";
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
}

/* list product on category */
body.archive.tax-product_cat .row-small>.col,
body.archive.tax-product_cat .row-small>.flickity-viewport>.flickity-slider>.col,
body.single.single-product .row-small>.col,
body.single.single-product .row-small>.flickity-viewport>.flickity-slider>.col {
    padding: 2px;
}

.list-shop {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-column-gap: 14px;
    grid-row-gap: 35px
}

.list-shop img {
    display: none;
}

.list-shop .item-shop {
    padding: 10px 16px;
    background: #f8f8f8;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .15);
    border-radius: 5px;
    min-height: 10em
}

.list-shop .item-shop .address-item {
    font-weight: 700;
    font-size: 16px;
    line-height: 21px;
    margin-bottom: 4px;
}

.list-shop .item-shop .time-open {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px
}

.list-shop .item-shop .time-open .time {
    font-weight: 400;
    font-size: 14px;
    line-height: 22px
}

.list-shop .item-shop .time-open .status {
    background: rgba(1, 1, 1, .1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 30px
}

.list-shop .item-shop .time-open .status span {
    font-weight: 400;
    font-size: 14px;
    line-height: 22px;
}

.list-shop .item-shop .see-way {
    font-weight: 400;
    font-size: 14px;
    line-height: 22px;
    -webkit-text-decoration-line: underline;
    text-decoration-line: underline;
    margin-bottom: 8px
}


/* Mobile responsive */
@media (max-width: 768px) {
    .list-shop {
        grid-template-columns: repeat(2, 1fr);
        grid-column-gap: 10px;
        grid-row-gap: 20px;
    }

    .list-shop img {
        display: block;
        max-width: 100%;
        margin-bottom: 8px;
        border-radius: 4px;
    }

    .list-shop .item-shop {
        padding: 8px 12px;
        min-height: auto;
    }

    .list-shop .item-shop .address-item {
        font-size: 14px;
        line-height: 20px;
    }

    .list-shop .item-shop .time-open .time,
    .list-shop .item-shop .time-open .status span,
    .list-shop .item-shop .see-way {
        font-size: 12px;
        line-height: 18px;
    }

    .list-shop .item-shop .time-open .status {
        width: 70px;
        height: 26px;
    }
}

/* Extra small devices (≤480px): chỉ còn 1 cột */
@media (max-width: 480px) {
    .list-shop {
        grid-template-columns: 1fr;
    }

    .list-shop .item-shop {
        padding: 10px;
    }
}

.product-small.box .box-image {
    /* height: 345px; */
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}


.box.box-blog-post .post-title a {
    color: #2c2a2a;
}

.mrs-bo-cong-thuong img {
    max-width: 150px;
}

.mrs-address {
    font-size: 0.85rem;
    line-height: 18px;
}

/* Begin: Detail Product category  */
.mrs-category-product-detail {
    position: relative;
    margin-bottom: 20px;
}

.mrs-detail-collapsed {
    max-height: calc(1.6em * 4);
    overflow: hidden;
    transition: max-height 0.4s ease;
    line-height: 1.6;
}

.mrs-detail-collapsed.is-open {
    max-height: 9999px;
}

.mrs-detail-toggle-wrap {
    text-align: center;
    margin-top: 8px;
}

.mrs-detail-toggle-btn {
    background: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 5px 18px;
    cursor: pointer;
    font-size: 0.9em;
    color: #555;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s, border-color 0.2s;
}

.mrs-detail-toggle-btn:hover {
    color: #222;
    border-color: #888;
}

.mrs-toggle-arrow {
    display: inline-block;
    transition: transform 0.3s ease;
    font-size: 0.75em;
}

.mrs-detail-toggle-btn[aria-expanded="true"] .mrs-toggle-arrow {
    transform: rotate(180deg);
}

/* 
End: Detail Product category
*/

/* ==========================================================================
   Related Posts Shortcode
   ========================================================================== */
.related-posts-shortcode {
    margin: 30px 0;
    padding: 20px 20px 10px 20px;
    background-color: #f5f5f5;
    border-radius: 8px;
    border: #aaa 1px solid;
}

.related-posts-title {
    margin: 0 0 20px 0;
    font-size: 1.3em;
    font-weight: bold;
    color: #333;
}

.related-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-posts-list li {
    margin-bottom: 10px;
}

.related-posts-list li a {
    color: #0066cc;
    text-decoration: none;
    font-size: 1em;
    line-height: 1.6;
}

.related-posts-list li a:hover {
    color: #000;
}

@media (max-width: 768px) {
    .related-posts-list li {
        margin-left: 0 !important;
    }
}

.footer-wrapper ul li {
    margin-bottom: 0.15rem !important;
}

/* ==========================================================================
   Footer Menu Accordion (mobile)
   ========================================================================== */
@media (max-width: 767px) {
    .footer-accordion-toggle {
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
        user-select: none;
        padding-bottom: 10px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        margin-bottom: 0 !important;
    }

    /* Mũi tên — dùng border trick, không cần icon font */
    .footer-accordion-toggle::after {
        content: '';
        display: inline-block;
        width: 8px;
        height: 8px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg);
        /* mũi tên xuống (đóng) */
        transition: transform 0.25s ease;
        flex-shrink: 0;
        margin-left: 8px;
    }

    .footer-accordion-toggle.is-open::after {
        transform: rotate(-135deg);
        /* mũi tên lên (mở) */
    }

    .footer-accordion-body {
        padding-top: 10px;
    }
}

.mrs-row-new-product .row.row-small {
    max-width: unset !important;
}



.mrs-marquee {
    width: 100%;
    overflow: hidden;
    padding: 10px 0;
}

.mrs-marquee-text {
    white-space: nowrap;
    display: inline-block;
    font-weight: bold;
    animation: marquee 15s linear infinite;
}

/* Định nghĩa chuyển động */
@keyframes marquee {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}


.mrs-col-category .col-inner {
    position: relative;
}

.mrs-col-category .button.primary.is-link {
    position: absolute;
    z-index: 10;
    top: 10px;
    left: 0;
    padding: 6px 20px;
}

.ux-menu-link.flex.menu-item {
    padding-left: 10px;
}

@media (min-width: 768px) {
    .ux-menu-link.flex.menu-item {
        padding-left: 0;
    }

    .ux-menu.mrs-quick-menu {
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 0;
    }

    .ux-menu.mrs-quick-menu .ux-menu-link {
        padding: 0 30px;
        position: relative;
    }

    .ux-menu.mrs-quick-menu .ux-menu-link:not(:last-child)::after {
        content: '';
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        height: 16px;
        width: 1px;
        background: currentColor;
        opacity: 0.3;
    }

    .ux-menu.mrs-quick-menu.ux-menu--divider-solid .ux-menu-link:not(:last-child) .ux-menu-link__link {
        border-bottom: none;
    }

    .ux-menu.mrs-quick-menu .ux-menu-link__text {
        position: relative;
    }

    .ux-menu.mrs-quick-menu .ux-menu-link__text::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: -2px;
        width: 0;
        height: 1px;
        background: currentColor;
        transition: width 0.25s ease;
    }

    .ux-menu.mrs-quick-menu .ux-menu-link:hover .ux-menu-link__text::after {
        width: 100%;
    }
}

.lc-product-loop-swatches {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 10px;
}

.lc-swatch-circle {
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 50%;

}