/* ==========================================================================
   GLOBAL TYPOGRAPHY (Helvetica, Roboto, arial, sans-serif)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,500;0,700;0,900;1,400;1,700&display=swap');

:root {
    --primary-font: Helvetica, Roboto, arial, sans-serif !important;
    --nav-font: Helvetica, Roboto, arial, sans-serif !important;
    --alt-font: Helvetica, Roboto, arial, sans-serif !important;
    --heading-font: Helvetica, Roboto, arial, sans-serif !important;
}

html, body,
p, span:not([class*="icon"]):not(.dashicons),
a:not([class*="icon"]):not(.dashicons),
input, textarea, select, button, label,
h1, h2, h3, h4, h5, h6,
.nav > li > a, .nav-top-link,
.heading-font, .body-font,
.primary-font, .secondary-font,
.widget, .widget-title,
.section-title,
.product-title,
.button, .btn,
.breadcrumbs,
.menu-item > a,
.off-canvas-center,
.price, .amount {
    font-family: Helvetica, Roboto, arial, sans-serif !important;
}

body {
    font-family: Helvetica, Roboto, arial, sans-serif !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.heading-font,
.section-title span,
.section-title b,
.entry-title,
.product-title a {
    font-family: Helvetica, Roboto, arial, sans-serif !important;
}
.txt-lien-he-header {
    line-height: 21px !important;
}
/* Khôi phục và bảo vệ icon fonts của WordPress Admin Bar & Flatsome */
#wpadminbar * {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}
#wpadminbar .ab-icon:before,
#wpadminbar .ab-item:before,
#wpadminbar #adminbarsearch:before,
#wpadminbar .dashicons,
.dashicons,
.dashicons-before:before {
    font-family: dashicons !important;
}

[class^="icon-"]:before,
[class*=" icon-"]:before,
i[class*="icon-"],
i[class*="icon-"]:before {
    font-family: "fl-icons" !important;
}


/* ==========================================================================
   FLATSOME TOPBAR - FULL WIDTH 100% 1 DÒNG DUY NHẤT CHO CHỮ CHẠY
   ========================================================================== */
#top-bar {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    line-height: 32px !important;
    overflow: hidden !important;
    position: relative !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

#top-bar .flex-row.container,
#top-bar .flex-row,
#top-bar .container {
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    line-height: 32px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    align-items: center !important;
}

/* Ẩn tất cả các cột KHÔNG chứa marquee-box */
#top-bar .flex-col:not(:has(.marquee-box)) {
    display: none !important;
}

/* Cột chứa marquee-box luôn chiếm trọn 100% chiều rộng */
#top-bar .flex-col:has(.marquee-box) {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    flex: 1 1 100% !important;
    height: 32px !important;
    line-height: 32px !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Nếu có nhiều hơn 1 cột chứa marquee-box, chỉ hiển thị cột đầu tiên */
#top-bar .flex-col:has(.marquee-box) ~ .flex-col:has(.marquee-box) {
    display: none !important;
}

#top-bar .nav,
#top-bar .nav > li,
#top-bar .nav > li.html,
#top-bar .html_topbar_left,
#top-bar .html_topbar_right,
#top-bar .html_topbar_center {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 32px !important;
    line-height: 32px !important;
}

.nav-small.nav > li.html {
    font-size: 14px;
}

/* --------------------------------------------------------------------------
   MARQUEE BOX & CHUYỂN ĐỘNG TỪ PHẢI QUA TRÁI (CHẠY TOÀN BỘ THANH TOPBAR)
   -------------------------------------------------------------------------- */
.marquee-box {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    height: 32px !important;
    line-height: 32px !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
    display: block !important;
    position: relative !important;
}

/* Nếu có 2 marquee-box nằm cạnh nhau, ẩn cái thứ 2 */
.marquee-box ~ .marquee-box {
    display: none !important;
}

.marquee-text {
    display: inline-block !important;
    white-space: nowrap !important;
    padding-left: 100% !important;
    animation: chay-toan-man-hinh 24s linear infinite !important;
    font-size: 13.5px;
    font-weight: 700;
    color: #ffffff;
    will-change: transform;
    line-height: 32px !important;
    height: 32px !important;
}

.marquee-box:hover .marquee-text {
    animation-play-state: paused !important;
}

@keyframes chay-toan-man-hinh {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-100%, 0, 0);
    }
}

@keyframes chạy-ngang {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-100%, 0, 0);
    }
}

@keyframes chay-ngang {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-100%, 0, 0);
    }
}

/* ==========================================================================
   HEADER BOTTOM MENU - MÀU CHỮ TRẮNG, HOVER VÀ ACTIVE MÀU #efd214
   ========================================================================== */
.header-bottom-nav > li > a,
#wide-nav .nav > li > a {
    color: #ffffff !important;
    font-size: 0.7em;
    font-weight: bolder;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.header-bottom-nav > li:hover > a,
.header-bottom-nav > li > a:hover,
.header-bottom-nav > li.active > a,
.header-bottom-nav > li.current-menu-item > a,
.header-bottom-nav > li.current_page_item > a,
.header-bottom-nav > li.current-menu-ancestor > a,
.header-bottom-nav > li.current-menu-parent > a,
#wide-nav .nav > li:hover > a,
#wide-nav .nav > li > a:hover,
#wide-nav .nav > li.active > a,
#wide-nav .nav > li.current-menu-item > a,
#wide-nav .nav > li.current_page_item > a {
    color: #efd214 !important;
}



/* ==========================================================================
   WDM THEME - FLOATING CONTACT WIDGET (wdm-chat) & BACK TO TOP
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Floating Container (.wdm-chat-wp)
   -------------------------------------------------------------------------- */
.wdm-chat-wp {
    position: fixed;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.wdm-chat-wp * {
    box-sizing: border-box;
}

.wdm-chat-wp.wdm-chat-right {
    right: 20px;
    align-items: flex-end;
}

.wdm-chat-wp.wdm-chat-left {
    left: 20px;
    align-items: flex-start;
}

/* --------------------------------------------------------------------------
   2. Contact Buttons (.wdm-chat-btn)
   -------------------------------------------------------------------------- */
.wdm-chat-item {
    position: relative;
    display: flex;
    align-items: center;
}

.wdm-chat-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    text-decoration: none !important;
    border: none;
    outline: none;
    cursor: pointer;
    background: #ffffff;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.18);
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 0;
    z-index: 2;
}

