/* Shop/catalog — modern card system. Loaded after site-polish.css.
   Note: the discovery block is injected after the header (outside #main), and
   Flatsome renders the grid as div.products > div.product-small. */
.ekh-enhanced.ekh-catalog{
  --shop-ink:#1e3326;
  --shop-body:#4d5a4f;
  --shop-muted:#6d7a6f;
  --shop-line:#e6ecdd;
  --shop-green:#91c63e;
  --shop-soft:#f6f8f1;
}

/* ── 1. product grid & cards ─────────────────────────────────────── */
.ekh-enhanced.ekh-catalog .products{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:26px 24px!important;
  margin:0!important;
}
.ekh-enhanced.ekh-catalog .products>.product-small,
.ekh-enhanced.ekh-catalog .products>li.product{
  width:auto!important;max-width:none!important;flex:none!important;
  margin:0!important;padding:0!important;float:none!important;min-width:0;
}
.ekh-enhanced.ekh-catalog .products>.product-small>.col-inner{height:100%}
.ekh-enhanced.ekh-catalog .products .box{
  display:flex;flex-direction:column;height:100%;
  background:#fff!important;border:1px solid var(--shop-line)!important;border-radius:20px!important;overflow:hidden;
  box-shadow:0 16px 34px -30px #1e33265c!important;margin:0;
  transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease;
}
.ekh-enhanced.ekh-catalog .products .box:hover{
  transform:translateY(-4px)!important;border-color:#cfe3b6!important;
  box-shadow:0 26px 48px -32px #1e332670!important;
}
.ekh-enhanced.ekh-catalog .products .box-image{
  position:relative;margin:0!important;padding:14px!important;
  aspect-ratio:1/1;background:var(--shop-soft);overflow:hidden;
  border-radius:0!important;
}
.ekh-enhanced.ekh-catalog .products .box-image>a{display:block;height:100%}
.ekh-enhanced.ekh-catalog .products .box-image img{
  width:100%!important;height:100%!important;object-fit:contain;object-position:center;
  margin:0!important;transition:transform .45s ease;
}
.ekh-enhanced.ekh-catalog .products .box:hover .box-image img{transform:scale(1.04)}
.ekh-enhanced.ekh-catalog .products .box-text{
  display:flex;flex-direction:column;gap:6px;flex:1;
  padding:16px 18px 18px!important;text-align:left!important;align-items:stretch!important;
  border-top:1px solid #f0f3ea;background:#fff!important;
}
.ekh-enhanced.ekh-catalog .products .box-text .category,
.ekh-enhanced.ekh-catalog .products .product-cat{
  margin:0!important;font-size:10.5px!important;letter-spacing:.14em;text-transform:uppercase;
  color:#7d8a7d!important;opacity:1!important;
}
.ekh-enhanced.ekh-catalog .products .product-title,
.ekh-enhanced.ekh-catalog .products .woocommerce-loop-product__title{
  font-family:'Ecohome Sans',sans-serif!important;
  font-size:16.5px!important;line-height:1.32!important;font-weight:700!important;
  letter-spacing:-.02em;color:var(--shop-ink)!important;margin:2px 0 0!important;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:44px;
}
.ekh-enhanced.ekh-catalog .products .product-title a{color:inherit!important;text-decoration:none}
.ekh-enhanced.ekh-catalog .products .price-wrapper{display:none}
.ekh-enhanced.ekh-catalog .ekh-product-detail{display:none!important}
.ekh-enhanced.ekh-catalog .products .ekh-button.ekh-product-quote{
  margin-top:auto!important;width:100%;min-height:46px;border-radius:8px!important;
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  font-size:14px;font-weight:600;padding:12px 16px!important;
}
.ekh-enhanced.ekh-catalog .products .ekh-product-quote svg{flex:0 0 18px;width:18px;height:18px}

