/**
 * Easy Accessories Bundle — Front-office styles
 *
 * @author    JPSdev
 * @copyright JPSdev - 2026
 * @license   Valid for 1 website (or project) for each purchase of license
 *
 * Specificity strategy:
 *   - Every selector is scoped under .jea-bundle / .jea-banner so theme bleed
 *     is minimized.
 *   - Image sizing uses !important because PrestaShop themes (hummingbird,
 *     classic, etc.) ship aggressive `img { width: 100%; height: auto }` rules
 *     that explode our thumbnails. We restore explicit constraints.
 */

.jea-bundle {
    --jea-accent: #FFC107;
    --jea-accent-dark: #FFB300;
    --jea-accent-soft: #fff7d6;
    --jea-border: #e5e5e5;
    --jea-line: #ededed;
    --jea-bg-soft: #fafafa;
    --jea-ink: #1c1c1c;
    --jea-ink-soft: #6b6b6b;
    --jea-text-soft: #6b6b6b;
    --jea-brand: #4a90c2;
    --jea-cta-bg: #1c1c1c;
    --jea-cta-fg: #ffffff;
    --jea-tag-bg: #1c1c1c;
    --jea-tag-fg: #FFC107;
    --jea-check-color: #1c1c1c;
    --jea-counter-fg: #1c1c1c;
    --jea-item-title: #1c1c1c;
    --jea-item-price: #1c1c1c;
    --jea-item-brand: #6b6b6b;
    --jea-radius: 6px;
    --jea-radius-sm: 4px;
    --jea-shadow: 0 1px 3px rgba(0,0,0,.05), 0 1px 2px rgba(0,0,0,.04);
    /* Motion tokens (Emil-style: strong custom easings, short UI durations) */
    --jea-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
    --jea-ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
    --jea-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --jea-dur-press: 120ms;
    --jea-dur: 180ms;
    --jea-dur-enter: 260ms;
    border: 1px solid var(--jea-border);
    border-radius: var(--jea-radius);
    background: #fff;
    margin: 24px 0;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Open Sans", Roboto, sans-serif;
    color: var(--jea-ink);
    box-shadow: var(--jea-shadow);
    box-sizing: border-box;
    line-height: 1.45;
}
.jea-bundle *, .jea-bundle *::before, .jea-bundle *::after { box-sizing: border-box; }

/* ── Header ─────────────────────────────────────────────────────── */
.jea-bundle-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px 13px;
    border-bottom: 1px solid var(--jea-line);
    background: #fff;
    position: relative;
    flex-wrap: wrap;
}
.jea-bundle-head::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    bottom: 12px;
    width: 3px;
    background: var(--jea-accent);
}
.jea-bundle-title {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    margin: 0;
    padding-left: 8px;
    color: var(--jea-ink);
    flex: 1 1 auto;
    min-width: 0;
}
.jea-savings-badge {
    background: var(--jea-ink);
    color: #fff;
    font-weight: 700;
    font-size: 11px;
    padding: 5px 10px;
    border-radius: 2px;
    letter-spacing: .04em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    white-space: nowrap;
}
.jea-savings-badge b {
    color: var(--jea-accent);
    font-size: 13px;
    font-weight: 800;
}

/* ── Footer (shared by v1/v2/v3) ─────────────────────────────────── */
.jea-bundle-foot {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 14px 18px;
    background: var(--jea-bg-soft);
    border-top: 1px solid var(--jea-line);
}
.jea-foot-left { min-width: 0; }
.jea-count-line {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    margin-bottom: 2px;
    flex-wrap: wrap;
}
.jea-count {
    background: var(--jea-accent);
    color: var(--jea-counter-fg);
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 2px;
    font-size: 12px;
}
.jea-count-label { font-weight: 600; color: var(--jea-ink); }
.jea-help-text {
    margin: 0;
    color: var(--jea-ink-soft);
    font-size: 12px;
    line-height: 1.45;
}
.jea-foot-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}
.jea-total-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.15;
}
.jea-total-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--jea-ink-soft);
    font-weight: 700;
}
.jea-total-was {
    font-size: 13px;
    color: var(--jea-ink-soft);
    text-decoration: line-through;
    margin-top: 2px;
}
.jea-total-price {
    font-size: 22px;
    font-weight: 800;
    color: var(--jea-ink);
    letter-spacing: -.01em;
    margin-top: 2px;
}
.jea-add-btn {
    background: var(--jea-cta-bg);
    color: var(--jea-cta-fg);
    border: 0;
    border-radius: 2px;
    padding: 11px 18px;
    font: inherit;
    font-weight: 700;
    font-size: 12.5px;
    letter-spacing: .03em;
    text-transform: uppercase;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition:
        background var(--jea-dur) var(--jea-ease-out),
        filter var(--jea-dur) var(--jea-ease-out),
        box-shadow var(--jea-dur) var(--jea-ease-out),
        transform var(--jea-dur-press) var(--jea-ease-out);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}
