/* ===== DIENMAY VIP - Layout Fix v2.0 - 26/04/2026 ===== */
/* Cập nhật: 26/04/2026 06:50 (VN) */
/* Palette: Gold #C5A55A | Dark #1a1a2e | White #fff | Gray #666 (Phong thủy Kim) */

/* ── 0. RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; }
body {
  background: #f5f5f5 !important;
  color: #333 !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden !important;
}

/* ── 1. TOP PROMO BAR ── */
#ddv-topbar {
  background: linear-gradient(90deg, #1a1a2e 0%, #2d2d44 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  padding: 7px 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  width: 100%;
  position: relative;
  z-index: 100;
  letter-spacing: 0.2px;
}
#ddv-topbar span {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
@media (max-width: 768px) {
  #ddv-topbar { gap: 10px; font-size: 11px; flex-wrap: wrap; padding: 5px 8px; }
  #ddv-topbar span { font-size: 10px; }
}

/* ── 2. REMOVE OLD TRUST BAR ── */
.dmvip-trust-bar { display: none !important; }

/* ── 3. HEADER NAV (#header_menutop) ── */
#header_menutop {
  background: #1a1a2e !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
  border-bottom: 2px solid #C5A55A !important;
}
#header_menutop .wrap,
#header_menutop > div > div {
  max-width: 1240px !important;
  margin: 0 auto !important;
}

/* ── 4. CSSMENU ── */
#cssmenu {
  background: transparent !important;
  width: 100% !important;
  max-width: 1240px !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
}
#cssmenu ul { list-style: none; margin: 0; padding: 0; }
#cssmenu > ul {
  display: flex !important;
  align-items: center !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
}
#cssmenu > ul > li {
  float: left !important;
  display: block !important;
  position: relative;
}
#cssmenu > ul > li > a,
#cssmenu > ul > li > span.submenu-button {
  display: block;
  padding: 0 14px;
  line-height: 42px;
  white-space: nowrap;
  text-decoration: none;
  color: #fff !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  transition: background 0.2s, color 0.2s !important;
}
#cssmenu > ul > li:hover > a,
#cssmenu > ul > li.open > a {
  background: rgba(255,255,255,0.15) !important;
  color: #C5A55A !important;
}
#cssmenu > ul > li:first-child > a {
  background: #C5A55A !important;
  color: #1a1a2e !important;
  border-radius: 3px 3px 0 0 !important;
  font-weight: 700 !important;
}
#cssmenu > ul > li:first-child:hover > a {
  background: #b8963f !important;
}

/* Dropdown */
#cssmenu ul ul {
  display: none !important;
  position: absolute !important;
  top: 100%;
  left: 0;
  z-index: 9999;
  min-width: 180px;
  background: #333;
}
#cssmenu > ul > li:hover > ul,
#cssmenu > ul > li.open > ul { display: block !important; }
#cssmenu ul ul li { float: none !important; display: block !important; }
#cssmenu ul ul li a { line-height: 36px; padding: 0 15px; white-space: nowrap; color: #fff !important; }

/* Submenu dropdown behavior */
ul.menu-hori-pc-1, ul.ls.menu-hori-pc-1 { display: none !important; }
ul.menu-pc-c2-1 { display: none !important; }
li.sub-menu-pc-2 > ul { display: none !important; }
li.menu-pc-c2-2 > ul { display: none !important; }
.open > ul.menu-hori-pc-1,
.open > ul.ls.menu-hori-pc-1,
.open > ul.menu-pc-c2-1 { display: block !important; }
.sub-menu-pc-2.open > ul,
.menu-pc-c2-2.open > ul { display: block !important; }

