:root {
  --olv-ink: #172026;
  --olv-muted: #66737f;
  --olv-line: #dbe3ea;
  --olv-panel: #ffffff;
  --olv-soft: #f5f8f7;
  --olv-accent: #0f766e;
  --olv-accent-dark: #115e59;
  --olv-gold: #b7791f;
}

.olv-offers {
  display: grid;
  gap: 16px;
  margin: 24px 0;
}

.olv-offers--grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.olv-offers--list,
.olv-offers--compact {
  grid-template-columns: 1fr;
}

.olv-card {
  background: var(--olv-panel);
  border: 1px solid var(--olv-line);
  border-radius: 8px;
  overflow: hidden;
  color: var(--olv-ink);
  box-shadow: 0 10px 30px rgba(23, 32, 38, 0.06);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.olv-card--list,
.olv-card--compact {
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr;
}

.olv-card__media {
  position: relative;
  display: grid;
  place-items: center;
  height: 250px;
  min-height: 250px;
  padding: 0;
  background: #f7faf9;
  overflow: hidden;
}

.olv-card--list .olv-card__media,
.olv-card--compact .olv-card__media {
  min-height: 100%;
}

.olv-card__img,
.olv-img-placeholder {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  display: block;
  object-fit: contain !important;
  margin: auto;
}

.olv-offers .olv-card__media img.olv-card__img,
.olv-products-grid .olv-card__media img.olv-card__img {
  position: static !important;
  transform: none !important;
  inset: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 6px !important;
}

.olv-img-placeholder {
  display: grid;
  place-items: center;
  color: var(--olv-accent);
  font-size: 48px;
  font-weight: 800;
  background: linear-gradient(135deg, #f7faf9, #e7f1ee);
}

.olv-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #fff7ed;
  color: var(--olv-gold);
  font-size: 12px;
  font-weight: 700;
}

.olv-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 13px;
  flex: 1 1 auto;
  min-width: 0;
}

.olv-card__topline,
.olv-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--olv-muted);
  font-size: 13px;
}

.olv-card__title {
  margin: 0;
  font-size: 16px;
  line-height: 1.25;
  letter-spacing: 0;
  min-height: 40px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.olv-card__title a {
  color: inherit;
  text-decoration: none;
}

.olv-card__description {
  margin: 0;
  color: #46545f;
  font-size: 14px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 60px;
}

.olv-card__meta strong {
  color: var(--olv-ink);
  font-size: 15px;
}

.olv-card-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #f5a623;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

.olv-card-rating strong {
  color: var(--olv-ink);
}

.olv-mini-prices {
  display: grid;
  gap: 6px;
  margin: 2px 0 4px;
}

.olv-mini-prices a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 7px 8px;
  border: 1px solid var(--olv-line);
  border-radius: 6px;
  background: #fbfdfc;
  color: var(--olv-ink);
  text-decoration: none;
}

.olv-mini-prices span {
  overflow: hidden;
  color: var(--olv-muted);
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.olv-mini-prices strong {
  font-size: 13px;
}

.olv-mini-prices em {
  grid-column: 1 / -1;
  width: fit-content;
  padding: 2px 6px;
  border-radius: 999px;
  background: #ecfdf5;
  color: var(--olv-accent-dark);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.olv-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 12px;
  border-radius: 6px;
  background: var(--olv-accent);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: background 160ms ease, transform 160ms ease;
  margin-top: auto;
}

.olv-button:hover,
.olv-button:focus {
  background: var(--olv-accent-dark);
  color: #fff;
  transform: translateY(-1px);
}

.olv-single-offer {
  display: grid;
  grid-template-columns: minmax(240px, 38%) 1fr;
  gap: 28px;
  align-items: stretch;
  margin: 20px 0 26px;
  padding: 22px;
  border: 1px solid var(--olv-line);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,1)),
    var(--olv-soft);
  box-shadow: 0 18px 45px rgba(23, 32, 38, 0.08);
}

.single-olv_offer .post-thumbnail,
.single-olv_offer .featured-image,
.single-olv_offer .wp-post-image {
  max-height: 420px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.single-olv_offer .author,
.single-olv_offer .byline,
.single-olv_offer .posted-by,
.single-olv_offer .post-author,
.single-olv_offer .entry-author,
.single-olv_offer .post-author-box,
.single-olv_offer .post-author-avatar,
.single-olv_offer .post-author-desc,
.single-olv_offer .footer-socials,
.single-olv_offer .entry-footer,
.single-olv_offer [rel="author"],
.single-olv_product .author,
.single-olv_product .byline,
.single-olv_product .posted-by,
.single-olv_product .post-author,
.single-olv_product .entry-author,
.single-olv_product .post-author-box,
.single-olv_product .post-author-avatar,
.single-olv_product .post-author-desc,
.single-olv_product .footer-socials,
.single-olv_product .entry-footer,
.single-olv_product [rel="author"] {
  display: none !important;
}

.olv-single-offer__media {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 260px;
  max-height: 380px;
  overflow: hidden;
  border-radius: 10px;
  background: #eef4f2;
}

.olv-single-offer__img {
  width: 100%;
  height: 100%;
  max-height: 380px;
  object-fit: contain;
  display: block;
  padding: 14px;
}

.olv-single-offer__main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.olv-single-offer__eyebrow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--olv-muted);
  font-size: 13px;
  font-weight: 700;
}