.wdm-chat-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.25);
}

.wdm-chat-btn svg {
    width: 28px;
    height: 28px;
    display: block;
}

/* Individual Button Colors & Borders */
.wdm-btn-face {
    background: #ffffff;
}

.wdm-btn-zalo {
    background: #ffffff;
}

.wdm-btn-phone {
    background: #ffffff;
}

.wdm-btn-map {
    background: #ffffff;
}

/* Pulse Ripple Animation for Phone & Map */
.wdm-chat-pulse {
    position: absolute;
    top: -6px;
    left: -6px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    pointer-events: none;
    border: 2px solid rgba(1, 143, 231, 0.6);
    animation: wdm-pulse-ring 1.8s infinite ease-in-out;
}

.wdm-chat-pulse.pulse-red {
    border-color: rgba(231, 76, 60, 0.6);
}

@keyframes wdm-pulse-ring {
    0% {
        transform: scale(0.7);
        opacity: 0.9;
    }
    100% {
        transform: scale(1.35);
        opacity: 0;
    }
}

/* --------------------------------------------------------------------------
   3. Back-to-Top Button (.wdm-chat-backtotop)
   -------------------------------------------------------------------------- */
.wdm-chat-backtotop {
    width: 40px;
    height: 40px;
    background: #ffffff;
    border: 1.5px solid #222222;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    outline: none;
    padding: 0;
    color: #222222;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    transition: all 0.25s ease;
    margin-top: 4px;
        margin-right: 3px;
}

.wdm-chat-backtotop:hover {
    background: #efd214;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px #efd214;
    border-color: #efd214;
}

.wdm-chat-backtotop svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    transition: transform 0.2s ease;
}

.wdm-chat-backtotop:hover svg {
    transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   4. Dropdown Menus (.wdm-dropdown)
   -------------------------------------------------------------------------- */
.wdm-dropdown {
    position: absolute;
    bottom: -5px;
    width: 270px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.96);
    transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1000;
    overflow: hidden;
}

.wdm-chat-right .wdm-dropdown {
    right: calc(100% + 14px);
}

.wdm-chat-left .wdm-dropdown {
    left: calc(100% + 14px);
}

.wdm-dropdown.wdm-show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.wdm-dropdown-menu {
    list-style: none;
    margin: 0;
    padding: 6px 0;
}

.wdm-dropdown-title {
    padding: 10px 16px 8px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    color: #333333;
    border-bottom: 1px solid #f0f0f0;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.wdm-dropdown-item {
    margin: 0;
    padding: 0;
}

.wdm-dropdown-item a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    font-size: 13px;
    color: #333333;
    text-decoration: none !important;
    transition: background 0.2s ease, color 0.2s ease;
}

.wdm-dropdown-item a:hover {
    background: #f4f8fb;
    color: #018fe7;
}

.wdm-dropdown-item svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.wdm-dropdown-item .icon-map-pin {
    width: 18px;
    height: 18px;
    fill: #e74c3c;
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   5. Responsive Mobile
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
    .wdm-chat-wp.wdm-chat-right {
        right: 12px;
    }
    .wdm-chat-wp.wdm-chat-left {
        left: 12px;
    }
    .wdm-chat-btn {
        width: 40px;
        height: 40px;
    }
    .wdm-chat-btn svg {
        width: 24px;
        height: 24px;
    }
    .wdm-chat-pulse {
        width: 50px;
        height: 50px;
        top: -5px;
        left: -5px;
    }
    .wdm-chat-backtotop {
        width: 36px;
        height: 36px;
    }
    .wdm-dropdown {
        width: 240px;
    }
}
.header-bottom-nav > li > a {
    line-height: 18px;
}
.icon-angle-down:before {
        speak: none !important;
    display: inline-block;
    font-display: block;
    font-family: fl-icons !important;
    font-style: normal !important;
    font-variant: normal !important;
    font-weight: 400 !important;
    line-height: 1.2;
    margin: 0;
    padding: 0;
    position: relative;
    text-transform: none !important;
}
input#woocommerce-product-search-field-0 {
    border-radius: 5px 0 0 5px;
    height: 34px;
    border: none;
}
button.ux-search-submit.submit-button.secondary.button.icon.mb-0 {
    border-radius: 0 5px 5px 0;
}

/* ==========================================================================
   BLOCK: BANNER HERO SLIDER (KHỐI BANNER ĐẦU TRANG)
   ========================================================================== */
section.section-hero {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
}

.row1-hero {
    margin-bottom: 0 !important;
}

.col12-hero > .col-inner {
    padding: 0 !important;
    margin: 0 !important;
}

/* Slider bao ngoài bo tròn mềm mại và đổ bóng */
.slider-hero,
.slider-hero .flickity-viewport {
    border-radius: 14px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
}

.slider-hero .img-inner {
    border-radius: 14px !important;
    overflow: hidden !important;
    box-shadow: none !important;
}

.slider-hero img {
    border-radius: 14px !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    object-fit: cover !important;
}

/* Nút bấm chuyển slide Trái / Phải kế thừa từ bộ Flickity chung */

/* Dấu chấm chuyển slide (Pagination Dots) dạng viên thuốc hiện đại */
.slider-hero .flickity-page-dots {
    bottom: 12px !important;
}

.slider-hero .flickity-page-dots .dot {
    background: rgba(255, 255, 255, 0.65) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    width: 8px !important;
    height: 8px !important;
    margin: 0 4px !important;
    border-radius: 50% !important;
    opacity: 1 !important;
    transition: all 0.3s ease !important;
}

.slider-hero .flickity-page-dots .dot.is-selected {
    background: #fdcf0d !important;
    width: 22px !important;
    border-radius: 4px !important;
    border-color: #fdcf0d !important;
}

/* ==========================================================================
   BLOCK: DANH MỤC SẢN PHẨM, SẢN PHẨM BÁN CHẠY & CÁC KHỐI SẢN PHẨM 4 CỘT (sp4)
   ========================================================================== */
