@media (min-width: 992px) and (max-width: 1199.98px) {
  .site-header .header-inner {
    gap: 0.75rem;
  }
  .brand .brand-logo {
    height: 75px;
    max-width: 297px;
  }
  .nav-main {
    gap: 0;
  }
  .nav-main > li > .nav-link {
    padding-inline: 0.5rem;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
  }
  .nav-main .dropdown-menu {
    --bs-dropdown-min-width: 230px;
  }
  .header-cta {
    --bs-btn-padding-x: .875rem;
    --bs-btn-padding-y: .5rem;
    font-size: 0.8125rem;
  }
}
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .site-header .header-inner {
    gap: 1rem;
  }
  .brand .brand-logo {
    height: 86px;
    max-width: 378px;
  }
  .nav-main > li > .nav-link {
    padding-inline: 0.625rem;
    font-size: 0.8125rem;
    letter-spacing: 0.05em;
  }
  .nav-main .dropdown-menu {
    --bs-dropdown-min-width: 240px;
  }
  .header-cta {
    --bs-btn-padding-x: 1rem;
    --bs-btn-padding-y: .5rem;
    font-size: 0.875rem;
  }
}
@media (min-width: 992px) and (max-width: 1599.98px) {
  .header-cta {
    margin-left: auto;
  }
}
@media (min-width: 1400px) and (max-width: 1599.98px) {
  .site-header .header-inner {
    gap: 1rem;
  }
  .header-hotline {
    display: none !important;
  }
  .nav-main > li > .nav-link {
    padding-inline: 0.75rem;
  }
  .nav-main .dropdown-menu {
    --bs-dropdown-min-width: 250px;
  }
}
@media (min-width: 992px) and (max-width: 1399.98px) {
  .hero-home .hero-grid {
    min-height: min(80vh, 640px);
  }
  .hero-home .hero-copy {
    padding-block: clamp(2rem, 4vw, 3rem);
  }
  .hero-home .hero-media {
    min-height: 460px;
  }
  .hero-home .hero-title {

    font-size: clamp(2rem, 1.8rem + 2vw, 2.625rem);
  }
  .hero-home .hero-sub {
    font-size: 1rem;
  }
  .hero-home .hero-hotline strong {
    font-size: 1.25rem;
  }
}
@media (min-width: 1400px) and (max-width: 1599.98px) {
  .hero-home .hero-grid {
    min-height: min(80vh, 640px);
  }
  .hero-home .hero-copy {
    padding-block: clamp(2.25rem, 4vw, 3.5rem);
  }
  .hero-home .hero-media {
    min-height: 460px;
  }
  .hero-home .hero-title {
    font-size: clamp(2.25rem, 1.9rem + 2vw, 3rem);
  }
  .hero-home .hero-sub {
    font-size: 1rem;
  }
  .hero-home .hero-hotline strong {
    font-size: 1.25rem;
  }
}

@media (max-width: 1399.98px) {
  .row.g-4, .row.g-5 {
    --bs-gutter-x: 1.5rem;
  }
}
@media (min-width: 768px) and (max-width: 991.98px) {
  .section {
    padding-block: 64px;
  }
  .section--xl {
    padding-block: 80px;
  }
  .cat-mosaic {
    grid-auto-rows: 160px;
  }
  .showcase-grid .show-item.show-main {
    min-height: 340px;
  }
}
@media (min-width: 576px) and (max-width: 767.98px) {
  .section {
    padding-block: 56px;
  }
  .section--xl {
    padding-block: 64px;
  }
  .hero-home .hero-actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}
