/* Catalog styles are isolated from WooCommerce's float-based product loops. */
.catalog-page { background: #fff; }
.catalog-intro { padding: 24px 0 36px; background: var(--neo-surface); border-bottom: 1px solid var(--neo-border); }
.catalog-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 22px; color: var(--neo-muted); font-size: .75rem; }
.catalog-breadcrumb a { display: inline-flex; align-items: center; min-height: 32px; color: var(--neo-muted); text-decoration: none; }
.catalog-breadcrumb a:hover { color: var(--neo-green); text-decoration: underline; }
.catalog-breadcrumb [aria-current] { color: var(--neo-green); font-weight: 500; }
.catalog-intro h1 { color: var(--neo-dark); font-size: clamp(2rem, 3.5vw, 2.75rem); line-height: 1.2; margin: 10px 0 14px; text-wrap: balance; overflow-wrap: anywhere; }
.catalog-intro p { max-width: 66ch; color: var(--neo-muted); margin: 0; font-size: .9375rem; line-height: 1.8; }
.catalog-layout { display: grid; grid-template-columns: 244px minmax(0, 1fr); align-items: start; gap: 32px; padding-block: 40px 64px; }
.catalog-sidebar, .catalog-results { min-width: 0; }
.catalog-category-panel { border: 1px solid var(--neo-border); border-radius: 14px; overflow: hidden; background: #fff; }
.catalog-category-panel h2 { display: flex; align-items: center; gap: 10px; margin: 0; padding: 20px 18px; border-bottom: 1px solid var(--neo-border); font-size: .875rem; font-weight: 600; color: var(--neo-dark); }
.catalog-category-panel h2 svg { flex-shrink: 0; }
.catalog-category-panel ul { list-style: none; margin: 0; padding: 8px; display: grid; gap: 4px; }
.catalog-category-panel a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 12px; color: var(--neo-muted); text-decoration: none; font-size: .8125rem; border-radius: 8px; border: 1px solid transparent; overflow-wrap: anywhere; }
.catalog-category-panel a > span:last-child { font-size: 1.25rem; line-height: 1; }
.catalog-category-panel a:hover { background: var(--neo-surface); color: var(--neo-green); }
.catalog-category-panel a[aria-current] { color: var(--neo-green); background: #e9f2ec; border-color: #c1d6c8; font-weight: 700; }
.catalog-help { margin-top: 24px; padding: 24px; border-radius: 14px; background: var(--neo-surface); border: 1px solid var(--neo-border); }
.catalog-help-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: var(--neo-green); background: #e3eee6; margin-bottom: 18px; }
.catalog-help h2 { margin: 0 0 10px; font-size: 1rem; line-height: 1.5; color: var(--neo-dark); }
.catalog-help p { margin: 0 0 12px; color: var(--neo-muted); font-size: .8125rem; line-height: 1.8; }
.catalog-help-phone { display: inline-flex; align-items: center; min-height: 44px; font-size: 1.125rem; font-weight: 700; color: var(--neo-green); text-decoration: none; }
.catalog-help-phone:hover { text-decoration: underline; }
.catalog-help-link { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; padding-top: 8px; margin-top: 10px; border-top: 1px solid var(--neo-border); color: var(--neo-green); font-size: .75rem; font-weight: 600; text-decoration: none; }
.catalog-help-link:hover { text-decoration: underline; }
.catalog-search { display: grid; grid-template-columns: minmax(0, 1fr) 174px auto; gap: 16px; align-items: end; padding: 20px; background: var(--neo-surface); border: 1px solid var(--neo-border); border-radius: 14px; }
.catalog-search label { display: grid; min-width: 0; gap: 8px; font-size: .75rem; font-weight: 600; color: var(--neo-dark); }
.catalog-search input, .catalog-search select { width: 100%; min-width: 0; min-height: 48px; font: inherit; font-weight: 400; font-size: 1rem; color: var(--neo-text); background: #fff; padding: 11px 12px; border: 1px solid #93a69b; border-radius: 8px; }
.catalog-search select { cursor: pointer; }
.catalog-search-input { position: relative; display: block; }
.catalog-search-input svg { position: absolute; left: 12px; top: 14px; color: var(--neo-muted); pointer-events: none; }
.catalog-search-input input { padding-left: 40px; }
.catalog-search input::placeholder { color: var(--neo-muted); opacity: 1; }
.catalog-search .button { min-height: 48px; margin: 0; font: inherit; font-size: .875rem; font-weight: 600; box-shadow: none; }
.catalog-page button.button-primary, .catalog-page a.button.button-primary { background: var(--neo-green); border-color: var(--neo-green); color: #fff; border-radius: 8px; }
.catalog-page button.button-primary:hover, .catalog-page a.button.button-primary:hover { background: var(--neo-dark); border-color: var(--neo-dark); color: #fff; }
.catalog-results-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 28px 0 24px; }
.catalog-results-heading > div { min-width: 0; }
.catalog-results-heading h2 { color: var(--neo-dark); margin: 0 0 5px; font-size: 1.375rem; line-height: 1.4; overflow-wrap: anywhere; }
.catalog-results-heading p { color: var(--neo-muted); font-size: .8125rem; margin: 0; overflow-wrap: anywhere; }
.catalog-reset { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; color: var(--neo-green); font-size: .8125rem; font-weight: 600; text-decoration: none; flex-shrink: 0; }
.catalog-reset:hover { text-decoration: underline; text-underline-offset: 4px; }
.catalog-product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; }
.catalog-product-card { display: flex; flex-direction: column; min-width: 0; margin: 0; border: 1px solid var(--neo-border); border-radius: 14px; background: #fff; transition: box-shadow .2s ease, border-color .2s ease; }
.catalog-product-card:hover { border-color: #8cae9c; box-shadow: 0 8px 24px rgba(16, 44, 39, .07); }
.catalog-product-media { display: flex; align-items: center; justify-content: center; aspect-ratio: 1.35; background: #f4f7f4; border-radius: 13px 13px 0 0; padding: 24px; color: var(--neo-muted); text-decoration: none; border-bottom: 1px solid var(--neo-border); }
.catalog-product-media img { display: block; width: 100%; height: 100%; object-fit: contain; }
.catalog-product-placeholder { display: flex; align-items: center; flex-direction: column; gap: 16px; text-align: center; font-size: .75rem; line-height: 1.6; color: var(--neo-muted); }
.catalog-product-placeholder svg { color: #749382; }
.catalog-product-body { display: flex; flex-direction: column; flex: 1; padding: 20px; min-width: 0; }
.catalog-product-category { display: block; margin-bottom: 8px; color: var(--neo-green); font-size: .75rem; font-weight: 600; overflow-wrap: anywhere; }
.catalog-product-body h3 { margin: 0; font-size: 1.125rem; line-height: 1.4; font-weight: 700; overflow-wrap: anywhere; }
.catalog-product-body h3 a { color: var(--neo-dark); text-decoration: none; }
.catalog-product-body h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.catalog-product-excerpt { color: var(--neo-muted); font-size: .8125rem; line-height: 1.7; margin: 12px 0 0; overflow-wrap: anywhere; }
.catalog-product-actions { margin-top: auto; padding-top: 20px; }
.catalog-product-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.catalog-product-price { color: var(--neo-green); font-size: 1.125rem; font-weight: 700; }
.catalog-product-price .neo-contact-price { margin: 0; color: var(--neo-green); font-size: 1.125rem; line-height: 1.5; }
.catalog-product-price del { font-size: .8125rem; font-weight: 400; color: var(--neo-muted); }
.catalog-product-price ins { text-decoration: none; }
.catalog-product-detail { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--neo-muted); font-size: .75rem; font-weight: 500; text-decoration: none; }
.catalog-product-detail:hover { color: var(--neo-green); text-decoration: underline; }
.catalog-consult-button { display: flex; justify-content: center; align-items: center; gap: 12px; min-height: 44px; padding: 10px 12px; background: var(--neo-green); border: 1px solid var(--neo-green); border-radius: 8px; color: #fff; text-decoration: none; font-size: .8125rem; font-weight: 600; transition: background-color .2s ease; }
.catalog-consult-button:hover { background: var(--neo-dark); border-color: var(--neo-dark); color: #fff; }
.catalog-empty { display: grid; justify-items: center; text-align: center; padding: 56px 32px; border: 1px solid var(--neo-border); border-radius: 16px; background: var(--neo-surface); }
.catalog-empty-icon { display: grid; place-items: center; width: 80px; height: 80px; color: var(--neo-green); background: #e4eee7; border-radius: 24px; margin-bottom: 24px; }
.catalog-empty h3 { margin: 0 0 12px; font-size: 1.375rem; line-height: 1.4; color: var(--neo-dark); }
.catalog-empty p { max-width: 48ch; margin: 0; font-size: .875rem; line-height: 1.8; color: var(--neo-muted); }
.catalog-empty-actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 16px; margin-top: 24px; }
.catalog-empty-actions .button { font-size: .8125rem; }
.catalog-pagination { margin-top: 32px; }
.catalog-pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
.catalog-pagination a, .catalog-pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--neo-border); border-radius: 8px; text-decoration: none; font-size: .875rem; color: var(--neo-green); }
.catalog-pagination .current { color: #fff; background: var(--neo-green); border-color: var(--neo-green); }
.catalog-pagination a:hover { background: var(--neo-surface); }
.catalog-pagination .screen-reader-text { position: absolute; width: 1px; height: 1px; min-width: 0; min-height: 0; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 1100px) {
  .catalog-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 24px; }
  .catalog-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-search { grid-template-columns: minmax(0, 1fr) auto; }
  .catalog-search-field { grid-column: 1 / -1; }
  .catalog-help { padding: 20px; }
}
@media (max-width: 800px) {
  .catalog-intro { padding-block: 16px 28px; }
  .catalog-breadcrumb { margin-bottom: 16px; }
  .catalog-layout { grid-template-columns: 1fr; gap: 28px; padding-block: 28px 48px; }
  .catalog-category-panel { border: 0; border-radius: 0; overflow: visible; }
  .catalog-category-panel h2 { padding: 0; margin-bottom: 16px; border: 0; }
  .catalog-category-panel ul { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; }
  .catalog-category-panel a { min-height: 44px; padding: 10px 14px; border-color: var(--neo-border); }
  .catalog-category-panel a > span:last-child { display: none; }
  .catalog-help { display: none; }
  .catalog-search { grid-template-columns: minmax(0, 1fr) 160px auto; }
  .catalog-search-field { grid-column: auto; }
  .catalog-results-heading { margin-block: 24px 20px; }
}
@media (max-width: 600px) {
  .catalog-search { grid-template-columns: minmax(0, 1fr) auto; padding: 16px; gap: 12px; }
  .catalog-search-field { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .catalog-product-grid { grid-template-columns: 1fr; gap: 20px; }
  .catalog-product-media { aspect-ratio: 1.7; }
  .catalog-product-body { padding: 20px; }
  .catalog-product-body h3 { font-size: 1.25rem; }
  .catalog-product-placeholder, .catalog-product-category { font-size: .75rem; }
  .catalog-empty { padding: 32px 20px; }
  .catalog-empty h3 { font-size: 1.25rem; }
  .catalog-empty-actions { flex-direction: column; gap: 12px; width: 100%; }
  .catalog-empty-actions .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .catalog-product-card, .catalog-consult-button { transition: none; }
}