@media (hover: hover) and (pointer: fine) {
    .jea-add-btn:hover {
        filter: brightness(1.08);
        box-shadow: 0 4px 14px rgba(0,0,0,.18);
    }
}
.jea-add-btn:focus-visible { outline: 2px solid var(--jea-accent); outline-offset: 2px; }
.jea-add-btn:disabled { opacity: .65; cursor: wait; }
/* Loading sweep: a soft shimmer travels across the button while items are
   being added to the cart, so the user knows we're working. transform-only,
   stays on the GPU. */
.jea-add-btn--loading::after {
    content: "";
    position: absolute;
    top: 0;
    left: -40%;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.32), transparent);
    animation: jea-add-sweep 1.2s linear infinite;
    pointer-events: none;
}
@keyframes jea-add-sweep {
    0%   { transform: translateX(0); }
    100% { transform: translateX(360%); }
}
.jea-arrow { transition: transform var(--jea-dur) var(--jea-ease-out); }
.jea-add-btn:hover .jea-arrow { transform: translateX(4px); }

/* ════════════════════════════════════════════════════════════════
   LAYOUT V1 — Mosaic carousel
   ════════════════════════════════════════════════════════════════ */
.jea-bundle--v1 .jea-bundle-items {
    display: flex;
    align-items: stretch;
    gap: 6px;
    padding: 16px 18px 14px;
    overflow-x: auto;
    scrollbar-width: thin;
}
.jea-bundle--v1 .jea-card {
    flex: 0 0 132px;
    min-width: 132px;
    max-width: 132px;
    position: relative;
    border: 1px solid var(--jea-border);
    border-radius: var(--jea-radius-sm);
    background: #fff;
    padding: 8px 8px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    user-select: none;
    text-align: center;
    transition: border-color .15s, box-shadow .15s, transform .15s, opacity .2s;
}
.jea-bundle--v1 .jea-card:hover { border-color: var(--jea-accent-dark); box-shadow: 0 2px 6px rgba(0,0,0,.06); transform: translateY(-1px); }
.jea-bundle--v1 .jea-card.jea-card--unchecked { opacity: .45; }
.jea-bundle--v1 .jea-card--main { background: var(--jea-accent-soft); border-color: #f0d985; cursor: default; }
.jea-bundle--v1 .jea-card--main:hover { transform: none; }

.jea-bundle--v1 .jea-plus {
    align-self: center;
    color: #cfcfcf;
    font-size: 16px;
    font-weight: 400;
    flex: 0 0 auto;
    user-select: none;
    line-height: 1;
}

/* Card content — V1 specific */
.jea-bundle--v1 .jea-card-tag {
    position: absolute;
    top: 0;
    left: 0;
    background: var(--jea-tag-bg);
    color: var(--jea-tag-fg);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    padding: 3px 6px;
    border-radius: var(--jea-radius-sm) 0 var(--jea-radius-sm) 0;
    z-index: 2;
    line-height: 1;
}
.jea-bundle--v1 .jea-card-check {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    z-index: 2;
    margin: 0;
    display: block;
}
.jea-bundle--v1 .jea-card-check input[type="checkbox"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
    opacity: 0;
    z-index: 3;
}
.jea-bundle--v1 .jea-card-check-mark {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #fff;
    border: 1.5px solid #d4d4d4;
    transition: background .15s, border-color .15s;
}
.jea-bundle--v1 .jea-card-check input[type="checkbox"]:checked + .jea-card-check-mark {
    background: var(--jea-accent);
    border-color: var(--jea-accent-dark);
}
.jea-bundle--v1 .jea-card-check input[type="checkbox"]:checked + .jea-card-check-mark::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid var(--jea-check-color);
    border-width: 0 2px 2px 0;
    transform: rotate(42deg);
}
.jea-bundle--v1 .jea-card-image {
    width: 76px;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 14px;
    overflow: hidden;
}
.jea-bundle--v1 .jea-card-image img {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
}
.jea-bundle--v1 .jea-card-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--jea-item-price);
    margin-top: 4px;
    line-height: 1.1;
}
.jea-bundle--v1 .jea-card-name {
    font-size: 11.5px;
    line-height: 1.25;
    color: var(--jea-item-title);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
    min-height: 28px;
}
.jea-bundle--v1 a.jea-card-name:hover { color: var(--jea-accent-dark); }
.jea-bundle--v1 .jea-card-brand {
    font-size: 9.5px;
    font-weight: 700;
    color: var(--jea-item-brand);
    letter-spacing: .08em;
    text-transform: uppercase;
}

