/*
Theme Name: Máy Lọc Nước
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/
h1, h2, h3, h4, h5 {
		font-weight: 500;
		text-wrap: inherit!important;
}
body, p {
	text-wrap: inherit!important;
}
.slider .dot {
		background: #cb552d;
		opacity: 1!important;
		border: none!important;
		height: 12px;
		width: 12px;
		border-radius: 3px;
}
.slider .dot.is-selected {
		background: #592817!important;
		border-radius: 3px;
}
.homevideo {
	margin-top: 15px!important;
}
.homevideo .section-bg {
	border-radius: 10px;
}
.homevideo .title {
	font-size: 40px;
	font-weight: 500;
	margin-bottom: 0;
}
.homevideo .button {
	background: #fff;
	border: none;
	border-radius: 99px;
	text-transform: none;
	color: #000;
	padding:0 30px;
}
.homevideo .subtitle {
	font-size: 90%;
	margin-bottom: 10px;
}
.desktopvideo, .mobilevideo {
	padding-top: 150px;
	padding-bottom: 150px;
}
.homecates {
	padding-top: 20px;
}
.homecates .box, .homecates .cate, .homecates .box-image, .homecates .image-cover {
	border-radius: 10px;
}
.homecates .title {
	font-weight: 600;
	font-size: 14px;
	margin-bottom: 0;
}
.boxinner {
	border:1px solid #cb552d;
	border-radius: 10px;
	background: #fff;
}
.cateimg, .proimg {
    aspect-ratio: 1 / 1;
    width: 120px;
    overflow: hidden;
	margin: auto;
	text-align: center;
}
.cateimg img {
    width: 70%;
    height: 70%;
    object-fit: contain;
    background: #fff;
}
.proimg {
	width: 100%!important;
}
.proimg img {
	width: 85%;
    height: 85%;
    object-fit: contain;
    background: #fff;
}
.homebanner .col-inner {
	padding-top: 220px;
	padding-bottom: 220px;
	background-size: cover!important;
	margin-top: 30px;
	margin-bottom: 30px;
}
.homebanner .inner {
	max-width: 600px;
	padding: 0 40px;
}
.homebanner .title {
	font-size: 30px;
	font-weight: bold;
	line-height: 1.1;
	margin-bottom: 10px;
}
.homeads {
	margin-top: 30px!important;
	margin-bottom: 20px!important;
}
.homeads .box, .homeads .box-image, .homeads .image-cover {
	border-radius: 10px;
}
.homeads .title {
	font-size: 30px;
	font-weight: bold;
}
.homeads .button {
	border-radius: 99px;
	font-weight: normal;
	text-transform: none;
	padding: 0 30px;
}
.homelatest .image-cover {
	border-radius: 10px;
}
.homelatest h3 a {
	color: #000;
}
table {
		border: 1px solid #f1f1f1;
		border-left: 0;
		border-bottom: 0;
}
table tr:nth-child(even) td {
		background: #f9f9f9;
}
table tr td {
		border-left: 1px solid #f1f1f1;
		padding: 8px 10px!important;
		color: #000;
		min-width: inherit!important;
}
.wpcf7-text {
		border:1px solid #ffa858!important;
		box-shadow: none!important;
}
.wpcf7-submit {
		font-weight: normal!important;
		margin-right: 0!important;
}
.wpcf7-spinner {
		display: none;
}
.shop-page-title, .category-page-title {
	font-size: 20px!important;
}
.catetitle {
		margin-bottom:0;
		padding-bottom: 5px;
		font-size: 140%;
}
.entry-header-text {
	padding-bottom: 0!important;
    padding: 0!important;
}
.entry-content {
	padding-top: 0!important;
}
.postslist {
		background: #fff;
		border-radius: 6px;
}
.postslist .box-image {
		border-radius: 6px;
}
.postslist h2 {
		font-size: 16px;
}
.postslist h2 a {
		color: #000;
}
.postslist .postinfo {
		color: #dd3333;
		font-size: 90%;
}
.postslist .postinfo i {
		padding-right: 5px;
}
.page-wrapper {
		padding:0;
}
.page-title {
		font-size: 36px;
		margin-bottom:0;
		padding-bottom:0;
}
.custombread {
	background: #f9f9f9;
	margin-bottom: 0;
}
.breadinner {
		margin: auto;
		max-width: 1370px;
		padding: 15px;
}
.breadinner p {
	margin-bottom: 0;
}
.page-title-inner {
	min-height: inherit;
	padding-top: 0;
}
.shop-page-title, .category-page-title {
	display: none;
}
.rightpost {
		display: flex;
		align-items:center;
		border-top:1px dotted #dd3333;
		padding-top: 8px;
		margin-bottom: 8px;
		width: 100%;
		padding-left: 10px;
		padding-right: 10px;
}
.rightpost .box {
		width: 90px!important;
}
.rightpost .box-image {
		border-radius: 5px;
}
.rightpost .title {
		width: 100%;
		margin-bottom:0;
		margin-left: 10px;
		color: #000;
		font-size: 90%;
}
p.widget-title {
		margin-bottom: 0px;
		padding: 10px 15px;
		text-transform: uppercase;
}
.post {
		margin:0;
}
.relatedtitle {
		text-transform: uppercase;
		font-size: 140%;
		border-bottom: 1px dotted;
		margin-bottom:15px;
}
.relatedpost .box-image {
		border-radius: 6px;
}
.relatedpost .box-text {
		padding: 15px;
}
.relatedpost .overlay, .homecates .overlay {
	background: linear-gradient(0deg, #1b283bc7, transparent 75%);
    background-image: linear-gradient(0deg, rgba(27, 40, 59, 0.78), transparent 75%);
}
.widget {
		background: #fff;
		border-radius: 8px;
}
.widget-title {
		display: block;
		background: #f56504;
		color: #fff;
		padding: 15px;
		border-radius: 6px 6px 0 0;
}
.widget .is-divider {
		display: none;
}
.widget ul {
		padding: 0 15px;
		background: #f9f9f9;
}
.widget ul li a {
		color: #000;
		padding: 10px 0;
}
.widget .current-cat a {
		color: #f56504;
}
.widget ul li ul {
		border-left: none;
		margin-left:0;
}
.widget ul li ul li {
		list-style-type: circle;
}
.homeexpert {
	height: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
		font-size: 90%;
}
.postdate {
		font-size: 90%;
}
.postdate i {
		margin-right: 5px;
		color: #f56504;
}
.cattitle {
	text-transform: uppercase;
}
.woobt-products .woobt-product .woobt-price {
    width: 120px;
    flex: 0 0 100px;
    max-width: 120px;
    text-align: end;
}
.custom-price-filters-wrapper, .product-categories {
	margin-bottom: 20px;
	background-color: #fff;
	padding: 10px;
	border-radius: 5px;
	overflow-x: auto;
}
.custom-price-filters {
    display: flex
;
    gap: 10px;
    flex-wrap: nowrap;
    white-space: nowrap;
}
.price-filter-text  {
	border:1px solid #33a02b!important;
	padding: 5px 8px;
	border-radius: 4px;
	font-size: 90%;
}
.price-filter-text.active, .price-filter-text:hover {
	background: #33a02b;
	color:#fff;
}
.proinner {
	border:1px solid #eee;
	border-radius: 8px!important;
	background: #fff;
}
.proinner .box-text {
	padding: 0 15px 10px 15px;
}
.proinner .box-text .product-title a {
	font-size: 14px;
	color: #000;
	text-wrap: inherit;
}
.product-small .col-inner {
		background:#fff;
		border-radius: 8px;
		transition: .5s;
}
.product-small .product-title a {
		font-size: 17px;
		color: #000;
}
.product-small .amount, .product-info .amount {
		color: #f56504;
}
.product-small .image-cover, .product-small .box-image {
		border-radius: 8px;
}
.product-small .box-text {
		padding: 15px;
}
.page-number {
		border-radius: 5px!important;
}
.product-small .badge-container {
		margin: 10px!important;
		padding-left:4px;
}
.badge-frame .badge-inner, .badge-outline .badge-inner {
		border:1px solid;
		border-radius: 5px;
		color: #f56504;
}
.pageinner {
		background:#fff;
		padding: 20px;
		border-radius: 8px;
}
.producttop {
		margin-top: 20px;
}
.product-images {
		margin-bottom:15px;
}
.product-images .zoom-button {
		border: none;
		color: #f56504;
		background:none!important;
}
.product-images img, .otherimages img {
		border-radius: 8px;
}
.product-images .badge-container {
		margin-top:0;
}
.otherimages a, .product-thumbnails .is-nav-selected a img, .product-thumbnails a:hover img {
		border: none;
		transform: translateY(0px)!important;
}
.product-thumbnails img {
		margin-bottom:0!important;
		border:1px solid;
}
.product-thumbnails .is-nav-selected a img, .product-thumbnails a:hover img {
	border:1px solid #f56504;
}
.otherimages .col {
		padding: 0 8px 18px!important;
}
.galleryinner {
		border:1px solid #33a02b;
		padding: 20px 20px 0 20px;
		border-radius: 8px;
}
.product-section {
		border-top: none;
		padding-bottom:30px;
}
.product-section .hometitle {
		margin: auto;
		max-width: 1370px;
		padding: 0 15px;
		font-weight: bold;
		padding-bottom: 20px;
		padding-top: 20px;
		font-size: 30px;
}
.woobt-products .woobt-product {
		border:1px solid #ccc;
		margin-bottom:10px;
		border-radius: 5px;
		align-items: center;
}
.woobt-products .woobt-product input {
		margin-bottom:0;
}
.woobt-text {
		margin-bottom:5px!important;
}
.productbuttons .button {
		margin-bottom:0;
		border-radius: 99px;
		text-align: left;
		width:100%;
		font-weight: normal;
		align-items:center;
		display:flex;
		padding: 8px 13px;
}
.productbuttons span {
		line-height:1;
}
.productbuttons span span {
		display: block;
		font-size: 28px;
		font-weight: bold;
}
.productbuttons i {
		border:1px solid;
		padding:12px;
		border-radius: 99px;
}
.hometabs .nav > li {
		border: 1px solid #fff;
		padding: 0 20px;
		margin: 0 5px;
		border-radius: 3px;
		line-height:1.2;
		font-size: 18px;
}
.hometabs .nav > li > a {
		color: #fff;
        display: block;
        text-align: center!important;
	font-weight: normal;
}
.hometabs .nav > li.active a, .hometabs .nav > li:hover a {
		color: #fff;
}
.hometabs .nav > li.active, .hometabs .nav > li:hover {
		background: #cb552d;
}
.hometabs .subcate {
    margin-bottom: 20px;
}
.hometabs .subcate li {
    list-style-type: none;
    margin: 0 3px;
    display: inline-block;
}
.ft-navi img {
	width: 25px;
}
.contactpage {
		padding-top: 60px;
}
.contactpage p {
		margin-bottom: 10px;
}
.contactpage .col {
		padding-bottom:0;
}
.contactpage form p {
		margin-bottom:0;
}
.contactpage form {
		margin-top: 30px;
}
.contactpage .wpcf7-text, .contactpage .wpcf7-textarea {
		background: transparent;
		border:1px solid #dd3333!important;
		border-radius: 0!important;
		box-shadow: none!important;
		padding: 0;
}
.contactpage ::placeholder {
		color: #fff;
		opacity: 0.7;
}
.contactpage i {
		margin-right: 5px;
}
.contactpage p.hometitle {
		padding-top: 30px;
}
.customfooter .col {
	padding-bottom: 0;
}
.customfooter p {
	margin-bottom: 10px;
}
.newsletter p {
	display: flex;
}
.footer-wrapper {
		margin-top: 20px;
}
.absolute-footer {
		border-top: 1px solid;
}
.footerlogo {
		width: 70%;
		height: auto;
		margin-bottom:0!important;
}

.widget-title {
		font-size: 120%!important;
}
.widget .is-divider {
		background: #dd3333;
		border-radius: 99px;
}
.recent-blog-posts-li .flex-row {
		align-content: center;
		align-items: center!important;
		font-size: 90%;
}
.recent-blog-posts-li .post_comments {
		display: none;
}
.recent-blog-posts-li .mr-half {
		width: 60px;
}
.recent-blog-posts-li .mr-half .badge {
		width: 60px;
		height: 60px;
}
.recent-blog-posts-li .badge-inner {
		background-position: 50% 50%!important;
		border-radius: 6px;
}
.off-canvas .mfp-content {
		width: 100%;
		background: #d70018 !important;
		background-image: none !important;
}
.off-canvas .mfp-content,
.off-canvas .mfp-content a,
.off-canvas .mfp-content .nav-sidebar-inner,
.off-canvas .mfp-content .menu-item a,
.off-canvas .mfp-content .header-newsletter-title {
		color: #fff !important;
}
.off-canvas .mfp-content .nav-sidebar .menu-item {
		border-color: rgba(255,255,255,0.2) !important;
}
.off-canvas .mfp-content .icon-angle-down {
		color: #fff !important;
}

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

.homeexpert {
		max-height: 70px;
}
.hometitle {
	font-size: 26px;
}
.product-section .slider {
	padding-bottom: 20px;
}

}

/* ============================================
   DMX Product Layout - Điện Máy Xanh Style
   ============================================ */

