/* Uniforme productbeelden — Mike Quint van Reclame-online.nl.
   Vaste beeldvakken; de verhouding van de aangeleverde foto blijft behouden. */
body.ro-uniform-catalog .ow-product-image img {
  display: block; width: 100% !important; height: 100% !important;
  max-width: 100% !important; max-height: 100% !important;
  object-fit: contain !important; object-position: center center; margin: 0;
}
body.ro-uniform-catalog .ow-single-product .ow-pdp-main-image {
  min-height: 0 !important; padding: 24px 48px !important; background: #fff;
}
body.ro-uniform-catalog .ow-single-product .ow-pdp-main-image a {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 420px !important;
}
body.ro-uniform-catalog .ow-single-product .ow-pdp-main-image img {
  display: block; width: 100% !important; height: 100% !important;
  max-width: 100% !important; max-height: 100% !important;
  object-fit: contain !important; object-position: center;
}
@media (max-width: 1023px) and (min-width: 768px) {
  body.ro-uniform-catalog .ow-single-product .ow-pdp-main-image a { height: 360px !important; }
}
@media (max-width: 767px) {
  body.ro-uniform-catalog .ow-single-product .ow-pdp-main-image { padding: 16px 38px !important; }
  body.ro-uniform-catalog .ow-single-product .ow-pdp-main-image a { height: 290px !important; }
}

/* ── Coolblue-style product cards ── */
.ow-product-card {
  padding: 0 !important;
  overflow: hidden;
  min-height: 0 !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: none;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex !important;
  flex-direction: column !important;
}
.ow-product-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  border-color: #d1d5db !important;
}

/* Image area */
.ow-product-card .ow-product-image {
  display: flex !important; align-items: center; justify-content: center;
  box-sizing: border-box; width: 100%;
  height: 200px !important;
  padding: 16px !important;
  margin: 0 !important;
  background: #fff !important;
  border-bottom: none;
  border-radius: 0 !important;
  position: relative;
}

/* Energy label — top-left like Coolblue */
.ow-product-card .ow-energy {
  position: absolute !important;
  top: 10px !important;
  left: 10px !important;
  right: auto !important;
  padding: 3px 10px !important;
  min-width: 0 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  border-radius: 4px !important;
  line-height: 20px !important;
  letter-spacing: 0.02em;
  z-index: 2;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

/* Card body */
.ow-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0 16px 16px;
}

/* Brand */
.ow-product-card .ow-brand {
  font-size: 13px;
  font-weight: 400;
  color: #6b7280;
  line-height: 1.3;
  margin-bottom: 1px;
}

/* Model / title */
.ow-product-card h2 {
  padding: 0 !important;
  margin: 0 0 8px !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
  color: #1f2937 !important;
  min-height: 0 !important;
}

/* Spec icons row (Coolblue-style) */
.ow-spec-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-bottom: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f3f4f6;
}
.ow-spec-icon {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #4b5563;
  white-space: nowrap;
}
.ow-spec-icon svg {
  width: 16px; height: 16px;
  color: #9ca3af;
  flex-shrink: 0;
}

/* Features with checkmarks */
.ow-product-card .ow-features {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 10px !important;
  min-height: 0 !important;
  gap: 2px !important;
  display: flex !important;
  flex-direction: column;
}
.ow-product-card .ow-features:empty {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.ow-product-card .ow-features li {
  font-size: 12.5px !important;
  color: #4b5563 !important;
  line-height: 1.5 !important;
  padding-left: 18px;
  position: relative;
}
.ow-product-card .ow-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #22c55e;
  font-weight: 700;
  font-size: 13px;
}

/* Hide any old-style ul that's not .ow-features */
.ow-product-card ul:not(.ow-features) {
  display: none !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Price */
.ow-product-card .ow-price {
  padding: 0 !important;
  font-size: 22px !important;
  font-weight: 900 !important;
  letter-spacing: -0.02em;
  color: #111827 !important;
  margin-top: auto !important;
}
.ow-product-card .ow-price del {
  font-size: 14px;
  font-weight: 400;
  color: #9ca3af;
}

/* Stock */
.ow-product-card .ow-stock {
  padding: 0 !important;
  margin: 2px 0 8px !important;
  font-size: 12px !important;
}

/* Guarantee badge */
.ow-guarantee-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px;
  padding: 4px 8px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 4px;
  color: #15803d;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
}
.ow-product-card .ow-guarantee-badge {
  margin: 0 0 10px !important;
}
.ow-guarantee-badge svg {
  width: 13px !important; height: 13px !important;
  min-width: 13px !important; max-width: 13px !important;
  flex-shrink: 0;
}