/* "Show brand" toggle — hide manufacturer text in all layouts when off */
.jea-bundle--no-brand .jea-card-brand,
.jea-bundle--no-brand .jea-list-name small {
    display: none !important;
}

/* Quantity selector (v1) */
.jea-bundle--v1 .jea-qty-wrapper {
    display: inline-flex;
    align-items: stretch;
    margin-top: 4px;
    border: 1px solid #d4d4d4;
    border-radius: 3px;
    overflow: hidden;
    background: #fff;
    height: 26px;
}
.jea-bundle--v1 .jea-qty-wrapper:focus-within {
    border-color: var(--jea-accent-dark);
    box-shadow: 0 0 0 2px rgba(255, 193, 7, .25);
}
.jea-bundle--v1 .jea-qty-btn {
    width: 22px;
    background: #fafafa;
    border: 0;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: var(--jea-ink-soft);
    line-height: 1;
    padding: 0;
    transition: background .15s, color .15s;
    user-select: none;
}
.jea-bundle--v1 .jea-qty-btn:hover { background: var(--jea-accent); color: var(--jea-ink); }
.jea-bundle--v1 .jea-qty-input {
    width: 36px;
    border: 0;
    border-left: 1px solid var(--jea-line);
    border-right: 1px solid var(--jea-line);
    border-radius: 0;
    margin: 0;
    padding: 0 2px;
    font-size: 12px;
    text-align: center;
    color: var(--jea-ink);
    background: #fff;
    box-shadow: none !important;
    outline: none;
    -moz-appearance: textfield;
    appearance: textfield;
    height: 100%;
}
.jea-bundle--v1 .jea-qty-input::-webkit-outer-spin-button,
.jea-bundle--v1 .jea-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ════════════════════════════════════════════════════════════════
   LAYOUT V2 — Compact list
   ════════════════════════════════════════════════════════════════ */
.jea-bundle--v2 .jea-list { padding: 6px 0; }
.jea-bundle--v2 .jea-list-row {
    display: grid;
    grid-template-columns: 24px 60px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 10px 18px;
    border-bottom: 1px solid var(--jea-line);
    transition: background .15s, opacity .2s;
    min-height: 76px;
}
.jea-bundle--v2 .jea-list-row:last-child { border-bottom: 0; }
.jea-bundle--v2 .jea-list-row:hover { background: var(--jea-bg-soft); }
.jea-bundle--v2 .jea-list-row.jea-card--unchecked { opacity: .55; }
.jea-bundle--v2 .jea-list-row--main { background: var(--jea-accent-soft); }
.jea-bundle--v2 .jea-list-row--main:hover { background: #fff3c5; }

.jea-bundle--v2 .jea-list-check {
    position: relative;
    cursor: pointer;
    width: 22px;
    height: 22px;
    margin: 0;
    display: block;
}
.jea-bundle--v2 .jea-list-check input[type="checkbox"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
    opacity: 0;
    z-index: 2;
}
.jea-bundle--v2 .jea-list-check-mark {
    position: absolute;
    inset: 0;
    border: 1.5px solid #d4d4d4;
    background: #fff;
    border-radius: 4px;
    transition: background .15s, border-color .15s;
}
.jea-bundle--v2 .jea-list-check input[type="checkbox"]:checked + .jea-list-check-mark {
    background: var(--jea-accent);
    border-color: var(--jea-accent-dark);
}
.jea-bundle--v2 .jea-list-check input[type="checkbox"]:checked + .jea-list-check-mark::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 11px;
    border: solid var(--jea-check-color);
    border-width: 0 2px 2px 0;
    transform: rotate(42deg);
}

.jea-bundle--v2 .jea-list-img {
    width: 60px !important;
    height: 60px !important;
    border: 1px solid var(--jea-border);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 3px;
    flex-shrink: 0;
}
.jea-bundle--v2 .jea-list-img img {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
}

.jea-bundle--v2 .jea-list-name {
    min-width: 0;
    overflow: hidden;
}
.jea-bundle--v2 .jea-list-name strong {
    font-size: 13px;
    font-weight: 700;
    color: var(--jea-item-title);
    line-height: 1.3;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: none;
    letter-spacing: 0;
}
.jea-bundle--v2 .jea-list-name a { color: inherit; text-decoration: none; }
.jea-bundle--v2 .jea-list-name a:hover strong { color: var(--jea-accent-dark); }
.jea-bundle--v2 .jea-list-name small {
    display: block;
    color: var(--jea-item-brand);
    font-weight: 400;
    font-size: 11px;
    text-transform: none;
    letter-spacing: 0;
    margin-top: 2px;
    line-height: 1.3;
}
.jea-bundle--v2 .jea-list-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--jea-item-price);
    white-space: nowrap;
    letter-spacing: -.01em;
}

