/**
 * Pricing Overview Modal
 * BEM block: .pom (pricing overview modal)
 *
 * Loaded via wp_enqueue_style in PHP.
 * All colors use CSS variables from theme-vars.css.
 */

/* ==========================================================================
   Alpine.js cloak
   ========================================================================== */

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

/* ==========================================================================
   Backdrop
   ========================================================================== */

.pom__backdrop {
    position: fixed;
    inset: 0;
    background: var(--bg-overlay);
    backdrop-filter: blur(6px);
    z-index: 9999;
    animation: pom-fade-in 0.2s ease;
}

@keyframes pom-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ==========================================================================
   Modal container
   ========================================================================== */

.pom__modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    width: min(860px, 95%);
    max-height: 92vh;
    background: var(--bg-modal);
    border-radius: 14px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: pom-slide-in 0.3s ease;
}

@keyframes pom-slide-in {
    from {
        opacity: 0;
        transform: translate(-50%, calc(-50% + 12px));
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* ==========================================================================
   Header
   ========================================================================== */

.pom__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.pom__header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pom__header-icon {
    width: 36px;
    height: 36px;
    background: var(--accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pom__header-icon svg {
    width: 18px;
    height: 18px;
    color: #fff;
}

.pom__title {
    font-size: clamp(0.875rem, 1vw + 0.5rem, 1rem);
    font-weight: 700;
    line-height: 1.3;
}

.pom__subtitle {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.3;
}

.pom__header-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pom__badge {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 6px;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    white-space: nowrap;
}

.pom__header-text {
    display: flex;
    flex-direction: column;
}

.pom__header-badges {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pom__close {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid var(--border);
    color: var(--text-muted);
    border-radius: 7px;
    cursor: pointer;
    font-size: 15px;
    margin-left: 6px;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.pom__close:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

/* ==========================================================================
   Tabs
   ========================================================================== */

.pom__tabs {
    display: flex;
    padding: 0 20px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-secondary);
    flex-shrink: 0;
}

.pom__tab {
    position: relative;
    padding: 11px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    border: none;
    background: none;
    transition: color 0.15s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    font-family: inherit;
}

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

.pom__tab--active {
    color: var(--accent);
    font-weight: 600;
}

.pom__tab--active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10px;
    right: 10px;
    height: 2px;
    background: var(--accent);
    border-radius: 1px 1px 0 0;
}

.pom__tab-count {
    font-size: 9px;
    font-weight: 700;
    background: rgba(var(--accent-rgb), 0.1);
    color: var(--accent);
    padding: 1px 5px;
    border-radius: 4px;
}

/* ==========================================================================
   Savings banner
   ========================================================================== */

.pom__savings {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 20px;
    background: var(--success-bg);
    border-bottom: 1px solid rgba(var(--success-rgb), 0.06);
    flex-shrink: 0;
    font-size: 13px;
}

.pom__savings-amount {
    color: var(--success);
    font-weight: 700;
}

.pom__savings-amount strong {
    font-weight: 800;
}

.pom__savings-detail {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 400;
}

/* ==========================================================================
   Body (scrollable content area)
   ========================================================================== */

.pom__body {
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
    flex: 1;
    min-height: 0;
}

.pom__body::-webkit-scrollbar {
    width: 5px;
}

.pom__body::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

/* ==========================================================================
   Tab panels
   ========================================================================== */

/* Panels are shown/hidden by Alpine x-show, no CSS visibility needed */
.pom__panel {
    /* padding handled by child elements */
}

/* ==========================================================================
   Loading / Empty / Spinner states
   ========================================================================== */

.pom__loading,
.pom__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
    text-align: center;
    color: var(--text-muted);
    gap: 12px;
}

.pom__spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: pom-spin 0.8s linear infinite;
}

@keyframes pom-spin {
    to { transform: rotate(360deg); }
}

.pom__empty-text {
    font-size: 13px;
    color: var(--text-muted);
}

/* ==========================================================================
   Tab 1: Smart Mix
   ========================================================================== */

.pom__mix-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 12px 20px 4px;
}

.pom__mix-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pom__mix-total {
    font-size: clamp(1.125rem, 1.5vw + 0.5rem, 1.375rem);
    font-weight: 800;
    color: var(--success);
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

/* Mix rows container */
.pom__mix-rows {
    padding: 2px 12px 10px;
}

/* Single mix row */
.pom__mix-row {
    display: grid;
    grid-template-columns: 44px 1fr 56px 76px auto;
    align-items: center;
    gap: 10px;
    padding: 10px 8px;
    border-radius: 8px;
    transition: background-color 0.1s ease;
}

.pom__mix-row + .pom__mix-row {
    border-top: 1px solid var(--border);
}

.pom__mix-row:hover {
    background: var(--bg-hover);
}

/* Product image (mix row) */
.pom__mix-img {
    width: 44px;
    height: 44px;
    background: var(--product-img-bg, #fff);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.pom__mix-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 2px;
    display: block;
}

/* Product info (mix row) */
.pom__mix-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.pom__mix-type {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--text-muted);
    font-weight: 600;
    line-height: 1.4;
}

.pom__mix-name {
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

/* Supplier logo (mix row) */
.pom__mix-logo {
    width: 56px;
    height: 28px;
    border-radius: 5px;
    overflow: hidden;
    background: var(--product-img-bg, #fff);
    border: 1px solid var(--border);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pom__mix-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 2px 4px;
}

/* Price column (mix row) */
.pom__mix-price {
    text-align: right;
    min-width: 68px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.pom__mix-amount {
    font-size: 14px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* Stock filter checkbox */
.pom__mix-filter {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 20px 8px;
    cursor: pointer;
}

.pom__mix-checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.pom__mix-checkbox svg {
    width: 12px;
    height: 12px;
    color: #000;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.pom__mix-checkbox--on {
    background: var(--accent);
    border-color: var(--accent);
}

.pom__mix-checkbox--on svg {
    opacity: 1;
}

.pom__mix-filter-text {
    font-size: 12px;
    color: var(--text-secondary);
    user-select: none;
}

/* Out-of-stock row indicator */
/* No dimming — just show the badge */

.pom__mix-oos-badge {
    font-size: 8px;
    font-weight: 600;
    color: var(--warning);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Clickable product elements (open product details) */
.pom__clickable {
    cursor: pointer;
}

.pom__clickable:hover {
    opacity: 0.8;
}

/* ==========================================================================
   Buy button (shared across all tabs)
   ========================================================================== */

.pom__btn-buy {
    padding: 6px 12px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    min-height: 40px;
    font-family: inherit;
}

.pom__btn-buy:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.pom__btn-buy svg {
    width: 12px;
    height: 12px;
}

/* ==========================================================================
   Tab 2: Per Webshop
   ========================================================================== */

/* Shop accordion card */
.pom__shop-card {
    margin: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.15s ease;
}

.pom__shop-card:hover {
    border-color: var(--border-light);
}

/* Best shop card */
.pom__shop-card--best {
    border-color: rgba(var(--success-rgb), 0.15);
    background: var(--success-bg);
}

/* Shop card header */
.pom__shop-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    cursor: pointer;
    transition: background-color 0.1s ease;
}

.pom__shop-header:hover {
    background: var(--bg-hover);
}

.pom__shop-identity {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

/* Shop logo (larger in shop tab) */
.pom__shop-logo {
    width: 72px;
    height: 32px;
    background: var(--product-img-bg, #fff);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.pom__shop-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 2px 6px;
}

.pom__shop-name {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* "Beste keuze" badge */
.pom__shop-best-badge {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--success);
    background: var(--success-bg);
    border: 1px solid rgba(var(--success-rgb), 0.15);
    padding: 2px 7px;
    border-radius: 5px;
    flex-shrink: 0;
}

/* Shop meta (stock + price + chevron) */
.pom__shop-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.pom__shop-stock {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 3px;
}

.pom__shop-total {
    font-size: 16px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

/* Chevron icon */
.pom__chevron {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    transition: transform 0.2s ease;
    margin-left: 2px;
    flex-shrink: 0;
}

.pom__chevron svg {
    width: 16px;
    height: 16px;
    display: block;
}

.pom__shop-card--open .pom__chevron,
.pom__prod-card--open .pom__chevron {
    transform: rotate(180deg);
}

/* Shop card expandable body (animated by Alpine x-collapse) */
.pom__shop-items {
    overflow: hidden;
}

.pom__shop-items-inner {
    padding: 0 14px 8px;
    border-top: 1px solid var(--border);
}

/* Shop product row */
.pom__shop-row {
    display: grid;
    grid-template-columns: 32px 1fr 80px 50px;
    align-items: center;
    gap: 8px;
    padding: 8px 4px;
}

.pom__shop-row + .pom__shop-row {
    border-top: 1px solid var(--border);
}

/* Small product image (shop row) */
.pom__shop-row-img {
    width: 32px;
    height: 32px;
    background: var(--product-img-bg, #fff);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.pom__shop-row-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1px;
    display: block;
}

/* Shop row product info */
.pom__shop-row-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* Out of stock row */
/* No dimming — just show the label */

.pom__shop-row-stock {
    font-size: 9px;
    font-weight: 600;
    color: var(--warning);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: block;
}

/* Shop row price */
.pom__shop-row-price {
    font-size: 13px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

/* Small buy button (shop row) */
.pom__btn-buy--sm {
    padding: 4px 9px;
    border-radius: 5px;
    font-size: 11px;
    min-height: auto;
}

/* ==========================================================================
   Tab 3: Per Product
   ========================================================================== */

/* Product accordion card */
.pom__prod-card {
    margin: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.15s ease;
}

.pom__prod-card:hover {
    border-color: var(--border-light);
}

/* Product card header */
.pom__prod-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background-color 0.1s ease;
}

.pom__prod-header:hover {
    background: var(--bg-hover);
}

/* Product image (product card header) */
.pom__prod-img {
    width: 40px;
    height: 40px;
    background: var(--product-img-bg, #fff);
    border-radius: 7px;
    overflow: hidden;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.pom__prod-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 2px;
    display: block;
}

/* Product card info */
.pom__prod-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.pom__prod-type {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--text-muted);
    font-weight: 600;
    line-height: 1.4;
}

.pom__prod-name {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.pom__prod-range {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 2px;
    margin-top: 1px;
}

.pom__prod-range strong {
    color: var(--success);
    font-weight: 700;
}

/* Product card expandable body (animated by Alpine x-collapse) */
.pom__prod-offers {
    overflow: hidden;
}

.pom__prod-offers-inner {
    padding: 0 14px 8px;
    border-top: 1px solid var(--border);
}

/* Single offer row (per product tab) */
.pom__offer-row {
    display: grid;
    grid-template-columns: 60px auto 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 8px 4px;
}

.pom__offer-row + .pom__offer-row {
    border-top: 1px solid var(--border);
}

/* Supplier logo (offer row) */
.pom__offer-logo {
    width: 60px;
    height: 28px;
    background: var(--product-img-bg, #fff);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.pom__offer-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 2px 6px;
}

/* Stock badge (offer row) */
.pom__stock-badge {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    flex-shrink: 0;
}

.pom__stock-badge--ok {
    background: var(--success-bg);
    color: var(--success);
}

.pom__stock-badge--no {
    background: var(--warning-bg);
    color: var(--warning);
}

.pom__stock-badge--unknown {
    background: var(--bg-tertiary);
    color: var(--text-muted);
    font-style: italic;
}

/* Offer price */
.pom__offer-price {
    font-size: 14px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    text-align: right;
    justify-self: end;
}

.pom__offer-price--best {
    color: var(--success);
}

/* ==========================================================================
   Stock indicator dots (shared)
   ========================================================================== */

.pom__stock-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.pom__stock-dot--ok {
    background: var(--success);
}

.pom__stock-dot--partial {
    background: var(--warning);
}

.pom__stock-dot--low {
    background: var(--error);
}

/* Stock info classes from getAvailabilityClass() */
.availability--full .pom__stock-dot {
    background: var(--success);
}

.availability--partial-stock .pom__stock-dot,
.availability--partial .pom__stock-dot {
    background: var(--warning);
}

.availability--amazon .pom__stock-dot {
    background: var(--text-muted);
}

.availability--full {
    color: var(--success);
}

.availability--partial-stock,
.availability--partial {
    color: var(--warning);
}

.availability--amazon {
    color: var(--text-muted);
    font-style: italic;
}

/* ==========================================================================
   Shared type/name labels (reused in shop rows)
   ========================================================================== */

.pom__row-type {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--text-muted);
    font-weight: 600;
    line-height: 1.4;
}

.pom__row-name {
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.pom__footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 20px;
    border-top: 1px solid var(--border);
    background: var(--bg-secondary);
    flex-shrink: 0;
}

.pom__footer-notice {
    flex: 1;
    min-width: 0;
}

.pom__footer-notice span {
    display: block;
    font-size: 10px;
    color: var(--text-muted);
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pom__footer-link {
    font-size: 9px;
    color: var(--text-muted);
    text-decoration: none;
    opacity: 0.6;
    transition: opacity 0.15s;
    margin-top: 1px;
    display: inline-block;
}

.pom__footer-link:hover {
    opacity: 1;
    color: var(--text-secondary);
}

.pom__footer-notice a:hover {
    color: var(--text-primary);
}

.pom__footer-actions {
    display: flex;
    gap: 8px;
}

.pom__btn-share {
    padding: 9px 12px;
    background: none;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
    font-family: inherit;
}

.pom__btn-share:hover {
    background: var(--bg-hover);
    border-color: var(--border-light);
}

/* ==========================================================================
   Mobile: fullscreen layout
   ========================================================================== */

@media (max-width: 768px) {
    .pom__backdrop {
        display: none;
    }

    .pom__modal {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        transform: none;
        width: 100%;
        max-width: 100%;
        max-height: 100%;
        border-radius: 0;
        border: none;
        animation: pom-slide-up 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }

    @keyframes pom-slide-up {
        from { transform: translateY(100%); }
        to { transform: none; }
    }

    /* Header: sticky, larger close target */
    .pom__header {
        padding: 12px 16px;
        position: sticky;
        top: 0;
        z-index: 10;
        background: var(--bg-modal);
    }

    .pom__badge {
        display: none;
    }

    .pom__close {
        width: 44px;
        height: 44px;
        font-size: 20px;
        border-radius: 12px;
        background: var(--bg-tertiary);
        border: none;
        color: var(--text-primary);
    }

    .pom__header-icon {
        width: 32px;
        height: 32px;
        border-radius: 8px;
    }

    .pom__header-icon svg {
        width: 16px;
        height: 16px;
    }

    /* Tabs: horizontally scrollable, hidden scrollbar */
    .pom__tabs {
        padding: 0 12px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .pom__tabs::-webkit-scrollbar {
        display: none;
    }

    .pom__tab {
        padding: 10px 12px;
        font-size: 12px;
    }

    /* Savings */
    .pom__savings {
        padding: 8px 16px;
    }

    /* Body: flex fill, touch scroll, hidden scrollbar */
    .pom__body {
        flex: 1;
        max-height: none;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .pom__body::-webkit-scrollbar {
        display: none;
    }

    /* Mix tab: flex layout on mobile for better wrapping */
    .pom__mix-header {
        padding: 10px 16px 2px;
    }

    .pom__mix-rows {
        padding: 2px 6px 8px;
    }

    .pom__mix-row {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
        padding: 10px 8px;
    }

    .pom__mix-img {
        width: 36px;
        height: 36px;
        flex-shrink: 0;
    }

    .pom__mix-info {
        flex: 1;
        min-width: 0;
    }

    .pom__mix-logo {
        width: 36px;
        height: 18px;
        border-radius: 3px;
        flex-shrink: 0;
    }

    .pom__mix-logo img {
        padding: 1px 3px;
    }

    .pom__mix-name {
        font-size: 12px;
    }

    .pom__mix-price {
        margin-left: auto;
        text-align: right;
        min-width: auto;
    }

    .pom__mix-amount {
        font-size: 13px;
    }

    .pom__mix-lowest {
        font-size: 8px;
    }

    /* Buy button: icon only on mobile */
    .pom__btn-buy span {
        display: none;
    }

    .pom__btn-buy {
        padding: 7px 10px;
        flex-shrink: 0;
    }

    /* Shop & product cards: tighter margins */
    .pom__shop-card,
    .pom__prod-card {
        margin: 4px 10px;
    }

    /* Shop card mobile */
    .pom__shop-logo {
        width: 48px;
        height: 24px;
        border-radius: 5px;
    }

    .pom__shop-name {
        font-size: 13px;
    }

    .pom__shop-best-badge {
        font-size: 8px;
        padding: 2px 5px;
    }

    .pom__shop-stock {
        font-size: 10px;
    }

    .pom__shop-total {
        font-size: 14px;
        min-width: 70px;
        text-align: right;
    }

    .pom__shop-items-inner {
        padding: 0 8px 8px;
    }

    .pom__shop-row {
        grid-template-columns: 28px 1fr auto auto;
        gap: 6px;
        padding: 8px 2px;
    }

    .pom__shop-row-img {
        width: 28px;
        height: 28px;
        border-radius: 5px;
    }

    .pom__shop-row-price {
        font-size: 12px;
    }

    .pom__btn-buy--sm {
        padding: 5px 8px;
        font-size: 10px;
        border-radius: 5px;
    }

    /* Product card mobile */
    .pom__prod-img {
        width: 36px;
        height: 36px;
    }

    .pom__prod-name {
        font-size: 12px;
    }

    /* Offer rows: compact grid on mobile */
    .pom__offer-row {
        grid-template-columns: 44px auto 1fr auto;
        gap: 6px;
    }

    .pom__offer-logo {
        width: 44px;
        height: 20px;
    }

    .pom__offer-price {
        font-size: 12px;
    }

    /* Footer: stacked layout */
    .pom__footer {
        flex-direction: column;
        gap: 8px;
        padding: 12px 16px;
    }

    .pom__footer-notice {
        max-width: 100%;
        text-align: center;
        font-size: 10px;
    }

    .pom__footer-actions {
        width: 100%;
    }

    .pom__btn-share {
        flex: 1;
        justify-content: center;
        text-align: center;
    }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .pom__backdrop,
    .pom__modal,
    .pom__shop-items,
    .pom__prod-offers,
    .pom__chevron,
    .pom__btn-buy,
    .pom__mix-row,
    .pom__shop-header,
    .pom__prod-header {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
