/*
* Main Stylesheet for Điện Máy Thành Lợi
*/

:root {
    --primary-color: #c8a044;
    --primary-dark: #9c7b2f;
    --primary-light: #f4e099;
    --accent-red: #c8a044;
    --accent-orange: #b88d31;
    --text-dark: #333333;
    --text-muted: #666666;
    --border-color: #dfdfdf;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --font-main: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-dark);
    background-color: #f7f7f7;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--accent-red);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.dm-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* =========================================
   TOPBAR
========================================= */
.dm-topbar {
    background: #333333;
    color: #ffffff;
    font-size: 12px;
    padding: 5px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.dm-topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dm-topbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dm-topbar-sep {
    color: rgba(255,255,255,0.4);
}

.dm-topbar-right a {
    color: #ffffff;
    font-size: 12px;
}

.dm-topbar-right a:hover {
    color: #ffeb3b;
}

/* =========================================
   HEADER
========================================= */
.dm-main-header {
    background: var(--white);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.dm-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    position: relative;
}

.dm-logo-brand {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.1;
    letter-spacing: 0.5px;
}

.dm-logo-sub {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 500;
}

/* Search Box */
.dm-header-search {
    flex: 1;
    max-width: 450px;
    position: relative;
}

.dm-search-form {
    display: flex;
    position: relative;
}

.dm-search-field {
    width: 100%;
    height: 40px;
    padding: 0 45px 0 15px;
    border: 2px solid var(--primary-color);
    border-radius: 4px;
    font-size: 14px;
    outline: none;
}

.dm-search-field:focus {
    border-color: var(--primary-dark);
}

.dm-search-submit {
    position: absolute;
    right: 2px;
    top: 2px;
    bottom: 2px;
    width: 42px;
    background: var(--primary-color);
    border: none;
    color: #fff;
    border-radius: 0 2px 2px 0;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dm-search-submit:hover {
    background: var(--primary-dark);
}

.dm-live-search-results {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 9999;
    border-radius: 0 0 4px 4px;
    max-height: 380px;
    overflow-y: auto;
}

/* Header Hotlines & Promo */
.dm-header-hotline, .dm-header-promo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.dm-icon-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.dm-icon-circle.red {
    background: #ffebee;
    color: var(--accent-red);
}

.dm-header-text {
    display: flex;
    flex-direction: column;
}

.dm-header-text .dm-label {
    font-size: 12px;
    color: var(--text-muted);
}

.dm-header-text .dm-label.bold-red {
    font-weight: 700;
    color: var(--accent-red);
}

.dm-header-text .dm-value {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-color);
}

.dm-header-text .dm-value.small {
    font-size: 11px;
    font-weight: normal;
    color: var(--text-muted);
}

.dm-header-cart a {
    position: relative;
    font-size: 22px;
    color: var(--primary-color);
    padding: 5px;
    display: block;
}

.dm-cart-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: var(--accent-red);
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =========================================
   NAVIGATION BAR
========================================= */
.dm-navbar {
    background: var(--primary-color);
    color: #fff;
    position: relative;
    z-index: 100;
}

.dm-mobile-menu-toggle {
    display: none;
}

.dm-mobile-offcanvas,
.dm-mobile-offcanvas-backdrop {
    display: none;
}

body.dm-offcanvas-open {
    overflow: hidden;
}

.dm-navbar-inner {
    display: flex;
    align-items: stretch;
}

.dm-vertical-menu-wrap {
    width: 260px;
    flex-shrink: 0;
    position: relative;
    display: flex;
}

.dm-vertical-menu-btn {
    background: var(--primary-dark);
    padding: 12px 15px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    border: 0;
}

.dm-vertical-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 260px;
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.dm-vertical-menu-list {
    list-style: none;
}

.dm-vertical-menu-list li {
    border-bottom: 1px solid #f0f0f0;
}

.dm-vertical-menu-list li a {
    display: block;
    padding: 10px 15px;
    color: var(--text-dark);
    font-size: 13px;
    font-weight: 500;
}

.dm-vertical-menu-list li a:hover {
    background: #f8f9fa;
    color: var(--primary-color);
    padding-left: 18px;
}

.dm-primary-nav {
    flex: 1;
    display: flex;
    align-items: stretch;
}

.dm-main-nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0 15px;
}

.dm-main-nav-list li a {
    display: block;
    padding: 12px 18px;
    color: #ffffff;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
}

.dm-main-nav-list li a:hover {
    background: rgba(0,0,0,0.15);
    color: #ffeb3b;
}

/* =========================================
   BREADCRUMBS
========================================= */
.dm-breadcrumbs {
    background: #e9ecef;
    padding: 10px 0;
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--text-muted);
}

