.deals-hero {
    padding: 5.3rem 0 3.8rem;
    background:
        radial-gradient(circle at top right, rgba(255, 140, 0, 0.16), transparent 30%),
        linear-gradient(135deg, #121314 0%, #0b0c0e 54%, #181614 100%);
    border-bottom: 1px solid rgba(255, 140, 0, 0.16);
}

.deals-hero-inner {
    display: block;
}

.deals-search {
    margin: 0 auto;
    max-width: 760px;
}

.deals-search-row {
    display: flex;
    gap: 0.75rem;
    padding: 0.4rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.deals-search-input {
    flex: 1;
    min-width: 0;
    height: 52px;
    border-radius: 999px;
    border: none;
    background: rgba(255, 255, 255, 0.94);
    color: #111827;
    padding: 0 1.1rem;
    font-size: 1rem;
    outline: none;
}

.deals-search-input::placeholder {
    color: #6b7280;
}

.deals-btn {
    min-width: 82px;
    height: 52px;
    padding: 0 0.95rem;
}

.deals-btn:hover {
    box-shadow: var(--btn-shadow-strong), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.on-sale-search-row {
    gap: 0.55rem;
    padding: 0.32rem;
}

.on-sale-search .deals-search-input {
    height: 46px;
}

.on-sale-search .deals-btn {
    min-width: 82px;
    height: 46px;
    padding: 0 1rem;
    font-size: 0.92rem;
}

.deals-section-head h2 {
    margin: 0;
    color: #ffffff;
}

.deals-section-head p,
.deal-list-summary {
    color: rgba(255, 255, 255, 0.76);
    line-height: 1.85;
}

.deals-stats-grid {
    display: grid;
    gap: 1rem;
}

.deals-stat-card,
.deal-list-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(10px);
}

.deals-stat-card {
    border-radius: 18px;
    padding: 1.15rem 1.2rem;
}

.deals-stat-card span {
    display: block;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.82rem;
    margin-bottom: 0.55rem;
}

.deals-stat-card strong {
    color: #ffffff;
    font-size: 1.02rem;
    line-height: 1.6;
}

.deals-section {
    padding-top: 3.2rem;
    padding-bottom: 4.5rem;
}

.deals-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 1.4rem;
}

.deals-section-head-main {
    min-width: 0;
}

.deals-tabs {
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.deals-tab {
    min-height: 42px;
    padding: 0 1rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: #ececec;
    font-weight: 600;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.deals-tab:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 140, 0, 0.38);
    color: #ffbb63;
}

.deals-tab.is-active {
    border-color: transparent;
    background: linear-gradient(135deg, #ffb347 0%, #ff8c00 100%);
    color: #111111;
    box-shadow: 0 12px 22px rgba(255, 140, 0, 0.22);
}

.deals-list-grid {
    display: grid;
    gap: 1rem;
}

.deals-ebay-panel {
    margin-top: 1rem;
}

.deals-ebay-head {
    margin-bottom: 1rem;
}

.deals-ebay-results {
    display: grid;
    gap: 1rem;
}

.deals-ebay-toolbar {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 1rem;
}

.deals-ebay-toolbar .deals-sort-select {
    flex: 1;
    min-width: 240px;
}

.deals-ebay-pagination {
    margin-top: 1.4rem;
}

.deals-sort-form {
    flex-shrink: 0;
}

.deals-sort-select {
    min-width: 220px;
    height: 42px;
    padding: 0 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    outline: none;
}

.deals-sort-select option {
    color: #111827;
}

.deals-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.deals-page-btn,
.deals-page-dots {
    min-width: 42px;
    height: 42px;
    padding: 0 0.9rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.92rem;
}

.deals-page-btn {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: #e8e8e8;
    transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.deals-page-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 140, 0, 0.45);
    color: #ffb45c;
}

.deals-page-btn.is-active {
    border-color: transparent;
    background: linear-gradient(135deg, #ffb347 0%, #ff8c00 100%);
    color: #131313;
    box-shadow: 0 12px 22px rgba(255, 140, 0, 0.22);
}

.deals-page-btn.is-disabled {
    opacity: 0.45;
    pointer-events: none;
}

.deals-page-dots {
    color: rgba(255, 255, 255, 0.42);
}

.deal-list-card {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    border-radius: 18px;
    overflow: hidden;
}

.deal-list-image {
    height: 138px;
    align-self: start;
    position: relative;
}

.deal-bid-tag {
    position: absolute;
    left: 0.75rem;
    bottom: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    padding: 0 0.6rem;
    border-radius: 999px;
    background: rgba(255, 140, 0, 0.9);
    color: #101010;
    font-size: 0.78rem;
    font-weight: 700;
}

.deal-list-body {
    padding: 0.95rem 1.05rem;
}

.deal-list-card-empty .deal-list-body {
    padding: 1.2rem 1.4rem;
}

.deal-list-card-empty {
    grid-template-columns: 1fr;
}

.deal-list-card-empty .deal-list-top {
    justify-content: center;
    align-items: center;
    text-align: center;
}

.deal-list-card-empty .deal-list-top > div {
    width: 100%;
}

.deal-list-card-empty .deal-list-top h3 {
    text-align: center;
}

.deal-list-card-empty .deal-list-artist {
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    text-align: center;
}

.deal-list-top {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: flex-start;
}

.deal-list-top h3 {
    margin: 0;
    color: #ffffff;
    line-height: 1.22;
}

.deal-list-artist {
    margin: 0.35rem 0 0;
    color: #ffb45c;
    font-size: 0.86rem;
}

.deal-list-price {
    flex-shrink: 0;
    color: #ff8c00;
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.2;
}

.deal-list-price-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.2rem;
}

.deal-list-summary {
    margin: 0.75rem 0 0;
    font-size: 0.86rem;
}

.deal-list-source-price {
    margin: 0;
    margin-left: auto;
    color: rgba(255, 255, 255, 0.72);
    font-size: 1.08rem;
    line-height: 1.2;
    font-weight: 700;
    white-space: nowrap;
    text-align: right;
}

.deal-list-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.4rem;
    padding-top: 0.38rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #d6d6d6;
    font-size: 0.82rem;
    line-height: 1.18;
}