/* Compare checkbox */
.ow-compare-toggle {
  display: flex; align-items: center; gap: 6px;
  padding: 0; margin-bottom: 10px;
  cursor: pointer; user-select: none;
  font-size: 12.5px; font-weight: 600; color: #6b7280;
  transition: color 0.15s;
}
.ow-compare-toggle:hover { color: #003f8f; }
.ow-compare-toggle input {
  width: 16px; height: 16px; margin: 0;
  accent-color: #003f8f; cursor: pointer;
  border-radius: 3px;
}

/* Button — Coolblue green */
.ow-product-card .ow-product-button {
  margin: 0 !important;
  border-radius: 6px !important;
  min-height: 44px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: 0;
  background: #f28e00 !important;
  color: #fff !important;
  transition: background 0.2s ease;
  display: flex !important;
  align-items: center;
  justify-content: center;
}
.ow-product-card .ow-product-button:hover {
  background: #d97b00 !important;
  transform: none;
}

/* ── Grid spacing ── */
.ow-product-grid { gap: 16px !important; }

/* ── Compare floating bar ── */
.ow-compare-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: #1f2937;
  color: #fff;
  padding: 12px 24px;
  display: flex; align-items: center; gap: 16px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.25);
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(.4,0,.2,1);
}
.ow-compare-bar.is-visible { transform: translateY(0); }
.ow-compare-bar-label {
  font-size: 14px; font-weight: 700; white-space: nowrap;
}
.ow-compare-bar-label span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: #f28e00; font-size: 12px; font-weight: 800;
  margin-left: 6px;
}
.ow-compare-items {
  display: flex; gap: 12px; flex: 1; min-width: 0; overflow-x: auto;
}
.ow-compare-item {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.08); border-radius: 8px;
  padding: 8px 12px; min-width: 200px; max-width: 280px;
  flex-shrink: 0;
}
.ow-compare-item img {
  width: 44px; height: 44px; object-fit: contain;
  background: #fff; border-radius: 4px; padding: 3px;
}
.ow-compare-item-info { min-width: 0; flex: 1; }
.ow-compare-item-name {
  font-size: 12.5px; font-weight: 700; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ow-compare-item-price {
  font-size: 12px; color: rgba(255,255,255,0.6); font-weight: 600;
}
.ow-compare-item-remove {
  background: none; border: none; color: rgba(255,255,255,0.4);
  font-size: 18px; cursor: pointer; padding: 0 4px; line-height: 1;
  transition: color 0.15s;
}
.ow-compare-item-remove:hover { color: #fff; }
.ow-compare-bar-actions {
  display: flex; gap: 10px; align-items: center; flex-shrink: 0;
}
.ow-compare-btn {
  background: #f28e00; color: #fff; text-decoration: none;
  border: none; border-radius: 6px;
  padding: 12px 24px; font-size: 14px; font-weight: 700;
  cursor: pointer; transition: background 0.2s;
  white-space: nowrap;
}
.ow-compare-btn:hover { background: #d97b00; color: #fff; }
.ow-compare-clear {
  background: none; border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.7); border-radius: 6px;
  padding: 10px 16px; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all 0.2s; white-space: nowrap;
}
.ow-compare-clear:hover {
  border-color: rgba(255,255,255,0.5); color: #fff;
}

/* Hide WordPress page title on compare page */
.ow-compare-page ~ .wp-block-post-title,
.ow-compare-page ~ h1,
.entry-content:has(.ow-compare-page) ~ .wp-block-post-title,
body:has(.ow-compare-page) .wp-block-post-title { display: none !important; }

/* ── Comparison table page ── */
.ow-compare-page { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.ow-compare-header { margin-bottom: 24px; }
.ow-compare-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; color: #f28e00;
  text-decoration: none; margin-bottom: 8px;
  transition: color 0.15s;
}
.ow-compare-back:hover { color: #d97b00; }
.ow-compare-back svg { flex-shrink: 0; }
.ow-compare-subtitle { color: #6b7280; font-size: 15px; margin: 0; }
.ow-compare-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ow-compare-table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: #fff; border-radius: 8px; overflow: hidden;
  border: 1px solid #e5e7eb;
}
.ow-compare-table thead th {
  padding: 20px 16px 12px; vertical-align: top;
  border-bottom: 2px solid #e5e7eb; background: #f9fafb;
  min-width: 180px; text-align: center;
}
.ow-compare-table thead th:first-child {
  text-align: left; font-size: 14px; font-weight: 700; color: #6b7280;
  min-width: 160px; width: 180px;
}
.ow-compare-table thead th img {
  display: block; margin: 0 auto 10px; width: 100px; height: 100px;
  object-fit: contain;
}
.ow-compare-table thead th .ow-ct-name {
  display: block; font-size: 13.5px; font-weight: 800; color: #1f2937;
  line-height: 1.3; margin-bottom: 4px;
}
.ow-compare-table thead th .ow-ct-price {
  display: block; font-size: 18px; font-weight: 900; color: #111827;
}
.ow-compare-table thead th .ow-ct-remove {
  display: inline-block; margin-top: 8px; font-size: 12px;
  color: #9ca3af; cursor: pointer; border: none; background: none;
  transition: color 0.15s;
}
.ow-compare-table thead th .ow-ct-remove:hover { color: #ef4444; }
.ow-compare-table tbody tr { transition: background 0.15s; }
.ow-compare-table tbody tr:hover { background: #f9fafb; }
.ow-compare-table td {
  padding: 10px 16px; border-bottom: 1px solid #f3f4f6;
  font-size: 14px; color: #374151; text-align: center;
}
.ow-compare-table td:first-child {
  text-align: left; font-weight: 600; color: #6b7280;
  font-size: 13.5px; background: #fafbfc;
}
.ow-compare-table .ow-ct-section td {
  background: #f3f4f6; font-weight: 800; color: #1f2937;
  font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em;
  padding: 10px 16px; text-align: left;
}
.ow-compare-table .ow-ct-highlight { color: #15803d; font-weight: 700; }
.ow-compare-table .ow-ct-missing { color: #d1d5db; }
.ow-compare-diff-toggle {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 20px; cursor: pointer; user-select: none;
  font-size: 14px; font-weight: 600; color: #4b5563;
}
.ow-compare-diff-toggle input { accent-color: #f28e00; width: 18px; height: 18px; cursor: pointer; }
.ow-compare-empty {
  text-align: center; padding: 60px 20px; color: #9ca3af;
}
.ow-compare-empty svg { width: 48px; height: 48px; margin-bottom: 16px; opacity: 0.4; }
.ow-compare-empty p { font-size: 16px; font-weight: 600; margin: 0 0 8px; color: #6b7280; }
.ow-compare-empty small { font-size: 14px; }

/* Responsive */
@media (max-width: 1023px) and (min-width: 768px) {
  .ow-product-card .ow-product-image { height: 180px !important; }
}
@media (max-width: 767px) {
  .ow-product-card .ow-product-image { height: 160px !important; padding: 12px !important; }
  .ow-card-body { padding: 0 14px 14px; }
  .ow-product-card h2 { font-size: 14px !important; }
  .ow-product-card .ow-price { font-size: 20px !important; }
  .ow-product-card .ow-product-button { min-height: 40px !important; }
  .ow-compare-bar { padding: 10px 16px; flex-wrap: wrap; }
  .ow-compare-items { order: 3; width: 100%; }
  .ow-compare-item { min-width: 160px; }
}
@media (max-width: 359px) {
  .ow-product-card .ow-product-image { height: 130px !important; }
}

/* ==== 2026-11-28: vergelijker duidelijker ==== */
/* Knop op productkaart */
.ow-product-card .ow-compare-toggle {
  position: relative;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; box-sizing: border-box;
  min-height: 36px; margin: 2px 0 10px; padding: 6px 10px;
  border: 1.5px dashed #b9c4d3; border-radius: 6px;
  background: #f6f8fb; color: #0b2545;
  font-size: 13px; font-weight: 700; line-height: 1.2; text-align: center;
  cursor: pointer; user-select: none;
  transition: background .15s, border-color .15s, color .15s;
}
.ow-product-card .ow-compare-toggle:hover { border-color: #0b2545; background: #eef2f7; color: #0b2545; }
.ow-product-card .ow-compare-toggle input {
  position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none;
}
.ow-product-card .ow-compare-toggle:focus-within { outline: 2px solid #f28e00; outline-offset: 2px; }
.ow-compare-toggle__icon { display: inline-flex; width: 16px; height: 16px; flex-shrink: 0; }
.ow-compare-toggle__icon svg { width: 16px; height: 16px; }
.ow-product-card .ow-compare-toggle.is-on {
  border-style: solid; border-color: #0b2545; background: #0b2545; color: #fff;
}
.ow-product-card .ow-compare-toggle.is-on .ow-compare-toggle__icon svg { display: none; }
.ow-product-card .ow-compare-toggle.is-on .ow-compare-toggle__icon::before { content: "\2713"; font-size: 14px; line-height: 16px; }
.ow-product-card .ow-compare-toggle.is-full { opacity: .5; }

/* Teller in het menu */
.ow-nav-compare-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px; margin-left: 6px;
  border-radius: 9px; background: #f28e00; color: #fff;
  font-size: 11px; font-weight: 800; line-height: 1; vertical-align: 2px;
}
.ow-nav-compare-count[hidden] { display: none; }

/* Zwevende balk in merkkleur, met hulptekst */
.ow-compare-bar { background: #0b2545; }
.ow-compare-bar-label { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.ow-compare-bar-label .ow-compare-count { position: absolute; margin: 0; }
.ow-compare-bar-label { position: relative; padding-right: 30px; }
.ow-compare-bar-label .ow-compare-count { top: -1px; right: 0; }
.ow-compare-hint { font-size: 12px; font-weight: 600; color: rgba(255,255,255,.7); white-space: nowrap; }
.ow-compare-btn.is-disabled { background: rgba(255,255,255,.18); color: rgba(255,255,255,.75); }
.ow-compare-btn.is-disabled:hover { background: rgba(255,255,255,.25); color: #fff; }
html.ow-compare-open .ow-floating-actions,
html.ow-compare-open .ow-floating-cart { bottom: 96px !important; transition: bottom .3s; }

/* Toast */
.ow-compare-toast {
  position: fixed; left: 50%; bottom: 110px; z-index: 10001;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 8px;
  background: #0b2545; color: #fff; font-size: 14px; font-weight: 600;
  box-shadow: 0 10px 30px rgba(8,19,38,.3); transition: opacity .2s, transform .2s;
}
.ow-compare-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* Categorie-intro + uitleg vergelijken */
.ow-cat-story { margin: 14px 0 4px; max-width: 760px; }
.ow-cat-story__text { margin: 0 0 12px !important; font-size: 15px !important; line-height: 1.6 !important; color: #33445a !important; }
.ow-cat-compare-tip {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  padding: 12px 14px; border: 1px solid #dce3ec; border-left: 4px solid #f28e00; border-radius: 8px;
  background: #fffaf2;
}
.ow-cat-compare-tip p { margin: 0 !important; font-size: 14px !important; line-height: 1.5 !important; color: #0b2545 !important; }
.ow-cat-compare-tip em { font-style: normal; font-weight: 700; }
.ow-cat-compare-tip__icon { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 50%; background: #fff; color: #f28e00; border: 1px solid #f6d5a6; }
.ow-cat-compare-tip__icon svg { width: 18px; height: 18px; }
.ow-cat-compare-tip__link { font-size: 14px; font-weight: 800; color: #0b2545 !important; text-decoration: none !important; white-space: nowrap; }
.ow-cat-compare-tip__link:hover { color: #d97b00 !important; }

/* Lege vergelijkpagina */
.ow-compare-empty small { display: block; max-width: 520px; margin: 0 auto; line-height: 1.6; color: #4b5563; }
.ow-compare-empty__cats { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 20px; }
.ow-compare-empty__cats a { padding: 9px 14px; border: 1.5px solid #0b2545; border-radius: 6px; color: #0b2545; font-weight: 700; font-size: 14px; text-decoration: none; }
.ow-compare-empty__cats a:hover { background: #0b2545; color: #fff; }

@media (max-width: 767px) {
  .ow-cat-story__text { font-size: 14px !important; }
  .ow-cat-compare-tip { grid-template-columns: auto 1fr; }
  .ow-cat-compare-tip__link { grid-column: 1 / -1; }
  .ow-compare-hint { display: none; }
  .ow-compare-bar-label { padding-right: 28px; }
  html.ow-compare-open .ow-floating-actions,
  html.ow-compare-open .ow-floating-cart { bottom: 150px !important; }
}

/* 2026-11-28: compacte vergelijkbalk op mobiel */
@media (max-width: 767px) {
  .ow-compare-bar { flex-wrap: nowrap !important; gap: 10px !important; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)) !important; }
  .ow-compare-bar .ow-compare-items { display: none !important; }
  .ow-compare-bar-label { flex: 1; font-size: 14px; }
  .ow-compare-bar-actions { gap: 8px; }
  .ow-compare-clear { padding: 9px 10px; font-size: 12px; }
  .ow-compare-btn { padding: 11px 14px; font-size: 13px; }
  html.ow-compare-open .ow-floating-actions,
  html.ow-compare-open .ow-floating-cart { bottom: 78px !important; }
  .ow-compare-toast { bottom: 140px; }
}