/* 1. Khung Card bao ngoài toàn bộ khối */
#col-255542885 > .col-inner,
#col-887371294 > .col-inner,
.col12-sp4 > .col-inner,
.row-sp4 > .col > .col-inner,
.col:has(> .col-inner > .tit-category) > .col-inner,
.col:has(> .col-inner > .spbc) > .col-inner,
.col:has(> .col-inner > .sp4) > .col-inner {
    background: #ffffff !important;
    border: 1px solid #e8e8e8 !important;
    border-radius: 14px !important;
    padding: 16px 18px 16px !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04) !important;
    margin-bottom: 25px !important;
}

/* 2. Tiêu đề khối 'SẢN PHẨM BÁN CHẠY NHẤT', 'DANH MỤC' & 'CÁC KHỐI SP 4 CỘT' */
.section-title-container.tit-category,
.section-title-container.spbc,
.section-title-container.sp4 {
    margin-bottom: 16px !important;
    padding: 0 !important;
}

/* 3. Lưới sản phẩm 4 cột (sp4), sản phẩm bán chạy và các lưới sản phẩm khác */
.row.product-sp4,
.row.product-spbanchay {
    margin-left: -7px !important;
    margin-right: -7px !important;
    margin-bottom: -14px !important;
}

.row.product-sp4 > .col,
.row.product-spbanchay > .col,
.product-small.col {
    padding-left: 7px !important;
    padding-right: 7px !important;
    padding-bottom: 14px !important;
    margin-bottom: 0 !important;
}

@media (max-width: 849px) {
    .row.product-sp4,
    .row.product-spbanchay {
        margin-left: -5px !important;
        margin-right: -5px !important;
        margin-bottom: -12px !important;
    }

    .row.product-sp4 > .col,
    .row.product-spbanchay > .col,
    .product-small.col {
        padding-left: 5px !important;
        padding-right: 5px !important;
        padding-bottom: 12px !important;
        margin-bottom: 0 !important;
    }
}

h2.section-title.section-title-normal {
    margin-top: 0;
    margin-bottom: 0;
    position: relative;
    border-bottom: 1px solid #e8e8e8;
    display: flex;
    align-items: flex-end;
}

.section-title-normal span.section-title-main {
    background: #fdcf0d;
    color: #111111 !important;
    font-size: 14.5px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px;
    padding: 8px 22px 6px !important;
    border-radius: 6px 0 0 0 !important;
    position: relative;
    margin-bottom: -1px;
    border: none !important;
    display: inline-block;
}

span.section-title-main:after {
    content: "";
    height: 15px;
    bottom: 0;
    position: absolute;
    width: 42px;
    right: -42px;
    border-radius: 0px 0px 0px 26px;
    box-shadow: -15px 0px 0px 0px;
    pointer-events: none;
    color: #fdcf0d;
}

/* 3. Từng ô Danh mục sản phẩm (Category Cards) */
.product-category .col-inner {
    background: #ffffff !important;
}

.product-category .box-category {
    background: #ffffff !important;
    border: 1px solid #e3e3e3 !important;
    border-radius: 12px !important;
    padding: 16px 10px 14px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.24) !important;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.product-category .box-category:hover {
    transform: translateY(-4px) !important;
    border-color: #fdcf0d !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.09) !important;
}

/* Hình ảnh danh mục */
.product-category .box-image {
    width: 100%;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 5px;
}

.product-category .box-image img {
    max-height: 100% !important;
    width: auto !important;
    max-width: 100% !important;
    object-fit: contain !important;
    transition: transform 0.3s ease !important;
}

.product-category .box-category:hover .box-image img {
    transform: scale(1.06) !important;
}

/* Tên danh mục bên dưới */
.product-category .box-text {
    padding: 10px 0 0 0 !important;
    width: 100%;
}

.product-category .box-text .box-text-inner {
    padding: 0 !important;
}

.product-category h5.header-title {
    font-size: 12.5px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    margin: 0 !important;
    line-height: 1.3 !important;
    letter-spacing: 0.2px;
}
a.devvn_buy_now_style span {
    font-weight: 400 !important;
}
/* ==========================================================================
   TÙY BIẾN NÚT ĐIỀU HƯỚNG SLIDER (FLICKITY BUTTONS) - PC & MOBILE
   ========================================================================== */

/* 1. Triệt tiêu hoàn toàn border, radius và background mà Flatsome gán lên SVG / .arrow */
.slider-nav-circle .flickity-prev-next-button svg,
.slider-nav-circle .flickity-prev-next-button .arrow,
.flickity-prev-next-button svg,
.flickity-prev-next-button .arrow {
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    height: auto !important;
}

/* 2. Định dạng khung nút tròn chuẩn xác duy nhất */
.flickity-prev-next-button,
.slider .flickity-prev-next-button,
.flickity-enabled .flickity-prev-next-button,
.slider-nav-circle .flickity-prev-next-button,
.tit-category ~ .row .flickity-prev-next-button,
.spbc ~ .row .flickity-prev-next-button,
.product-spbanchay .flickity-prev-next-button,
.product-category .flickity-prev-next-button,
.slider-wrapper .flickity-prev-next-button {
    position: absolute !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.16) !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    border-radius: 50% !important;
    opacity: 0.95 !important;
    cursor: pointer !important;
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    z-index: 25 !important;
    transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    outline: none !important;
    overflow: visible !important;
}

.flickity-prev-next-button:hover,
.slider .flickity-prev-next-button:hover,
.flickity-enabled .flickity-prev-next-button:hover,
.slider-nav-circle .flickity-prev-next-button:hover,
.tit-category ~ .row .flickity-prev-next-button:hover,
.spbc ~ .row .flickity-prev-next-button:hover,
.product-spbanchay .flickity-prev-next-button:hover,
.product-category .flickity-prev-next-button:hover,
.slider-wrapper .flickity-prev-next-button:hover {
    background: #fdcf0d !important;
    background-color: #fdcf0d !important;
    border-color: #fdcf0d !important;
    opacity: 1 !important;
    transform: translateY(-50%) scale(1.12) !important;
    box-shadow: 0 4px 16px rgba(253, 207, 13, 0.45) !important;
}

.flickity-prev-next-button.previous {
    left: 8px !important;
    right: auto !important;
}

.flickity-prev-next-button.next {
    right: 8px !important;
    left: auto !important;
}

