/* ─── Product Page v2 ─── */
/* New design: card-based layout, 5-tab system, rich store rows */

:root {
    --bg: #ffffff;
    --page-bg: #f8f9fa;
    --text: #1a1a1a;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --green: #c4fa8c;
    --green-hover: #b0e87a;
    --green-text: #1a1a1a;
    --star: #f59e0b;
    --tag-bg: #f3f4f6;
    --campaign: #a78bfa;
    --ig: #c13584;
    --tab-active: #1a1a1a;
    --tab-inactive: #9ca3af;
    --link: #4a9060;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--page-bg);
    color: var(--text);
}

h1, h2, h3, h4 {
    font-family: 'Inter', -apple-system, sans-serif;
}

a { text-decoration: none; color: inherit; }

.page-wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 24px 20px 60px;
}

/* ─── Top bar (breadcrumb) ─── */
.top-bar {
    display: flex;
    /* #790: as NAV it would otherwise take the header CSS's global nav { space-between }. */
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    padding: 10px 0 20px;
    font-size: 12px;
    color: var(--text-muted);
    flex-wrap: wrap;
}
.top-bar span { color: var(--tab-inactive); }
.top-bar a { color: var(--text-muted); text-decoration: none; white-space: nowrap; }
.top-bar a:hover { text-decoration: underline; }

/* ─── Product section ─── */
.product-section {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}

.product-main {
    display: flex;
    gap: 32px;
    padding: 28px;
}

/* ─── Image column ─── */
.image-col {
    flex: 0 0 320px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.carousel {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #f9fafb;
    aspect-ratio: 1;
}

.carousel img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.carousel-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    color: #9ca3af;
    font-size: 14px;
    font-weight: 500;
    gap: 8px;
}

.carousel-placeholder svg {
    width: 48px;
    height: 48px;
    stroke: #d1d5db;
    fill: none;
    stroke-width: 1.5;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s;
    z-index: 2;
}

.carousel-arrow:hover { background: #fff; }
.carousel-arrow svg { width: 16px; height: 16px; stroke: var(--text); fill: none; stroke-width: 2; }
.carousel-prev { left: 10px; }
.carousel-next { right: 10px; }

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    border: none;
    cursor: pointer;
    transition: background 0.15s;
}

.carousel-dot.active { background: var(--text); }

.see-more-images { text-align: center; font-size: 12px; }
.see-more-images .affiliate-link { color: var(--link); text-decoration: none; font-weight: 500; cursor: pointer; }
.see-more-images .affiliate-link:hover { text-decoration: underline; }

/* ─── Info column ─── */
.info-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.brand-link {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
}

.brand-link:hover { text-decoration: underline; }

.product-title {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text);
}

.product-description {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted);
}

