


.xtm-wrap {
    --xr: var(--primary-color, #d2232a);
    --xb: #e0e0e0;
    --xg: #f9f9f9;
    --xtm-border-radius: 4px;
    --xtm-transition: all 0.3s ease;
    font-family: inherit;
}
.xtm-wrap * { 
    box-sizing: border-box; 
}
.xtm-wrap table { 
    border-spacing: 0; 
    border-collapse: collapse;
}


.xtm-wrap p,
.xtm-wrap h1,
.xtm-wrap h2,
.xtm-wrap h3,
.xtm-wrap ul,
.xtm-wrap ol {
    margin-top: 0;
}


.xtm-wrap .button {
    font-family: inherit;
    transition: var(--xtm-transition);
}


.xtm-wrap .xtm-section {
    /* padding: 30px 0; */
    /* border-bottom: 1px solid var(--xb); */
}
.xtm-wrap .xtm-section:first-child {
    padding-top: 15px;
}
.xtm-wrap .xtm-section:last-of-type { 
    border-bottom: none; 
}


.xtm-wrap .row {
    margin-left: -10px;
    margin-right: -10px;
}
.xtm-wrap .row .col {
    padding-left: 10px;
    padding-right: 10px;
}
.xtm-wrap .row-small {
    margin-left: -7px;
    margin-right: -7px;
}
.xtm-wrap .row-small .col {
    padding-left: 7px;
    padding-right: 7px;
}


.xtm-wrap .xtm-eyebrow {
    font-size: 150%;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--xr);
    border-bottom: 2px solid var(--xr);
    display: inline-block;
    padding-bottom: 6px;
    margin: 0 0 12px;
    line-height: 1.2;
    font-family: inherit;
    text-align: center;
    width: 100%;
}


.xtm-wrap .xtm-no-img {
    background: var(--xg);
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 0.9em;
    border: 1px dashed var(--xb);
    border-radius: var(--xtm-border-radius);
}
.xtm-wrap .xtm-product-h1 {
    font-size: 1.8em;
    font-weight: 800;
    text-transform: uppercase;
    margin: 0 0 10px;
    line-height: 1.3;
    color: inherit;
    font-family: inherit;
    text-align: center;
}
.xtm-wrap .xtm-price-text {
    font-size: 1.2em;
    font-weight: 700;
    color: var(--xr);
    margin: 0;
    line-height: 1.4;
    text-align: center;
}


.xtm-wrap .xtm-kq-table { 
    width: 100%; 
    border-collapse: collapse; 
    margin-bottom: 16px;
    border: 1px solid var(--xb);
    border-radius: var(--xtm-border-radius);
    overflow: hidden;
}
.xtm-wrap .xtm-kq-table tr { 
    border-bottom: 1px solid var(--xb); 
}
.xtm-wrap .xtm-kq-table tr:last-child { 
    border-bottom: none; 
}
.xtm-wrap .xtm-kq-table tr:nth-child(even) td { 
    background: var(--xg); 
}
.xtm-wrap .xtm-kq-k {
    padding: 8px 12px;
    font-weight: 700;
    font-size: 0.8em;
    letter-spacing: 0.5px;
    width: 50%;
    vertical-align: middle;
    color: #555;
}
.xtm-wrap .xtm-kq-v { 
    padding: 8px 12px; 
    vertical-align: middle;
    font-size: 0.95em;
    color: #333;
}


.xtm-wrap .xtm-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}
.xtm-wrap .xtm-cta .button {
    margin: 0;
    flex: 1 1 auto;
    min-width: 160px;
    text-align: center;
    transition: var(--xtm-transition);
}


.xtm-wrap .xtm-gal-section { 
    padding-bottom: 30px; 
}
.xtm-wrap .xtm-caption {
    font-size: 0.88em;
    opacity: 0.7;
    margin: 8px 0 0;
    line-height: 1.5;
    font-style: italic;
    color: #666;
}


.xtm-wrap .xtm-slider {
    position: relative;
    overflow: hidden;
    line-height: 0;
    border-radius: var(--xtm-border-radius);
    margin-bottom: 10px;
}
.xtm-wrap .xtm-slides {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 5;
}
.xtm-wrap .xtm-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
    z-index: 1;
    line-height: 0;
}
.xtm-wrap .xtm-slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}
.xtm-wrap .xtm-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #fff;
}
.xtm-wrap .xtm-slide .xtm-caption {
    position: absolute;
    bottom: 0; 
    left: 0; 
    right: 0;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 10px 16px;
    margin: 0;
    line-height: 1.5;
    font-size: 0.85em;
    z-index: 3;
    font-style: normal;
}


.xtm-wrap .xtm-counter {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 10px 0 4px;
    line-height: 1;
}
.xtm-wrap .xtm-dot {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--xg);
    border: 2px solid var(--xb);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
    user-select: none;
}
.xtm-wrap .xtm-dot:hover {
    background: #fff;
    border-color: var(--xr);
    transform: scale(1.08);
}
.xtm-wrap .xtm-dot.active {
    background: var(--xr);
    border-color: var(--xr);
    color: #fff;
    transform: scale(1.12);
}


.xtm-wrap .xtm-thumbs {
    display: flex;
    justify-content: center;
    gap: 5px;
    overflow-x: auto;
    padding: 8px 0 0;
    scrollbar-width: thin;
    scrollbar-color: var(--xr) var(--xg);
    flex-wrap: nowrap;
}
.xtm-wrap .xtm-thumbs::-webkit-scrollbar {
    height: 5px;
}
.xtm-wrap .xtm-thumbs::-webkit-scrollbar-track {
    background: var(--xg);
}
.xtm-wrap .xtm-thumbs::-webkit-scrollbar-thumb {
    background: var(--xr);
    border-radius: 3px;
}
.xtm-wrap .xtm-thumb {
    width: 70px;
    height: 50px;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.6;
    transition: all 0.3s ease;
    border-radius: 3px;
}
.xtm-wrap .xtm-thumb.active,
.xtm-wrap .xtm-thumb:hover {
    opacity: 1;
    border-color: var(--xr);
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}


