.second-chance-page { width: min(1400px, calc(100% - 48px)); margin: 0 auto; padding: 88px 0 104px; }
.second-chance-hero { display: flex; max-width: none; margin-bottom: 30px; align-items: end; justify-content: space-between; gap: 36px; }
.second-chance-hero > div { max-width: 1050px; }
.second-chance-eyebrow { display: inline-block; margin-bottom: 14px; color: #4ea1ff; font-size: .9rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.second-chance-hero h1 { margin: 0 0 18px; font-size: clamp(3rem, 7vw, 5rem); line-height: 1; letter-spacing: -.045em; }
.second-chance-hero p { margin: 0; color: var(--muted); font-size: 1.15rem; line-height: 1.7; }
.second-chance-sort { min-width: 230px; }
.second-chance-sort label { display: block; margin-bottom: 8px; color: #4ea1ff; font-size: .8rem; font-weight: 800; }
.second-chance-sort select { width: 100%; padding: 13px 15px; border: 1px solid var(--border); border-radius: 13px; background: #0b1729; color: var(--text); font: inherit; }
.second-chance-count { margin: 0 0 20px; color: var(--muted); }
.second-chance-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 18px; }
.second-chance-card { overflow: hidden; border: 1px solid var(--border); border-radius: 20px; background: linear-gradient(145deg, rgba(18,31,53,.96), rgba(8,17,32,.96)); }
.second-chance-image { display: flex; height: 180px; align-items: center; justify-content: center; padding: 18px; background: #f8fafc; color: #64748b; text-decoration: none; }
.second-chance-image img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.second-chance-content { display: flex; min-height: 235px; flex-direction: column; padding: 21px; }
.second-chance-brand { min-height: 1.1rem; margin: 0 0 8px; color: #4ea1ff; font-size: .78rem; font-weight: 800; text-transform: uppercase; }
.second-chance-content h2 { margin: 0 0 14px; font-size: 1.05rem; line-height: 1.4; }
.second-chance-content h2 a { color: var(--text); text-decoration: none; }
.second-chance-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.second-chance-tags span { padding: 6px 9px; border: 1px solid rgba(78,161,255,.25); border-radius: 999px; color: #a8c7f0; font-size: .74rem; }
.second-chance-meta { margin: 14px 0 0; color: var(--muted); font-size: .82rem; }
.second-chance-bottom { display: flex; margin-top: auto; align-items: end; justify-content: space-between; gap: 14px; padding-top: 20px; }
.second-chance-bottom div { display: flex; flex-direction: column; gap: 2px; }
.second-chance-bottom div > span { color: var(--muted); font-size: .75rem; }
.second-chance-bottom strong { color: #22c55e; font-size: 1.3rem; }
.second-chance-bottom a { color: #4ea1ff; font-size: .84rem; font-weight: 700; text-decoration: none; }
.second-chance-pagination { display: grid; margin-top: 28px; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; }
.second-chance-pagination-group { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.second-chance-pagination-group-end { justify-content: flex-end; }
.second-chance-pagination a, .second-chance-pagination span { display: inline-flex; width: auto; flex: 0 0 auto; align-items: center; justify-content: center; padding: 11px 16px; border: 1px solid var(--border); border-radius: 12px; color: #4ea1ff; font-weight: 700; text-decoration: none; white-space: nowrap; }
.second-chance-pagination span[aria-disabled="true"] { opacity: .45; }
.second-chance-pagination strong { color: var(--muted); font-weight: 700; white-space: nowrap; }
.second-chance-pagination-footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 24px; margin-top: 28px; }
.second-chance-pagination-footer .second-chance-pagination { display: flex; grid-column: 2; align-items: center; justify-content: center; gap: 8px; margin-top: 0; }
.second-chance-pagination-footer .page-size-selector { display: flex; grid-column: 3; align-items: center; justify-self: end; gap: 10px; }
.second-chance-pagination-footer .page-size-selector label { color: var(--muted); font-size: .84rem; font-weight: 700; white-space: nowrap; }
.second-chance-pagination-footer .page-size-selector select { min-width: 76px; padding: 11px 34px 11px 12px; border: 1px solid var(--border); border-radius: 11px; background: #0b1729; color: var(--text); font: inherit; cursor: pointer; }
@media (max-width: 620px) {
    .second-chance-pagination { grid-template-columns: 1fr 1fr; }
    .second-chance-pagination strong { grid-column: 1 / -1; grid-row: 1; text-align: center; }
    .second-chance-pagination-footer { grid-template-columns: 1fr; justify-items: center; }
    .second-chance-pagination-footer .second-chance-pagination { grid-column: 1; flex-wrap: wrap; }
    .second-chance-pagination-footer .second-chance-pagination strong { order: -1; width: 100%; }
    .second-chance-pagination-footer .page-size-selector { grid-column: 1; justify-self: center; }
}
.second-chance-empty { display: flex; flex-direction: column; gap: 10px; padding: 32px; border: 1px solid var(--border); border-radius: 22px; background: rgba(8,17,32,.86); }
.second-chance-empty span { color: var(--muted); }
@media (max-width: 780px) { .second-chance-hero { align-items: stretch; flex-direction: column; } .second-chance-sort { min-width: 0; width: min(100%, 320px); } }
@media (max-width: 620px) { .second-chance-page { width: min(100% - 28px, 1400px); padding: 56px 0 72px; } .second-chance-grid { grid-template-columns: 1fr; } }
/* Align second-chance card actions */
.second-chance-card {
    display: flex;
    height: 100%;
    flex-direction: column;
}

.second-chance-image {
    flex: 0 0 180px;
}

.second-chance-content {
    width: 100%;
    flex: 1 1 auto;
    box-sizing: border-box;
}

.second-chance-bottom {
    width: 100%;
}

.second-chance-bottom > a {
    flex: 0 0 auto;
    padding-bottom: 2px;
}
/* DealRadar dark product image canvas */
.second-chance-image {
    background:
        radial-gradient(circle at 50% 42%, rgba(49, 113, 184, 0.24), transparent 58%),
        linear-gradient(145deg, rgba(15, 31, 53, 0.98), rgba(7, 17, 31, 0.98));
    box-shadow: inset 0 -1px 0 rgba(78, 161, 255, 0.14);
}

/* DealRadar product overview white image backgrounds */
/* Product overview image zones use the same white background as the product imagery. */
.category-product-image,
.category-product-image img,
.second-chance-image,
.second-chance-image img {
    background: #f7f9fc !important;
}
/* second-chance-card-cleanup-v1: stable card rhythm and compact labels */
.second-chance-content h2 {
    min-height: 2.94em;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}
.second-chance-tags { min-height: 2rem; align-items: flex-start; }
.second-chance-tags span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* second-chance-utf8-word-wrap-v1: keep title truncation at complete words */
.second-chance-content h2 {
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: none;
    text-overflow: clip;
}
.second-chance-content h2 a {
    word-break: normal;
    overflow-wrap: break-word;
}
/* second-chance-title-no-midword-ellipsis-v1: clip after two complete line boxes without a CSS ellipsis */
.second-chance-content h2 {
    display: block;
    max-height: 2.94em;
    overflow: hidden;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
    text-overflow: clip;
}
.second-chance-content h2 a {
    word-break: normal;
    overflow-wrap: normal;
}
/* second-chance-title-punctuation-wrap-v1: avoid orphaned punctuation at the end of the second line */
.second-chance-content h2 {
    text-wrap: balance;
}
.second-chance-content h2 a {
    text-wrap: pretty;
}
/* unified-product-card-actions-v1: consistent filled action button on product cards */
.second-chance-bottom > a.product-card-action {
    display: inline-flex;
    min-height: 44px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border: 1px solid rgba(96, 165, 250, 0.72);
    border-radius: 11px;
    background: #2563eb;
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.20);
    transition: transform 150ms ease, background 150ms ease, box-shadow 150ms ease;
}
.second-chance-bottom > a.product-card-action:hover,
.second-chance-bottom > a.product-card-action:focus-visible {
    background: #3478f3;
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.32);
}
/* deals-retour-local-search-v1 */
.category-sort input, .second-chance-sort input { min-width: 220px; padding: .7rem .85rem; border: 1px solid var(--border-color, #24456d); border-radius: .6rem; background: var(--surface-color, #0b1729); color: inherit; }


.category-sort,.second-chance-sort{display:grid;grid-template-columns:minmax(220px,1fr) minmax(190px,230px);gap:14px 18px;align-items:end}.category-sort input,.second-chance-sort input{width:100%;box-sizing:border-box;min-width:0}@media(max-width:780px){.category-sort,.second-chance-sort{grid-template-columns:1fr}}
/* overview-controls-layout-v1 */
/* Keep local search and sorting together as one calm, aligned toolbar. */
.deals-products-page .category-sort,
.second-chance-page .second-chance-sort {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    min-width: min(560px, 100%);
    padding: 14px;
    border: 1px solid rgba(78, 161, 255, .18);
    border-radius: 16px;
    background: rgba(11, 23, 41, .62);
}
.deals-products-page .category-sort > div,
.second-chance-page .second-chance-sort > div {
    min-width: 0;
    flex: 1 1 0;
}
.deals-products-page .category-sort .overview-search,
.second-chance-page .second-chance-sort .overview-search { flex-basis: 230px; }
.deals-products-page .category-sort .overview-sort,
.second-chance-page .second-chance-sort .overview-sort { flex-basis: 230px; }
.deals-products-page .category-sort label,
.second-chance-page .second-chance-sort label {
    margin: 0 0 7px 2px;
    line-height: 1.2;
}
.deals-products-page .category-sort input,
.deals-products-page .category-sort select,
.second-chance-page .second-chance-sort input,
.second-chance-page .second-chance-sort select {
    width: 100%;
    min-height: 48px;
    box-sizing: border-box;
}
@media (max-width: 780px) {
    .deals-products-page .category-sort,
    .second-chance-page .second-chance-sort {
        align-items: stretch;
        flex-direction: column;
        min-width: 0;
    }

    .deals-products-page .category-sort > .overview-search,
    .deals-products-page .category-sort > .overview-sort,
    .second-chance-page .second-chance-sort > .overview-search,
    .second-chance-page .second-chance-sort > .overview-sort {
        flex: 0 0 auto;
        height: auto;
        min-height: 0;
    }
}
