/* ==========================================================================
   PRODUCT PAGE - BOL.COM STYLE LAYOUT
   ========================================================================== */

/* Title Section */
.product-title-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: clamp(0.75rem, 2vw, 1.5rem);
    margin-bottom: clamp(1rem, 2vw, 1.25rem);
    flex-wrap: wrap;
}

.product-title-section__main {
    flex: 1;
    min-width: 0;
}

.product-title-section__actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .product-title-section {
        flex-direction: column;
        gap: 1rem;
    }
    .product-title-section__actions {
        width: 100%;
        justify-content: flex-start;
    }
}

/* ==========================================================================
   MAIN TWO-COLUMN LAYOUT
   ========================================================================== */
.product-main {
    display: grid;
    grid-template-columns: 1fr minmax(650px, 700px);
    gap: clamp(2rem, 4vw, 3rem);
    align-items: start;
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

/* Left Column */
.product-left {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Right Column - STICKY */
.product-right {
    position: sticky;
    top: 1rem;
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 2vw, 1.25rem);
}

@media (max-width: 1200px) {
    .product-main {
        grid-template-columns: 1fr minmax(500px, 600px);
        gap: clamp(1.5rem, 3vw, 2rem);
    }
}

@media (max-width: 900px) {
    .product-main {
        grid-template-columns: 1fr 400px;
        gap: clamp(1rem, 2vw, 1.5rem);
    }
}

/* Price history mobile version - hidden on desktop */
.price-history-mobile {
    display: none;
}

@media (max-width: 768px) {
    /* Mobile: use flexbox with order to reposition elements */
    .product-main {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    /* Children participate in parent flex - allows reordering across columns */
    .product-left,
    .product-right {
        display: contents;
    }

    /* Mobile element order:
       1. Gallery
       2. Compare checkbox
       3. Quick specs
       4. Variant selector (moved up from product-right)
       5. Merchant feed (prijzen vergelijken)
       6. Price history mobile
       7. Description
       8. Pros/cons
       9. Related mini
    */
    .product-gallery { order: 1; }
    .product-compare-checkbox { order: 2; }
    .product-quick-specs { order: 3; }
    .variant-selector { order: 4; }
    .product-merchant-feed { order: 5; }
    .price-history-mobile { order: 6; }
    .product-description { order: 7; }
    .product-pros-cons { order: 8; }
    .product-related-mini { order: 9; }

    /* Show mobile price history, hide desktop version */
    .price-history-mobile {
        display: block;
        margin-top: 1.5rem;
        padding: 1rem 0;
        border-top: 1px solid var(--border-color);
    }

    .price-history-mobile .section-header {
        margin-bottom: 0.75rem;
    }

    .price-history-mobile .section-header__title {
        font-size: 1rem;
    }

    .price-history-mobile .price-history__toggle {
        gap: 0.25rem;
    }

    .price-history-mobile .price-history__btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }

    .price-history__chart-wrapper--mobile {
        height: 180px;
    }

    .price-history__empty--compact {
        padding: 1rem;
        text-align: center;
    }

    .price-history__empty--compact p {
        font-size: 0.85rem;
        margin: 0;
    }

    /* Hide desktop price history section on mobile */
    .price-history-section {
        display: none;
    }

}

/* ==========================================================================
   PRODUCT GALLERY
   ========================================================================== */
.product-gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

/* Mobile gallery rules are consolidated in the main mobile section below */

.product-gallery__main {
    width: 290px;
    height: 290px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-gallery__image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.product-gallery__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0, 0, 0, 0.2);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.product-gallery__nav:hover {
    background: rgba(0, 0, 0, 0.4);
}

.product-gallery__nav--prev {
    left: 10px;
}

.product-gallery__nav--next {
    right: 10px;
}

.product-gallery__thumbnails {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.product-gallery__thumb {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--bg-primary);
    overflow: hidden;
}

.product-gallery__thumb:hover,
.product-gallery__thumb.is-active {
    border-color: var(--accent);
}

.product-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

/* ==========================================================================
   COMPARE CHECKBOX
   ========================================================================== */
.product-compare-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 0;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.product-compare-checkbox:hover {
    color: var(--text-primary);
}

.product-compare-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    cursor: pointer;
}