@media (max-width: 575.98px) {
  .section {
    padding-block: 44px;
  }
  /* Tin tức + Dự án mobile: header dính sát nội dung, bớt khoảng trống */
  main > section.section--paper:first-of-type,
  main > section.section:first-of-type,
  .page-hero + .section--paper,
  .page-hero + .section {
    padding-top: 0.9rem;
  }
  .article-head {
    padding-top: 0.85rem !important;
    padding-bottom: 1.15rem !important;
  }
  .article-head .breadcrumb-line {
    margin-bottom: 0.45rem !important;
  }
  .article-head h1 {
    font-size: 1.85rem !important;
    line-height: 1.2 !important;
    margin-bottom: 0.45rem !important;
  }
  .article-head .article-meta {
    margin-top: 0.65rem !important;
    gap: 0.5rem 0.75rem !important;
  }
  main .cat-filter-bar {
    margin-bottom: 0.85rem !important;
  }
  .section--xl {
    padding-block: 56px;
  }
  .sec-head.sec-head--row {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-home .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-home .hero-actions .btn {
    width: 100%;
  }
  .hero-home .hero-actions .hero-hotline {
    justify-content: center;
    padding: 0.625rem 0;
  }
  .quote-panel {
    padding: 1.25rem;
  }
  .table-scroll .table-price {
    font-size: 0.875rem;
  }
  .cta-final .cta-actions {
    flex-direction: column;
    width: 100%;
  }
  .cta-final .cta-actions .btn {
    width: 100%;
  }
  .footer-site .footer-cta-band .footer-cta-inner {
    text-align: center;
    justify-content: center;
  }

  /* ==================== FOOTER COMPACT MOBILE ==================== */
  .footer-site {
    font-size: 0.84rem;
  }
  .footer-site .footer-top {
    padding: 1.75rem 0 0.85rem !important;
  }
  .footer-site .footer-brand {
    margin-bottom: 0.85rem !important;
    text-align: left;
  }
  .footer-site .footer-brand-main {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
  }
  .footer-site .footer-brand .brand-logo {
    height: 46px !important;
    width: auto !important;
    max-width: 125px !important;
    flex: 0 0 auto !important;
    object-fit: contain !important;
    margin-bottom: 0 !important;
    border-radius: 6px !important;
    background: #FFFFFF !important;
    padding: 3px 6px !important;
  }
  .footer-site .footer-brand p {
    font-size: 0.8rem !important;
    line-height: 1.35 !important;
    margin-bottom: 0 !important;
    flex: 1 1 auto !important;
    opacity: 0.85;
  }
  .footer-site .footer-brand .footer-cert {
    margin-top: 0.5rem !important;
    gap: 0.35rem !important;
  }
  .footer-site .footer-brand .footer-cert .cert-chip {
    font-size: 0.72rem !important;
    padding: 0.2rem 0.45rem !important;
  }
  .footer-site .footer-col {
    margin-bottom: 1.15rem !important;
  }
  .footer-site .footer-col-title {
    font-size: 0.8rem !important;
    margin-bottom: 0.55rem !important;
    padding-bottom: 0.25rem !important;
    border-bottom: 2px solid #E4570F !important;
    letter-spacing: 0.1em !important;
  }
  .footer-site .footer-links li {
    margin-bottom: 0.3rem !important;
  }
  .footer-site .footer-links a {
    font-size: 0.8125rem !important;
    gap: 0.35rem !important;
    color: rgba(255, 255, 255, 0.75) !important;
    padding: 2px 0 !important;
    line-height: 1.3 !important;
  }
  .footer-site .footer-links a:hover,
  .footer-site .footer-links a:active {
    color: #F5B301 !important;
  }
  .footer-site .footer-contact li {
    margin-bottom: 0.45rem !important;
    gap: 0.45rem !important;
    font-size: 0.8rem !important;
    line-height: 1.35 !important;
  }
  .footer-site .footer-contact li i {
    font-size: 0.9rem !important;
    margin-top: 0.1rem !important;
  }
  .footer-site .footer-contact li a {
    color: rgba(255, 255, 255, 0.85) !important;
  }
  .footer-site .footer-hours {
    margin-top: 0.5rem !important;
    padding: 0.4rem 0.6rem !important;
    font-size: 0.75rem !important;
    line-height: 1.3 !important;
    border-radius: 4px !important;
  }
  .footer-site .footer-bottom {
    padding: 0.85rem 0 4.75rem !important;
    font-size: 0.76rem !important;
    text-align: center !important;
  }
  .footer-site .footer-bottom .footer-bottom-inner {
    justify-content: center !important;
    flex-direction: column !important;
    gap: 0.35rem !important;
    text-align: center !important;
  }
  .footer-site .footer-bottom a {
    padding: 2px 4px !important;
  }

  /* Floating contact buttons position above mobile bar */
  .floating-contact {
    right: 8px !important;
    bottom: 66px !important;
    gap: 0.45rem !important;
    z-index: 1070 !important;
  }
  .floating-contact a {
    width: 44px !important;
    height: 44px !important;
    font-size: 1.15rem !important;
  }
  .floating-contact .fc-zalo {
    font-size: 0.82rem !important;
  }
  .back-top {
    right: 9px !important;
    bottom: 14px !important;
    width: 42px !important;
    height: 42px !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==================== PRICE TABLES — mobile stacked cards ====================
   Trên mobile biến từng dòng của bảng giá thành một thẻ dọc:
   [tên + swatch/ảnh]        [xu hướng / chi tiết]
   [mô tả phân loại]
   [GIÁ THU MUA]
   [75.000đ/kg]
   → không phải cuộn ngang vẫn xem đủ thông tin. */
@media (max-width: 767.98px) {
  .price-board .table-scroll,
  .price-page .price-board--all .table-scroll {
    overflow: visible !important;
  }
  .price-board .table-scroll .table-price,
  .price-page .price-board--all .table-scroll .table-price {
    min-width: 0 !important;
  }

  /* ---- Bảng giá: mỗi dòng thành một thẻ dễ đọc trên mobile ---- */
  .price-board .table-price,
  .price-page .price-board--all .table-price {
    display: block !important;
    width: 100% !important;
    border: 0 !important;
    background: transparent !important;
  }
  .price-board .table-price tbody,
  .price-page .price-board--all .table-price tbody {
    display: block !important;
  }
  .price-board .table-price thead,
  .price-page .price-board--all .table-price thead {
    display: none !important;
  }
  .price-board .table-price tbody tr:not(.price-section-row),
  .price-page .price-board--all .table-price tbody tr:not(.price-section-row) {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.75rem !important;
    padding: 0.75rem 0.9rem !important;
    margin-bottom: 0.65rem !important;
    border: 1px solid #EBE6DF !important;
    border-radius: 12px !important;
    background: #FFFFFF !important;
    box-shadow: 0 3px 10px rgba(22, 24, 28, 0.05) !important;
    position: relative !important;
    cursor: pointer !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease !important;
  }
  .price-board .table-price tbody tr:not(.price-section-row):active,
  .price-page .price-board--all .table-price tbody tr:not(.price-section-row):active {
    background-color: #FFFBF5 !important;
    border-color: #E8A46A !important;
  }
  .price-board .table-price tbody td,
  .price-page .price-board--all .table-price tbody td {
    padding: 0 !important;
    border: 0 !important;
    text-align: left !important;
  }
  .price-board .table-price tbody td:nth-child(1),
  .price-page .price-board--all .table-price tbody td:nth-child(1) {
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }

  /* Cột 1: Thumbnail + Tên loại */
  .price-board .table-price tbody .mat-name,
  .price-page .price-board--all .table-price tbody .mat-name {
    display: flex !important;
    align-items: center !important;
    gap: 0.8rem !important;
    white-space: normal !important;
    min-width: 0 !important;
    font-size: 0.95rem !important;
    line-height: 1.3 !important;
  }
  .price-board .table-price tbody .mat-name-link,
  .price-page .price-board--all .table-price tbody .mat-name-link {
    display: flex !important;
    align-items: center !important;
    gap: 0.8rem !important;
    width: 100% !important;
    min-width: 0 !important;
  }
  .price-board .table-price tbody .mat-name .mat-thumb,
  .price-page .price-board--all .table-price tbody .mat-name .mat-thumb,
  .price-board .table-price tbody .mat-thumb {
    width: 66px !important;
    height: 50px !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    border-radius: 9px !important;
    border: 1px solid #E8E0D6 !important;
    background: #F8F6F1 !important;
    overflow: hidden !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 1px 3px rgba(22,24,28,0.06) !important;
  }
  .price-board .table-price tbody .mat-thumb img,
  .price-page .price-board--all .table-price tbody .mat-name .mat-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    padding: 0 !important;
  }
  .price-board .table-price tbody .mat-name .mat-name-text,
  .price-page .price-board--all .table-price tbody .mat-name .mat-name-text {
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
    min-width: 0 !important;
  }
  .price-board .table-price tbody .mat-name-text strong,
  .price-page .price-board--all .table-price tbody .mat-name-text strong {
    font-size: 0.96rem !important;
    font-weight: 700 !important;
    color: #1C1F24 !important;
    line-height: 1.25 !important;
    word-break: break-word !important;
  }
  .price-board .table-price tbody .mat-name-text small,
  .price-page .price-board--all .table-price tbody .mat-name-text small {
    font-size: 0.78rem !important;
    color: #78828D !important;
    font-weight: 500 !important;
  }

  /* Ẩn cột mô tả và cột chi tiết trên mobile */
  .price-board .table-price tbody .mat-type,
  .price-board .table-price tbody td:nth-child(2),
  .price-board .table-price tbody td:nth-child(4),
  .price-page .price-board--all .table-price tbody td:nth-child(2),
  .price-page .price-board--all .table-price tbody td:nth-child(4) {
    display: none !important;
  }

  /* Cột giá thu mua */
  .price-board .table-price tbody td:nth-child(3),
  .price-page .price-board--all .table-price tbody td:nth-child(3) {
    flex: 0 0 auto !important;
    text-align: right !important;
  }
  .price-board .table-price tbody td:nth-child(3)::before,
  .price-page .price-board--all .table-price tbody td:nth-child(3)::before {
    display: none !important;
  }
  .price-board .table-price tbody .price-value,
  .price-page .price-board--all .table-price tbody .price-value {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-family: "Oswald", "Be Vietnam Pro", Arial, sans-serif !important;
    font-size: 1.08rem !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    color: #E4570F !important;
    background: #FFF5EE !important;
    border: 1px solid #FBD4B8 !important;
    border-radius: 9px !important;
    padding: 0.38rem 0.7rem !important;
    min-width: 0 !important;
    white-space: nowrap !important;
    box-shadow: 0 2px 6px rgba(228,87,15,0.06) !important;
  }
  .price-board .table-price tbody .price-note,
  .price-page .price-board--all .table-price tbody .price-note {
    display: block !important;
    font-size: 0.72rem !important;
    color: #8F959E !important;
    margin-top: 2px !important;
  }

  /* Tiêu đề nhóm (.price-section-row) */
  .price-board .table-price tbody tr.price-section-row,
  .price-page .price-board--all .table-price tbody tr.price-section-row {
    display: block !important;
    padding: 0 !important;
    margin: 1.1rem 0 0.55rem !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: #E4570F !important;
    box-shadow: none !important;
    overflow: hidden !important;
  }
  .price-board .table-price tbody tr.price-section-row:first-child,
  .price-page .price-board--all .table-price tbody tr.price-section-row:first-child {
    margin-top: 0 !important;
  }
  .price-board .table-price tbody .price-section-row th,
  .price-page .price-board--all .table-price tbody .price-section-row th {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.75rem !important;
    padding: 0.65rem 0.85rem !important;
    border: 0 !important;
    color: #FFFFFF !important;
    font-family: "Oswald", "Be Vietnam Pro", Arial, sans-serif !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
  }
  .price-board .table-price tbody .price-section-row small,
  .price-page .price-board--all .table-price tbody .price-section-row small {
    margin-left: 0 !important;
    padding-left: 0 !important;
    border-left: 0 !important;
    white-space: nowrap !important;
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 0.78rem !important;
    font-weight: 400 !important;
    font-family: "Be Vietnam Pro", Arial, sans-serif !important;
    text-transform: none !important;
  }
  .price-board--home .table-price tbody tr {
    padding: 0.75rem !important;
    margin-bottom: 0.6rem !important;
  }
  .price-board--home .table-price tbody .price-section-row th {
    padding: 0.55rem 0.75rem !important;
  }
  .price-board--home .table-price tbody .mat-thumb {
    width: 48px !important;
    height: 40px !important;
  }
  .price-board--home .table-price tbody .price-value {
    max-width: 100% !important;
    min-width: 0 !important;
    justify-content: flex-start !important;
    white-space: normal !important;
    font-size: 1rem !important;
  }

  /* ---- Bảng hoa hồng 3 cột (trang giới thiệu) ---- */
  .price-board .commission-table {
    border: 0;
    background: transparent;
  }
  .price-board .commission-table thead {
    display: none;
  }
  .price-board .commission-table tbody tr {
    display: block;
    padding: 0.875rem 1rem;
    margin-bottom: 0.75rem;
    border: 1px solid #E3E1DC;
    border-radius: 10px;
    background: #FFFFFF;
  }
  .price-board .commission-table tbody td {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.15rem 0;
    border-bottom: 0;
    text-align: right;
  }
  .price-board .commission-table tbody td::before {
    flex: 0 0 auto;
    font-family: "Oswald", "Be Vietnam Pro", Arial, sans-serif;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #66707A;
    text-align: left;
  }
  .price-board .commission-table tbody td:nth-child(1)::before { content: "Giá trị lô hàng"; }
  .price-board .commission-table tbody td:nth-child(2)::before { content: "Mức hoa hồng"; }
  .price-board .commission-table tbody td:nth-child(3)::before { content: "Ghi chú"; }
  /* ---- Nút hành động hero trang chi tiết phế liệu trên mobile ---- */
  .scrap-hero-actions {
    display: flex !important;
    gap: 0.5rem !important;
    width: 100%;
  }
  .scrap-hero-actions .btn {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    padding: 0.75rem 0.5rem !important;
    font-size: 0.875rem !important;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
  }
  #catFilterBtn, #priceFilterBtn, #productFilterBtn, #serviceFilterBtn, #projectFilterBtn, #newsFilterBtn { display:none !important; }
}