.xtm-wrap .xtm-pgallery {
    margin-bottom: 15px;
}
.xtm-wrap .xtm-pg-main {
    position: relative;
    overflow: hidden;
    line-height: 0;
    border-radius: var(--xtm-border-radius);
}
.xtm-wrap .xtm-pg-slide {
    display: none;
    position: relative;
    line-height: 0;
    aspect-ratio: 1 / 1;
}
.xtm-wrap .xtm-pg-slide.active {
    display: block;
    animation: xtmPgFade 0.35s ease;
}
@keyframes xtmPgFade {
    from { opacity: 0.25; }
    to   { opacity: 1; }
}
.xtm-wrap .xtm-pg-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
    background: #fff;
}
.xtm-wrap .xtm-pg-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.55);
    color: #fff;
    padding: 8px 12px;
    margin: 0;
    font-size: 0.85em;
    line-height: 1.5;
    z-index: 2;
}
.xtm-wrap .xtm-pg-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.85);
    color: #333;
    font-size: 22px;
    line-height: 30px;
    text-align: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.25s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    padding: 0;
}
.xtm-wrap .xtm-pg-main:hover .xtm-pg-arrow,
.xtm-wrap .xtm-pg-arrow:focus {
    opacity: 1;
}
.xtm-wrap .xtm-pg-prev { left: 10px; }
.xtm-wrap .xtm-pg-next { right: 10px; }
@media (hover: none) {
    .xtm-wrap .xtm-pg-arrow { opacity: 1; }
}
.xtm-wrap .xtm-pg-thumbs {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    justify-content: flex-start;
    overflow-x: auto;
    margin-top: 8px;
    padding-bottom: 4px;
    line-height: 0;
    scrollbar-width: thin;
    scrollbar-color: var(--xr) var(--xg);
    -webkit-overflow-scrolling: touch;
}
.xtm-wrap .xtm-pg-thumbs::-webkit-scrollbar {
    height: 5px;
}
.xtm-wrap .xtm-pg-thumbs::-webkit-scrollbar-track {
    background: var(--xg);
}
.xtm-wrap .xtm-pg-thumbs::-webkit-scrollbar-thumb {
    background: var(--xr);
    border-radius: 3px;
}
.xtm-wrap .xtm-pg-thumb {
    width: 72px;
    height: 72px;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
    cursor: pointer;
    border: 2px solid #e5e5e5;
    border-radius: 3px;
    opacity: 0.7;
    transition: all 0.25s ease;
}
.xtm-wrap .xtm-pg-thumb.active,
.xtm-wrap .xtm-pg-thumb:hover {
    opacity: 1;
    border-color: var(--xr);
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}
@media (max-width: 549px) {
    .xtm-wrap .xtm-pg-thumb { width: 58px; height: 58px; }
}


.xtm-wrap .xtm-spec-wrap {
    display: flex;
    border: 1px solid var(--xb);
    border-radius: var(--xtm-border-radius);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    background: #fff;
    margin-top: 5px;
}


.xtm-wrap .xtm-spec-nav {
    flex: 0 0 190px;
    display: flex;
    flex-direction: column;
    background: var(--xg);
    border-right: 1px solid var(--xb);
}
.xtm-wrap .xtm-spec-btn {
	margin:0;
	padding: 12px 14px;
	text-align: left;
	background: none;
	border: none;
	border-bottom: 1px solid var(--xb);
	cursor: pointer;
	font-family: inherit;
	font-size: 0.78em;
	font-weight: 700;
	letter-spacing: 0.8px;
	line-height: 1.4;
	color: #555;
	transition: all 0.3s ease;
	outline: none;
	position: relative;
	text-transform: capitalize;
}
.xtm-wrap .xtm-spec-btn:last-child { 
    border-bottom: none; 
}
.xtm-wrap .xtm-spec-btn:hover { 
    background: rgba(0,0,0,0.04); 
    color: var(--xr);
    padding-left: 18px;
}
.xtm-wrap .xtm-spec-btn.active {
    background: var(--xr);
    color: #fff;
    border-color: var(--xr);
    padding-left: 18px;
}
.xtm-wrap .xtm-spec-btn.active::before {
    content: '\25B6';
    position: absolute;
    left: 6px;
    font-size: 0.7em;
}


.xtm-wrap .xtm-spec-panels { 
    flex: 1; 
    min-width: 0; 
    background: #fff; 
}
.xtm-wrap .xtm-spec-panel { 
    display: none; 
}
.xtm-wrap .xtm-spec-panel.active { 
    display: block; 
}
.xtm-wrap .xtm-empty { 
    padding: 20px; 
    opacity: 0.6; 
    font-size: 0.95em;
    text-align: center;
    color: #999;
}


.xtm-wrap .xtm-spec-tbl { 
    width: 100%; 
    border-collapse: collapse; 
    font-size: 0.88em; 
}
.xtm-wrap .xtm-spec-tbl tr { 
    border-bottom: 1px solid var(--xb);
    transition: background 0.2s ease;
}
.xtm-wrap .xtm-spec-tbl tr:last-child { 
    border-bottom: none; 
}
.xtm-wrap .xtm-spec-tbl tr:nth-child(even) td { 
    background: var(--xg); 
}
.xtm-wrap .xtm-spec-tbl tr:hover td { 
    background: rgba(0,0,0,0.02); 
}
.xtm-wrap .xtm-sp-n { 
    padding: 10px 14px; 
    font-weight: 600; 
    width: 40%; 
    vertical-align: top;
    color: #333;
}
.xtm-wrap .xtm-sp-u { 
    padding: 10px 8px; 
    width: 12%; 
    vertical-align: top; 
    opacity: 0.6; 
    font-size: 0.85em; 
    white-space: nowrap;
    font-style: italic;
}
.xtm-wrap .xtm-sp-v { 
    padding: 10px 14px; 
    vertical-align: top;
    color: #555;
}


