/* EZ Custom Ag Product Engine v0.7.25 — mobile catalog gets shoppers to products first.
   Only applies on WooCommerce shop archives at phone widths. Desktop untouched.
   The existing sticky category/search strip remains intact on every page. */
.ezca-v0725-mobile-compact { display: none; }
@media (max-width: 767px) {
  body.ezca-shop-catalog-v070 .ezca-v070-shop-head {
    padding: 6px 0 4px !important;
    margin: 0 0 10px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    width: 100% !important;
  }
  /* The sticky Shop bar already has search + six shortcuts. Do not duplicate them
     or a page-height hero above the actual catalog on phones. */
  body.ezca-shop-catalog-v070 .ezca-v070-shop-head > .ezca-v070-topline,
  body.ezca-shop-catalog-v070 .ezca-v070-shop-head > .ezca-v070-shop-title,
  body.ezca-shop-catalog-v070 .ezca-v070-shop-head > form.ezca-v070-search,
  body.ezca-shop-catalog-v070 .ezca-v070-shop-head > .ezca-v070-filter-foot,
  body.ezca-shop-catalog-v070 .ezca-v070-shop-head > nav.ezca-v070-categories,
  body.ezca-shop-catalog-v070 .ezca-v070-shop-head > .ezca-v070-shop-disclaimer {
    display: none !important;
  }
  body.ezca-shop-catalog-v070 .ezca-v0725-mobile-compact {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  body.ezca-shop-catalog-v070 .ezca-v0725-mobile-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 44px;
    padding: 0 2px;
  }
  body.ezca-shop-catalog-v070 .ezca-v0725-mobile-title {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    font-size: 20px;
    line-height: 1.25;
    letter-spacing: -.025em;
    font-weight: 800;
    color: #173522;
    overflow-wrap: anywhere;
  }
  body.ezca-shop-catalog-v070 .ezca-v0725-mobile-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
  }
  body.ezca-shop-catalog-v070 .ezca-v0725-clear {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 2px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: underline !important;
    color: #476b25 !important;
    white-space: nowrap;
  }
  body.ezca-shop-catalog-v070 .ezca-v0725-filter-details {
    position: relative;
    display: block;
    padding: 0;
    margin: 0;
    z-index: 7;
  }
  body.ezca-shop-catalog-v070 .ezca-v0725-filter-details > summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 44px;
    padding: 0 12px;
    margin: 0;
    border: 1px solid #9eb68c;
    border-radius: 8px;
    background: #f8fbf6;
    color: #315d24;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    list-style: none;
  }
  body.ezca-shop-catalog-v070 .ezca-v0725-filter-details > summary::-webkit-details-marker { display: none; }
  body.ezca-shop-catalog-v070 .ezca-v0725-filter-details > summary > span { font-size: 17px; line-height: 1; }
  body.ezca-shop-catalog-v070 .ezca-v0725-filter-details > summary:focus-visible {
    outline: 3px solid #7a9d45;
    outline-offset: 3px;
  }
  body.ezca-shop-catalog-v070 .ezca-v0725-filter-details[open] > summary {
    background: #eaf4e0;
    border-color: #6e9554;
    border-radius: 8px 8px 0 0;
  }
  body.ezca-shop-catalog-v070 .ezca-v0725-filter-panel {
    position: absolute;
    right: 0;
    top: calc(100% - 1px);
    width: min(340px, calc(100vw - 24px));
    max-width: none !important;
    padding: 12px;
    border: 1px solid #c9dac3;
    border-radius: 10px 0 10px 10px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(20,45,20,.19);
    box-sizing: border-box;
    z-index: 10;
  }
  body.ezca-shop-catalog-v070 .ezca-v0725-filter-panel form.ezca-v070-search {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    gap: 9px !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  body.ezca-shop-catalog-v070 .ezca-v0725-filter-panel .ezca-v070-search-icon { display: none !important; }
  body.ezca-shop-catalog-v070 .ezca-v0725-filter-panel input[type=search],
  body.ezca-shop-catalog-v070 .ezca-v0725-filter-panel select {
    display: block !important;
    flex: none !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 42px !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 5px 9px !important;
    border: 1px solid #d5dfd1 !important;
    border-radius: 7px !important;
    background: #fff !important;
    color: #203d24 !important;
    font-size: 14px !important;
    line-height: 1.25 !important;
    box-sizing: border-box !important;
  }
  body.ezca-shop-catalog-v070 .ezca-v0725-filter-panel .ezca-v070-search button {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 44px !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 8px !important;
    border-radius: 7px !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
  }
  /* Results and sort belong on one compact row, not stacked ahead of products. */
  body.ezca-shop-catalog-v070 .woocommerce-result-count {
    float: left !important;
    display: block !important;
    width: 43% !important;
    max-width: 43% !important;
    min-height: 36px !important;
    margin: 0 0 5px !important;
    padding: 7px 0 0 !important;
    font-size: 12px !important;
    line-height: 1.25 !important;
    font-weight: 600;
    color: #617061;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-sizing: border-box;
  }
  body.ezca-shop-catalog-v070 .woocommerce-ordering {
    display: block !important;
    float: right !important;
    width: 55% !important;
    max-width: 55% !important;
    margin: 0 0 5px !important;
    padding: 0 !important;
  }
  body.ezca-shop-catalog-v070 .woocommerce-ordering select {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 36px !important;
    height: 36px !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    border-radius: 7px !important;
    padding: 4px 22px 4px 8px !important;
    color: #344935 !important;
  }
  body.ezca-shop-catalog-v070 .woocommerce ul.products,
  body.ezca-shop-catalog-v070 ul.products {
    clear: both !important;
    margin-top: 0 !important;
  }
  body.ezca-shop-catalog-v070 #left-area .woocommerce,
  body.ezca-shop-catalog-v070 #main-content .woocommerce {
    overflow: visible !important;
  }
}
/* At tablet / desktop widths, only the existing desktop catalog remains. */
@media (min-width: 768px) {
  body.ezca-shop-catalog-v070 .ezca-v0725-mobile-compact { display: none !important; }
}
