@media (hover: none) and (pointer: coarse) {
  .product-hot-overlay {
    opacity: 1 !important;
    pointer-events: auto;
    position: static;
    background: rgba(0, 0, 0, 0.08);
    color: #222;
    padding: 8px;
    font-size: 12px;
    box-shadow: none;
    height: auto; /* Bỏ height cố định trên mobile */
  }
  .product-hot-overlay-title {
    color: #222;
    font-size: 13px;
  }
  .product-hot-overlay-desc {
    color: #222;
    font-size: 12px;
    max-height: none; /* Bỏ max-height trên mobile */
  }
  .product-hot-overlay-desc ul li {
    color: #222;
    font-size: 11px;
  }
}
@media (max-width: 1200px) {
  #w-productlist .w-pl-right {
    width: calc(100% - 246px);
  }

  .product-category-item-ct {
    width: calc(25% - 20px);
  }
  #w-productlist .w-pl-right {
    width: calc(100% - 246px);
  }
  .product-category-item-ct {
    width: calc(25% - 20px);
  }
  footer#w-footer {
    width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
  }
  .w-f-left,
  .w-f-center,
  .w-f-right {
    width: 100% !important;
    float: none !important;
    margin: 0 0 16px 0 !important;
    height: auto !important;
    min-height: 0 !important;
  }
  .w-f-right {
    padding: 18px 10px 22px 10px;
  }
  .w-footer:after,
  .w-f-right:after {
    content: "";
    display: table;
    clear: both;
  }
  footer#w-footer {
    width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
  }
  .w-f-left,
  .w-f-center,
  .w-f-right {
    width: 100% !important;
    float: none !important;
    margin: 0 0 16px 0 !important;
    height: auto !important;
    min-height: 0 !important;
  }
  .w-f-right {
    padding: 18px 10px 22px 10px;
  }
  .w-footer:after,
  .w-f-right:after {
    content: "";
    display: table;
    clear: both;
  }
  .w-pd-i-left {
    width: 100%;
  }
  .pd-banner-payment {
    width: 100%;
  }
  .w-nl-right {
    max-width: 100%;
  }
}
@media (max-width: 992px) {
  /* Product meta & price section */
  .product-meta,
  .product-price-section {
    width: 100%;
    margin-left: 0;
    border-right: none;
  }

  .product-detail-container {
    padding: 10px;
  }

  .product-price-section {
    margin-top: 20px;
  }

  .feature-list li {
    font-size: 15px;
  }

  .contact-section {
    padding: 10px;
  }

  /* Product detail left & payment banner */
  .w-pd-i-left {
    width: 100%;
  }

  .pd-banner-payment {
    width: 100%;
  }

  /* Product list left/right, category item, order select */
  #w-productlist .w-pl-left {
    width: 100%; /* Ưu tiên 100% theo đoạn cuối */
  }

  #w-productlist .w-pl-right {
    width: 100%; /* Nếu cần full width thì điều chỉnh tại đây */
  }

  .product-category-item-ct {
    /* width: calc(33.33% - 20px); */ /* Nếu muốn bỏ thì giữ nguyên comment */
  }

  .w-pl-r-order select {
    margin-left: 0;
    width: 100%;
  }
}
@media (max-width: 991.98px) {
  .product-hot-overlay {
    font-size: 13px;
    padding: 12px;
  }
  .product-hot-overlay-title {
    font-size: 14px;
    margin-bottom: 6px;
  }
  .product-hot-overlay-desc {
    font-size: 12px;
  }
  .product-hot-overlay-desc ul li {
    font-size: 11px;
  }
  .product-hot-title {
    font-size: 20px;
    margin-left: 10px;
  }
  .product-hot-item {
    min-height: 340px;
  }
  #partners {
    height: 70px;
  }
  #partners .partners {
    height: 70px;
    padding: 0 8px;
  }
  #partners .partners img {
    max-height: 50px;
  }
  .product-category-title {
    font-size: 17px;
    padding: 6px 12px;
  }
  .product-category-menu a {
    font-size: 14px;
  }
  .product-category-item {
    min-height: 300px;
  }
  .w-body {
    flex-direction: column;
    width: 100% !important;
    min-width: 0;
  }
  .col-lg-8,
  .col-lg-4,
  .col-md-12 {
    max-width: 100%;
    flex: 0 0 100%;
  }
  .w-body {
    flex-direction: column;
    width: 100% !important;
    min-width: 0;
  }
  .col-lg-8,
  .col-lg-4,
  .col-md-12 {
    max-width: 100%;
    flex: 0 0 100%;
  }
  .news-scroll {
    max-height: 220px;
  }
  nav#w-menu ul.menu-pc {
    display: flex;
    flex-wrap: nowrap; /* Không xuống dòng */
    overflow-x: auto; /* Cho phép cuộn ngang */
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch; /* Mượt trên iOS */
    padding: 0 5px;
    width: 100%;
    gap: 0; /* Xóa khoảng cách nếu muốn */
    scrollbar-width: thin;
    scrollbar-color: #29aae2 #f1f1f1;
  }
  nav#w-menu ul.menu-pc li.m-pc-root {
    float: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 50vw; /* Mỗi mục chiếm 50% màn hình => 2 mục/lần */
    box-sizing: border-box;
    margin: 0;
    height: auto;
  }
  a.m-pc-r-a {
    padding: 0 8px;
    font-size: 13px;
    white-space: nowrap;
  }
  /* Ẩn thanh cuộn nếu muốn */
  nav#w-menu ul.menu-pc::-webkit-scrollbar {
    height: 4px;
  }
  nav#w-menu ul.menu-pc::-webkit-scrollbar-thumb {
    background: #29aae2;
    border-radius: 2px;
  }
  nav#w-menu ul.menu-pc::-webkit-scrollbar-track {
    background: #f1f1f1;
  }
  #w-header .w-h-center {
    width: 100%;
    padding: 0 10px;
    justify-content: center;
  }
  #w-header .w-h-center .w-h-c-search {
    width: 100%;
    margin-top: 10px;
    flex-direction: column;
    align-items: stretch;
    height: auto;
    padding: 10px;
  }
  #w-header .w-h-center .w-h-c-search input[type="text"],
  #w-header .w-h-center .w-h-c-search input[type="submit"] {
    width: 100%;
    margin: 5px 0;
  }
  #w-h-c-s-autocomplete {
    width: 100% !important;
    top: 100%;
    left: 0;
  }
  .w-h-right {
    text-align: center !important;
  }
  .wh-call {
    justify-content: center !important;
  }
  .support-label {
    text-align: center !important;
    margin-right: 0 !important;
    margin-bottom: 4px;
  }
  .phone-list {
    justify-content: center !important;
  }
  .table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .table td,
  .table th {
    padding: 0.5rem;
  }

  .quantity-control {
    flex-direction: column;
    gap: 5px;
  }

  .quantity-control .form-control {
    width: 50px !important;
  }

  .quantity-control .btn {
    width: 100%;
  }
  #w-productlist {
    flex-direction: column;
  }
  #w-productlist .w-pl-right {
    order: 1;
    width: 100% !important;
    margin-bottom: 20px;
  }
  #w-productlist .w-pl-left {
    order: 2;
    width: 100% !important;
    margin-bottom: 0;
    margin-top: 0;
  }
  .product-category-title {
    font-size: 17px;
    padding: 6px 12px;
  }
  .product-category-menu a {
    font-size: 14px;
  }
  .product-category-item {
    min-height: 300px;
  }
}
@media (max-width: 900px) {
  /* Footer sections responsive */
  .w-f-right .w-f-r-left,
  .w-f-right .w-f-r-center,
  .w-f-right .w-f-r-right {
    width: 100% !important;
    float: none !important;
    margin: 0 0 12px 0 !important;
    text-align: left;
  }

  .w-f-right .w-f-r-center {
    margin: 0 0 12px 0 !important;
  }

  .w-f-right .w-f-r-right ul li {
    width: 32px;
    height: 32px;
    margin-right: 6px;
  }

  /* Hotline bar responsive */
  .hotline-bar {
    font-size: 1.2rem;
    gap: 8px;
    padding: 8px 0;
  }

  .hotline-bar .hotline-icon {
    width: 26px;
    height: 26px;
    margin-right: 6px;
  }
}
@media (max-width: 768px) {
  /* -------------------- Liên hệ - Điện thoại -------------------- */
  .phone-list a {
    font-size: 16px;
  }

  .contact-section h3 {
    font-size: 16px;
  }

  .contact-numbers a {
    display: block;
    margin-bottom: 5px;
  }

  /* -------------------- RSS Section -------------------- */
  .rss-list {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 10px;
  }

  .rss-list p {
    width: 100%;
  }

  h1,
  h2 {
    font-size: 18px;
    line-height: 32px;
  }

  /* -------------------- Chi tiết sản phẩm -------------------- */
  .product-title {
    font-size: 18px;
  }

  .product-price-section .current-price {
    font-size: 28px;
  }

  .product-price-section .old-price {
    font-size: 18px;
  }

  .discount-badge {
    font-size: 12px;
    padding: 4px 10px;
  }

  ul.w-pd-i-head {
    gap: 2px;
  }

  ul.w-pd-i-head li {
    min-width: 90px;
  }

  ul.w-pd-i-head li a {
    height: 36px;
    line-height: 36px;
    font-size: 12px;
    padding: 0 6px;
  }

  /* -------------------- Tags -------------------- */
  .tags ul {
    gap: 6px;
  }

  .tags ul li {
    font-size: 12px;
  }

  .tags ul li a {
    padding: 4px 8px;
  }

  /* -------------------- Chi tiết bài viết / Tin tức -------------------- */
  .w-nl-r-detail {
    padding: 10px;
  }

  .w-nl-r-detail h1.w-nl-r-d-head {
    font-size: 22px;
  }

  .w-nl-r-detail h2 {
    font-size: 20px;
  }

  .w-nl-r-detail h3 {
    font-size: 17px;
  }

  .w-nl-r-detail h4 {
    font-size: 15px;
  }

  .w-nl-r-detail * {
    font-size: 13px;
    line-height: 22px;
  }

  .w-news-newer h3.w-n-n-head {
    font-size: 18px;
  }

  /* -------------------- Breadcrumb / Đường dẫn -------------------- */
  ul.path-product {
    padding: 0 0 6px;
    gap: 4px;
  }

  ul.path-product li {
    font-size: 11px;
    line-height: 18px;
    padding: 0 10px 0 0;
  }

  ul.path-product li a,
  ul.path-product li h1,
  ul.path-product li h2 {
    font-size: 11px;
    line-height: 18px;
  }

  /* -------------------- Danh sách sản phẩm -------------------- */
  #w-productlist .w-pl-left,
  #w-productlist .w-pl-right {
    width: 100% !important;
    margin: 0 !important;
  }

  #w-productlist .w-pl-left {
    margin-bottom: 20px;
  }

  .product-category-item-ct {
    width: calc(50% - 20px);
  }

  .w-pl-snews {
    font-size: 13px;
    line-height: 20px;
    padding: 5px 0 0 0;
  }

  .product-hot-overlay-ct {
    padding: 10px;
  }

  .product-hot-overlay-ct-title {
    font-size: 15px;
  }

  .product-hot-overlay-ct-desc {
    font-size: 13px;
  }
}
@media (max-width: 767.98px) {
  /* === PRODUCT HOT === */
  .product-hot-overlay {
    font-size: 12px;
    padding: 10px;
  }
  .product-hot-overlay-title {
    font-size: 13px;
    margin-bottom: 5px;
  }
  .product-hot-overlay-desc {
    font-size: 11px;
  }
  .product-hot-overlay-desc ul li {
    font-size: 10px;
  }
  .product-hot-list {
    padding: 0 2px;
  }
  .product-hot-item {
    min-height: 320px;
    padding: 12px 4px 8px 4px;
  }

  /* === INTRO SECTION === */
  .intro-title {
    font-size: 20px;
  }
  .intro-desc,
  .intro-highlight {
    font-size: 15px;
  }

  /* === PRODUCT CATEGORY === */
  .product-category-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .product-category-list {
    padding: 0 2px;
  }
  .product-category-item {
    min-height: 240px;
    padding: 12px 4px 8px 4px;
  }

  /* === NEWS SECTION === */
  .news-scroll {
    max-height: 150px;
  }
  .ns-b-head {
    font-size: 16px;
    height: 28.5px;
  }
  .ns-b-list li {
    font-size: 14px;
  }

  /* === FORM + CART === */
  .form-section {
    padding: 15px;
  }
  .section-title {
    font-size: 1.1rem;
  }
  .table td,
  .table th {
    font-size: 0.9rem;
  }
  .p-cart-process {
    flex-direction: column;
  }
  .p-cart-process a,
  .p-cart-process #btnOrder {
    width: 100%;
    margin: 5px 0;
    font-size: 12px;
    line-height: 35px;
  }
  /* Ẩn cột thứ 3 trên bảng khi hiển thị mobile */
  .table th:nth-child(3),
  .table td:nth-child(3) {
    display: none;
  }
}
@media (max-width: 600px) {
  /* === FOOTER SECTIONS === */
  .w-f-left,
  .w-f-center,
  .w-f-right {
    font-size: 13px !important;
    padding: 8px 4px !important;
  }

  .w-f-left h4 {
    font-size: 16px !important;
  }

  .w-f-right .w-f-r-left p,
  .w-f-right .w-f-r-center p,
  .w-f-right .w-f-r-right p {
    font-size: 14px !important;
    line-height: 24px !important;
  }

  .w-f-right .w-f-r-left ul li a,
  .w-f-right .w-f-r-center ul li a {
    font-size: 11px !important;
  }

  .w-f-right .w-f-r-right ul li {
    width: 28px;
    height: 28px;
    margin-right: 4px;
  }

  .w-f-center img {
    max-width: 100%;
    height: auto;
  }

  /* === HOTLINE BAR === */
  .hotline-bar {
    flex-direction: column;
    align-items: flex-start;
    font-size: 1rem;
    padding: 7px 10px;
    gap: 4px;
    text-align: left;
  }

  .hotline-bar .hotline-icon {
    margin: 0 0 4px 0;
    width: 22px;
    height: 22px;
  }

  .hotline-bar a {
    display: inline-block;
    margin: 2px 0;
    font-size: 1rem;
  }
}
@media (max-width: 576px) {
  /* === HEADER === */
  .w-h-left a {
    height: 60px;
    width: 140px;
    background-size: contain;
  }

  .w-h-center {
    padding: 0 10px;
  }

  .w-h-right .wh-call a {
    font-size: 16px;
  }

  /* === PRODUCT INFO === */
  .product-title {
    font-size: 16px;
  }

  .meta-item {
    display: block;
  }

  .meta-item .label,
  .meta-item .value {
    display: inline-block;
    width: auto;
  }

  .feature-list li {
    font-size: 14px;
  }

  .phone-title {
    font-size: 12px;
  }

  .current-price {
    font-size: 24px;
  }

  .product-price-section {
    text-align: left;
  }

  /* === PRODUCT CATEGORY TABS === */
  ul.w-pd-i-head li a {
    height: 35px;
    line-height: 35px;
    font-size: 11px;
  }

  /* === NEWS DETAIL SECTION === */
  .w-nl-r-detail h1.w-nl-r-d-head {
    font-size: 20px;
  }

  .w-nl-r-detail h2 {
    font-size: 18px;
  }

  .w-nl-r-detail h3 {
    font-size: 16px;
  }

  .w-nl-r-detail h4 {
    font-size: 14px;
  }

  .w-nl-r-detail * {
    font-size: 12px;
    line-height: 20px;
  }

  .w-news-newer h3.w-n-n-head {
    font-size: 16px;
  }

  .w-news-newer ul li {
    margin: 6px 0;
  }

  /* === PRODUCT CATEGORY ITEM + PRICE INFO === */
  .product-category-item-ct {
    width: 100%;
  }

  .product-hot-name {
    font-size: 14px;
  }

  .product-hot-price {
    font-size: 18px;
  }

  .product-hot-oldprice {
    font-size: 13px;
  }

  .product-hot-model.blue {
    font-size: 16px;
  }

  .ns-b-head-category {
    font-size: 1rem;
  }
}
@media (max-width: 575.98px) {
  .form-section {
    padding: 10px;
  }

  .section-title {
    font-size: 1rem;
  }

  .table td,
  .table th {
    font-size: 0.85rem;
    padding: 0.4rem;
  }

  .quantity-control .form-control {
    width: 45px !important;
    height: 28px;
  }

  .quantity-control .btn {
    height: 28px;
    font-size: 0.8rem;
  }

  /* Thêm responsive cho ảnh sản phẩm */
  .table img.img-thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
  }

  /* Điều chỉnh cột giá */
  .table td:nth-child(5),
  .table th:nth-child(5) {
    min-width: 100px;
  }
}
@media (max-width: 480px) {
  /* Phone list styles */
  .phone-list a {
    font-size: 14px;
  }

  /* News section styles */
  .ns-b-head {
    font-size: 13px;
    height: 20px;
  }
  .ns-b-list li {
    font-size: 12px;
  }

  /* Product path navigation */
  ul.path-product {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
  ul.path-product li {
    padding: 0 0 0 10px;
    background-position: left center;
  }
  ul.path-product li:first-child {
    padding-left: 0;
    background: none;
  }

  /* Product news section */
  .w-pl-snews {
    font-size: 12px;
    line-height: 18px;
    padding: 3px 0 0 0;
    text-align: left;
  }
  .w-pl-snews p {
    margin-bottom: 3px !important;
  }
}
@media (max-width: 430px) {
  .phone-list a {
    font-size: 10px;
  }
}