/* ── 5. HEADER SEARCH (.heardert) ── */
#header-top-off,
.heardert {
  background: #fff !important;
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 16px !important;
  padding: 10px 16px !important;
  max-width: 1240px !important;
  margin: 0 auto !important;
  width: 100% !important;
}
.logovip {
  flex: 0 0 auto !important;
  min-width: 140px !important;
  max-width: 180px !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
}
.logovip img {
  max-height: 55px !important;
  width: auto !important;
  object-fit: contain !important;
  border: none !important;
  outline: none !important;
}
.tiemkiem, .h-searchbox {
  flex: 1 1 auto !important;
  max-width: 560px !important;
  margin: 0 !important;
}
.h-searchbox form,
.tiemkiem form {
  display: flex !important;
  align-items: center !important;
  background: #f4f4f4 !important;
  border: 1.5px solid #e0e0e0 !important;
  border-radius: 24px !important;
  overflow: hidden !important;
  transition: border-color 0.2s !important;
  padding: 0 !important;
}
.h-searchbox form:focus-within,
.tiemkiem form:focus-within {
  border-color: #C5A55A !important;
}
.h-searchbox form input[type="text"],
.tiemkiem form input[type="text"],
#keyword {
  flex: 1 !important;
  border: none !important;
  background: transparent !important;
  padding: 10px 16px !important;
  font-size: 14px !important;
  outline: none !important;
  color: #333 !important;
  min-width: 0 !important;
}
#keyword::placeholder { color: #999 !important; }
.h-submit, .icon-search,
.h-searchbox form input[type="submit"],
.tiemkiem form input[type="submit"] {
  background: #C5A55A !important;
  color: #fff !important;
  border: none !important;
  padding: 10px 20px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  border-radius: 0 24px 24px 0 !important;
  white-space: nowrap !important;
  min-width: 50px !important;
  transition: background 0.2s !important;
  flex-shrink: 0 !important;
}
.h-submit:hover,
.h-searchbox form input[type="submit"]:hover {
  background: #b8963f !important;
}

/* ── 6. HEADER ICONS ── */
.t-login { flex: 0 0 auto !important; margin-left: auto !important; }
.t-login ul {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.t-login ul li {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  float: none !important;
  background: transparent !important;
  border: none !important;
}
.t-login ul li a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;
  background: #f5f5f5 !important;
  transition: background 0.2s !important;
  text-decoration: none !important;
}
.t-login ul li a:hover { background: #f0e6cc !important; }
.t-login ul li img { max-width: 22px !important; max-height: 22px !important; object-fit: contain !important; }
.count_cart {
  position: relative !important;
  background: #C5A55A !important;
  color: #fff !important;
  border-radius: 50% !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  min-width: 18px !important;
  height: 18px !important;
  padding: 0 4px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  top: -8px !important;
  margin-left: -8px !important;
}
.t-login .list-login-ul { display: none !important; }
.t-login:hover .list-login-ul { display: block !important; }
.heardert .box_check { flex: 0 0 auto !important; }
.heardert .box_check ul {
  display: flex !important; align-items: center !important;
  gap: 8px !important; margin: 0 !important; padding: 0 !important; list-style: none !important;
}

/* ── 7. POLICY BAR ── */
.dmvip-policy-bar {
  background: #fff !important;
  border-top: 1px solid #f0f0f0 !important;
  border-bottom: 1px solid #f0f0f0 !important;
  padding: 8px 12px !important;
  display: flex !important;
  justify-content: center !important;
  gap: 32px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #333 !important;
}
.dmvip-policy-bar .policy-item {
  display: flex !important; align-items: center !important; gap: 6px !important;
  border-right: none !important; color: #333 !important;
}
.dmvip-policy-bar .policy-item .p-icon { color: #C5A55A !important; font-size: 16px !important; }

/* ── 8. MAIN WRAPPER ── */
.wrap, .container-off {
  max-width: 1240px !important;
  margin: 0 auto !important;
  padding: 0 12px !important;
  width: 100% !important;
  overflow-x: hidden !important;
}

/* ── 9. PRODUCT CARDS ── */
.item_product, .wrap-item {
  background: #fff !important;
  border-radius: 8px !important;
  border: 1px solid #e8e8e8 !important;
  overflow: hidden !important;
  transition: box-shadow 0.2s, transform 0.2s !important;
  cursor: pointer !important;
}
.item_product:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.10) !important;
  transform: translateY(-2px) !important;
  border-color: #C5A55A !important;
}
.item_product img {
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: contain !important;
  background: #fafafa !important;
  padding: 8px !important;
  display: block !important;
}

/* ── 10. PRICE ── */
.gia-ban, .gia-km,
[class*="price"] .current, [class*="price"] .sale,
.price-current, .sp-price,
.item_product [style*="color:red"],
.item_product [style*="color:#e31837"],
.item_product [style*="color: red"] {
  color: #C5A55A !important;
  font-size: 15px !important;
  font-weight: 700 !important;
}
.gia-goc, .gia-cu,
[class*="price"] del, [class*="price"] s,
.price-old {
  color: #999 !important;
  text-decoration: line-through !important;
  font-size: 12px !important;
}