.olv-single-offer__eyebrow span {
  padding: 5px 9px;
  border: 1px solid var(--olv-line);
  border-radius: 999px;
  background: #fff;
}

.olv-single-offer h1 {
  margin: 0;
  color: var(--olv-ink);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: 0;
}

.olv-single-offer__lead {
  max-width: 760px;
  margin: 0;
  color: #46545f;
  font-size: 17px;
  line-height: 1.55;
}

.olv-single-offer__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 4px;
}

.olv-single-offer__stats div {
  padding: 12px;
  border: 1px solid var(--olv-line);
  border-radius: 8px;
  background: #fff;
}

.olv-single-offer__stats span {
  display: block;
  margin-bottom: 4px;
  color: var(--olv-muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.olv-single-offer__stats strong {
  color: var(--olv-ink);
  font-size: 17px;
}

.olv-single-offer__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 4px;
}

.olv-single-offer__actions .olv-button {
  min-width: 190px;
}

.olv-single-offer__actions span {
  color: var(--olv-muted);
  font-size: 13px;
}

.olv-report-button {
  min-height: 38px;
  padding: 9px 12px;
  border: 1px solid var(--olv-line);
  border-radius: 6px;
  background: #fff;
  color: var(--olv-muted);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.olv-report-button:hover,
.olv-report-button:focus {
  border-color: var(--olv-accent);
  color: var(--olv-accent);
}

.olv-info-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(220px, .75fr);
  gap: 18px;
  margin: 0 0 28px;
}

.olv-info-panel {
  padding: 18px;
  border: 1px solid var(--olv-line);
  border-radius: 10px;
  background: #fff;
}

.olv-info-panel h2 {
  margin: 0 0 10px;
  color: var(--olv-ink);
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0;
}

.olv-info-panel p,
.olv-info-panel li {
  color: #46545f;
  line-height: 1.6;
}

.olv-info-panel ul {
  margin: 0;
  padding-left: 20px;
}

.olv-rating-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.olv-rating-panel__head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.olv-rating-panel__head p {
  margin: 0;
  color: var(--olv-muted);
  font-size: 14px;
}

.olv-rating-score {
  min-width: 86px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f5f8f7;
  text-align: center;
}

.olv-rating-score strong {
  color: var(--olv-ink);
  font-size: 32px;
  line-height: 1;
}

.olv-rating-score span {
  color: var(--olv-muted);
  font-weight: 700;
}

.olv-stars {
  color: #f5a623;
  font-size: 24px;
  line-height: 1;
  letter-spacing: 1px;
}

.olv-rating-bars {
  display: grid;
  gap: 12px;
}

.olv-rating-bar__top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  color: var(--olv-muted);
  font-size: 13px;
  font-weight: 700;
}

.olv-rating-bar__top strong {
  color: var(--olv-ink);
}

.olv-rating-bar__track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf2f1;
}

.olv-rating-bar__track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--olv-accent), #f5a623);
}

.olv-rating-note {
  margin: 0;
  color: var(--olv-muted);
  font-size: 13px;
  line-height: 1.5;
}

.olv-modal-open {
  overflow: hidden;
}

.olv-report-modal[hidden] {
  display: none !important;
}

.olv-report-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  padding: 18px;
}

.olv-report-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
}

.olv-report-modal__panel {
  position: relative;
  width: min(520px, 100%);
  padding: 22px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
}

.olv-report-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #f3f6f5;
  color: var(--olv-ink);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.olv-report-modal h2 {
  margin: 0 34px 8px 0;
  font-size: 24px;
  letter-spacing: 0;
}

.olv-report-modal p {
  color: var(--olv-muted);
}

.olv-report-modal label {
  display: block;
  margin-top: 12px;
  color: var(--olv-ink);
  font-weight: 700;
}

.olv-report-modal select,
.olv-report-modal input,
.olv-report-modal textarea {
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid var(--olv-line);
  border-radius: 6px;
  font: inherit;
}

.olv-report-modal__actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
}

.olv-report-modal__status {
  min-height: 20px;
  margin: 12px 0 0;
  font-size: 14px;
}

.olv-product-hero {
  display: grid;
  grid-template-columns: minmax(240px, 34%) 1fr;
  gap: 28px;
  align-items: center;
  margin: 20px 0 26px;
  padding: 22px;
  border: 1px solid var(--olv-line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(23, 32, 38, 0.08);
}

.olv-product-hero__media {
  display: grid;
  place-items: center;
  min-height: 260px;
  border-radius: 10px;
  background: var(--olv-soft);
  overflow: hidden;
}

.olv-product-hero__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.olv-product-hero__label,
.olv-best-badge {
  display: inline-flex;
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  background: #ecfdf5;
  color: var(--olv-accent-dark);
  font-size: 12px;
  font-weight: 800;
}

.olv-product-hero h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: 0;
}

