.offer-grid,
.coupon-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fill, minmax(218px, 1fr));
}

.offers-market {
    background: #f5f5f5;
    border-top: 1px solid var(--color-border);
    padding: 34px 0 46px;
}

.market-heading {
    align-items: end;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.market-heading h2 {
    font-size: 1.42rem;
    line-height: 1.1;
    margin: 0;
}

.market-heading p {
    color: #4b5563;
    font-weight: 500;
    margin: 2px 0 0;
}

.market-sort {
    display: grid;
    gap: 4px;
    min-width: 220px;
}

.market-sort span {
    color: #4b5563;
    font-size: 0.8rem;
}

.market-sort select {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    height: 34px;
    padding: 0 10px;
}

.market-layout {
    align-items: start;
    display: grid;
    gap: 20px;
    grid-template-columns: 220px minmax(0, 1fr);
}

.offer-filter {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    min-height: 260px;
    padding: 18px;
    position: sticky;
    top: 78px;
}

.offer-filter h3 {
    font-size: 1.05rem;
    line-height: 1.2;
    margin: 0;
}

.offer-filter p,
.filter-control span {
    color: var(--color-muted);
    display: block;
    font-size: 0.78rem;
    margin: 3px 0 26px;
}

.range-track {
    background: #dbeafe;
    border-radius: 999px;
    height: 4px;
    position: relative;
}

.range-track i {
    background: var(--color-accent);
    border-radius: inherit;
    display: block;
    height: 4px;
    width: 76%;
}

.range-track::before,
.range-track::after {
    background: #fff;
    border: 2px solid #93c5fd;
    border-radius: 50%;
    content: "";
    height: 9px;
    position: absolute;
    top: -5px;
    width: 9px;
}

.range-track::before {
    left: 0;
}

.range-track::after {
    right: 22%;
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 28px;
}

.filter-tags span {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    color: #1d4ed8;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 5px 8px;
}

.market-results {
    min-width: 0;
}

.offer-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.offer-card:hover {
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
    transform: translateY(-2px);
}

.offer-card__image {
    align-items: center;
    background: #fff;
    display: block;
    aspect-ratio: 1 / 0.82;
    display: flex;
    justify-content: center;
    padding: 18px 18px 6px;
}

.offer-card__image img {
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.offer-card__body {
    padding: 10px 14px 14px;
}

.store-badge {
    align-items: center;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.12);
    color: #111827;
    display: inline-flex;
    font-size: 1.5rem;
    font-weight: 900;
    height: 42px;
    justify-content: center;
    position: absolute;
    right: -4px;
    text-transform: lowercase;
    top: -6px;
    width: 42px;
    z-index: 2;
}

.offer-card__placeholder {
    align-items: center;
    background: linear-gradient(135deg, #eff6ff, #fff7ed);
    border-radius: 6px;
    color: #1d4ed8;
    display: flex;
    font-weight: 850;
    height: 100%;
    justify-content: center;
    width: 100%;
}

.offer-card__category {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 4px;
    color: #1d4ed8;
    display: inline-flex;
    font-size: 0.72rem;
    font-weight: 700;
    margin-bottom: 7px;
    max-width: 100%;
    overflow: hidden;
    padding: 3px 7px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.offer-card__title {
    font-size: 0.97rem;
    font-weight: 850;
    line-height: 1.25;
    margin: 0 0 5px;
    min-height: 2.5em;
}

.offer-card__title a {
    text-decoration: none;
}

.offer-price {
    align-items: baseline;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.offer-price strong {
    color: #0066ff;
    font-size: 1.24rem;
    font-weight: 900;
}

.offer-price del {
    color: var(--color-muted);
    font-size: 0.78rem;
}

.offer-card__time {
    color: var(--color-muted);
    font-size: 0.78rem;
    margin: 0 0 8px;
}

.offer-card__meta {
    align-items: center;
    color: #9ca3af;
    display: flex;
    font-size: 0.75rem;
    gap: 8px;
    justify-content: space-between;
    margin-bottom: 10px;
}

.status-badge {
    display: inline-flex;
    font-size: 0.8rem;
    margin: 0;
    padding: 3px 8px;
}

.status-badge--active {
    background: #e8f8ef;
    color: #075c31;
}

.status-badge--expired {
    background: #f3f4f6;
    color: #667085;
}

.coupon-code {
    background: #fff8e8;
    border: 1px dashed #b7791f;
    border-radius: 6px;
    color: #7c4a03;
    cursor: pointer;
    font-weight: 800;
    min-height: 42px;
    padding: 0 14px;
}

.affiliate-notice {
    color: var(--color-muted);
    font-size: 0.92rem;
}

.offer-access-button {
    background: #0066ff;
    border-radius: 999px;
    box-shadow: 0 6px 14px rgba(0, 102, 255, 0.2);
    font-size: 0.85rem;
    min-height: 34px;
    width: 100%;
}

.offer-access-button:hover {
    background: #0052cc;
}

.offer-detail {
    padding: 44px 0 0;
}

.offer-detail__grid {
    align-items: start;
    display: grid;
    gap: 34px;
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.75fr);
}

.offer-detail__media {
    background: var(--color-soft);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
}

.offer-detail__media img {
    display: block;
    width: 100%;
}

.offer-detail__summary {
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
}

.offer-detail__summary h1 {
    font-size: 1.9rem;
    line-height: 1.15;
    margin: 8px 0 14px;
}

.offer-detail__store {
    color: var(--color-accent-dark);
    font-weight: 800;
    text-decoration: none;
}

.offer-detail__price {
    align-items: baseline;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 14px 0;
}

.offer-detail__price strong {
    color: var(--color-accent);
    font-size: 2rem;
    line-height: 1;
}

.offer-detail__coupon {
    align-items: center;
    background: #fffaf0;
    border: 1px solid #f2d391;
    border-radius: var(--radius);
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin: 14px 0;
    padding: 12px;
}

.offer-detail__facts {
    border-top: 1px solid var(--color-border);
    display: grid;
    gap: 0;
    margin: 18px 0;
}

.offer-detail__facts div {
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
}

.offer-detail__facts dt {
    color: var(--color-muted);
    font-weight: 700;
}

.offer-detail__facts dd {
    margin: 0;
    text-align: right;
}

.offer-detail__button {
    display: flex;
    width: 100%;
}

.offer-detail__content {
    padding-bottom: 48px;
    padding-top: 34px;
}