/* ==========================================================================
   QUICK SPECS (in left column)
   ========================================================================== */
.product-quick-specs {
    background: var(--bg-secondary);
    border-radius: 10px;
    padding: clamp(1rem, 2vw, 1.25rem);
    border: 1px solid var(--border-color);
}

.product-quick-specs__title {
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.75rem;
}

.product-quick-specs__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-quick-specs__item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.85rem;
}

.product-quick-specs__item:last-child {
    border-bottom: none;
}

.product-quick-specs__label {
    color: var(--text-secondary);
}

.product-quick-specs__value {
    color: var(--text-primary);
    font-weight: 600;
}

.product-quick-specs__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent);
    font-weight: 500;
    margin-top: 0.75rem;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.product-quick-specs__link:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.product-quick-specs__link svg {
    flex-shrink: 0;
}

/* ==========================================================================
   MERCHANT FEED (right column) - "Bekijk ook eens" style
   ========================================================================== */
.product-merchant-feed {
    background: transparent;
    padding: clamp(1rem, 1.5vw, 1.25rem);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.product-merchant-feed__header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: clamp(0.875rem, 1.5vw, 1rem);
    padding-bottom: clamp(0.75rem, 1vw, 0.875rem);
    border-bottom: 2px solid var(--accent);
}

