.iszachy-product-card {
  --iszachy-blue: #005bb5;
  --iszachy-blue-dark: #004785;
  --iszachy-border: #dce4ec;
  --iszachy-muted: #5f6b76;
  display: grid;
  grid-template-columns: minmax(190px, 32%) minmax(0, 1fr);
  gap: clamp(1.1rem, 3vw, 2rem);
  margin: 1.75rem 0;
  padding: clamp(1rem, 2.6vw, 1.6rem);
  overflow: hidden;
  color: #1f2933;
  background: #fff;
  border: 1px solid var(--iszachy-border);
  border-radius: 14px;
  box-shadow: 0 8px 26px rgba(22, 40, 58, 0.07);
}

.iszachy-product-card--no-image {
  grid-template-columns: 1fr;
}

.iszachy-product-card__media {
  display: flex;
  align-self: start;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  padding: 0.75rem;
  background: #f7f9fb;
  border-radius: 10px;
}

.iszachy-product-card__media img {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
  max-height: 320px;
  object-fit: contain;
}

.iszachy-product-card__content {
  min-width: 0;
}

.iszachy-product-card__category {
  margin: 0 0 0.25rem;
  color: var(--iszachy-blue);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.iszachy-product-card__title {
  margin: 0 0 0.8rem;
  font-size: clamp(1.35rem, 2.5vw, 1.8rem);
  line-height: 1.2;
}

.iszachy-product-card__description > :first-child {
  margin-top: 0;
}

.iszachy-product-card__description > :last-child {
  margin-bottom: 0;
}

.iszachy-product-card__audience,
.iszachy-product-card__rating {
  margin: 0.9rem 0 0;
}

.iszachy-product-card__pros-cons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.iszachy-product-card__pros-cons h4 {
  margin: 0 0 0.45rem;
  color: #243342;
  font-size: 1rem;
}

.iszachy-product-card__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.iszachy-product-card__list li {
  position: relative;
  margin: 0.3rem 0;
  padding-left: 1.35rem;
}

.iszachy-product-card__list li::before {
  position: absolute;
  left: 0;
  font-weight: 800;
}

.iszachy-product-card__list--pros li::before {
  content: "✓";
  color: #167c45;
}

.iszachy-product-card__list--cons li::before {
  content: "–";
  color: #a03a2a;
}

.iszachy-product-card__commerce {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.85rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--iszachy-border);
}

.iszachy-product-card__offer-meta {
  min-width: 155px;
  margin-right: auto;
}

.iszachy-product-card__price {
  margin: 0;
  color: #17212b;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.2;
}

.iszachy-product-card__price s {
  margin-left: 0.4rem;
  color: var(--iszachy-muted);
  font-size: 0.9rem;
  font-weight: 400;
}

.iszachy-product-card__availability,
.iszachy-product-card__sync,
.iszachy-product-card__no-offer,
.iszachy-product-card__affiliate-note {
  margin: 0.2rem 0 0;
  color: var(--iszachy-muted);
  font-size: 0.82rem;
}

.iszachy-product-card__availability {
  color: #167c45;
  font-weight: 700;
}

.iszachy-product-card__no-offer {
  flex: 1 1 250px;
}

.iszachy-product-card__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.68rem 1rem;
  border: 2px solid var(--iszachy-blue);
  border-radius: 8px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.iszachy-product-card a.iszachy-product-card__button--primary,
.iszachy-product-card a.iszachy-product-card__button--primary:link,
.iszachy-product-card a.iszachy-product-card__button--primary:visited {
  color: #fff !important;
  background: var(--iszachy-blue);
  text-decoration: none !important;
}

.iszachy-product-card a.iszachy-product-card__button--primary:hover,
.iszachy-product-card a.iszachy-product-card__button--primary:focus-visible {
  color: #fff !important;
  background: var(--iszachy-blue-dark);
  border-color: var(--iszachy-blue-dark);
  text-decoration: none !important;
}

.iszachy-product-card__button--secondary,
.iszachy-product-card__button--secondary:link,
.iszachy-product-card__button--secondary:visited {
  color: var(--iszachy-blue);
  background: #fff;
}

