/* JustPick Explore */
.jpe-wrap { font-family: "Segoe UI", system-ui, sans-serif; color: #1a1a1a; max-width: 1200px; margin: 0 auto; padding: 0 16px 48px; }
.jpe-wrap * { box-sizing: border-box; }
.jpe-wrap a { text-decoration: none; color: inherit; }

/* Hero — white split layout */
.jpe-hero {
    display: flex;
    align-items: center;
    gap: 40px;
    background: #fff;
    border-radius: 20px;
    padding: 48px 48px 44px;
    margin-bottom: 0;
    border: 1px solid #f0f0f0;
    box-shadow: 0 2px 16px rgba(0,0,0,.05);
    overflow: hidden;
}

/* Left column */
.jpe-hero__left {
    flex: 0 0 46%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Title */
.jpe-hero__title {
    font-size: clamp(2.4rem, 4vw, 4rem);
    font-weight: 900;
    color: #111;
    margin: 0 0 14px;
    line-height: 1.05;
    letter-spacing: -.04em;
}
.jpe-hero__accent {
    color: #D4001A;
    font-style: normal;
}

/* Sub */
.jpe-hero__sub {
    font-size: .93rem;
    color: #666;
    margin: 0 0 28px;
    line-height: 1.5;
}

/* CTA link */
.jpe-hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #D4001A;
    color: #fff !important;
    font-size: .95rem;
    font-weight: 700;
    padding: 13px 28px;
    border-radius: 100px;
    text-decoration: none !important;
    letter-spacing: -.01em;
    margin-bottom: 28px;
    transition: background .18s, transform .15s;
    box-shadow: 0 4px 14px rgba(212,0,26,.28);
}
.jpe-hero__cta:hover { background: #b0001a; transform: translateY(-1px); }

/* Trust strip */
.jpe-hero__trust {
    display: flex;
    align-items: center;
    gap: 0;
}
.jpe-hero__trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .78rem;
    font-weight: 600;
    color: #444;
    padding: 0 16px;
}
.jpe-hero__trust-item:first-child { padding-left: 0; }
.jpe-hero__trust-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f5f5f5;
    font-size: .7rem;
    font-weight: 900;
    color: #D4001A;
    flex-shrink: 0;
}
.jpe-hero__trust-icon--chf { letter-spacing: -.04em; font-size: .62rem; }
.jpe-hero__trust-sep {
    width: 1px;
    height: 24px;
    background: #e0e0e0;
    flex-shrink: 0;
}