/* Full width container */
.single-product .row.content-row {
    max-width: 100%;
    padding: 0;
}
.single-product .large-12.col {
    padding: 0;
}

.dmx-product-wrapper {
    max-width: 1370px;
    margin: 0 auto;
    padding: 10px;
    background: #f9f9f9;
}

/* Breadcrumb */
.dmx-breadcrumb {
    padding: 10px 0;
    font-size: 13px;
}
.dmx-breadcrumb .woocommerce-breadcrumb {
    margin: 0;
    padding: 0;
    color: #666;
}
.dmx-breadcrumb a {
    color: #333;
}
.dmx-breadcrumb a:hover {
    color: #1a73e8;
}

/* Header */
.dmx-product-header {
    background: transparent;
    padding: 12px 0;
    border-radius: 0;
    margin-bottom: 0;
    border-bottom: none;
}
.dmx-product-header .dmx-product-title {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #333;
    line-height: 1.3;
}
.dmx-product-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    flex-wrap: wrap;
}
.dmx-sales {
    color: #333;
    font-weight: 500;
}
.dmx-rating-box {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}
.dmx-rating-box .rating-score {
    background: #f59e0b;
    color: #fff;
    padding: 1px 6px;
    border-radius: 3px;
    font-weight: 600;
    font-size: 12px;
}
.dmx-rating-box .star-rating {
    font-size: 12px;
}