.xtm-wrap .xtm-equip-tbl { 
    width: 100%; 
    border-collapse: collapse; 
    font-size: 0.88em; 
}
.xtm-wrap .xtm-equip-tbl tr { 
    border-bottom: 1px solid var(--xb);
    transition: background 0.2s ease;
}
.xtm-wrap .xtm-equip-tbl tr:last-child { 
    border-bottom: none; 
}
.xtm-wrap .xtm-equip-tbl tr:nth-child(even) td { 
    background: var(--xg); 
}
.xtm-wrap .xtm-equip-tbl tr:hover td { 
    background: rgba(0,0,0,0.02); 
}
.xtm-wrap .xtm-equip-tbl td { 
    padding: 9px 14px; 
    width: 50%; 
    vertical-align: middle; 
    line-height: 1.5;
    color: #555;
}
.xtm-wrap .xtm-equip-tbl td:first-child { 
    border-right: 1px solid var(--xb);
    font-weight: 500;
}


.xtm-cat-section {
    /* padding: 30px 0; */
    /* margin-bottom: 20px; */
}
.xtm-video-responsive {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 4px;
    background: #000;
}
.xtm-video-responsive iframe,
.xtm-video-responsive video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.xtm-cat-banner {
    margin-bottom: 20px;
    border-radius: var(--xtm-border-radius);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.xtm-cat-banner img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}
.xtm-cat-banner:hover img {
    transform: scale(1.05);
}
@keyframes xtmFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}


.xtm-equal-height > .col { display: flex; }
.xtm-equal-height > .col > .col-inner { display: flex; flex-direction: column; flex: 1; }
.xtm-equal-height > .col > .col-inner > .xtm-product-card { flex: 1; }
.xtm-product-card { 
    background: #fff; 
    border: 1px solid #e5e5e5; 
    border-radius: var(--xtm-border-radius); 
    overflow: hidden; 
    display: flex; 
    flex-direction: column; 
    transition: all 0.35s ease;
    position: relative;
}
.xtm-product-card:hover { 
    box-shadow: 0 8px 24px rgba(0,0,0,0.12); 
    transform: translateY(-5px);
    border-color: var(--xr);
}
.xtm-card-img {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f9f9f9;
    position: relative;
    aspect-ratio: var(--xtm-cr, 1/1);
}
.xtm-card-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    transition: background 0.3s ease;
}
.xtm-product-card:hover .xtm-card-img::after {
    background: rgba(0,0,0,0.05);
}
.xtm-card-img img {
    width: 100%;height: 100%;object-fit: cover;
}

.xtm-card-no-img {
    width: 100%;
    aspect-ratio: inherit;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    background: #f9f9f9; 
    color: #bbb; 
    font-size: 0.88em;
    border: 1px dashed #ddd;
}
.xtm-card-body { 
    padding: 10px 12px; 
    display: flex; 
    flex-direction: column; 
    flex: 1; 
    gap: 4px; 
}
.xtm-card-title { 
    margin: 0; 
    font-size: 0.9em; 
    line-height: 1.3; 
    font-weight: 700;
    min-height: 2.34em;
}
.xtm-card-title a { 
    text-decoration: none; 
    color: #333;
    transition: color 0.3s ease;
}
.xtm-card-title a:hover { 
    color: var(--xr); 
}
.xtm-card-quick-view {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 15%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 0.88em;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: none;
    margin: 0;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
    font-family: inherit;
    line-height: 1.3;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}
.xtm-product-card:hover .xtm-card-quick-view {
    opacity: 1;
}
.xtm-card-quick-view:hover {
    background: rgba(0,0,0,0.8);
}

/* ============================================
   MODAL: Xem nhanh
   ============================================ */
.xtm-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.xtm-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
    cursor: pointer;
}
.xtm-modal-wrap {
    position: relative;
    background: #fff;
    border-radius: 8px;
    max-width: 900px;
    width: 92%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    animation: xtmFadeIn 0.25s ease;
}
.xtm-modal-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    font-size: 1.8em;
    line-height: 1;
    cursor: pointer;
    color: #999;
    z-index: 2;
    padding: 4px 8px;
    transition: color 0.2s;
}
.xtm-modal-close:hover {
    color: #333;
}
.xtm-modal-body {
    display: flex;
    gap: 0;
    min-height: 300px;
}
.xtm-modal-img-col {
    flex: 0 0 45%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 8px 0 0 8px;
    overflow: hidden;
}
.xtm-modal-img-col img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.xtm-modal-no-img {
    padding: 40px;
    color: #bbb;
    font-size: 0.9em;
}
.xtm-modal-specs-col {
    flex: 1;
    padding: 24px 28px;
    overflow-y: auto;
}
.xtm-modal-title {
    margin: 0 0 16px;
    font-size: 1.25em;
    font-weight: 700;
    line-height: 1.3;
}
.xtm-modal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88em;
}
.xtm-modal-table tr {
    border-bottom: 1px solid #eee;
}
.xtm-modal-table tr:last-child {
    border-bottom: none;
}
.xtm-modal-table td {
    padding: 7px 10px;
    vertical-align: top;
}
.xtm-modal-table th {
    padding: 7px 10px;
    text-align: left;
    font-weight: 700;
    color: #333;
    text-transform: none !important;
    letter-spacing: normal;
}
.xtm-modal-spec-key {
    font-weight: 600;
    color: #555;
    width: 40%;
    white-space: nowrap;
}
.xtm-modal-spec-val {
    color: #333;
}
.xtm-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e5e5e5;
}
.xtm-modal-price {
    font-size: 1.15em;
    font-weight: 700;
    color: var(--xr);
}
.xtm-modal-btn {
    margin: 0;
}

