/* MOISSANITEMFG_MOBILE_DEEP_20261118A
   Keep the existing two-column product cards; target only measured mobile issues. */
@media (max-width: 639px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    padding-bottom: 62px;
  }

  .nav-toggle,
  .site-nav a,
  .btn,
  .thumb,
  .faq-item summary,
  .blog-filter a,
  .pagination a,
  .pagination span {
    min-height: 44px;
  }

  .site-nav a {
    display: flex;
    align-items: center;
  }

  .catalog-layout,
  .split,
  .contact-layout,
  .detail-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .catalog-layout {
    padding-right: 0;
    padding-left: 0;
  }

  .catalog-sidebar,
  .split-text,
  .split-media,
  .stat {
    min-width: 0;
    max-width: 100%;
  }

  .stats-grid,
  .stats-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat strong,
  .stat span {
    overflow-wrap: anywhere;
  }

  .table-wrap,
  .spec-wrap,
  .data-table,
  .price-table {
    max-width: 100%;
  }

  .terms-grid,
  .cert-grid,
  .feature-grid,
  .photo-grid,
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 14px;
  }

  .testi-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .term-card,
  .testi-card,
  .cert-card,
  .feature-card,
  .blog-card,
  .photo-grid figure {
    min-width: 0;
  }

  .term-card h3,
  .testi-card h3,
  .feature-card h3,
  .blog-body h2 {
    font-size: 14px;
    line-height: 1.45;
    overflow-wrap: anywhere;
  }

  .term-card p,
  .testi-card p,
  .feature-card p,
  .photo-grid figcaption {
    font-size: 12px;
    line-height: 1.6;
    overflow-wrap: anywhere;
  }

  .cert-grid figure {
    margin: 0;
  }

  .cert-grid img,
  .photo-grid img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }

  .cert-grid figcaption {
    font-size: 11px;
    line-height: 1.5;
  }

  .blog-body {
    padding: 14px 12px;
  }

  .blog-body .blog-meta {
    font-size: 10px;
    line-height: 1.5;
  }

  .blog-body > p {
    display: none;
  }

  .blog-body .read-more {
    display: inline-flex;
    align-items: center;
    margin-top: 8px;
  }

  /* Product purchase order, without changing the desktop two-column detail. */
  .detail-layout {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .detail-info {
    display: contents;
  }

  .detail-info > * {
    order: 8;
  }

  .detail-info > .pc-cat {
    order: 1;
    margin-bottom: 8px;
  }

  .detail-info > h1 {
    order: 2;
    margin: 0 0 12px;
    font-size: 28px;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  .detail-info > .detail-price {
    order: 3;
    margin-bottom: 20px;
  }

  .detail-layout > .detail-gallery {
    order: 4;
    width: 100%;
    margin-bottom: 22px;
  }

  .detail-info > .detail-actions {
    order: 5;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    width: 100%;
    gap: 10px;
    margin: 0 0 12px;
  }

  .detail-actions .btn {
    min-width: 0;
    padding: 12px 8px;
    font-size: 12px;
    text-align: center;
  }

  .detail-info > .detail-note {
    order: 6;
    margin-bottom: 22px;
  }

  .detail-info > .detail-desc {
    order: 7;
  }

  .detail-info > .spec-table {
    order: 9;
  }

  .detail-info > .detail-subhead {
    order: 10;
  }

  .detail-info > .tier-table {
    order: 11;
  }

  .detail-info > .wholesale-terms {
    order: 12;
  }

  .detail-main-img {
    width: 100%;
    aspect-ratio: 1 / 1;
  }

  .detail-main-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .thumbs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
  }

  .thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .detail-desc,
  .detail-note,
  .spec-table th,
  .spec-table td,
  .tier-table th,
  .tier-table td,
  .wholesale-terms td {
    font-size: 13px;
    line-height: 1.65;
    overflow-wrap: anywhere;
  }

  .hc-process,
  .hc-certs {
    padding: 42px 0 !important;
  }

  .hc-process > div,
  .hc-certs > div {
    padding-right: 16px !important;
    padding-left: 16px !important;
  }

  .hc-process > div > div[style*="display:grid"],
  .hc-certs > div > div[style*="display:grid"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 18px 12px !important;
  }

  .hc-process figure,
  .hc-certs figure {
    min-width: 0;
    padding: 8px !important;
    border-radius: 7px !important;
  }

  .hc-process figure img {
    height: auto !important;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 5px !important;
  }

  .hc-process figcaption,
  .hc-certs figcaption {
    font-size: 11px !important;
    line-height: 1.5 !important;
  }

  .inquiry-form input,
  .inquiry-form select,
  .inquiry-form textarea,
  .inquiry-form #inq-captcha,
  .search-bar input {
    min-height: 46px;
    font-size: 16px;
  }

  .inquiry-form textarea {
    min-height: 120px;
  }

  .inq-captcha {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
  }

  .inq-captcha img {
    width: 132px;
    height: 44px;
    object-fit: cover;
  }

  .inq-captcha #inq-captcha {
    flex: 1 1 150px;
    min-width: 0;
    font-size: 16px !important;
  }

  body a.desktop-contact-float {
    display: none !important;
  }

  .mobile-contact-bar {
    position: fixed;
    z-index: 500;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-height: 62px;
    background: #f3f6f8;
    border-top: 1px solid #d4e0e8;
    box-shadow: 0 -6px 20px rgba(15, 23, 32, .14);
  }

  .mobile-contact-bar a {
    display: flex;
    min-width: 0;
    min-height: 62px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 3px;
    padding: 7px 4px calc(7px + env(safe-area-inset-bottom));
    color: #16202a;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
  }

  .mobile-contact-bar a + a {
    border-left: 1px solid #d4e0e8;
  }

  .mobile-contact-bar a:first-child {
    background: #1268b3;
    color: #fff;
  }

  .mobile-contact-bar a:last-child {
    color: #126b37;
  }

  .mobile-contact-bar svg {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
  }
}

@media (min-width: 640px) {
  .mobile-contact-bar {
    display: none;
  }
}

@media (max-width: 639px) and (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .product-card,
  .blog-card {
    transition: none !important;
  }
}
