/* ==========================================================================
   VINCO AGRI — MOBILE APP-SHELL UI SYSTEM (v1.0)
   Strictly scoped to mobile/coarse-pointer viewports. Zero Desktop leak.
   Palette: Organic Biophilic (#15803D / #2AA344, #173922, #F7FBF6)
   ========================================================================== */

html {
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

a,
button,
[role="button"],
input[type="button"],
input[type="submit"],
select,
label,
.locdanhmuc,
.dot-dungtich {
  touch-action: manipulation;
}

button,
[role="button"],
.vinco-bottom-nav-item,
.vinco-sticky-cta-btn,
.vinco-consult-action {
  -webkit-user-select: none;
  user-select: none;
}

/* Hide mobile-only App-Shell components on Desktop (>= 768px) */
#vinco-mobile-bottom-nav,
#vinco-product-sticky-bar,
#vinco-consult-sheet {
  display: none;
}

/* Prevent iOS Safari / Mobile WebView auto-zoom on form focus (< 16px triggers zoom) */
@media (pointer: coarse), (max-width: 767.98px) {
  html body input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):not([type="reset"]),
  html body select,
  html body textarea {
    font-size: 16px !important;
  }
}

/* Gate hover lift animations on touch devices to prevent sticky hover states */
@media (hover: none) and (pointer: coarse) {
  .zoom-container:hover .zoom-image {
    transform: none !important;
  }
}

/* ==========================================================================
   MOBILE VIEWPORT (< 768px) — APP-SHELL ARCHITECTURE
   ========================================================================== */