/* Content Layout */
.dmx-product-content {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}
.dmx-left-column {
    flex: 1;
    min-width: 0;
}
.dmx-right-column {
    width: 360px;
    flex-shrink: 0;
}
.dmx-right-column .dmx-price-box,
.dmx-right-column > div {
    box-shadow: none;
}
.dmx-right-column .dmx-price-wrapper {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 10px;
}

/* Gallery */
.dmx-gallery {
    background: #fff;
    padding: 10px;
    border-radius: 0;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.dmx-main-image {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* Tỷ lệ 16:9 */
    margin-bottom: 10px;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
}
.dmx-main-image-inner {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dmx-main-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}
.dmx-image-counter {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 12px;
    z-index: 1;
}
.dmx-thumbnails {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 5px 0;
    scrollbar-width: thin;
}
.dmx-thumbnails::-webkit-scrollbar {
    height: 4px;
}
.dmx-thumbnails::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 2px;
}
.dmx-thumb {
    width: 80px;
    height: 45px; /* Tỷ lệ 16:9 */
    flex-shrink: 0;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.2s;
    background: #fff;
    padding: 4px;
    box-sizing: border-box;
}
.dmx-thumb:hover,
.dmx-thumb.active {
    border-color: #1a73e8;
    border-width: 2px;
    padding: 3px; /* Giữ kích thước khi border dày hơn */
}
.dmx-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Thumbnail Video */
.dmx-thumb-video {
    position: relative;
    width: 100%;
    height: 100%;
}
.dmx-thumb-video img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.dmx-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.6);
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
}

/* Căn giữa hình ảnh trong mô tả sản phẩm */
.dmx-description-content img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    height: auto;
}

/* Commitments */
.dmx-commitments {
    background: #fff;
    padding: 12px 15px;
    border-radius: 0;
    margin-bottom: 10px;
}
.dmx-highlights {
    background: #fff;
    padding: 12px 15px;
    border-radius: 0;
    margin-bottom: 10px;
}
.dmx-section-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #333;
}
.dmx-commit-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.dmx-commit-list li {
    padding: 6px 0;
    color: #333;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    line-height: 1.4;
}
.dmx-commit-list li:before {
    content: "✓";
    color: #22c55e;
    font-weight: bold;
    flex-shrink: 0;
}
.dmx-highlight-content {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}
.dmx-highlight-content ul {
    padding-left: 0;
    list-style: none;
}
.dmx-highlight-content li {
    padding: 5px 0;
    padding-left: 15px;
    position: relative;
}
.dmx-highlight-content li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #333;
}

/* Price Box */
.dmx-price-box {
    background: #fff;
    padding: 15px;
    border-radius: 0;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.dmx-price-wrapper {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
}
.dmx-price-old {
    text-decoration: line-through;
    color: #757575;
    font-size: 15px;
    order: 2;
}
.dmx-price-current {
    font-size: 24px;
    font-weight: 700;
    color: #d70018;
    order: 1;
}
.dmx-price-current .amount {
    color: #d70018;
}
.dmx-price-current del {
    display: none;
}
.dmx-price-current ins {
    text-decoration: none;
}
.dmx-discount-badge {
    background: #d70018;
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    order: 3;
}
.dmx-price-label {
    font-size: 13px;
    color: #d70018;
    font-weight: 500;
    display: block;
    margin-bottom: 5px;
}

/* Promotions */
.dmx-promotions {
    background: #fff8e5;
    border: 1px solid #ffc400;
    border-radius: 4px;
    padding: 12px;
    margin-bottom: 10px;
}
.dmx-promo-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #cb1c22;
    display: flex;
    align-items: center;
    gap: 6px;
}
.dmx-promo-title:before {
    content: "🎁";
}
.dmx-promo-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.dmx-promo-list li {
    padding: 5px 0;
    padding-left: 22px;
    position: relative;
    font-size: 13px;
    color: #333;
    line-height: 1.4;
}
.dmx-promo-list li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 16px;
    height: 16px;
    background: #cb1c22;
    color: #fff;
    border-radius: 50%;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dmx-promo-list li:nth-child(1):before { content: "1"; }
.dmx-promo-list li:nth-child(2):before { content: "2"; }
.dmx-promo-list li:nth-child(3):before { content: "3"; }
.dmx-promo-list li:nth-child(4):before { content: "4"; }
.dmx-promo-list li:nth-child(5):before { content: "5"; }