.dm-breadcrumbs a {
    color: var(--text-muted);
}

.dm-breadcrumbs a:hover {
    color: var(--primary-color);
}

.dm-breadcrumb-sep {
    margin: 0 6px;
    color: #999;
}

/* =========================================
   HERO & BANNER (HOMEPAGE)
========================================= */
.dm-hero-section {
    display: flex;
    align-items: stretch;
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 30px;
}

.dm-hero-left {
    width: 260px;
    flex-shrink: 0;
    background: #fff;
    border: 1px solid #ddd;
    display: flex;
    flex-direction: column;
}

.dm-hero-cat-list {
    flex: 1;
}

.dm-hero-cat-list .dm-vertical-menu-list li a {
    padding: 10px 15px;
}

.dm-hero-right {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.dm-main-banner-card {
    background: linear-gradient(135deg, #0d47a1 0%, #1976d2 50%, #42a5f5 100%);
    border-radius: 6px;
    padding: 40px 30px;
    color: #fff;
    min-height: 280px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.dm-banner-badge {
    background: var(--accent-red);
    color: #fff;
    display: inline-block;
    padding: 4px 12px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 4px;
    margin-bottom: 12px;
}

.dm-banner-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 6px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.dm-banner-subtitle {
    font-size: 20px;
    font-weight: 600;
    color: #ffeb3b;
    margin-bottom: 20px;
}

.dm-banner-btn {
    display: inline-block;
    background: #ff6600;
    color: #fff;
    padding: 10px 22px;
    font-weight: 700;
    font-size: 13px;
    border-radius: 4px;
    text-transform: uppercase;
}

.dm-banner-btn:hover {
    background: #e65100;
    color: #fff;
}

/* Brand Logos Strip */
.dm-brand-logos-bar {
    display: flex;
    flex-wrap: wrap;
    background: #fff;
    padding: 12px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    align-items: center;
    justify-content: space-around;
    gap: 10px;
}

.dm-brand-item {
    font-size: 14px;
    font-weight: 700;
    color: #555;
    padding: 6px 12px;
    background: #f5f5f5;
    border-radius: 4px;
    text-transform: uppercase;
}

.dm-brand-item:hover {
    background: var(--primary-color);
    color: #fff;
}

/* =========================================
   PRODUCT CARDS & GRIDS
========================================= */
.dm-home-featured-block {
    background: #fff;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    margin-bottom: 30px;
    overflow: hidden;
}

.dm-block-tabs-header {
    display: flex;
    background: #f1f3f5;
    border-bottom: 2px solid var(--primary-color);
}

.dm-tab-btn {
    padding: 12px 24px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    color: #555;
}

.dm-tab-btn.active {
    background: var(--primary-color);
    color: #fff;
}

.dm-featured-products-grid,
.dm-cat-block-grid,
.dm-search-products-grid,
ul.products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    padding: 15px;
    list-style: none;
}

.dm-product-card,
li.product {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 12px;
    position: relative;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

.dm-product-card:hover,
li.product:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Round Red Discount Badge */
.dm-discount-badge,
span.onsale {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--accent-red) !important;
    color: #fff !important;
    font-size: 12px;
    font-weight: 700;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    z-index: 10;
    padding: 0 !important;
    min-height: unset !important;
    line-height: 1 !important;
}

.dm-card-thumb-link {
    display: block;
    margin-bottom: 10px;
    text-align: center;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.dm-card-img {
    max-height: 170px;
    object-fit: contain;
}

.dm-card-title {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 8px;
    height: 76px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
}

.dm-card-title a {
    color: var(--text-dark);
}

.dm-card-title a:hover {
    color: var(--primary-color);
}

.dm-card-price,
span.price {
    margin-top: auto;
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-red);
}

.dm-card-price del,
span.price del {
    color: #999;
    font-size: 12px;
    font-weight: normal;
    margin-right: 5px;
}

.dm-card-price ins,
span.price ins {
    text-decoration: none;
    color: var(--accent-red);
}

.dm-card-btn-view {
    display: block;
    text-align: center;
    background: #f0f4f8;
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 500;
    padding: 6px;
    border-radius: 3px;
    margin-top: 8px;
}

.dm-card-btn-view:hover {
    background: var(--primary-color);
    color: #fff;
}

/* =========================================
   CATEGORY SECTIONS (HOMEPAGE)
========================================= */
.dm-cat-block-section {
    background: #fff;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    margin-bottom: 25px;
    overflow: hidden;
}

.dm-cat-block-header {
    background: var(--primary-color);
    color: #fff;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dm-cat-block-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
}

.dm-cat-block-title a {
    color: #fff;
}

.dm-cat-block-links a {
    color: rgba(255,255,255,0.9);
    font-size: 13px;
    margin-left: 15px;
}

.dm-cat-block-links a:hover {
    color: #ffeb3b;
}

.dm-cat-block-body {
    display: flex;
}

.dm-cat-block-sidebar {
    width: 220px;
    flex-shrink: 0;
    border-right: 1px solid #eee;
    background: #fafafa;
}

.dm-subcat-vertical-list {
    list-style: none;
}

.dm-subcat-vertical-list li a {
    display: block;
    padding: 9px 15px;
    font-size: 13px;
    color: var(--text-dark);
    border-bottom: 1px solid #f0f0f0;
}

.dm-subcat-vertical-list li.active-cat a,
.dm-subcat-vertical-list li a:hover {
    background: #fff;
    color: var(--primary-color);
    font-weight: 600;
    padding-left: 18px;
}

.dm-cat-block-grid {
    flex: 1;
    padding: 15px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.dm-cat-block-grid.columns-5 {
    grid-template-columns: repeat(5, 1fr);
}

/* =========================================
   ARCHIVE & SEARCH LAYOUT
========================================= */
.dm-archive-layout,
.dm-search-page-layout,
.dm-blog-layout {
    display: flex;
    gap: 25px;
    margin-bottom: 40px;
}

.dm-archive-sidebar,
.dm-search-sidebar,
.dm-blog-sidebar {
    width: 260px;
    flex-shrink: 0;
}

.dm-archive-main-content,
.dm-search-main-content,
.dm-blog-main-content {
    flex: 1;
    min-width: 0;
}

.dm-sidebar-header-title {
    background: var(--primary-color);
    color: #fff;
    padding: 10px 15px;
    font-weight: 700;
    font-size: 14px;
    border-radius: 4px 4px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.dm-clear-filter {
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    text-decoration: underline;
    text-transform: none;
}

.dm-archive-layout.dm-no-sidebar .dm-archive-main-content {
    flex: 1;
    width: 100%;
}

.dm-sidebar-box {
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 4px;
}

.dm-sidebar-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--primary-color);
}

.dm-cat-filter-list,
.dm-brand-filter-list,
.dm-price-filter-list {
    list-style: none;
}

.dm-cat-filter-list li,
.dm-brand-filter-list li,
.dm-price-filter-list li {
    margin-bottom: 8px;
}

.dm-cat-filter-list a,
.dm-brand-filter-list a,
.dm-price-filter-list a {
    color: var(--text-dark);
    font-size: 13px;
    display: block;
}

.dm-brand-filter-list a.active-filter,
.dm-price-filter-list a.active-filter,
.dm-cat-filter-list a:hover,
.dm-brand-filter-list a:hover,
.dm-price-filter-list a:hover {
    color: var(--primary-color);
    font-weight: 600;
}

.dm-archive-header {
    background: #fff;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-bottom: 20px;
}

.dm-archive-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.dm-archive-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.dm-archive-main-content .dm-card-title {
    padding-left: 5px !important;
    padding-right: 5px !important;
}

.dm-archive-main-content .dm-card-price,
.dm-search-main-content .dm-card-price {
    padding-left: 5px !important;
    padding-right: 5px !important;
}

/* Filter sidebar (desktop: classic stacked boxes, always expanded) —
   collapses into compact click-to-open pills only on mobile, see the
   max-width:991px override below. */
.dm-archive-filter-sidebar {
    width: 260px;
    flex-shrink: 0;
}

.dm-archive-extra-widgets {
    width: 100%;
    margin-top: 20px;
}

.dm-filter-toolbar {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.dm-filter-pill {
    position: static;
    width: 100%;
}

.dm-filter-pill summary {
    list-style: none;
    cursor: default;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 15px;
    background: var(--primary-color);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px 4px 0 0;
}

.dm-filter-pill summary::-webkit-details-marker {
    display: none;
}

.dm-filter-pill summary::after {
    content: none;
}

.dm-filter-pill-count {
    background: #fff;
    color: var(--primary-color);
    font-size: 10px;
    font-weight: 700;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* No-JS fallback: closed <details> content is hidden by the browser via
   content-visibility on the ::details-content box, so display overrides on
   the panel alone can't reveal it. Force it visible; on mobile the panel
   itself still gets display:none from the max-width:991px override. */
.dm-filter-pill::details-content {
    content-visibility: visible !important;
    display: block !important;
    height: auto !important;
}

.dm-filter-pill-panel {
    display: block !important;
    position: static;
    z-index: auto;
    width: 100%;
    min-width: 0;
    max-height: none;
    overflow-y: visible;
    background: #fff;
    border: 1px solid var(--brand-gray, #ddd);
    border-top: 0;
    border-radius: 0 0 4px 4px;
    box-shadow: none;
    padding: 6px 0;
}

.dm-filter-pill-panel ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dm-filter-pill-panel li a {
    display: block;
    padding: 8px 16px;
    font-size: 13px;
    color: var(--text-dark);
    white-space: nowrap;
}

.dm-filter-pill-panel li a:hover,
.dm-filter-pill-panel li a.active-filter,
.dm-filter-pill-panel li.is-active a {
    background: var(--primary-light, #f5f0e0);
    color: var(--primary-color);
}

.dm-clear-filter-pill {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.dm-clear-filter-pill:hover {
    color: var(--primary-color);
}

@media (max-width: 991px) {
    /* Mobile: convert the sidebar into a compact, click-to-open pill
       toolbar sitting above the product grid instead of a left column. */
    .dm-archive-layout {
        flex-direction: column;
    }

    .dm-archive-filter-sidebar {
        width: 100%;
    }

    .dm-filter-toolbar {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 10px;
        margin-bottom: 15px;
        padding-bottom: 15px;
        border-bottom: 1px solid var(--brand-gray, #e0e0e0);
    }

    .dm-filter-pill {
        position: relative;
        width: auto;
    }

    .dm-filter-pill summary {
        cursor: pointer;
        pointer-events: auto;
        background: #fff;
        color: var(--text-dark);
        border: 1px solid var(--brand-gray, #ddd);
        border-radius: 4px;
        text-transform: none;
        font-weight: 600;
    }

    .dm-filter-pill summary::after {
        content: '\25BE';
        font-size: 11px;
        color: var(--text-muted);
    }

    .dm-filter-pill[open] summary {
        border-color: var(--primary-color);
        color: var(--primary-color);
    }

    .dm-filter-pill-count {
        background: var(--primary-color);
        color: #fff;
    }

    .dm-filter-pill-panel {
        display: none !important;
        position: absolute;
        top: calc(100% + 6px);
        left: 0;
        right: 0;
        z-index: 30;
        width: 100%;
        min-width: 0;
        max-height: 320px;
        overflow-y: auto;
        border: 1px solid var(--brand-gray, #ddd);
        border-radius: 4px;
        box-shadow: 0 6px 18px rgba(0,0,0,.10);
    }

    .dm-filter-pill[open] .dm-filter-pill-panel {
        display: block !important;
    }
}

/* =========================================
   SINGLE PRODUCT PAGE
========================================= */
.dm-single-product-container {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 25px;
    margin-bottom: 30px;
}

.dm-product-top-grid {
    display: flex;
    gap: 30px;
    margin-bottom: 35px;
}

.dm-product-gallery-area {
    width: 420px;
    flex-shrink: 0;
    position: relative;
}

.dm-product-summary-area {
    flex: 1;
}

.dm-single-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.dm-single-price-box {
    background: #fff8f8;
    border: 1px dashed var(--accent-red);
    padding: 12px 18px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-red);
}

.dm-single-price-box del {
    font-size: 16px;
    color: #999;
    font-weight: normal;
    margin-right: 10px;
}

.dm-single-meta-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 13px;
}

.dm-meta-stock {
    color: #2e7d32;
}

.dm-single-showroom-box {
    background: #f8fafd;
    border: 1px solid #d0e1fd;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
}

.dm-sr-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}

.dm-sr-row:last-child {
    margin-bottom: 0;
}

.dm-sr-icon {
    font-size: 16px;
    color: var(--primary-color);
    margin-top: 2px;
}

.dm-sr-icon.red {
    color: var(--accent-red);
}

.dm-sr-title {
    font-size: 12px;
    font-weight: 700;
    color: #444;
    display: block;
}

.dm-sr-text {
    font-size: 13px;
    color: #333;
    display: block;
}

.dm-sr-phone {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-color);
}

.dm-sr-phone.red {
    color: var(--accent-red);
}

.dm-cart-action-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.dm-btn-addtocart {
    background: var(--primary-color) !important;
    color: #fff !important;
    padding: 12px 24px !important;
    font-weight: 700 !important;
    border-radius: 4px !important;
}

.dm-btn-addtocart:hover {
    background: var(--primary-dark) !important;
}

.dm-btn-buynow {
    background: #ff6600 !important;
    color: #fff !important;
    padding: 12px 24px !important;
    font-weight: 700 !important;
    border-radius: 4px !important;
    border: none !important;
    cursor: pointer;
}

.dm-btn-buynow:hover {
    background: #e65100 !important;
}

/* Specifications Table */
.dm-specs-table-wrap {
    margin: 20px 0;
}

.dm-specs-table {
    width: 100%;
    border-collapse: collapse;
}

.dm-specs-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.dm-specs-table td {
    padding: 10px 15px;
    border: 1px solid #e0e0e0;
    font-size: 13px;
}

.dm-specs-table .spec-label {
    width: 240px;
    font-weight: 600;
    color: #444;
    background: #f5f5f5;
}

/* =========================================
   FOOTER STYLING
========================================= */
.dm-footer {
    background: #ffffff;
    border-top: 3px solid var(--primary-color);
    padding-top: 30px;
    margin-top: 40px;
}

.dm-footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.dm-footer-heading {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-transform: uppercase;
}

.dm-footer-links {
    list-style: none;
}

.dm-footer-links li {
    margin-bottom: 8px;
}

.dm-footer-links a {
    color: var(--text-dark);
    font-size: 13px;
}

.dm-footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.dm-social-icons {
    display: flex;
    gap: 10px;
}

.dm-social-icons a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.social-fb { background: #3b5998; }
.social-yt { background: #c4302b; }
.social-zalo { background: #0068ff; }

.dm-payment-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.dm-bank-badge {
    background: #f0f0f0;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 3px;
    color: #555;
    border: 1px solid #ddd;
}

.dm-footer-company-box {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.dm-company-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.dm-company-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 20px;
    font-size: 13px;
}

.dm-bank-info-box {
    grid-column: 1 / -1;
    background: #f8f9fa;
    padding: 10px 15px;
    border-radius: 4px;
    border-left: 3px solid var(--primary-color);
}

.dm-copyright-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    font-size: 12px;
    color: var(--text-muted);
}

.dm-partner-link {
    color: var(--primary-color);
    font-weight: 600;
}

/* Floating Mobile Bar */
.dm-mobile-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 9999;
    height: 55px;
    grid-template-columns: repeat(4, 1fr);
}

.dm-mb-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #555;
    font-size: 11px;
}

.dm-mb-btn i {
    font-size: 16px;
    margin-bottom: 2px;
    color: var(--primary-color);
}

/* =========================================
   UPDATE 1.1.0 - THIÊN TRƯỜNG BRAND & UX
========================================= */
:root {
    --brand-gold: #c8a044;
    --brand-gold-soft: #f4e099;
    --brand-gray: #dfdfdf;
    --brand-charcoal: #333333;
}

body { background: #f7f7f7; }
.dm-main-header { background:#fff; border-bottom-color:var(--brand-gray); }
.dm-site-logo-img { display:block; object-fit:contain; }
.dm-logo-link { display:inline-flex; flex-direction:column; align-items:flex-start; }
.dm-header-logo { flex-shrink:0; }
.dm-logo-sub { margin: 4px 0 0; }
.dm-icon-circle { background:var(--primary-light); color:var(--primary-dark); }
.dm-icon-circle.red { background:var(--primary-light); color:var(--primary-dark); }
.dm-header-text .dm-label.bold-red,
.dm-header-text .dm-value,
.dm-header-cart a { color:var(--primary-dark); }
.dm-search-field { border-color:var(--primary-color); }
.dm-search-submit { background:var(--primary-color); }
.dm-search-submit:hover { background:var(--primary-dark); }
.dm-navbar { background:var(--primary-color); }
.dm-vertical-menu-btn { color:#fff; background:var(--primary-dark); text-align:left; }
.dm-main-nav-list li a:hover { background:rgba(0,0,0,.14); color:#fff; }

/* Selected vertical menu can contain nested WordPress menu levels. */
.dm-vertical-menu-list,
.dm-vertical-menu-list .sub-menu { list-style:none; margin:0; padding:0; }
.dm-vertical-menu-list li { position:relative; }
.dm-vertical-menu-list .sub-menu {
    display:none;
    position:absolute;
    left:100%;
    top:0;
    width:240px;
    background:#fff;
    border:1px solid var(--brand-gray);
    box-shadow:0 5px 14px rgba(0,0,0,.12);
}
.dm-vertical-menu-list li:hover > .sub-menu { display:block; }
.dm-vertical-menu-list .menu-item-has-children > a:after { content:'›'; float:right; }

.dm-vertical-menu-wrap.open-dropdown .dm-vertical-dropdown { display:block; }

.dm-sticky-spacer {
    display: none;
    height: 0;
}

.dm-sticky-spacer.is-active {
    display: block;
}

.dm-main-header.dm-is-sticky {
    position:fixed;
    top:0;
    left:0;
    right:0;
    z-index:9998;
    box-shadow:0 2px 10px rgba(0,0,0,.08);
    animation:dmStickyIn .4s ease;
}
.dm-navbar.dm-is-sticky {
    position:fixed;
    left:0;
    right:0;
    z-index:9999;
    box-shadow:0 4px 12px rgba(0,0,0,.10);
    animation:dmStickyIn .4s ease;
}
@keyframes dmStickyIn { from { transform:translateY(-18px); opacity:0; } to { transform:none; opacity:1; } }
body.admin-bar .dm-main-header.dm-is-sticky { top:32px; }

/* Homepage hero + image-only banner slider. */
body.home .dm-hero-section,
body.front-page .dm-hero-section { margin-top:0; padding-top:0; align-items:stretch; }
.dm-main-banner-card {
    padding:0;
    aspect-ratio: 16 / 9;
    flex: 1;
    border-radius:4px;
    background:#fff;
    box-shadow:none;
    border:1px solid var(--brand-gray);
}
.dm-banner-slides { position:absolute; inset:0; }
.dm-banner-slide { position:absolute; inset:0; opacity:0; visibility:hidden; transition:opacity .45s ease; }
.dm-banner-slide.is-active { opacity:1; visibility:visible; }
.dm-banner-slide img { width:100%; height:100%; object-fit:cover; object-position:center; }
.dm-banner-empty { background:linear-gradient(135deg,#fff 0%,#f4e099 55%,#dfdfdf 100%); }
.dm-banner-arrow {
    position:absolute; top:50%; transform:translateY(-50%); z-index:4;
    width:38px; height:38px; border:0; border-radius:50%;
    background:rgba(255,255,255,.86); color:var(--brand-charcoal); cursor:pointer;
    box-shadow:0 2px 8px rgba(0,0,0,.16);
}
.dm-banner-prev { left:12px; }
.dm-banner-next { right:12px; }
.dm-banner-dots { position:absolute; left:50%; bottom:10px; transform:translateX(-50%); display:flex; gap:7px; z-index:4; }
.dm-banner-dot { width:9px; height:9px; border-radius:50%; border:1px solid #fff; background:rgba(255,255,255,.5); padding:0; cursor:pointer; }
.dm-banner-dot.is-active { background:var(--brand-gold); border-color:var(--brand-gold); }

/* Infinite partner logo strip, each visual slot is 16:9. */
/* Brand logo strip: fixed-width row, JS steps it one logo at a time. */
.dm-brand-logos-bar {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding: 8px 0;
    background: #fff;
}
.dm-brand-track {
    display: flex;
    align-items: center;
    gap: 12px;
    width: max-content;
    min-width: 0;
    transition: transform .6s ease;
    will-change: transform;
}
.dm-brand-item {
    flex:0 0 120px;
    width:120px;
    aspect-ratio:16/9;
    padding:7px;
    background:#fff;
    border:1px solid var(--brand-gray);
    border-radius:3px;
    display:flex;
    align-items:center;
    justify-content:center;
}
.dm-brand-item img { width:100%; height:100%; object-fit:contain; }

/* Product tabs are real switchable panels. */
.dm-tab-btn { border:0; background:transparent; font:inherit; }
.dm-tab-btn.active { background:var(--primary-color); color:#fff; }
.dm-tab-panel[hidden] { display:none !important; }

/* Fix WooCommerce clearfix pseudo-elements consuming the first CSS-grid cell. */
ul.products::before,
ul.products::after,
.woocommerce ul.products::before,
.woocommerce ul.products::after { content:none !important; display:none !important; }
ul.products,
.woocommerce ul.products { clear:none !important; }
ul.products li.product,
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
.dm-product-card {
    float:none !important;
    width:auto !important;
    margin:0 !important;
    clear:none !important;
    list-style:none !important;
}
.dm-featured-products-grid.products,
.dm-cat-block-grid.products,
.dm-search-products-grid.products { margin:0; }
.dm-card-inner { display:flex; flex-direction:column; height:100%; }
.dm-card-info { display:flex; flex-direction:column; flex:1; }
.dm-product-card:hover { border-color:var(--primary-color); }
.dm-discount-badge, span.onsale { background:var(--primary-color) !important; }
.dm-card-btn-view { color:var(--primary-dark); background:#faf6e9; }
.dm-card-btn-view:hover { background:var(--primary-color); }
.dm-card-price, span.price, .dm-card-price ins, span.price ins { color:#8d6a1f; }

.dm-cat-block-header { background:var(--primary-color); }
.dm-cat-block-title a,
.dm-cat-block-links a { color:#fff; }
.dm-cat-block-links a:hover { color:#fff7d6; }

/* Archive / search. */
.dm-sidebar-header-title { background:var(--primary-color); }
.dm-sidebar-title { border-bottom-color:var(--primary-color); }
.dm-cat-filter-list li.is-active > a { color:var(--primary-dark); font-weight:700; }
.dm-archive-title { color:var(--primary-dark); }
.dm-archive-toolbar .woocommerce-ordering { margin:0; }
.dm-archive-toolbar select,
.dm-catalog-ordering select { min-width:190px; height:36px; border:1px solid #ccc; background:#fff; padding:0 10px; }
.dm-search-pagination { margin-top:20px; }
.woocommerce-pagination ul { display:flex; gap:5px; list-style:none; justify-content:center; }
.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span { display:flex; min-width:34px; height:34px; align-items:center; justify-content:center; border:1px solid var(--brand-gray); background:#fff; }
.woocommerce-pagination ul li span.current { background:var(--primary-color); color:#fff; border-color:var(--primary-color); }

/* Single product custom gallery. */
.dm-product-gallery-area { width:470px; }
.dm-gallery-main {
    width:100%;
    aspect-ratio:1/1;
    border:1px solid var(--brand-gray);
    background:#fff;
    padding:12px;
    cursor:zoom-in;
    display:flex;
    align-items:center;
    justify-content:center;
}
.dm-gallery-main img { width:100%; height:100%; object-fit:contain; transform:none !important; }
.dm-gallery-main:hover img { transform:none !important; }
.dm-gallery-thumbs-wrap { display:flex; align-items:center; gap:7px; margin-top:10px; }
.dm-gallery-thumbs-viewport { overflow:hidden; flex:1; min-width:0; }
.dm-gallery-thumbs-track { display:flex; transition:transform .25s ease; will-change:transform; }
.dm-gallery-thumb { flex:0 0 25%; aspect-ratio:1/1; padding:4px; border:1px solid var(--brand-gray); background:#fff; cursor:pointer; }
.dm-gallery-thumb.is-active { border:2px solid var(--primary-color); }
.dm-gallery-thumb img { width:100%; height:100%; object-fit:contain; }
.dm-gallery-thumb-nav { flex:0 0 30px; width:30px; height:42px; border:1px solid var(--brand-gray); background:#fff; color:var(--brand-charcoal); cursor:pointer; }
.dm-gallery-thumb-nav:hover { border-color:var(--primary-color); color:var(--primary-dark); }

.dm-product-lightbox {
    position:fixed; inset:0; z-index:100000; background:rgba(0,0,0,.88);
    display:none; align-items:center; justify-content:center; padding:40px 70px;
}
.dm-product-lightbox.is-open { display:flex; }
.dm-lightbox-stage { max-width:min(1100px,90vw); max-height:86vh; display:flex; align-items:center; justify-content:center; }
.dm-lightbox-stage img { max-width:100%; max-height:86vh; object-fit:contain; }
.dm-lightbox-close { position:absolute; top:18px; right:24px; width:44px; height:44px; border:0; background:transparent; color:#fff; font-size:40px; line-height:1; cursor:pointer; }
.dm-lightbox-nav { position:absolute; top:50%; transform:translateY(-50%); width:48px; height:64px; border:0; background:rgba(255,255,255,.14); color:#fff; font-size:22px; cursor:pointer; }
.dm-lightbox-prev { left:18px; }
.dm-lightbox-next { right:18px; }
.dm-lightbox-counter { position:absolute; bottom:15px; left:50%; transform:translateX(-50%); color:#fff; font-size:13px; }
html.dm-lightbox-lock { overflow:hidden; }

.dm-single-price-box { border-color:var(--primary-color); color:#8d6a1f; background:#fffdf6; }
.dm-sr-icon, .dm-sr-phone, .dm-btn-addtocart { color:var(--primary-dark); }
.dm-btn-addtocart { background:var(--primary-color) !important; }
.dm-btn-addtocart:hover { background:var(--primary-dark) !important; }
.dm-btn-buynow { background:#3c3c3c !important; }
.dm-btn-buynow:hover { background:#222 !important; }
.dm-cart-action-row .quantity { margin:0 !important; }
.dm-cart-action-row .quantity .qty {
    width:46px !important;
    min-width:46px !important;
    height:46px !important;
    padding:0 4px !important;
    border:1px solid #aaa !important;
    border-radius:0 !important;
    text-align:center;
}

/* Exactly 3 product tabs. Description has 800px content + empty right sidebar. */
.dm-product-tabs-area .woocommerce-tabs ul.tabs { display:flex; flex-wrap:wrap; list-style:none; margin:0 0 18px; padding:0; border-bottom:1px solid var(--brand-gray); }
.dm-product-tabs-area .woocommerce-tabs ul.tabs::before,
.dm-product-tabs-area .woocommerce-tabs ul.tabs::after { content:none !important; display:none !important; }
.dm-product-tabs-area .woocommerce-tabs ul.tabs li { margin:0; border:1px solid var(--brand-gray); border-bottom:0; background:#f7f7f7; border-radius:0; }
.dm-product-tabs-area .woocommerce-tabs ul.tabs li a { display:block; padding:11px 18px; color:#444; font-weight:700; white-space:nowrap; }
.dm-product-tabs-area .woocommerce-tabs ul.tabs li.active { background:#fff; border-top:2px solid var(--primary-color); }
.dm-product-tabs-area .woocommerce-tabs ul.tabs li.active a { color:var(--primary-dark); }
.dm-product-tabs-area .woocommerce-Tabs-panel { margin:0; padding:0; }

/* Description tab content is arbitrary WYSIWYG HTML the admin pastes in —
   without these, a wide image/table/unbroken URL inside it can force the
   whole page wider than the viewport, on both desktop and mobile. Content
   pasted from Word/other editors often carries inline width="..." / style
   attributes, which normal CSS can't override — so this uses !important on
   every descendant to guarantee everything shrinks to fit instead of
   overflowing or requiring horizontal scroll. */
.dm-product-tabs-area {
    max-width: 100%;
    overflow-x: hidden;
}
.dm-product-tabs-area .woocommerce-Tabs-panel,
.dm-product-tabs-area .woocommerce-Tabs-panel * {
    max-width: 100% !important;
    box-sizing: border-box !important;
}
.dm-product-tabs-area .woocommerce-Tabs-panel {
    overflow-wrap: break-word;
    word-break: break-word;
}
.dm-product-tabs-area .woocommerce-Tabs-panel img,
.dm-product-tabs-area .woocommerce-Tabs-panel video,
.dm-product-tabs-area .woocommerce-Tabs-panel iframe,
.dm-product-tabs-area .woocommerce-Tabs-panel embed,
.dm-product-tabs-area .woocommerce-Tabs-panel object {
    height: auto !important;
}
.dm-product-tabs-area .woocommerce-Tabs-panel pre,
.dm-product-tabs-area .woocommerce-Tabs-panel code {
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
}
.dm-description-layout { display:grid; grid-template-columns:minmax(0,800px) minmax(220px,1fr); gap:28px; align-items:start; }
.dm-description-content { max-width:800px; min-width:0; }
.dm-description-content img { height:auto; }
.dm-description-sidebar { min-height:260px; border-left:1px solid #eee; }
.dm-specs-table-wrap { max-width:100%; }
.dm-related-products-area .related > h2 { font-size:18px; color:var(--primary-dark); margin:28px 0 12px; text-transform:uppercase; }
.dm-related-products-area ul.products { grid-template-columns:repeat(5,minmax(0,1fr)); padding:0; }

/* Footer: custom column stays inside its own width and copyright bar is removed. */
.dm-footer { border-top-color:var(--primary-color); }
.dm-footer-heading, .dm-company-title { color:var(--primary-dark); }
.dm-footer-custom-image,
.dm-footer-custom-html { width:100%; max-width:100%; overflow:hidden; }
.dm-footer-custom-image img { width:100%; max-width:100%; height:auto; object-fit:contain; }
.dm-footer-custom-html iframe,
.dm-footer-custom-html img,
.dm-footer-custom-html video,
.dm-footer-custom-html table { max-width:100% !important; }
.dm-bank-owner { margin-left:10px; }

.dm-search-loading { padding:15px; text-align:center; }

/* WooCommerce global brand accents (cart / checkout / notices). */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
    background:var(--primary-color);
    color:#fff;
    border-radius:3px;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
    background:var(--primary-dark);
    color:#fff;
}
.woocommerce-message,
.woocommerce-info { border-top-color:var(--primary-color); }
.woocommerce-message::before,
.woocommerce-info::before { color:var(--primary-color); }
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus { border-color:var(--primary-color); outline:none; box-shadow:0 0 0 1px var(--primary-light); }