
:root {
    --listing-bg: #fbfbf9;
    --card: #fff;
    --soft: #f4f7f5;
    --soft-green: #edf6f2;
}

body {
    background: var(--listing-bg)
}

.listing-page {
    max-width: 1280px;
    margin: 0 auto;
    padding: 34px 28px 90px
}

.shop-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
    color: var(--muted);
    font-size: 13px
}

    .shop-breadcrumb a {
        text-decoration: none;
        color: var(--muted)
    }

    .shop-breadcrumb strong {
        color: var(--brand)
    }

.listing-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 34px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--line)
}

.listing-eyebrow {
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .11em;
    text-transform: uppercase;
    color: var(--brand2);
    margin-bottom: 9px
}

.listing-hero h1 {
    font-size: 48px;
    line-height: 1.02;
    letter-spacing: -.045em;
    margin: 0 0 12px
}

.listing-hero p {
    max-width: 690px;
    margin: 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.65
}

.listing-hero-note {
    flex: 0 0 300px;
    padding: 18px 20px;
    border: 1px solid #d6e4df;
    border-radius: 18px;
    background: var(--soft-green)
}

    .listing-hero-note strong {
        display: block;
        color: var(--brand);
        font-size: 14px;
        margin-bottom: 5px
    }

    .listing-hero-note span {
        display: block;
        color: var(--muted);
        font-size: 12.5px;
        line-height: 1.5
    }

.device-pending-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 26px;
    padding: 17px 20px;
    border: 1px solid #d3e3dd;
    border-radius: 18px;
    background: var(--soft-green)
}

.dpb-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff;
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 900
}

.dpb-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--brand)
}

.dpb-sub {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12.5px
}

.listing-layout {
    display: grid;
    grid-template-columns: 235px minmax(0,1fr);
    gap: 34px;
    align-items: start
}

.filters-panel {
    position: sticky;
    top: 24px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #fff
}

.filters-title {
    font-size: 20px;
    margin: 0 0 18px
}

.filter-group {
    padding: 18px 0;
    border-top: 1px solid var(--line)
}

    .filter-group:first-of-type {
        border-top: 0;
        padding-top: 0
    }

.filter-label {
    display: block;
    margin-bottom: 11px;
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #53605c
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 10px
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 14px;
    color: #3f4845
}

    .filter-option input {
        width: 16px;
        height: 16px;
        accent-color: var(--brand)
    }

.filter-count {
    margin-left: auto;
    color: #929b98;
    font-size: 11px
}

.compatibility {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 13px;
    border-radius: 13px;
    background: var(--soft-green);
    color: var(--brand);
    font-size: 13px;
    font-weight: 750
}

    .compatibility input {
        accent-color: var(--brand)
    }

.results-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px
}

.results-count strong {
    font-size: 16px
}

.results-count span {
    color: var(--muted);
    font-size: 13px;
    margin-left: 5px
}

.sort-select {
    height: 44px;
    padding: 0 38px 0 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: #3e4744
}

.shop-message-strip {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 12px;
    margin-bottom: 24px
}

.message-card {
    padding: 17px 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff
}

    .message-card strong {
        display: block;
        font-size: 14px;
        margin-bottom: 4px;
        color: var(--brand)
    }

    .message-card span {
        font-size: 12px;
        line-height: 1.5;
        color: var(--muted)
    }

.product-grid-list {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 18px
}

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: transform .18s,border-color .18s,box-shadow .18s
}

    .product-card:hover {
        transform: translateY(-3px);
        border-color: #a9c2ba;
        box-shadow: 0 16px 38px rgba(20,37,33,.07)
    }

.product-thumb {
    position: relative;
    height: 245px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: #fff;
    border-bottom: 1px solid #edf0ee
}

    .product-thumb img {
        width: 100%;
        height: 100%;
        object-fit: contain
    }

.product-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px
}

.product-maker {
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--brand2)
}

.product-name {
    font-size: 18px;
    line-height: 1.3;
    font-weight: 800;
    margin: 7px 0 5px
}

.product-meta {
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.5
}

.product-rating {
    margin-top: 13px;
    font-size: 12px;
    color: var(--muted)
}

.stars {
    color: var(--brand2);
    letter-spacing: 1px
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 15px
}

    .product-price strong {
        font-size: 21px;
        color: var(--brand)
    }

    .product-price span {
        font-size: 11px;
        color: var(--muted)
    }

.blister-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    align-self: flex-start;
    margin-top: 13px;
    padding: 7px 10px;
    border-radius: 999px;
    background: var(--soft-green);
    color: var(--brand);
    font-size: 11px;
    font-weight: 800
}

.blister-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand2)
}

.first-choice {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .04em
}

.placeholder-pack {
    width: 160px;
    height: 112px;
    border: 1px solid #dce4e0;
    border-radius: 13px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 16px;
    font-size: 16px;
    font-weight: 800;
    color: var(--brand);
    box-shadow: 0 9px 22px rgba(20,37,33,.05)
}

    .placeholder-pack small {
        display: block;
        margin-top: 5px;
        color: var(--muted);
        font-size: 9px;
        font-weight: 600
    }