/* ════════════════════════════════════════════════════════════════
   LAYOUT V3 — Hero scene + chips
   ════════════════════════════════════════════════════════════════ */
.jea-bundle--v3 .jea-scene-wrap {
    padding: 16px 18px 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.jea-bundle--v3 .jea-scene {
    border: 1px solid var(--jea-border);
    background: #fff;
    border-radius: var(--jea-radius-sm);
    padding: 16px 14px 18px;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    gap: 6px;
    min-height: 180px;
    position: relative;
    overflow: hidden;
    flex-wrap: nowrap;
    background-image: linear-gradient(180deg, transparent 86%, rgba(0,0,0,.04) 86% 88%, transparent 88%);
}
.jea-bundle--v3 .jea-scene-item {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    flex: 1 1 0;
    min-width: 0;
    height: 130px;
    cursor: pointer;
    transition: opacity .15s, transform .15s;
}
.jea-bundle--v3 .jea-scene-item img {
    max-height: 100% !important;
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    transition: transform .15s;
}
.jea-bundle--v3 .jea-scene-item:hover img { transform: translateY(-3px); }
.jea-bundle--v3 .jea-scene-item.jea-card--unchecked { opacity: .25; }
.jea-bundle--v3 .jea-scene-item--hero { height: 150px; flex: 1.2 1 0; }
.jea-bundle--v3 .jea-scene-badge {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 22px;
    height: 22px;
    background: var(--jea-accent);
    border: 1px solid var(--jea-accent-dark);
    font-size: 10px;
    font-weight: 700;
    color: var(--jea-ink);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.jea-bundle--v3 .jea-scene-item--hero .jea-scene-badge {
    background: var(--jea-ink);
    color: var(--jea-accent);
    border-color: var(--jea-ink);
}

.jea-bundle--v3 .jea-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.jea-bundle--v3 .jea-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--jea-border);
    background: #fff;
    padding: 5px 10px 5px 6px;
    border-radius: 999px;
    font-size: 11.5px;
    cursor: pointer;
    color: var(--jea-item-title);
    transition: background .15s, border-color .15s, opacity .15s;
    position: relative;
    max-width: 100%;
}
.jea-bundle--v3 .jea-chip:hover { border-color: var(--jea-accent-dark); }
.jea-bundle--v3 .jea-chip--hero {
    background: var(--jea-accent-soft);
    border-color: var(--jea-accent-dark);
    cursor: default;
}
.jea-bundle--v3 .jea-chip--hero:hover { border-color: var(--jea-accent-dark); }
.jea-bundle--v3 .jea-chip.jea-card--unchecked {
    opacity: .5;
    background: #f5f5f5;
}
.jea-bundle--v3 .jea-chip input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    left: 0;
    top: 0;
    margin: 0;
    z-index: 1;
}
.jea-bundle--v3 .jea-chip-n {
    width: 18px;
    height: 18px;
    background: var(--jea-accent);
    color: var(--jea-ink);
    font-weight: 700;
    font-size: 10px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 2;
}
.jea-bundle--v3 .jea-chip--hero .jea-chip-n {
    background: var(--jea-ink);
    color: var(--jea-accent);
}
.jea-bundle--v3 .jea-chip-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 140px;
    z-index: 2;
}
.jea-bundle--v3 .jea-chip-price {
    font-weight: 700;
    color: var(--jea-item-price);
    z-index: 2;
}
.jea-bundle--v3 .jea-chip-x {
    color: var(--jea-ink-soft);
    font-weight: 700;
    font-size: 14px;
    margin-left: 2px;
    line-height: 1;
    z-index: 2;
}
.jea-bundle--v3 .jea-chip.jea-card--unchecked .jea-chip-x { color: var(--jea-accent-dark); }
.jea-bundle--v3 .jea-chip.jea-card--unchecked .jea-chip-x::before { content: "+"; }
.jea-bundle--v3 .jea-chip.jea-card--unchecked .jea-chip-x::after { display: none; }
.jea-bundle--v3 .jea-chip.jea-card--unchecked .jea-chip-x { font-size: 0; }
.jea-bundle--v3 .jea-chip.jea-card--unchecked .jea-chip-x::before { font-size: 14px; }

/* ════════════════════════════════════════════════════════════════
   LAYOUT V4 — Suggested packs
   ════════════════════════════════════════════════════════════════ */
