/* ==========================================================
   Studio Margriet — LAST LAYER: mobile correctives
   Bump SM_VERSION on every edit (iOS only refetches on new ?ver=).
   ========================================================== */

/* 1. Long product titles in 2-col grid: prevent overflow */
@media (max-width: 720px) {
  .products { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .product { min-width: 0; }
  .product h3 { overflow-wrap: anywhere; }
}

/* 2. Search overlay & drawers: scroll containment, never global touch-action */
.sm-search-overlay__panel { touch-action: pan-y; overscroll-behavior: contain; }

/* 3. PDP: stack gallery + info comfortably, keep ATC full width */
@media (max-width: 960px) {
  .pdp__actions { gap: 10px; }
  .btn--add { min-width: 100%; flex: 1 0 100%; order: 2; }
  .pdp__actions .qty { order: 1; }
  .pdp__actions .btn-wish { order: 3; }
}

/* 4. Header: tighten on small screens */
@media (max-width: 600px) {
  .header__inner { padding: 12px 18px; gap: 12px; }
  .logo { font-size: 20px; }
  .topbar__inner { font-size: 11.5px; padding: 8px 18px; }
}

/* 5. Mobile cart/checkout/account stacking */
@media (max-width: 760px) {
  .woocommerce .col2-set,
  .woocommerce-page .col2-set { display: block !important; }
  .woocommerce .col2-set .col-1,
  .woocommerce .col2-set .col-2 { width: 100% !important; float: none !important; margin-bottom: 24px; }
  .woocommerce form .form-row-first,
  .woocommerce form .form-row-last { width: 100%; float: none; margin-right: 0; }
  .sm-cart .shop_table thead { display: none; }
  .woocommerce-account .woocommerce { display: block; }
}

/* 6. Footer columns single column on phones already handled in components.css */