/* Buy Actions */
.dmx-buy-actions {
    background: #fff;
    padding: 12px;
    border-radius: 0;
    margin-bottom: 10px;
}
.dmx-buy-actions .cart {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.dmx-buy-actions .quantity {
    display: none;
}
.dmx-buy-actions .single_add_to_cart_button {
    width: 100%;
    background: #cb1c22;
    color: #fff;
    border: none;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
    text-transform: uppercase;
}
.dmx-buy-actions .single_add_to_cart_button:hover {
    background: #a51419;
}
.dmx-btn-call {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: #288ad6;
    color: #fff;
    padding: 12px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s;
}
.dmx-btn-call:hover {
    background: #1e6fb3;
    color: #fff;
}
.dmx-btn-call i {
    font-size: 18px;
}

/* Banners */
.dmx-banners {
    margin-top: 10px;
}
.dmx-banner-item {
    display: block;
    width: 100%;
    margin-right: 0;
    margin-bottom: 10px;
}
.dmx-banner-item img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.dmx-btn-addcart {
    display: block;
    width: 100%;
    background: #fff;
    color: #288ad6;
    border: 1px solid #288ad6;
    padding: 12px 20px;
    border-radius: 4px;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}
.dmx-btn-addcart:hover {
    background: #288ad6;
    color: #fff;
}

/* Hotline Buttons */
.dmx-hotline-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}
.dmx-hotline-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 4px;
    text-decoration: none;
    color: #fff;
    font-size: 13px;
    transition: opacity 0.2s;
}
.dmx-hotline-btn:hover {
    opacity: 0.9;
    color: #fff;
}
.dmx-hotline-btn.primary {
    background: #00a650;
}
.dmx-hotline-btn.secondary {
    background: #288ad6;
}
.dmx-hotline-btn i {
    font-size: 20px;
}

/* Tabs */
.dmx-product-details {
    background: #fff;
    border-radius: 0;
    margin-bottom: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.dmx-tab-nav {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
    background: #fff;
    gap: 0;
}
.dmx-tab-btn {
    padding: 12px 20px;
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    flex: none;
}
.dmx-tab-btn:hover {
    color: #1a73e8;
}
.dmx-tab-btn.active {
    color: #1a73e8;
}
.dmx-tab-btn.active:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #1a73e8;
}
.dmx-tab-content {
    padding: 15px;
}
.dmx-tab-content p img {
    display: block;
    margin: auto;
}
.dmx-tab-pane {
    display: none;
}
.dmx-tab-pane.active {
    display: block;
}

/* Specs Table */
.dmx-specs-table {
    max-width: 100%;
}
.dmx-specs {
    width: 100%;
    border-collapse: collapse;
}
.dmx-specs tr:nth-child(odd) {
    background: #f7f7f7;
}
.dmx-specs tr:nth-child(even) {
    background: #fff;
}
.dmx-specs th,
.dmx-specs td {
    padding: 10px 12px;
    text-align: left;
    font-size: 13px;
    border: none;
}
.dmx-specs th {
    width: 40%;
    color: #666;
    font-weight: 400;
}
.dmx-specs td {
    color: #333;
}

/* Specs Content (WYSIWYG) */
.dmx-specs-content {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e8e8e8;
}
.dmx-specs-content p {
    margin-bottom: 10px;
    line-height: 1.6;
}
.dmx-specs-content img {
    display: block;
    margin: auto;
    max-width: 100%;
    height: auto;
}

/* Description */
.dmx-description-content {
    line-height: 1.7;
    color: #333;
    font-size: 14px;
}
.dmx-description-content img {
    max-width: 100%;
    height: auto;
    margin: 10px 0;
}
.dmx-description-content h2,
.dmx-description-content h3 {
    font-size: 16px;
    margin: 15px 0 10px;
}

/* Reviews */
.dmx-reviews-wrapper {
    font-size: 14px;
}

/* Related Products */
.dmx-related-products {
    background: #fff;
    padding: 15px;
    border-radius: 0;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.dmx-related-products .dmx-related-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}
.dmx-related-products .box-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
}

/* Responsive */
@media only screen and (max-width: 992px) {
    .dmx-product-content {
        flex-direction: column;
    }
    .dmx-right-column {
        width: 100%;
    }
}

@media only screen and (max-width: 768px) {
    .dmx-product-title {
        font-size: 18px;
    }
    .dmx-product-meta {
        flex-wrap: wrap;
        gap: 8px;
    }
    .dmx-tab-nav {
        overflow-x: auto;
    }
    .dmx-tab-btn {
        padding: 10px 15px;
        font-size: 13px;
        white-space: nowrap;
    }
    .dmx-price-current {
        font-size: 20px;
    }
    .dmx-thumb {
        width: 64px;
        height: 36px; /* Tỷ lệ 16:9 */
    }
    .dmx-specs th {
        width: 45%;
    }
    .dmx-specs th,
    .dmx-specs td {
        padding: 8px 10px;
        font-size: 12px;
    }
}