.product-merchant-feed__title {
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.product-merchant-feed__meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.product-merchant-feed__count {
    color: var(--text-secondary);
}

.product-merchant-feed__updated {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.product-merchant-feed__updated svg {
    opacity: 0.6;
    width: 12px;
    height: 12px;
}

/* Hero merchants table - "Bekijk ook eens" style */
.merchants-table--hero {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.merchants-table--hero .merchant-row {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: var(--bg-primary);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.merchants-table--hero .merchant-row:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

html.dark .merchants-table--hero .merchant-row:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.merchants-table--hero .merchant-row--lowest {
    border-left: 3px solid var(--success);
    background: var(--bg-primary);
}

.merchants-table--hero .merchant-row__logo-wrap {
    width: 70px;
    height: 35px;
    flex-shrink: 0;
}

.merchants-table--hero .merchant-row__left {
    display: contents;
}

.merchants-table--hero .merchant-row__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.merchants-table--hero .merchant-row__center {
    padding: 0 1rem;
}

.merchants-table--hero .merchant-row__price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.merchants-table--hero .merchant-row__right {
    flex-shrink: 0;
}

.product-merchant-feed__add-btn {
    width: 100%;
    padding: 0.875rem 1.25rem;
    background: var(--accent);
    color: #000;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.product-merchant-feed__add-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.product-merchant-feed__disclaimer {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin: 0.75rem 0 0;
    text-align: left;
    line-height: 1.4;
}

.product-merchant-feed__disclaimer a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.product-merchant-feed__disclaimer a:hover {
    color: var(--accent-hover);
}

/* ==========================================================================
   RELATED MINI (in right column - "Bekijk ook eens")
   ========================================================================== */
.product-related-mini {
    background: transparent;
    border-radius: 10px;
    padding: clamp(1rem, 1.5vw, 1.25rem);
    border: 1px solid var(--border);
}

html.dark .product-related-mini {
    /* No shadow for transparent containers */
}

.product-related-mini__title {
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 clamp(0.875rem, 1.5vw, 1rem);
    padding-bottom: clamp(0.75rem, 1vw, 0.875rem);
    border-bottom: 2px solid var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.related-mini-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.related-mini-card {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: var(--bg-primary);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    align-items: center;
}

.related-mini-card:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

html.dark .related-mini-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.related-mini-card__image {
    width: 60px;
    height: 60px;
    background: var(--bg-tertiary);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.related-mini-card__image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.related-mini-card__content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.related-mini-card__name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.related-mini-card__price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent);
}

/* ==========================================================================
   DESCRIPTION SECTION (in left column)
   SEO note: full text is always in the DOM. Collapse is CSS-only (max-height
   + overflow:hidden). Googlebot sees all content regardless of JS.
   ========================================================================== */

/*
 * CSS custom property controlling the collapsed height.
 * Defined on the section so Alpine.js can read it via getComputedStyle.
 * Override per breakpoint or theme if needed.
 */
.product-description {
    --product-desc-collapsed: 360px;
    /* Fade overlay matches the card background; overridden in responsive rules
       where the card is stripped and the section sits on --bg-primary. */
    --product-desc-fade-color: var(--bg-secondary);

    background: var(--bg-secondary);
    border-radius: 10px;
    padding: clamp(1rem, 2vw, 1.25rem);
    border: 1px solid var(--border-color);
}

.product-description__title {
    margin: 0 0 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* --- Collapsible content container ---
   max-height drives the collapse. Using a px value (not "none") so the
   CSS transition animates smoothly both ways.
   "none" → transitioning to/from none doesn't animate, so we use a
   large safe max for expanded state. ----------------------------------- */
.product-description__content {
    position: relative;
    max-height: var(--product-desc-collapsed);
    overflow: hidden;
    /* Smooth expand/collapse: ease-in-out feels natural for this motion */
    transition: max-height 0.35s ease-in-out;
}

/* Expanded state — use a safe large value so transition works */
.product-description__content--expanded {
    max-height: 9999px;
}

/* --- Body typography --- */
.product-description__body {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.product-description__body p {
    margin: 0 0 1rem;
}

.product-description__body p:last-child {
    margin-bottom: 0;
}

/*
 * Content heading hierarchy inside the product description body.
 *
 * Root cause of the H2 < H3 inversion that existed before this fix:
 *   - .product-description__title (h2.section-level) was explicitly capped at 1.1rem
 *   - The bare <h2>/<h3> inside __body had NO font-size → browser UA defaults kicked in
 *   - UA default h3 = ~1.17em inside the 0.95rem body = ~1.11rem, visually ≥ the section h2
 *   - UA default h2 = ~1.5em inside 0.95rem = ~1.425rem, oversized against the tight layout
 *
 * Fix: explicit descending clamp() sizes scoped to __body, matching the site's
 * typographic scale (reference: .section-header__title = clamp(1rem, 2vw+0.1rem, 1.25rem)).
 *
 * Visual hierarchy after fix:
 *   Section title h2  (.product-description__title)  1.1rem  weight 700  (unchanged)
 *   Body h2           (__body h2)                    clamp → 1rem–1.2rem weight 600
 *   Body h3           (__body h3 — "highlight")      clamp → 0.9rem–1rem  weight 600
 *   Body h4           (__body h4)                    clamp → 0.85rem–0.93rem weight 600
 */
.product-description__body h2 {
    font-size: clamp(1rem, 1.6vw + 0.2rem, 1.2rem);
    font-weight: 600;
    color: var(--text-primary);
    /* More space above than below: groups the heading with its paragraph */
    margin: 1.5rem 0 0.5rem;
    line-height: 1.3;
}

.product-description__body h3 {
    font-size: clamp(0.9rem, 1.2vw + 0.15rem, 1rem);
    font-weight: 600;
    color: var(--text-primary);
    /* Clearly subordinate to h2; extra top margin groups heading with following text */
    margin: 1.25rem 0 0.375rem;
    line-height: 1.35;
}

.product-description__body h4 {
    font-size: clamp(0.85rem, 1vw + 0.1rem, 0.9375rem);
    font-weight: 600;
    color: var(--text-secondary);
    margin: 1rem 0 0.3rem;
    line-height: 1.4;
}

/* First heading directly after body text should not get a large top gap */
.product-description__body > h2:first-child,
.product-description__body > h3:first-child,
.product-description__body > h4:first-child {
    margin-top: 0;
}

.product-description__body ul,
.product-description__body ol {
    padding-left: 1.25rem;
    margin-bottom: 1rem;
}

.product-description__body li {
    margin-bottom: 0.375rem;
}

/* --- Fade gradient overlay ---
   Sits at the bottom of the content container.
   Uses rgba of --bg-secondary so it works in both light and dark mode.
   The overlay is an element inside .product-description__content so it
   clips with overflow:hidden and never leaks outside. ------------------- */
.product-description__fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    /*
     * Fade from transparent → surface colour.
     * --product-desc-fade-color is set on .product-description and overridden
     * in responsive breakpoints when the card background is stripped.
     * Using color-mix() for the transparency so no rgb triple is needed.
     */
    background: linear-gradient(
        to bottom,
        color-mix(in srgb, var(--product-desc-fade-color) 0%, transparent) 0%,
        color-mix(in srgb, var(--product-desc-fade-color) 90%, transparent) 55%,
        var(--product-desc-fade-color) 100%
    );
    pointer-events: none;
}

/* --- Toggle button row — centred below the content --- */
.product-description__toggle-wrap {
    display: flex;
    justify-content: center;
    margin-top: 0.875rem;
}

.product-description__toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md, 8px);
    background: transparent;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    /* Smooth colour transition on hover */
    transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
    /* No CLS: button is always in DOM when overflows=true */
}

.product-description__toggle-btn:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-light);
}

.product-description__toggle-btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.product-description__toggle-chevron {
    flex-shrink: 0;
    transition: transform 0.3s ease;
    color: currentColor;
}

.product-description__toggle-chevron--up {
    transform: rotate(180deg);
}

/* ==========================================================================
   PROS/CONS SECTION (in left column)
   ========================================================================== */
.product-pros-cons {
    background: var(--bg-secondary);
    border-radius: 10px;
    padding: clamp(1rem, 2vw, 1.25rem);
    border: 1px solid var(--border-color);
}

.product-pros-cons__title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem;
}

