
    * {
        box-sizing: border-box;
    }


    .offers-page {

        max-width: 1100px;

        margin: 0 auto;

        padding: 45px 20px 80px;

        direction: rtl;
    }


    /* =========================
       HEADER
    ========================= */

    .offers-header {

        display: flex;

        justify-content: space-between;

        align-items: center;

        gap: 20px;

        margin-bottom: 35px;
    }


    .header-badge {

        display: inline-flex;

        padding: 7px 14px;

        border-radius: 50px;

        background: #eef2ff;

        color: #4f46e5;

        font-size: 13px;

        font-weight: 700;

        margin-bottom: 12px;
    }


    .offers-header h1 {

        margin: 0 0 8px;

        font-size: 32px;

        color: #111827;

        font-weight: 800;
    }


    .offers-header p {

        margin: 0;

        color: #6b7280;

        font-size: 15px;
    }


    .back-link {

        text-decoration: none;

        color: #4f46e5;

        font-weight: 700;

        white-space: nowrap;
    }


    /* =========================
       SUMMARY
    ========================= */

    .offers-summary {

        display: grid;

        grid-template-columns: repeat(3, 1fr);

        gap: 15px;

        margin-bottom: 35px;
    }


    .summary-card {

        display: flex;

        align-items: center;

        gap: 15px;

        padding: 20px;

        background: white;

        border: 1px solid #e5e7eb;

        border-radius: 18px;

        box-shadow:
            0 7px 25px rgba(15, 23, 42, 0.04);
    }


    .summary-icon {

        width: 48px;

        height: 48px;

        border-radius: 14px;

        background: #f5f7ff;

        display: flex;

        align-items: center;

        justify-content: center;

        font-size: 20px;

        flex-shrink: 0;
    }


    .summary-card > div:last-child {

        display: flex;

        flex-direction: column;

        gap: 4px;
    }


    .summary-card strong {

        font-size: 18px;

        color: #111827;
    }


    .summary-card span {

        font-size: 12px;

        color: #6b7280;
    }


    /* =========================
       TOOLBAR
    ========================= */

    .offers-toolbar {

        display: flex;

        align-items: center;

        justify-content: space-between;

        gap: 20px;

        margin-bottom: 18px;
    }


    .offers-toolbar h2 {

        margin: 0 0 4px;

        font-size: 21px;

        color: #111827;
    }


    .offers-toolbar span {

        font-size: 13px;

        color: #9ca3af;
    }


    /* =========================
       GRID
    ========================= */

    .offers-grid {

        display: grid;

        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 18px;
    }


    /* =========================
       CARD
    ========================= */

    .offer-card {

        background: white;

        border: 1px solid #e5e7eb;

        border-radius: 20px;

        overflow: hidden;

        box-shadow:
            0 7px 25px rgba(15, 23, 42, 0.035);

        transition:
            transform 0.2s ease,
            box-shadow 0.2s ease,
            border-color 0.2s ease;
    }


    .offer-card:hover {

        transform: translateY(-3px);

        border-color: #c7d2fe;

        box-shadow:
            0 14px 35px rgba(15, 23, 42, 0.08);
    }


    /* =========================
       IMAGE
    ========================= */

    .offer-image-wrapper {

        position: relative;

        height: 245px;

        background: #f8fafc;

        overflow: hidden;
    }


    .offer-image {

        width: 100%;

        height: 100%;

        object-fit: contain;

        display: block;

        padding: 18px;

        transition:
            transform 0.25s ease;
    }


    .offer-card:hover .offer-image {

        transform: scale(1.035);
    }


    .offer-icon,
    .offer-placeholder {

        width: 100%;

        height: 100%;

        display: flex;

        align-items: center;

        justify-content: center;

        font-size: 55px;

        color: #9ca3af;
    }


    /* =========================
       DISCOUNT BADGE
    ========================= */

    .discount-badge {

        position: absolute;

        top: 14px;

        right: 14px;

        padding: 7px 11px;

        border-radius: 50px;

        background: #dc2626;

        color: white;

        font-size: 12px;

        font-weight: 800;

        box-shadow:
            0 5px 15px rgba(220, 38, 38, 0.18);
    }


/* =========================================================
   FAVORITE
========================================================= */

.offer-favorite {
    position: absolute;
    top: 13px;
    left: 13px;
    z-index: 5;

    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: 11px;

    background: rgba(255, 255, 255, 0.9);
    color: #6b7280;

    font-family: inherit;
    font-size: 21px;

    cursor: pointer;

    box-shadow:
        0 7px 17px rgba(15, 23, 42, 0.07);

    transition:
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease,
        opacity 0.2s ease;
}

.offer-favorite:hover {
    color: #ef4444;
    background: #ffffff;
    transform: scale(1.06);
}

.offer-favorite.active {
    background: #ef4444;
    border-color: #ef4444;
    color: #ffffff;
}

.offer-favorite.active:hover {
    background: #dc2626;
    border-color: #dc2626;
    color: #ffffff;
}

.offer-favorite:disabled {
    cursor: wait;
    opacity: 0.7;
    transform: none;
}


/* =========================================================
   TOAST
========================================================= */

.offers-toast {
    position: fixed;
    top: 90px;
    right: 24px;
    z-index: 9999;

    min-width: 310px;
    max-width: 390px;

    display: flex;
    align-items: center;
    gap: 12px;

    padding: 14px 16px;

    background: #ffffff;

    border: 1px solid #e5e7eb;
    border-radius: 14px;

    box-shadow:
        0 18px 45px rgba(15, 23, 42, 0.14);

    direction: rtl;

    opacity: 0;
    visibility: hidden;

    transform: translateX(35px);

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease,
        transform 0.25s ease;
}