/* 3. Icon mũi tên SVG luôn căn chính xác 100% giữa tâm hình tròn */
.flickity-prev-next-button svg,
.flickity-button svg,
.flickity-button-icon {
    width: 14px !important;
    height: 14px !important;
    max-width: 14px !important;
    max-height: 14px !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    fill: #222222 !important;
    color: #222222 !important;
    transition: fill 0.2s ease !important;
}

.flickity-prev-next-button .arrow,
.flickity-button-icon .arrow {
    fill: #222222 !important;
}

.flickity-prev-next-button:hover svg,
.flickity-button:hover svg,
.flickity-prev-next-button:hover .flickity-button-icon,
.flickity-prev-next-button:hover .arrow {
    fill: #111111 !important;
    color: #111111 !important;
}

.flickity-prev-next-button:disabled {
    opacity: 0 !important;
    cursor: auto !important;
    pointer-events: none !important;
}

/* 4. Tối ưu hóa giao diện Mobile */
@media (max-width: 849px) {
    .flickity-prev-next-button,
    .slider .flickity-prev-next-button,
    .flickity-enabled .flickity-prev-next-button,
    .slider-nav-circle .flickity-prev-next-button,
    .tit-category ~ .row .flickity-prev-next-button,
    .spbc ~ .row .flickity-prev-next-button,
    .product-spbanchay .flickity-prev-next-button,
    .product-category .flickity-prev-next-button,
    .slider-wrapper .flickity-prev-next-button {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        min-height: 32px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        opacity: 0.95 !important;
    }

    .flickity-prev-next-button.previous {
        left: 4px !important;
        right: auto !important;
    }

    .flickity-prev-next-button.next {
        right: 4px !important;
        left: auto !important;
    }

    .flickity-prev-next-button svg,
    .flickity-button svg,
    .flickity-button-icon {
        width: 12px !important;
        height: 12px !important;
        max-width: 12px !important;
        max-height: 12px !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
    }
}

/* 4. Thẻ Sản phẩm (Product Card - SẢN PHẨM BÁN CHẠY & DANH MỤC) */
/* 4. Thẻ Sản phẩm (Product Card - SẢN PHẨM BÁN CHẠY & DANH MỤC & SP4) */
.product-small > .col-inner {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
}

.product-small.box,
.product-sp4 .product-small.box,
.product-spbanchay .product-small.box {
    background: #ffffff !important;
    border: 1px solid #e3e3e3 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    position: relative !important;
    display: flex;
    flex-direction: column;
}

.product-small.box:hover {
    transform: translateY(-4px) !important;
    border-color: #fdcf0d !important;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.09) !important;
}

/* Ảnh sản phẩm hiển thị chuẩn tỉ lệ 4:3 toàn website (Trang chủ, Lưu trữ, Danh mục, Cửa hàng, Tìm kiếm) */
.product-small .box-image {
    width: 100% !important;
    position: relative !important;
    overflow: hidden !important;
    border-radius: 11px 11px 0 0 !important;
    aspect-ratio: 4 / 3 !important;
    padding: 0 !important;
}

.product-small .box-image > div,
.product-small .box-image a {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    position: relative !important;
    padding: 0 !important;
    margin: 0 !important;
}

.product-small .box-image img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 4 / 3 !important;
    object-fit: cover !important;
    transition: transform 0.35s ease !important;
}

.product-small.box:hover .box-image img {
    transform: scale(1.05) !important;
}

/* Badge Giảm giá (Sale Tag đỏ góc trên bên trái theo ảnh mẫu) */
.product-small .badge-container,
.badge-container {
    top: 0 !important;
    left: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 5 !important;
}

.product-small .badge,
.badge-container .badge {
    border-radius: 12px 0 12px 0 !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    height: auto !important;
    width: auto !important;
    line-height: normal !important;
}

.product-small .badge-inner.on-sale,
.badge-inner.secondary.on-sale {
    background: linear-gradient(-50deg, #ff7777, #d30000, #ff7777, #d30000) !important;
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    border-radius: 12px 0 12px 0 !important;
    padding: 4px 10px !important;
    min-width: 44px !important;
    height: 44px !important;
    line-height: 1.2 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 8px rgba(231, 0, 0, 0.3) !important;
    letter-spacing: 0.3px !important;
}

.product-small .badge-inner.on-sale span.onsale,
.badge-inner.secondary.on-sale span.onsale {
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: normal !important;
    display: inline-block !important;
    color: #ffffff !important;
}

/* Thông tin sản phẩm */
.product-small .box-text.box-text-products {
    padding: 10px 12px 14px !important;
    text-align: left !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    flex-grow: 1 !important;
}

.product-small .title-wrapper {
    margin-bottom: 4px !important;
}

/* Mã SKU sản phẩm */
.wdm-product-sku {
    font-size: 11.5px !important;
    font-weight: 600 !important;
    margin-bottom: 3px !important;
    line-height: 1.2 !important;
    display: block !important;
    letter-spacing: 0.2px;
}

/* Tiêu đề sản phẩm cố định 2 dòng chuẩn chỉ không bị so le */
.product-small .product-title {
    margin: 0 0 2px 0 !important;
    padding: 0 !important;
    height: 36px !important;
    min-height: 36px !important;
}

.product-small .product-title a {
    color: #1f1f1f !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    line-height: 18px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    height: 36px !important;
    min-height: 36px !important;
    transition: color 0.2s ease !important;
}

.product-small .product-title a:hover {
    color: #d60000 !important;
}

/* Giá sản phẩm */
.product-small .price-wrapper {
    height: auto !important;
    min-height: unset !important;
    margin-top: 4px !important;
    padding: 0 !important;
}

.product-small .price {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1px !important;
    line-height: 1.3 !important;
    margin: 0 !important;
}

.product-small .price del,
.product-small .price del .amount {
    font-size: 12px !important;
    color: #ff8e8e !important;
    font-weight: 500 !important;
    text-decoration: line-through !important;
}

.product-small .price ins,
.product-small .price ins .amount,
.product-small .price > .amount {
    font-size: 15.5px !important;
    color: #d60000 !important;
    font-weight: 800 !important;
    text-decoration: none !important;
}

.product-small .price .woocommerce-Price-currencySymbol {
    font-size: 13.5px !important;
    font-weight: 700 !important;
}


/* ==========================================================================
   HIỆU ỨNG VỆT SÁNG VÀNG CHẠY TRÊN CHỮ (DÙNG CHUNG CHO NHIỀU CLASS)
   ========================================================================== */
.wdm-text-shimmer,
.section-title a,
h5.uppercase.header-title {
    background: linear-gradient(to right, #000000 20%, #fecf02 40%, #cca603 60%, #000000 80%);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: huyle 3.5s linear infinite;
    will-change: background-position;
}

/* Định vị riêng cho nút 'XEM THÊM >' trên Section Title */
.section-title a {
    position: absolute;
    top: 0;
    right: 0;
    display: inline-flex !important;
    align-items: center !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
}

.section-title a i.icon-angle-right {
    margin-left: 4px;
    font-size: 11px;
    display: inline-block;
    transition: transform 0.2s ease;
}

.section-title a:hover i.icon-angle-right {
    transform: translateX(3px);
}

@keyframes huyle {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ==========================================================================
   HIỆU ỨNG ÁNH SÁNG LƯỚT QUA ẢNH KHI HOVER (IMAGE SHINE EFFECT)
   ========================================================================== */
.box-image,
.img .img-inner {
    position: relative;
    overflow: hidden;
}

.box-image::before,
.img .img-inner::before {
    position: absolute;
    top: 0;
    left: -75%;
    z-index: 2;
    display: block;
    content: '';
    width: 50%;
    height: 100%;
    background: -webkit-linear-gradient(left, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.4) 100%);
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.4) 100%);
    -webkit-transform: skewX(-25deg);
    transform: skewX(-25deg);
    pointer-events: none;
}

