/* MOISSAFACTORY_MOBILE_DEEP_20261118A
   Site-specific pass. All 1,694 knowledge links and all SEO copy stay in HTML. */
@media (max-width: 768px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    padding-bottom: 62px;
  }

  .topbar {
    max-width: 100vw;
  }

  .top-actions {
    flex: 0 0 44px;
  }

  .menu-btn {
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    justify-content: center;
  }

  .menu-btn-label {
    display: none;
  }

  .fs-close,
  .fs-link,
  .fs-cats a,
  .btn,
  .ptab,
  .faq-item summary {
    min-height: 44px;
  }

  /* The 78vh hero was shorter than its content and slid under the fixed header. */
  .hero-full {
    min-height: 740px;
  }

  .hero-inner {
    padding-bottom: 36px;
  }

  .hero-kicker {
    margin-bottom: 14px;
  }

  .hero-full h1 {
    font-size: 38px;
    line-height: 1.04;
  }

  .hero-lead {
    margin-bottom: 24px;
    font-size: 15px;
    line-height: 1.65;
  }

  .catwall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .catwall-card {
    min-width: 0;
  }

  .catwall-cap {
    padding: 12px;
  }

  .catwall-cap > span {
    font-size: 16px;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 14px;
  }

  .product-card,
  .product-name {
    min-width: 0;
  }

  .product-name {
    font-size: 13px;
    line-height: 1.45;
    overflow-wrap: anywhere;
  }

  .feature-grid,
  .terms-grid,
  .reviews-grid,
  .journal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 16px;
  }

  .feature,
  .term-card,
  .review-card,
  .article-card {
    min-width: 0;
  }

  .feature h3,
  .term-card h3,
  .review-card h3 {
    font-size: 15px;
    line-height: 1.4;
    overflow-wrap: anywhere;
  }

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

  .journal-grid .ac-body {
    padding: 14px 12px;
  }

  .journal-grid .ac-body h3 {
    font-size: 14px;
    line-height: 1.45;
    overflow-wrap: anywhere;
  }

  .journal-grid .ac-body p {
    display: none;
  }

  .journal-grid.reveal .article-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  /* Knowledge index: compact two-column cards, no links removed or paginated away. */
  .kb-cats {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    max-width: 100%;
    margin-bottom: 24px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .kb-cats::-webkit-scrollbar {
    display: none;
  }

  .kb-cat {
    flex: 0 0 auto;
    min-height: 44px;
    white-space: nowrap;
  }

  .kb-cats + .journal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 12px;
  }

  .kb-cats + .journal-grid .article-card {
    content-visibility: auto;
    contain-intrinsic-size: 180px;
    border: 1px solid var(--line);
    background: var(--bg);
  }

  .kb-cats + .journal-grid .ac-img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    overflow: hidden;
  }

  .kb-cats + .journal-grid .ac-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .kb-cats + .journal-grid .ac-body {
    padding: 11px 10px 12px;
  }

  .kb-cats + .journal-grid .article-cat {
    font-size: 9px;
    line-height: 1.4;
  }

  .kb-cats + .journal-grid .ac-body h3 {
    display: -webkit-box;
    margin: 6px 0 0;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  /* Product buying order: title and badges, gallery, inquiry, then tabbed detail. */
  .product-detail {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .product-info {
    display: contents;
  }

  .product-info > h1 {
    order: 1;
    margin: 0 0 14px;
    font-size: 28px;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  .product-info > .badges {
    order: 2;
    margin-bottom: 20px;
  }

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

  .product-info > .cta-row {
    order: 4;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 10px;
    margin: 0 0 24px;
  }

  .product-info > .cta-row .btn {
    min-width: 0;
    padding: 12px 10px;
    text-align: center;
  }

  .product-info > .ptabs {
    order: 5;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .product-info > .ptab {
    min-width: 0;
    padding: 10px 6px;
    font-size: 11px;
  }

  .product-info > .pane {
    order: 6;
  }

  .product-info > .wholesale-terms {
    order: 7;
  }

  .gallery-main-swipe {
    height: auto !important;
    aspect-ratio: 4 / 3;
  }

  .gallery-slide img {
    padding: 12px;
  }

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

  .gallery-thumbs img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .gal-arrow {
    width: 44px;
    height: 44px;
  }

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

  /* About trust galleries use inline desktop grid styles. */
  .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;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 20px;
  }

  .footer-col,
  .footer-col a,
  .footer-col p {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  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: #f7f5f0;
    border-top: 1px solid #ded9cf;
    box-shadow: 0 -6px 20px rgba(14, 15, 17, .12);
  }

  .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: #17181b;
    font-family: var(--sans);
    font-size: 10px;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
  }

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

  .mobile-contact-bar a:first-child {
    background: #17181b;
    color: #f7f5f0;
  }

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

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

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

@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
  html,
  .gallery-main-swipe {
    scroll-behavior: auto;
  }

  .catwall-card img,
  .product-card,
  .fs-menu {
    transition: none !important;
  }
}
