/* =========================================================================
   EnergoBazar.cz — styly katalogu produktů (katalog.php, produkt.php)
   Doplněk k assets/css/style.css; navazuje na proměnné --eb-* odtamtud.
   Vlastní soubor, aby se nekřížily úpravy sdíleného style.css.
   ========================================================================= */

/* ---------- Rámeček generované "fotky" (SVG 480×340) ---------- */
.pm-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 24 / 17;
  overflow: hidden;
  background: linear-gradient(160deg, #f6faf9 0%, #dfeae8 100%);
  display: block;
}
.pm-frame .pm-svg { display: block; width: 100%; height: 100%; }
.pm-frame .pm-photo { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Karta produktu v mřížce ---------- */
.eb-prod-card { display: flex; flex-direction: column; overflow: hidden; }
.eb-prod-card .pm-frame { border-bottom: 1px solid #e7ecec; }
.eb-prod-card:hover .pm-svg { transform: scale(1.03); }
.eb-prod-card .pm-svg { transition: transform .25s ease; }

/* ---------- Filtrační panel ---------- */
.eb-filter-bar {
  background: #fff;
  border: 1px solid #e7ecec;
  border-radius: 1rem;
  box-shadow: 0 1px 2px rgba(8, 37, 38, 0.04);
}
.eb-filter-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b7573;
  margin-bottom: 0.3rem;
}
.eb-input {
  width: 100%;
  border: 1px solid #dbe4e3;
  border-radius: 0.6rem;
  padding: 0.5rem 0.7rem;
  font-size: 0.875rem;
  background: #fff;
  color: #1b2b2b;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.eb-input:focus {
  outline: none;
  border-color: var(--eb-sun);
  box-shadow: 0 0 0 3px rgba(247, 166, 0, 0.18);
}

/* ---------- Chipy kategorií ---------- */
.eb-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  border: 1px solid #e2e8e7;
  background: #fff;
  color: #4b5f5d;
  transition: all .15s ease;
  white-space: nowrap;
}
.eb-chip:hover { border-color: var(--eb-sun); color: var(--eb-sun-dark); }
.eb-chip.active { background: var(--eb-brand); border-color: var(--eb-brand); color: #fff; }
.eb-chip .eb-chip-count { font-size: 0.68rem; opacity: 0.7; font-weight: 600; }

/* ---------- Stránkování ---------- */
.eb-pager { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; justify-content: center; }
.eb-pager a, .eb-pager span {
  min-width: 2.35rem;
  height: 2.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.6rem;
  border-radius: 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid #e2e8e7;
  background: #fff;
  color: #40514f;
  transition: all .15s ease;
}
.eb-pager a:hover { border-color: var(--eb-sun); color: var(--eb-sun-dark); }
.eb-pager .active { background: var(--eb-brand); border-color: var(--eb-brand); color: #fff; }
.eb-pager .gap { border: none; background: transparent; color: #98a5a3; min-width: 1.2rem; }

/* ---------- Galerie na detailu produktu ---------- */
.eb-gallery-main {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid #e7ecec;
  background: #fff;
}
.eb-gallery-main .pm-frame { border-radius: 1rem; }
.eb-gallery-thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; margin-top: 0.5rem; }
.eb-thumb {
  border-radius: 0.7rem;
  overflow: hidden;
  border: 2px solid #e7ecec;
  background: #fff;
  cursor: pointer;
  padding: 0;
  transition: border-color .15s ease, transform .15s ease;
}
.eb-thumb:hover { transform: translateY(-2px); }
.eb-thumb.active { border-color: var(--eb-sun); }
.eb-thumb .pm-frame { pointer-events: none; }
.eb-thumb-caption {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  color: #6b7573;
  text-align: center;
  padding: 0.2rem 0.15rem 0.3rem;
  line-height: 1.2;
}
.eb-gallery-note { font-size: 0.68rem; color: #8b9896; margin-top: 0.45rem; line-height: 1.5; }

/* ---------- Výhody / nevýhody ---------- */
.eb-pro-list, .eb-con-list { list-style: none; margin: 0; padding: 0; }
.eb-pro-list li, .eb-con-list li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.875rem;
  line-height: 1.55;
  margin-bottom: 0.6rem;
  color: #34464a;
}
.eb-pro-list li::before,
.eb-con-list li::before {
  position: absolute;
  left: 0;
  top: 0.05rem;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
}
.eb-pro-list li::before { content: "+"; background: #e4f6ec; color: #157347; }
.eb-con-list li::before { content: "−"; background: #fdeaea; color: #b42318; }

/* ---------- Srovnávací tabulka ---------- */
.eb-compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.eb-compare {
  width: 100%;
  min-width: 40rem;
  border-collapse: collapse;
  font-size: 0.82rem;
}
.eb-compare th, .eb-compare td {
  padding: 0.6rem 0.7rem;
  border-bottom: 1px solid #eef3f2;
  text-align: left;
  vertical-align: top;
}
.eb-compare thead th {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--eb-brand-dark);
  background: #f4f8f7;
  border-bottom: 2px solid #e2ecea;
  position: sticky;
  top: 0;
}
.eb-compare thead th.self { background: #fff6e6; }
.eb-compare tbody td.self { background: #fffdf7; font-weight: 600; color: var(--eb-brand-dark); }
.eb-compare tbody th {
  font-weight: 600;
  color: #6b7573;
  font-size: 0.78rem;
  white-space: nowrap;
}
.eb-compare tbody tr:last-child th, .eb-compare tbody tr:last-child td { border-bottom: none; }

/* ---------- Mini karta alternativy ---------- */
.eb-alt-card { display: flex; flex-direction: column; overflow: hidden; height: 100%; }
.eb-alt-card .pm-frame { border-bottom: 1px solid #e7ecec; }
.eb-alt-note {
  font-size: 0.78rem;
  line-height: 1.55;
  color: #55676a;
  border-left: 3px solid var(--eb-sun);
  padding-left: 0.6rem;
  margin-top: 0.5rem;
}

/* ---------- Tabulka parametrů na detailu ---------- */
.eb-spec-row { display: flex; justify-content: space-between; gap: 0.75rem; padding: 0.5rem 0; border-bottom: 1px solid #f1f5f4; font-size: 0.875rem; }
.eb-spec-row:last-child { border-bottom: none; }
.eb-spec-row dt { color: #6b7573; }
.eb-spec-row dd { margin: 0; font-weight: 600; color: var(--eb-brand-dark); text-align: right; }

/* ---------- Cenový štítek ---------- */
.eb-price-tag {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  background: #f4f8f7;
  border: 1px dashed #cfdedc;
  border-radius: 0.7rem;
  padding: 0.4rem 0.8rem;
}
.eb-price-tag b { font-size: 1.15rem; color: var(--eb-brand-dark); }
.eb-price-tag span { font-size: 0.7rem; color: #7b8a88; }