.jea-bundle--v4 .jea-packs {
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.jea-bundle--v4 .jea-pack-row {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto auto;
    gap: 12px;
    align-items: center;
    border: 1px solid var(--jea-border);
    padding: 12px 14px;
    border-radius: var(--jea-radius-sm);
    cursor: pointer;
    background: #fff;
    transition: border-color .15s, background .15s, box-shadow .15s;
    margin: 0;
    position: relative;
}
.jea-bundle--v4 .jea-pack-row:hover { border-color: var(--jea-accent-dark); }
.jea-bundle--v4 .jea-pack-row.jea-pack--selected {
    border-color: var(--jea-accent-dark);
    background: var(--jea-accent-soft);
    box-shadow: inset 3px 0 0 var(--jea-accent);
}
.jea-bundle--v4 .jea-pack-radio {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}
.jea-bundle--v4 .jea-pack-radio-mark {
    width: 20px;
    height: 20px;
    border: 1.5px solid #d4d4d4;
    background: #fff;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
    transition: border-color .15s;
    justify-self: center;
}
.jea-bundle--v4 .jea-pack-row.jea-pack--selected .jea-pack-radio-mark { border-color: var(--jea-accent-dark); }
.jea-bundle--v4 .jea-pack-row.jea-pack--selected .jea-pack-radio-mark::after {
    content: "";
    position: absolute;
    inset: 3px;
    background: var(--jea-accent);
    border-radius: 50%;
}
.jea-bundle--v4 .jea-pack-meta {
    min-width: 0;
    overflow: hidden;
}
.jea-bundle--v4 .jea-pack-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--jea-item-title);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    line-height: 1.3;
}
.jea-bundle--v4 .jea-pack-rec {
    background: var(--jea-accent);
    color: var(--jea-ink);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: .3px;
    line-height: 1.3;
    white-space: nowrap;
}
.jea-bundle--v4 .jea-pack-desc {
    font-size: 11.5px;
    color: var(--jea-ink-soft);
    margin-top: 4px;
    line-height: 1.3;
}
.jea-bundle--v4 .jea-pack-thumbs {
    display: flex;
    gap: 4px;
    align-items: center;
    flex-shrink: 0;
}
.jea-bundle--v4 .jea-pack-thumb {
    width: 38px !important;
    height: 38px !important;
    border: 1px solid var(--jea-border);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 3px;
    flex-shrink: 0;
}
.jea-bundle--v4 .jea-pack-thumb img {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
}
.jea-bundle--v4 .jea-pack-more {
    font-size: 11px;
    color: var(--jea-ink-soft);
    font-weight: 700;
    margin-left: 2px;
    flex-shrink: 0;
    white-space: nowrap;
}
.jea-bundle--v4 .jea-pack-price {
    text-align: right;
    font-size: 15px;
    font-weight: 800;
    color: var(--jea-item-price);
    line-height: 1.2;
    white-space: nowrap;
    letter-spacing: -.01em;
    flex-shrink: 0;
}
.jea-bundle--v4 .jea-pack-price s {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: var(--jea-ink-soft);
    text-decoration: line-through;
    margin-top: 2px;
}
.jea-bundle--v4 .jea-pack-payload { display: none; }

/* ════════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .jea-bundle-head { padding: 12px 14px 11px; }
    .jea-bundle-title { font-size: 13px; padding-left: 8px; }
    .jea-bundle-foot {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 12px 14px;
    }
    .jea-foot-right { align-items: stretch; }
    .jea-add-btn { width: 100%; justify-content: center; }
    .jea-total-block { align-items: flex-start; }

    /* V1: cards are already a horizontal scroller — keep width */
    .jea-bundle--v1 .jea-bundle-items { padding: 14px; }

    /* V2: tighter list rows */
    .jea-bundle--v2 .jea-list-row {
        grid-template-columns: 22px 52px 1fr auto;
        gap: 10px;
        padding: 10px 14px;
        min-height: 70px;
    }
    .jea-bundle--v2 .jea-list-img { width: 52px !important; height: 52px !important; }
    .jea-bundle--v2 .jea-list-name strong { font-size: 12.5px; }
    .jea-bundle--v2 .jea-list-price { font-size: 14px; }

    /* V3: scale down scene heights */
    .jea-bundle--v3 .jea-scene { min-height: 130px; padding: 14px 10px 16px; }
    .jea-bundle--v3 .jea-scene-item { height: 90px; }
    .jea-bundle--v3 .jea-scene-item--hero { height: 110px; }
    .jea-bundle--v3 .jea-chip-name { max-width: 90px; }

    /* V4: stack thumbs+price below meta */
    .jea-bundle--v4 .jea-packs { padding: 12px 14px; }
    .jea-bundle--v4 .jea-pack-row {
        grid-template-columns: 24px minmax(0, 1fr);
        grid-template-rows: auto auto;
        row-gap: 8px;
        padding: 12px 14px;
    }
    .jea-bundle--v4 .jea-pack-row > .jea-pack-thumbs {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-content: flex-start;
    }
    .jea-bundle--v4 .jea-pack-row > .jea-pack-price {
        grid-column: 1 / -1;
        grid-row: 3;
        text-align: left;
        display: flex;
        gap: 8px;
        align-items: baseline;
    }
    .jea-bundle--v4 .jea-pack-price s { margin-top: 0; }
}