.offers-toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.offers-toast-icon {
    width: 36px;
    height: 36px;

    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #dcfce7;
    color: #16a34a;

    font-size: 16px;
    font-weight: 900;
}

.offers-toast.error .offers-toast-icon {
    background: #fee2e2;
    color: #dc2626;
}

.offers-toast-content {
    flex: 1;

    display: flex;
    flex-direction: column;
    gap: 3px;
}

.offers-toast-content strong {
    color: #111827;
    font-size: 13px;
    font-weight: 800;
}

.offers-toast-content span {
    color: #6b7280;
    font-size: 11px;
    line-height: 1.6;
}

.offers-toast-close {
    width: 28px;
    height: 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 0;
    background: transparent;

    color: #9ca3af;

    font-family: inherit;
    font-size: 21px;
    line-height: 1;

    cursor: pointer;
}

.offers-toast-close:hover {
    color: #111827;
}


@media (max-width: 700px) {

    .offer-favorite {
        top: 10px;
        left: 10px;

        width: 35px;
        height: 35px;

        font-size: 19px;
    }

    .offers-toast {
        top: 75px;
        right: 12px;
        left: 12px;

        min-width: 0;
        max-width: none;
    }
}
    /* =========================
       CONTENT
    ========================= */

    .offer-content {

        padding: 18px;
    }


    .offer-category {

        display: inline-block;

        margin-bottom: 7px;

        color: #6366f1;

        font-size: 11px;

        font-weight: 700;
    }


    .offer-title {

        margin: 0 0 8px;

        color: #111827;

        font-size: 17px;

        font-weight: 800;

        line-height: 1.5;

        display: -webkit-box;

        -webkit-line-clamp: 2;

        -webkit-box-orient: vertical;

        overflow: hidden;
    }


    .offer-description {

        margin: 0 0 14px;

        color: #6b7280;

        font-size: 12px;

        line-height: 1.7;

        min-height: 40px;
    }


    /* =========================
       PRICES
    ========================= */

    .offer-prices {

        display: flex;

        align-items: baseline;

        gap: 10px;

        flex-wrap: wrap;

        margin-bottom: 8px;
    }


    .price-current {

        color: #111827;

        font-size: 21px;

        font-weight: 900;
    }


    .price-current span {

        font-size: 11px;

        font-weight: 700;

        color: #6b7280;
    }


    .price-old {

        color: #9ca3af;

        font-size: 13px;

        font-weight: 600;

        text-decoration: line-through;
    }


    .price-old span {

        font-size: 10px;
    }


    /* =========================
       SAVING
    ========================= */

    .saving-row {

        display: flex;

        align-items: center;

        justify-content: space-between;

        padding: 8px 10px;

        margin-bottom: 12px;

        border-radius: 9px;

        background: #ecfdf5;

        color: #059669;

        font-size: 11px;
    }


    .saving-row strong {

        font-size: 12px;
    }


    /* =========================
       DURATION
    ========================= */

    .offer-duration {

        display: flex;

        align-items: center;

        gap: 7px;

        padding: 9px 0;

        margin-bottom: 12px;

        color: #6b7280;

        font-size: 11px;

        border-top: 1px solid #f3f4f6;
    }


    .duration-icon {

        font-size: 14px;
    }


    .offer-duration strong {

        color: #374151;

        font-weight: 700;
    }


    /* =========================
       BUTTON
    ========================= */

    .offer-button {

        width: 100%;

        display: flex;

        align-items: center;

        justify-content: space-between;

        gap: 10px;

        padding: 12px 14px;

        border-radius: 11px;

        background: #4f46e5;

        color: white;

        text-decoration: none;

        font-size: 13px;

        font-weight: 700;

        transition: 0.2s;
    }


    .offer-button:hover {

        background: #4338ca;
    }


    .offer-button b {

        font-size: 17px;

        line-height: 1;
    }


    /* =========================
       EMPTY
    ========================= */

    .empty-offers {

        text-align: center;

        padding: 70px 20px;

        background: white;

        border: 1px solid #e5e7eb;

        border-radius: 20px;
    }


    .empty-icon {

        font-size: 45px;

        margin-bottom: 15px;
    }


    .empty-offers h2 {

        margin: 0 0 8px;

        color: #111827;
    }


    .empty-offers p {

        margin: 0 0 20px;

        color: #6b7280;
    }


    .empty-offers a {

        display: inline-block;

        padding: 12px 20px;

        border-radius: 11px;

        background: #4f46e5;

        color: white;

        text-decoration: none;

        font-weight: 700;

        font-size: 13px;
    }


    /* =========================
       PAGINATION
    ========================= */

    .offers-pagination {

        margin-top: 25px;
    }


    /* =========================
       RESPONSIVE
    ========================= */

    @media (max-width: 850px) {

        .offers-grid {

            grid-template-columns:
                repeat(2, minmax(0, 1fr));
        }

    }


    @media (max-width: 700px) {

        .offers-page {

            padding: 30px 15px 60px;
        }


        .offers-header {

            align-items: flex-start;

            flex-direction: column;
        }


        .offers-header h1 {

            font-size: 27px;
        }


        .offers-summary {

            grid-template-columns: 1fr;
        }


        .offers-toolbar {

            align-items: stretch;

            flex-direction: column;
        }


        .offer-image-wrapper {

            height: 220px;
        }

    }


    @media (max-width: 520px) {

        .offers-grid {

            grid-template-columns: 1fr;
        }


        .offer-image-wrapper {

            height: 260px;
        }

    }


    @media (max-width: 400px) {

        .offer-card {

            border-radius: 17px;
        }


        .offer-content {

            padding: 16px;
        }


        .offer-image-wrapper {

            height: 230px;
        }

    }