.product-description ul {
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.product-description li {
    font-size: 14px;
    line-height: 1.5;
    color: #4b5563;
}

/* ─── Product rating ─── */
.product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.rating-number {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}

.stars {
    display: flex;
    align-items: center;
    gap: 1px;
}

.stars svg {
    width: 16px;
    height: 16px;
    fill: var(--star);
}

.stars .star-dimmed { fill: #d1d5db; }

.rating-count {
    font-size: 13px;
    color: var(--text-muted);
    margin-left: 2px;
}

/* ─── Insight bullets ─── */
.insight-bullets {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.insight-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text);
}

.insight-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 1px;
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.insight-item.positive .insight-icon {
    stroke: #22c55e;
    fill: #f0fdf4;
}

.insight-item.caution .insight-icon {
    stroke: #f59e0b;
    fill: #fffbeb;
}

/* ─── Tabs ─── */
.tabs-bar {
    display: flex;
    /* #790: NAV since v13; the header CSS's global nav rule must not spread or centre the tabs. */
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-top: 20px;
    background: var(--bg);
}

.tab {
    flex: 1;
    padding: 14px 8px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: var(--tab-inactive);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
    user-select: none;
    position: relative;
}

.tab:hover { color: var(--text); }

.tab.active {
    color: var(--tab-active);
    border-bottom-color: var(--tab-active);
    font-weight: 600;
}

.tab + .tab::before {
    content: '';
    position: absolute;
    left: 0; top: 25%; height: 50%; width: 1px;
    background: var(--border);
}

/* ─── Tab content ─── */
.tab-content {
    padding: 20px 28px;
    min-height: 60px;
}

.tab-panel { display: block; }

/* Section separator between stacked panels */
.tab-panel + .tab-panel {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

/* Section heading shown above each former tab panel */
.section-heading {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.prices-panel-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

/* ─── Store rows ─── */
.stores-sort-info {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0 0 4px 0;
    text-align: center;
}

.no-prices-notice {
    font-size: 14px;
    color: var(--text-muted);
    text-align: center;
    padding: 24px 16px;
    margin: 0;
}

.stores-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.store-row {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 6px 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: hidden;
}

.store-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.store-product-name {
    flex: 1 1 100%;
    order: 2;
    font-size: 14px;
    color: var(--text);
    line-height: 1.4;
    margin-top: 0;
}

.store-identity {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.store-logo { height: 22px; flex-shrink: 0; }
/* #583 (Jason): the store logo is a role="button" span, not an <a>, so it needs the hand cursor set. */
.store-identity .affiliate-link { cursor: pointer; }
.store-flag { font-size: 18px; line-height: 1; flex-shrink: 0; }

.discount-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 10px;
    background: #fef3c7;
    color: #1a1a1a;
    font-size: 12px;
    font-weight: 800;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}

.store-tagline {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

.price-cta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.price {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
}

.price span {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-muted);
}

.price.best-price { color: #dc2626; }

/* #790 §3.3 (Jason 2026-09-28): text for extractors and screen readers, not for the eye.
   Exactly this rule: never display:none, visibility:hidden, white-on-white or font-size:0,
   and never a class name trafilatura discards (hidden, hide-...). */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

/* #790: the logo control holds the hidden store name; position it so the absolute span
   anchors here (not on an outer ancestor) and the focus ring wraps the logo. */
.store-row .store-identity .affiliate-link {
    position: relative;
    display: inline-flex;
}

.price-original {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-muted);
    text-decoration: line-through;
    white-space: nowrap;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    background: var(--green);
    color: var(--green-text);
    font-size: 12px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.15s;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
}

.cta-btn:hover { background: var(--green-hover); }
.cta-btn svg { width: 11px; height: 11px; fill: none; stroke: var(--green-text); stroke-width: 2.5; }

.cta-btn.sold-out,
.cta-btn-disabled {
    background: #e5e7eb !important;
    color: #9ca3af !important;
    cursor: default;
    pointer-events: none;
}

.store-info-wrapper { border-radius: 8px; overflow: hidden; }

.store-info-blocks {
    display: flex;
    align-items: stretch;
    background: var(--tag-bg);
}

.info-block {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px 8px;
    gap: 2px;
    position: relative;
    min-width: 0;
}

.info-block + .info-block::before {
    content: '';
    position: absolute;
    left: 0; top: 20%; height: 60%; width: 1px;
    background: var(--border);
}

.info-label {
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    white-space: nowrap;
}

.info-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.info-value .star-icon { width: 14px; height: 14px; fill: var(--star); flex-shrink: 0; }
.info-value .ig-icon { width: 14px; height: 14px; fill: var(--ig); flex-shrink: 0; }
.info-sub { font-size: 11px; font-weight: 400; color: var(--text-muted); margin-left: 2px; }

/* #1497: the old row rules below (.store-info-*, .info-*, .variant-hint, --ig) stay while a
   page can still be built with CSS 14 and script 13; remove them in a later cut. */
/* ─── #1497 store facts: one centered line on a grey strip (replaces .store-info-wrapper) ─── */
.store-facts {
    margin: 0;
    padding: 5px 10px;
    background: var(--tag-bg);
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.5;
    color: #4b5563;
    text-align: center;
    text-wrap: balance;
}

.store-facts span + span::before { content: '·'; margin: 0 7px; color: var(--tab-inactive); }

/* #1497 (Jason): the store domain after the logo, on mobile only */
.store-domain { display: none; font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
@media (max-width: 700px) { .store-domain { display: inline; } }

/* #1497 Rabatter: from handoff-product-page-rabatter-2026-11-17 (no flag: Jason, #1497) */
/* ─── Rabatter section ─── */
/* The "Ny" badge on the tab and on the section heading (temporary) */
.badge-new {
    display: inline-block;
    margin-left: 0;
    padding: 1px 6px;
    border-radius: 999px;
    background: #f3effe;
    color: #6d28d9;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.5;
    vertical-align: middle;
    position: relative;
    top: -1px;
}

.deal-list { display: flex; flex-direction: column; gap: 8px; }

.deal-store {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.deal-store > summary,
.deal-store-plain {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    min-height: 54px;
}

.deal-store > summary { cursor: pointer; list-style: none; user-select: none; }
.deal-store > summary::-webkit-details-marker { display: none; }
.deal-store > summary:hover { background: #fafafa; }

.deal-store-id {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    min-width: 150px;
    font-size: inherit;
    font-weight: inherit;
}

.deal-store-name { font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }

.deal-store-id .store-logo { height: 22px; width: auto; max-width: 140px; object-fit: contain; object-position: left center; }

.deal-count { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; color: var(--text); }
.deal-count .deal-cat { font-weight: 400; color: var(--text-muted); }

.deal-chevron {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: var(--text-muted);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.deal-store[open] .deal-chevron { transform: rotate(180deg); }

.deal-offers { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }

/* One offer: text on the left, code and the small go-to-store button on the right */
.deal-offer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
}

.deal-offer + .deal-offer { border-top: 1px solid var(--border); }

.deal-offer-text { flex: 1; min-width: 0; }

.deal-type {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6d28d9;
    background: #f3effe;
    border-radius: 4px;
    padding: 2px 6px;
    margin-bottom: 5px;
}

.deal-offer-text p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--text); }

.deal-valid { display: block; font-size: 12px; color: var(--text-muted); margin-top: 3px; }

/* The promo code: click copies it and opens the store */
.deal-code {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
    padding: 5px 9px;
    border: 1px dashed var(--campaign);
    border-radius: 8px;
    background: #faf8ff;
    color: var(--text);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.03em;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.deal-code:hover { background: #f3effe; }

.deal-code svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: #6d28d9;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.deal-code .icon-done { display: none; stroke: #15803d; }
.deal-code.copied { border-color: #86efac; background: #f0fdf4; }
.deal-code.copied .icon-copy { display: none; }
.deal-code.copied .icon-done { display: block; }

.deal-offer .cta-btn,
.deal-store-plain .cta-btn { flex-shrink: 0; }

.deal-disclaimer { margin-top: 18px; }

@media (max-width: 700px) {
    .deal-store > summary,
    .deal-store-plain { gap: 10px; padding: 10px 10px; }
    .deal-store-id { min-width: 0; gap: 6px; }
    .deal-store-id .store-logo { height: 18px !important; max-width: 110px; }
    .deal-count { font-size: 13px; text-align: right; }
    .deal-count .deal-cat { display: none; }   /* mobile: only "N nedsatta priser" */

    /* Text + small round arrow on one line. The code goes below the text. */
    .deal-offer {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        gap: 8px 12px;
        padding: 12px 10px;
    }
    .deal-offer-text { grid-column: 1; grid-row: 1; }
    .deal-offer .deal-code { grid-column: 1; grid-row: 2; justify-self: start; padding: 8px 10px; }
    .deal-offer .cta-btn { grid-column: 2; grid-row: 1 / -1; }
    .deal-offer .cta-btn,
    .deal-store-plain .cta-btn { width: 32px; height: 32px; }
    .deal-offer .cta-btn svg,
    .deal-store-plain .cta-btn svg { width: 14px; height: 14px; }
}

.campaign-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 12px;
    background: var(--campaign);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

.campaign-strip svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 2; flex-shrink: 0; }

.campaign-strip.campaign-link { cursor: pointer; }
.campaign-strip.campaign-link:hover { filter: brightness(1.08); }

.campaign-strip-top {
    margin: -6px -8px 6px -8px;
    border-radius: 12px 12px 0 0;
}

.variant-hint {
    font-size: 12px;
    color: var(--link);
    text-align: center;
}

.amazon-logo-img {
    height: 20px;
    width: auto;
    flex-shrink: 0;
    display: block;
}

.variant-hint .affiliate-link { color: var(--link); text-decoration: none; font-weight: 500; cursor: pointer; }
.variant-hint .affiliate-link:hover { text-decoration: underline; }

/* ─── Stock status badges ─── */
.stock-status {
    display: inline-flex;
    align-items: center;
    align-self: flex-end;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 4px;
    white-space: nowrap;
}

.stock-status svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

.stock-status.selling-fast {
    background: #fef3c7;
    color: #92400e;
}

.stock-status.selling-fast svg {
    fill: none;
    stroke: #d97706;
    stroke-width: 2;
}

/* ─── Shared tab section styles ─── */
.tab-section {
    margin-bottom: 24px;
}

.tab-section:last-child { margin-bottom: 0; }

.tab-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 14px;
}

.tab-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    fill: none;
    stroke: var(--text-muted);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tab-section-title.review-positive .tab-icon { stroke: #22c55e; fill: #f0fdf4; }
.tab-section-title.review-caution .tab-icon { stroke: #f59e0b; fill: #fffbeb; }

.tab-text {
    font-size: 14px;
    line-height: 1.7;
    color: #4b5563;
    margin-bottom: 10px;
}

.tab-text:last-child { margin-bottom: 0; }

/* ─── FAQ ─── */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-item:first-child { border-top: 1px solid var(--border); }

.faq-item summary {
    padding: 14px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: '+';
    font-size: 18px;
    font-weight: 400;
    color: var(--text-muted);
    transition: transform 0.2s;
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-item p {
    font-size: 13px;
    line-height: 1.7;
    color: #4b5563;
    padding: 0 0 14px;
}

/* ─── Reviews ─── */
.reviews-summary {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding: 20px;
    background: var(--tag-bg);
    border-radius: 12px;
    margin-bottom: 24px;
}

.reviews-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 80px;
}

.big-score {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
}

.score-stars {
    display: flex;
    gap: 2px;
}

.score-stars svg {
    width: 14px;
    height: 14px;
    fill: var(--star);
}

.score-stars .star-dimmed { fill: #d1d5db; }

.score-count {
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 2px;
}

.reviews-bars {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 4px;
    min-width: 0;
}

/* ─── Review insights layout ─── */
.review-insights-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 20px;
}

.review-insights-wrapper + .review-insights-wrapper {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.review-insights-main {
    flex: 1;
    min-width: 0;
}

.review-insights-sources {
    margin-top: 8px;
}

.sources-inline {
    font-size: 12px;
    color: #9ca3af;
    line-height: 1.5;
}

.bar-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bar-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    width: 14px;
    text-align: right;
}

.bar-track {
    flex: 1;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: var(--star);
    border-radius: 4px;
}

.bar-pct {
    font-size: 12px;
    color: var(--text-muted);
    width: 30px;
}

.review-bullets {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.review-bullet {
    font-size: 13px;
    line-height: 1.6;
    color: #4b5563;
    padding: 10px 14px;
    border-radius: 8px;
    position: relative;
    padding-left: 34px;
}

.review-bullet::before {
    position: absolute;
    left: 12px;
    top: 11px;
    font-size: 14px;
}

.review-bullet.positive {
    background: #f0fdf4;
    border-left: 3px solid #22c55e;
}

.review-bullet.positive::before { content: '✓'; color: #22c55e; font-weight: 700; }

.review-bullet.caution {
    background: #fffbeb;
    border-left: 3px solid #f59e0b;
}

.review-bullet.caution::before { content: '!'; color: #f59e0b; font-weight: 700; }

/* ─── Sustainability ─── */
.sustainability-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.sust-card {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px;
}

.sust-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.sust-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    fill: none;
    stroke: #6366f1;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sust-icon-filled {
    fill: #6366f1;
    stroke: none;
}

.sust-card-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    line-height: inherit;   /* #790: an H4 since v13; looks like the SPAN it replaces */
}

.sust-card-text {
    font-size: 12px;
    line-height: 1.6;
    color: #4b5563;
}

.sust-disclaimer {
    font-size: 12px;
    line-height: 1.6;
    color: var(--tab-inactive);
    font-style: italic;
    padding-top: 4px;
    border-top: 1px solid var(--border);
}

/* ─── Brand ─── */
.brand-facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 16px;
    background: var(--tag-bg);
    border-radius: 10px;
}

.brand-fact {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-fact-label {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.brand-fact-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

/* ─── Similar / Alternative products ─── */
.similar-section { margin-top: 32px; }
.similar-header { margin-bottom: 20px; padding-left: 16px; }
.similar-title { font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.similar-subtitle { font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.similar-list { display: flex; flex-direction: column; gap: 14px; }

.sim-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex; flex-direction: row;
    transition: border-color 0.15s, box-shadow 0.2s;
}
.sim-card:hover { border-color: #c4c8cf; box-shadow: 0 4px 16px rgba(0,0,0,0.05); }

.sim-img {
    flex: 0 0 180px;
    height: 180px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid var(--border);
}
.sim-img img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }

.sim-body {
    flex: 1; min-width: 0;
    display: flex; flex-direction: column;
}

.sim-content {
    display: flex; flex-direction: row; gap: 16px;
    padding: 16px 20px;
    flex: 1;
}

.sim-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }

.sim-name-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sim-name { font-size: 18px; font-weight: 700; color: var(--text); line-height: 1.3; }
.sim-badge {
    display: inline-flex; align-items: center;
    padding: 2px 8px; border-radius: 5px;
    font-size: 10px; font-weight: 700; white-space: nowrap;
}
.sim-badge.popular { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }
.sim-badge.top { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }
.sim-badge.sale { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }

.sim-rating { display: flex; align-items: center; gap: 4px; }
.sim-rating svg { width: 13px; height: 13px; fill: var(--star); }
.sim-rating-num { font-size: 14px; font-weight: 700; color: var(--text); }
.sim-rating-count { font-size: 13px; color: var(--text-muted); }

.sim-bullets { display: flex; flex-direction: column; gap: 3px; margin-top: 3px; }
.sim-bullet {
    font-size: 14px; line-height: 1.5; color: var(--text);
    display: flex; align-items: baseline; gap: 6px;
}
.sim-bullet::before {
    content: ''; width: 4px; height: 4px; border-radius: 50%;
    background: #d1d5db; flex-shrink: 0; position: relative; top: -1px;
}
.sim-bullet.hi::before { background: #22c55e; }

.sim-ai-box {
    flex: 0 0 220px;
    background: #f8fafb;
    border: 1px solid #e8ecf0;
    border-radius: 10px;
    padding: 14px 15px;
    display: flex; flex-direction: column; gap: 0;
    align-self: stretch;
    justify-content: center;
}
.sim-ai-text {
    font-size: 12.5px; line-height: 1.6; color: #4b5563;
    font-style: italic;
}

.sim-store-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 20px;
    background: #f4f5f7;
    border-top: 1px solid var(--border);
}

.sim-store-identity { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.sim-store-logo {
    height: 22px;
    display: flex; align-items: center;
    white-space: nowrap; flex-shrink: 0;
}
.sim-store-logo:not(:has(img)) {
    padding: 0 10px;
    background: #1a1a1a; color: #fff; border-radius: 3px;
    font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
}
.sim-store-flag { font-size: 17px; line-height: 1; flex-shrink: 0; }
.sim-store-tagline {
    font-size: 14px; font-weight: 500; color: var(--text-muted);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.sim-price-cta { display: flex; align-items: center; gap: 14px; flex-shrink: 0; margin-left: auto; }
.sim-price-block { display: flex; align-items: baseline; gap: 6px; line-height: 1.2; }
.sim-price-old { font-size: 16px; color: #9ca3af; text-decoration: line-through; }
.sim-price { font-size: 20px; font-weight: 600; color: var(--text); white-space: nowrap; }
.sim-card.has-sale .sim-price { color: #dc2626; }
.sim-price-block .discount-badge { font-size: 14px; padding: 3px 10px; position: relative; top: -1px; }

.sim-cta {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 18px; background: var(--green); color: var(--green-text);
    font-size: 14px; font-weight: 600; border-radius: 8px;
    white-space: nowrap; transition: background 0.15s;
}
.sim-card:hover .sim-cta { background: var(--green-hover); }
.sim-cta svg { width: 14px; height: 14px; fill: none; stroke: var(--green-text); stroke-width: 2.5; }

/* ─── Amazon Search Results ─── */
.amazon-section {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 2px solid var(--border);
}

/* #790: since v13 Amazon sits outside .product-section (after MAIN), so it gets the
   card it used to inherit from .product-section / .tab-content. #791 refines it. */
.page-wrap > .amazon-section {
    margin-top: 40px;
    padding: 24px 28px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
}

.amazon-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.amazon-logo {
    height: 28px;
    width: auto;
    flex-shrink: 0;
    object-fit: contain;
    margin-top: 2px;
}

.amazon-search-label {
    font-size: 15px;
    color: var(--text-muted);
    font-weight: 400;
    line-height: inherit;   /* #791: an H2 since v13 */
}

.amazon-search-query {
    font-weight: 700;
    color: var(--text);
    font-size: 16px;
}

.amazon-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.amazon-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    /* #1203: image 150 + body (title 2 lines, price) without the rating and delivery rows (was 310px). */
    height: 250px;
    transition: border-color 0.15s, box-shadow 0.2s;
    cursor: pointer;
}

.amazon-card:hover {
    border-color: #FF9900;
    box-shadow: 0 3px 14px rgba(255, 153, 0, 0.1);
}

.amazon-card-img {
    height: 150px;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border);
    padding: 12px;
}

.amazon-card-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.amazon-card-body {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
    min-height: 0;
}

.amazon-card-title {
    font-size: 13px;
    font-weight: 500;
    color: #0F1111;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.amazon-card:hover .amazon-card-title {
    color: #c45500;
}

.amazon-card-price {
    font-size: 18px;
    font-weight: 700;
    color: #0F1111;
    line-height: 1.2;
    margin-top: 2px;
}

.amazon-search-link {
    font-size: 12px;
    color: var(--link);
    flex-basis: 100%;
    margin-top: 0;
    white-space: nowrap;
}
.amazon-search-link a {
    color: var(--link);
    text-decoration: none;
    font-weight: 500;
}
.amazon-search-link a:hover { text-decoration: underline; }

.amazon-load-more {
    display: block;
    width: 100%;
    margin-top: 14px;
    padding: 10px;
    background: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
}
.amazon-load-more:hover {
    border-color: #FF9900;
    color: var(--text);
}

/* Hide cards beyond initial batch; JS reveals them */
.amazon-card.amazon-hidden {
    display: none;
}
.amazon-card.amazon-reveal {
    display: flex;
    animation: amazonFadeIn 0.3s ease forwards;
}
@keyframes amazonFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ─── AI disclaimer ─── */
.ai-disclaimer {
    font-size: 12px;
    line-height: 1.6;
    color: var(--tab-inactive);
    font-style: italic;
    padding-top: 4px;
    border-top: 1px solid var(--border);
    margin-top: 20px;
}

/* ─── Display banners (Adtraction iframes) ─── */
.ad-slot {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 28px auto;
    position: relative;
}
.ad-slot::before {
    content: "< annons >";
    position: absolute;
    /* Sit the label ABOVE the banner (in the slot's top margin) rather than
       overlaying the creative's top-left corner. Jason, 2026-06-09. */
    bottom: 100%;
    left: 0;
    margin-bottom: 2px;
    background: #fff;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: 600;
    color: #4b5563;
    font-family: ui-monospace, 'SF Mono', Menlo, monospace;
    letter-spacing: 0.02em;
    z-index: 2;
}
.ad-slot.ad-desktop-only,
.ad-slot.ad-mobile-only {
    background: #d8dbe0;
    padding: 18px;
}
/* Once a real creative is injected (main.js sets data-filled + the slot's
   format size), drop the placeholder chrome so the banner shows at its true
   admin-chosen dimensions instead of the grey "annons" box. */
.ad-slot[data-filled="true"].ad-desktop-only,
.ad-slot[data-filled="true"].ad-mobile-only {
    background: transparent;
    padding: 0;
}
.ad-slot iframe {
    display: block;
    border: 0;
    max-width: 100%;
}
/* #791: an image creative is a <button class="banner-action"> (v13): no button chrome,
   the creative centred in the slot, which keeps its reserved min-height (no shift). */
.ad-slot .banner-action {
    display: block;
    border: 0;
    padding: 0;
    margin: 0;
    background: none;
    font: inherit;
    cursor: pointer;
    max-width: 100%;
}
.ad-slot .banner-action img { display: block; max-width: 100%; height: auto; }
.ad-mobile-only { display: none; }
@media (max-width: 700px) {
    .ad-desktop-only { display: none; }
    .ad-mobile-only { display: flex; }
}

.ad-skyscraper {
    position: absolute;
    top: 140px;
    /* Left-align the slot just outside the centered .page-wrap (max 900px →
       right edge at 50% + 450px). The ad's LEFT edge is pinned here and wider
       formats grow rightward, away from page content. Jason, 2026-06-09. */
    left: calc(50% + 460px);
    justify-content: flex-start;
    width: auto;
    min-width: 160px;
    height: 600px;
    margin: 0;
    z-index: 1;
}
@media (max-width: 1300px) {
    .ad-skyscraper { display: none; }
}

/* ─── Store recommendations ─── */
.store-recs { margin-top: 40px; }
.store-recs-intro {
    font-size: 22px; font-weight: 700; color: var(--text);
    margin-bottom: 6px; letter-spacing: -0.01em;
}
.store-rec-block {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 16px;
    background: var(--bg);
}
.store-rec-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}
.store-rec-head-left {
    display: flex; align-items: center; gap: 10px; min-width: 0;
}
.store-rec-head .store-logo { height: 24px; }
.store-rec-head .amazon-logo-img { height: 24px; }
.store-rec-head .store-flag { font-size: 16px; }
.store-rec-cta {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px;
    background: var(--green); border-radius: 50%;
    flex-shrink: 0;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s;
}
.store-rec-cta:hover { transform: translateX(2px); box-shadow: 0 3px 10px rgba(0,0,0,0.08); }
.store-rec-cta svg { width: 18px; height: 18px; stroke: #0a0a0a; fill: none; stroke-width: 2.5; }

.store-rec-stats {
    display: flex; flex-wrap: wrap;
    gap: 18px 22px;
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 16px;
}
.store-rec-stat {
    display: flex; align-items: center; gap: 7px;
    font-size: 13px; color: var(--text);
}
.store-rec-stat svg {
    width: 16px; height: 16px;
    stroke: var(--text-muted); fill: none; stroke-width: 2;
    flex-shrink: 0;
}
.store-rec-stat b { font-weight: 700; color: var(--text); }
.store-rec-stat .muted { color: var(--text-muted); font-weight: 400; }

.store-rec-products {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}
.srp-card {
    display: flex; flex-direction: column;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    background: var(--bg);
    transition: border-color 0.15s, box-shadow 0.2s;
}
.srp-card:hover { border-color: #c4c8cf; box-shadow: 0 3px 10px rgba(0,0,0,0.05); }
.srp-img {
    width: 100%; aspect-ratio: 1 / 1;
    background: #fff;
    display: flex; align-items: center; justify-content: center;
    border-bottom: 1px solid var(--border);
}
.srp-img img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.srp-body {
    padding: 10px 12px 12px;
    display: flex; flex-direction: column; gap: 6px;
    flex: 1;
}
.srp-name {
    font-size: 13px; font-weight: 600; color: var(--text);
    line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}
.srp-rating { display: flex; align-items: center; gap: 4px; }
.srp-rating svg { width: 11px; height: 11px; fill: var(--star); }
.srp-rating-num { font-size: 12px; font-weight: 700; color: var(--text); }
.srp-rating-count { font-size: 11px; color: var(--text-muted); }
.srp-price-row {
    display: flex; align-items: baseline; gap: 6px;
    margin-top: auto; padding-top: 4px;
}
.srp-price { font-size: 15px; font-weight: 700; color: var(--text); }
.srp-price-old { font-size: 12px; color: var(--text-muted); text-decoration: line-through; }
.srp-price-sale { color: #dc2626; }

/* ── Store recs: tablet ── */
@media (max-width: 850px) and (min-width: 601px) {
    .store-rec-products { grid-template-columns: repeat(3, 1fr); gap: 10px; }
}

/* ── Store recs: mobile ── */
@media (max-width: 600px) {
    .store-rec-block { padding: 14px; border-radius: 12px; }
    .store-rec-stats {
        gap: 10px 14px;
        padding: 9px 11px;
    }
    .store-rec-stat { font-size: 12px; gap: 6px; }
    .store-rec-stat svg { width: 14px; height: 14px; }
    .store-rec-products { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .srp-body { padding: 8px 9px 10px; gap: 4px; }
    .srp-name { font-size: 12px; }
    .srp-price { font-size: 13px; }
    .srp-rating-num { font-size: 11px; }
    .srp-rating-count { font-size: 10px; }
    .store-recs-intro { font-size: 18px; }
}

/* ─── Responsive: hide store tagline early ─── */
@media (max-width: 800px) {
    .store-tagline { display: none; }
}

/* ─── Responsive: Tablet ─── */
@media (max-width: 700px) {
    .page-wrap { padding: 16px 4px 40px; }
    .amazon-card { height: 260px; }

    .product-main {
        flex-direction: column;
        gap: 14px;
        padding: 12px 8px 20px;
    }
    .image-col {
        flex: none;
        width: 100%;
    }
    .carousel { aspect-ratio: auto; height: 240px; max-height: 240px; }
    .info-col { gap: 8px; }
    .product-title { font-size: 22px; }
    .product-rating { flex-wrap: wrap; }
    .rating-count { font-size: 12px; }

    /* Tabs: horizontal scroll */
    .tabs-bar {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 0;
        padding: 0 16px;
    }
    .tabs-bar::-webkit-scrollbar { display: none; }
    .tab {
        white-space: nowrap;
        padding: 12px 14px;
        font-size: 14px;
        flex-shrink: 0;
    }
    .tab + .tab::before { display: none; }

    /* Tab content */
    .tab-content { padding: 0; }
    .tab-panel { padding: 16px 0; }

    /* Product description */
    .product-description ul { padding-left: 16px; }
    .product-description li { font-size: 14px; }

    /* Store rows */
    .store-row { padding: 6px 8px; gap: 6px; }
    .campaign-strip-top { margin: -6px -8px 4px -8px; }
    .store-top {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 2px 12px;
        align-items: center;
    }
    .store-identity {
        grid-column: 1;
        grid-row: 1;
        gap: 6px;
    }
    .store-tagline { display: none; }
    .store-product-name {
        grid-column: 1 / -1;
        grid-row: 2;
        font-size: 14px;
        margin-top: 2px;
    }
    .price-cta {
        grid-column: 1 / -1;
        grid-row: 3;
        flex-shrink: 0;
        gap: 10px;
    }
    .price { font-size: 18px; }
    .cta-btn {
        padding: 0;
        width: 36px;
        height: 36px;
        justify-content: center;
        border-radius: 50%;
        overflow: hidden;
        text-indent: -9999px;
        gap: 0;
        flex-shrink: 0;
    }
    .cta-btn svg { width: 16px; height: 16px; text-indent: 0; flex-shrink: 0; }

    .cta-btn-disabled {
        padding: 7px 14px !important;
        width: auto !important;
        height: auto !important;
        border-radius: 8px !important;
        text-indent: 0 !important;
        font-size: 12px !important;
        overflow: visible !important;
    }

    .store-info-blocks { flex-wrap: wrap; }
    .info-block {
        flex: 1 1 45%;
        min-width: 100px;
        padding: 6px 6px;
    }
    .info-block + .info-block::before { display: none; }

    .reviews-summary { flex-direction: column; gap: 16px; }
    .reviews-bars { width: 100%; }
    .reviews-score { align-items: flex-start; }
    .sustainability-grid { grid-template-columns: 1fr; }
    .brand-facts { grid-template-columns: 1fr 1fr; }

    .sim-img { flex: 0 0 140px; height: 140px; }
    .sim-content { gap: 12px; padding: 14px 16px; }
    .sim-ai-box { flex: 0 0 180px; padding: 12px; }
    .sim-ai-text { font-size: 12px; }
    .sim-store-bar { padding: 10px 16px; }
    .sim-store-tagline { display: none; }
    .sim-price { font-size: 19px; }
    .sim-cta { padding: 7px 14px; font-size: 12px; }
}

/* ─── Responsive: maximize store-box width ─── */
@media (max-width: 900px) {
    .page-wrap { padding-left: 10px !important; padding-right: 10px !important; }
    .tab-content { padding: 0 !important; }
    .tab-panel { padding-left: 6px !important; padding-right: 6px !important; }
    #panel-prices { padding-left: 6px !important; padding-right: 6px !important; }
    .page-wrap > .amazon-section { padding-left: 12px; padding-right: 12px; }
}

/* ─── Responsive: Mobile ─── */
@media (max-width: 600px) {
    .sim-card { flex-direction: column; }
    .sim-img {
        flex: none;
        width: 100%;
        height: 200px;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
    .sim-content {
        flex-direction: column;
        gap: 12px;
        padding: 14px 16px;
    }
    .sim-ai-box { display: none; }
    .sim-name { font-size: 17px; }
    .sim-bullet { font-size: 14px; }
    .sim-name-row { flex-direction: column; align-items: flex-start; gap: 4px; }

    .sim-store-bar {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 12px 16px;
        align-items: stretch;
        background: #fff;
    }

    .sim-store-identity {
        display: flex;
        align-items: center;
        gap: 6px;
        width: 100%;
    }
    .sim-store-logo:not(:has(img)) {
        padding: 0;
    }
    .sim-store-tagline {
        display: inline;
        font-size: 13px;
    }

    .sim-price-cta {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        width: 100%;
    }
    .sim-price { font-size: 19px; }
    .sim-cta { padding: 9px 14px; font-size: 13px; }

    .sim-badge { font-size: 10px; padding: 2px 7px; }

    .amazon-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .amazon-logo {
        height: 24px;
    }
}

/* ─── Responsive: Small ─── */
@media (max-width: 480px) {
    .store-info-blocks { flex-wrap: wrap; }
    .info-block { flex: 1 1 calc(50% - 1px); min-width: 0; padding: 6px 6px; }
    .info-block:nth-child(1) { order: 1; }
    .info-block:nth-child(3) { order: 2; }
    .info-block:nth-child(2) { order: 3; }
    .info-block:nth-child(4) { order: 4; }
}

/* ─── Responsive: Extra small CTA ─── */
@media (max-width: 400px) {
    .cta-btn { width: 32px; height: 32px; }
    .cta-btn svg { width: 14px; height: 14px; }
}

/* ─── Responsive: Extra Small ─── */
@media (max-width: 400px) {
    .sim-img { height: 170px; }
    .sim-price { font-size: 17px; }
    .sim-cta { padding: 8px 10px; font-size: 12px; }
    .sim-price-cta { gap: 8px; }
    .sim-store-logo { font-size: 10px; }
}

/* ─── Amazon: 2-col on medium screens ─── */
@media (max-width: 850px) {
    .amazon-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ─── Amazon: 1-col on small screens ─── */
@media (max-width: 575px) {
    .amazon-grid {
        grid-template-columns: 1fr;
    }
}

/* #791: until the deferred cards arrive (v13), the grid reserves the first visible
   batch: 6 cards in 3 columns, 4 in 2 columns, 4 in 1 column (card 250px, 260px at
   <=700px, gap 12px; #1203), so loading them does not push the rest of the page. */
.amazon-grid[data-pending] { min-height: 512px; }
@media (max-width: 700px) { .amazon-grid[data-pending] { min-height: 532px; } }
@media (max-width: 575px) { .amazon-grid[data-pending] { min-height: 1076px; } }

/* ─── Carousel: clickable cursor ─── */
.carousel img { cursor: zoom-in; }

/* ─── Lightbox ─── */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.82);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: lbFadeIn 0.15s ease;
}

@keyframes lbFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.5);
    cursor: default;
}

.lightbox-close {
    position: fixed;
    top: 16px;
    right: 20px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    font-size: 20px;
    line-height: 1;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.28); }

/* ─── Hide strikethrough old price on related product cards (desktop only) ─── */
@media (min-width: 851px) {
    .srp-card .srp-price-old { display: none; }
}

/* ─── Fix too-tall images in store recommendations ─── */
.srp-img { overflow: hidden; }
