/* Compact, product-first cards. Load after all base and regional styles. */
body .offers-grid:has(> .product-card-v4) {
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:stretch;
}
body .offer-card.product-card-v4 {
  --pc-radius:var(--card-radius,14px);
  display:flex;flex-direction:column;min-width:0;overflow:hidden;
  border:1px solid var(--line);border-radius:var(--pc-radius);
  background:var(--surface);color:var(--text);isolation:isolate;
  transform:none;box-shadow:none;
  transition:border-color .18s ease,box-shadow .18s ease;
}
body .offer-card.product-card-v4:hover,
body .offer-card.product-card-v4:focus-within {
  transform:none;border-color:color-mix(in srgb,var(--accent) 60%,var(--line));
  box-shadow:0 6px 24px #00000012;
}
.pc-card-head {display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:18px 20px 14px;min-width:0;}
body .product-card-v4 .pc-title {flex:1;min-width:0;margin:0;font:inherit;font-size:21px;font-weight:700;line-height:1.25;letter-spacing:-.025em;overflow-wrap:anywhere;}
.pc-title a {color:inherit;text-decoration:none;text-underline-offset:4px;}
.pc-title a:hover {text-decoration:underline;text-decoration-thickness:1px;}
.pc-state {display:flex;align-items:flex-end;flex-direction:column;gap:6px;max-width:49%;min-width:0;flex-shrink:0;}
body .product-card-v4 .status-pill {font-size:12px;line-height:1.3;padding:5px 8px;white-space:normal;max-width:100%;text-align:start;border-radius:6px;}
body .product-card-v4 .status-pill:before {width:5px;height:5px;flex-shrink:0;}
.pc-platform {font-size:12px;font-weight:500;line-height:1.3;color:var(--muted);}
.pc-main {display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);gap:16px;align-items:center;padding:0 20px 18px;flex:1;min-width:0;}
body .product-card-v4 .pc-media {
  display:flex;position:relative;align-items:center;justify-content:center;isolation:isolate;
  min-width:0;width:100%;height:auto;aspect-ratio:16/10;max-height:166px;min-height:112px;
  margin:0;padding:0;overflow:hidden;border:1px solid var(--line);border-radius:8px;
  color:var(--text);background:var(--surface-2);font:inherit;text-decoration:none;cursor:zoom-in;
}
body .product-card-v4 .pc-media .pc-preview-image {
  display:block;position:static;width:100%;height:100%;min-height:0;max-height:166px;
  margin:0;object-fit:contain;opacity:1;filter:none;transform:none;
  transition:transform .22s ease;
}
body .product-card-v4 .pc-media:hover .pc-preview-image {transform:scale(1.025);}
.pc-preview-caption {
  position:absolute;inset-inline-start:7px;bottom:7px;display:flex;align-items:center;gap:5px;
  max-width:calc(100% - 44px);padding:5px 7px;border-radius:5px;
  background:var(--surface);color:var(--text);border:1px solid var(--line);
  font-size:12px;font-weight:600;line-height:1.2;text-align:start;
}
.pc-preview-caption>span {font-size:17px;line-height:1;flex-shrink:0;}
.pc-preview-count {
  position:absolute;bottom:7px;inset-inline-end:7px;display:flex;align-items:center;gap:4px;
  border:1px solid var(--line);background:var(--surface);color:var(--text);
  padding:5px;border-radius:5px;font-size:12px;line-height:1.2;font-variant-numeric:tabular-nums;
}
.pc-preview-count svg {width:14px;height:14px;flex-shrink:0;}
body .product-card-v4 .pc-media-empty {flex-direction:column;gap:10px;cursor:pointer;color:var(--muted);font-size:13px;min-height:128px;text-align:center;padding:16px;}
.pc-media-empty>svg {width:44px;height:34px;}
.pc-facts {display:grid;gap:10px;padding:0;margin:0;list-style:none;min-width:0;color:var(--text);font-size:14px;line-height:1.45;}
.pc-facts li {position:relative;padding-inline-start:14px;overflow-wrap:anywhere;}
.pc-facts li:before {content:"";position:absolute;inset-inline-start:0;top:.57em;width:5px;height:5px;border-radius:50%;background:var(--accent);}
.pc-footer {display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 20px 16px;border-top:1px solid var(--line);margin-top:auto;min-width:0;}
.pc-price {display:flex;flex-direction:column;gap:4px;min-width:0;line-height:1.2;}
.pc-price small {color:var(--muted);font-size:12px;line-height:1.3;overflow-wrap:anywhere;}
.pc-price strong {color:var(--text);font-size:25px;font-weight:700;letter-spacing:-.035em;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;}
body .product-card-v4 .pc-cta {display:inline-flex;align-items:center;justify-content:center;gap:10px;flex-shrink:0;min-height:44px;max-width:60%;padding:11px 15px;font-size:13px;line-height:1.35;white-space:normal;text-align:center;}
.pc-cta>span {font-size:17px;flex-shrink:0;}
.product-card-v4 a:focus-visible,.product-card-v4 button:focus-visible,
.offer-preview-dialog button:focus-visible,.offer-preview-dialog a:focus-visible {outline:3px solid var(--accent);outline-offset:3px;}
/* One native top-layer dialog, using the active regional semantic colors. */
.offer-preview-dialog {
  box-sizing:border-box;width:min(1120px,calc(100% - 40px));max-width:none;max-height:calc(100dvh - 40px);
  padding:0;border:1px solid var(--line);border-radius:16px;overflow:hidden;
  background:var(--surface);color:var(--text);box-shadow:0 24px 100px #0008;
}
.offer-preview-dialog[open] {display:flex;flex-direction:column;}
.offer-preview-dialog::backdrop {background:#08090de0;backdrop-filter:blur(7px);}
.op-header {display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px 20px;border-bottom:1px solid var(--line);flex-shrink:0;min-width:0;}
.op-header>div {min-width:0;}
.op-eyebrow {color:var(--muted);font-size:12px;line-height:1.3;margin:0 0 4px;}
.op-header h2 {margin:0;color:var(--text);font-size:20px;line-height:1.25;overflow-wrap:anywhere;}
.op-icon {display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:44px;height:44px;padding:0;border:1px solid var(--line);border-radius:8px;background:var(--surface-2);color:var(--text);font:inherit;font-size:26px;line-height:1;cursor:pointer;}
.op-icon:hover,.op-retry:hover {border-color:var(--accent);}
.op-icon svg {width:24px;height:24px;}
.op-stage {display:grid;place-items:center;position:relative;min-width:0;min-height:180px;height:min(64dvh,650px);padding:16px;overflow:auto;overscroll-behavior:contain;background:var(--bg);touch-action:pan-y;}
.op-stage>img {display:block;position:static;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;margin:auto;filter:none;opacity:1;user-select:none;}
.op-stage>img[hidden],.op-retry[hidden] {display:none;}
.op-stage.is-zoomed {display:block;touch-action:pan-x pan-y;}
.op-stage.is-zoomed>img {max-width:none;max-height:none;width:max(100%,var(--op-natural-width));height:auto;object-fit:initial;cursor:zoom-out;}
.op-stage[aria-busy=true]:after {content:"";position:absolute;left:calc(50% - 12px);top:calc(50% - 12px);width:24px;height:24px;border:2px solid var(--line);border-top-color:var(--accent);border-radius:50%;animation:op-spin .8s linear infinite;}
.op-stage[aria-busy=true]>img {visibility:hidden;}
.op-footer {display:flex;align-items:center;gap:12px;padding:12px 20px;border-top:1px solid var(--line);flex-shrink:0;}
.op-navigation {display:flex;align-items:center;gap:10px;}
.op-counter {min-width:60px;text-align:center;color:var(--muted);font-size:13px;font-variant-numeric:tabular-nums;direction:ltr;}
.op-icon:disabled {opacity:.4;cursor:default;}
.op-zoom {margin-inline-start:auto;}
body .offer-preview-dialog .op-product {display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:44px;max-width:50%;font-size:13px;line-height:1.35;padding:10px 16px;white-space:normal;text-align:center;}
.op-retry {min-height:44px;max-width:90%;padding:12px 16px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--text);font:inherit;font-size:14px;cursor:pointer;}
.op-retry>span {display:block;font-size:25px;line-height:1.4;}
@keyframes op-spin {to {transform:rotate(360deg);}}
@media(max-width:980px) {
  body .offers-grid:has(> .product-card-v4) {grid-template-columns:minmax(0,1fr);}
  .pc-main {grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);}
  body .product-card-v4 .pc-media {max-height:172px;}
}
@media(max-width:560px) {
  body .offers-grid:has(> .product-card-v4) {gap:16px;}
  .pc-card-head {padding:16px 16px 12px;gap:12px;}
  body .product-card-v4 .pc-title {font-size:20px;}
  .pc-main {grid-template-columns:minmax(0,1fr);padding:0 16px 16px;gap:14px;}
  body .product-card-v4 .pc-media {aspect-ratio:auto;height:150px;min-height:0;max-height:none;}
  body .product-card-v4 .pc-media .pc-preview-image {max-height:150px;}
  .pc-facts {gap:7px;font-size:14px;}
  .pc-footer {padding:12px 16px 16px;gap:12px;}
  .pc-price strong {font-size:23px;}
  body .product-card-v4 .pc-cta {padding-inline:12px;max-width:58%;}
  .offer-preview-dialog {width:calc(100% - 16px);max-height:calc(100dvh - 16px);border-radius:12px;}
  .op-header {padding:12px;gap:12px;}
  .op-header h2 {font-size:18px;}
  .op-stage {height:58dvh;padding:8px;min-height:150px;}
  .op-footer {padding:10px;gap:8px;flex-wrap:wrap;}
  .op-navigation {gap:6px;}
  .op-counter {min-width:46px;font-size:12px;}
  .op-zoom {margin-inline-start:auto;}
  body .offer-preview-dialog .op-product {max-width:none;width:100%;order:3;min-height:44px;}
}
@media(max-width:380px) {
  .pc-card-head {flex-wrap:wrap;}
  .pc-state {max-width:none;width:100%;flex-direction:row;align-items:center;justify-content:space-between;}
  .pc-preview-caption {max-width:calc(100% - 48px);}
}
@media(prefers-reduced-motion:reduce) {
  body .offer-card.product-card-v4,body .product-card-v4 .pc-preview-image {transition:none;}
  .op-stage[aria-busy=true]:after {animation:none;}
}