/* Xem thêm / Thu gọn */
.dmx-content-wrapper {
    position: relative;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.dmx-content-wrapper.dmx-collapsed {
    max-height: 500px;
}
.dmx-content-wrapper.dmx-expanded {
    max-height: none;
}
.dmx-gradient-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.dmx-content-wrapper.dmx-expanded .dmx-gradient-overlay {
    opacity: 0;
}
.dmx-view-more-btn {
    display: block;
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #1a73e8;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
}
.dmx-view-more-btn:hover {
    background: #f5f5f5;
    border-color: #1a73e8;
}

/* ============================================
   DMX Category Page - Điện Máy Xanh Style
   ============================================ */

/* Category Page Layout */
.category-page-row {
    background: transparent;
    padding: 0;
}
.category-page-row .col.large-12 {
    padding: 0 10px;
}

/* Category Title */
.cattitle {
    background: linear-gradient(135deg, #ffd400 0%, #ffb700 100%);
    padding: 12px 15px;
    margin: 0 0 10px 0;
    border-radius: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    text-transform: none;
}
.cattitle span {
    color: #333;
}

/* DMX Products Grid */
.dmx-products {
    background: #fff;
    padding: 10px;
    border-radius: 0;
    margin-bottom: 10px;
}
.dmx-products.row {
    margin-left: -5px;
    margin-right: -5px;
}
.dmx-products .col {
    padding: 5px !important;
}

/* DMX Product Card */
.dmx-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.dmx-card:hover {
    border-color: #1a73e8;
}

/* Card Image */
.dmx-card-image {
    position: relative;
    padding: 15px;
    background: #fff;
}
.dmx-image-wrapper {
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fff;
}
.dmx-image-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}
.dmx-card:hover .dmx-image-wrapper img {
    transform: scale(1.05);
}

/* Discount Badge */
.dmx-badge-discount {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #d70018;
    color: #fff;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    z-index: 2;
}

/* Out of Stock */
.dmx-out-of-stock {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    z-index: 3;
}

/* Quick Cart Button - Hidden */
.dmx-quick-cart {
    display: none;
}

/* Card Content */
.dmx-card-content {
    padding: 10px 12px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Product Title */
.dmx-product-title {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    margin: 0 0 8px 0;
    height: 36px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.dmx-product-title a {
    color: #333;
    text-decoration: none;
}
.dmx-product-title a:hover {
    color: #1a73e8;
}


/* Price Box */
.dmx-price-box {
    margin-bottom: 6px;
    padding: 0;
    box-shadow: none;
    background: transparent;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}
.dmx-price-sale {
    font-size: 15px;
    font-weight: 700;
    color: #d70018;
}
.dmx-price-sale .woocommerce-Price-amount {
    color: #d70018;
}
.dmx-price-regular {
    font-size: 12px;
    color: #757575;
    text-decoration: line-through;
}
.dmx-price-regular .woocommerce-Price-amount {
    color: #757575;
}

/* Rating & Sales */
.dmx-product-meta {
    margin-bottom: 6px;
}
.dmx-rating-sales {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.dmx-stars {
    display: flex;
    align-items: center;
}
.dmx-stars .star-rating {
    font-size: 11px;
    margin: 0;
}
.dmx-sold {
    font-size: 11px;
    color: #666;
}

/* Tags */
.dmx-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: auto;
}
.dmx-tag {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 500;
}
.dmx-tag-tragop {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}
.dmx-tag-freeship {
    background: #e3f2fd;
    color: #1565c0;
    border: 1px solid #90caf9;
}

/* Category Banner */
.productcatebanner {
    margin-bottom: 10px;
    border-radius: 8px;
    overflow: hidden;
}
.productcatebanner img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Price Filter - DMX Style */
.custom-price-filters-wrapper {
    background: #fff;
    padding: 12px 15px;
    margin-bottom: 10px;
    border-radius: 0;
}
.custom-price-filters {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 5px;
}
.custom-price-filters::-webkit-scrollbar {
    height: 3px;
}
.custom-price-filters::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}
.price-filter-text {
    background: #fff;
    border: 1px solid #e0e0e0 !important;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    color: #333;
    white-space: nowrap;
    transition: all 0.2s;
}
.price-filter-text:hover {
    border-color: #1a73e8 !important;
    color: #1a73e8;
    background: #fff;
}
.price-filter-text.active {
    background: #1a73e8;
    border-color: #1a73e8 !important;
    color: #fff;
}

/* Pagination - DMX Style */
.pagenavi {
    display: flex;
    justify-content: center;
    gap: 5px;
    padding: 15px;
    background: #fff;
    margin-top: 10px;
}
.pagenavi a, .pagenavi span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s;
}
.pagenavi a:hover {
    border-color: #1a73e8;
    color: #1a73e8;
}
.pagenavi .current {
    background: #1a73e8;
    border-color: #1a73e8;
    color: #fff;
}

/* DMX Category Responsive */
@media only screen and (max-width: 992px) {
    .dmx-products.large-columns-5 > .col {
        max-width: 33.333%;
        flex-basis: 33.333%;
    }
}

@media only screen and (max-width: 768px) {
    .dmx-products.large-columns-5 > .col {
        max-width: 50%;
        flex-basis: 50%;
    }
    .dmx-product-title {
        font-size: 12px;
        height: 34px;
    }
    .dmx-price-sale {
        font-size: 14px;
    }
    .dmx-price-regular {
        font-size: 11px;
    }
    .dmx-tag {
        font-size: 9px;
        padding: 2px 4px;
    }
    .cattitle {
        font-size: 16px;
        padding: 10px 12px;
    }
}

@media only screen and (max-width: 480px) {
    .dmx-card-content {
        padding: 8px 10px 10px;
    }
    .dmx-card-image {
        padding: 8px;
    }
    .dmx-badge-discount {
        font-size: 10px;
        padding: 2px 5px;
    }
}


/* Brand Filter - DMX Style */
.dmx-brand-filter-wrapper {
    background: #fff;
    padding: 12px 15px;
    margin-bottom: 10px;
}
.dmx-brand-filters {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 5px;
}
.dmx-brand-filters::-webkit-scrollbar {
    height: 3px;
}
.dmx-brand-filters::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}
.brand-filter-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    color: #333;
    white-space: nowrap;
    transition: all 0.2s;
    text-decoration: none;
}
.brand-filter-item:hover {
    border-color: #1a73e8;
    color: #1a73e8;
}
.brand-filter-item.active {
    background: #1a73e8;
    border-color: #1a73e8;
    color: #fff;
}

/* Sort Options - DMX Style */
.dmx-sort-wrapper {
    background: #fff;
    padding: 10px 15px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.dmx-sort-label {
    font-size: 13px;
    color: #666;
    white-space: nowrap;
}
.dmx-sort-options {
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
    overflow-x: auto;
}
.dmx-sort-options::-webkit-scrollbar {
    height: 3px;
}
.sort-option {
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12px;
    color: #333;
    white-space: nowrap;
    transition: all 0.2s;
    text-decoration: none;
}
.sort-option:hover {
    border-color: #1a73e8;
    color: #1a73e8;
    background: #fff;
}
.sort-option.active {
    background: #1a73e8;
    border-color: #1a73e8;
    color: #fff;
}

/* Filter Section Header */
.dmx-filter-section {
    background: #fff;
    margin-bottom: 10px;
}
.dmx-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid #e8e8e8;
}
.dmx-filter-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0;
}
.dmx-filter-clear {
    font-size: 12px;
    color: #1a73e8;
    text-decoration: none;
}
.dmx-filter-clear:hover {
    text-decoration: underline;
}

/* ========== DMX HOMEPAGE STYLES ========== */
.dmx-home {
    padding-bottom: 30px;
}
.dmx-container {
    max-width: 1370px;
    margin: 0 auto;
    padding: 0;
}
.dmx-section {
    margin-bottom: 15px;
}

