/* ==========================================================================
   dmxc.css — Giao diện mới dammexecung.com (header, footer, thẻ sản phẩm, trang chủ...)
   Nạp sau CSS của theme cũ (homepage/common/head.blade.php).
   Tất cả class bắt đầu bằng "dx-" để không đụng giao diện cũ.
   Đổi màu thương hiệu: sửa biến ở mục 1.
   ========================================================================== */

/* ---------- 1. Biến ---------- */
:root {
    --dx-or: #f97316;
    --dx-or2: #ea580c;
    --dx-or-soft: #fff4ec;
    --dx-dark: #1f2329;
    --dx-navy: #111827;
    --dx-bg: #f4f5f7;
    --dx-line: #e8eaee;
    --dx-tx: #1b1f27;
    --dx-mut: #6b7280;
    --dx-radius: 14px;
    --dx-shadow: 0 2px 10px rgba(17, 24, 39, .06);
    --dx-shadow-h: 0 14px 30px rgba(17, 24, 39, .12);
    --dx-font: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; /* font hệ thống giống macone.vn (trước: 'Be Vietnam Pro') */
}

/* ---------- 2. Nền tảng ---------- */
body.dx-body, .dx-body {
    font-family: var(--dx-font);
    color: var(--dx-tx);
    background: var(--dx-bg);
    font-size: 15px;
}
.dx-body h1, .dx-body h2, .dx-body h3, .dx-body h4, .dx-body h5, .dx-body h6,
.dx-body a, .dx-body button, .dx-body input, .dx-body select, .dx-body textarea { font-family: var(--dx-font); }
.dx-container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 16px; box-sizing: border-box; }
.dx-container *, .dx-header *, .dx-footer * { box-sizing: border-box; }
.dx-body a { text-decoration: none; }
.dx-body img { max-width: 100%; }
.dx-section { padding: 36px 0; }
.dx-section-title { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 0 0 18px; text-align: center; }
.dx-section-title h2 { font-size: 30px; font-weight: 800; margin: 0; color: var(--dx-tx); letter-spacing: -.3px; }
.dx-section-title img { height: 34px; width: auto; }
.dx-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.dx-section-head h2 { font-size: 24px; font-weight: 800; margin: 0; }
.dx-more { color: var(--dx-or2); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; transition: gap .2s; }
.dx-more:hover { gap: 10px; color: var(--dx-or); }
.dx-more svg { width: 16px !important; height: 16px !important; flex-shrink: 0; transition: transform .2s; }
.dx-more:hover svg { transform: translateX(3px); }
.dx-more-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 22px; border: 1.5px solid var(--dx-or); border-radius: 999px; color: var(--dx-or2) !important;
    font-weight: 700; font-size: 14px; background: #fff; transition: all .2s; white-space: nowrap; }
.dx-more-btn:hover { background: var(--dx-or); color: #fff !important; box-shadow: 0 8px 18px rgba(249, 115, 22, .3); transform: translateY(-2px); }
.dx-more-btn svg { width: 16px; height: 16px; transition: transform .2s; }
.dx-more-btn:hover svg { transform: translateX(3px); }
.dx-hero-nav svg, .dx-btn svg { flex-shrink: 0; }

/* ---------- 3. Nút ---------- */
.dx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 10px; padding: 11px 22px;
    font-weight: 700; font-size: 15px; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s, color .2s; line-height: 1.2; }