/* Right column — 3 product cards */
.jpe-hero__right {
    flex: 1;
    overflow: hidden;
    min-width: 0;
    position: relative;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
            mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
.jpe-hero__marquee {
    display: flex;
    gap: 12px;
    width: max-content;
    animation: jpeMarquee calc(var(--slide-count, 50) * 5s) linear infinite;
}
.jpe-hero__right:hover .jpe-hero__marquee { animation-play-state: paused; }
@keyframes jpeMarquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
.jpe-hero__marquee .jpe-hero__card {
    width: clamp(180px, 22vw, 240px);
    flex: 0 0 auto;
}
.jpe-hero__card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fafafa;
    border: 1.5px solid #eee;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none !important;
    color: inherit !important;
    transition: all .2s;
}
.jpe-hero__card:hover {
    border-color: #D4001A;
    box-shadow: 0 6px 22px rgba(212,0,26,.12);
    transform: translateY(-3px);
}
.jpe-hero__card-disc {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    background: #D4001A;
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 100px;
    line-height: 1.2;
    box-shadow: 0 2px 6px rgba(212,0,26,.3);
}
.jpe-hero__card-img {
    position: relative;
    background: #fff;
    padding-bottom: 100%;
    overflow: hidden;
}
.jpe-hero__card-img img {
    position: absolute;
    inset: 10px;
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    object-fit: contain;
}
.jpe-hero__card-body {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: #fff;
    border-top: 1px solid #eee;
}
.jpe-hero__card-cat {
    font-size: .64rem;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.jpe-hero__card-name {
    font-size: .78rem;
    font-weight: 500;
    color: #1a1a1a;
    line-height: 1.3;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.jpe-hero__card-pricing {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-top: 4px;
    flex-wrap: wrap;
}
.jpe-hero__card-sale {
    font-size: .95rem;
    font-weight: 900;
    color: #D4001A;
    line-height: 1;
}
.jpe-hero__card-regular {
    font-size: .72rem;
    color: #aaa;
    text-decoration: line-through;
}
.jpe-hero__card-cta {
    display: block;
    margin-top: 8px;
    font-size: .78rem;
    font-weight: 700;
    color: #1a1a1a;
    border: 1.5px solid #ddd;
    border-radius: 6px;
    padding: 6px 10px;
    text-align: center;
    transition: background .15s, border-color .15s;
}
.jpe-hero__card:hover .jpe-hero__card-cta {
    background: #D4001A;
    border-color: #D4001A;
    color: #fff;
}

.jpe-search-wrap { position: relative; max-width: 600px; margin: 0 auto; }
.jpe-search-wrap--toolbar { max-width: none; flex: 1; margin: 0; }
.jpe-search__icon { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); z-index: 1; display: flex; align-items: center; pointer-events: none; }
.jpe-search { width: 100%; padding: 11px 44px 11px 44px; border: 1.5px solid #e0e0e0; border-radius: 100px; font-size: .9rem; background: #fff; box-shadow: none; outline: none; color: #111; transition: border-color .18s; }
.jpe-search:focus { border-color: #D4001A; box-shadow: 0 0 0 3px rgba(212,0,26,.08); }
.jpe-search::placeholder { color: #9ca3af; }
.jpe-search__clear { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); background: none; border: none; color: #aaa; font-size: .9rem; cursor: pointer; padding: 6px 10px; border-radius: 50%; display: none; transition: color .15s, background .15s; }
.jpe-search__clear.visible { display: block; }
.jpe-search__clear:hover { background: #f0f0f0; color: #D4001A; }

/* Category strip — compact pill chips */
.jpe-cats { margin: 20px 0 24px; }
.jpe-cats__toggle { display: none; }
.jpe-cats__strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: center;
}
.jpe-cat {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 100px;
    padding: 6px 14px 6px 6px;
    cursor: pointer;
    transition: all .18s;
    white-space: nowrap;
    font-size: .82rem;
    font-weight: 600;
    color: #333;
}
.jpe-cat:hover { border-color: var(--cat-color, #1a1a1a); color: var(--cat-color, #1a1a1a); background: #fafafa; }
.jpe-cat.active {
    background: var(--cat-color, #1a1a1a);
    border-color: var(--cat-color, #1a1a1a);
    color: #fff;
}
.jpe-cat.active .jpe-cat__count { background: rgba(255,255,255,.22); color: #fff; }
.jpe-cat__thumb {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}
.jpe-cat.active .jpe-cat__thumb { background: rgba(255,255,255,.2); }
.jpe-cat__thumb img { width: 100%; height: 100%; object-fit: cover; }
.jpe-cat__thumb--all { color: #888; }
.jpe-cat.active .jpe-cat__thumb--all { color: rgba(255,255,255,.7); }
.jpe-cat__label { font-size: .82rem; font-weight: 600; }
.jpe-cat__count { font-size: .7rem; font-weight: 700; color: #888; background: #f0f0f0; padding: 1px 8px; border-radius: 100px; }

/* Hot deals — compact horizontal strip */
.jpe-hot { margin-bottom: 28px; }
.jpe-hot__title { font-size: 1.05rem; font-weight: 800; margin: 0 0 10px; }
.jpe-hot__strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.jpe-hot__card { background: #fff; border: 1px solid #eee; border-radius: 10px; overflow: hidden; transition: all .2s; display: flex; }
.jpe-hot__card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); transform: translateY(-2px); border-color: #D4001A; }
.jpe-hot__img { position: relative; background: #fafafa; width: 72px; flex-shrink: 0; }
.jpe-hot__img img { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); object-fit: contain; }
.jpe-hot__discount { position: absolute; top: 4px; left: 4px; z-index: 2; background: #D4001A; color: #fff; font-weight: 800; font-size: .65rem; padding: 2px 6px; border-radius: 4px; }
.jpe-hot__body { padding: 8px 10px; display: flex; flex-direction: column; justify-content: center; min-width: 0; flex: 1; }
.jpe-hot__name { font-size: .72rem; font-weight: 500; margin: 0 0 3px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.jpe-hot__price { font-size: .88rem; font-weight: 900; color: #D4001A; line-height: 1; }
.jpe-hot__shop { font-size: .62rem; color: #888; text-transform: uppercase; margin-top: 3px; letter-spacing: .02em; }

/* Main section */
.jpe-main { margin-top: 16px; }
.jpe-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.jpe-filter-toggle { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1.5px solid #e0e0e0; color: #1a1a1a; padding: 10px 18px; border-radius: 100px; font-size: .88rem; font-weight: 600; cursor: pointer; transition: all .18s; }
.jpe-filter-toggle:hover { border-color: #1a1a1a; }
.jpe-filter-toggle.open { background: #1a1a1a; color: #fff; border-color: #1a1a1a; }
.jpe-result-count { background: #f0f0f0; color: #555; padding: 2px 10px; border-radius: 100px; font-size: .78rem; font-weight: 700; }
.jpe-filter-toggle.open .jpe-result-count { background: rgba(255,255,255,.22); color: #fff; }
.jpe-sort { padding: 10px 14px; border: 1.5px solid #e0e0e0; border-radius: 8px; background: #fff; font-size: .88rem; cursor: pointer; min-height: 40px; }

/* Filters panel */
.jpe-filters { background: #fff; border: 1.5px solid #e5e7eb; border-radius: 14px; padding: 20px; margin-bottom: 20px; display: flex; flex-wrap: wrap; gap: 20px; }
.jpe-filters[hidden] { display: none; }
.jpe-filter { flex: 1; min-width: 180px; }
.jpe-filter--wide { flex: 2; min-width: 280px; }
.jpe-filter__label { display: block; font-size: .78rem; font-weight: 700; color: #666; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px; }
.jpe-disc-val { color: #D4001A; }
.jpe-disc-slider { width: 100%; height: 6px; background: #f0f0f0; border-radius: 3px; outline: none; -webkit-appearance: none; appearance: none; }
.jpe-disc-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #D4001A; cursor: pointer; border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.jpe-disc-slider::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #D4001A; cursor: pointer; border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.jpe-price-row { display: flex; align-items: center; gap: 8px; }
.jpe-price-min, .jpe-price-max { width: 90px; padding: 8px 10px; border: 1.5px solid #e0e0e0; border-radius: 8px; font-size: .88rem; outline: none; }
.jpe-price-min:focus, .jpe-price-max:focus { border-color: #D4001A; }

.jpe-subcats { display: flex; flex-wrap: wrap; gap: 6px; }
.jpe-subcat { border: 1.5px solid #e0e0e0; background: #fff; color: #333; padding: 6px 14px; border-radius: 100px; font-size: .82rem; font-weight: 500; cursor: pointer; transition: all .18s; display: inline-flex; align-items: center; gap: 6px; }
.jpe-subcat:hover { border-color: #D4001A; color: #D4001A; }
.jpe-subcat.active { background: #D4001A !important; border-color: #D4001A !important; color: #fff !important; font-weight: 600; }
.jpe-subcat__count { background: rgba(0,0,0,.08); padding: 1px 7px; border-radius: 100px; font-size: .72rem; font-weight: 700; }
.jpe-subcat.active .jpe-subcat__count { background: rgba(255,255,255,.22); color: #fff; }

.jpe-shops { display: flex; flex-wrap: wrap; gap: 6px; max-height: 100px; overflow-y: auto; }
.jpe-shop { border: 1.5px solid #e0e0e0; background: #fff; color: #333; padding: 5px 12px; border-radius: 100px; font-size: .78rem; font-weight: 500; cursor: pointer; transition: all .18s; }
.jpe-shop:hover { border-color: #D4001A; color: #D4001A; }
.jpe-shop.active { background: #D4001A; border-color: #D4001A; color: #fff; font-weight: 600; }

.jpe-gender { display: flex; gap: 6px; flex-wrap: wrap; }
.jpe-gender-btn { border: 1.5px solid #e0e0e0; background: #fff; color: #333; padding: 6px 14px; border-radius: 100px; font-size: .82rem; cursor: pointer; transition: all .18s; }
.jpe-gender-btn:hover { border-color: #D4001A; color: #D4001A; }
.jpe-gender-btn.active { background: #D4001A !important; border-color: #D4001A !important; color: #fff !important; font-weight: 600; }

.jpe-filter__footer { width: 100%; text-align: right; border-top: 1px solid #eee; padding-top: 12px; margin-top: 4px; }
.jpe-reset { background: none; border: none; color: #666; font-size: .82rem; font-weight: 600; cursor: pointer; text-decoration: underline; }
.jpe-reset:hover { color: #D4001A; }

/* Showing count */
.jpe-showing { text-align: center; color: #666; font-size: .85rem; margin-bottom: 14px; }
.jpe-showing[hidden] { display: none; }

/* Grid */
.jpe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.jpe-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; display: flex; flex-direction: column; overflow: hidden; transition: all .2s; }
.jpe-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,.12); transform: translateY(-4px); border-color: #d1d5db; }
.jpe-card__img { position: relative; background: #fafafa; padding-bottom: 72%; overflow: hidden; }
.jpe-card__img img { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); object-fit: contain; transition: transform .3s; }
.jpe-card:hover .jpe-card__img img { transform: scale(1.06); }
.jpe-card__discount { position: absolute; top: 10px; left: 10px; z-index: 2; background: #D4001A; color: #fff; font-weight: 800; font-size: .78rem; padding: 4px 10px; border-radius: 100px; box-shadow: 0 2px 6px rgba(212,0,26,.3); }
.jpe-card__body { padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1; border-top: 1px solid #e5e7eb; }
.jpe-card__name { font-size: .86rem; font-weight: 500; line-height: 1.35; margin: 0 0 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.jpe-card__pricing { display: flex; align-items: baseline; gap: 8px; margin-top: auto; }
.jpe-card__regular { font-size: .76rem; color: #9ca3af; text-decoration: line-through; }
.jpe-card__sale { font-size: 1.1rem; font-weight: 900; color: #1a1a1a; }
.jpe-card__shop { font-size: .7rem; color: #888; text-transform: uppercase; margin-top: 6px; font-weight: 600; letter-spacing: .03em; }
.jpe-card__cta { margin-top: 9px; font-size: .78rem; font-weight: 700; color: #D4001A; }

/* Load more */
.jpe-load-more { text-align: center; margin-top: 28px; }
.jpe-load-more[hidden] { display: none; }
.jpe-load-more__btn { border: 2px solid #D4001A; background: transparent; color: #D4001A; font-weight: 700; font-size: .95rem; padding: 12px 36px; border-radius: 8px; cursor: pointer; transition: all .18s; }
.jpe-load-more__btn:hover { background: #D4001A; color: #fff; }

/* Empty state */
.jpe-empty { text-align: center; padding: 60px 20px; color: #888; font-size: 1.1rem; background: #fafafa; border-radius: 14px; margin-top: 20px; }
.jpe-empty[hidden] { display: none; }

/* Gender filter — hidden unless sportfashion category active */
.jpe-filter--gender { display: none; }

/* Partner ticker */
.jpe-partners {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #f0f0f0;
    overflow: hidden;
}
.jpe-partners__label {
    text-align: center;
    font-size: .7rem;
    font-weight: 700;
    color: #bbb;
    text-transform: uppercase;
    letter-spacing: .1em;
    margin: 0 0 16px;
}
.jpe-partners__track-wrap {
    overflow: hidden;
    position: relative;
}
.jpe-partners__track-wrap::before,
.jpe-partners__track-wrap::after {
    content: "";
    position: absolute;
    top: 0; bottom: 0;
    width: 60px;
    z-index: 2;
    pointer-events: none;
}
.jpe-partners__track-wrap::before { left: 0; background: linear-gradient(to right, #fff, transparent); }
.jpe-partners__track-wrap::after  { right: 0; background: linear-gradient(to left, #fff, transparent); }
.jpe-partners__track {
    display: flex;
    align-items: center;
    gap: 32px;
    width: max-content;
    animation: jpe-marquee 40s linear infinite;
}
.jpe-partners__track:hover { animation-play-state: paused; }
@keyframes jpe-marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
.jpe-partners__logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    opacity: .8;
    transition: opacity .2s, transform .2s;
}
.jpe-partners__logo:hover { opacity: 1; transform: scale(1.08); }
.jpe-partners__logo img {
    height: 28px;
    width: auto;
    max-width: 100px;
    object-fit: contain;
}

/* Mobile */
@media (max-width: 768px) {
    .jpe-hero { flex-direction: column; padding: 28px 20px 24px; gap: 24px; }
    .jpe-hero__left { width: 100%; }
    .jpe-hero__title { font-size: clamp(2rem, 9vw, 2.8rem); }
    .jpe-hero__right { width: 100%; grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .jpe-hero__card-name { font-size: .72rem; }
    .jpe-hero__card-sale { font-size: .82rem; }
    .jpe-hero__trust-item { padding: 0 10px; font-size: .72rem; }
    .jpe-cats { position: relative; }
    .jpe-cats__toggle {
        display: flex; align-items: center; gap: 10px; width: 100%;
        background: #fff; border: 1.5px solid #e5e7eb; border-radius: 12px;
        padding: 12px 16px; font-size: .92rem; font-weight: 600; cursor: pointer;
        transition: border-color .18s;
    }
    .jpe-cats__toggle:hover { border-color: #D4001A; }
    .jpe-cats__toggle-label { color: #888; font-weight: 500; }
    .jpe-cats__toggle-current { flex: 1; text-align: left; color: #1a1a1a; }
    .jpe-cats__toggle-chev { transition: transform .2s; color: #888; }
    .jpe-cats__toggle[aria-expanded="true"] .jpe-cats__toggle-chev { transform: rotate(180deg); }
    .jpe-cats__strip {
        display: none;
        flex-direction: column; flex-wrap: nowrap; gap: 6px;
        margin-top: 8px; padding: 12px;
        background: #fff; border: 1.5px solid #e5e7eb; border-radius: 12px;
        max-height: 60vh; overflow-y: auto;
    }
    .jpe-cats__toggle[aria-expanded="true"] + .jpe-cats__strip { display: flex; }
    .jpe-cat { flex-shrink: 0; width: 100%; justify-content: flex-start; }
    .jpe-hot__strip { grid-template-columns: repeat(2, 1fr); }
    .jpe-filters { flex-direction: column; gap: 14px; padding: 16px; }
    .jpe-filter, .jpe-filter--wide { min-width: 100%; }
    .jpe-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .jpe-toolbar { flex-direction: column; align-items: stretch; gap: 8px; }
    .jpe-sort { width: 100%; }
    .jpe-search-wrap--toolbar { max-width: none; }
    .jpe-search { padding: 13px 44px 13px 44px; font-size: .9rem; }
}