.olv-product-hero p {
  margin: 0;
  color: #46545f;
  font-size: 17px;
  line-height: 1.55;
}

.olv-product-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(130px, 1fr));
  gap: 10px;
}

.olv-product-hero__stats div {
  padding: 12px;
  border: 1px solid var(--olv-line);
  border-radius: 8px;
  background: var(--olv-soft);
}

.olv-product-hero__stats span {
  display: block;
  color: var(--olv-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.olv-product-hero__stats strong {
  color: var(--olv-ink);
  font-size: 18px;
}

.olv-price-table-section {
  margin: 28px 0;
}

.olv-price-table-section h2 {
  margin: 0 0 14px;
  font-size: 24px;
  letter-spacing: 0;
}

.olv-price-table .is-best-price td {
  background: #f6fffb;
}

.olv-best-badge {
  margin-left: 8px;
}

.olv-db-comparisons {
  display: grid;
  gap: 22px;
  margin: 24px 0;
}

.olv-db-comparison {
  padding: 18px;
  border: 1px solid var(--olv-line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 35px rgba(23, 32, 38, 0.06);
}

.olv-db-comparison__head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.olv-db-comparison__head h2 {
  margin: 0 0 6px;
  color: var(--olv-ink);
  font-size: 22px;
  letter-spacing: 0;
}

.olv-db-comparison__head p {
  max-width: 760px;
  margin: 0;
  color: var(--olv-muted);
  line-height: 1.5;
}

.olv-db-comparison__head > strong {
  flex: 0 0 auto;
  padding: 10px 12px;
  border-radius: 8px;
  background: #ecfdf5;
  color: var(--olv-accent-dark);
  font-size: 18px;
}

.olv-back-link {
  margin: 12px 0;
}

.olv-back-link a {
  color: var(--olv-accent);
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 680px) {
  .olv-db-comparison__head {
    flex-direction: column;
  }
}

.olv-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 28px 0;
}

.olv-pagination a,
.olv-pagination span.current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--olv-line);
  border-radius: 6px;
  background: #fff;
  color: var(--olv-ink);
  font-weight: 700;
  text-decoration: none;
}

.olv-pagination span.current {
  border-color: var(--olv-accent);
  background: var(--olv-accent);
  color: #fff;
}

.olv-pagination a:hover,
.olv-pagination a:focus {
  border-color: var(--olv-accent);
  color: var(--olv-accent);
}

.olv-empty-state {
  margin: 28px 0;
  padding: 28px;
  border: 1px dashed var(--olv-line);
  border-radius: 10px;
  background: #f7faf9;
  text-align: center;
}

.olv-empty-state h2 {
  margin: 0 0 8px;
  color: var(--olv-ink);
  font-size: 24px;
  letter-spacing: 0;
}

.olv-empty-state p {
  max-width: 680px;
  margin: 0 auto;
  color: var(--olv-muted);
  line-height: 1.55;
}

.olv-disclosure {
  margin: 12px 0 24px;
  color: var(--olv-muted);
  font-size: 13px;
  line-height: 1.45;
}

.olv-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid var(--olv-line);
  border-radius: 8px;
  background: #fff;
}

.olv-comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.olv-comparison-table th,
.olv-comparison-table td {
  padding: 14px;
  border-bottom: 1px solid var(--olv-line);
  text-align: left;
  vertical-align: middle;
}

.olv-comparison-table th {
  background: var(--olv-soft);
  color: var(--olv-muted);
  font-size: 13px;
  text-transform: uppercase;
}

.olv-table-offer {
  display: flex;
  align-items: center;
  gap: 12px;
}

.olv-table-offer span {
  display: block;
  color: var(--olv-muted);
  font-size: 13px;
  max-width: 420px;
}

.olv-table-img {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--olv-soft);
}

.olv-single-panel {
  margin-top: 28px;
}

.olv-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--olv-line);
  border-radius: 8px;
  background: #fff;
}

.olv-details h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.olv-details p,
.olv-details ul {
  margin-top: 0;
}

@media (max-width: 680px) {
  .olv-product-hero {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .olv-product-hero__stats {
    grid-template-columns: 1fr;
  }

  .olv-single-offer,
  .olv-info-grid {
    grid-template-columns: 1fr;
  }

  .olv-single-offer {
    padding: 14px;
    gap: 18px;
  }

  .olv-single-offer__media {
    min-height: 210px;
    max-height: 300px;
  }

  .olv-single-offer__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .olv-card--list,
  .olv-card--compact {
    grid-template-columns: 1fr;
  }

  .olv-card__topline,
  .olv-card__meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}

@media (max-width: 1100px) {
  .olv-offers--grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .olv-offers--grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .olv-offers--grid {
    grid-template-columns: 1fr;
  }

  .olv-card__media {
    height: 300px;
    min-height: 300px;
  }

  .olv-card__img,
  .olv-img-placeholder {
    max-height: 100% !important;
  }
}