.recommendation-badge{display:inline-flex;align-items:center;gap:5px;max-width:100%;padding:5px 8px;border:1px solid color-mix(in srgb,var(--accent) 45%,var(--line));border-radius:6px;color:var(--accent);background:var(--surface-2);font-size:12px;line-height:1.35;font-weight:650;}
.recommendation-badge[hidden]{display:none!important}.recommendation-badge svg{width:13px;height:13px;fill:currentColor;flex-shrink:0}
.pc-visual{min-width:0;display:grid;gap:8px;align-self:start}.pc-art{position:relative;display:block;width:100%;aspect-ratio:16/9;overflow:hidden;border:1px solid var(--line);border-radius:9px;background:var(--surface-2);}
body .product-card-v4 .pc-art-image{display:block;width:100%;height:100%;object-fit:contain;opacity:1;filter:none;transform:none;transition:transform .28s ease}.pc-art:hover .pc-art-image{transform:scale(1.025)}
.pc-art-label{position:absolute;inset-inline-start:6px;bottom:6px;padding:3px 6px;border-radius:4px;background:var(--surface);color:var(--muted);font-size:11px;line-height:1.3}
.pc-gallery{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;width:100%;max-width:100%;padding:8px;border:1px solid var(--line);border-radius:7px;background:var(--surface-2);color:var(--text);font:inherit;font-size:13px;line-height:1.3;cursor:zoom-in;text-align:center;white-space:normal;}
.pc-gallery:hover{border-color:var(--accent)}.pc-gallery-count{font-variant-numeric:tabular-nums;color:var(--muted)}
.product-heading-line .recommendation-badge{margin-top:12px;font-size:14px}
@media(prefers-reduced-motion:reduce){body .product-card-v4 .pc-art-image{transition:none}}
