/* EZ Custom Ag Product Engine 0.7.24: mobile shop navigation and catalog.
   Loaded AFTER the historical shop stylesheet. Desktop layout intentionally unchanged. */
@media (max-width: 750px) {
  /* All six primary shopping options are visible without swiping or scrolling.
     Explicitly outrank both the old homepage rules and the body-open fallback. */
  body #ezca-v070-home-shop.ezca-v0719-global-fixed {
    padding: 7px 10px 8px !important;
    box-sizing: border-box !important;
    max-width: 100vw !important;
    overflow: visible !important;
  }
  body #ezca-v070-home-shop.ezca-v0719-global-fixed .ezca-v070-inner {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
  }
  body #ezca-v070-home-shop.ezca-v0719-global-fixed .ezca-v073-toolbar.ezca-v076-one-line {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-rows: auto auto !important;
    align-items: center !important;
    column-gap: 8px !important;
    row-gap: 7px !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
  }
  body #ezca-v070-home-shop.ezca-v0719-global-fixed .ezca-v073-toolbar.ezca-v076-one-line > h2 {
    display: none !important;
  }
  body #ezca-v070-home-shop.ezca-v0719-global-fixed .ezca-v073-toolbar.ezca-v076-one-line > .ezca-v070-search {
    grid-column: 1 !important;
    grid-row: 1 !important;
    display: flex !important;
    align-items: stretch !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    flex: none !important;
    flex-wrap: nowrap !important;
    gap: 3px !important;
    padding: 3px !important;
    margin: 0 !important;
    box-shadow: none !important;
    border: 1px solid #cfd9c6 !important;
    border-radius: 8px !important;
    background: #fff !important;
  }
  body #ezca-v070-home-shop.ezca-v0719-global-fixed .ezca-v073-toolbar.ezca-v076-one-line > .ezca-v070-search .ezca-v070-search-icon {
    display: none !important;
  }
  body #ezca-v070-home-shop.ezca-v0719-global-fixed .ezca-v073-toolbar.ezca-v076-one-line > .ezca-v070-search input[type="search"] {
    display: block !important;
    flex: 1 1 0 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 42px !important;
    font-size: 14px !important;
    line-height: 1.25 !important;
    padding: 6px 7px !important;
    margin: 0 !important;
    background: #fff !important;
  }
  body #ezca-v070-home-shop.ezca-v0719-global-fixed .ezca-v073-toolbar.ezca-v076-one-line > .ezca-v070-search button {
    flex: 0 0 auto !important;
    width: auto !important;
    min-height: 42px !important;
    height: 42px !important;
    padding: 0 10px !important;
    font-size: 12px !important;
    line-height: 42px !important;
    border-radius: 6px !important;
  }
  body #ezca-v070-home-shop.ezca-v0719-global-fixed .ezca-v073-toolbar.ezca-v076-one-line > .ezca-v073-all {
    grid-column: 2 !important;
    grid-row: 1 !important;
    display: inline-flex !important;
    width: auto !important;
    padding: 6px 0 !important;
    margin: 0 !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
    color: #315c24 !important;
  }
  body #ezca-v070-home-shop.ezca-v0719-global-fixed .ezca-v073-toolbar.ezca-v076-one-line > .ezca-v070-categories {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    grid-template-rows: repeat(2, auto) !important;
    flex: none !important;
    align-items: stretch !important;
    justify-items: stretch !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    gap: 6px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
    white-space: normal !important;
    scrollbar-width: none !important;
  }
  body #ezca-v070-home-shop.ezca-v0719-global-fixed .ezca-v073-toolbar.ezca-v076-one-line > .ezca-v070-categories > a.ezca-v070-cat {
    display: flex !important;
    flex-direction: row !important;
    flex: none !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    min-height: 44px !important;
    padding: 6px 3px !important;
    margin: 0 !important;
    gap: 3px !important;
    border: 1px solid #76974f !important;
    border-radius: 7px !important;
    background: #f8fbf5 !important;
    box-shadow: none !important;
    font-size: 11px !important;
    font-weight: 750 !important;
    line-height: 1.12 !important;
    white-space: nowrap !important;
    text-align: center !important;
    transform: none !important;
    overflow: hidden !important;
    text-overflow: clip !important;
  }
  body #ezca-v070-home-shop.ezca-v0719-global-fixed .ezca-v073-toolbar.ezca-v076-one-line > .ezca-v070-categories > a.ezca-v070-cat .ezca-v070-cat-icon {
    flex: 0 0 auto !important;
    font-size: 15px !important;
    line-height: 1 !important;
    margin: 0 !important;
  }
  body #ezca-v070-home-shop.ezca-v0719-global-fixed .ezca-v073-toolbar.ezca-v076-one-line > .ezca-v070-categories > a.ezca-v070-cat > span:last-child {
    display: inline !important;
    min-width: 0 !important;
    font-size: inherit !important;
    line-height: 1.1 !important;
    margin: 0 !important;
    white-space: nowrap !important;
    text-overflow: clip !important;
  }
}