/* Hero Section - Slider + Sidebar */
.dmx-hero-section {
    padding: 15px 0 0 0;
}
.dmx-hero-wrapper {
    display: flex;
    gap: 10px;
}
.dmx-main-slider {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
}
.dmx-main-slider img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}
.dmx-hero-sidebar {
    width: 240px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.dmx-sidebar-banner {
    display: block;
    border-radius: 8px;
    overflow: hidden;
}
.dmx-sidebar-banner img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Categories Section */
.dmx-categories-section {
    padding: 0;
    margin: 15px 0;
}
.dmx-categories-box {
    background: #fff;
    border-radius: 10px;
    padding: 15px;
}
.dmx-categories-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
}
.dmx-categories-scroll::-webkit-scrollbar {
    height: 4px;
}
.dmx-categories-scroll::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 4px;
}
.dmx-category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
    padding: 10px 5px;
    text-decoration: none;
    transition: transform 0.2s;
}
.dmx-category-item:hover {
    transform: translateY(-3px);
}
.dmx-category-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 8px;
}
.dmx-category-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.dmx-category-name {
    font-size: 12px;
    color: #333;
    text-align: center;
    line-height: 1.3;
}

/* Section Box Common */
.dmx-section-box {
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    overflow: hidden;
}
.dmx-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}
.dmx-section-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}
.dmx-section-title i {
    margin-right: 8px;
    color: #d70018;
}

/* Promo Section - Tabs */
.dmx-promo-section .dmx-promo-box {
    background: linear-gradient(135deg, #d70018 0%, #ff6b35 100%);
    border-radius: 10px;
    padding: 15px;
}
.dmx-promo-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}
.dmx-promo-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    text-transform: uppercase;
}
.dmx-promo-title i {
    color: #ffd700;
}
.dmx-promo-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.dmx-promo-tabs .dmx-tab-btn {
    background: transparent;
    border: 1px solid #fff;
    padding: 4px 20px;
    border-radius: 3px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}
.dmx-promo-tabs .dmx-tab-btn:after {
    display: none;
}
.dmx-promo-tabs .dmx-tab-btn:hover,
.dmx-promo-tabs .dmx-tab-btn.active {
    background: #fff;
    color: #d70018;
}

.dmx-tab-panel {
    display: none;
}
.dmx-tab-panel.active {
    display: block;
}
.dmx-promo-content {
    background: #fff;
    border-radius: 10px;
    padding: 15px;
}

/* Products Grid */
.dmx-products-grid {
    margin: 0 -5px;
}
.dmx-products-grid .col {
    padding: 5px;
}

/* Product Card */
.dmx-product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    transition: box-shadow 0.3s;
    border: 1px solid #eee;
}
.dmx-product-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.dmx-product-link {
    display: block;
    text-decoration: none;
    height: 100%;
}
.dmx-product-image {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
    padding: 15px;
    background: #fff;
    aspect-ratio: 1/1;
}
.dmx-product-image img {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    width: calc(100% - 30px);
    height: calc(100% - 30px);
    object-fit: contain;
    transition: transform 0.3s;
}
.dmx-product-card:hover .dmx-product-image img {
    transform: scale(1.05);
}
.dmx-sale-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #d70018;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 3px;
}
.dmx-product-info {
    padding: 10px;
}
.dmx-product-title {
    font-size: 13px;
    font-weight: 400;
    color: #333;
    margin: 0 0 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 36px;
}
.dmx-product-price {
    font-size: 15px;
    font-weight: 700;
    color: #d70018;
}
.dmx-product-price del {
    font-size: 12px;
    color: #999;
    font-weight: 400;
    margin-left: 5px;
}
.dmx-product-price ins {
    text-decoration: none;
}

/* Banner Section */
.dmx-banner-section {
    padding: 10px 0;
}
.dmx-banner-slider {
    border-radius: 10px;
    overflow: hidden;
}
.dmx-banner-section .dmx-banner-item {
    width: calc(50% - 5px);
    margin-right: 10px;
}
.dmx-banner-section .dmx-banner-item img {
    width: 100%;
    border-radius: 8px;
}

/* Category Section */
.dmx-category-section {
    margin-bottom: 15px;
}
.dmx-subcategories {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.dmx-subcategory-link {
    font-size: 13px;
    color: #1a73e8;
    text-decoration: none;
    padding: 5px 12px;
    background: #f0f7ff;
    border-radius: 15px;
    transition: all 0.2s;
}
.dmx-subcategory-link:hover {
    background: #1a73e8;
    color: #fff;
}
.dmx-section-footer {
    text-align: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}
.dmx-view-all-btn {
    display: inline-block;
    padding: 10px 30px;
    background: #d70018;
    color: #fff;
    border-radius: 25px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}
.dmx-view-all-btn:hover {
    background: #b50014;
    color: #fff;
}
.dmx-view-all-btn i {
    margin-left: 5px;
}

/* Blog Section */
.dmx-blog-section {
    margin-bottom: 30px;
}
.dmx-blog-grid {
    margin: 0 -10px;
}
.dmx-blog-grid .col {
    padding: 10px;
}
.dmx-blog-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    border: 1px solid #eee;
    transition: box-shadow 0.3s;
}
.dmx-blog-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.dmx-blog-link {
    display: block;
    text-decoration: none;
}
.dmx-blog-image {
    position: relative;
    padding-top: 60%;
    overflow: hidden;
}
.dmx-blog-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.dmx-blog-card:hover .dmx-blog-image img {
    transform: scale(1.05);
}
.dmx-blog-info {
    padding: 12px;
}
.dmx-blog-date {
    font-size: 12px;
    color: #888;
    margin-bottom: 8px;
    display: block;
}
.dmx-blog-date i {
    margin-right: 5px;
}
.dmx-blog-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* Responsive - Mobile */
@media (max-width: 849px) {
    .dmx-hero-wrapper {
        flex-direction: column;
    }
    .dmx-hero-sidebar {
        width: 100%;
        flex-direction: row;
    }
    .dmx-sidebar-banner {
        flex: 1;
    }
    .dmx-category-item {
        min-width: 70px;
    }
    .dmx-category-icon {
        width: 40px;
        height: 40px;
    }
    .dmx-category-name {
        font-size: 11px;
    }
    .dmx-promo-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .dmx-promo-title {
        font-size: 16px;
    }
    .dmx-tab-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    .dmx-section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .dmx-product-title {
        font-size: 12px;
        min-height: 32px;
    }
    .dmx-product-price {
        font-size: 14px;
    }
    .dmx-banner-section .dmx-banner-item {
        width: 100%;
        margin-right: 0;
    }
    .dmx-blog-grid .col {
        padding: 5px;
    }
}