.product-pros-cons__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 600px) {
    .product-pros-cons__content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.product-pros-cons__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.product-pros-cons__item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--text-primary);
}

.product-pros-cons__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.product-pros-cons__item--pro .product-pros-cons__icon {
    background: var(--success-bg);
    color: var(--success);
}

.product-pros-cons__item--con .product-pros-cons__icon {
    background: var(--error-bg);
    color: var(--error);
}

/* ==========================================================================
   MERCHANT ROW STYLING
   ========================================================================== */
.merchant-row__logo-wrap {
    width: 100px;
    height: 50px;
    background-color: transparent;
    border-radius: 0;
    padding: 0;
}

@media (max-width: 600px) {
    .merchant-row__logo-wrap {
        width: 70px;
        height: 35px;
    }
}

.merchant-row__name {
    display: none;
}

.merchant-row__logo-wrap--amazon {
    background-color: transparent;
}

.merchant-row__stock--unknown {
    color: var(--text-muted);
    font-style: italic;
}

.merchant-row__shipping {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.merchant-row__amazon-note {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.merchant-row__amazon-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-style: italic;
}

.merchant-row__hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-style: italic;
    margin-left: 4px;
}

.merchant-row__hint[x-cloak] {
    display: none !important;
}

@media (max-width: 768px) {
    .merchant-row__amazon-note {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

@media (max-width: 380px) {
    .merchant-row__hint {
        display: none;
    }
}

/* ==========================================================================
   DESKTOP - Clean look without card boxes
   ========================================================================== */
@media (min-width: 769px) {
    /* Left column sections - no card styling, just borders between */
    .product-quick-specs,
    .product-description,
    .product-pros-cons {
        background: transparent;
        border: none;
        border-radius: 0;
        padding: 1.5rem 0;
        border-top: 1px solid var(--border-color);
    }

    /* Fade overlay must match page background, not card background */
    .product-description {
        --product-desc-fade-color: var(--bg-primary);
    }

    /* Compare checkbox with top border */
    .product-compare-checkbox {
        padding: 1rem 0;
    }

    /* First section after gallery doesn't need top border */
    .product-compare-checkbox + .product-quick-specs {
        border-top: none;
        padding-top: 0;
    }

    /* Section titles */
    .product-quick-specs__title,
    .product-description__title,
    .product-pros-cons__title {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    /* Quick specs items */
    .product-quick-specs__item {
        padding: 0.625rem 0;
        font-size: 0.95rem;
    }

    /* Pros/cons content */
    .product-pros-cons__content {
        gap: 2rem;
    }

    .product-pros-cons__item {
        font-size: 0.95rem;
        padding: 0.5rem 0;
    }
}

/* ==========================================================================
   MOBILE LAYOUT - BOL.COM STYLE (strak, geen onnodige spacing)
   ========================================================================== */
@media (max-width: 768px) {
    /* Container - minder padding */
    .single-product-container {
        padding: 0 12px;
    }

    /* Title - compacter */
    .product-title-section {
        margin-bottom: 0.75rem;
        padding-bottom: 0.75rem;
        border-bottom: 1px solid var(--border-color);
    }

    .product-title-section__category {
        font-size: 0.55rem;
        padding: 2px 6px;
        margin-bottom: 0.25rem;
    }

    .product-title-section__title {
        font-size: 1.1rem;
        margin-bottom: 0.15rem;
    }

    .product-title-section__subtitle {
        font-size: 0.8rem;
    }

    .product-title-section__actions {
        /* Toon actie buttons op mobiel - kleiner formaat */
        display: flex;
        gap: 0.375rem;
    }

    .product-title-section__actions .product-info__icon-btn {
        width: 36px;
        height: 36px;
    }

    .product-title-section__actions .product-info__icon-btn svg {
        width: 16px;
        height: 16px;
    }

    /* ==========================================================================
       GALLERY - MOBILE (matches builder modal implementation)
       ========================================================================== */
    .product-gallery {
        margin: 0 -12px;
        border-radius: 0;
        border: none;
        border-bottom: 1px solid var(--border-color);
        padding: 0;
        background: var(--bg-primary);
        gap: 8px;
        width: calc(100% + 24px);
        max-width: none;
        overflow: hidden;
    }

    .product-gallery__main {
        position: relative;
        width: 100%;
        max-width: 100%;
        height: 300px;
        aspect-ratio: auto;
        margin: 0 auto;
        border-radius: 0;
        border: none;
        box-shadow: none;
        background: #fff;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        /* Touch support for swipe navigation */
        touch-action: pan-y pinch-zoom;
        user-select: none;
        -webkit-user-select: none;
    }

    .product-gallery__image {
        max-width: calc(100% - 100px);
        max-height: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
        display: block;
        margin: 0 auto;
        pointer-events: none;
    }

    /* Navigation arrows - always visible on mobile, symmetric positioning */
    .product-gallery__nav {
        opacity: 1;
        width: 36px;
        height: 36px;
        background: rgba(0, 0, 0, 0.3);
    }

    .product-gallery__nav:hover {
        background: rgba(0, 0, 0, 0.5);
    }

    .product-gallery__nav--prev {
        left: 16px;
    }

    .product-gallery__nav--next {
        right: 16px;
    }

    /* Thumbnails - horizontal scroll strip (like builder modal) */
    .product-gallery__thumbnails {
        display: flex;
        flex-wrap: nowrap;
        gap: 8px;
        padding: 8px 16px;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        /* Hide scrollbar but keep functionality */
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .product-gallery__thumbnails::-webkit-scrollbar {
        display: none;
    }

    .product-gallery__thumb {
        width: 48px;
        height: 48px;
        flex-shrink: 0;
    }

    /* Compare checkbox - verberg op mobiel */
    .product-compare-checkbox {
        display: none;
    }

    /* Quick specs - geen card styling op mobiel */
    .product-quick-specs {
        background: transparent;
        border: none;
        border-radius: 0;
        padding: 12px 0;
        border-bottom: 1px solid var(--border-color);
    }

    .product-quick-specs__title {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }

    .product-quick-specs__item {
        padding: 0.4rem 0;
        font-size: 0.8rem;
    }

    .product-quick-specs__link {
        font-size: 0.85rem;
        margin-top: 0.5rem;
    }

    /* Merchant feed - mobiel */
    .product-merchant-feed {
        background: transparent;
        border: none;
        border-radius: 0;
        padding: 1rem 0;
        border-bottom: 1px solid var(--border-color);
    }

    .product-merchant-feed__header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
        margin-bottom: 0.75rem;
        padding-bottom: 0.5rem;
        border-bottom: 2px solid var(--accent);
    }

    .product-merchant-feed__title {
        font-size: 0.85rem;
    }

    /* Hide count/updated on mobile, keep variant dropdown */
    .product-merchant-feed__meta {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .product-merchant-feed__count,
    .product-merchant-feed__updated {
        display: none;
    }

    /* Variant dropdown - compact next to title */
    .variant-dropdown {
        width: auto;
        margin-top: 0;
    }

    .variant-dropdown__select {
        width: auto;
        padding: 0.5rem 1.75rem 0.5rem 0.75rem;
        font-size: 0.8125rem;
        min-width: 90px;
    }

    .merchants-table--hero {
        gap: 0.75rem;
    }

    .merchants-table--hero .merchant-row {
        display: grid;
        grid-template-columns: 50px 1fr auto;
        grid-template-rows: auto auto;
        gap: 0.5rem 0.75rem;
        padding: 0.5rem 0.75rem;
        background: var(--bg-primary);
        border-radius: 8px;
    }

    .merchants-table--hero .merchant-row:hover {
        transform: translateX(4px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .merchants-table--hero .merchant-row__left {
        display: contents;
    }

    .merchants-table--hero .merchant-row__logo-wrap {
        width: 50px;
        height: 25px;
        grid-row: 1 / 3;
        align-self: center;
    }

    .merchants-table--hero .merchant-row__info {
        grid-column: 2;
        grid-row: 1;
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .merchants-table--hero .merchant-row__center {
        grid-column: 3;
        grid-row: 1;
        text-align: right;
    }

    .merchants-table--hero .merchant-row__right {
        grid-column: 2 / 4;
        grid-row: 2;
    }

    .merchants-table--hero .merchant-row__right .btn-buy {
        width: 100%;
        justify-content: center;
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }

    .merchants-table--hero .merchant-row__price {
        font-size: 1rem;
        font-weight: 700;
    }

    .product-merchant-feed__add-btn {
        margin-top: 0.75rem;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .product-merchant-feed__disclaimer {
        font-size: 0.65rem;
        margin-top: 0.5rem;
    }

    /* Related mini - geen card container, maar accent header */
    .product-related-mini {
        background: transparent;
        border: none;
        border-radius: 0;
        padding: 12px 0;
        border-bottom: 1px solid var(--border-color);
    }

    .product-related-mini__title {
        font-size: 0.85rem;
        padding-bottom: 0.5rem;
        border-bottom: 2px solid var(--accent);
    }

    .related-mini-card {
        background: var(--bg-primary);
    }

    .related-mini-card:hover {
        transform: translateX(4px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    /* Description - geen card */
    .product-description {
        --product-desc-fade-color: var(--bg-primary);
        background: transparent;
        border: none;
        border-radius: 0;
        padding: 12px 0;
        border-bottom: 1px solid var(--border-color);
    }

    .product-description__title {
        font-size: 0.9rem;
    }

    /* Pros/cons - geen card */
    .product-pros-cons {
        background: transparent;
        border: none;
        border-radius: 0;
        padding: 12px 0;
        border-bottom: 1px solid var(--border-color);
    }

    .product-pros-cons__title {
        font-size: 0.9rem;
    }

    .product-pros-cons__content {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .product-pros-cons__item {
        font-size: 0.85rem;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .product-title-section__title {
        font-size: 1rem;
    }

    .merchant-row__logo-wrap {
        width: 60px;
        height: 30px;
    }
}

/* ==========================================================================
   Variant Dropdown (compact, in header)
   ========================================================================== */

.variant-dropdown {
    display: inline-flex;
    align-items: center;
}

.variant-dropdown__select {
    appearance: none;
    -webkit-appearance: none;
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    min-width: 140px;
}

.variant-dropdown__select:hover:not(:disabled) {
    border-color: var(--accent);
}

.variant-dropdown__select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.2);
}

.variant-dropdown__select:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.variant-dropdown__select option {
    padding: 0.5rem;
    background: var(--bg-primary);
    color: var(--text-primary);
}

/* ==========================================================================
   VARIANT SELECTOR - "Bekijk ook eens" style
   ========================================================================== */
.variant-selector {
    margin-top: 1rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: clamp(1rem, 1.5vw, 1.25rem);
}

html.dark .variant-selector {
    /* No shadow for transparent containers */
}

.variant-selector[x-cloak] {
    display: none !important;
}

/* Title with accent border */
.variant-selector__header {
    margin-bottom: clamp(0.875rem, 1.5vw, 1rem);
    padding-bottom: clamp(0.75rem, 1vw, 0.875rem);
    border-bottom: 2px solid var(--accent);
}

.variant-selector__title {
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-primary);
}

/* Current variant card (clickable) */
.variant-selector__current {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.625rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    transition: border-color 0.15s ease;
}

.variant-selector__current:hover {
    border-color: var(--accent);
}

.variant-selector__current-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.variant-selector__current-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 4px;
    background: var(--bg-tertiary);
    flex-shrink: 0;
}

.variant-selector__current-info {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.9rem;
}

.variant-selector__current-label {
    color: var(--text-muted);
}

.variant-selector__current-value {
    color: var(--accent);
    font-weight: 600;
}

.variant-selector__chevron {
    color: var(--text-muted);
    flex-shrink: 0;
    margin-left: auto;
    transition: transform 0.2s ease;
}

/* SSR fallback notice */
.variant-selector__js-notice {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0.5rem 0 0;
    font-style: italic;
}

/* SSR version - static, not clickable */
.variant-selector__current--static {
    cursor: default;
}

.variant-selector__current--static:hover {
    border-color: var(--border-color);
}

/* Expanded list */
.variant-selector__list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* List header with compare link */
.variant-selector__list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.variant-selector__list-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.variant-selector__collapse-btn {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 0.85rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.15s ease;
}

.variant-selector__collapse-btn:hover {
    color: var(--text-primary);
}

.variant-selector__collapse-btn svg {
    flex-shrink: 0;
}

/* Individual variant card - 3-column grid layout */
.variant-card {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    align-items: center;
    gap: 0.875rem;
    padding: 0.625rem 0.875rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    text-align: left;
    width: 100%;
}

.variant-card:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

html.dark .variant-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.variant-card--active {
    border-color: var(--accent);
    border-left-width: 3px;
    background: var(--bg-primary);
}

/* Column 1: Variant image - left aligned */
.variant-card__image {
    width: 48px;
    height: 48px;
    background: var(--bg-tertiary);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.variant-card__image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Column 2: Variant info - centered/middle, takes remaining space */
.variant-card__info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.1875rem;
    min-width: 0;
}

.variant-card__name {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.variant-card__label-value {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
}

.variant-card__label {
    color: var(--text-muted);
}

.variant-card__value {
    color: var(--accent);
    font-weight: 600;
}

/* Column 3: Right - checkbox + badge/price, right aligned */
.variant-card__right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.625rem;
    flex-shrink: 0;
    min-width: 80px;
}

.variant-card__checkbox {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    cursor: pointer;
    pointer-events: none;
}

.variant-card__badge {
    font-size: 0.7rem;
    font-weight: 600;
    color: #000;
    background: var(--accent);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.variant-card__price {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Mobile - compact, no background box */
@media (max-width: 768px) {
    .variant-selector {
        background: none;
        border: none;
        border-radius: 0;
        margin-top: 0;
        padding: 12px 0;
        border-bottom: 1px solid var(--border-color);
    }

    .variant-selector__header {
        margin-bottom: 0.5rem;
    }

    .variant-selector__title {
        font-size: 0.75rem;
    }

    .variant-selector__current {
        padding: 0.5rem 0.75rem;
        border-radius: 6px;
    }

    .variant-selector__current-img {
        width: 32px;
        height: 32px;
    }

    .variant-selector__current-info {
        font-size: 0.75rem;
        gap: 4px;
    }

    .variant-selector__chevron {
        width: 16px;
        height: 16px;
    }

    .variant-card {
        grid-template-columns: 32px 1fr auto;
        gap: 0.5rem;
        padding: 0.5rem;
        border-radius: 6px;
    }

    .variant-card__image {
        width: 32px;
        height: 32px;
    }

    .variant-card__name {
        font-size: 0.75rem;
    }

    .variant-card__label-value {
        font-size: 0.7rem;
    }

    .variant-card__badge {
        font-size: 0.6rem;
        padding: 2px 6px;
    }

    .variant-card__price {
        font-size: 0.8rem;
    }

    .variant-selector__list {
        gap: 6px;
    }
}

@media (max-width: 480px) {
    .variant-selector__current-img,
    .variant-card__image {
        width: 28px;
        height: 28px;
    }

    .variant-card {
        grid-template-columns: 28px 1fr auto;
    }

    .variant-card__name {
        display: none;
    }

    .variant-card__right {
        min-width: auto;
    }
}