.box-image:hover::before,
.has-hover:hover .box-image::before,
.box:hover .box-image::before,
.product-small:hover .box-image::before,
.post-item:hover .box-image::before,
.img:hover .img-inner::before {
    -webkit-animation: shine 0.75s ease-in-out;
    animation: shine 0.75s ease-in-out;
}

@-webkit-keyframes shine {
    100% {
        left: 125%;
    }
}

@keyframes shine {
    100% {
        left: 125%;
    }
}

/* Hiệu ứng đường kẻ trượt dưới chân Card */
.product-small.box:after,
.mh-col-shadow > .col-inner:after,
.post-item > .col-inner:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: var(--primary-color, #fdcf0d);
    transform-origin: right;
    transition: transform 0.5s ease-in-out;
    transform: scaleX(0);
}

.product-small.box:hover:after,
.mh-col-shadow:hover > .col-inner:after,
.post-item:hover > .col-inner:after {
    transform-origin: left;
    transform: scaleX(1);
}

/* ==========================================================================
   BADGE GIỎ HÀNG HEADER (NỀN ĐỎ, CHỮ TRẮNG, CẬP NHẬT CHUẨN SỐ LƯỢNG)
   ========================================================================== */
.header-cart-link,
.cart-item.has-icon,
.header-button .header-cart-link {
    position: relative !important;
}

.header-cart-link i,
.cart-item i,
.cart-icon,
.image-icon.header-cart-icon {
    position: relative !important;
    overflow: visible !important;
    display: inline-block !important;
}

/* Hiển thị số lượng sản phẩm trên icon giỏ hàng */
[data-icon-label]:after,
.header-cart-link [data-icon-label]:after,
.cart-item [data-icon-label]:after,
.header-nav [data-icon-label]:after,
.image-icon[data-icon-label]:after {
    content: attr(data-icon-label) !important;
    position: absolute !important;
    top: -8px !important;
    right: -10px !important;
    background: #e70000 !important;
    background-color: #e70000 !important;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    font-family: Helvetica, Roboto, Arial, sans-serif !important;
    min-width: 18px !important;
    height: 18px !important;
    line-height: 18px !important;
    text-align: center !important;
    border-radius: 50% !important;
    padding: 0 4px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 6px rgba(231, 0, 0, 0.45) !important;
    z-index: 10 !important;
    pointer-events: none !important;
    letter-spacing: 0 !important;
}

/* ==========================================================================
   TRANG CHI TIẾT SẢN PHẨM (SINGLE PRODUCT PAGE THEO ẢNH MẪU)
   ========================================================================== */

/* 1. Breadcrumbs trên trang sản phẩm */
.single-product .breadcrumbs {
    font-size: 13px !important;
    color: #666666 !important;
    margin-bottom: 12px !important;
    padding-left: 0 !important;
}

.single-product .breadcrumbs a {
    color: #444444 !important;
    font-weight: 500 !important;
}

.single-product .breadcrumbs a:hover {
    color: rgb(255, 0, 0) !important;
}

/* 2. Tiêu đề sản phẩm (Ảnh 1: Helvetica 700, 17px, line-height 22px, rgb(10, 10, 10)) */
.single-product .product-title,
.product-info .product-title,
.product-info h1.product-title {
    font-family: Helvetica, Roboto, arial, sans-serif !important;
    font-style: normal !important;
    font-weight: 700 !important;
    font-size: 17px !important;
    line-height: 22px !important;
    color: rgb(10, 10, 10) !important;
    margin-bottom: 6px !important;
    text-transform: none !important;
}

/* 3. Mã SKU sản phẩm (Ảnh 2: Helvetica 400, 16px, line-height 26px, rgb(0, 0, 255)) */
.wdm-single-product-sku {
    font-family: Helvetica, Roboto, arial, sans-serif !important;
    font-style: normal !important;
    font-weight: 400 !important;
    font-size: 16px !important;
    line-height: 26px !important;
    color: rgb(0, 0, 255) !important;
    margin-bottom: 8px !important;
}

.wdm-single-product-sku span {
    font-family: Helvetica, Roboto, arial, sans-serif !important;
    font-weight: 400 !important;
    color: rgb(0, 0, 255) !important;
}

/* 4. Giá sản phẩm (Ảnh 3: Regular 15px/15px 700 rgb(255,0,0) & Sale 22px/22px 700 rgb(255,0,0)) */
.product-info .price-wrapper,
.product-info .price {
    display: flex !important;
    align-items: baseline !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    margin-bottom: 12px !important;
}

.product-info .price del {
    font-family: Helvetica, Roboto, arial, sans-serif !important;
    font-style: normal !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    line-height: 15px !important;
    color: rgb(255, 0, 0) !important;
    opacity: 0.9 !important;
    text-decoration: line-through !important;
}