/* Tab switching JS */
.dmx-tab-panel {
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Recently Viewed Slider */
.dmx-recently-viewed .dmx-section-box {
    background: #fff3e0;
    border-radius: 10px;
}
.dmx-recently-slider {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
}
.dmx-recently-slider::-webkit-scrollbar {
    height: 4px;
}
.dmx-recently-slider::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 4px;
}
.dmx-recently-item {
    flex: 0 0 180px;
    scroll-snap-align: start;
}
.dmx-recently-item .dmx-product-card {
    background: #fff;
    border-radius: 8px;
    height: 100%;
}
@media (max-width: 768px) {
    /* Hero Section Mobile */
    .dmx-hero-section {
        padding: 0;
    }
    .dmx-main-slider {
        border-radius: 0;
    }
    .dmx-main-slider img {
        border-radius: 0;
    }
    /* Banner Section Mobile */
    .dmx-banner-section {
        padding: 10px 10px 5px 10px;
    }
    /* Categories Section Mobile */
    .dmx-categories-section {
        margin: 0;
    }
    .dmx-categories-box {
        margin: 0;
        padding: 10px;
        border-radius: 0;
    }
    .dmx-categories-scroll {
        gap: 5px;
        padding-bottom: 0;
    }
    .dmx-recently-item {
        flex: 0 0 150px;
    }
    /* Recently Viewed Section Mobile */
    .dmx-recently-viewed.dmx-section {
        margin-bottom: 0;
    }
    .dmx-recently-viewed .dmx-section-box {
        border-radius: 0;
    }
    .dmx-recently-viewed .dmx-slider-1row .dmx-slide-group {
        width: calc(100% + 20px);
    }
    .dmx-recently-viewed .dmx-slider-1row .dmx-products-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 0;
        padding-bottom: 0;
        margin: 0 -10px;
    }
    .dmx-recently-viewed .dmx-slider-1row .dmx-products-grid::-webkit-scrollbar {
        height: 4px;
    }
    .dmx-recently-viewed .dmx-slider-1row .dmx-products-grid::-webkit-scrollbar-thumb {
        background: #ddd;
        border-radius: 4px;
    }
    .dmx-recently-viewed .dmx-slider-1row .dmx-products-grid .col {
        flex: 0 0 50%;
        max-width: 50%;
        width: 50%;
        scroll-snap-align: start;
    }
    .dmx-recently-viewed .dmx-product-card {
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }
    .dmx-recently-viewed .dmx-product-title {
        font-size: 12px;
        line-height: 1.3;
        height: auto;
        max-height: 32px;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
    .dmx-recently-viewed .dmx-product-price {
        font-size: 14px;
    }
    /* General Section Mobile */
    .dmx-section {
        margin-bottom: 0;
    }
    /* Promo Section Mobile */
    .dmx-promo-section .dmx-promo-box {
        padding: 10px;
        border-radius: 0;
    }
    .dmx-promo-tabs {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        gap: 0;
    }
    .dmx-promo-tabs .dmx-tab-btn {
        padding: 1px 10px;
        text-transform: none;
    }
    .dmx-promo-header {
        margin-bottom: 0;
    }
    .dmx-promo-title {
        padding-top: 20px;
    }
    .dmx-promo-content {
        padding: 0;
        border-radius: 0;
        background: none;
    }
    /* Slider 2 Rows Mobile */
    .dmx-slider-2rows .dmx-slider-wrapper {
        width: calc(100% + 10px);
    }
    /* Suggest Section Mobile (Sản phẩm gợi ý) */
    .dmx-suggest-section .dmx-section-box {
        border-radius: 0;
        padding: 20px 10px;
        padding-bottom: 10px;
        margin-top: 5px;
        margin-bottom: 15px;
    }
    /* Category Section Mobile (Sản phẩm theo danh mục) */
    .dmx-category-section .dmx-section-box {
        background: none;
        border-radius: 0;
        padding: 10px;
        overflow: hidden;
    }
    .dmx-category-section .dmx-section-title {
        color: #fff;
    }
    .dmx-category-section .dmx-section-footer {
        text-align: center;
        margin-top: 0;
        padding-top: 0;
        border-top: none;
    }
    .dmx-category-section .dmx-view-all-btn {
        display: inline-block;
        padding: 8px 30px;
        background: #d70018;
        color: #fff;
        border-radius: 8px;
        text-decoration: none;
        font-size: 14px;
        font-weight: 500;
        transition: all 0.3s;
    }
    /* News Section Mobile */
    .dmx-news-box {
        background: #fff !important;
        border-radius: 0 !important;
        padding: 25px 10px !important;
        margin-top: 20px !important;
    }
    /* Home Mobile */
    .dmx-home {
        padding-bottom: 0;
    }
}

/* Slider 2 rows - DMX Custom Style */
.dmx-slider-2rows {
    position: relative;
    padding: 0;
    margin-bottom: 0;
}
.dmx-slider-2rows .dmx-slider-wrapper {
    overflow: hidden;
    width: 100%;
}
.dmx-slider-2rows .dmx-slider-track {
    display: flex;
    transition: transform 0.4s ease;
}
.dmx-slider-2rows .dmx-slide-group {
    width: 100%;
    flex-shrink: 0;
    padding: 0;
}
.dmx-slider-2rows .dmx-products-grid {
    display: flex;
    flex-wrap: wrap;
}
.dmx-slider-2rows .dmx-products-grid .col {
    width: 20%;
    flex: 0 0 20%;
    max-width: 20%;
    padding: 5px;
}
.dmx-slider-2rows .dmx-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: #fff;
    border: none;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.dmx-slider-2rows .dmx-slider-btn:hover {
    box-shadow: 0 3px 12px rgba(0,0,0,0.35);
}
.dmx-slider-2rows .dmx-slider-btn svg {
    width: 20px;
    height: 20px;
    fill: #d70018;
}
.dmx-slider-2rows .dmx-slider-prev {
    left: 5px;
}
.dmx-slider-2rows .dmx-slider-next {
    right: 5px;
}
.dmx-slider-2rows .dmx-slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}
.dmx-slider-2rows .dmx-slider-dot {
    width: 8px;
    height: 8px;
    background: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}