@media (max-width: 640px) {
    .xtm-modal-body {
        flex-direction: column;
    }
    .xtm-modal-img-col {
        flex: none;
        border-radius: 8px 8px 0 0;
        max-height: 220px;
    }
    .xtm-modal-specs-col {
        padding: 16px 18px;
    }
    .xtm-modal-title {
        font-size: 1.1em;
    }
}

.xtm-card-footer { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    gap: 8px; 
    padding-top: 8px; 
    border-top: 1px solid #e5e5e5; 
    margin-top: auto; 
}
.xtm-card-price { 
    font-weight: 700; 
    color: var(--xr);
    font-size: 0.9em;
}
.xtm-card-btn {
    padding: 4px 10px;
    background: transparent;
    border: 1px solid var(--xr);
    color: var(--xr);
    text-decoration: none;
    border-radius: 3px;
    font-size: 0.85em;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 0;
}
.xtm-card-btn:hover {
    background: var(--xr);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(210,35,42,0.3);
}

.xtm-empty { 
    text-align: center; 
    padding: 40px 20px; 
    opacity: 0.6; 
    font-size: 0.95em;
    color: #999;
}




@media (max-width: 1024px) {
    .xtm-wrap .xtm-product-h1 { 
        font-size: 1.6em; 
    }
    .xtm-wrap .xtm-spec-nav { 
        flex: 0 0 180px; 
    }
    .xtm-wrap .xtm-spec-btn { 
        font-size: 0.75em; 
        padding: 12px 12px; 
    }
}


@media (max-width: 849px) {
    .xtm-wrap .xtm-spec-nav { 
        flex: 0 0 150px; 
    }
    .xtm-wrap .xtm-spec-btn { 
        font-size: 0.7em; 
        padding: 11px 10px;
        letter-spacing: 0.5px;
    }
    .xtm-wrap .xtm-product-h1 { 
        font-size: 1.4em; 
    }
    .xtm-wrap .xtm-section {
        padding: 30px 0;
    }
}

@media (min-width: 641px) and (max-width: 849px) {
    .xtm-wrap .xtm-slides {
        aspect-ratio: 16 / 9;
    }
}

@media (min-width: 641px) and (max-width: 768px) {
    .xtm-wrap .xtm-product-h1 { 
        font-size: 1.35em; 
    }
    .xtm-wrap .xtm-kq-k {
        font-size: 0.75em;
    }
}

@media (max-width: 640px) {
    
    .xtm-wrap .xtm-section {
        padding: 24px 0;
    }
    .xtm-wrap .xtm-section:first-child {
        padding-top: 10px;
    }
    
    
    .xtm-wrap .xtm-spec-wrap { 
        flex-direction: column; 
    }
    .xtm-wrap .xtm-spec-nav { 
        flex: none; 
        flex-direction: row; 
        flex-wrap: wrap; 
        border-right: none; 
        border-bottom: 1px solid var(--xb); 
    }
    .xtm-wrap .xtm-spec-btn { 
        flex: 1 1 auto; 
        text-align: center; 
        border-right: 1px solid var(--xb); 
        border-bottom: none; 
        font-size: 0.65em; 
        padding: 10px 6px;
        min-width: 80px;
    }
    .xtm-wrap .xtm-spec-btn:last-child {
        border-right: none;
    }
    .xtm-wrap .xtm-spec-btn:hover,
    .xtm-wrap .xtm-spec-btn.active {
        padding-left: 6px;
    }
    .xtm-wrap .xtm-spec-btn.active::before {
        display: none;
    }
    
    
    .xtm-wrap .xtm-cta { 
        flex-direction: column; 
    }
    .xtm-wrap .xtm-cta .button {
        width: 100%;
    }
    
    
    .xtm-wrap .xtm-slides { 
        aspect-ratio: 16 / 9;
    }
    .xtm-wrap .xtm-thumbs { 
        display: none; 
    }
    .xtm-wrap .xtm-counter {
        padding: 10px 0 5px;
    }
    .xtm-wrap .xtm-dot {
        width: 26px;
        height: 26px;
    }
    
    
    .xtm-wrap .xtm-equip-tbl tr { 
        display: flex; 
        flex-direction: column; 
    }
    .xtm-wrap .xtm-equip-tbl td { 
        width: 100%; 
        border-right: none; 
    }
    .xtm-wrap .xtm-equip-tbl td:first-child { 
        border-bottom: 1px dashed var(--xb);
        padding-bottom: 8px;
    }
    .xtm-wrap .xtm-equip-tbl td:last-child { 
        padding-top: 8px;
    }
    
    
    .xtm-wrap .xtm-spec-tbl,
    .xtm-wrap .xtm-kq-table {
        font-size: 0.85em;
    }
    .xtm-wrap .xtm-sp-n,
    .xtm-wrap .xtm-sp-u,
    .xtm-wrap .xtm-sp-v {
        padding: 10px 12px;
    }
    
    
    .xtm-wrap .xtm-product-h1 { 
        font-size: 1.25em;
        margin-bottom: 10px;
    }
    .xtm-wrap .xtm-price-text {
        font-size: 1.1em;
    }
    
    
    
    .xtm-card-body {
        padding: 8px 10px;
    }
    .xtm-card-title {
        font-size: 0.85em;
        min-height: auto;
    }
    .xtm-card-quick-view {
        font-size: 0.78em;
        letter-spacing: 0.5px;
    }

}