/* Catalog cards must be a real two-column grid, regardless of Divi's archive
   float widths or WooCommerce's columns-* class. No text clipping or tiny cards. */
@media (max-width: 767px) {
  body.ezca-shop-catalog-v070 #main-content .container {
    width: calc(100% - 24px) !important;
    max-width: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  body.ezca-shop-catalog-v070 #main-content .woocommerce ul.products,
  body.ezca-shop-catalog-v070 #main-content ul.products,
  body.ezca-shop-catalog-v070 .woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-flow: row !important;
    align-items: stretch !important;
    column-gap: 12px !important;
    row-gap: 14px !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: 15px 0 25px !important;
    list-style: none !important;
  }
  body.ezca-shop-catalog-v070 #main-content .woocommerce ul.products::before,
  body.ezca-shop-catalog-v070 #main-content .woocommerce ul.products::after,
  body.ezca-shop-catalog-v070 #main-content ul.products::before,
  body.ezca-shop-catalog-v070 #main-content ul.products::after {
    display: none !important;
    content: none !important;
  }
  body.ezca-shop-catalog-v070 #main-content .woocommerce ul.products li.product,
  body.ezca-shop-catalog-v070 #main-content ul.products li.product,
  body.ezca-shop-catalog-v070 .woocommerce ul.products li.product {
    display: flex !important;
    flex-direction: column !important;
    align-self: stretch !important;
    float: none !important;
    clear: none !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 11px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    border-radius: 13px !important;
  }
  body.ezca-shop-catalog-v070 #main-content ul.products li.product > a,
  body.ezca-shop-catalog-v070 #main-content .woocommerce ul.products li.product > a {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    white-space: normal !important;
    overflow: visible !important;
  }
  body.ezca-shop-catalog-v070 #main-content ul.products li.product a img,
  body.ezca-shop-catalog-v070 #main-content .woocommerce ul.products li.product a img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 140px !important;
    margin: 0 0 10px !important;
    object-fit: contain !important;
  }
  body.ezca-shop-catalog-v070 #main-content ul.products li.product .woocommerce-loop-product__title,
  body.ezca-shop-catalog-v070 #main-content .woocommerce ul.products li.product .woocommerce-loop-product__title {
    display: block !important;
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 0 7px !important;
    padding: 0 !important;
    font-size: 15px !important;
    line-height: 1.32 !important;
    font-weight: 750 !important;
    color: #213824 !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: initial !important;
  }
  body.ezca-shop-catalog-v070 #main-content ul.products li.product .price,
  body.ezca-shop-catalog-v070 #main-content .woocommerce ul.products li.product .price {
    display: block !important;
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 0 12px !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
    white-space: normal !important;
    overflow: visible !important;
    overflow-wrap: anywhere !important;
    text-overflow: clip !important;
  }
  body.ezca-shop-catalog-v070 #main-content ul.products li.product .price span,
  body.ezca-shop-catalog-v070 #main-content .woocommerce ul.products li.product .price span {
    max-width: 100% !important;
    white-space: normal !important;
  }
  body.ezca-shop-catalog-v070 #main-content ul.products li.product .ezca-v070-view-product,
  body.ezca-shop-catalog-v070 #main-content .woocommerce ul.products li.product .ezca-v070-view-product {
    margin-top: auto !important;
    font-size: 12px !important;
    line-height: 1.25 !important;
    white-space: normal !important;
    text-align: center !important;
    width: 100% !important;
    padding: 10px 5px !important;
  }
  body.ezca-shop-catalog-v070 .woocommerce-result-count {
    float: none !important;
    display: block !important;
    font-size: 13px !important;
    margin: 5px 0 10px !important;
  }
  body.ezca-shop-catalog-v070 .woocommerce-ordering {
    float: none !important;
    width: 100% !important;
    margin: 0 0 12px !important;
  }
  body.ezca-shop-catalog-v070 .woocommerce-ordering select {max-width: 100% !important; width: 100% !important;}
  body.ezca-shop-catalog-v070 .ezca-v070-shop-head {padding: 16px !important;}
  body.ezca-shop-catalog-v070 .ezca-v070-shop-head .ezca-v070-cat {min-width: 0 !important; font-size: 12px !important;}
  body.ezca-shop-catalog-v070 .ezca-v070-shop-head .ezca-v070-categories {gap: 8px !important;}
  .ezca-qb-floating {padding: 10px 12px !important; font-size: 13px !important; gap: 6px !important;}
}
@media (max-width: 349px) {
  body.ezca-shop-catalog-v070 #main-content .woocommerce ul.products,
  body.ezca-shop-catalog-v070 #main-content ul.products,
  body.ezca-shop-catalog-v070 .woocommerce ul.products {
    grid-template-columns: 1fr !important;
  }
  body.ezca-shop-catalog-v070 #main-content ul.products li.product a img {height: 185px !important;}
}