.iszachy-product-card__button--secondary:hover,
.iszachy-product-card__button--secondary:focus-visible {
  color: #fff;
  background: var(--iszachy-blue);
}

.iszachy-product-card__affiliate-note {
  flex-basis: 100%;
  text-align: right;
}

@media (max-width: 720px) {
  .iszachy-product-card {
    grid-template-columns: 1fr;
  }

  .iszachy-product-card__media {
    min-height: 180px;
  }

  .iszachy-product-card__pros-cons {
    grid-template-columns: 1fr;
  }

  .iszachy-product-card__commerce {
    align-items: stretch;
  }

  .iszachy-product-card__offer-meta,
  .iszachy-product-card__button {
    flex: 1 1 100%;
  }

  .iszachy-product-card__affiliate-note {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .iszachy-product-card__button {
    transition: none;
  }
}

/* Responsive comparison tables used in Joomla articles. */
.iszachy-comparison-wrap {
  width: 100%;
  max-width: 100%;
  margin: 1.25rem 0 2rem;
  overflow-x: auto;
  background: #fff;
  border: 1px solid #dce4ec;
  border-radius: 14px;
  box-shadow: 0 8px 26px rgba(22, 40, 58, 0.07);
  -webkit-overflow-scrolling: touch;
}

.iszachy-comparison-table {
  width: 100%;
  min-width: 880px;
  margin: 0;
  color: #1f2933;
  background: #fff;
  border: 0;
  border-collapse: collapse;
  border-spacing: 0;
  font-size: 0.92rem;
  line-height: 1.45;
}

.iszachy-comparison-table th,
.iszachy-comparison-table td {
  padding: 0.85rem 0.75rem;
  overflow-wrap: anywhere;
  text-align: left;
  vertical-align: top;
  background: transparent;
  border: 0 !important;
  border-bottom: 1px solid #e5e7eb !important;
}

.iszachy-comparison-table thead th {
  color: #334155;
  background: #f1f6fb;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.iszachy-comparison-table tbody tr:last-child td {
  border-bottom: 0 !important;
}

.iszachy-comparison-table tbody tr:hover td {
  background: #f8fbfe;
}

.iszachy-comparison-table__model {
  color: var(--iszachy-blue, #005bb5);
  font-weight: 700;
  white-space: nowrap;
}

.iszachy-comparison-table__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.9rem;
  padding: 0.16rem 0.5rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
}

.iszachy-comparison-table__badge--yes {
  color: #12663a;
  background: #e8f7ef;
}

.iszachy-comparison-table__badge--no {
  color: #5f6b76;
  background: #eef2f5;
}

@media (max-width: 900px) {
  .iszachy-comparison-wrap {
    overflow: visible;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .iszachy-comparison-table,
  .iszachy-comparison-table tbody {
    display: block;
    width: 100%;
    min-width: 0;
    background: transparent;
  }

  .iszachy-comparison-table thead {
    display: none !important;
  }

  .iszachy-comparison-table tbody tr {
    display: block;
    margin: 0 0 1rem;
    padding: 0.35rem 0.9rem;
    background: #fff;
    border: 1px solid #dce4ec;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(22, 40, 58, 0.06);
  }

  .iszachy-comparison-table tbody td {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    width: 100%;
    padding: 0.62rem 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-bottom: 1px solid #edf1f4 !important;
  }

  .iszachy-comparison-table tbody td:last-child {
    border-bottom: 0 !important;
  }

  .iszachy-comparison-table tbody td::before {
    flex: 0 0 40%;
    color: #5f6b76;
    content: attr(data-label);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.025em;
    line-height: 1.45;
    text-transform: uppercase;
  }

  .iszachy-comparison-table__model {
    color: var(--iszachy-blue, #005bb5);
    white-space: normal;
  }
}

@media (max-width: 440px) {
  .iszachy-comparison-table tbody td {
    display: block;
  }

  .iszachy-comparison-table tbody td::before {
    display: block;
    margin-bottom: 0.2rem;
  }
}