.deal-list-date {
    color: #ffd18a;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.18;
    white-space: nowrap;
    flex: 1;
}

@media (max-width: 1024px) {
    .deal-list-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .deals-hero {
        height: 40vh;
        min-height: 360px;
        padding: 0 1rem;
    }

    .deals-stat-card,
    .deal-list-body {
        padding: 0.76rem;
    }

    .deal-list-image {
        width: 92px;
        height: 92px;
        border-radius: 10px;
        overflow: hidden;
    }

    .deal-list-card {
        grid-template-columns: 92px minmax(0, 1fr);
        border-radius: 14px;
    }

    .deal-list-top {
        flex-direction: row;
        align-items: flex-start;
    }

    .deal-list-top h3 {
        font-size: 0.92rem;
        line-height: 1.32;
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .deal-list-artist,
    .deal-list-summary,
    .deal-list-meta,
    .deal-list-source-price {
        font-size: 0.78rem;
    }

    .deal-list-price {
        font-size: 0.92rem;
    }

    .deal-list-price-wrap {
        align-items: flex-end;
        flex: 0 0 auto;
    }

    .deal-list-date {
        font-size: 0.78rem;
        line-height: 1.15;
        white-space: normal;
    }

    .deals-btn {
        width: auto;
        min-width: 82px;
        height: 52px;
    }

    .deals-search-row {
        flex-direction: row;
        align-items: center;
        padding: 0.55rem;
        border-radius: 20px;
    }

    .deals-search {
        width: 100%;
        margin-top: 3.5rem;
    }

    .deals-pagination {
        justify-content: flex-start;
        gap: 0.5rem;
    }

    .deals-section-head {
        flex-direction: column;
        align-items: stretch;
    }

    .deals-sort-form,
    .deals-sort-select {
        width: 100%;
    }

    .deals-page-btn {
        min-width: 38px;
        height: 38px;
        padding: 0 0.75rem;
        font-size: 0.88rem;
    }

    .deal-list-meta {
        margin-top: 0.32rem;
        padding-top: 0.32rem;
        align-items: flex-start;
    }

    .deal-list-card-empty {
        grid-template-columns: 1fr;
    }

    .deal-list-card-empty .deal-list-image {
        display: none;
    }
}