/* ── 2. category discovery (outside #main) ───────────────────────── */
.ekh-enhanced.ekh-catalog .ekh-shop-category-grid{
  display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:20px!important;
}
.ekh-enhanced.ekh-catalog a.ekh-shop-category{
  display:grid!important;grid-template-columns:1fr auto!important;align-items:center;gap:0 12px;
  padding:0 16px 16px!important;background:#fff!important;border:1px solid var(--shop-line)!important;
  border-radius:20px!important;overflow:hidden;
  box-shadow:0 16px 34px -32px #1e33265c!important;
  transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease;
}
.ekh-enhanced.ekh-catalog a.ekh-shop-category:hover{
  transform:translateY(-4px)!important;border-color:#cfe3b6!important;box-shadow:0 24px 44px -32px #1e332670!important;
}
.ekh-enhanced.ekh-catalog .ekh-shop-category-image{
  grid-column:1/-1;height:172px!important;margin:14px 0 12px!important;padding:12px!important;
  background:var(--shop-soft);border-radius:14px!important;
  display:flex!important;align-items:center;justify-content:center;
}
.ekh-enhanced.ekh-catalog .ekh-shop-category-image img{
  width:100%;height:100%;object-fit:contain;mix-blend-mode:normal!important;
}
.ekh-enhanced.ekh-catalog .ekh-shop-category-copy small{
  font-size:10.5px!important;letter-spacing:.14em;text-transform:uppercase;color:#8b978c!important;
}
.ekh-enhanced.ekh-catalog .ekh-shop-category-copy strong{
  display:block;margin-top:3px;font-family:'Ecohome Sans',sans-serif;
  font-size:16.5px!important;line-height:1.25;letter-spacing:-.02em;color:var(--shop-ink);
}
.ekh-enhanced.ekh-catalog .ekh-shop-category-arrow{
  width:34px!important;height:34px!important;border-radius:50%;background:#f4f8ec;border:1px solid #e2ead6;
  display:grid;place-items:center;transition:background-color .2s ease,border-color .2s ease,transform .2s ease;
}
.ekh-enhanced.ekh-catalog a.ekh-shop-category:hover .ekh-shop-category-arrow{
  background:var(--shop-green)!important;border-color:var(--shop-green)!important;transform:translateX(2px)!important;
}
.ekh-enhanced.ekh-catalog a.ekh-shop-category:nth-child(2) .ekh-shop-category-arrow{background:#fff8e2;border-color:#f2e3b4}
.ekh-enhanced.ekh-catalog a.ekh-shop-category:nth-child(3) .ekh-shop-category-arrow{background:#eaf7f5;border-color:#cbe9e5}
.ekh-enhanced.ekh-catalog a.ekh-shop-category:nth-child(4) .ekh-shop-category-arrow{background:#fff1ec;border-color:#f6d7cb}
/* site-canvas paints a coloured 4px cap; keep one even hairline instead */
.ekh-enhanced.ekh-catalog .ekh-shop-category-grid a.ekh-shop-category,
.ekh-enhanced.ekh-catalog .ekh-shop-category-grid a.ekh-shop-category:nth-child(n){
  border-top-width:1px!important;
  border-top-color:var(--shop-line)!important;
}

/* ── 3. toolbar: count + sort ────────────────────────────────────── */
.ekh-enhanced.ekh-catalog .woocommerce-result-count{
  background:#f4f8ec!important;border:1px solid #e4ecd6;border-radius:999px;
  padding:8px 14px!important;font-size:12px!important;color:#41513f!important;line-height:1;
}
.ekh-enhanced.ekh-catalog form.woocommerce-ordering select{
  min-height:44px;border-radius:999px!important;border:1px solid #e0e7d6!important;
  padding:0 38px 0 16px!important;background-color:#fff;font-size:13.5px;color:#33442c;
}
.ekh-enhanced.ekh-catalog .woocommerce-ordering{margin:0}

/* ── 4. sidebar ──────────────────────────────────────────────────── */
.ekh-enhanced.ekh-catalog #shop-sidebar{
  background:#fff!important;border:1px solid var(--shop-line);border-radius:18px;
  padding:16px!important;box-shadow:0 16px 34px -32px #1e33265c;
  position:sticky;top:96px;
}
.ekh-enhanced.ekh-catalog #shop-sidebar .widget{margin:0!important}
.ekh-enhanced.ekh-catalog #shop-sidebar .widget-title,
.ekh-enhanced.ekh-catalog #shop-sidebar h4{
  font-family:'Ecohome Sans',sans-serif!important;font-size:15px!important;letter-spacing:-.01em;
  color:var(--shop-ink)!important;margin:0 0 10px!important;
}
.ekh-enhanced.ekh-catalog #shop-sidebar .product-categories{margin:0;padding:0;list-style:none}
.ekh-enhanced.ekh-catalog #shop-sidebar .product-categories li{border-bottom:1px solid #f0f3ea;padding:9px 0;margin:0}
.ekh-enhanced.ekh-catalog #shop-sidebar .product-categories li:last-child{border-bottom:0}
.ekh-enhanced.ekh-catalog #shop-sidebar .product-categories li a{
  font-size:14px!important;color:#3f4c42!important;text-decoration:none;display:inline-flex;min-height:28px;align-items:center;
}
.ekh-enhanced.ekh-catalog #shop-sidebar .product-categories li a:hover{color:#2f5a1f!important}
.ekh-enhanced.ekh-catalog #shop-sidebar .product-categories li.current-cat>a{color:#2f5a1f!important;font-weight:600}
.ekh-enhanced.ekh-catalog .ekh-shop-search{display:flex;gap:8px;margin:0 0 14px}
.ekh-enhanced.ekh-catalog .ekh-shop-search input{
  min-height:44px!important;border-radius:10px!important;border:1px solid #dfe7d4!important;
  background:#fbfcf8!important;font-size:14px;
}
.ekh-enhanced.ekh-catalog .ekh-shop-search button{min-width:48px;min-height:44px;border-radius:10px!important}