@media (max-width: 849px) {
    .xtm-card-quick-view {
        opacity: 1;
    }
}


@media (max-width: 480px) {
    .xtm-wrap .xtm-product-h1 { 
        font-size: 1.15em; 
    }
    .xtm-wrap .xtm-eyebrow {
        font-size: 0.7em;
        letter-spacing: 1.8px;
    }
    .xtm-wrap .xtm-spec-btn { 
        font-size: 0.6em; 
        padding: 8px 4px;
        letter-spacing: 0.3px;
    }
    .xtm-wrap .xtm-kq-k {
        font-size: 0.72em;
        padding: 8px 10px;
    }
    .xtm-wrap .xtm-kq-v {
        font-size: 0.88em;
        padding: 8px 10px;
    }
}


.xtm-wrap .xtm-editor-content {
    padding: 16px 20px;
    line-height: 1.7;
    font-size: 0.95em;
}
.xtm-wrap .xtm-editor-content h1,
.xtm-wrap .xtm-editor-content h2,
.xtm-wrap .xtm-editor-content h3,
.xtm-wrap .xtm-editor-content h4 {
    margin-top: 1.2em;
    margin-bottom: 0.6em;
    font-weight: 700;
    color: #333;
}
.xtm-wrap .xtm-editor-content h1 { font-size: 1.6em; }
.xtm-wrap .xtm-editor-content h2 { font-size: 1.4em; }
.xtm-wrap .xtm-editor-content h3 { font-size: 1.2em; }
.xtm-wrap .xtm-editor-content h4 { font-size: 1.05em; }
.xtm-wrap .xtm-editor-content p {
    margin-bottom: 1em;
}
.xtm-wrap .xtm-editor-content ul,
.xtm-wrap .xtm-editor-content ol {
    margin: 1em 0;
    padding-left: 2em;
}
.xtm-wrap .xtm-editor-content ul li {
    list-style-type: disc;
    margin-bottom: 0.5em;
}
.xtm-wrap .xtm-editor-content ol li {
    list-style-type: decimal;
    margin-bottom: 0.5em;
}
.xtm-wrap .xtm-editor-content strong {
    font-weight: 700;
}
.xtm-wrap .xtm-editor-content em {
    font-style: italic;
}
.xtm-wrap .xtm-editor-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
}
.xtm-wrap .xtm-editor-content table th,
.xtm-wrap .xtm-editor-content table td {
    padding: 10px 14px;
    border: 1px solid var(--xb);
    text-align: left;
	text-transform:capitalize;
}
.xtm-wrap .xtm-editor-content table th {
    background: var(--xg);
    font-weight: 700;
}
.xtm-wrap .xtm-editor-content table tr:nth-child(even) td {
    background: var(--xg);
}
.xtm-wrap .xtm-editor-content blockquote {
    border-left: 4px solid var(--xr);
    padding: 12px 20px;
    margin: 1.5em 0;
    background: var(--xg);
    font-style: italic;
}
.xtm-wrap .xtm-editor-content a {
    color: var(--xr);
    text-decoration: underline;
}
.xtm-wrap .xtm-editor-content a:hover {
    text-decoration: none;
}

/* ============================================
   ARCHIVE / TAXONOMY — inline style consolidation
   ============================================ */
