/* Opto Zero v4.00 — mobile list mode only.
   Keep the product card design unchanged.
   Make the quantity block look like the provided example:
   wide horizontal control with a broad center input. */

@media (max-width: 767px) {
  [data-oc-product-grid].oc-list-view .oc-product-card .oc-product-actions,
  .oc-products-grid.oc-list-view .oc-product-card .oc-product-actions,
  .oc-home-products.oc-list-view .oc-product-card .oc-product-actions,
  .search-grid-fix.oc-list-view .oc-product-card .oc-product-actions {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    justify-content: stretch !important;
    align-items: center !important;
    width: 100% !important;
    min-width: 0 !important;
    gap: 0 !important;
  }

  [data-oc-product-grid].oc-list-view .oc-product-card .oc-qty-control,
  .oc-products-grid.oc-list-view .oc-product-card .oc-qty-control,
  .oc-home-products.oc-list-view .oc-product-card .oc-qty-control,
  .search-grid-fix.oc-list-view .oc-product-card .oc-qty-control {
    display: grid !important;
    grid-template-columns: 54px minmax(0, 1fr) 54px !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 46px !important;
    min-height: 46px !important;
    justify-self: stretch !important;
    align-self: center !important;
    border-radius: 15px !important;
    overflow: hidden !important;
  }

  [data-oc-product-grid].oc-list-view .oc-product-card .oc-qty-btn,
  .oc-products-grid.oc-list-view .oc-product-card .oc-qty-btn,
  .oc-home-products.oc-list-view .oc-product-card .oc-qty-btn,
  .search-grid-fix.oc-list-view .oc-product-card .oc-qty-btn {
    width: 54px !important;
    min-width: 54px !important;
    max-width: 54px !important;
    height: 46px !important;
    min-height: 46px !important;
    padding: 0 !important;
    font-size: 20px !important;
    line-height: 46px !important;
  }

  [data-oc-product-grid].oc-list-view .oc-product-card .oc-qty-input,
  .oc-products-grid.oc-list-view .oc-product-card .oc-qty-input,
  .oc-home-products.oc-list-view .oc-product-card .oc-qty-input,
  .search-grid-fix.oc-list-view .oc-product-card .oc-qty-input {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 46px !important;
    min-height: 46px !important;
    padding: 0 10px !important;
    font-size: 18px !important;
    line-height: 46px !important;
    text-align: center !important;
  }
}

@media (max-width: 370px) {
  [data-oc-product-grid].oc-list-view .oc-product-card .oc-qty-control,
  .oc-products-grid.oc-list-view .oc-product-card .oc-qty-control,
  .oc-home-products.oc-list-view .oc-product-card .oc-qty-control,
  .search-grid-fix.oc-list-view .oc-product-card .oc-qty-control {
    grid-template-columns: 48px minmax(0, 1fr) 48px !important;
    height: 44px !important;
    min-height: 44px !important;
  }

  [data-oc-product-grid].oc-list-view .oc-product-card .oc-qty-btn,
  .oc-products-grid.oc-list-view .oc-product-card .oc-qty-btn,
  .oc-home-products.oc-list-view .oc-product-card .oc-qty-btn,
  .search-grid-fix.oc-list-view .oc-product-card .oc-qty-btn {
    width: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    height: 44px !important;
    min-height: 44px !important;
    font-size: 19px !important;
    line-height: 44px !important;
  }

  [data-oc-product-grid].oc-list-view .oc-product-card .oc-qty-input,
  .oc-products-grid.oc-list-view .oc-product-card .oc-qty-input,
  .oc-home-products.oc-list-view .oc-product-card .oc-qty-input,
  .search-grid-fix.oc-list-view .oc-product-card .oc-qty-input {
    height: 44px !important;
    min-height: 44px !important;
    font-size: 17px !important;
    line-height: 44px !important;
  }
}