.product-info .price del .amount {
    font-family: Helvetica, Roboto, arial, sans-serif !important;
    color: rgb(255, 0, 0) !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    line-height: 15px !important;
}

.product-info .price ins {
    font-family: Helvetica, Roboto, arial, sans-serif !important;
    font-style: normal !important;
    font-weight: 700 !important;
    font-size: 22px !important;
    line-height: 22px !important;
    color: rgb(255, 0, 0) !important;
    text-decoration: none !important;
}

.product-info .price ins .amount,
.product-info .price > .amount {
    font-family: Helvetica, Roboto, arial, sans-serif !important;
    color: rgb(255, 0, 0) !important;
    font-size: 22px !important;
    line-height: 22px !important;
    font-weight: 700 !important;
}

/* 5. Mô tả ngắn (Ảnh 4: Helvetica 400, 14px, line-height 22px, rgb(10, 10, 10)) */
.product-info .woocommerce-product-details__short-description,
.product-info .product-short-description {
    font-family: Helvetica, Roboto, arial, sans-serif !important;
    font-style: normal !important;
    font-weight: 400 !important;
    font-size: 14px !important;
    line-height: 22px !important;
    color: rgb(10, 10, 10) !important;
    margin-bottom: 14px !important;
}

.product-info .woocommerce-product-details__short-description p,
.product-info .product-short-description p {
    font-family: Helvetica, Roboto, arial, sans-serif !important;
    font-size: 14px !important;
    line-height: 22px !important;
    color: rgb(10, 10, 10) !important;
    margin-bottom: 6px !important;
}

.product-info .woocommerce-product-details__short-description ul,
.product-info .product-short-description ul {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 0 0 10px 0 !important;
}

.product-info .woocommerce-product-details__short-description li,
.product-info .product-short-description li {
    font-family: Helvetica, Roboto, arial, sans-serif !important;
    font-size: 14px !important;
    line-height: 22px !important;
    color: rgb(10, 10, 10) !important;
    position: relative !important;
    padding-left: 0 !important;
    margin-bottom: 4px !important;
}

/* 6. Khung Khuyến Mãi & Showroom (Ảnh 5: Nằm ngay dưới product-short-description, trên khối cart) */
.wdm-product-promo-box {
    border: 1px solid #111111 !important;
    border-radius: 2px !important;
    padding: 12px 16px !important;
    margin: 12px 0 16px 0 !important;
    background: #ffffff !important;
    font-size: 13.5px !important;
    line-height: 1.6 !important;
    color: #1f1f1f !important;
}

.wdm-product-promo-box p {
    margin-bottom: 5px !important;
    font-size: 13.5px !important;
    line-height: 1.55 !important;
}

.wdm-product-promo-box p:last-child {
    margin-bottom: 0 !important;
}

.wdm-product-promo-box h4 {
    margin: 8px 0 5px 0 !important;
    font-size: 17px !important;
    font-weight: 800 !important;
    color: rgb(255, 0, 0) !important;
    text-align: center !important;
}

.wdm-product-promo-box a {
    color: rgb(0, 0, 255) !important;
    text-decoration: underline !important;
}

.wdm-product-promo-box a:hover {
    color: rgb(255, 0, 0) !important;
}

/* 7. Khối Giỏ hàng & Nút Thêm vào giỏ hàng (Khối cart nằm dưới promo box) */
.product-info form.cart {
    display: flex !important;
    align-items: stretch !important;
    gap: 8px !important;
    margin-top: 14px !important;
    margin-bottom: 12px !important;
}

.product-info form.cart .quantity {
    margin: 0 !important;
}

.product-info form.cart .quantity .button,
.product-info form.cart .quantity input.qty {
    height: 42px !important;
    line-height: 40px !important;
    border: 1px solid #d5d5d5 !important;
    font-size: 15px !important;
    font-weight: 600 !important;
}

.product-info form.cart .single_add_to_cart_button {
    background: #d62828 !important;
    background-color: #d62828 !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    border-radius: 2px !important;
    height: 42px !important;
    line-height: 42px !important;
    padding: 0 25px !important;
    flex: 1 !important;
    border: none !important;
    margin-bottom: 0 !important;
    transition: background 0.3s ease !important;
}

.product-info form.cart .single_add_to_cart_button:hover {
    background: #b71c1c !important;
    background-color: #b71c1c !important;
}

/* 8. Tùy biến Nút Mua ngay (Plugin DevVN Quick Buy) - Full Width 100% */
.single-product a.devvn_buy_now,
.product-info a.devvn_buy_now,
.product-summary a.devvn_buy_now,
a.devvn_buy_now.devvn_buy_now_style,
a.devvn_buy_now,
.devvn_buy_now {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    background: #ff7a00 !important;
    background-color: #ff7a00 !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 10px 15px !important;
    margin: 10px 0 16px 0 !important;
    color: #ffffff !important;
    text-align: center !important;
    text-decoration: none !important;
    cursor: pointer !important;
    box-shadow: 0 4px 12px rgba(255, 122, 0, 0.25) !important;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    float: none !important;
    clear: both !important;
}

.single-product a.devvn_buy_now:hover,
.product-info a.devvn_buy_now:hover,
.product-summary a.devvn_buy_now:hover,
a.devvn_buy_now:hover,
.devvn_buy_now:hover {
    background: #e66e00 !important;
    background-color: #e66e00 !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 18px rgba(255, 122, 0, 0.4) !important;
    text-decoration: none !important;
}