.dx-btn-or { background: linear-gradient(135deg, var(--dx-or), var(--dx-or2)); color: #fff !important; box-shadow: 0 6px 16px rgba(249, 115, 22, .3); }
.dx-btn-or:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(249, 115, 22, .4); }
.dx-btn-or:active { transform: translateY(0); }
.dx-btn-line { background: #fff; color: var(--dx-or2) !important; border: 1.5px solid var(--dx-or); }
.dx-btn-line:hover { background: var(--dx-or-soft); transform: translateY(-2px); }
.dx-btn svg { width: 18px; height: 18px; }

/* ---------- 4. Header ---------- */
.dx-topbar { background: var(--dx-dark); color: #d1d5db; font-size: 13px; }
.dx-topbar .dx-container { display: flex; justify-content: space-between; align-items: center; height: 36px; }
.dx-topbar a { color: #d1d5db; transition: color .2s; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; line-height: 1; }
.dx-topbar a:hover { color: #fff; }
.dx-topbar .dx-tb-left, .dx-topbar .dx-tb-right { display: flex; align-items: center; gap: 18px; }
.dx-topbar .dx-tb-right a + a { border-left: 1px solid #4b5563; padding-left: 18px; }
.dx-topbar svg { width: 14px; height: 14px; display: inline-block !important; flex-shrink: 0; margin: 0; }

.dx-header { background: #fff; position: sticky; top: 0; z-index: 999; transition: box-shadow .25s; }
.dx-header.is-stuck { box-shadow: 0 6px 20px rgba(17, 24, 39, .08); }
.dx-head-main .dx-container { display: flex; align-items: center; gap: 28px; height: 74px; }
.dx-logo img { height: 46px; width: auto; display: block; transition: transform .25s; }
.dx-logo:hover img { transform: scale(1.03); }
.dx-search { flex: 1; display: flex; max-width: 620px; border: 1.5px solid var(--dx-line); border-radius: 10px; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.dx-search:focus-within { border-color: var(--dx-or); box-shadow: 0 0 0 4px rgba(249, 115, 22, .12); }
.dx-search input { flex: 1; border: 0 !important; outline: 0; padding: 0 14px; height: 42px; font-size: 14px; background: #fff; box-shadow: none !important; }
.dx-search button { border: 0; background: var(--dx-or); color: #fff; width: 54px; cursor: pointer; transition: background .2s; }
.dx-search button:hover { background: var(--dx-or2); }
.dx-search button svg { width: 20px; height: 20px; }
.dx-actions { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.dx-action { display: flex; align-items: center; gap: 8px; color: var(--dx-tx) !important; font-size: 13px; line-height: 1.2; position: relative; transition: color .2s; }
.dx-action:hover { color: var(--dx-or2) !important; }
.dx-action svg { width: 26px; height: 26px; transition: transform .2s; }
.dx-action:hover svg { transform: translateY(-2px); }
.dx-action b { display: block; font-size: 14px; }
.dx-action small { color: var(--dx-mut); font-size: 12px; }
.dx-badge { position: absolute; top: -8px; left: 16px; background: var(--dx-or); color: #fff; font-size: 11px; font-weight: 700; min-width: 18px; height: 18px;
    border-radius: 999px; display: flex; align-items: center; justify-content: center; padding: 0 4px; border: 2px solid #fff; }

.dx-nav { border-top: 1px solid #f1f2f4; }
.dx-nav .dx-container { display: flex; align-items: center; gap: 8px; height: 50px; }
.dx-cat-btn { background: var(--dx-or); color: #fff !important; border-radius: 8px; padding: 0 16px; height: 38px; display: inline-flex; align-items: center; gap: 8px;
    font-weight: 700; font-size: 14px; position: relative; cursor: pointer; transition: background .2s; white-space: nowrap; }
.dx-cat-btn:hover { background: var(--dx-or2); }
.dx-cat-btn svg { width: 18px; height: 18px; }
.dx-menu { display: flex; align-items: center; justify-content: space-between; flex: 1; list-style: none; margin: 0 0 0 20px; padding: 0; }
.dx-menu > li { position: relative; }
.dx-menu > li > a { display: inline-flex; align-items: center; gap: 4px; padding: 14px 10px; color: var(--dx-tx); font-weight: 700; font-size: 14.5px; position: relative; transition: color .2s; }
.dx-menu > li > a:after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 8px; height: 2px; background: var(--dx-or); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.dx-menu > li:hover > a { color: var(--dx-or2); }
.dx-menu > li:hover > a:after { transform: scaleX(1); }
.dx-menu .dx-caret { width: 14px; height: 14px; color: var(--dx-or); transition: transform .2s; }
.dx-menu > li:hover .dx-caret { transform: rotate(180deg); }
.dx-sub, .dx-cat-drop { position: absolute; top: 100%; left: 0; min-width: 230px; background: #fff; border-radius: 12px; box-shadow: var(--dx-shadow-h); padding: 8px; list-style: none;
    margin: 0; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .2s, transform .2s, visibility .2s; z-index: 50; }
.dx-menu > li:hover > .dx-sub, .dx-cat-btn:hover .dx-cat-drop, .dx-cat-btn:focus-within .dx-cat-drop { opacity: 1; visibility: visible; transform: translateY(0); }
.dx-sub a, .dx-cat-drop a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--dx-tx) !important; font-weight: 500; font-size: 14px; transition: background .15s, color .15s, padding .15s; }
.dx-sub a:hover, .dx-cat-drop a:hover { background: var(--dx-or-soft); color: var(--dx-or2) !important; padding-left: 16px; }
.dx-cat-drop { top: calc(100% + 6px); }

.dx-burger { display: none; width: 42px; height: 42px; flex-shrink: 0; border: 0; border-radius: 12px; background: var(--dx-or-soft) !important; color: var(--dx-or2) !important; cursor: pointer; line-height: 0;
    align-items: center; justify-content: center; transition: background .2s, color .2s, transform .2s, box-shadow .2s; }
.dx-burger svg { width: 22px; height: 22px; transition: transform .3s; }
.dx-burger:hover, .dx-burger.on { background: var(--dx-or) !important; color: #fff !important; box-shadow: 0 6px 14px rgba(249, 115, 22, .35); }
.dx-burger:active { transform: scale(.92); }
.dx-burger.on svg { transform: rotate(90deg); }
.dx-head-main .dx-mobile-search { display: none; }

/* Menu mobile (trượt từ trái) */
.dx-drawer { position: fixed; inset: 0; z-index: 10000; visibility: hidden; }
.dx-drawer.open { visibility: visible; }
.dx-drawer-bg { position: absolute; inset: 0; background: rgba(0, 0, 0, .45); opacity: 0; transition: opacity .25s; }
.dx-drawer.open .dx-drawer-bg { opacity: 1; }
.dx-drawer-panel { position: absolute; left: 0; top: 0; bottom: 0; width: 320px; max-width: 88%; background: #fff; transform: translateX(-100%); transition: transform .32s cubic-bezier(.2, .8, .2, 1);
    display: flex; flex-direction: column; box-shadow: 10px 0 30px rgba(0, 0, 0, .2); border-radius: 0 18px 18px 0; overflow: hidden; }
.dx-drawer.open .dx-drawer-panel { transform: translateX(0); }
.dx-dr-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid #f1f2f4; }
.dx-dr-logo img { height: 36px; width: auto; display: block; }
.dx-dr-close { width: 38px; height: 38px; border: 0; border-radius: 50%; background: #f3f4f6; color: var(--dx-tx); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s, color .2s, transform .3s; }
.dx-dr-close svg { width: 20px; height: 20px; }
.dx-dr-close:hover { background: var(--dx-or); color: #fff; transform: rotate(90deg); }
.dx-dr-acc { display: flex; gap: 8px; padding: 14px 16px 6px; }
.dx-dr-acc .dx-btn { flex: 1; padding: 10px; font-size: 14px; }
.dx-dr-acc .dx-btn svg { width: 18px; height: 18px; }
.dx-dr-body { flex: 1; overflow-y: auto; padding: 4px 12px 16px; }
.dx-dr-title { font-size: 11.5px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: #9ca3af; padding: 14px 8px 6px; }
.dx-dr-menu { list-style: none; margin: 0; padding: 0; }
.dx-dr-menu > li { border-radius: 10px; transition: background .2s; }
.dx-dr-menu .row { display: flex; align-items: center; }
.dx-dr-menu .row > a { flex: 1; display: block; padding: 11px 10px; color: var(--dx-tx) !important; font-weight: 600; font-size: 15px; border-radius: 10px; transition: color .2s, background .2s, padding .2s; }
.dx-dr-menu .row > a:hover, .dx-dr-menu .row > a:active { background: var(--dx-or-soft); color: var(--dx-or2) !important; padding-left: 14px; }
.dx-dr-menu .tg { width: 36px; height: 36px; flex-shrink: 0; border: 0; border-radius: 9px; background: transparent; color: #9ca3af; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s, color .2s; }
.dx-dr-menu .tg svg { width: 16px; height: 16px; transition: transform .25s; }
.dx-dr-menu .tg:hover { background: #f3f4f6; color: var(--dx-or2); }
.dx-dr-menu li.open > .row .tg { color: var(--dx-or2); }
.dx-dr-menu li.open > .row .tg svg { transform: rotate(180deg); }
.dx-dr-menu li.open { background: #fafafa; }
.dx-dr-menu ul { list-style: none; margin: 0; padding: 0 0 6px 12px; display: none; }
.dx-dr-menu li.open > ul { display: block; animation: dxDrIn .25s ease; }
.dx-dr-menu ul a { display: block; padding: 8px 10px 8px 14px; color: #4b5563 !important; font-size: 14px; border-left: 2px solid #eceef1; transition: color .2s, border-color .2s, padding .2s; }
.dx-dr-menu ul a:hover { color: var(--dx-or2) !important; border-left-color: var(--dx-or); padding-left: 18px; }
.dx-dr-hotline { display: flex; align-items: center; gap: 12px; margin: 0 12px 14px; padding: 12px 14px; border-radius: 14px; background: linear-gradient(135deg, var(--dx-or), var(--dx-or2)); color: #fff !important; box-shadow: 0 8px 18px rgba(249, 115, 22, .3); }
.dx-dr-hotline .ic { width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .2); display: flex; align-items: center; justify-content: center; }
.dx-dr-hotline .ic svg { width: 19px; height: 19px; }
.dx-dr-hotline small { display: block; font-size: 12px; opacity: .9; }
.dx-dr-hotline b { font-size: 16px; }
@keyframes dxDrIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ---------- 5. Thẻ sản phẩm ---------- */
.dx-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.dx-card { background: #fff; border-radius: var(--dx-radius); overflow: hidden; box-shadow: var(--dx-shadow); display: flex; flex-direction: column;
    transition: transform .25s, box-shadow .25s; position: relative; height: 100%; }
.dx-card:hover { transform: translateY(-5px); box-shadow: var(--dx-shadow-h); }
.dx-card-img { display: block; position: relative; aspect-ratio: 1 / 1; background: #fff; overflow: hidden; }
.dx-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; display: block; }
.dx-card:hover .dx-card-img img { transform: scale(1.06); }
.dx-card-label { position: absolute; top: 10px; left: 10px; z-index: 2; color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 6px; }
/* Hàng nhãn phía trên ảnh (không đè lên ảnh) */
.dx-card-tags { display: flex; justify-content: space-between; align-items: center; gap: 6px; height: 34px; padding: 0 10px; }
.dx-card-tags .dx-card-label, .dx-card-tags .dx-card-sale { position: static; font-size: 12px; padding: 3px 9px; border-radius: 999px; line-height: 1.4; white-space: nowrap; }
.dx-card-sale { position: absolute; top: 10px; right: 10px; z-index: 2; background: #e30019; color: #fff; font-size: 12px; font-weight: 700; padding: 4px 8px; border-radius: 6px; }
.dx-card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.dx-card-title { font-size: 15px; font-weight: 700; line-height: 1.4; margin: 0; color: var(--dx-tx);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 42px; }
.dx-card-title a { color: inherit !important; transition: color .2s; }
.dx-card-title a:hover { color: var(--dx-or2) !important; }
.dx-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.dx-price { font-size: 17px; font-weight: 800; color: var(--dx-or2); white-space: nowrap; }
.dx-price-old { font-size: 13px; color: #9ca3af; text-decoration: line-through; font-weight: 500; white-space: nowrap; }
.dx-card-foot > div { min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 6px; row-gap: 0; }
.dx-card-foot .dx-cart-btn { flex-shrink: 0; }
.dx-cart-btn { width: 36px; height: 36px; border-radius: 9px; border: 1.5px solid var(--dx-or); color: var(--dx-or2) !important; display: inline-flex; align-items: center; justify-content: center;
    transition: background .2s, color .2s, transform .2s; flex-shrink: 0; }
.dx-cart-btn:hover { background: var(--dx-or); color: #fff !important; transform: scale(1.08); }
.dx-cart-btn svg { width: 18px; height: 18px; }

/* ---------- 6. Tab / chip ---------- */
.dx-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 20px; }
.dx-tab { border: 1.5px solid var(--dx-line); background: #fff; border-radius: 999px; padding: 7px 18px; font-weight: 600; font-size: 14px; color: var(--dx-tx); cursor: pointer;
    transition: all .2s; }
.dx-tab:hover { border-color: var(--dx-or); color: var(--dx-or2); }
.dx-tab.on { background: var(--dx-or); border-color: var(--dx-or); color: #fff; box-shadow: 0 6px 14px rgba(249, 115, 22, .3); }
.dx-tab-panel { display: none; }
.dx-tab-panel.on { display: block; animation: dxFade .35s ease; }
@keyframes dxFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- 7. Trang chủ ---------- */
.dx-hero { position: relative; overflow: hidden; background: #1f2329; }
.dx-hero-track { display: flex; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.dx-hero-slide { min-width: 100%; position: relative; }
.dx-hero-slide img { width: 100%; height: auto; display: block; }
.dx-hero-slide.has-text img { height: 460px; object-fit: cover; }
.dx-hero-slide.has-text:after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255, 255, 255, .92) 0%, rgba(255, 255, 255, .75) 32%, rgba(255, 255, 255, 0) 60%); }
.dx-hero-text { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; }
.dx-hero-text .dx-container { }
.dx-hero-text small { color: var(--dx-or2); font-weight: 800; letter-spacing: .5px; text-transform: uppercase; font-size: 14px; }
.dx-hero-text h1 { font-size: 46px; line-height: 1.12; font-weight: 900; margin: 10px 0 12px; color: var(--dx-tx); max-width: 560px; text-transform: uppercase; }
.dx-hero-text p { font-size: 17px; color: #374151; max-width: 480px; margin: 0 0 22px; }
.dx-hero-slide.on .dx-hero-text > .dx-container > * { animation: dxUp .7s ease both; }
.dx-hero-slide.on .dx-hero-text h1 { animation-delay: .1s; }
.dx-hero-slide.on .dx-hero-text p { animation-delay: .2s; }
.dx-hero-slide.on .dx-hero-text .dx-btn { animation-delay: .3s; }
@keyframes dxUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.dx-hero-dots { position: absolute; left: 0; right: 0; bottom: 18px; display: flex; justify-content: center; gap: 8px; z-index: 3; }
.dx-hero-dots button { width: 10px; height: 10px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .6); cursor: pointer; transition: width .3s, background .3s; padding: 0; }
.dx-hero-dots button.on { width: 28px; background: var(--dx-or); }
.dx-hero-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .85);
    cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s, transform .2s; }
.dx-hero-nav:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.dx-hero-nav.prev { left: 16px; } .dx-hero-nav.next { right: 16px; }

.dx-cat-block { background: transparent; }
.dx-cat-block + .dx-cat-block { padding-top: 10px; }

.dx-features { background: #fff; border-radius: var(--dx-radius); box-shadow: var(--dx-shadow); display: grid; grid-template-columns: repeat(4, 1fr); padding: 18px 10px; }
.dx-feature { display: flex; align-items: center; gap: 12px; padding: 6px 14px; }
.dx-feature + .dx-feature { border-left: 1px solid var(--dx-line); }
.dx-feature .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--dx-or-soft); color: var(--dx-or2); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    transition: transform .3s; }
.dx-feature:hover .ic { transform: rotate(-8deg) scale(1.08); }
.dx-feature .ic svg { width: 24px; height: 24px; }
.dx-feature b { display: block; font-size: 14.5px; }
.dx-feature small { color: var(--dx-mut); font-size: 13px; }

.dx-banner { position: relative; border-radius: 0; overflow: hidden; min-height: 300px; display: flex; align-items: center; background: #222 center/cover no-repeat; }
.dx-banner:before { content: ""; position: absolute; inset: 0; background: linear-gradient(270deg, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, .8) 40%, rgba(255, 255, 255, 0) 65%); }
.dx-banner .dx-container { position: relative; z-index: 2; display: flex; justify-content: flex-end; }
.dx-banner-text { max-width: 520px; }
.dx-banner-text h2 { font-size: 38px; font-weight: 900; margin: 6px 0 14px; line-height: 1.15; }

.dx-news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.dx-news { background: #fff; border-radius: var(--dx-radius); box-shadow: var(--dx-shadow); display: flex; gap: 14px; padding: 12px; transition: transform .25s, box-shadow .25s; }
.dx-news:hover { transform: translateY(-4px); box-shadow: var(--dx-shadow-h); }
.dx-news-img { width: 42%; flex-shrink: 0; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; }
.dx-news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.dx-news:hover .dx-news-img img { transform: scale(1.07); }
.dx-news h3 { font-size: 15px; font-weight: 700; line-height: 1.4; margin: 0 0 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dx-news h3 a { color: var(--dx-tx) !important; }
.dx-news h3 a:hover { color: var(--dx-or2) !important; }
.dx-news p { font-size: 13px; color: var(--dx-mut); margin: 0 0 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dx-news .date { font-size: 12px; color: var(--dx-mut); }

.dx-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.dx-gallery a { border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; display: block; }
.dx-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.dx-gallery a:hover img { transform: scale(1.08); }

.dx-reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.dx-review { background: #fff; border-radius: var(--dx-radius); box-shadow: var(--dx-shadow); padding: 18px; display: flex; gap: 14px; }
.dx-review .av { width: 48px; height: 48px; border-radius: 50%; background: var(--dx-or-soft); color: var(--dx-or2); display: flex; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0; overflow: hidden; }
.dx-review .stars { color: #f59e0b; letter-spacing: 1px; font-size: 14px; }
.dx-review p { margin: 6px 0 0; color: #374151; font-size: 14px; font-style: italic; }

/* ---------- 8. Footer ---------- */
.dx-foot-feats { background: #262a31; color: #fff; margin-top: 30px; border-top: 3px solid var(--dx-or); }
.dx-foot-feats .dx-container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding-top: 22px; padding-bottom: 22px; }
.dx-foot-feat { display: flex; align-items: center; gap: 14px; }
.dx-foot-feat .ic { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 12px; background: rgba(249, 115, 22, .14); color: var(--dx-or); display: flex; align-items: center; justify-content: center; transition: transform .3s, background .3s, color .3s; }
.dx-foot-feat:hover .ic { transform: translateY(-3px) rotate(-6deg); background: var(--dx-or); color: #fff; }
.dx-foot-feat .ic svg { width: 24px; height: 24px; }
.dx-foot-feat b { display: block; font-size: 14.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .2px; }
.dx-foot-feat small { display: block; color: #c4c9d2; font-size: 13.5px; margin-top: 2px; }
.dx-footer { background: #15181d; color: #c4c9d2; font-size: 14px; line-height: 1.6; }
.dx-footer .dx-foot-main { display: grid; grid-template-columns: 1.2fr 1.3fr 1fr 1fr; gap: 34px; padding: 42px 0 30px; }
.dx-footer .dx-foot-main.cols-3 { grid-template-columns: 1.2fr 1.3fr 1fr; }
.dx-footer .dx-foot-main.cols-2 { grid-template-columns: 1fr 1fr; }
.dx-footer h4 { color: #fff; font-size: 15.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .3px; margin: 0 0 16px; position: relative; padding-bottom: 10px; }
.dx-footer h4:after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 2px; border-radius: 2px; background: var(--dx-or); }
.dx-footer h4.mt { margin-top: 20px; }
.dx-footer ul { list-style: none; margin: 0; padding: 0; }
.dx-footer li { margin: 0 0 9px; }
.dx-footer a { color: #c4c9d2; transition: color .2s, padding .2s; }
.dx-footer a:hover { color: var(--dx-or); }
.dx-footer .dx-foot-col ul a { display: inline-block; }
.dx-footer .dx-foot-col ul a:hover { padding-left: 5px; }
.dx-footer .dx-foot-brand .logo img { max-height: 48px; max-width: 220px; width: auto; margin-bottom: 14px; background: #fff; padding: 6px 12px; border-radius: 10px; box-sizing: content-box; }
.dx-footer .dx-foot-brand p { margin: 0 0 8px; }
.dx-footer .dx-foot-brand .company { color: #fff; font-weight: 700; }
.dx-foot-info li { margin-bottom: 6px; }
.dx-foot-info b { color: #fff; }
.dx-foot-info a.hl { color: #fb923c; font-weight: 700; }
.dx-foot-info a.hl:hover { color: #fff; }
.dx-foot-addr .branch { padding: 12px 14px; border: 1px solid #2c313a; border-radius: 12px; background: rgba(255, 255, 255, .02); margin-bottom: 12px; transition: border-color .25s; }
.dx-foot-addr .branch:hover { border-color: rgba(249, 115, 22, .6); }
.dx-foot-addr .branch, .dx-foot-addr .branch * { color: #c4c9d2 !important; background: transparent !important; font-size: 14px !important; font-family: var(--dx-font) !important; }
.dx-foot-addr .branch p { margin: 0 0 4px; }
.dx-foot-addr .branch p:last-child { margin: 0; }
.dx-foot-addr .branch b, .dx-foot-addr .branch strong { color: #fff !important; }
.dx-foot-addr .branch a { color: #fb923c !important; font-weight: 600; }
.dx-foot-addr .note { font-style: italic; font-size: 13px; color: #9aa1ad; margin: 0; }
.dx-socials { display: flex; gap: 10px; flex-wrap: wrap; }
.dx-socials a { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff !important; font-weight: 800; font-size: 11.5px;
    background: #262a31; border: 1px solid #2f343d; transition: transform .25s, background .25s, box-shadow .25s; }
.dx-socials a:hover { background: var(--c, var(--dx-or)); border-color: transparent; transform: translateY(-4px); box-shadow: 0 8px 16px rgba(0, 0, 0, .35); padding: 0 !important; }
.dx-socials svg { width: 19px; height: 19px; }
.dx-bct { margin-top: 18px; }
.dx-bct img { max-width: 160px; max-height: 60px; width: auto; height: auto; display: block; transition: transform .25s, opacity .25s; }
.dx-bct a:hover img { transform: translateY(-2px); opacity: .9; }
.dx-foot-bottom { border-top: 1px solid #262a31; padding: 14px 0; font-size: 13px; color: #8b93a0; }
.dx-foot-bottom .dx-container { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
@media (max-width: 991px) {
    .dx-foot-feats .dx-container { grid-template-columns: repeat(2, 1fr); }
    .dx-footer .dx-foot-main, .dx-footer .dx-foot-main.cols-3 { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 560px) {
    .dx-foot-feats .dx-container { grid-template-columns: 1fr 1fr; gap: 14px; padding-top: 16px; padding-bottom: 16px; }
    .dx-foot-feat { flex-direction: column; align-items: flex-start; gap: 8px; }
    .dx-foot-feat b { font-size: 13px; }
    .dx-foot-feat small { font-size: 12.5px; }
    .dx-footer .dx-foot-main, .dx-footer .dx-foot-main.cols-3, .dx-footer .dx-foot-main.cols-2 { grid-template-columns: 1fr; gap: 26px; padding-top: 30px; }
    .dx-foot-bottom .dx-container { justify-content: center; text-align: center; }
}

/* ---------- 9. Hiệu ứng hiện dần khi cuộn ---------- */
.dx-reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.dx-reveal.in { opacity: 1; transform: none; }
.dx-to-top { position: fixed; right: 18px; bottom: 22px; width: 44px; height: 44px; border-radius: 50%; background: var(--dx-or); color: #fff; border: 0; cursor: pointer; z-index: 900;
    box-shadow: 0 8px 18px rgba(249, 115, 22, .4); opacity: 0; transform: translateY(20px); transition: opacity .3s, transform .3s; display: flex; align-items: center; justify-content: center; }
.dx-to-top.show { opacity: 1; transform: none; }
.dx-to-top svg { width: 20px; height: 20px; }

/* ---------- 10. Responsive ---------- */
@media (max-width: 1100px) {
    .dx-menu > li > a { padding: 14px 6px; font-size: 13.5px; }
    .dx-actions .dx-action span.dx-hide-md { display: none; }
}
@media (max-width: 991px) {
    .dx-topbar .dx-tb-right { display: none; }
    .dx-nav { display: none; }
    .dx-burger { display: inline-flex; }
    .dx-head-main .dx-container { gap: 12px; height: 64px; }
    .dx-logo img { height: 38px; }
    .dx-head-main .dx-search { display: none; }
    .dx-head-main .dx-mobile-search { display: block; height: auto; padding: 0 16px 10px; }
    .dx-mobile-search .dx-search { display: flex; max-width: none; }
    .dx-action span.dx-hide-sm { display: none; }
    .dx-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .dx-features { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .dx-feature + .dx-feature { border-left: 0; }
    .dx-news-grid, .dx-reviews { grid-template-columns: 1fr; }
    .dx-gallery { grid-template-columns: repeat(2, 1fr); }
    .dx-hero-slide.has-text img { height: 360px; }
    .dx-hero-text h1 { font-size: 32px; }
}
@media (max-width: 640px) {
    .dx-topbar { display: none; }
    .dx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .dx-card-body { padding: 10px; }
    .dx-card-title { font-size: 13.5px; min-height: 38px; }
    .dx-price { font-size: 15px; }
    .dx-cart-btn { width: 32px; height: 32px; }
    .dx-cart-btn svg { width: 16px; height: 16px; }
    .dx-card-foot { gap: 6px; align-items: flex-end; }
    .dx-card-foot > div { flex-direction: column; align-items: flex-start; }
    .dx-price-old { font-size: 12px; }
    .dx-card-tags { height: 28px; padding: 0 8px; }
    .dx-card-tags .dx-card-label, .dx-card-tags .dx-card-sale { font-size: 11px; padding: 2px 8px; }
    .dx-section { padding: 24px 0; }
    .dx-section-title h2 { font-size: 22px; }
    .dx-hero-slide.has-text img { height: 300px; }
    .dx-hero-slide.has-text:after { background: linear-gradient(0deg, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, .6) 55%, rgba(255, 255, 255, .1) 100%); }
    .dx-hero-text { align-items: flex-end; padding-bottom: 40px; }
    .dx-hero-text h1 { font-size: 24px; }
    .dx-hero-text p { font-size: 14px; margin-bottom: 14px; }
    .dx-hero-nav { display: none; }
    .dx-features { grid-template-columns: 1fr; }
    .dx-banner-text h2 { font-size: 26px; }
    .dx-news-img { width: 38%; }
}

/* ==========================================================================
   11. Trang con: breadcrumb, danh sách sản phẩm, chi tiết sản phẩm (đợt 2)
   ========================================================================== */
.dx-page { padding: 14px 0 30px; }
.dx-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13.5px; color: var(--dx-mut); margin: 4px 0 16px; }
.dx-crumb a { color: var(--dx-mut); transition: color .2s; }
.dx-crumb a:hover { color: var(--dx-or2); }
.dx-crumb .sep { color: #c0c4cc; }
.dx-crumb b { color: var(--dx-tx); font-weight: 600; }
.dx-box { background: #fff; border-radius: var(--dx-radius); box-shadow: var(--dx-shadow); }

/* Danh sách sản phẩm */
.dx-shop { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 22px; align-items: start; }
.dx-side { padding: 14px; position: sticky; top: 140px; }
.dx-side h3 { font-size: 17px; font-weight: 800; margin: 2px 6px 10px; }
.dx-side ul { list-style: none; margin: 0; padding: 0; }
.dx-side li a { display: flex; justify-content: space-between; gap: 6px; padding: 8px 10px; border-radius: 8px; color: var(--dx-tx); font-size: 14.5px; transition: background .15s, color .15s, padding .15s; }
.dx-side li a:hover { background: var(--dx-or-soft); color: var(--dx-or2); padding-left: 14px; }
.dx-side li a.on { background: var(--dx-or-soft); color: var(--dx-or2); font-weight: 700; box-shadow: inset 3px 0 0 var(--dx-or); }
.dx-side li a span { color: var(--dx-mut); font-size: 13px; }
.dx-side li li a { padding-left: 22px; font-size: 13.5px; }
.dx-cat-head { display: flex; align-items: center; gap: 20px; padding: 18px 22px; margin-bottom: 16px; overflow: hidden; }
.dx-cat-head h1 { font-size: 28px; font-weight: 800; margin: 0 0 6px; letter-spacing: -.3px; line-height: 1.25; }
.dx-cat-head p { margin: 0; color: #4b5563; font-size: 14.5px; line-height: 1.6; }
.dx-cat-head .img { margin-left: auto; width: 42%; max-width: 480px; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 6; flex-shrink: 0; }
.dx-cat-head .img img { width: 100%; height: 100%; object-fit: cover; }
.dx-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.dx-chip { border: 1.5px solid var(--dx-line); background: #fff; border-radius: 999px; padding: 7px 18px; font-weight: 700; font-size: 14px; color: var(--dx-tx) !important; transition: all .2s; }
.dx-chip:hover { border-color: var(--dx-or); color: var(--dx-or2) !important; transform: translateY(-1px); }
.dx-chip.on { background: var(--dx-or); border-color: var(--dx-or); color: #fff !important; }
.dx-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; font-size: 14px; color: #4b5563; background: #fff; border-radius: 12px; padding: 8px 10px 8px 16px; box-shadow: var(--dx-shadow); }
.dx-toolbar .cnt b { color: var(--dx-tx); }
.dx-tb-r { display: flex; align-items: center; gap: 10px; }
.dx-sort { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 500; white-space: nowrap; }
.dx-view { display: inline-flex; gap: 4px; }
.dx-view button { width: 36px; height: 36px; border: 1.5px solid var(--dx-line) !important; border-radius: 9px !important; background: #fff !important; color: #6b7280 !important; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0 !important; transition: all .2s; }
.dx-view button svg { width: 18px; height: 18px; }
.dx-view button:hover { border-color: var(--dx-or) !important; color: var(--dx-or2) !important; }
.dx-view button.on { background: var(--dx-or) !important; border-color: var(--dx-or) !important; color: #fff !important; }
.dx-toolbar select { display: inline-block !important; -webkit-appearance: none; appearance: none; border: 1.5px solid var(--dx-line) !important; border-radius: 9px !important; height: 36px !important; padding: 0 34px 0 12px !important; margin: 0 !important; font-size: 14px; color: var(--dx-tx); cursor: pointer; box-shadow: none !important; width: auto !important; min-width: 150px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 16px !important; }
.dx-toolbar select:focus { border-color: var(--dx-or) !important; outline: none; }
.dx-toolbar .chosen-container, .dx-toolbar .nice-select { display: none !important; }
/* Dạng danh sách */
.dx-grid.is-list { grid-template-columns: 1fr !important; gap: 12px; }
.dx-grid.is-list .dx-card { display: grid; grid-template-columns: 190px minmax(0, 1fr); grid-template-rows: auto 1fr; }
.dx-grid.is-list .dx-card-img { grid-column: 1; grid-row: 1 / 3; }
.dx-grid.is-list .dx-card-tags { grid-column: 2; grid-row: 1; justify-content: flex-start; padding: 12px 18px 0; height: auto; min-height: 0; }
.dx-grid.is-list .dx-card-tags > span:empty { display: none; }
.dx-grid.is-list .dx-card-body { grid-column: 2; grid-row: 2; padding: 8px 18px 16px; justify-content: center; }
.dx-grid.is-list .dx-card-title { font-size: 17px; min-height: 0; -webkit-line-clamp: 2; }
.dx-grid.is-list .dx-card-foot { margin-top: 10px; justify-content: flex-start; gap: 18px; }
.dx-grid.is-list .dx-price { font-size: 20px; }
.dx-grid.is-list .dx-card:hover { transform: translateY(-3px); }
.dx-shop .dx-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dx-empty { padding: 50px 20px; text-align: center; color: var(--dx-mut); }
.dx-pager { display: flex; justify-content: center; margin-top: 24px; }
.dx-pager .pagination { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; }
.dx-pager .pagination li > a, .dx-pager .pagination li > span { min-width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; padding: 0 10px;
    border-radius: 10px; background: #fff; border: 1.5px solid var(--dx-line) !important; color: var(--dx-tx); font-weight: 600; transition: all .2s; float: none; margin: 0; }
.dx-pager .pagination li > a:hover { border-color: var(--dx-or) !important; color: var(--dx-or2); transform: translateY(-2px); }
.dx-pager .pagination li.active > span, .dx-pager .pagination li.active > a { background: var(--dx-or); border-color: var(--dx-or) !important; color: #fff; }
.dx-pager .pagination li.disabled > span { opacity: .45; }

/* Chi tiết sản phẩm */
.dx-pd { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 36px; align-items: start; background: #fff; border-radius: 18px; box-shadow: var(--dx-shadow); padding: 24px; }
.dx-gal { display: flex; flex-direction: column; gap: 12px; min-width: 0; position: sticky; top: 130px; }
.dx-gal-main { position: relative; border-radius: 16px; overflow: hidden; background: #f6f7f9; aspect-ratio: 1 / 1; cursor: zoom-in; }
.dx-gal-main img { width: 100%; height: 100%; object-fit: contain; display: block; transition: opacity .15s, transform .4s; }
.dx-gal-main:hover img { transform: scale(1.03); }
.dx-gal-main .dx-card-label { top: 14px; left: 14px; font-size: 13px; }
.dx-gal-zoom { position: absolute; right: 14px; top: 14px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--dx-tx); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(0, 0, 0, .12); transition: transform .2s, background .2s, color .2s; pointer-events: none; }
.dx-gal-zoom svg { width: 20px; height: 20px; }
.dx-gal-main:hover .dx-gal-zoom { background: var(--dx-or); color: #fff; transform: scale(1.08); }
.dx-gal-nav { position: absolute; top: 50%; width: 42px; height: 42px; margin-top: -21px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--dx-tx); cursor: pointer; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .14); opacity: 0; transition: opacity .2s, background .2s, color .2s, transform .2s; z-index: 3; }
.dx-gal-nav svg { width: 20px; height: 20px; }
.dx-gal-nav.prev { left: 12px; } .dx-gal-nav.next { right: 12px; }
.dx-gal-main:hover .dx-gal-nav { opacity: 1; }
.dx-gal-nav:hover { background: var(--dx-or); color: #fff; transform: scale(1.08); }
.dx-gal-count { position: absolute; right: 14px; bottom: 14px; background: rgba(17, 24, 39, .7); color: #fff; font-size: 12.5px; padding: 3px 10px; border-radius: 999px; }
.dx-gal-thumbs { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: thin; scroll-snap-type: x proximity; }
.dx-gal-thumbs button { flex: 0 0 84px; width: 84px; height: 84px; border: 2px solid transparent; border-radius: 12px; padding: 0; overflow: hidden; cursor: pointer; background: #f6f7f9; scroll-snap-align: start; transition: border-color .2s, transform .2s, opacity .2s; opacity: .75; }
.dx-gal-thumbs button:hover { opacity: 1; transform: translateY(-2px); }
.dx-gal-thumbs button.on { border-color: var(--dx-or); opacity: 1; }
.dx-gal-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Phóng to ảnh */
.dx-lb { position: fixed; inset: 0; z-index: 20000; background: rgba(0, 0, 0, .94); display: grid; grid-template-rows: 1fr auto auto; align-items: center; justify-items: center; padding: 30px 80px 14px; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.dx-lb.open { opacity: 1; visibility: visible; }
.dx-lb-stage { width: 100%; height: 100%; min-height: 0; display: flex; align-items: center; justify-content: center; }
.dx-lb-stage img { max-width: min(1000px, 100%); max-height: 100%; object-fit: contain; background: #f5f5f7; border-radius: 16px; transition: opacity .15s; }
.dx-lb-cap { color: #fff; font-size: 17px; padding: 14px 0 10px; text-align: center; }
.dx-lb-cap span { color: #9ca3af; font-weight: 400; margin-left: 4px; }
.dx-lb-thumbs { display: flex; gap: 8px; max-width: 100%; overflow-x: auto; padding: 4px; scrollbar-width: thin; }
.dx-lb-thumbs button { flex: 0 0 90px; height: 72px; border: 2px solid transparent; border-radius: 8px; overflow: hidden; padding: 0; background: #fff; cursor: pointer; opacity: .55; transition: opacity .2s, border-color .2s; }
.dx-lb-thumbs button:hover { opacity: .9; }
.dx-lb-thumbs button.on { opacity: 1; border-color: var(--dx-or); }
.dx-lb-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dx-lb-close, .dx-lb-nav { position: absolute; border: 0; background: rgba(255, 255, 255, .08); color: #fff; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s, transform .2s; }
.dx-lb-close svg, .dx-lb-nav svg { width: 24px; height: 24px; }
.dx-lb-close:hover, .dx-lb-nav:hover { background: var(--dx-or); transform: scale(1.06); }
.dx-lb-close { top: 16px; right: 18px; }
.dx-lb-nav { top: 45%; }
.dx-lb-nav.prev { left: 18px; } .dx-lb-nav.next { right: 18px; }
.dx-pd-info { min-width: 0; padding-top: 4px; }
.dx-pd-info h1 { font-size: 28px; font-weight: 800; line-height: 1.3; margin: 0 0 10px; letter-spacing: -.3px; }
.dx-pd-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 14px; color: #4b5563; margin-bottom: 10px; }
.dx-pd-meta .stars { color: #f59e0b; letter-spacing: 1px; }
.dx-pd-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; margin: 10px 0 16px; padding: 14px 18px; background: var(--dx-or-soft); border-radius: 14px; }
.dx-pd-price .now { font-size: 32px; font-weight: 900; color: var(--dx-or2); }
.dx-pd-price .old { color: #9ca3af; text-decoration: line-through; font-size: 17px; }
.dx-pd-price .off { background: #fee2e2; color: #dc2626; font-weight: 700; font-size: 13px; padding: 2px 8px; border-radius: 6px; }
.dx-pd-desc { color: #374151; font-size: 15px; line-height: 1.65; margin-bottom: 14px; }
.dx-pd-desc p { margin: 0 0 4px; }
.dx-pd-desc ul { padding-left: 0; list-style: none; margin: 8px 0; }
.dx-pd-desc ul li { position: relative; padding-left: 28px; margin-bottom: 6px; }
.dx-pd-desc ul li:before { content: "✓"; position: absolute; left: 0; top: 1px; width: 19px; height: 19px; border-radius: 50%; background: var(--dx-or); color: #fff; font-size: 12px; font-weight: 800;
    display: flex; align-items: center; justify-content: center; }
.dx-variants .dx-var-title { font-weight: 700; margin: 10px 0 6px; }
.dx-variants .js_item_variable { display: inline-block; border: 1.5px solid var(--dx-line); border-radius: 8px; padding: 6px 14px; margin: 0 6px 6px 0; color: var(--dx-tx); font-weight: 600; font-size: 14px; transition: all .2s; }
.dx-variants .js_item_variable:hover { border-color: var(--dx-or); }
.dx-variants .js_item_variable.checked { border-color: var(--dx-or) !important; background: var(--dx-or-soft); color: var(--dx-or2); }
.dx-variants .js_item_variable.disabled { opacity: .4; text-decoration: line-through; pointer-events: none; }
.dx-buy-row { display: flex; align-items: center; gap: 12px; margin: 14px 0; flex-wrap: wrap; }
.dx-buy-row .control { display: inline-flex; align-items: center; border: 1.5px solid var(--dx-line); border-radius: 10px; overflow: hidden; background: #fff; }
.dx-buy-row .control a { width: 40px; height: 42px; display: flex; align-items: center; justify-content: center; color: var(--dx-tx); font-size: 20px; font-weight: 600; transition: background .15s; }
.dx-buy-row .control a:hover { background: var(--dx-or-soft); color: var(--dx-or2); }
.dx-buy-row .control input { width: 52px; height: 42px; text-align: center; border: 0 !important; border-left: 1.5px solid var(--dx-line) !important; border-right: 1.5px solid var(--dx-line) !important; font-weight: 700; font-size: 16px; padding: 0; box-shadow: none !important; }
.dx-buy-btns { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; }
.dx-buy-btns .dx-btn { padding: 14px 18px; font-size: 16px; border-radius: 12px; }
.dx-buy-btns .addtocart.disabled { opacity: .5; pointer-events: none; }
.dx-pd-extra { font-size: 13.5px; color: var(--dx-mut); margin-top: 14px; line-height: 1.8; }
.dx-pd-extra a { color: var(--dx-or2); }
.dx-policy { padding: 6px 16px; }
.dx-policy .row { display: flex; gap: 14px; padding: 14px 0; align-items: center; }
.dx-policy .row + .row { border-top: 1px solid #f1f2f4; }
.dx-policy .ic { width: 44px; height: 44px; color: var(--dx-or); flex-shrink: 0; display: flex; align-items: center; justify-content: center; transition: transform .3s; }
.dx-policy .row:hover .ic { transform: scale(1.12) rotate(-6deg); }
.dx-policy .ic svg { width: 34px; height: 34px; }
.dx-policy b { display: block; font-size: 15px; }
.dx-policy small { color: var(--dx-mut); font-size: 13px; }
.dx-pd-bottom { margin-top: 24px; }
.dx-pd-bottom > .dx-box { border-radius: 18px; overflow: hidden; }
.dx-ptabs { display: flex; gap: 4px; border-bottom: 1px solid var(--dx-line); padding: 0 18px; overflow: visible; flex-wrap: wrap; }
.dx-ptabs button { border: 0 !important; border-bottom: 3px solid transparent !important; background: none !important; padding: 16px 16px 13px !important; margin: 0 0 -1px !important; height: auto !important; line-height: 1.3 !important; font-weight: 700; font-size: 16px; color: #4b5563 !important; cursor: pointer; white-space: nowrap; box-shadow: none !important; border-radius: 0 !important; text-transform: none !important; transition: color .2s, border-color .2s; }
.dx-ptabs button:hover { color: var(--dx-or2); }
.dx-ptabs button:hover { color: var(--dx-or2) !important; }
.dx-ptabs button.on { color: var(--dx-or2) !important; border-bottom-color: var(--dx-or) !important; }
.dx-ptab { display: none; padding: 22px 26px; }
.dx-ptab.dx-content { font-size: 16px; line-height: 1.8; }
.dx-ptab.on { display: block; animation: dxFade .3s ease; }
.dx-content { font-size: 15px; line-height: 1.75; color: #1f2937; overflow-wrap: anywhere; }
.dx-content img { max-width: 100% !important; height: auto !important; border-radius: 10px; }
.dx-content iframe { max-width: 100%; }
.dx-content table { max-width: 100%; }
.dx-related { padding: 16px; }
.dx-related .dx-section-head h2 { font-size: 20px; }
.dx-related .dx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.dx-sticky-buy { display: none; }

@media (max-width: 1200px) {
    .dx-pd { gap: 24px; }
}
@media (max-width: 991px) {
    .dx-shop { grid-template-columns: 1fr; }
    .dx-side { position: static; }
    .dx-side ul { display: flex; flex-wrap: wrap; gap: 6px; }
    .dx-side li li { display: none; }
    .dx-side li a { border: 1.5px solid var(--dx-line); border-radius: 999px; padding: 6px 12px; }
    .dx-shop .dx-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .dx-cat-head .img { display: none; }
    .dx-pd { grid-template-columns: 1fr; padding: 16px; }
    .dx-gal { position: static; }
    .dx-gal-nav { opacity: 1; width: 36px; height: 36px; margin-top: -18px; }
    .dx-gal-thumbs button { flex-basis: 68px; width: 68px; height: 68px; }
    .dx-lb { padding: 56px 10px 10px; }
    .dx-lb-nav { top: auto; bottom: 120px; width: 42px; height: 42px; }
    .dx-lb-thumbs button { flex-basis: 64px; height: 54px; }
    .dx-related .dx-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .dx-shop .dx-grid, .dx-related .dx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dx-cat-head { padding: 14px; }
    .dx-cat-head h1, .dx-pd-info h1 { font-size: 22px; }
    .dx-pd-price .now { font-size: 26px; }
    .dx-gal-main:hover img { transform: none; }
    .dx-ptab { padding: 16px; }
    .dx-ptabs { padding: 0 8px; }
    .dx-ptabs button { font-size: 14.5px; padding: 13px 10px 10px !important; }
    .dx-sticky-buy { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 950; background: #fff; padding: 8px 10px;
        box-shadow: 0 -6px 18px rgba(0, 0, 0, .1); }
    .dx-sticky-buy .dx-btn { padding: 12px; }
    body.dx-has-sticky { padding-bottom: 64px; }
    body.dx-has-sticky .dx-to-top { bottom: 80px; }
}

/* ===== 12. Contact ===== */
.dx-ct-head { text-align: center; max-width: 680px; margin: 6px auto 22px; }
.dx-ct-head h1 { font-size: 30px; font-weight: 800; margin: 0 0 8px; letter-spacing: -.3px; }
.dx-ct-head p { color: var(--dx-mut); margin: 0; font-size: 15px; }
.dx-ct-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-bottom: 20px; }
.dx-ct-card { display: flex; align-items: center; gap: 14px; padding: 18px; color: var(--dx-tx) !important; text-decoration: none !important; transition: transform .2s, box-shadow .2s; }
.dx-ct-card:hover { transform: translateY(-3px); box-shadow: var(--dx-shadow-h); }
.dx-ct-card .ic { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 12px; background: var(--dx-or-soft); color: var(--dx-or2); display: flex; align-items: center; justify-content: center; }
.dx-ct-card .ic svg { width: 22px; height: 22px; }
.dx-ct-card .tx { display: flex; flex-direction: column; min-width: 0; }
.dx-ct-card small { color: var(--dx-mut); font-size: 13px; }
.dx-ct-card b { font-size: 15.5px; font-weight: 700; overflow-wrap: anywhere; }
.dx-ct-branches { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-bottom: 20px; }
.dx-ct-branch { display: flex; gap: 14px; padding: 18px 20px; transition: transform .2s, box-shadow .2s; }
.dx-ct-branch:hover { transform: translateY(-3px); box-shadow: var(--dx-shadow-h); }
.dx-ct-branch .ic { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 12px; background: var(--dx-or-soft); color: var(--dx-or2); display: flex; align-items: center; justify-content: center; }
.dx-ct-branch .ic svg { width: 21px; height: 21px; }
.dx-ct-branch .tx { min-width: 0; font-size: 14.5px; line-height: 1.7; color: #374151; overflow-wrap: anywhere; }
.dx-ct-branch .tx * { font-family: var(--dx-font) !important; font-size: 14.5px !important; background: transparent !important; }
.dx-ct-branch .tx p { margin: 0 0 4px; }
.dx-ct-branch .tx p:last-child { margin: 0; }
.dx-ct-branch .tx strong, .dx-ct-branch .tx b { color: var(--dx-tx); }
.dx-ct-branch .tx a { color: var(--dx-or2); font-weight: 600; }
.dx-ct-main { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; align-items: stretch; }
.dx-ct-map { overflow: hidden; min-height: 420px; }
.dx-ct-map iframe { width: 100% !important; height: 100% !important; min-height: 420px; border: 0; display: block; }
.dx-ct-nomap { height: 100%; min-height: 420px; display: flex; align-items: center; justify-content: center; color: var(--dx-mut); }
.dx-ct-form { padding: 24px; }
.dx-ct-form h2 { font-size: 21px; font-weight: 800; margin: 0 0 4px; }
.dx-ct-form .sub { color: var(--dx-mut); font-size: 13.5px; margin: 0 0 16px; }
.dx-ct-form .req { color: #ef4444; }
.dx-ct-form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 14px; color: var(--dx-tx); }
.dx-ct-form input, .dx-ct-form textarea { display: block; width: 100%; margin-top: 6px; padding: 11px 14px; border: 1.5px solid var(--dx-line); border-radius: 10px; font-size: 14.5px; font-weight: 400; background: #fff; outline: none; transition: border-color .2s, box-shadow .2s; box-sizing: border-box; }
.dx-ct-form input:focus, .dx-ct-form textarea:focus { border-color: var(--dx-or); box-shadow: 0 0 0 4px rgba(249, 115, 22, .12); }
.dx-ct-form textarea { resize: vertical; min-height: 120px; }
.dx-ct-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dx-ct-form .dx-btn { width: 100%; justify-content: center; padding: 13px; font-size: 15.5px; }
.dx-ct-form .dx-btn[disabled] { opacity: .7; cursor: wait; }
.dx-ct-alert { padding: 11px 14px; border-radius: 10px; font-size: 14px; margin-bottom: 14px; }
.dx-ct-alert.err { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.dx-ct-alert.ok { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
@media (max-width: 900px) { .dx-ct-main { grid-template-columns: 1fr; } .dx-ct-map, .dx-ct-map iframe, .dx-ct-nomap { min-height: 300px; } }
@media (max-width: 560px) { .dx-ct-row { grid-template-columns: 1fr; gap: 0; } .dx-ct-head h1 { font-size: 24px; } .dx-ct-form { padding: 18px; } }

/* ===== 13. Tin tức – danh sách ===== */
.dx-blog-hero { position: relative; display: flex; align-items: center; min-height: 170px; border-radius: var(--dx-radius); overflow: hidden; margin-bottom: 18px;
    background: linear-gradient(135deg, #fff7f0 0%, #ffe9d6 100%); box-shadow: var(--dx-shadow); }
.dx-blog-hero .tx { position: relative; z-index: 2; padding: 28px 32px; max-width: 620px; }
.dx-blog-hero h1 { font-size: 32px; font-weight: 800; margin: 0 0 8px; letter-spacing: -.4px; color: var(--dx-tx); }
.dx-blog-hero p { margin: 0; color: #4b5563; font-size: 15px; line-height: 1.6; }
.dx-blog-hero .im { position: absolute; inset: 0 0 0 auto; width: 55%; }
.dx-blog-hero .im img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dx-blog-hero .im:before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #fff4ea 0%, rgba(255, 244, 234, .75) 25%, rgba(255, 244, 234, 0) 60%); }
.dx-blog-chips { margin-bottom: 18px; }
.dx-blog-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 22px; align-items: start; }
.dx-post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.dx-post { background: #fff; border-radius: var(--dx-radius); box-shadow: var(--dx-shadow); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.dx-post:hover { transform: translateY(-5px); box-shadow: var(--dx-shadow-h); }
.dx-post-img { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; background: #f3f4f6; }
.dx-post-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.dx-post:hover .dx-post-img img { transform: scale(1.06); }
.dx-post-img .tag { position: absolute; left: 12px; top: 12px; background: var(--dx-or); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 11px; border-radius: 999px; box-shadow: 0 4px 10px rgba(249, 115, 22, .35); max-width: calc(100% - 24px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dx-post-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.dx-post-body h2 { font-size: 16.5px; font-weight: 800; line-height: 1.4; margin: 0 0 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dx-post-body h2 a { color: var(--dx-tx) !important; transition: color .2s; }
.dx-post-body h2 a:hover { color: var(--dx-or2) !important; }
.dx-post-body p { font-size: 14px; color: var(--dx-mut); line-height: 1.6; margin: 0 0 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.dx-post-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 10px; border-top: 1px dashed var(--dx-line); font-size: 13px; }
.dx-post-foot .date { display: inline-flex; align-items: center; gap: 6px; color: var(--dx-mut); }
.dx-post-foot .date svg { width: 15px; height: 15px; color: var(--dx-or); }
.dx-post-foot .more { display: inline-flex; align-items: center; gap: 5px; color: var(--dx-or2) !important; font-weight: 700; transition: gap .2s; white-space: nowrap; }
.dx-post-foot .more:hover { gap: 9px; }
.dx-post-foot .more svg { width: 14px; height: 14px; }
.dx-blog-side { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 140px; }
.dx-blog-side .dx-side { position: static; }
.dx-feat-posts .fp { display: flex; gap: 10px; padding: 8px 6px; border-radius: 10px; color: var(--dx-tx) !important; transition: background .2s; }
.dx-feat-posts .fp:hover { background: var(--dx-or-soft); }
.dx-feat-posts .fi { width: 64px; height: 64px; flex: 0 0 64px; border-radius: 8px; overflow: hidden; background: #f3f4f6; }
.dx-feat-posts .fi img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dx-feat-posts .ft { min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.dx-feat-posts .ft b { font-size: 13.5px; font-weight: 700; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dx-feat-posts .fp:hover .ft b { color: var(--dx-or2); }
.dx-feat-posts .ft small { color: var(--dx-mut); font-size: 12px; margin-top: 3px; }
@media (max-width: 1100px) { .dx-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 991px) {
    .dx-blog-wrap { grid-template-columns: 1fr; }
    .dx-blog-side { position: static; }
}
@media (max-width: 640px) {
    .dx-blog-hero { min-height: 0; }
    .dx-blog-hero .im { width: 100%; opacity: .25; }
    .dx-blog-hero .tx { padding: 22px 18px; }
    .dx-blog-hero h1 { font-size: 24px; }
    .dx-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .dx-post-body { padding: 10px; }
    .dx-post-body h2 { font-size: 14px; }
    .dx-post-body p { display: none; }
    .dx-post-foot { flex-direction: column; align-items: flex-start; gap: 4px; }
    .dx-post-img .tag { font-size: 10.5px; left: 8px; top: 8px; padding: 3px 8px; }
}

/* ===== 14. Tin tức – chi tiết ===== */
.dx-art { padding: 28px 32px 30px; min-width: 0; }
.dx-art-cat { display: inline-block; background: var(--dx-or-soft); color: var(--dx-or2) !important; font-weight: 700; font-size: 13px; padding: 5px 13px; border-radius: 999px; margin-bottom: 12px; transition: background .2s, color .2s; }
.dx-art-cat:hover { background: var(--dx-or); color: #fff !important; }
.dx-art-title { font-size: 30px; font-weight: 800; line-height: 1.3; letter-spacing: -.3px; margin: 0 0 12px; color: var(--dx-tx); }
.dx-art-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--dx-mut); font-size: 13.5px; padding-bottom: 16px; margin-bottom: 18px; border-bottom: 1px solid var(--dx-line); }
.dx-art-meta span { display: inline-flex; align-items: center; gap: 6px; }
.dx-art-meta svg { width: 15px; height: 15px; color: var(--dx-or); }
.dx-art-sapo { font-size: 16px; font-weight: 600; line-height: 1.7; color: #374151; background: #fafafa; border-left: 4px solid var(--dx-or); border-radius: 0 10px 10px 0; padding: 14px 18px; margin-bottom: 20px; }
.dx-art-content { font-size: 16px; line-height: 1.85; }
.dx-art-content p { margin: 0 0 14px; }
.dx-art-content h2 { font-size: 22px; font-weight: 800; margin: 26px 0 12px; line-height: 1.35; }
.dx-art-content h3 { font-size: 19px; font-weight: 700; margin: 22px 0 10px; }
.dx-art-content ul, .dx-art-content ol { padding-left: 22px; margin: 0 0 14px; }
.dx-art-content ul { list-style: disc; }
.dx-art-content ol { list-style: decimal; }
.dx-art-content li { margin-bottom: 6px; }
.dx-art-content img { display: block; margin: 16px auto; }
.dx-art-content a { color: var(--dx-or2); text-decoration: underline; }
.dx-art-content blockquote { border-left: 4px solid var(--dx-or); background: var(--dx-or-soft); margin: 16px 0; padding: 12px 18px; border-radius: 0 10px 10px 0; }
.dx-art-content table { border-collapse: collapse; width: 100%; margin: 14px 0; display: block; overflow-x: auto; }
.dx-art-content td, .dx-art-content th { border: 1px solid var(--dx-line); padding: 8px 10px; }
.dx-art-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 24px; font-size: 14px; }
.dx-art-tags a { background: #f3f4f6; color: #374151 !important; padding: 5px 12px; border-radius: 999px; font-size: 13px; transition: background .2s, color .2s; }
.dx-art-tags a:hover { background: var(--dx-or); color: #fff !important; }
.dx-art-share { display: flex; align-items: center; gap: 10px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--dx-line); font-size: 14px; }
.dx-art-share a, .dx-art-share button { width: 38px; height: 38px; border-radius: 10px; border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; background: var(--c); color: #fff !important; font-size: 11px; font-weight: 800; transition: transform .2s, box-shadow .2s; }
.dx-art-share a:hover, .dx-art-share button:hover { transform: translateY(-3px); box-shadow: 0 8px 16px rgba(0, 0, 0, .18); }
.dx-art-share svg { width: 18px; height: 18px; }
.dx-art-share button.ok { background: #16a34a; }
@media (max-width: 640px) {
    .dx-art { padding: 18px 16px 20px; }
    .dx-art-title { font-size: 22px; }
    .dx-art-content { font-size: 15px; }
}

/* ===== 15. Chống tràn ngang nội dung soạn từ trình soạn thảo (mô tả / bài viết) ===== */
.dx-pd, .dx-pd-bottom, .dx-art, .dx-ct-branch { max-width: 100%; }
.dx-content, .dx-pd-desc { overflow-wrap: anywhere; word-break: break-word; }
.dx-content *, .dx-pd-desc * { max-width: 100% !important; box-sizing: border-box; }
.dx-content img, .dx-pd-desc img, .dx-content video, .dx-pd-desc video { height: auto !important; }
.dx-content iframe, .dx-pd-desc iframe { width: 100% !important; }
.dx-content table, .dx-pd-desc table { display: block; width: auto !important; overflow-x: auto; }
@media (max-width: 991px) {
    .dx-content *, .dx-pd-desc * { white-space: normal !important; }
    .dx-content iframe, .dx-pd-desc iframe { height: auto !important; aspect-ratio: 16 / 9; }
}

/* ===== 16. Giỏ hàng + Đặt hàng (chung 1 trang) ===== */
.dx-checkout .hidden { display: none !important; }
.dx-co { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 22px; align-items: start; }
.dx-co-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.dx-co-card { padding: 20px 22px; border-radius: 16px; }
.dx-co-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.dx-co-head h2 { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 800; margin: 0; }
.dx-co-head h2 small { font-size: 14px; font-weight: 500; color: var(--dx-mut); }
.dx-co-head .num { width: 28px; height: 28px; border-radius: 50%; background: var(--dx-or); color: #fff; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; }
.dx-co-link { color: var(--dx-or2) !important; font-weight: 700; font-size: 14px; white-space: nowrap; }
.dx-co-link:hover { text-decoration: underline; }
/* Dòng sản phẩm */
.dx-ci-head, .dx-ci { display: grid; grid-template-columns: 76px minmax(0, 1fr) 128px 120px 40px; gap: 14px; align-items: center; }
.dx-ci-head { grid-template-columns: minmax(0, 1fr) 128px 120px 40px; padding: 0 0 10px; border-bottom: 1px solid var(--dx-line); font-size: 12.5px; font-weight: 700; color: var(--dx-mut); text-transform: uppercase; letter-spacing: .3px; }
.dx-ci-head span:nth-child(2), .dx-ci-head span:nth-child(3) { text-align: center; }
.dx-ci-head span:nth-child(3) { text-align: right; }
.dx-ci { padding: 14px 0; border-bottom: 1px solid #f1f2f4; transition: background .2s; }
.dx-ci:last-child { border-bottom: 0; }
.dx-ci-img { width: 76px; height: 76px; border-radius: 12px; overflow: hidden; background: #f6f7f9; display: block; }
.dx-ci-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dx-ci-info { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.dx-ci-title { font-weight: 700; font-size: 15px; color: var(--dx-tx) !important; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dx-ci-title:hover { color: var(--dx-or2) !important; }
.dx-ci-ver { font-size: 13px; color: var(--dx-mut); }
.dx-ci-unit { font-size: 13.5px; color: #4b5563; }
.dx-ci-qty { display: flex; justify-content: center; }
.dx-qtybox { display: inline-flex; align-items: center; border: 1.5px solid var(--dx-line); border-radius: 10px; overflow: hidden; background: #fff; }
.dx-qtybox button { width: 34px; height: 36px; border: 0 !important; background: #fff !important; color: var(--dx-tx) !important; font-size: 18px; font-weight: 600; cursor: pointer; padding: 0 !important; margin: 0 !important; transition: background .15s, color .15s; }
.dx-qtybox button:hover { background: var(--dx-or-soft) !important; color: var(--dx-or2) !important; }
.dx-qtybox input { width: 44px; height: 36px; border: 0 !important; border-left: 1.5px solid var(--dx-line) !important; border-right: 1.5px solid var(--dx-line) !important; text-align: center; font-weight: 700; font-size: 15px; padding: 0 !important; margin: 0 !important; -moz-appearance: textfield; background: #fff !important; box-shadow: none !important; }
.dx-qtybox input::-webkit-outer-spin-button, .dx-qtybox input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.dx-ci-total { text-align: right; font-weight: 800; color: var(--dx-or2); font-size: 15.5px; white-space: nowrap; }
.dx-ci-act { text-align: center; }
.dx-ci-act a { width: 34px; height: 34px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; color: #9ca3af !important; transition: background .2s, color .2s; }
.dx-ci-act a:hover { background: #fee2e2; color: #dc2626 !important; }
.dx-ci-act svg { width: 18px; height: 18px; }
/* Form */
.dx-co-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.dx-co-grid .full { grid-column: 1 / -1; }
.dx-co-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.dx-f { display: block; font-weight: 600; font-size: 14px; color: var(--dx-tx); margin: 0; }
.dx-f i { color: #ef4444; font-style: normal; }
.dx-f small { color: var(--dx-mut); font-weight: 400; }
.dx-f input, .dx-f select, .dx-f textarea, .dx-checkout .addr-v2 select { display: block; width: 100%; margin-top: 6px; height: 46px; padding: 0 14px; border: 1.5px solid var(--dx-line) !important; border-radius: 10px !important; background: #fff !important; font-size: 15px; font-weight: 400; color: var(--dx-tx); outline: none; box-shadow: none; box-sizing: border-box; transition: border-color .2s, box-shadow .2s; }
.dx-f textarea { height: auto; min-height: 90px; padding: 12px 14px; resize: vertical; }
.dx-f input:focus, .dx-f select:focus, .dx-f textarea:focus, .dx-checkout .addr-v2 select:focus { border-color: var(--dx-or) !important; box-shadow: 0 0 0 4px rgba(249, 115, 22, .12) !important; }
.dx-co-sub { font-weight: 700; margin: 16px 0 8px; }
.dx-co-alert { padding: 11px 14px; border-radius: 10px; font-size: 14px; margin-bottom: 14px; }
.dx-co-alert.err { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.dx-co-alert.ok { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
/* Thanh toán */
.dx-pay { display: flex; flex-direction: column; gap: 10px; }
.dx-pay-item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px solid var(--dx-line); border-radius: 12px; cursor: pointer; margin: 0; transition: border-color .2s, background .2s; }
.dx-pay-item:hover { border-color: #fdba74; }
.dx-pay-item input { position: absolute; opacity: 0; pointer-events: none; }
.dx-pay-item .dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #cbd5e1; flex-shrink: 0; position: relative; transition: border-color .2s; }
.dx-pay-item input:checked ~ .dot { border-color: var(--dx-or); }
.dx-pay-item input:checked ~ .dot:after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--dx-or); }
.dx-pay-item:has(input:checked) { border-color: var(--dx-or); background: var(--dx-or-soft); }
.dx-pay-item .ic { width: 36px; height: 36px; border-radius: 9px; background: #fff; color: var(--dx-or2); display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 4px rgba(0, 0, 0, .06); }
.dx-pay-item .ic svg { width: 20px; height: 20px; }
.dx-pay-item .tx b { display: block; font-size: 15px; }
.dx-pay-item .tx small { color: var(--dx-mut); }
.dx-pay-desc { margin: -2px 0 4px; padding: 14px 16px; border-radius: 12px; background: #fafafa; border: 1px dashed #e5e7eb; font-size: 14px; line-height: 1.7; }
.dx-pay-desc p { margin: 0 0 4px; }
/* Tóm tắt */
.dx-co-side { position: sticky; top: 130px; display: flex; flex-direction: column; gap: 14px; }
.dx-co-sum { padding: 20px; border-radius: 16px; }
.dx-co-sum h3 { font-size: 18px; font-weight: 800; margin: 0 0 14px; }
.dx-co-sum .row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 8px 0; font-size: 14.5px; color: #4b5563; }
.dx-co-sum .row b { color: var(--dx-tx); white-space: nowrap; }
.dx-co-sum .row.cp b { color: #16a34a; }
.dx-co-sum .row.cp a { color: #dc2626; font-size: 12.5px; margin-left: 6px; }
.dx-co-sum .row.total { border-top: 1px dashed var(--dx-line); margin-top: 8px; padding-top: 14px; font-size: 16px; color: var(--dx-tx); font-weight: 700; }
.dx-co-sum .row.total b { font-size: 24px; color: var(--dx-or2); font-weight: 900; }
.dx-coupon { display: flex; margin: 8px 0 6px; border: 1.5px dashed #fdba74; border-radius: 10px; overflow: hidden; }
.dx-coupon input { flex: 1; min-width: 0; height: 42px; border: 0 !important; padding: 0 12px !important; font-size: 14px; outline: none; box-shadow: none !important; background: #fff !important; margin: 0 !important; }
.dx-coupon button { border: 0 !important; background: var(--dx-or-soft) !important; color: var(--dx-or2) !important; font-weight: 700; padding: 0 14px !important; cursor: pointer; margin: 0 !important; height: 42px; transition: background .2s, color .2s; }
.dx-coupon button:hover { background: var(--dx-or) !important; color: #fff !important; }
.dx-co-submit { width: 100%; margin-top: 14px; padding: 15px; font-size: 17px; border-radius: 12px; }
.dx-co-submit svg { width: 20px; height: 20px; }
.dx-co-submit.is-loading { opacity: .7; pointer-events: none; }
.dx-co-note { font-size: 12.5px; color: var(--dx-mut); text-align: center; margin: 10px 0 0; line-height: 1.5; }
.dx-co-trust { padding: 14px 18px; font-size: 13.5px; color: #4b5563; display: flex; flex-direction: column; gap: 10px; border-radius: 16px; }
.dx-co-trust div { display: flex; align-items: center; gap: 10px; }
.dx-co-trust svg { width: 20px; height: 20px; color: var(--dx-or); flex-shrink: 0; }
.dx-co-trust a { color: var(--dx-or2); font-weight: 700; }
.dx-loading { position: fixed; inset: 0; z-index: 30000; background: rgba(255, 255, 255, .5); display: flex; align-items: center; justify-content: center; }
.dx-loading span { width: 42px; height: 42px; border-radius: 50%; border: 4px solid #fed7aa; border-top-color: var(--dx-or); animation: dxSpin .8s linear infinite; }
@keyframes dxSpin { to { transform: rotate(360deg); } }
.dx-loading.hidden { display: none !important; }
.dx-cart-empty { text-align: center; padding: 56px 20px; border-radius: 16px; }
.dx-cart-empty .ic { width: 88px; height: 88px; border-radius: 50%; background: var(--dx-or-soft); color: var(--dx-or); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.dx-cart-empty .ic svg { width: 44px; height: 44px; }
.dx-cart-empty h1 { font-size: 22px; font-weight: 800; margin: 0 0 6px; }
.dx-cart-empty p { color: var(--dx-mut); margin: 0 0 18px; }
@media (max-width: 991px) {
    .dx-co { grid-template-columns: 1fr; }
    .dx-co-side { position: static; }
}
@media (max-width: 640px) {
    .dx-co-card { padding: 16px 14px; }
    .dx-co-head { flex-wrap: wrap; }
    .dx-ci-head { display: none; }
    .dx-ci { grid-template-columns: 64px minmax(0, 1fr) 30px; grid-template-areas: "img info act" "img qty total"; gap: 6px 12px; }
    .dx-ci-img { grid-area: img; width: 64px; height: 64px; align-self: start; }
    .dx-ci-info { grid-area: info; }
    .dx-ci-qty { grid-area: qty; justify-content: flex-start; }
    .dx-ci-total { grid-area: total; grid-column: 3; align-self: center; }
    .dx-ci-act { grid-area: act; align-self: start; }
    .dx-ci { grid-template-columns: 64px minmax(0, 1fr) auto; }
    .dx-ci-total { grid-column: auto; }
    .dx-co-grid, .dx-co-grid3 { grid-template-columns: 1fr; }
    .dx-co-sum .row.total b { font-size: 21px; }
}

/* Trang danh mục: danh sách trên điện thoại */
@media (max-width: 640px) {
    .dx-toolbar { padding: 8px 10px; font-size: 13px; }
    .dx-toolbar .cnt { width: 100%; }
    .dx-tb-r { width: 100%; justify-content: space-between; }
    .dx-sort { font-size: 13px; }
    .dx-toolbar select { min-width: 0; font-size: 13.5px; }
    .dx-grid.is-list .dx-card { grid-template-columns: 112px minmax(0, 1fr); }
    .dx-grid.is-list .dx-card-tags { padding: 8px 10px 0; }
    .dx-grid.is-list .dx-card-body { padding: 4px 10px 10px; }
    .dx-grid.is-list .dx-card-title { font-size: 14px; }
    .dx-grid.is-list .dx-price { font-size: 16px; }
    .dx-grid.is-list .dx-card-foot { justify-content: space-between; gap: 6px; }
}
.dx-sort label { margin: 0; font-weight: 500; }

/* Hộp link tiếp thị cho đối tác (trang chi tiết sản phẩm) */
.dx-aff { margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: linear-gradient(135deg, #fff7ef, #fff); border: 1.5px dashed #fdba74; }
.dx-aff-head { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.dx-aff-head .ic { width: 38px; height: 38px; border-radius: 10px; background: var(--dx-or); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dx-aff-head .ic svg { width: 20px; height: 20px; }
.dx-aff-head b { display: block; font-size: 15px; }
.dx-aff-head small { color: #4b5563; font-size: 13px; }
.dx-aff-head small strong { color: var(--dx-or2); }
.dx-aff-row { display: flex; gap: 8px; }
.dx-aff-row input { flex: 1; min-width: 0; height: 42px; border: 1.5px solid var(--dx-line); border-radius: 10px; padding: 0 12px; font-size: 13.5px; color: #374151; background: #fff; outline: none; }
.dx-aff-row input:focus { border-color: var(--dx-or); }
.dx-aff-row .dx-btn { height: 42px; padding: 0 14px; font-size: 14px; border-radius: 10px; white-space: nowrap; }
.dx-aff-row .dx-btn svg { width: 17px; height: 17px; }
.dx-aff-row .dx-btn.ok { background: #16a34a; box-shadow: none; }
.dx-aff-more { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--dx-or2) !important; }
@media (max-width: 640px) { .dx-aff-row .dx-btn span { display: none; } }

/* ===== Thanh tiêu đề danh mục ở trang chủ (kiểu macone: bo góc, nền cam, chữ trắng) ===== */
.dx-cat-bar { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0 0 14px; padding: 13px 20px; border-radius: 14px; overflow: hidden;
    background: linear-gradient(135deg, #fb923c 0%, #f97316 45%, #ea580c 100%); color: #fff !important; text-decoration: none !important;
    box-shadow: 0 8px 20px rgba(234, 88, 12, .28), inset 0 1px 0 rgba(255, 255, 255, .25); transition: transform .25s, box-shadow .25s; }
.dx-cat-bar:before { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .28), transparent); transform: skewX(-20deg); transition: left .7s; }
.dx-cat-bar:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(234, 88, 12, .36), inset 0 1px 0 rgba(255, 255, 255, .25); }
.dx-cat-bar:hover:before { left: 120%; }
.dx-cat-bar h2 { margin: 0; font-size: 23px; font-weight: 800; color: #fff; letter-spacing: .2px; text-shadow: 0 2px 6px rgba(124, 45, 18, .35); line-height: 1.25; text-align: center; }
.dx-cat-bar svg { width: 26px; height: 26px; flex-shrink: 0; filter: drop-shadow(0 2px 3px rgba(124, 45, 18, .3)); }
.dx-cat-bar img { width: 30px; height: 30px; object-fit: contain; flex-shrink: 0; filter: brightness(0) invert(1) drop-shadow(0 2px 3px rgba(124, 45, 18, .3)); }
/* Tab dòng xe dưới thanh tiêu đề */
.dx-cat-block .dx-tabs { gap: 8px; margin-bottom: 18px; }
.dx-cat-block .dx-tab { border-radius: 10px; background: #fff; box-shadow: 0 1px 3px rgba(17, 24, 39, .06); }
@media (max-width: 640px) {
    .dx-cat-bar { padding: 11px 14px; border-radius: 12px; margin-bottom: 10px; }
    .dx-cat-bar h2 { font-size: 19px; }
    .dx-cat-bar svg { width: 22px; height: 22px; }
    .dx-cat-bar img { width: 24px; height: 24px; }
    .dx-cat-block .dx-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
    .dx-cat-block .dx-tab { padding: 9px 10px; font-size: 13.5px; font-weight: 500; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .dx-cat-block .dx-tab.on { font-weight: 700; }
}
.dx-cat-block .dx-tab.on { background: var(--dx-or); border-color: var(--dx-or); color: #fff; box-shadow: 0 6px 14px rgba(249, 115, 22, .3); }