.xtm-archive-description {
    margin-bottom: 30px;
    color: #666;
}
.xtm-clear {
    clear: both;
}
.xtm-flex-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 12px;
}
.xtm-flex-nav-sm {
    gap: 8px;
}
.xtm-filter-label {
    font-weight: 600;
    color: #555;
    font-size: 0.88em;
    margin-right: 6px;
}
.xtm-nav-btn {
    border-radius: 20px;
    margin: 0;
}
.xtm-filter-nav {
    margin-bottom: 24px;
}
.xtm-filter-nav-top {
    margin-bottom: 30px;
}
.xtm-empty-archive {
    text-align: center;
    padding: 60px 20px;
    background: #f9f9f9;
    border-radius: 4px;
}
.xtm-empty-text {
    font-size: 1.1em;
    color: #999;
    margin: 0;
}
.xtm-pagination {
    margin-top: 40px;
    text-align: center;
}
.xtm-pagination .page-numbers {
    display: inline-block;
    padding: 10px 16px;
    margin: 0 3px 6px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    font-size: 0.95em;
    line-height: 1.4;
    color: #333;
    text-decoration: none;
    transition: all .2s;
}
.xtm-pagination .page-numbers:hover {
    background: #f5f5f5;
    border-color: #bbb;
}
.xtm-pagination .page-numbers.current {
    background: var(--xtm-primary, #446084);
    border-color: var(--xtm-primary, #446084);
    color: #fff;
}
.xtm-pagination .page-numbers.prev,
.xtm-pagination .page-numbers.next {
    font-size: 0.9em;
    padding: 10px 18px;
}

/* Archive / shortcode grid: số cột theo THIẾT BỊ (không theo khối col-9).
   - Máy tính (chuột/trackpad = pointer:fine): luôn = --c-lg (5), kể cả cửa sổ hẹp hay khối col-9 hẹp.
   - Thiết bị cảm ứng (iPad/điện thoại = pointer:coarse): theo chiều rộng cửa sổ.
       + >=850px: --c-lg (5)   + 550-849px: --c-md (iPad = 4)   + <=549px: --c-sm (điện thoại = 2)
   - Máy tính cửa sổ cực hẹp (<500px): --c-sm để tránh quá chật.
   Các biến --c-* do xtm_grid_vars() emit từ cài đặt admin. */
.xtm-grid {
    display: grid !important;
    gap: 14px 10px;
    grid-template-columns: repeat(var(--c-lg, 5), minmax(0, 1fr));
}
.xtm-grid > .col {
    width: auto !important;
    flex: none !important;
    flex-basis: auto !important;
    max-width: none !important;
    padding: 0 !important;
}
/* Thiết bị theo CHIỀU RỘNG: >1024 desktop, 768-1024 iPad, <=767 điện thoại. */
@media (min-width: 768px) and (max-width: 1024px) {
    .xtm-grid { grid-template-columns: repeat(var(--c-md, 3), minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    .xtm-grid { grid-template-columns: repeat(var(--c-sm, 2), minmax(0, 1fr)); }
}

/* Ẩn bớt sản phẩm theo thiết bị để mỗi thiết bị hiện đúng số SP riêng
   (shortcode dùng xtm_device_visibility để khớp cài đặt admin). */
@media (min-width: 1025px) {
    .xtm-hide-desktop { display: none !important; }
}
@media (min-width: 768px) and (max-width: 1024px) {
    .xtm-hide-tablet { display: none !important; }
}
@media (max-width: 767px) {
    .xtm-hide-mobile { display: none !important; }
}

/* Load-more / view-more buttons */
.xtm-load-more-wrap,
.xtm-view-more-wrap {
    text-align: center;
    margin: 24px 0;
}
.xtm-load-more-btn,
.xtm-view-more-btn {
    min-width: 180px;
}

/* Price + NSX row */
.xtm-price-nsx-row {
    display: flex;
    gap: 16px;
    align-items: center;
    margin: 12px 0;
}
.xtm-price-col {
    flex: 1;
    text-align: center;
}
.xtm-nsx-col {
    flex: 1;
    text-align: center;
}
@media (max-width: 640px) {
    .xtm-price-nsx-row {
        flex-direction: column;
        gap: 4px;
        align-items: stretch;
    }
}

/* NSX in single product */
.xtm-nsx-single {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: center;
}
@media (max-width: 640px) {
}
.xtm-nsx-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #333;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 6px 12px;
}
.xtm-nsx-link:hover {
    border-color: var(--xr);
    color: var(--xr);
}
.xtm-nsx-link img {
    max-height: 30px;
    width: auto;
}
.xtm-nsx-link span {
    font-size: 0.88em;
    font-weight: 600;
}

/* Main product image in single */
.xtm-main-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    cursor: pointer;
}

/* Rating wrapper */
.xtm-rating-wrap {
    margin: 8px 0;
    text-align: center;
}

/* Video wrapper */
.xtm-video-wrap {
    max-width: 800px;
    margin: 0 auto;
}

/* Card NSX logo badge */
.xtm-card-nsx-logo {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #fff;
    border-radius: 4px;
    padding: 4px 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.xtm-card-nsx-logo img {
    max-height: 24px;
    width: auto;
    display: block;
}

/* Shortcode: xe_tai_grid title */
.xtm-grid-title {
    font-size: 1.4em;
    font-weight: 700;
    margin: 0 0 4px;
}

/* ============================================
   SHORTCODE: cat_group
   ============================================ */
.nav-tabs + .tab-panels {
    padding: 10px;
}
.xtm-cat-group-title {
    font-size: 1.15em;
    font-weight: 700;
    margin: 0 0 4px;
}

/* ============================================
   FLOATING TABLE OF CONTENTS
   ============================================ */
.xtm-toc {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%) translateX(-16px);
    z-index: 99;
    display: flex;
    align-items: center;
    gap: 0;
    transition: transform .35s cubic-bezier(.4,0,.2,1);
}
.xtm-toc-link {
    display: block;
    position: relative;
    padding: 4px 8px 4px 18px;
    font-size: .9em;
    line-height: 1.3;
    color: #666;
    text-decoration: none;
    white-space: nowrap;
    border-radius: 3px;
    transition: all .2s;
}
.xtm-toc-link::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ccc;
    transition: all .2s;
}
.xtm-toc-link:hover {
    color: var(--xr,#d2232a);
    background: rgba(210,35,42,.06);
}
.xtm-toc-link.active {
    color: var(--xr,#d2232a);
    font-weight: 600;
}
.xtm-toc-link.active::before {
    background: var(--xr,#d2232a);
    width: 8px;
    height: 8px;
}

/* ============================================
   TOC TOGGLE BUTTON (gắn bên trái khối)
   ============================================ */
.xtm-toc-toggle {
    flex: 0 0 auto;
    width: 14px;
    height: 32px;
    padding: 0;
    margin: 0;
    border: 1px solid #e5e5e5;
    border-right: none;
    border-radius: 3px 0 0 3px;
    background: rgba(255,255,255,.92);
    cursor: pointer;
    font-size: 8px;
    line-height: 1;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
    order: -1;
}
.xtm-toc-toggle:hover {
    color: var(--xr,#d2232a);
    background: #fff;
    width: 16px;
}

.xtm-toc-links {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 6px;
    background: rgba(255,255,255,.92);
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

.xtm-toc.collapsed {
    transform: translateY(-50%) translateX(calc(100% - 14px));
}
.xtm-toc.collapsed .xtm-toc-toggle {
    border-radius: 3px;
    border-right: 1px solid #e5e5e5;
    color: var(--xr,#d2232a);
    border-color: var(--xr,#d2232a);
    width: 16px;
    height: 34px;
    font-size: 9px;
}
.xtm-toc.collapsed .xtm-toc-toggle:hover {
    width: 18px;
    height: 36px;
}

@media (max-width: 1024px) {
    .xtm-toc:not(.collapsed) {
        transform: translateY(-50%) translateX(-10px);
    }
    .xtm-toc-toggle {
        width: 12px;
        height: 28px;
        font-size: 7px;
    }
    .xtm-toc-toggle:hover {
        width: 14px;
    }
    .xtm-toc.collapsed {
        transform: translateY(-50%) translateX(calc(100% - 12px));
    }
    .xtm-toc.collapsed .xtm-toc-toggle {
        width: 14px;
        height: 30px;
        font-size: 8px;
    }
    .xtm-toc.collapsed .xtm-toc-toggle:hover {
        width: 16px;
        height: 32px;
    }
    .xtm-toc-links {
        padding: 6px 4px;
        gap: 1px;
    }
    .xtm-toc-link {
        padding: 3px 6px 3px 14px;
        font-size: .9em;
    }
    .xtm-toc-link::before {
        width: 5px;
        height: 5px;
        left: 4px;
    }
    .xtm-toc-link.active::before {
        width: 6px;
        height: 6px;
    }
}

@media (max-width: 640px) {
    .xtm-toc:not(.collapsed) {
        transform: translateY(-50%) translateX(-8px);
    }
    .xtm-toc-toggle {
        width: 10px;
        height: 24px;
        font-size: 6px;
    }
    .xtm-toc.collapsed {
        transform: translateY(-50%) translateX(calc(100% - 10px));
    }
    .xtm-toc.collapsed .xtm-toc-toggle {
        width: 12px;
        height: 26px;
        font-size: 7px;
    }
    .xtm-toc-links {
        padding: 4px 3px;
        gap: 1px;
        border-radius: 4px;
    }
    .xtm-toc-link {
        padding: 2px 4px 2px 10px;
        font-size: .9em;
        line-height: 1.5;
        white-space: normal;
        word-break: break-word;
    }
    .xtm-toc-link::before {
        width: 4px;
        height: 4px;
        left: 3px;
    }
    .xtm-toc-link.active::before {
        width: 5px;
        height: 5px;
    }
}

/* ============================================
   LIGHTBOX ZOOM
   ============================================ */
.xtm-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    background: rgba(0,0,0,.88);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s, visibility .25s;
    cursor: pointer;
}
.xtm-lightbox.active {
    opacity: 1;
    visibility: visible;
}
.xtm-lightbox img {
    max-width: 92vw;
    max-height: 92vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 2px;
    box-shadow: 0 4px 30px rgba(0,0,0,.4);
    cursor: default;
}
.xtm-lightbox-close {
    position: absolute;
    top: 16px;
    right: 20px;
    color: #fff;
    font-size: 2em;
    line-height: 1;
    cursor: pointer;
    opacity: .7;
    transition: opacity .2s;
    background: none;
    border: none;
    padding: 4px 10px;
}
.xtm-lightbox-close:hover { opacity: 1; }
.xtm-lightbox-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: .92em;
    background: rgba(0,0,0,.5);
    padding: 6px 18px;
    border-radius: 4px;
    max-width: 80%;
    text-align: center;
}
.xtm-lightbox-prev,
.xtm-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 2.8em;
    line-height: 1;
    cursor: pointer;
    opacity: .6;
    transition: opacity .2s;
    background: rgba(0,0,0,.3);
    border: none;
    padding: 10px 14px;
    border-radius: 4px;
    z-index: 1;
    display: none;
}
.xtm-lightbox-prev:hover,
.xtm-lightbox-next:hover { opacity: 1; }
.xtm-lightbox-prev { left: 12px; }
.xtm-lightbox-next { right: 12px; }
.xtm-lightbox.active .xtm-lightbox-prev,
.xtm-lightbox.active .xtm-lightbox-next { display: block; }

@media (max-width: 640px) {
    .xtm-lightbox-prev,
    .xtm-lightbox-next {
        font-size: 2em;
        padding: 8px 10px;
    }
    .xtm-lightbox-prev { left: 4px; }
    .xtm-lightbox-next { right: 4px; }
}

/* ============================================
   WIDGET: Danh mục / Sản phẩm mới
   ============================================ */
.xtm-widget-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 2px 0 6px;
}
.xtm-widget-row::-webkit-scrollbar { display: none; }

.xtm-widget-cat-row .xtm-widget-pill {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    font-size: .82em;
    line-height: 1.3;
    color: #555;
    background: #f5f5f5;
    border: 1px solid #e5e5e5;
    border-radius: 20px;
    text-decoration: none;
    white-space: nowrap;
    transition: all .2s;
}
.xtm-widget-cat-row .xtm-widget-pill:hover {
    color: var(--xr,#d2232a);
    border-color: var(--xr,#d2232a);
    background: #fff;
}
.xtm-widget-count {
    font-size: .82em;
    color: #999;
}

.xtm-widget-col {
    list-style: none;
    margin: 0;
    padding: 0;
}
.xtm-widget-col li {
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
}
.xtm-widget-col li:last-child { border-bottom: none; }
.xtm-widget-col a {
    color: #555;
    text-decoration: none;
    font-size: .92em;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.xtm-widget-col a:hover { color: var(--xr,#d2232a); }

.xtm-widget-prod-row {
    gap: 12px;
    padding: 2px 0 8px;
}
.xtm-widget-prod-card {
    flex-shrink: 0;
    width: 220px;
}
.xtm-widget-prod-card .xtm-product-card {
    margin: 0;
}

.xtm-widget-prod-col li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.xtm-widget-prod-thumb {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 3px;
    flex-shrink: 0;
}
.xtm-widget-prod-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.xtm-widget-prod-title {
    font-size: .85em;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    line-height: 1.3;
}
.xtm-widget-prod-title:hover { color: var(--xr,#d2232a); }
.xtm-widget-prod-price {
    font-size: .82em;
    color: var(--xr,#d2232a);
    font-weight: 600;
}

@media (max-width: 640px) {
    .xtm-widget-prod-card { width: 180px; }
}

/* ============================================
   STAR RATING
   ============================================ */
.xtm-rating {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 1;
}
.xtm-rating-stars {
    display: inline-flex;
    gap: 2px;
}
.xtm-rstar {
    color: #ddd;
    cursor: pointer;
    font-size: 1.4em;
    line-height: 1;
    transition: color .1s;
    user-select: none;
}
.xtm-rstar.filled { color: #f59e0b; }
.xtm-rating-num {
    font-weight: 700;
    font-size: 1em;
    color: #f59e0b;
}
.xtm-rating-cnt {
    color: #999;
    font-size: .85em;
}

@media print {
    .xtm-toc { display: none; }
    .xtm-wrap .xtm-cta,
    .xtm-wrap .xtm-counter,
    .xtm-wrap .xtm-thumbs {
        display: none;
    }
    .xtm-wrap .xtm-section {
        page-break-inside: avoid;
    }
}

/* Intro truncation */
.xtm-intro-content {
    max-height: 30vh;
    overflow: hidden;
    transition: max-height 0.4s ease;
    position: relative;
}
.xtm-intro-content.xtm-intro-expanded {
    max-height: none;
}
.xtm-intro-toggle-wrap {
    text-align: center;
    margin-top: 8px;
}
.xtm-intro-toggle {
    display: inline-block;
    padding: 6px 20px;
    background: var(--xr);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background 0.2s;
}
.xtm-intro-toggle:hover {
    opacity: 0.85;
}

/* ================================================================
   VERTICAL SIDE MENU (danh mục dọc bên trái)
   ================================================================ */
.xtm-side-menu {
    /* background: #fff; */
    /* border: 1px solid var(--xb, #e0e0e0); */
    /* border-radius: var(--xtm-border-radius, 4px); */
    /* overflow: hidden; */
    /* position: sticky; */
    /* top: 20px; */
}
.xtm-side-menu > ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.xtm-side-menu > ul > li,
.col-inner .xtm-side-menu > ul > li,
.entry-content .xtm-side-menu > ul > li,
.entry-summary .xtm-side-menu > ul > li {
    margin: 0;
    border-bottom: 1px solid var(--xb, #e0e0e0);
    position: relative;
}
.xtm-side-menu ul.xtm-side-menu-children li,
.col-inner .xtm-side-menu ul.xtm-side-menu-children li,
.entry-content .xtm-side-menu ul.xtm-side-menu-children li,
.entry-summary .xtm-side-menu ul.xtm-side-menu-children li {
    margin: 0;
}
.xtm-side-menu > ul > li:last-child {
    border-bottom: none;
}
.xtm-side-menu > ul > li > a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 10px;
    text-decoration: none;
    color: #333;
    font-size: 0.88em;
    font-weight: 600;
    line-height: 1.3;
    transition: all 0.2s ease;
}
.xtm-side-menu > ul > li > a:hover {
    background: rgba(0,0,0,0.03);
    /* color: var(--xr, #d2232a); */
}
.xtm-side-menu > ul > li.is-active > a {
    /* background: var(--primary-color, var(--xr, #d2232a)); */
    /* color: #fff; */
}
.xtm-side-menu-icon {
    flex: 0 0 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.xtm-side-menu-icon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 4px;
}
.xtm-side-menu-text {
    flex: 1;
}
.xtm-side-menu-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 150%;
    color: #999;
    transition: transform 0.25s ease;
    pointer-events: none;
    line-height: 1;
}
.xtm-side-menu > ul > li.is-active > .xtm-side-menu-arrow {
    color: #fff;
}
.xtm-side-menu-item.is-active > .xtm-side-menu-arrow {
    transform: translateY(-230%) rotate(180deg);
}
.xtm-side-menu-children {
    list-style: none;
    margin: 0;
    padding: 0;
    background: none;
    border-top: 1px solid var(--xb, #e0e0e0);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.xtm-side-menu-item.is-active > .xtm-side-menu-children {
    max-height: 600px;
}
.xtm-side-menu-child {
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.xtm-side-menu-child:last-child {
    border-bottom: none;
}
.xtm-side-menu-child a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px;
    text-decoration: none;
    color: #555;
    font-size: 0.82em;
    font-weight: 400;
    transition: all 0.2s ease;
}
.xtm-side-menu-child a:hover {font-weight: bold;}
.xtm-side-menu-child.is-active > a {
    color: var(--xr, #d2232a);
    font-weight: 600;
}
.xtm-side-menu-child-icon {
    flex: 0 0 auto;
    font-size: 0.7em;
    color: #bbb;
}
.xtm-side-menu-child.is-active .xtm-side-menu-child-icon {
    color: var(--xr, #d2232a);
}

/* Responsive */
@media (max-width: 1024px) {
    .xtm-side-menu-icon {
        flex: 0 0 40px;
    }
    .xtm-side-menu-icon img {
        width: 40px;
        height: 40px;
    }
    .xtm-side-menu > ul > li > a {
        font-size: 0.82em;
        padding: 8px 10px;
    }
}
@media (max-width: 640px) {
    .xtm-side-menu {
        position: static;
    }
    .xtm-side-menu > ul > li > a {
        padding: 0 10px;
    }
    .xtm-side-menu-children {
        max-height: 0;
    }
    .xtm-side-menu-item.is-active > .xtm-side-menu-children {
        max-height: 600px;
    }
}

.nenmenu {
    background: url(bg1.jpg) left top repeat;
    padding: 0 !important;
}

@media (min-width: 850px) {
    .xtm-side-menu-col .is-sticky-column {
        position: -webkit-sticky;
        position: sticky;
        top: 90px;
    }
}

@media screen and (max-width: 849px) {

}
@media screen and (max-width: 549px) {

}
