.product-card{
  display:flex!important;
  flex-direction:column!important;
  background:#fff!important;
  border-radius:1rem!important;
  overflow:hidden!important;
  height:100%;
}
.product-card.plant-card--purchase-match,
.gp-plant-card.plant-card--purchase-match{
  border:2px solid #eab308!important;
  box-shadow:0 0 0 1px rgba(234,179,8,.35)!important;
}
.plant-purchase-badge{
  position:absolute;
  top:8px;
  left:8px;
  z-index:2;
  display:inline-flex;
  align-items:center;
  padding:2px 8px;
  border-radius:999px;
  font-size:11px;
  font-weight:700;
  line-height:1.3;
  color:#713f12;
  background:#fef08a;
  border:1px solid #eab308;
}
.gp-plant-card .plant-purchase-badge{
  position:static;
  margin:0 0 4px;
  display:inline-block;
}
.product-card img{display:block!important;width:100%!important;height:auto!important;object-fit:cover!important}

/* Safety: ensure grid items are visible */
.mt-4.grid > *{display:block!important}

/* —— Katalógus termékrács (/products) —— */
.products-facet-sidebar{
  width:100%;
  max-width:100%;
}
@media (min-width:1024px){
  .products-facet-sidebar{
    width:300px;
    min-width:280px;
    max-width:320px;
    flex:0 0 300px;
  }
  .products-catalog-main{
    flex:1 1 auto;
    min-width:0;
  }
}

.catalog-products-grid{
  display:grid;
  gap:1rem;
  grid-template-columns:minmax(0,1fr);
}
@media (min-width:600px){
  .catalog-products-grid{
    grid-template-columns:repeat(2,minmax(240px,1fr));
    gap:1rem;
  }
}
@media (min-width:900px){
  .catalog-products-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:1.125rem;
  }
}
@media (min-width:1200px){
  .catalog-products-grid{
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:1.25rem;
  }
}

.catalog-products-grid .product-card__body{
  flex:1 1 auto;
  display:flex;
  flex-direction:column;
  min-height:0;
}

.catalog-products-grid .product-card__title{
  display:block;
  white-space:normal;
  overflow-wrap:anywhere;
  word-break:break-word;
  line-height:1.3;
  min-height:2.6em;
  font-weight:600;
  color:#0f172a;
}

.catalog-products-grid .product-card__name-hu{
  display:block;
  font-weight:600;
  line-height:1.3;
}

.catalog-products-grid .product-card__name-latin{
  display:block;
  margin-top:0.2em;
  font-size:0.85em;
  font-style:italic;
  font-weight:400;
  color:#64748b;
  line-height:1.25;
}

/* Egysoros név esetén max 3 sor */
.catalog-products-grid .product-card__title:not(:has(.product-card__name-latin)){
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:3;
  overflow:hidden;
}

.catalog-products-grid .product-card__category{
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:1;
  overflow:hidden;
  text-overflow:ellipsis;
}

.catalog-products-grid .product-card__footer{
  margin-top:auto;
  padding-top:0.5rem;
}

/* If images are hidden by a skeleton rule, force visibility */
.skeleton{display:none!important}

/* Layout fix for products + facet.
   1) Support new markup with .products-grid
   2) Support existing live markup (mt-5 grid grid-cols-1 gap-4) even akkor is, ha hiányoznak a lg:* Tailwind osztályok. */
.products-grid{
  display:flex!important;
  flex-direction:column!important;
  gap:1rem!important;
}
@media (min-width:1024px){
  .products-grid{
    flex-direction:row!important;
    align-items:flex-start!important;
  }

  /* CSS-only fix a most futó HTML-re:
     a szűrő konténer (aside) és a terméklista (section) így két oszlopba kerül. */
  .mt-5.grid.grid-cols-1.gap-4{
    display:grid!important;
    grid-template-columns:320px minmax(0,1fr)!important;
    align-items:flex-start!important;
  }
}

/* Header layout - prevent nav overlap with logo */
header .logo-area {
  flex: 0 0 auto;
  margin-right: 24px;
  max-width: min(42vw, 11rem);
}
header .logo-area a {
  min-width: 0;
}
.site-logo-wordmark {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.05;
  letter-spacing: 0.08em;
  min-width: 0;
}
.site-logo-wordmark__line {
  display: block;
  font-size: 0.625rem;
  white-space: nowrap;
}
@media (min-width: 640px) {
  .site-logo-wordmark__line {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
  }
}
header .nav-area {
  flex: 1;
  min-width: 0;
}
@media (min-width: 1024px) {
  header .nav-area {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
  }
}

/* Garden layout preview – 300x200, responsive */
.garden-layout-figure {
  margin: 1.5rem 0;
}
.garden-layout-preview-block {
  margin: 1.5rem 0;
}
.garden-layout-wrap {
  width: 100%;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}
.garden-layout-wrap svg {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 300 / 200;
  object-fit: cover;
}
.garden-layout-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: #64748b;
}
.garden-layout-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.garden-layout-legend-badge {
  flex-shrink: 0;
}
.garden-layout-cta {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  background: #22c55e;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: background 0.15s;
}
.garden-layout-cta:hover {
  background: #16a34a;
}
@media (min-width: 640px) {
  .garden-layout-wrap {
    max-width: 300px;
    margin: 0 auto;
  }
}

/* Garden icons - 18px, inline with text */
.seo-icon, .gp-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  vertical-align: -0.2em;
  margin-right: 0.35rem;
}
.gp-icon {
  width: 14px;
  height: 14px;
  vertical-align: -0.15em;
}