.single-product a.devvn_buy_now strong,
.product-info a.devvn_buy_now strong,
.devvn_buy_now strong,
.devvn_buy_now_style strong {
    display: block !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    line-height: 1.3 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.single-product a.devvn_buy_now span,
.product-info a.devvn_buy_now span,
.devvn_buy_now span,
.devvn_buy_now_style span {
    display: block !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #ffffff !important;
    opacity: 0.95 !important;
    line-height: 1.3 !important;
    margin-top: 3px !important;
    padding: 0 !important;
}

/* ==========================================================================
   9. KHÔI PHỤC VÀ BẢO VỆ ICON ĐÁNH GIÁ SAO (STAR RATING) WOOCOMMERCE / FLATSOME
   ========================================================================== */
.star-rating,
.star-rating:before,
.star-rating span,
.star-rating span:before,
.stars a,
.stars a:after,
.stars a:before,
p.stars a,
p.stars a:after,
p.stars a:before,
.woocommerce p.stars a,
.woocommerce p.stars a:after,
.woocommerce-product-rating .star-rating,
.comment-form-rating .stars a,
.comment-form-rating .stars a:after {
    font-family: "fl-icons" !important;
}

.stars a {
    color: transparent !important;
    font-size: 0 !important;
}

.stars a:after {
    color: #f7a800 !important;
    font-size: 16px !important;
}

.stars a:hover:after,
.stars a.active:after {
    color: #f7a800 !important;
}

/* ==========================================================================
   10. SHORTCODE [wdm-table-vip]
   ========================================================================== */
.wdm-table-vip-wrap {
    width: 100%;
    margin: 20px 0;
    overflow-x: auto;
}

.wdm-table-vip {
    width: 100%;
    border-collapse: collapse;
    border: 2px solid #222222;
    background-color: #ffffff;
    font-size: 15px;
    line-height: 1.5;
}

.wdm-table-vip tr {
    border-bottom: 1px solid #333333;
}

.wdm-table-vip tr:last-child {
    border-bottom: none;
}

.wdm-table-vip td {
    padding: 10px 16px;
    vertical-align: middle;
}

.wdm-table-vip .wdm-tv-left {
    width: 30%;
    border-right: 2px solid #222222;
    font-weight: 700;
    color: #111111;
    white-space: nowrap;
}

.wdm-table-vip .wdm-tv-right {
    width: 70%;
    color: #222222;
    font-weight: 500;
}

.wdm-tv-check-icon,
.wdm-tv-star-icon {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    margin-right: 8px;
}

.wdm-tv-check-icon svg,
.wdm-tv-star-icon svg {
    display: block;
}

.wdm-tv-label-text,
.wdm-tv-content-text {
    display: inline-block;
    vertical-align: middle;
}

.wdm-tv-phone-link {
    color: #0000ff !important;
    font-weight: 800 !important;
    text-decoration: none;
    transition: color 0.2s;
}

.wdm-tv-phone-link:hover {
    color: #d00000 !important;
    text-decoration: underline;
}

/* ==========================================================================
   11. SHORTCODE [wdm-slide-vip] (4 Cột Slider Flickity Khách Hàng)
   ========================================================================== */
.wdm-slide-vip-row {
    margin-top: 15px !important;
    margin-bottom: 25px !important;
}

.wdm-slide-col-item {
    margin-bottom: 15px;
}

.wdm-slide-col-item .slider-wrapper {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    background: #ffffff;
}

.wdm-slide-col-item .slider-wrapper:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.15);
}

.wdm-slide-col-item .slider,
.wdm-slide-col-item .flickity-viewport {
    border-radius: 8px !important;
    overflow: hidden !important;
}

.wdm-slide-col-item .img-inner {
    border-radius: 8px !important;
    overflow: hidden !important;
    background-color: #f7f7f7 !important;
}

.wdm-slide-col-item .img-inner img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    display: block;
}

/* Nút bấm chuyển slide ẩn hiện khi hover */
.wdm-slide-col-item .flickity-prev-next-button {
    opacity: 0 !important;
    transition: opacity 0.25s ease, transform 0.25s ease !important;
}

.wdm-slide-col-item .slider-wrapper:hover .flickity-prev-next-button {
    opacity: 0.95 !important;
}

.wdm-slide-col-item .flickity-page-dots {
    bottom: 8px !important;
    z-index: 10;
}

.wdm-slide-col-item .flickity-page-dots .dot {
    background: rgba(255, 255, 255, 0.7) !important;
    width: 6px !important;
    height: 6px !important;
    margin: 0 3px !important;
    opacity: 1 !important;
    border: 1px solid rgba(0, 0, 0, 0.2) !important;
}

.wdm-slide-col-item .flickity-page-dots .dot.is-selected {
    background: #fdcf0d !important;
    width: 16px !important;
    border-radius: 3px !important;
    border-color: #fdcf0d !important;
}

/* ==========================================================================
   12. SHORTCODE [wdm-location]
   ========================================================================== */
.wdm-location-wrap {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin: 20px 0;
    width: 100%;
}

.wdm-location-card {
    background-color: #595959;
    border-radius: 8px;
    padding: 24px 26px;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.25s, box-shadow 0.25s;
}

.wdm-location-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.wdm-lc-name {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fdb913;
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.wdm-lc-pin svg {
    display: block;
}

.wdm-lc-address {
    font-size: 15px;
    line-height: 1.6;
    color: #ffffff;
    margin-bottom: 16px;
}

.wdm-lc-note {
    font-size: 14px;
    line-height: 1.5;
    color: #dedede;
    margin-bottom: 20px;
}

.wdm-lc-action {
    margin-top: auto;
    padding-top: 6px;
}

.wdm-lc-map {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #fdb913 !important;
    text-decoration: none !important;
    font-size: 15px;
    font-weight: 700;
    transition: opacity 0.2s;
}

.wdm-lc-map:hover {
    opacity: 0.85;
    text-decoration: underline !important;
}

.wdm-arrow-red {
    color: #e51a1a;
    font-size: 13px;
    margin-right: 2px;
}

.wdm-arrow-yellow {
    color: #fdb913;
    font-size: 13px;
    margin-right: 2px;
}

.wdm-arrow-green {
    color: #00aa00;
    font-size: 13px;
    margin-right: 6px;
}

.wdm-map-text {
    color: #fdb913;
}

/* ==========================================================================
   13. SHORTCODE [wdm-location-image] (Khung trắng có ảnh Showroom)
   ========================================================================== */
.wdm-location-image-wrap {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin: 25px 0;
    width: 100%;
}

.wdm-lci-card {
    background: #ffffff;
    border: 1px solid #e2e4e8;
    border-radius: 10px;
    padding: 22px 24px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.25s, transform 0.25s;
}

.wdm-lci-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.wdm-lci-header {
    margin-bottom: 15px;
}

.wdm-lci-badge {
    background: #fdcf0d;
    color: #111111;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 14px 6px 10px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 1.2;
}

.wdm-lci-pin {
    display: inline-flex;
    align-items: center;
}

.wdm-lci-pin svg {
    display: block;
}

.wdm-lci-list {
    list-style: disc inside !important;
    margin: 0 0 16px 0 !important;
    padding: 0 !important;
    color: #333333;
    font-size: 14.5px;
    line-height: 1.7;
}

.wdm-lci-list li {
    margin-bottom: 6px !important;
}

.wdm-lci-item-address {
    font-weight: 500;
    color: #222222;
}

.wdm-lci-item-note {
    color: #555555;
    font-style: normal;
}

.wdm-lci-item-phone {
    color: #333333;
}

.wdm-lci-item-map {
    margin-top: 8px !important;
}

.wdm-lci-map-link {
    color: #e51a1a !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: opacity 0.2s;
}

.wdm-lci-map-link:hover {
    opacity: 0.85;
    text-decoration: underline !important;
}

.wdm-lci-image-box {
    width: 100%;
    margin-top: 14px;
    border-radius: 6px;
    overflow: hidden;
    background: #f5f5f5;
    border: 1px solid #eaeaea;
}

.wdm-lci-image-box img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* ==========================================================================
   14. SHORTCODE [wdm-delivery-log] (Nhật Ký Giao Hàng - Layout Mosaic & Video)
   ========================================================================== */
.wdm-delivery-logs-wrapper {
    display: flex;
    flex-direction: column;
    gap: 36px;
    margin: 25px 0;
    width: 100%;
}

.wdm-dl-group {
    margin-bottom: 25px;
}

.wdm-dl-title {
    color: #0000ff !important;
    font-size: 15.5px !important;
    font-weight: 800 !important;
    line-height: 1.4 !important;
    margin: 0 0 14px 0 !important;
    letter-spacing: 0.2px;
}

.wdm-dl-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 175px;
    gap: 10px;
}

