/* =========================================================
   Best Offers - Step 3: Clickable Offer Cards
   ========================================================= */

.best-offers-page .offer-card {
    cursor: pointer;
}

.best-offers-page .offer-card:focus {
    outline: 2px solid #f97316;
    outline-offset: 2px;
}

/* =========================================================
   Best Offers - Step 3: Offer Type Filters
   ========================================================= */

.best-offers-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 22px;
}

.best-offers-filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 7px 15px;
    border: 1px solid #f97316;
    border-radius: 8px;
    background: #ffffff;
    color: #f97316;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    box-sizing: border-box;
    transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.best-offers-filter:hover {
    background: #fff4eb;
    color: #f97316;
}

.best-offers-filter.is-active {
    background: #f97316;
    border-color: #f97316;
    color: #ffffff;
}

.best-offers-filter.is-active:hover {
    background: #ea580c;
    border-color: #ea580c;
    color: #ffffff;
}

@media (max-width: 600px) {
    .best-offers-filters {
        gap: 7px;
        margin-bottom: 18px;
    }

    .best-offers-filter {
        min-height: 34px;
        padding: 7px 13px;
        font-size: 12px;
    }
}

/* =========================================================
   Best Offers - Step 2: Offer Cards
   ========================================================= */

.best-offers-page .deals-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.best-offers-page .deal-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 18px;
    border-color: #e5e7eb;
    box-shadow: none;
    border-radius: 12px;
    background: #ffffff;
    box-sizing: border-box;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.best-offers-page .deal-card:hover {
    transform: translateY(-2px);
    border-color: #d1d5db;
    box-shadow: 0 8px 22px rgba(17, 24, 39, 0.07);
}

.best-offers-page .deal-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    min-height: 31px;
}

.best-offers-page .deal-card-badges {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}


.best-offers-page .deal-type {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 8px;
    border: 1px solid #dfe3e8;
    border-radius: 6px;
    background: #f5f6f7;
    color: #344054;
    font-size: 10px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: .05em;
    box-sizing: border-box;
}

.best-offers-page .deal-type-featured {
    color: #ea580c;
    background: #fff7ed;
    border-color: #fed7aa;
}

.best-offers-page .deal-discount {
    flex: 0 0 auto;
    color: #f97316;
    font-size: 19px;
    line-height: 1.2;
    font-weight: 800;
    white-space: nowrap;
    text-align: right;
}

.best-offers-page .deal-store {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 108px;
    margin: 12px 0 10px;
    color: inherit;
    text-decoration: none;
}

.best-offers-page .deal-store-logo {
    width: 82px;
    height: 82px;
    flex: 0 0 82px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #edf0f2;
    border-radius: 10px;
    background: #ffffff;
}

.best-offers-page .deal-store-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.best-offers-page .deal-store-logo-placeholder {
    color: #777;
    font-size: 24px;
    font-weight: 800;
}

.best-offers-page .deal-store-name {
    min-width: 0;
    color: #7b8490;
    font-size: 13px;
    line-height: 1.3;
}

.best-offers-page .deal-title {
    margin: 2px 0 8px;
    color: #111827;
    font-size: 16px;
    line-height: 1.45;
    font-weight: 800;
}

.best-offers-page .deal-description {
    display: none;
}

.best-offers-page .deal-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #eef0f2;
    color: #737b86;
    font-size: 12px;
    line-height: 1.4;
}

.best-offers-page .deal-card-action {
    margin-top: 13px;
}

.best-offers-page .deal-get-button {
    display: flex;
    width: 100%;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 14px;
    border: 1px solid #f97316;
    border-radius: 8px;
    background: #ffffff;
    color: #f97316;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 800;
    cursor: pointer;
    box-sizing: border-box;
    transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.best-offers-page .deal-get-button:hover {
    background: #f97316;
    border-color: #f97316;
    color: #ffffff;
}

@media (max-width: 900px) {
    .best-offers-page .deals-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .best-offers-page .deals-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .best-offers-page .deal-card {
        padding: 16px;
    }

    .best-offers-page .deal-store {
        min-height: 88px;
    }

    .best-offers-page .deal-store-logo {
        width: 68px;
        height: 68px;
        flex-basis: 68px;
    }

    .best-offers-page .deal-discount {
        font-size: 17px;
    }
}

/* =========================================================
   Best Offers - Step 1: Page Header
   ========================================================= */

.best-offers-page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 34px 20px 60px;
}

.best-offers-page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 30px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e7eb;
}

.best-offers-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 10px;
    color: #888;
    font-size: 13px;
}

.best-offers-breadcrumb a {
    color: #666;
    text-decoration: none;
}

.best-offers-breadcrumb a:hover {
    color: #f97316;
}

.best-offers-breadcrumb span:last-child {
    color: #555;
    font-weight: 600;
}

.best-offers-page-header h1 {
    margin: 0;
    color: #1a1a1a;
    font-size: 32px;
    line-height: 1.2;
    font-weight: 800;
}

.best-offers-page-header p {
    max-width: 650px;
    margin: 9px 0 0;
    color: #666;
    font-size: 15px;
    line-height: 1.6;
}

.best-offers-count {
    flex: 0 0 auto;
    min-width: 130px;
    padding: 14px 18px;
    border: 1px solid #f3c7a5;
    border-radius: 12px;
    background: #fff7ed;
    text-align: center;
}

.best-offers-count strong {
    display: block;
    color: #f97316;
    font-size: 24px;
    line-height: 1.1;
    font-weight: 800;
}

.best-offers-count span {
    display: block;
    margin-top: 4px;
    color: #666;
    font-size: 12px;
    font-weight: 700;
}

@media (max-width: 700px) {
    .best-offers-page {
        padding: 24px 16px 45px;
    }

    .best-offers-page-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
        margin-bottom: 24px;
        padding-bottom: 20px;
    }

    .best-offers-page-header h1 {
        font-size: 27px;
    }

    .best-offers-page-header p {
        font-size: 14px;
    }

    .best-offers-count {
        width: 100%;
        box-sizing: border-box;
    }
}

