/* V1.19: mobile commerce presentation only. Native Woo data/forms stay intact.
 * Deliberately scoped away from the finished DIY designer and desktop layout. */
@media (max-width: 780px) {
  body:not(.shanman-designer-view) .store-commerce,
  body:not(.shanman-designer-view) .store-page .woocommerce,
  body:not(.shanman-designer-view) .store-page .wp-block-woocommerce-cart,
  body:not(.shanman-designer-view) .store-page .wp-block-woocommerce-checkout {
    min-width: 0;
  }

  /* Browse: two readable columns, whole product photos and thumb-size actions. */
  body:not(.shanman-designer-view) .store-shop-heading { margin-bottom: 18px; }
  body:not(.shanman-designer-view) .store-shop-heading h1 { font-size: clamp(28px, 7.5vw, 36px); margin-bottom: 12px; }
  body:not(.shanman-designer-view) .store-shop-heading > p:not(.store-eyebrow) { font-size: 14px; line-height: 1.6; margin-bottom: 14px; }
  body:not(.shanman-designer-view) .store-category-chips {
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding-bottom: 12px;
    margin-bottom: 16px;
    scrollbar-width: thin;
  }
  body:not(.shanman-designer-view) .store-category-chips a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 9px 14px;
    font-size: 13px;
    white-space: nowrap;
  }
  body:not(.shanman-designer-view) .store-commerce .woocommerce-breadcrumb { font-size: 12px; line-height: 1.5; margin-bottom: 16px; overflow-wrap: anywhere; }
  body:not(.shanman-designer-view) .store-commerce .woocommerce-result-count { float: none; margin: 0 0 8px; font-size: 12px; }
  body:not(.shanman-designer-view) .store-commerce .woocommerce-ordering { float: none; width: 100%; margin: 0 0 18px; }
  body:not(.shanman-designer-view) .store-commerce .woocommerce-ordering select { width: 100%; min-height: 44px; font-size: 16px; border-radius: 8px; }
  body:not(.shanman-designer-view) .store-commerce ul.products,
  body:not(.shanman-designer-view) .store-home .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; margin-bottom: 24px; }
  body:not(.shanman-designer-view) .store-commerce ul.products li.product,
  body:not(.shanman-designer-view) .store-home .woocommerce ul.products li.product { display: flex; flex-direction: column; min-width: 0; }
  body:not(.shanman-designer-view) .store-commerce ul.products li.product img,
  body:not(.shanman-designer-view) .store-home .woocommerce ul.products li.product img { aspect-ratio: 1; object-fit: contain; margin-bottom: 10px; border-radius: 10px; }
  body:not(.shanman-designer-view) .store-commerce ul.products li.product h2,
  body:not(.shanman-designer-view) .store-home .woocommerce ul.products li.product h2 { font-size: 15px; line-height: 1.4; padding: 0 0 5px; overflow-wrap: anywhere; }
  body:not(.shanman-designer-view) .store-commerce ul.products li.product .price,
  body:not(.shanman-designer-view) .store-home .woocommerce ul.products li.product .price { font-size: 16px; line-height: 1.4; margin-bottom: 10px; }
  body:not(.shanman-designer-view) .store-commerce ul.products li.product .button,
  body:not(.shanman-designer-view) .store-home .woocommerce ul.products li.product .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin-top: auto;
    padding: 10px 8px;
    font-size: 13px;
    line-height: 1.35;
    text-align: center;
    white-space: normal;
  }
  body:not(.shanman-designer-view) .store-commerce ul.products li.product .added_to_cart,
  body:not(.shanman-designer-view) .store-home .woocommerce ul.products li.product .added_to_cart { min-height: 44px; padding-block: 10px; font-size: 13px; }
  body:not(.shanman-designer-view) .store-commerce nav.woocommerce-pagination ul li a,
  body:not(.shanman-designer-view) .store-commerce nav.woocommerce-pagination ul li span { min-width: 44px; min-height: 44px; padding: 12px; }

  /* Detail: a complete image above the native variation/add-to-cart form. */
  body:not(.shanman-designer-view) .store-commerce div.product div.images,
  body:not(.shanman-designer-view) .store-commerce div.product div.summary { float: none; width: 100%; min-width: 0; margin-bottom: 22px; }
  body:not(.shanman-designer-view) .store-commerce div.product .woocommerce-product-gallery { min-width: 0; }
  body:not(.shanman-designer-view) .store-commerce div.product .woocommerce-product-gallery__image a > img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    max-height: 460px;
    object-fit: contain;
    background: var(--store-soft);
  }
  body:not(.shanman-designer-view) .store-commerce div.product .flex-control-thumbs li { padding: 3px; }
  body:not(.shanman-designer-view) .store-commerce div.product .flex-control-thumbs img { aspect-ratio: 1; object-fit: contain; }
  body:not(.shanman-designer-view) .store-commerce div.product .product_title { font-size: clamp(27px, 7vw, 34px); margin-bottom: 12px; overflow-wrap: anywhere; }
  body:not(.shanman-designer-view) .store-commerce div.product p.price,
  body:not(.shanman-designer-view) .store-commerce div.product span.price { font-size: 22px; margin-bottom: 12px; }
  body:not(.shanman-designer-view) .store-commerce .woocommerce-product-details__short-description,
  body:not(.shanman-designer-view) .store-commerce .woocommerce-tabs .panel { font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; }
  body:not(.shanman-designer-view) .store-commerce div.product form.cart { margin-top: 18px; }
  body:not(.shanman-designer-view) .store-commerce div.product form.cart .variations tr { grid-template-columns: 58px minmax(0, 1fr); gap: 10px; margin-bottom: 10px; }
  body:not(.shanman-designer-view) .store-commerce div.product form.cart .variations label { font-size: 14px; min-height: 46px; }
  body:not(.shanman-designer-view) .store-commerce div.product form.cart .variations select { height: 46px; min-height: 46px; font-size: 16px; padding-inline: 12px; }
  body:not(.shanman-designer-view) .store-commerce div.product .quantity .qty { min-height: 48px; height: 48px; font-size: 16px; }
  body:not(.shanman-designer-view) .store-commerce div.product form.cart .single_add_to_cart_button { min-height: 48px; font-size: 15px; padding: 10px 16px; }
  body:not(.shanman-designer-view) .store-commerce div.product .product_meta { font-size: 13px; margin-bottom: 18px; overflow-wrap: anywhere; }
  body:not(.shanman-designer-view) .store-commerce div.product .woocommerce-tabs ul.tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding: 0;
    margin-bottom: 18px;
    scrollbar-width: thin;
  }
  body:not(.shanman-designer-view) .store-commerce div.product .woocommerce-tabs ul.tabs li { flex: 0 0 auto; padding: 0; }
  body:not(.shanman-designer-view) .store-commerce div.product .woocommerce-tabs ul.tabs li a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; white-space: nowrap; }
  body:not(.shanman-designer-view) .store-commerce div.product .related > h2,
  body:not(.shanman-designer-view) .store-commerce div.product .upsells > h2 { font-size: 26px; }

  /* Form size prevents iOS input zoom. Do not replace Woo validation or controls. */
  body:not(.shanman-designer-view) .store-page .woocommerce input.input-text,
  body:not(.shanman-designer-view) .store-page .woocommerce textarea,
  body:not(.shanman-designer-view) .store-page .woocommerce select,
  body:not(.shanman-designer-view) .store-commerce form input.input-text,
  body:not(.shanman-designer-view) .store-commerce form select,
  body:not(.shanman-designer-view) .store-page .wc-block-components-text-input input,
  body:not(.shanman-designer-view) .store-page .wc-block-components-textarea,
  body:not(.shanman-designer-view) .store-page .wc-blocks-components-select__select {
    box-sizing: border-box;
    font-size: 16px;
    min-width: 0;
    max-width: 100%;
    min-height: 44px;
  }
  body:not(.shanman-designer-view) .store-page .woocommerce form .form-row { padding: 0; margin-bottom: 14px; }
  body:not(.shanman-designer-view) .store-page .woocommerce form .form-row label { font-size: 14px; line-height: 1.5; margin-bottom: 5px; }
  body:not(.shanman-designer-view) .store-page .woocommerce form .form-row .input-text,
  body:not(.shanman-designer-view) .store-page .woocommerce form .form-row select,
  body:not(.shanman-designer-view) .store-page .woocommerce form .password-input { width: 100%; }
  body:not(.shanman-designer-view) .store-page .woocommerce form fieldset { min-width: 0; max-width: 100%; padding: 14px; margin: 0 0 18px; }
  body:not(.shanman-designer-view) .store-page .woocommerce a.button,
  body:not(.shanman-designer-view) .store-page .woocommerce button.button,
  body:not(.shanman-designer-view) .store-page .woocommerce input.button { min-height: 44px; padding: 11px 14px; font-size: 14px; white-space: normal; }
  body:not(.shanman-designer-view) .store-page .woocommerce h2 { font-size: 27px; margin-block: 0 16px; }
  body:not(.shanman-designer-view) .store-page .woocommerce h3 { font-size: 23px; }
  body:not(.shanman-designer-view) .store-page .woocommerce-info,
  body:not(.shanman-designer-view) .store-page .woocommerce-message,
  body:not(.shanman-designer-view) .store-page .woocommerce-error,
  body:not(.shanman-designer-view) .store-commerce .woocommerce-info,
  body:not(.shanman-designer-view) .store-commerce .woocommerce-message,
  body:not(.shanman-designer-view) .store-commerce .woocommerce-error { font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }

  /* Classic cart keeps native responsive labels and every monetary column. */
  body:not(.shanman-designer-view) .store-page .woocommerce table.shop_table { width: 100%; margin-bottom: 20px; }
  body:not(.shanman-designer-view) .store-page .woocommerce table.shop_table th,
  body:not(.shanman-designer-view) .store-page .woocommerce table.shop_table td { font-size: 14px; padding: 10px 12px; vertical-align: middle; overflow-wrap: anywhere; }
  body:not(.shanman-designer-view) .store-page .woocommerce-cart-form table.cart .product-name { line-height: 1.5; }
  body:not(.shanman-designer-view) .store-page .woocommerce-cart-form table.cart .product-name dl.variation { font-size: 12px; }
  body:not(.shanman-designer-view) .store-page .woocommerce-cart-form table.cart .product-name dl.variation p { margin-block: 0 4px; }
  body:not(.shanman-designer-view) .store-page .woocommerce-cart-form .quantity .qty { width: 72px; min-height: 44px; font-size: 16px; }
  body:not(.shanman-designer-view) .store-page .woocommerce-cart-form a.remove { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; font-size: 25px; }
  body:not(.shanman-designer-view) .store-page .woocommerce-cart-form td.actions .coupon { display: flex; flex-wrap: wrap; gap: 8px; float: none; padding-bottom: 10px; }
  body:not(.shanman-designer-view) .store-page .woocommerce-cart-form td.actions .coupon .input-text { flex: 1 1 130px; float: none; width: auto; min-width: 0; margin: 0; }
  body:not(.shanman-designer-view) .store-page .woocommerce-cart-form td.actions .coupon .button { flex: 1 1 120px; float: none; width: auto; margin: 0; }
  body:not(.shanman-designer-view) .store-page .woocommerce-cart-form td.actions .coupon .coupon-error-notice { flex: 1 1 100%; width: 100%; font-size: 13px; }
  body:not(.shanman-designer-view) .store-page .cart-collaterals .cart_totals,
  body:not(.shanman-designer-view) .store-page .cart-collaterals .cross-sells { float: none; width: 100%; min-width: 0; }
  body:not(.shanman-designer-view) .store-page .cart_totals .wc-proceed-to-checkout { padding-block: 8px 0; }
  body:not(.shanman-designer-view) .store-page .cart_totals .wc-proceed-to-checkout a.checkout-button { font-size: 15px; margin: 0; min-height: 48px; }

  /* Block cart/checkout retain their own native breakpoints and payment flow. */
  body:not(.shanman-designer-view) .store-page .wc-block-components-main,
  body:not(.shanman-designer-view) .store-page .wc-block-components-sidebar,
  body:not(.shanman-designer-view) .store-page .wc-block-cart-items__row,
  body:not(.shanman-designer-view) .store-page .wc-block-components-address-form { min-width: 0; }
  body:not(.shanman-designer-view) .store-page .wc-block-components-sidebar { padding: 16px; border-radius: 10px; }
  body:not(.shanman-designer-view) .store-page .wc-block-components-product-name,
  body:not(.shanman-designer-view) .store-page .wc-block-components-product-metadata { overflow-wrap: anywhere; }
  body:not(.shanman-designer-view) .store-page .wc-block-cart-item__image img { object-fit: contain; }
  body:not(.shanman-designer-view) .store-page .wc-block-components-button:not(.is-link) { min-height: 48px; font-size: 15px; }
  body:not(.shanman-designer-view) .store-page .woocommerce-checkout-payment .payment_box,
  body:not(.shanman-designer-view) .store-page .woocommerce-checkout-review-order-table { overflow-wrap: anywhere; }

  /* Account navigation becomes a short swipeable strip, not a long sidebar. */
  body:not(.shanman-designer-view) .store-page .woocommerce-MyAccount-navigation,
  body:not(.shanman-designer-view) .store-page .woocommerce-MyAccount-content { float: none; width: 100%; min-width: 0; }
  body:not(.shanman-designer-view) .store-page .woocommerce-MyAccount-navigation ul {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    margin: 0 0 22px;
    padding: 0 0 8px;
    border: 0;
    scrollbar-width: thin;
  }
  body:not(.shanman-designer-view) .store-page .woocommerce-MyAccount-navigation li { flex: 0 0 auto; padding: 0; border: 1px solid var(--store-line); border-radius: 8px; }
  body:not(.shanman-designer-view) .store-page .woocommerce-MyAccount-navigation a { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 13px; font-size: 14px; white-space: nowrap; }
  body:not(.shanman-designer-view) .store-page .woocommerce-MyAccount-content { font-size: 14px; overflow-wrap: anywhere; }
  body:not(.shanman-designer-view) .store-page .woocommerce-MyAccount-content address { padding: 14px; line-height: 1.7; }
  body:not(.shanman-designer-view) .store-page .woocommerce form.login,
  body:not(.shanman-designer-view) .store-page .woocommerce form.register { padding: 18px; margin-block: 14px 24px; border-radius: 10px; }
}