/* ── 11. DISCOUNT BADGE ── */
.percent-deal, .label-sale, [class*="percent"],
.product-label span, .km-label {
  background: #C5A55A !important;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  border-radius: 4px !important;
  padding: 2px 6px !important;
}

/* ── 12. SECTION TITLES ── */
.pro-pm-title, .section-title, .temp-pro-title,
[class*="cate-name"], [class*="pro-title"], .pro-pm-list-menu a,
.pro-pm-homenews .pro-pm-tab span, .pro-pm-tab-title {
  color: #1a1a2e !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  border-left: 4px solid #C5A55A !important;
  padding-left: 10px !important;
}
.pro-pm-homenews, .temp-pro-name {
  border-bottom: 2px solid #C5A55A !important;
  margin-bottom: 12px !important;
  padding-bottom: 8px !important;
}

/* ── 13. BUTTONS ── */
.btn-buy, .btn-cart, .add-to-cart,
button[class*="buy"], button[class*="cart"],
.btn-add-cart, .them-vao-gio, .mua-ngay {
  background: #C5A55A !important;
  color: #fff !important;
  border: none !important;
  border-radius: 4px !important;
  padding: 8px 16px !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  cursor: pointer !important;
  transition: background 0.2s !important;
  display: inline-block !important;
}
.btn-buy:hover, .btn-cart:hover, .add-to-cart:hover {
  background: #b8963f !important;
}

/* ── 14. CATEGORY TABS ── */
.pro-pm-tab, .menu-pro-pm, .tab-cate {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  margin-bottom: 12px !important;
}
.pro-pm-tab li, .pro-pm-tab a, .tab-cate a,
.pro-pm-tab span {
  padding: 6px 14px !important;
  border-radius: 20px !important;
  border: 1.5px solid #e0e0e0 !important;
  background: #fff !important;
  color: #333 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: all 0.2s !important;
  white-space: nowrap !important;
}
.pro-pm-tab li.active, .pro-pm-tab li:hover,
.pro-pm-tab a.active, .pro-pm-tab a:hover,
.tab-cate a.active, .tab-cate a:hover {
  background: #C5A55A !important;
  color: #fff !important;
  border-color: #C5A55A !important;
}

/* ── 15. FOOTER ── */
footer, #footer, .footer {
  background: #1a1a2e !important;
  color: #ccc !important;
  border-top: 3px solid #C5A55A !important;
  padding: 24px 0 !important;
  margin-top: 32px !important;
}
footer a, #footer a, .footer a { color: #ccc !important; text-decoration: none !important; }
footer a:hover, #footer a:hover { color: #C5A55A !important; }

/* ── 16. BANNER / SLIDER ── */
.asdc, .banner-home, [class*="banner-slide"] {
  border-radius: 8px !important;
  overflow: hidden !important;
  margin-bottom: 16px !important;
}
.asdc {
  display: flex !important;
  width: 100% !important;
  gap: 0 !important;
  max-width: 100% !important;
}
.asdc img, .banner-home img {
  width: 100% !important;
  height: auto !important;
  object-fit: cover !important;
  border-radius: 0 !important;
  display: block !important;
}
.asdc .banner1, .asdc .ls.banner1 {
  flex: 1 1 100% !important;
  width: 100% !important;
  min-width: 0 !important;
}
.banner-home-right { display: none !important; }
.asdc .banner1 ul.img { height: auto !important; max-height: 400px !important; }
.asdc .banner1 ul.img li img {
  width: 100% !important; height: auto !important;
  max-height: 400px !important; object-fit: cover !important;
}

/* ── 17. PRODUCT GRID ── */
.products_list {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 10px !important;
  padding: 12px 0 !important;
}
.products_list .item_product { float: none !important; width: 100% !important; margin: 0 !important; }
.temp-pro {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 10px !important;
}
.temp-pro .item_product { float: none !important; width: 100% !important; margin: 0 !important; }

/* pro-pm-item: tab panel display */
.pro-pm-item { display: none !important; }
.pro-pm-item.pro-pm-item-active { display: block !important; }