.dmx-slider-2rows .dmx-slider-dot.active {
    background: #d70018;
}
.dmx-promo-section .dmx-slider-2rows .dmx-slider-dot {
    background: rgba(255,255,255,0.5);
}
.dmx-promo-section .dmx-slider-2rows .dmx-slider-dot.active {
    background: #fff;
}
@media (max-width: 992px) {
    .dmx-slider-2rows .dmx-products-grid .col {
        width: 33.333%;
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }
}
@media (max-width: 768px) {
    .dmx-slider-2rows {
        padding: 0;
    }
    .dmx-slider-2rows .dmx-products-grid {
        flex-wrap: wrap;
        margin: 0;
    }
    .dmx-slider-2rows .dmx-products-grid .col {
        width: 50%;
        flex: 0 0 50%;
        max-width: 50%;
    }
    /* Ẩn sản phẩm từ thứ 5 trở đi trên mobile (chỉ hiển thị 4 sản phẩm = 2 hàng x 2 cột) */
    .dmx-slider-2rows .dmx-products-grid .col:nth-child(n+5) {
        display: none;
    }
    .dmx-slider-2rows .dmx-slide-group {
        width: calc(100% + 10px) !important;
        margin: 0;
        padding: 0;
        margin-left: -5px;
    }
    .dmx-slider-2rows .dmx-slider-btn {
        display: none;
    }
    .dmx-slider-2rows .dmx-slider-dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 10px;
        margin-bottom: 10px;
    }
}

/* Slider 1 row - DMX Custom Style */
.dmx-slider-1row {
    position: relative;
    padding: 0;
    margin-bottom: 0;
}
.dmx-slider-1row .dmx-slider-wrapper {
    overflow: hidden;
    width: 100%;
}
.dmx-slider-1row .dmx-slider-track {
    display: flex;
    transition: transform 0.4s ease;
}
.dmx-slider-1row .dmx-slide-group {
    width: 100%;
    flex-shrink: 0;
    padding: 0;
}
.dmx-slider-1row .dmx-products-grid {
    display: flex;
    flex-wrap: nowrap;
}
.dmx-slider-1row .dmx-products-grid .col {
    width: 20%;
    flex: 0 0 20%;
    max-width: 20%;
    padding: 5px;
}
.dmx-slider-1row .dmx-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: #fff;
    border: none;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.dmx-slider-1row .dmx-slider-btn:hover {
    box-shadow: 0 3px 12px rgba(0,0,0,0.35);
}
.dmx-slider-1row .dmx-slider-btn svg {
    width: 20px;
    height: 20px;
    fill: #d70018;
}
.dmx-slider-1row .dmx-slider-prev {
    left: 5px;
}
.dmx-slider-1row .dmx-slider-next {
    right: 5px;
}
.dmx-slider-1row .dmx-slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}
.dmx-slider-1row .dmx-slider-dot {
    width: 8px;
    height: 8px;
    background: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}
.dmx-slider-1row .dmx-slider-dot.active {
    background: #d70018;
}
@media (max-width: 992px) {
    .dmx-slider-1row .dmx-products-grid .col {
        width: 33.333%;
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }
}
@media (max-width: 768px) {
    .dmx-slider-1row .dmx-products-grid .col {
        width: 50%;
        flex: 0 0 50%;
        max-width: 50%;
    }
    .dmx-slider-1row .dmx-slider-btn {
        width: 30px;
        height: 30px;
    }
    .dmx-slider-1row .dmx-slider-btn svg {
        width: 16px;
        height: 16px;
    }
}

/* DMX Load More Button */
.dmx-load-more-wrapper {
    text-align: center;
    padding: 30px 0;
    margin-top: 20px;
}
.dmx-load-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #1a73e8;
    color: #fff;
    border: none;
    padding: 12px 40px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
}
.dmx-load-more-btn:hover {
    background: #1557b0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
}
.dmx-load-more-btn:active {
    transform: translateY(0);
}
.dmx-load-more-btn .icon-spinner {
    animation: dmx-spin 1s linear infinite;
}
@keyframes dmx-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.dmx-product-count {
    margin-top: 15px;
    color: #666;
    font-size: 14px;
}
.dmx-product-count .current-count,
.dmx-product-count .total-count {
    font-weight: 600;
    color: #333;
}

/* Responsive Load More */
@media (max-width: 768px) {
    .dmx-load-more-wrapper {
        padding: 20px 0;
    }
    .dmx-load-more-btn {
        padding: 10px 30px;
        font-size: 14px;
        min-width: 180px;
    }
    .dmx-product-count {
        font-size: 13px;
    }
}

/* ========== DMX NEWS SECTION - New Layout ========== */
.dmx-news-box {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
}
.dmx-news-header {
    margin-bottom: 15px;
    border-bottom: 3px solid #f56504;
    padding-bottom: 10px;
}
.dmx-news-title {
    font-size: 20px;
    font-weight: 700;
    color: #f56504;
    margin: 0;
    text-transform: uppercase;
}
.dmx-news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}
.dmx-news-item {
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.3s ease;
}
.dmx-news-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.dmx-news-link {
    display: flex;
    text-decoration: none;
    height: 100%;
}
.dmx-news-image {
    width: 180px;
    min-width: 180px;
    height: 130px;
    overflow: hidden;
    flex-shrink: 0;
}
.dmx-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.dmx-news-item:hover .dmx-news-image img {
    transform: scale(1.05);
}
.dmx-news-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.dmx-news-placeholder i {
    font-size: 40px;
    color: #ccc;
}
.dmx-news-content {
    padding: 12px 15px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.dmx-news-item-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.dmx-news-excerpt {
    font-size: 13px;
    color: #666;
    margin: 0 0 10px 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}
.dmx-news-readmore {
    font-size: 13px;
    color: #f56504;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: auto;
}
.dmx-news-readmore i {
    font-size: 11px;
    transition: transform 0.2s ease;
}
.dmx-news-item:hover .dmx-news-readmore i {
    transform: translateX(3px);
}

/* Responsive News Grid */
@media (max-width: 992px) {
    .dmx-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .dmx-news-image {
        width: 150px;
        min-width: 150px;
        height: 110px;
    }
}
@media (max-width: 768px) {
    .dmx-news-grid {
        grid-template-columns: 1fr;
    }
    .dmx-news-image {
        width: 140px;
        min-width: 140px;
        height: 100px;
    }
    .dmx-news-item-title {
        font-size: 14px;
    }
    .dmx-news-excerpt {
        font-size: 12px;
        -webkit-line-clamp: 2;
    }
}
@media (max-width: 480px) {
    .dmx-news-image {
        width: 120px;
        min-width: 120px;
        height: 90px;
    }
    .dmx-news-content {
        padding: 10px 12px;
    }
    .dmx-news-item-title {
        font-size: 13px;
        margin-bottom: 5px;
    }
    .dmx-news-excerpt {
        display: none;
    }
}