@media (max-width: 1050px) {
    .product-grid-list {
        grid-template-columns: repeat(2,minmax(0,1fr))
    }

    .listing-layout {
        grid-template-columns: 205px minmax(0,1fr)
    }

    .listing-hero {
        align-items: flex-start;
        flex-direction: column
    }

    .listing-hero-note {
        flex: auto;
        width: 100%;
        max-width: 520px
    }
}

@media (max-width: 760px) {
    .listing-page {
        padding: 26px 18px 70px
    }

    .listing-layout {
        grid-template-columns: 1fr
    }

    .filters-panel {
        position: static
    }

    .product-grid-list {
        grid-template-columns: 1fr
    }

    .shop-message-strip {
        grid-template-columns: 1fr
    }

    .listing-hero h1 {
        font-size: 39px
    }
}

.product-card--skeleton {
    pointer-events: none;
    cursor: default;
}

.skeleton-block {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #edf0ee;
}

    .skeleton-block::after {
        content: "";
        position: absolute;
        inset: 0;
        transform: translateX(-100%);
        background: linear-gradient( 90deg, transparent 0%, rgba(255, 255, 255, .7) 50%, transparent 100% );
        animation: skeleton-shimmer 1.4s infinite;
    }

.skeleton-product-image {
    width: 64%;
    height: 64%;
    min-height: 180px;
    margin: auto;
    border-radius: 14px;
}

.skeleton-maker {
    width: 32%;
    height: 12px;
    margin-bottom: 17px;
}

.skeleton-name {
    width: 88%;
    height: 22px;
    margin-bottom: 8px;
}

.skeleton-name--short {
    width: 58%;
}

.skeleton-meta {
    width: 72%;
    height: 13px;
    margin-top: 15px;
}

.skeleton-rating {
    width: 64%;
    height: 13px;
    margin-top: 22px;
}

.skeleton-price {
    width: 34%;
    height: 29px;
    margin-top: 25px;
}

.skeleton-reward {
    width: 76%;
    height: 37px;
    margin-top: 17px;
    border-radius: 999px;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@keyframes skeleton-shimmer {
    100% {
        transform: translateX(100%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .skeleton-block::after {
        animation: none;
    }
}


.product-scroll-sentinel {
    width: 100%;
    height: 1px;
}

.product-next-page-loader {
    padding: 28px 16px;
    text-align: center;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.product-load-retry {
    display: block;
    margin: 24px auto 0;
    padding: 12px 20px;
    border: 1px solid var(--brand);
    border-radius: 999px;
    background: #fff;
    color: var(--brand);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

    .product-load-retry:hover {
        background: var(--brand);
        color: #fff;
    }

    .product-load-retry[hidden],
    .product-next-page-loader[hidden] {
        display: none;
    }


/* Category filters: initial skeleton, using existing sidebar spacing. */
.filter-skeleton {
    display: grid;
    gap: 13px;
    padding: 8px 0;
}

.filter-skeleton-title {
    width: 52%;
    height: 13px;
    background: #e5e7eb;
    border-radius: 4px;
    margin: 10px 0;
}

.filter-skeleton-line {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .filter-skeleton-line span:first-child {
        width: 16px;
        height: 16px;
        border-radius: 3px;
        background: #e5e7eb;
    }

    .filter-skeleton-line span:last-child {
        width: 65%;
        height: 10px;
        border-radius: 4px;
        background: #e5e7eb;
    }

    .filter-skeleton-title, .filter-skeleton-line span {
        animation: filterShimmer 1.5s ease-in-out infinite alternate;
    }

@keyframes filterShimmer {
    to {
        opacity: .45;
    }
}

.filter-options .filter-option {
    cursor: pointer;
}

.filter-count {
    margin-left: auto;
}

/* Product-card price alignment: same baseline on each grid row. */
.product-grid-list > .product-card {
    height: 100%;
}

.product-card__details {
    min-width: 0;
}

.product-card__pricing {
    margin-top: auto;
    padding-top: 20px;
}

    .product-card__pricing .product-price {
        margin-top: 0;
    }

/* API-calculated recovery rewards, kept below the aligned price row. */
.product-blister-bucks {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 10px;
}

    .product-blister-bucks .blister-pill {
        margin-top: 0;
        max-width: 100%;
        font-size: 10px;
        line-height: 1.35;
        padding: 6px 10px;
    }

.blister-pill__label {
    overflow-wrap: anywhere;
}

.blister-points-info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
    border: 1px solid #9aaea5;
    border-radius: 50%;
    color: var(--brand);
    font-size: 11px;
    font-weight: 700;
    cursor: help;
    flex: 0 0 auto;
}

    .blister-points-info:focus-visible {
        outline: 2px solid var(--brand);
        outline-offset: 2px;
    }
