/* Product Category Grid */
.lca-category-grid {
  max-width: 100vw;
  margin: 0 auto;
  padding: 0 30px;
  text-align: center;
}
.lca-category-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 36px;
  margin-top: 36px;
}
.lca-category-card {
  border: 1px solid #ccc;
  background: #fff;
  box-shadow: 0 1px 10px #0001;
  padding: 0 0 32px 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  position: relative;
  transition: box-shadow 0.2s;
}
.archive .woocommerce-category-header{text-align: center; margin: 60px auto; max-width: 1470px;}

/* Product List With Sidebar */
.lca-products-with-sidebar {
  display: flex;
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 30px;
  gap: 36px;
  align-items: flex-start;
  position: relative;
}
.lca-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid #ececec;
  padding: 24px 18px;
  height: fit-content;
  position: sticky;
  top: 30px;
  align-self: flex-start;
  z-index: 90;
  transition: none;
  margin-bottom: 50px;
}
.lca-products-main {
  flex: 1;
  min-width: 0;
}
.lca-products-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 36px;
}
.lca-filters-toggle {
  display: none;
}
.lca-sidebar-close {
  display: none;
}
select.orderby{
  border: 0;
  padding: 5px 20px 5px 15px;
  border-radius: 10px;
  font-size: 14px;
  color: #666;
}

/* Responsive: Mobile Slide-in Sidebar */
@media (max-width: 900px) {
  .lca-products-with-sidebar {
    flex-direction: column;
    gap: 0;
    padding: 0 10px;
  }
  .lca-cta-block p{max-width: 90%;}
  .lca-filters-toggle {
    display: inline-block;
    margin: 10px 0 20px 0;
    padding: 8px 18px;
    font-size: 1.1em;
    border: none;
    background: transparent !important;
    color: #111 !important;
    font-weight: bold;
    border: 1px solid #000;
    cursor: pointer;
    z-index: 100;
    position: relative;
    text-transform: uppercase;
  }
  .lca-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 90vw;
    max-width: 330px;
    background: #fff;
    z-index: 9999;
    transform: translateX(-110%);
    box-shadow: 3px 0 12px #0002;
    transition: transform 0.3s cubic-bezier(.42,0,.58,1);
    border-radius: 0 10px 10px 0;
    padding-top: 60px;
    height: 100vh;
    overflow-y: auto;
  }
  .lca-sidebar.sidebar-open {
    transform: translateX(0);
  }
  .lca-sidebar-close {
    display: block;
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: 2.1em;
    background: none;
    border: none;
    color: #222;
    z-index: 10000;
    cursor: pointer;
    line-height: 1;
  }
  .lca-sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.3);
    z-index: 9998;
    display: block;
  }
  :where(.wc-block-product-filters) .wc-block-product-filters__overlay,
  :where(.wc-block-product-filters) .wc-block-product-filters__overlay-dialog {
    position:unset !important;
    transform: none !important;
  }
}