/* ════════════════════════════════════════════════════════════════
   BANNER (separate widget, shared by all layouts)
   ════════════════════════════════════════════════════════════════ */
.jea-banner {
    --jea-banner-bg: #fffaf0;
    --jea-banner-border: #FFC107;
    --jea-banner-title: #1c1c1c;
    --jea-banner-badge-bg: #FFC107;
    --jea-banner-badge-text: #1c1c1c;
    --jea-banner-arrow: #FFC107;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border: 1px solid #e5e5e5;
    border-left: 3px solid var(--jea-banner-border);
    border-radius: 6px;
    background: var(--jea-banner-bg);
    text-decoration: none !important;
    color: inherit;
    cursor: pointer;
    transition:
        background var(--jea-dur) var(--jea-ease-out),
        border-color var(--jea-dur) var(--jea-ease-out),
        transform var(--jea-dur-press) var(--jea-ease-out),
        box-shadow var(--jea-dur) var(--jea-ease-out),
        filter var(--jea-dur) var(--jea-ease-out);
    margin: 16px 0;
    box-sizing: border-box;
    /* Banner appears with the bundle — small slide-in tells the user it
       belongs to the product, doesn't startle them with a hard pop. */
    animation: jea-banner-in 360ms var(--jea-ease-out) both;
}
@keyframes jea-banner-in {
    0%   { opacity: 0; transform: translateY(-6px); }
    100% { opacity: 1; transform: translateY(0); }
}
@media (hover: hover) and (pointer: fine) {
    .jea-banner:hover {
        filter: brightness(0.97);
        box-shadow: 0 6px 16px rgba(0,0,0,.10);
        transform: translateY(-1px);
    }
}
.jea-banner__image {
    position: relative;
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.jea-banner__image img {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}
.jea-banner__badge {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background: var(--jea-banner-badge-bg);
    color: var(--jea-banner-badge-text);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,.15);
    line-height: 1;
    white-space: nowrap;
}
.jea-banner__content { flex: 1 1 auto; min-width: 0; }
.jea-banner__title { font-size: 15px; font-weight: 700; color: var(--jea-banner-title); margin-bottom: 4px; line-height: 1.2; }
.jea-banner__meta { font-size: 12.5px; color: #6b6b6b; line-height: 1.3; }
.jea-banner__count { font-weight: 600; color: #1c1c1c; }
.jea-banner__sep { margin: 0 4px; opacity: .6; }
.jea-banner__price { color: #1c1c1c; font-weight: 600; }
.jea-banner__arrow {
    flex-shrink: 0;
    color: var(--jea-banner-arrow);
    font-size: 20px;
    font-weight: 700;
    transition: transform .15s;
    padding: 0 4px;
}
.jea-banner:hover .jea-banner__arrow { transform: translateY(3px); }
@media (max-width: 480px) {
    .jea-banner__image { width: 50px; height: 50px; }
    .jea-banner__title { font-size: 14px; }
    .jea-banner__meta { font-size: 11.5px; }
}

/* =========================================================================
   POLISH LAYER — design-engineering pass (Emil + impeccable)
   Overrides earlier rules with custom easings, press feedback, stagger,
   and accessibility (reduced-motion, hover gating, tap-action).
   ========================================================================= */

/* Tabular numbers everywhere a price/count appears — prevents layout shift
   when the value re-renders. */
.jea-card-price,
.jea-list-price,
.jea-pack-price,
.jea-chip-price,
.jea-total-price,
.jea-total-was,
.jea-count,
.jea-savings-badge b,
.jea-qty-input {
    font-variant-numeric: tabular-nums;
}

/* Press feedback on every clickable surface (Emil §"Buttons must feel responsive")
   — scale(0.97) under 160ms ease-out, instant feel. */
.jea-add-btn,
.jea-qty-btn,
.jea-bundle--v1 .jea-card,
.jea-bundle--v2 .jea-list-row:not(.jea-list-row--main),
.jea-bundle--v3 .jea-chip:not(.jea-chip--hero),
.jea-bundle--v3 .jea-scene-item:not(.jea-scene-item--hero),
.jea-bundle--v4 .jea-pack-row,
.jea-banner {
    transition: transform var(--jea-dur-press) var(--jea-ease-out),
                border-color var(--jea-dur) var(--jea-ease-out),
                background-color var(--jea-dur) var(--jea-ease-out),
                box-shadow var(--jea-dur) var(--jea-ease-out),
                opacity var(--jea-dur-enter) var(--jea-ease-out);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
.jea-add-btn:active { transform: scale(0.97); }
.jea-bundle--v1 .jea-card:not(.jea-card--main):active { transform: scale(0.97); }
.jea-bundle--v2 .jea-list-row:not(.jea-list-row--main):active { transform: scale(0.985); }
.jea-bundle--v3 .jea-chip:not(.jea-chip--hero):active { transform: scale(0.96); }
.jea-bundle--v3 .jea-scene-item:not(.jea-scene-item--hero):active { transform: scale(0.96) translateY(-2px); }
.jea-bundle--v4 .jea-pack-row:not(.jea-pack--selected):active { transform: scale(0.99); }
.jea-banner:active { transform: scale(0.99); }
.jea-qty-btn:active { transform: scale(0.92); }

/* Card-image: when its parent card is :active, a tiny scale gives the icon
   a "press confirms target" feel. Doesn't move layout because it scales
   from its own center. */
.jea-bundle--v1 .jea-card:not(.jea-card--main):active .jea-card-image img,
.jea-bundle--v2 .jea-list-row:not(.jea-list-row--main):active .jea-list-img img {
    transform: scale(0.96);
}
.jea-card-image img,
.jea-list-img img {
    transition: transform var(--jea-dur-press) var(--jea-ease-out);
}

/* Hover lifts gated to true hover devices (avoids touch-tap false positives) */
@media (hover: hover) and (pointer: fine) {
    .jea-bundle--v1 .jea-card:not(.jea-card--main):hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
    }
    .jea-banner:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
    }
    .jea-bundle--v4 .jea-pack-row:not(.jea-pack--selected):hover {
        box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
    }
}

/* Focus rings — consistent across all interactive elements */
.jea-bundle :focus-visible {
    outline: 2px solid var(--jea-accent-dark);
    outline-offset: 2px;
    border-radius: 4px;
}
.jea-card-check input:focus-visible + .jea-card-check-mark,
.jea-list-check input:focus-visible + .jea-list-check-mark {
    box-shadow: 0 0 0 3px rgba(255, 193, 7, .35);
    outline: none;
}
.jea-bundle :focus:not(:focus-visible) { outline: none; }

/* Banner pulse: was scale() which shifts adjacent layout; now box-shadow
   ring pulse (off the main thread, no reflow). */
.jea-banner .jea-banner__badge {
    animation: jea-badge-pulse 2.2s var(--jea-ease-in-out) infinite;
}
@keyframes jea-badge-pulse {
    0%, 100% { box-shadow: 0 1px 3px rgba(0,0,0,.15), 0 0 0 0 rgba(255, 193, 7, .55); }
    50%      { box-shadow: 0 1px 3px rgba(0,0,0,.15), 0 0 0 6px rgba(255, 193, 7, 0); }
}

/* Whole-bundle entrance — the panel breathes in once, then the items
   stagger inside it. Two layers feel more curated than a single big fade. */
.jea-bundle {
    animation: jea-bundle-in 360ms var(--jea-ease-out) both;
}
@keyframes jea-bundle-in {
    0%   { opacity: 0; transform: translateY(8px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Bundle entrance — stagger cards/rows so the block feels assembled, not
   slapped in. Falls back gracefully on unsupported browsers. */
.jea-bundle--v1 .jea-bundle-items > .jea-card,
.jea-bundle--v2 .jea-list-row,
.jea-bundle--v3 .jea-chip,
.jea-bundle--v4 .jea-pack-row {
    animation: jea-enter var(--jea-dur-enter) var(--jea-ease-out) both;
}
@keyframes jea-enter {
    0%   { opacity: 0; transform: translateY(6px); }
    100% { opacity: 1; transform: translateY(0); }
}
/* Stagger via :nth-child — under 80ms between items per Emil's guideline */
.jea-bundle--v1 .jea-bundle-items > *:nth-child(1) { animation-delay: 0ms; }
.jea-bundle--v1 .jea-bundle-items > *:nth-child(2) { animation-delay: 40ms; }
.jea-bundle--v1 .jea-bundle-items > *:nth-child(3) { animation-delay: 80ms; }
.jea-bundle--v1 .jea-bundle-items > *:nth-child(4) { animation-delay: 120ms; }
.jea-bundle--v1 .jea-bundle-items > *:nth-child(5) { animation-delay: 160ms; }
.jea-bundle--v1 .jea-bundle-items > *:nth-child(6) { animation-delay: 200ms; }
.jea-bundle--v1 .jea-bundle-items > *:nth-child(7) { animation-delay: 240ms; }
.jea-bundle--v1 .jea-bundle-items > *:nth-child(8) { animation-delay: 280ms; }
.jea-bundle--v1 .jea-bundle-items > *:nth-child(n+9) { animation-delay: 320ms; }
.jea-bundle--v2 .jea-list-row:nth-child(1) { animation-delay: 0ms; }
.jea-bundle--v2 .jea-list-row:nth-child(2) { animation-delay: 50ms; }
.jea-bundle--v2 .jea-list-row:nth-child(3) { animation-delay: 100ms; }
.jea-bundle--v2 .jea-list-row:nth-child(4) { animation-delay: 150ms; }
.jea-bundle--v2 .jea-list-row:nth-child(5) { animation-delay: 200ms; }
.jea-bundle--v2 .jea-list-row:nth-child(6) { animation-delay: 250ms; }
.jea-bundle--v2 .jea-list-row:nth-child(n+7) { animation-delay: 300ms; }
.jea-bundle--v3 .jea-chip:nth-child(1) { animation-delay: 0ms; }
.jea-bundle--v3 .jea-chip:nth-child(2) { animation-delay: 40ms; }
.jea-bundle--v3 .jea-chip:nth-child(3) { animation-delay: 80ms; }
.jea-bundle--v3 .jea-chip:nth-child(4) { animation-delay: 120ms; }
.jea-bundle--v3 .jea-chip:nth-child(5) { animation-delay: 160ms; }
.jea-bundle--v3 .jea-chip:nth-child(6) { animation-delay: 200ms; }
.jea-bundle--v3 .jea-chip:nth-child(n+7) { animation-delay: 240ms; }
.jea-bundle--v4 .jea-pack-row:nth-child(1) { animation-delay: 0ms; }
.jea-bundle--v4 .jea-pack-row:nth-child(2) { animation-delay: 60ms; }
.jea-bundle--v4 .jea-pack-row:nth-child(3) { animation-delay: 120ms; }

/* Pack radio mark — subtle spring on selection */
.jea-bundle--v4 .jea-pack-radio-mark {
    transition: border-color var(--jea-dur) var(--jea-ease-out),
                box-shadow var(--jea-dur) var(--jea-ease-out);
}
.jea-bundle--v4 .jea-pack-radio-mark::after {
    transition: transform var(--jea-dur) var(--jea-ease-spring);
    transform: scale(0.6);
}
.jea-bundle--v4 .jea-pack-row.jea-pack--selected .jea-pack-radio-mark::after {
    transform: scale(1);
}

/* Checkbox-mark scale on toggle (Emil §"never animate from scale(0)") */
.jea-card-check-mark::after,
.jea-list-check-mark::after {
    transition: opacity var(--jea-dur-press) var(--jea-ease-out),
                transform var(--jea-dur-press) var(--jea-ease-spring);
    transform: rotate(42deg) scale(0.92);
    transform-origin: center;
}
.jea-card-check input[type="checkbox"]:checked + .jea-card-check-mark::after,
.jea-list-check input[type="checkbox"]:checked + .jea-list-check-mark::after {
    transform: rotate(42deg) scale(1);
}

/* Card unchecked state — softer fade (was abrupt 0.45 opacity) */
.jea-card--unchecked,
.jea-list-row.jea-card--unchecked,
.jea-chip.jea-card--unchecked,
.jea-scene-item.jea-card--unchecked {
    transition: opacity var(--jea-dur) var(--jea-ease-out),
                filter var(--jea-dur) var(--jea-ease-out);
    filter: saturate(0.5);
}

/* Total price recalc — light flash to register the change */
.jea-total-price.jea-flash {
    animation: jea-total-flash 280ms var(--jea-ease-out) both;
}
@keyframes jea-total-flash {
    0%   { opacity: 0.4; transform: translateY(-2px); }
    100% { opacity: 1;   transform: translateY(0); }
}

/* Hard reduced-motion respect: keep opacity/color, kill movement & pulses
   (Emil §accessibility: reduced motion = fewer/gentler animations). */
@media (prefers-reduced-motion: reduce) {
    .jea-bundle *,
    .jea-bundle *::before,
    .jea-bundle *::after,
    .jea-banner,
    .jea-banner * {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: var(--jea-dur-press) !important;
    }
    .jea-bundle--v1 .jea-card:hover,
    .jea-banner:hover,
    .jea-add-btn:active,
    .jea-qty-btn:active,
    .jea-bundle--v1 .jea-card:active,
    .jea-bundle--v4 .jea-pack-row:active {
        transform: none !important;
    }
    .jea-banner__badge { animation: none !important; }
}
