/* Shop Elements for UX Builder */
.products-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}
.products-nav .woocommerce-notices-wrapper {
    flex-basis: 100%;
}
.products-nav .view-mode-wrap {
    margin-right: auto;
}
.products-nav .view-mode {
    display: flex;
    align-items: center;
    gap: 8px;
}
.products-nav .button-filter {
    margin: 0;
}
.products-nav .seuxb-grid-view,
.products-nav .seuxb-list-view {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #666;
}
.products-nav .seuxb-grid-view span,
.products-nav .seuxb-list-view span {
    display: block;
    overflow: hidden;
    text-indent: -999px;
}
.products-nav .seuxb-grid-view span {
    width: 14px;
    height: 14px;
    background: linear-gradient(#999 0 0) 0 0/6px 6px, linear-gradient(#999 0 0) 100% 0/6px 6px, linear-gradient(#999 0 0) 0 100%/6px 6px, linear-gradient(#999 0 0) 100% 100%/6px 6px;
    background-repeat: no-repeat;
}
.products-nav .seuxb-list-view span {
    width: 16px;
    height: 14px;
    background: linear-gradient(#999 0 0) 0 0/100% 2px, linear-gradient(#999 0 0) 0 6px/100% 2px, linear-gradient(#999 0 0) 0 12px/100% 2px;
    background-repeat: no-repeat;
}
.products-nav .seuxb-grid-view.active,
.products-nav .seuxb-list-view.active {
    border-color: var(--primary-color, #fdb819);
    color: var(--primary-color, #fdb819);
}
.products-nav .woocommerce-ordering {
    margin: 0;
}
.products-nav .catalog-ordering .product-number {
    display: flex;
    align-items: center;
    gap: 8px;
}
.products-nav .seuxb-per-page {
    min-width: 70px;
}
.products-nav .woocommerce-pagination {
    flex-basis: 100%;
    margin-top: 5px;
}
/* List view: 1 cột, ảnh trái — nội dung phải */
.products.view-list .product-small {
    flex-basis: 100% !important;
    max-width: 100% !important;
    box-shadow: none;
}
.products.view-list .product-small .col-inner {
    box-shadow: none;
    border-bottom: 1px solid #eaeaea;
}
.products.view-list .product-small .box {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}
.products.view-list .product-small .box-image {
    flex: 0 0 260px;
    max-width: 260px;
    padding-top: 130px !important;
    margin-bottom: 24px;
}
.products.view-list .product-small .box-text {
    flex: 1;
    min-width: 0;
    text-align: left;
    padding: 10px 0;
}
/* Vô hiệu inline height của Flatsome equalizer ở list view */
.products.view-list .box-text,
.products.view-list .product-title,
.products.view-list .price-wrapper,
.products.view-list .title-wrapper {
    height: auto !important;
    margin-left: 0;
    margin-top: 0;
}
.products.view-list .price-wrapper {
    margin-top: 8px;
}
/* Ẩn tool hover kiểu grid ở list view */
.products.view-list .grid-tools {
    display: none;
}
/* Desktop: ẩn nút Filters khi sidebar đang hiện (sidebar collapse bằng JS) */
@media (min-width: 850px) {
    .shop-container.filters-hidden .shop-sidebar {
        display: none;
    }
    .shop-container.filters-hidden .shop-main {
        flex-basis: 100%;
        max-width: 100%;
    }
}
.seuxb-placeholder {
    border: 1px dashed #ccc;
    padding: 15px;
    color: #999;
    font-size: 0.9em;
}
/* Sale countdown badge (đi kèm badge -% của Flatsome) */
.seuxb-countdown {
    display: flex;
    gap: 4px;
    margin-top: 6px;
    font-size: 11px;
    line-height: 1.2;
}
.seuxb-countdown span {
    background: rgba(7, 13, 50, 0.85);
    color: #fff;
    border-radius: 4px;
    padding: 4px 6px;
    text-align: center;
    min-width: 44px;
}
.seuxb-countdown b {
    display: block;
    font-size: 14px;
}
.seuxb-countdown i {
    font-style: normal;
    opacity: 0.7;
    font-size: 10px;
}
/* Loop actions overlay: Wishlist render sẵn bởi Flatsome native
   (flatsome_product_image_tools_top) khi YITH Wishlist active —
   plugin chỉ thêm hiệu ứng hover cho nút Quick View của Flatsome. */
.product-small .box-image {
    position: relative;
}
.product-small .quick-view {
    opacity: 0;
    transition: opacity 0.25s ease;
}
.product-small:hover .quick-view {
    opacity: 1;
}
/* Loop tool buttons: compare + quick-view + wishlist — đồng bộ */
.product-small .image-tools a.compare.button,
.grid-tools a.quick-view.quick-view-added,
button.wishlist-button.button.is-outline.circle.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffff38;
    color: #666;
    border: none;
    margin: 0;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transition: opacity 0.25s ease, color 0.25s ease;
}
.product-small:hover .image-tools a.compare.button,
.product-small:hover button.wishlist-button.button.is-outline.circle.icon {
    opacity: 1;
}
.product-small .image-tools a.compare.button:hover,
button.wishlist-button.button.is-outline.circle.icon:hover {
    color: var(--primary-color, #fdb819);
}
.product-small .image-tools a.compare.button.added {
    opacity: 1;
    color: var(--primary-color, #fdb819);
}
/* Single product: compare icon tròn (ghi đè nút primary của Flatsome) */
.woocommerce div.product .product-summary a.compare.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffff38;
    background-color: #ffffff38;
    color: #666;
    border: none;
    border-color: transparent;
    margin: 8px 0 0;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    vertical-align: middle;
}
.woocommerce div.product .product-summary a.compare.button:hover {
    color: var(--primary-color, #fdb819);
}
.woocommerce div.product .product-summary a.compare.button.added {
    color: var(--primary-color, #fdb819);
}
/* Quick-view: icon SVG nền */
.grid-tools a.quick-view.quick-view-added {
    background: url(/wp-content/uploads/2026/10/quickview.svg) center center no-repeat rgb(245 245 245 / 24%);
    background-size: 50% 60%;
    margin-left: 10px;
    opacity: 1;
}
/* YITH Compare preview bar: nút remove */
#yith-woocompare-preview-bar .compare-list .image-wrap .remove a {
    display: block;
    color: #000;
    background: #fff;
    font-size: 0;
    position: absolute;
    right: -10px;
    top: -10px;
    margin: 0;
    border-radius: 50%;
    cursor: pointer;
    width: 25px;
    height: 25px;
    line-height: 16px;
    text-decoration: none;
    text-align: center;
}
#yith-woocompare-preview-bar .compare-list .image-wrap .remove a:after {
    content: "\00D7";
    font-size: 25px;
    line-height: 16px;
}
body .yith-woocompare-popup-container {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgb(0 0 0 / 52%);
    z-index: 1012;
}
/* Vehicle search */
aside.vehicle {
    border: 1px solid #eaeaea;
    border-radius: 8px;
    padding: 20px;
    background: #fff;
}
aside.vehicle h3 {
    margin: 0 0 4px;
    font-size: 1.05em;
    text-transform: uppercase;
}
aside.vehicle p {
    margin: 0 0 12px;
    color: #777;
    font-size: 0.9em;
}
aside.vehicle form[data-seovn-vehicle] {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
aside.vehicle form[data-seovn-vehicle] select,
aside.vehicle form[data-seovn-vehicle] button {
    width: 100%;
    margin: 0;
}
aside.vehicle form[data-seovn-vehicle] input.seovn-vehicle-keyword {
    width: 100%;
    margin: 0;
}
.vehicle button {
    background: var(--primary-color);
    color: #fff;
}
@media screen and (min-width: 850px) {
    .mb-pc-fix.vehicle {
        border: 1px solid #eaeaea;
        border-radius: 0px;
        padding: 20px;
        background: #fffffff5;
        margin-top: -100px;
    }
}
/* PC: chia 3 phần đều nhau như form tuyển dụng — mobile xếp chồng */
@media (min-width: 850px) {
    .mb-pc-fix.vehicle form[data-seovn-vehicle] select,
    .mb-pc-fix.vehicle form[data-seovn-vehicle] button {
        flex: 1 1 0;
        min-width: 0;
        width: auto;
    }
    .mb-pc-fix.vehicle form[data-seovn-vehicle] input.seovn-vehicle-keyword {
        flex: 1 1 100%;
    }
}