@media (max-width: 767.98px) {
  /* 1. Viewport & Scroll Hygiene */
  html,
  body {
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  html body {
    padding-top: calc(56px + env(safe-area-inset-top, 0px)) !important;
    padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px)) !important;
  }

  html body.vinco-sheet-open {
    overflow: hidden !important;
  }

  #parallex-inner,
  .parallex,
  .parallexx {
    background-attachment: scroll !important;
  }

  /* 2. Suppress Obstructing Floating OmiLiveTalk Bubbles on Mobile
        (Replaced cleanly by Bottom App Bar "Tu van" & Product Sticky Bar) */
  html body > div[id^="omi_"],
  html body [class*="omi-lt-"],
  #omiIntroWrapper {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
  }

  /* 3. Native-Feel Top App Bar (.header-main-mobile)
        IMPORTANT: Never set backdrop-filter / filter / transform on #header,
        because CSS spec turns #header (56px) into the containing block for
        position:fixed descendants (#mainNavbarMobile & #header-search-panel), clipping them! */
  html body #header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 100000 !important;
    background: #ffffff !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    transform: none !important;
    filter: none !important;
    border-bottom: 1px solid rgba(22, 57, 34, 0.08) !important;
    box-shadow: 0 2px 12px rgba(15, 52, 23, 0.05) !important;
  }

  html body #header > .container-fluid.bg-white {
    background: transparent !important;
  }

  html body #header .header-main-mobile {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    height: calc(56px + env(safe-area-inset-top, 0px)) !important;
    padding: env(safe-area-inset-top, 0px) 10px 0 10px !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  html body #header #mobile-menu-toggle.navbar-toggler-custom,
  html body #header .mobile-search-btn {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 12px !important;
    border: 1px solid transparent !important;
    background: transparent !important;
    color: #173922 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer;
    transition: transform 0.14s ease, background-color 0.14s ease, color 0.14s ease;
  }

  html body #header #mobile-menu-toggle.navbar-toggler-custom {
    color: #15803D !important;
  }

  html body #header #mobile-menu-toggle.navbar-toggler-custom[aria-expanded="true"] {
    background: rgba(42, 163, 68, 0.12) !important;
    border-color: rgba(42, 163, 68, 0.24) !important;
  }

  html body #header #mobile-menu-toggle.navbar-toggler-custom:active,
  html body #header .mobile-search-btn:active {
    transform: scale(0.93);
    background: rgba(42, 163, 68, 0.10) !important;
    color: #15803D !important;
  }

  html body #header .mobile-search-btn svg,
  html body #header #mobile-menu-toggle svg {
    width: 21px;
    height: 21px;
    display: block;
    flex-shrink: 0;
  }

  html body #header .mobile-logo-center {
    width: auto !important;
    max-width: 118px !important;
    top: calc(50% + (env(safe-area-inset-top, 0px) / 2)) !important;
  }

  html body #header .mobile-logo-center a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 44px;
  }

  html body #header .mobile-logo-center img {
    max-height: 40px !important;
    width: auto !important;
  }

  html body #header .mobile-right-group {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    position: relative;
    z-index: 6;
  }

  html body #header .header-main-mobile .gtranslate_wrapper .gt_float_switcher,
  html body #header .header-main-mobile .gt_float_switcher {
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
    font-size: 13px !important;
  }

  html body #header .header-main-mobile .gt_float_switcher .gt-selected,
  html body #header .header-main-mobile .gt_float_switcher .gt-selected .gt-current-lang {
    background: transparent !important;
    padding: 6px 4px !important;
  }

  /* 4. Mobile Slide-Down Search Panel (#header-search-panel) */
  html body #header-search-panel.is-open {
    display: block !important;
    position: fixed !important;
    top: calc(56px + env(safe-area-inset-top, 0px)) !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 100005 !important;
    background: #ffffff !important;
    border-top: 1px solid rgba(42, 163, 68, 0.10) !important;
    border-bottom: 1px solid rgba(42, 163, 68, 0.18) !important;
    box-shadow: 0 16px 32px rgba(15, 52, 23, 0.14) !important;
  }

  html body #header-search-panel .container {
    max-width: 100% !important;
    padding: 10px 12px !important;
  }

  html body #header-search-panel .search,
  html body #header-search-panel .search > div {
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  html body #header-search-form {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    margin: 0 !important;
  }

  html body #header-search {
    position: static !important;
    width: 100% !important;
    height: 46px !important;
    padding: 0 46px 0 46px !important;
    border: 1.5px solid #2AA344 !important;
    border-radius: 14px !important;
    background: #f7fbf6 !important;
    color: #173922 !important;
    font-size: 16px !important;
    line-height: 46px !important;
    box-sizing: border-box !important;
    outline: none !important;
    box-shadow: 0 2px 8px rgba(42, 163, 68, 0.08) !important;
  }

  html body #header-search::placeholder {
    color: #7d9682 !important;
  }

  html body #header-search-panel .fake-submit-button {
    position: absolute !important;
    left: 2px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #15803D !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 3 !important;
  }

  html body #header-search-panel .close-search {
    position: absolute !important;
    right: 4px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    border-radius: 999px !important;
    background: #edf5ec !important;
    color: #355341 !important;
    font-size: 22px !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    z-index: 3 !important;
  }

  /* 5. Mobile Navigation Drawer (#mainNavbarMobile) */
  html body #mainNavbarMobile.collapse.show,
  html body #mainNavbarMobile.show {
    display: block !important;
    position: fixed !important;
    top: calc(56px + env(safe-area-inset-top, 0px)) !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: calc(100vh - 56px - env(safe-area-inset-top, 0px)) !important;
    height: calc(100dvh - 56px - env(safe-area-inset-top, 0px)) !important;
    max-height: calc(100vh - 56px - env(safe-area-inset-top, 0px)) !important;
    max-height: calc(100dvh - 56px - env(safe-area-inset-top, 0px)) !important;
    padding: 6px 0 calc(88px + env(safe-area-inset-bottom, 0px)) !important;
    background: #ffffff !important;
    border-top: 1px solid rgba(22, 57, 34, 0.08) !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    z-index: 200000 !important;
  }

  html body #mainNavbarMobile > ul > li {
    border-bottom: 1px solid #f0f5f0 !important;
  }

  html body #mainNavbarMobile > ul > li > a {
    min-height: 48px;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px !important;
    font-family: "Be Vietnam Pro", "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    font-weight: 700 !important;
    color: #173922 !important;
  }

  html body #mainNavbarMobile .sub-menu {
    background: #f7fbf6 !important;
    padding: 4px 0 6px 16px !important;
    border-top: 1px solid #edf4ed !important;
  }

  html body #mainNavbarMobile .sub-menu li {
    border-bottom: 0 !important;
  }

  html body #mainNavbarMobile .sub-menu li a {
    min-height: 42px;
    display: flex !important;
    align-items: center;
    padding: 8px 20px 8px 18px !important;
    font-family: "Be Vietnam Pro", "Helvetica Neue", Arial, sans-serif;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #355341 !important;
    position: relative;
  }

  html body #mainNavbarMobile .sub-menu li a::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #2AA344;
    margin-right: 10px;
    flex-shrink: 0;
  }

  html body #mainNavbarMobile li a:active {
    background: #eaf6ec !important;
    color: #15803D !important;
  }

  /* 6. Global Bottom App Bar (#vinco-mobile-bottom-nav) */
  html body #vinco-mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99990;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: stretch;
    min-height: calc(60px + env(safe-area-inset-bottom, 0px));
    padding: 4px 4px calc(4px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.97);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    border-top: 1px solid rgba(22, 57, 34, 0.10);
    box-shadow: 0 -4px 20px rgba(15, 52, 23, 0.06);
    font-family: "Be Vietnam Pro", "Helvetica Neue", Arial, sans-serif;
  }

  .vinco-bottom-nav-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 50px;
    min-width: 44px;
    padding: 4px 2px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #5b7061 !important;
    text-decoration: none !important;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: transform 0.14s ease, color 0.14s ease, background-color 0.14s ease;
  }

  .vinco-bottom-nav-item svg {
    width: 21px;
    height: 21px;
    display: block;
    flex-shrink: 0;
  }

  .vinco-bottom-nav-item span {
    display: block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .vinco-bottom-nav-item:active {
    transform: scale(0.93);
    background: rgba(42, 163, 68, 0.08);
  }

  .vinco-bottom-nav-item.is-active {
    color: #15803D !important;
    font-weight: 700;
  }

  .vinco-bottom-nav-item.is-active::before {
    content: "";
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    border-radius: 0 0 999px 999px;
    background: #2AA344;
  }

  .vinco-bottom-nav-item.is-consult .vinco-consult-icon-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 22px;
    border-radius: 999px;
    background: rgba(42, 163, 68, 0.14);
    color: #15803D;
  }

  /* 7. Consult Bottom Sheet (#vinco-consult-sheet) */
  #vinco-consult-sheet {
    position: fixed;
    inset: 0;
    z-index: 100020;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    font-family: "Be Vietnam Pro", "Helvetica Neue", Arial, sans-serif;
  }

  #vinco-consult-sheet[hidden] {
    display: none !important;
  }

  #vinco-consult-sheet.is-open {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
  }

  .vinco-consult-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(12, 28, 17, 0.52);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
  }

  .vinco-consult-panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 520px;
    background: #ffffff;
    border-radius: 22px 22px 0 0;
    padding: 10px 16px calc(20px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -14px 38px rgba(12, 28, 17, 0.20);
    transform: translateY(16px);
    transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
  }

  #vinco-consult-sheet.is-open .vinco-consult-panel {
    transform: translateY(0);
  }

  .vinco-sheet-handle {
    width: 40px;
    height: 4px;
    border-radius: 999px;
    background: #d5e2d7;
    margin: 2px auto 12px;
  }

  .vinco-consult-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
  }

  .vinco-consult-head h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #173922;
    line-height: 1.3;
  }

  .vinco-consult-head p {
    margin: 3px 0 0;
    font-size: 13px;
    color: #5a6d60;
    line-height: 1.4;
  }

  .vinco-consult-close {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border: 0;
    border-radius: 999px;
    background: #f1f6f1;
    color: #355341;
    font-size: 24px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .vinco-consult-list {
    display: grid;
    gap: 10px;
  }

  .vinco-consult-action {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    padding: 10px 14px;
    border-radius: 16px;
    border: 1px solid #e4efe5;
    background: #f9fcf9;
    color: #173922 !important;
    text-decoration: none !important;
    transition: transform 0.14s ease, background-color 0.14s ease;
  }

  .vinco-consult-action:active {
    transform: scale(0.98);
    background: #eef7ef;
  }

  .vinco-consult-action-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #ffffff;
  }

  .vinco-consult-action.is-call .vinco-consult-action-icon {
    background: linear-gradient(135deg, #16a34a, #15803d);
  }

  .vinco-consult-action.is-zalo .vinco-consult-action-icon {
    background: linear-gradient(135deg, #0088ff, #0068ff);
  }

  .vinco-consult-action.is-messenger .vinco-consult-action-icon {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
  }

  .vinco-consult-action.is-dealer .vinco-consult-action-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
  }

  .vinco-consult-action-copy {
    flex: 1 1 auto;
    min-width: 0;
  }

  .vinco-consult-action-copy strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #173922;
    line-height: 1.25;
  }

  .vinco-consult-action-copy span {
    display: block;
    font-size: 12.5px;
    color: #5b7061;
    margin-top: 2px;
    line-height: 1.35;
  }

  /* 8. Sticky Product Action Bar (#vinco-product-sticky-bar on chi-tiet-san-pham) */
  html body #vinco-product-sticky-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99992;
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: calc(62px + env(safe-area-inset-bottom, 0px));
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.98);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    border-top: 1px solid rgba(22, 57, 34, 0.12);
    box-shadow: 0 -6px 22px rgba(15, 52, 23, 0.08);
    font-family: "Be Vietnam Pro", "Helvetica Neue", Arial, sans-serif;
  }

  .vinco-sticky-cta-btn {
    min-height: 46px;
    min-width: 48px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0 10px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.15;
    text-decoration: none !important;
    cursor: pointer;
    box-sizing: border-box;
    transition: transform 0.14s ease, filter 0.14s ease;
  }

  .vinco-sticky-cta-btn:active {
    transform: scale(0.95);
  }

  .vinco-sticky-cta-btn.is-icon-stack {
    flex-direction: column;
    gap: 2px;
    padding: 4px 6px;
    width: 52px;
    flex: 0 0 52px;
    font-size: 10.5px;
    font-weight: 600;
  }

  .vinco-sticky-cta-btn.is-call {
    background: #fff5f5;
    border: 1px solid rgba(229, 57, 53, 0.28);
    color: #c62828 !important;
  }

  .vinco-sticky-cta-btn.is-zalo {
    background: #eff7ff;
    border: 1px solid rgba(0, 136, 255, 0.28);
    color: #0068ff !important;
  }

  .vinco-sticky-cta-btn.is-consult {
    flex: 1 1 0;
    background: #fff8eb;
    border: 1.5px solid #f59e0b;
    color: #b45309 !important;
    text-align: center;
  }

  .vinco-sticky-cta-btn.is-buy {
    flex: 1.18 1 0;
    background: linear-gradient(135deg, #16a34a 0%, #0f8a3c 100%);
    border: 0;
    color: #ffffff !important;
    box-shadow: 0 6px 16px rgba(21, 128, 61, 0.25);
    text-align: center;
  }

  /* 9. Product Catalog Page (san-pham.php) Mobile Enhancements */
  html body #content-wrapper.vinco-product-page > .container {
    margin-top: 0 !important;
    padding-top: 8px !important;
  }

  html body #content-wrapper.vinco-product-page #parallex-inner.vinco-product-hero {
    padding: 12px 12px 10px !important;
  }

  html body #content-wrapper.vinco-product-page #parallex-inner.vinco-product-hero h1 {
    font-size: 24px !important;
    line-height: 1.3 !important;
  }

  html body .vinco-product-toolbar {
    gap: 10px !important;
    margin-bottom: 14px !important;
  }

  html body .vinco-product-toolbar .option-set {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 2px 2px 6px !important;
    gap: 8px !important;
    background: transparent !important;
  }

  html body .vinco-product-toolbar .option-set::-webkit-scrollbar {
    display: none;
  }

  html body .vinco-product-toolbar .option-set li,
  html body .vinco-product-toolbar .option-set li.active,
  html body .vinco-product-toolbar .option-set li.slide_active {
    flex: 0 0 auto !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  html body .vinco-product-toolbar .option-set li a {
    min-height: 44px !important;
    padding: 0 15px !important;
    font-size: 13px !important;
    white-space: nowrap !important;
  }

  html body .vinco-product-toolbar-side {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
  }

  html body .vinco-product-toolbar-side .span-filters-san-pham {
    white-space: nowrap !important;
    font-size: 14px !important;
  }

  html body .vinco-product-select-wrap {
    flex: 1 1 auto !important;
  }

  html body .vinco-product-toolbar-side .loaicay-select {
    min-height: 44px !important;
    font-size: 16px !important;
  }

  html body #content-wrapper.vinco-product-page .vinco-product-catalog > .container-fluid {
    padding-left: 6px !important;
    padding-right: 6px !important;
  }

  html body #content-wrapper.vinco-product-page .vinco-product-catalog .row.mx-auto > .col-12 {
    padding-left: 4px !important;
    padding-right: 4px !important;
  }

  /* Guarantee 2-column mobile grid before/without Isotope & prevent 0.001px Isotope fitRows subpixel wrap */
  html body #portfolio-wrapper.vinco-product-grid,
  html body #portfolio-wrapper.vinco-solution-product-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    --bs-gutter-x: 12px !important;
    --bs-gutter-y: 12px !important;
  }

  html body #portfolio-wrapper.vinco-product-grid > .portfolio-item,
  html body #portfolio-wrapper.vinco-solution-product-grid > .portfolio-item {
    flex: 0 0 49.9% !important;
    width: 49.9% !important;
    max-width: 49.9% !important;
    min-width: 0 !important;
    padding-left: 6px !important;
    padding-right: 6px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 12px !important;
    box-sizing: border-box !important;
  }

  html body #portfolio-wrapper.vinco-product-grid .portfolio-item figure {
    border-radius: 18px !important;
  }

  html body #portfolio-wrapper.vinco-product-grid .home-product-badge {
    white-space: nowrap !important;
    font-size: 10px !important;
    letter-spacing: 0.03em !important;
    min-height: 24px !important;
    padding: 0 9px !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  html body #portfolio-wrapper.vinco-product-grid .mediaholder.product,
  html body #portfolio-wrapper.vinco-product-grid .tline-box_product {
    min-height: 162px !important;
    padding: 12px 10px 8px !important;
    border-radius: 18px 18px 0 0 !important;
  }

  html body #portfolio-wrapper.vinco-product-grid .product-item-home {
    max-height: 142px !important;
  }

  html body #portfolio-wrapper.vinco-product-grid .product_description {
    min-height: 144px !important;
    padding: 12px 12px 14px !important;
    border-radius: 0 0 18px 18px !important;
  }

  html body #portfolio-wrapper.vinco-product-grid .home-product-name {
    font-size: 15px !important;
    line-height: 1.36 !important;
  }

  html body #portfolio-wrapper.vinco-product-grid .home-product-code,
  html body #portfolio-wrapper.vinco-product-grid .home-product-origin {
    font-size: 12px !important;
    line-height: 1.45 !important;
  }

  /* 10. Product Detail Page (chi-tiet-san-pham.php) Above-the-Fold & Bottom Sheet */
  html body .container-sanpham {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  html body #parallex-inner .col-md-2.col-sm-4 {
    display: none !important;
  }

  html body #parallex-inner #breadcrumbs ul.breadcrumb {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    scrollbar-width: none;
    gap: 2px;
  }

  html body #parallex-inner #breadcrumbs ul.breadcrumb::-webkit-scrollbar {
    display: none;
  }

  html body .slider-container {
    margin-top: 8px !important;
    margin-bottom: 12px !important;
  }

  html body .zoom-container {
    height: 236px !important;
    margin-bottom: 8px !important;
    border-radius: 14px !important;
  }

  html body #sliderSyncingThumb {
    margin-top: 6px !important;
  }

  html body #sliderSyncingThumb img.img-product-small {
    height: 54px !important;
    border-radius: 8px !important;
  }

  html body .slider-container .slick-prev,
  html body .slider-container .slick-next {
    width: 38px !important;
    height: 38px !important;
  }

  html body .slider-container .slick-prev:before,
  html body .slider-container .slick-next:before {
    line-height: 38px !important;
  }

  html body .chitietsp-tensp {
    font-size: 20px !important;
    line-height: 1.3 !important;
    margin-bottom: 6px !important;
  }

  html body .product-short-detail {
    gap: 8px 14px !important;
    margin-bottom: 10px !important;
  }

  html body .list-quycach li.dot-dungtich {
    min-height: 44px !important;
    min-width: 92px !important;
    padding: 0 !important;
    border-radius: 10px !important;
  }

  html body .list-quycach li.dot-dungtich a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 44px !important;
    padding: 0 14px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
  }

  /* Fast-Order Modal -> Native Mobile Bottom Sheet */
  html body #popup-mua-nhanh.modal-mn-wrapper {
    align-items: flex-end !important;
    z-index: 100030 !important;
  }

  html body #popup-mua-nhanh .modal-mn-box {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    border-radius: 22px 22px 0 0 !important;
    padding: 26px 18px calc(24px + env(safe-area-inset-bottom, 0px)) !important;
    box-shadow: 0 -14px 36px rgba(0, 0, 0, 0.24) !important;
  }

  html body #popup-mua-nhanh .close-mn-btn {
    top: 8px !important;
    right: 10px !important;
    width: 44px !important;
    height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 999px;
    background: #f3f6f4;
  }

  html body #popup-mua-nhanh .input-mn {
    min-height: 48px !important;
    font-size: 16px !important;
    border-radius: 12px !important;
  }

  html body #popup-mua-nhanh .btn-submit-mn {
    min-height: 48px !important;
    border-radius: 12px !important;
  }

  /* 11. Solution Landing Page (tin-tuc-solution-landing.php) */
  html body .vinco-solution-hero-label {
    display: none !important;
  }

  html body .vinco-solution-filter-item a {
    min-height: 44px !important;
  }

  html body .vinco-solution-product-card {
    border-radius: 18px !important;
  }

  html body .vinco-solution-product-media {
    min-height: 156px !important;
    padding: 12px 10px 8px !important;
  }

  html body .vinco-solution-product-media img {
    max-height: 136px !important;
  }

  html body .vinco-solution-product-body {
    padding: 8px 12px 14px !important;
    gap: 6px !important;
  }

  html body .vinco-solution-product-badge {
    font-size: 9.5px !important;
    min-height: 22px !important;
    padding: 0 8px !important;
    max-width: 100% !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  html body .vinco-solution-product-title {
    min-height: 40px !important;
    font-size: 14.5px !important;
    line-height: 1.35 !important;
  }

  html body .vinco-solution-product-code,
  html body .vinco-solution-product-meta {
    font-size: 12px !important;
    line-height: 1.45 !important;
  }

  html body .vinco-solution-product-link {
    font-size: 13px !important;
  }

  /* 12. Dealer Locator (he-thong.php) & Contact (contact.php) */
  html body #provinceSelect,
  html body #communeSelect {
    min-height: 46px !important;
    font-size: 16px !important;
    border-radius: 12px !important;
    padding: 8px 36px 8px 14px !important;
  }

  html body .store-card {
    border-radius: 14px !important;
    background: #ffffff !important;
    border: 1px solid #e4efe5 !important;
    border-left: 4px solid #2AA344 !important;
    box-shadow: 0 6px 18px rgba(15, 52, 23, 0.05) !important;
    padding: 14px 16px !important;
  }

  html body .store-card a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 44px !important;
    margin-top: 10px !important;
    padding: 0 16px !important;
    border-radius: 999px !important;
    background: rgba(42, 163, 68, 0.10) !important;
    color: #15803D !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
  }

  html body .right iframe {
    height: 340px !important;
    border-radius: 16px !important;
    margin-top: 8px;
  }

  html body #contact input[type="text"],
  html body #contact input[type="email"],
  html body #contact input[type="tel"],
  html body #contact textarea {
    width: 100% !important;
    min-height: 46px !important;
    font-size: 16px !important;
    border-radius: 10px !important;
    padding: 10px 14px !important;
    box-sizing: border-box !important;
  }

  html body #contact #submit.submit {
    width: 100% !important;
    min-height: 48px !important;
    border-radius: 12px !important;
    background: #2AA344 !important;
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    border: 0 !important;
  }

  html body .google-map {
    width: 100% !important;
    height: 300px !important;
    border-radius: 14px !important;
  }

  html body .lienhe-product a.button.line-color {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 48px !important;
    height: auto !important;
    padding: 12px 16px !important;
    white-space: normal !important;
    text-wrap: wrap !important;
    border-radius: 12px !important;
  }

  /* 13. Compact App-Grade Mobile Footer (footer.footer-light) */
  html body footer.footer-light {
    background: linear-gradient(180deg, #161d18 0%, #111613 100%) !important;
    border-top: 2px solid rgba(42, 163, 68, 0.38) !important;
    padding: 20px 0 20px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    text-align: left !important;
    font-family: "Be Vietnam Pro", "Helvetica Neue", Arial, sans-serif !important;
  }

  html body footer.footer-light > .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  html body footer.footer-light .footer-main-row {
    --bs-gutter-y: 0 !important;
    --bs-gutter-x: 16px !important;
    row-gap: 0 !important;
  }

  /* Block 1: Brand Header + Address + Quick Contact Pills */
  html body footer.footer-light .footer-brand {
    padding-right: calc(var(--bs-gutter-x) * 0.5) !important;
    margin-bottom: 14px !important;
    padding-bottom: 14px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    text-align: left !important;
  }

  html body footer.footer-light .footer-brand-head {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 8px !important;
  }

  html body footer.footer-light .footer-logo {
    height: 38px !important;
    max-height: 38px !important;
    width: auto !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
  }

  html body footer.footer-light .footer-brand-titles {
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }

  html body footer.footer-light .company-name {
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    letter-spacing: 0.01em !important;
    color: #34c759 !important;
    margin: 0 !important;
    text-align: left !important;
  }

  html body footer.footer-light .footer-brand-sub {
    display: block !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
    color: #93a398 !important;
    margin-top: 2px !important;
  }

  html body footer.footer-light .footer-address {
    display: flex !important;
    align-items: flex-start !important;
    gap: 8px !important;
    font-size: 12.5px !important;
    line-height: 1.45 !important;
    color: #bcc7c0 !important;
    margin: 0 0 10px 0 !important;
    text-align: left !important;
  }

  html body footer.footer-light .footer-address i {
    margin: 3px 0 0 0 !important;
    font-size: 13px !important;
    color: #2AA344 !important;
    flex-shrink: 0 !important;
  }

  html body footer.footer-light .footer-contact-actions {
    display: grid !important;
    grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr) !important;
    gap: 8px !important;
  }

  html body footer.footer-light .footer-contact-item {
    margin: 0 !important;
  }

  html body footer.footer-light .footer-contact-link {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    min-height: 44px !important;
    padding: 0 10px !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.11) !important;
    color: #eef4f0 !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    transition: transform 0.14s ease, background-color 0.14s ease;
  }

  html body footer.footer-light .footer-contact-link.is-phone {
    background: rgba(42, 163, 68, 0.16) !important;
    border-color: rgba(42, 163, 68, 0.38) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
  }

  html body footer.footer-light .footer-contact-link i {
    margin: 0 !important;
    font-size: 13px !important;
    color: #34c759 !important;
    flex-shrink: 0 !important;
  }

  html body footer.footer-light .footer-contact-link:active {
    transform: scale(0.97);
    background: rgba(42, 163, 68, 0.25) !important;
  }

  /* Block 2: 2-Column Navigation Grid (Ve Chung Toi | San Pham) */
  html body footer.footer-light .footer-title {
    font-size: 12.5px !important;
    font-weight: 800 !important;
    letter-spacing: 0.05em !important;
    color: #34c759 !important;
    margin-top: 0 !important;
    margin-bottom: 10px !important;
    padding-bottom: 6px !important;
    text-align: left !important;
  }

  html body footer.footer-light .footer-title::after {
    left: 0 !important;
    transform: none !important;
    bottom: 0 !important;
    width: 26px !important;
    height: 2.5px !important;
    border-radius: 999px !important;
    background-color: #2AA344 !important;
  }

  html body footer.footer-light .footer-nav-col {
    margin-bottom: 14px !important;
    padding-bottom: 10px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    text-align: left !important;
  }

  html body footer.footer-light .footer-nav-col ul li {
    margin-bottom: 1px !important;
  }

  html body footer.footer-light .footer-nav-col ul li a {
    display: flex !important;
    align-items: center !important;
    min-height: 33px !important;
    padding: 3px 0 !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
    color: #d4dfd7 !important;
    text-align: left !important;
    text-decoration: none !important;
  }

  html body footer.footer-light .footer-nav-col ul li a:active {
    color: #34c759 !important;
    padding-left: 0 !important;
  }

  /* Block 3: Quick Support Pills + Unified Social & Bo Cong Thuong Row */
  html body footer.footer-light .footer-connect-col {
    text-align: left !important;
  }

  html body footer.footer-light .footer-support-list {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin: 0 !important;
  }

  html body footer.footer-light .footer-support-list li {
    margin: 0 !important;
  }

  html body footer.footer-light .footer-support-list li a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 42px !important;
    padding: 6px 10px !important;
    border-radius: 11px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.10) !important;
    color: #e2ece5 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    text-align: center !important;
    text-decoration: none !important;
    transition: transform 0.14s ease, background-color 0.14s ease;
  }

  html body footer.footer-light .footer-support-list li a:active {
    transform: scale(0.97);
    background: rgba(42, 163, 68, 0.18) !important;
    color: #ffffff !important;
    padding-left: 10px !important;
  }

  html body footer.footer-light .footer-connect-bct {
    display: flex !important;
    align-items: flex-end !important;
    justify-content: space-between !important;
    gap: 12px !important;
    margin-top: 13px !important;
    padding-top: 12px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  }

  html body footer.footer-light .footer-connect-group .footer-title {
    margin-top: 0 !important;
    margin-bottom: 8px !important;
  }

  html body footer.footer-light .social-links {
    justify-content: flex-start !important;
    gap: 10px !important;
  }

  html body footer.footer-light .social-icon {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.07) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
    font-size: 16px !important;
    text-decoration: none !important;
    transition: transform 0.14s ease, background-color 0.14s ease;
  }

  html body footer.footer-light .social-icon:active {
    transform: scale(0.94) !important;
    background: rgba(42, 163, 68, 0.25) !important;
    border-color: rgba(42, 163, 68, 0.45) !important;
  }

  html body footer.footer-light .social-icon.is-zalo {
    background: rgba(0, 136, 255, 0.14) !important;
    border-color: rgba(56, 189, 248, 0.34) !important;
  }

  html body footer.footer-light .social-icon .vinco-zalo-label {
    font-family: "Be Vietnam Pro", "Helvetica Neue", Arial, sans-serif !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
    color: #38bdf8 !important;
    line-height: 1 !important;
  }

  html body footer.footer-light .footer-bct-wrap {
    margin-top: 0 !important;
    justify-content: flex-end !important;
    align-items: center !important;
    flex-shrink: 0 !important;
  }

  html body footer.footer-light .footer-bct-wrap a {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 44px !important;
  }

  html body footer.footer-light .footer-bct-wrap img {
    width: 112px !important;
    height: auto !important;
    display: block !important;
  }

  /* Block 4: Compact Copyright & Registration Colophon */
  html body footer.footer-light .footer-bottom {
    margin-top: 13px !important;
    padding-top: 11px !important;
    padding-bottom: 2px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    background: transparent !important;
    text-align: left !important;
  }

  html body footer.footer-light .footer-bottom hr {
    display: none !important;
  }

  html body footer.footer-light .footer-bottom p {
    font-size: 11.5px !important;
    line-height: 1.55 !important;
    color: #8c9a90 !important;
    margin: 0 !important;
    text-align: left !important;
  }
}

@media (max-width: 359.98px) {
  html body footer.footer-light .footer-contact-actions {
    grid-template-columns: 1fr !important;
  }

  html body #portfolio-wrapper.vinco-product-grid .product_description,
  html body .vinco-solution-product-body {
    padding: 10px 10px 12px !important;
  }

  html body #portfolio-wrapper.vinco-product-grid .home-product-name,
  html body .vinco-solution-product-title {
    font-size: 13.5px !important;
  }
}
