/* ARIAN v19 — ONLY polymer-structure mobile alignment fix.
 * Scope: #products-structure only, mobile only.
 * Does not touch titles, images, usage, raw materials, panes, or desktop.
 */
@media (max-width: 767px) {
  #products-structure .tabs {
    display: grid !important;
    grid-template-columns: repeat(2, 145px) !important;
    justify-content: center !important;
    align-items: start !important;
    gap: 24px 14px !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Neutralize the original desktop nth-child positioning rules. */
  #products-structure .tabs > .tab,
  #products-structure .tabs > .tab:nth-child(1),
  #products-structure .tabs > .tab:nth-child(2),
  #products-structure .tabs > .tab:nth-child(3),
  #products-structure .tabs > .tab:nth-child(4),
  #products-structure .tabs > .tab:nth-child(5) {
    display: flex !important;
    width: 145px !important;
    min-width: 145px !important;
    max-width: 145px !important;
    height: 160px !important;
    min-height: 160px !important;
    max-height: 160px !important;
    margin: 0 !important;
    margin-top: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 0 !important;
    margin-left: 0 !important;
    padding: 0 !important;
    transform: none !important;
    justify-content: center !important;
    align-items: center !important;
    justify-self: center !important;
    align-self: start !important;
  }

  #products-structure .tabs > .tab > .home-services__item {
    width: 145px !important;
    min-width: 145px !important;
    max-width: 145px !important;
    height: 160px !important;
    min-height: 160px !important;
    max-height: 160px !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    justify-self: center !important;
  }
}

@media (max-width: 340px) {
  #products-structure .tabs {
    grid-template-columns: repeat(2, 136px) !important;
    gap: 20px 8px !important;
  }

  #products-structure .tabs > .tab,
  #products-structure .tabs > .tab:nth-child(1),
  #products-structure .tabs > .tab:nth-child(2),
  #products-structure .tabs > .tab:nth-child(3),
  #products-structure .tabs > .tab:nth-child(4),
  #products-structure .tabs > .tab:nth-child(5),
  #products-structure .tabs > .tab > .home-services__item {
    width: 136px !important;
    min-width: 136px !important;
    max-width: 136px !important;
    height: 150px !important;
    min-height: 150px !important;
    max-height: 150px !important;
  }
}