/* ── 5. headings + breadcrumb ────────────────────────────────────── */
.ekh-enhanced.ekh-catalog .ekh-shop-section-heading{
  display:flex!important;align-items:end!important;justify-content:space-between;gap:24px;margin-bottom:16px;
}
.ekh-enhanced.ekh-catalog .ekh-shop-section-heading h2,
.ekh-enhanced.ekh-catalog .ekh-shop-catalog-title{color:var(--shop-ink)!important}
.ekh-enhanced.ekh-catalog .ekh-shop-section-heading>a{font-size:14px;color:#2f4a1f!important}
.ekh-enhanced.ekh-catalog .woocommerce-breadcrumb{font-size:12px!important;color:#7d8a7d!important;margin:0 0 10px!important}
.ekh-enhanced.ekh-catalog .shop-page-title{background:transparent!important;padding:0!important;border:0!important}
.ekh-enhanced.ekh-catalog .shop-page-title h1{font-size:clamp(24px,2.6vw,32px)!important;line-height:1.15;margin:0!important}
.ekh-enhanced.ekh-catalog .page-title-inner{padding:10px 0 0!important;min-height:0!important}

/* ── 6. responsive ───────────────────────────────────────────────── */
@media(max-width:1100px){
  .ekh-enhanced.ekh-catalog .products{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:20px!important}
  .ekh-enhanced.ekh-catalog .ekh-shop-category-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .ekh-enhanced.ekh-catalog #shop-sidebar{position:static}
}
@media(max-width:640px){
  .ekh-enhanced.ekh-catalog .products{grid-template-columns:1fr!important;gap:18px!important}
  .ekh-enhanced.ekh-catalog .ekh-shop-category-grid{grid-template-columns:1fr!important;gap:14px!important}
  .ekh-enhanced.ekh-catalog .ekh-shop-category-image{height:150px!important}
  .ekh-enhanced.ekh-catalog .products .box-image{padding:10px!important}
  .ekh-enhanced.ekh-catalog .products .box-text{padding:14px 16px 16px!important}
  .ekh-enhanced.ekh-catalog .products .product-title{min-height:0}
  .ekh-enhanced.ekh-catalog #shop-sidebar{position:static;padding:14px!important}
}
@media(prefers-reduced-motion:reduce){
  .ekh-enhanced.ekh-catalog .products .box,
  .ekh-enhanced.ekh-catalog a.ekh-shop-category{transition:none}
  .ekh-enhanced.ekh-catalog .products .box:hover,
  .ekh-enhanced.ekh-catalog a.ekh-shop-category:hover{transform:none}
  .ekh-enhanced.ekh-catalog .products .box:hover .box-image img{transform:none}
}