/* ── 18. SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f5f5f5; }
::-webkit-scrollbar-thumb { background: #C5A55A; border-radius: 3px; }

/* ── 19. HOTLINE ── */
.dmvip-hotline { color: #C5A55A !important; font-weight: 700 !important; font-size: 15px !important; }

/* ── 20. LINKS ── */
a { color: #333; text-decoration: none; }
a:hover { color: #C5A55A !important; }

/* ── 21. SECTION BACKGROUND ── */
.pro-pm-homenews, .pro-pm-list, .home-section, .block-sp {
  background: #fff !important;
  border-radius: 8px !important;
  padding: 16px !important;
  margin-bottom: 16px !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06) !important;
  overflow: hidden !important;
}

/* ── 22. FLASH SALE ── */
#ddv-flash-sale {
  background: linear-gradient(90deg, #1a1a2e 0%, #C5A55A 100%) !important;
  color: #fff !important;
  padding: 10px 16px !important;
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  border-radius: 8px !important;
  margin-bottom: 16px !important;
  font-weight: 700 !important;
}

/* ── 23. CATEGORY ICON NAV ── */
ul.cat_item-t {
  display: flex !important; flex-wrap: wrap !important;
  width: 100% !important; overflow: hidden !important;
  align-items: flex-start !important; list-style: none !important;
  padding: 0 !important; margin: 0 !important;
}
ul.cat_item-t > li {
  float: none !important; display: block !important;
  min-width: 70px !important; max-width: 120px !important;
  text-align: center !important; overflow: hidden !important;
  height: 75px !important; max-height: 75px !important;
  flex-shrink: 0 !important; box-sizing: border-box !important;
}
ul.cat_item-t > li.open { height: auto !important; max-height: 2000px !important; overflow: visible !important; }
ul.cat_item-t a.row-tt { display: block !important; overflow: hidden !important; height: 75px !important; }
ul.cat_item-t a.row-tt img.img-fluid-t { max-height: 60px !important; width: auto; display: inline-block; }
.row-t { overflow: hidden; width: 100% !important; }

/* ── 24. NAVI FIXED ── */
.navi_menu.fixed {
  position: fixed !important; top: 0 !important; left: 0 !important; right: 0 !important;
  z-index: 9999 !important; background: #1a1a2e !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
}

/* ── 25. HARDCODED WIDTH OVERRIDES ── */
[style*="width:1470px"], [style*="width: 1470px"] {
  width: 100% !important; max-width: 1240px !important; box-sizing: border-box !important;
}
[style*="width:1200px"], [style*="width: 1200px"] {
  width: 100% !important; max-width: 1200px !important; box-sizing: border-box !important;
}
.Copyright { width: 100% !important; max-width: 1200px !important; box-sizing: border-box !important; padding: 0 15px !important; }
.danhmuc-footer { width: 100% !important; max-width: 1200px !important; height: auto !important; box-sizing: border-box !important; }

/* ── 26. MENU OVERFLOW FIX ── */
.menu-header-t {
  max-width: 100% !important; overflow: hidden !important;
  width: 100% !important; box-sizing: border-box !important;
}
.menu-header-t ul li ul { width: 100% !important; max-width: 1240px !important; }
.pro-pm-list-menu, .ls.pro-pm-list-menu {
  max-width: 100% !important; overflow: hidden !important;
  width: 100% !important; box-sizing: border-box !important;
}
.pro-pm-list { width: 100% !important; overflow: hidden !important; box-sizing: border-box !important; }
.ls.pro-pm-item, .ls.pro-pm-item-active { width: 100% !important; box-sizing: border-box !important; }
.container-off { overflow: hidden !important; }
.heardert ~ br { display: none !important; line-height: 0 !important; }

/* ── 27. IMG SAFETY ── */
img { max-width: 100%; height: auto; }
.item_product img { max-width: 100% !important; height: auto !important; }
.icon_menu img, .t-login img, .logovip img,
ul.cat_item-t img { width: auto !important; max-width: 100% !important; }

/* ── 28. RESPONSIVE 992px ── */
@media (max-width: 992px) {
  .products_list, .temp-pro { grid-template-columns: repeat(3, 1fr) !important; }
}

/* ── 29. RESPONSIVE 768px ── */
@media screen and (max-width: 768px) {
  #cssmenu > ul > li { float: none !important; display: block !important; }
  #cssmenu > ul > li > a { padding: 10px 15px !important; border-bottom: 1px solid rgba(255,255,255,0.1) !important; }
  #cssmenu ul ul { position: relative !important; top: auto !important; }
  .heardert {
    flex-direction: column !important; align-items: stretch !important; padding: 8px !important;
  }
  .heardert .logovip { text-align: center !important; padding-right: 0 !important; min-width: unset !important; }
  .heardert .tiemkiem { min-width: unset !important; width: 100% !important; }
  .logovip img { max-height: 50px !important; }
  .dmvip-policy-bar {
    flex-wrap: wrap !important; justify-content: center !important;
    gap: 5px !important; padding: 5px !important; font-size: 10px !important;
  }
  ul.cat_item-t > li { min-width: 60px !important; max-width: 80px !important; height: 65px !important; }
  .products_list, .temp-pro { grid-template-columns: repeat(2, 1fr) !important; gap: 8px !important; }
}

/* ── 30. RESPONSIVE 480px ── */
@media screen and (max-width: 480px) {
  .item_product .name_product a { font-size: 12px !important; line-height: 1.3 !important; }
  .item_product .price { font-size: 13px !important; }
  .box_check > div { font-size: 11px !important; margin-right: 6px !important; }
  ul.cat_item-t > li { min-width: 55px !important; max-width: 70px !important; }
}

/* ── 31. HEADER VISIBLE ── */
#header-top-off, .heardert { display: flex !important; width: 100% !important; }
#ddv-topbar { position: relative !important; z-index: 100 !important; }

/* ── 32. MUSIC PLAYER ── */
#dmvip-music-player { display: block !important; visibility: visible !important; opacity: 1 !important; pointer-events: auto !important; }
@media(min-width: 1300px) {
  #dmvip-music-player.cols-4 #dmvip-tab-mp3 { grid-template-columns: 1fr 1fr 1fr 1fr !important; }
}

/* ── 33. FLOAT BUTTONS ── */
.zalo-float, .phone-float, .messenger-float,
[class*="float-btn"], [class*="contact-float"],
[id*="zalo-btn"], .dmvip-float, .float-contact {
  z-index: 99999 !important;
}

/* ── 34. BANNER RESPONSIVE ── */
[class*="banner"] img, .slider-item img, .owl-carousel img {
  max-width: 100% !important; height: auto !important; object-fit: cover !important;
}

/* ── 35. HIDE EMPTY SECTIONS ── */
.brand-see, #brand-see-00, [class*='brand-carousel'],
.owl-carousel:empty, .owl-stage-outer:empty,
section:empty, div.home-section:empty {
  display: none !important; max-height: 0 !important; overflow: hidden !important;
  padding: 0 !important; margin: 0 !important;
}
.owl-carousel .owl-stage:empty { display: none !important; }
.owl-carousel:not(:has(.owl-item)) { display: none !important; }

/* ── 36. CONTAINER-OFF fluid ── */
.container-off {
  width: 100% !important; max-width: 1470px !important;
  margin: 0 auto !important; box-sizing: border-box !important;
  overflow-x: hidden !important;
}


/* === 37. MUSIC WIDGET COLLAPSED DEFAULT (2026-05-30) === */
#dmvip-music-player #dmvip-playlist-body { display: none !important; }
#dmvip-music-player #dmvip-playlist-body[style*="display: block"],
#dmvip-music-player #dmvip-playlist-body[style*="display:block"],
#dmvip-music-player.dmvip-mp-open #dmvip-playlist-body,
#dmvip-music-player.is-open #dmvip-playlist-body,
#dmvip-music-player.show-playlist #dmvip-playlist-body { display: block !important; }
#dmvip-music-player .dmvip-mp-main { min-height: 56px !important; align-items: center !important; padding: 8px 12px !important; }
#dmvip-music-player .dmvip-mp-info { display: flex !important; flex-direction: column !important; justify-content: center !important; gap: 2px !important; min-height: 40px !important; overflow: hidden !important; }
#dmvip-music-player .dmvip-mp-title { font-size: 14px !important; line-height: 1.3 !important; white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; font-weight: 600 !important; }
#dmvip-music-player .dmvip-mp-artist { font-size: 11px !important; line-height: 1.3 !important; opacity: 0.85 !important; display: block !important; visibility: visible !important; }
@media screen and (max-width: 768px) {
  #dmvip-music-player .dmvip-mp-main { min-height: 50px !important; padding: 6px 8px !important; }
  #dmvip-music-player .dmvip-mp-title { font-size: 13px !important; }
  #dmvip-music-player .dmvip-mp-artist { font-size: 10px !important; }
}
s