.wdm-dl-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #f1f5f9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.wdm-dl-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.wdm-dl-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none !important;
}

.wdm-dl-item img,
.wdm-dl-item video,
.wdm-dl-item iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: none;
}

.wdm-dl-item img {
    transition: transform 0.3s ease;
}

.wdm-dl-item:hover img {
    transform: scale(1.03);
}

/* Bento / Mosaic Layout cho 4 mục đầu tiên */
.wdm-dl-grid.has-mosaic .wdm-dl-item-1 {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
}

.wdm-dl-grid.has-mosaic .wdm-dl-item-2 {
    grid-column: 3 / 5;
    grid-row: 1 / 2;
}

.wdm-dl-grid.has-mosaic .wdm-dl-item-3 {
    grid-column: 3 / 4;
    grid-row: 2 / 3;
}

.wdm-dl-grid.has-mosaic .wdm-dl-item-4 {
    grid-column: 4 / 5;
    grid-row: 2 / 3;
}

/* Các mục từ thứ 5 trở đi hiển thị đều 4 cột */
.wdm-dl-grid .wdm-dl-item:nth-child(n+5) {
    grid-column: span 1;
    grid-row: auto;
}

@media (max-width: 849px) {
    .wdm-dl-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 140px;
        gap: 8px;
    }
    .wdm-dl-grid.has-mosaic .wdm-dl-item-1 {
        grid-column: 1 / 3;
        grid-row: 1 / 3;
    }
    .wdm-dl-grid.has-mosaic .wdm-dl-item-2 {
        grid-column: 1 / 3;
        grid-row: auto;
    }
    .wdm-dl-grid.has-mosaic .wdm-dl-item-3 {
        grid-column: 1 / 2;
        grid-row: auto;
    }
    .wdm-dl-grid.has-mosaic .wdm-dl-item-4 {
        grid-column: 2 / 3;
        grid-row: auto;
    }
}

@media (max-width: 480px) {
    .wdm-dl-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 120px;
        gap: 6px;
    }
}

/* ==========================================================================
   15. SHORTCODE [wdm-shorts] (YouTube Shorts Cards & Lightbox Modal)
   ========================================================================== */
.wdm-shorts-grid {
    display: grid;
    grid-template-columns: repeat(var(--wdm-shorts-cols, 4), 1fr);
    gap: 15px;
    margin: 25px 0;
    width: 100%;
}

.wdm-short-card {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: #111111;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    user-select: none;
}

.wdm-short-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
}

.wdm-short-thumb-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.wdm-short-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.92);
    transition: transform 0.3s ease, filter 0.3s ease;
}

.wdm-short-card:hover .wdm-short-thumb {
    transform: scale(1.04);
    filter: brightness(1);
}

.wdm-short-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.05) 45%, rgba(0, 0, 0, 0.65) 100%);
    pointer-events: none;
}

.wdm-short-header {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: none;
}

.wdm-short-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #ffffff;
    flex-shrink: 0;
    background: #fdcf0d;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.wdm-short-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wdm-short-default-avatar {
    width: 100%;
    height: 100%;
    background: #fdcf0d url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='%23111' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 3c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm0 14.2c-2.5 0-4.71-1.28-6-3.22.03-1.99 4-3.08 6-3.08 1.99 0 5.97 1.09 6 3.08-1.29 1.94-3.5 3.22-6 3.22z'/%3E%3C/svg%3E") center center no-repeat;
    background-size: 70%;
    display: block;
}

.wdm-short-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.wdm-short-title {
    color: #ffffff !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

.wdm-short-channel {
    color: rgba(255, 255, 255, 0.88) !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    margin-top: 2px !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.wdm-short-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.45));
    pointer-events: none;
}

.wdm-short-card:hover .wdm-short-play-btn {
    transform: translate(-50%, -50%) scale(1.12);
}

.wdm-short-play-btn svg {
    display: block;
}

/* Lightbox Modal Player cho Shorts */
.wdm-shorts-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wdm-shorts-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(4px);
}

.wdm-shorts-modal-dialog {
    position: relative;
    z-index: 2;
    width: 92%;
    max-width: 400px;
    height: 85vh;
    max-height: 720px;
    background: #000000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}

.wdm-shorts-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: #ffffff;
    font-size: 26px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.wdm-shorts-modal-close:hover {
    background: rgba(220, 38, 38, 0.9);
}

.wdm-shorts-modal-content {
    width: 100%;
    height: 100%;
}

#wdm-shorts-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

@media (max-width: 849px) {
    .wdm-shorts-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
}

@media (max-width: 480px) {
    .wdm-shorts-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
}