/* NC Home Market 2.4.7 — mobile commerce fixes only. */
@media (max-width:820px) {
  /* Product purchase CTA: keep the approved 170px / quantity-matched outline style. */
  body.ncsm-theme.single-product .ncsm-single-product-shell .summary form.cart button.single_add_to_cart_button,
  body.ncsm-theme.single-product .ncsm-single-product-shell .ncas-cart-wrap form.cart button.single_add_to_cart_button,
  body.ncsm-theme.single-product .ncsm-single-product-shell .ncss-purchase-box form.cart button.single_add_to_cart_button,
  body.ncsm-theme.single-product .ncas-cart-wrap .woocommerce-variation-add-to-cart button.single_add_to_cart_button,
  body.ncsm-theme.single-product .ncss-purchase-box .woocommerce-variation-add-to-cart button.single_add_to_cart_button {
    box-sizing:border-box!important;
    display:inline-flex!important;align-items:center!important;justify-content:center!important;
    flex:0 0 170px!important;width:170px!important;min-width:0!important;
    max-width:min(170px,calc(100% - 135px))!important;
    height:41px!important;min-height:41px!important;max-height:41px!important;
    padding:0 14px!important;margin:0!important;
    background:#fff!important;background-image:none!important;
    border:2px solid var(--ncsm-primary,#c1121f)!important;border-radius:9px!important;
    color:var(--ncsm-primary,#c1121f)!important;-webkit-text-fill-color:var(--ncsm-primary,#c1121f)!important;
    font-size:13px!important;font-weight:600!important;line-height:1.2!important;
    opacity:1!important;box-shadow:none!important;text-shadow:none!important;
  }
  body.ncsm-theme.single-product .ncsm-single-product-shell form.cart button.single_add_to_cart_button:hover,
  body.ncsm-theme.single-product .ncas-cart-wrap form.cart button.single_add_to_cart_button:hover {
    background:#fff4f5!important;color:var(--ncsm-primary,#c1121f)!important;
    -webkit-text-fill-color:var(--ncsm-primary,#c1121f)!important;border-color:var(--ncsm-primary,#c1121f)!important;
  }
  /* Woo normally hides the image column on mobile. Show it in the product-name cell instead. */
  body.ncsm-theme.woocommerce-cart .ncsm-classic-transaction .ncsm-cart-inline-thumb {
    display:inline-flex!important;flex:0 0 64px!important;width:64px!important;height:64px!important;
    align-items:center!important;justify-content:center!important;
    border:1px solid #e7ebf0!important;border-radius:9px!important;background:#fff!important;
    overflow:hidden!important;
  }
  body.ncsm-theme.woocommerce-cart .ncsm-classic-transaction .ncsm-cart-inline-thumb img {
    display:block!important;width:100%!important;height:100%!important;
    max-width:100%!important;object-fit:contain!important;
  }
  body.ncsm-theme.woocommerce-cart .ncsm-classic-transaction .ncsm-cart-inline-name {
    display:flex!important;align-items:center!important;gap:12px!important;min-width:0!important;
  }
  body.ncsm-theme.woocommerce-cart .ncsm-classic-transaction .ncsm-cart-inline-title {min-width:0!important;flex:1!important}
  body.ncsm-theme.woocommerce-cart .ncsm-classic-transaction td.product-name::before {margin-bottom:8px!important}
}
@media (min-width:821px) {
  body.ncsm-theme.woocommerce-cart .ncsm-classic-transaction .ncsm-cart-inline-thumb {display:none!important}
}
/* Desktop cart thumbnail: preserve native Woo image, make it readable. */
body.ncsm-theme.woocommerce-cart .ncsm-classic-transaction td.product-thumbnail img {
  display:block!important;width:72px!important;height:72px!important;max-width:72px!important;
  object-fit:contain!important;border:1px solid #e8ebef!important;border-radius:9px!important;
}
