.offers-page {
    background: linear-gradient(180deg, #f5f7fb 0%, #ffffff 44%, #f7f9fc 100%);
    color: #17213a;
    overflow-x: hidden;
}

.offers-page .offers-header {
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 8px 30px rgba(0, 59, 122, .08);
    backdrop-filter: blur(12px);
}

.offers-page .active-link {
    color: var(--primary-blue);
}

.offers-page main {
    padding-top: 90px;
}

a {
   position: relative;
   display: inline-block;
   overflow: hidden;
 }
 
 a::after {
   content: '';
   position: absolute;
   bottom: 0;
   left: 0;
   height: 4px;
   width: 100%;
   background: linear-gradient(90deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #8b00ff);
   background-size: 200% auto;
   transition: all .5s;
   transform: translateX(-100%);
 }
 
 a:hover::after {
   transform: translateX(0%);
   animation: gradient-89 3s linear infinite;
 }
 
 @keyframes gradient-89 {
   0% { background-position: 100% 0%; }
   50% { background-position: 0% 0%; }
   100% { background-position: 100% 0%; }
 }


.offer-ticker {
    --ticker-bg-start: #002f66;
    --ticker-bg-mid: #0057b8;
    --ticker-label-space: clamp(132px, 18vw, 210px);
    --ticker-edge-fade: clamp(28px, 5vw, 70px);
    display: flex;
    align-items: center;
    position: sticky;
    top: 90px;
    z-index: 999;
    min-height: 58px;
    padding: 0 clamp(14px, 2.3vw, 28px);
    background:
        linear-gradient(90deg, rgba(255, 255, 255, .08), transparent 18%, rgba(255, 255, 255, .06) 82%, transparent),
        linear-gradient(90deg, var(--ticker-bg-start) 0%, var(--ticker-bg-mid) 52%, var(--ticker-bg-start) 100%);
    color: #fff;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 34, 77, .26);
    border-bottom: 3px solid var(--primary-red);
    isolation: isolate;
}

.offer-ticker::after {
    content: "";
    position: absolute;
    inset: 0 0 0 auto;
    z-index: 1;
    width: calc(var(--ticker-label-space) + var(--ticker-edge-fade));
    pointer-events: none;
    background: linear-gradient(to left,
            var(--ticker-bg-start) 0%,
            rgba(0, 47, 102, .99) 50%,
            rgba(0, 70, 148, .76) 73%,
            rgba(0, 87, 184, 0) 100%);
}

.offer-ticker-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 var(--ticker-label-space);
    min-width: 0;
    position: relative;
    z-index: 2;
    height: 100%;
    padding-inline-start: 4px;
    color: #ffd35a;
    font-size: clamp(12px, 1.25vw, 14px);
    font-weight: 800;
    white-space: nowrap;
}

.offer-ticker-label::before {
    content: "";
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--primary-red);
    box-shadow: 0 0 0 0 rgba(227, 30, 36, .45);
    animation: liveDotPulse 1.15s ease-out infinite;
}

.offer-ticker-label::after {
    content: "";
    position: absolute;
    right: 4px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: 1px solid rgba(255, 211, 90, .7);
    transform: scale(1);
    opacity: .8;
    animation: liveRingPulse 1.15s ease-out infinite;
    pointer-events: none;
}

.offer-ticker-track {
    display: inline-flex;
    align-items: center;
    direction: ltr;
    flex: 0 0 auto;
    gap: clamp(46px, 7vw, 88px);
    min-width: max-content;
    position: relative;
    z-index: 0;
    padding-inline-start: var(--ticker-edge-fade);
    white-space: nowrap;
    will-change: transform;
    animation: offerTickerScroll var(--ticker-duration, 10s) linear infinite;
}

.offer-ticker-group {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: clamp(46px, 7vw, 88px);
    padding-inline-end: clamp(46px, 7vw, 88px);
}

.offer-ticker-item {
    display: inline-flex;
    align-items: center;
    gap: clamp(8px, 1.4vw, 14px);
    color: rgba(255, 255, 255, .9);
    font-size: clamp(12px, 1.25vw, 14px);
    font-weight: 600;
    direction: rtl;
    text-align: right;
}

.offer-ticker-item strong {
    color: #ffd35a;
    font-size: clamp(14px, 1.35vw, 16px);
    font-weight: 800;
}

.offer-ticker-date {
    color: rgba(255, 255, 255, .72);
    font-size: 14px;
}

.offers-hero {
    position: relative;
    padding: 50px 0 72px;
    overflow: hidden;
}

.offers-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
    align-items: center;
    gap: 56px;
}

.offers-hero-content {
    position: relative;
    z-index: 1;
}

.offers-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding: 8px 18px;
    border: 1px solid rgba(0, 87, 184, .15);
    border-radius: 999px;
    background: rgba(255, 255, 255, .86);
    color: var(--primary-blue);
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(0, 59, 122, .08);
}

.offers-kicker::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary-red);
    box-shadow: 0 0 0 7px rgba(227, 30, 36, .12);
}

.offers-hero h1 {
    max-width: 780px;
    margin-bottom: 18px;
    color: var(--dark-blue);
    font-size: 52px;
    line-height: 1.24;
    letter-spacing: 0;
}

.offers-hero p {
    max-width: 680px;
    margin-bottom: 30px;
    color: #4d5873;
    font-size: 20px;
}

.offers-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 34px;
}

.offers-actions .btn-outline {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    background: #fff;
}

.offers-actions .btn-outline:hover {
    background: var(--primary-blue);
    color: #fff;
}

.offer-highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.offer-highlights div {
    min-height: 112px;
    padding: 20px;
    border: 1px solid rgba(0, 87, 184, .11);
    border-radius: 14px;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 12px 28px rgba(0, 59, 122, .08);
}

.offer-highlights strong,
.offer-highlights span {
    display: block;
}

.offer-highlights strong {
    color: var(--primary-red);
    font-size: 24px;
    line-height: 1.4;
}

.offer-highlights span {
    color: #5b6680;
    font-size: 15px;
}

.offers-hero-media {
    position: relative;
    min-height: 480px;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 30px 70px rgba(0, 59, 122, .18);
    overflow: hidden;
}

.offers-hero-media img {
    width: 100%;
    height: 100%;
    min-height: 480px;
    object-fit: cover;
}

.discount-ribbon {
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 2;
    padding: 12px 18px;
    border-radius: 12px;
    background: var(--primary-red);
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    box-shadow: 0 14px 30px rgba(227, 30, 36, .32);
    animation: ribbonFloat 2.8s ease-in-out infinite;
}

.offers-section {
    padding: 84px 0 100px;
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

.deal-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 100%;
    border: 1px solid rgba(0, 87, 184, .10);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(0, 59, 122, .10);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
    cursor: pointer;
}

.deal-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 58px rgba(0, 59, 122, .16);
}

.featured-deal {
    border-color: rgba(227, 30, 36, .24);
}

.deal-image {
    position: relative;
    height: 250px;
    padding: 18px;
    background: linear-gradient(135deg, rgba(0, 87, 184, .08), rgba(227, 30, 36, .08));
}

.deal-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
}

.deal-image span,
.deal-image .discout {
    position: absolute;
    top: 18px;
    left: 18px;
    max-width: calc(100% - 36px);
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(0, 59, 122, .92);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.5;
    white-space: nowrap;
}

.deal-image .discout {
    background: rgba(227, 30, 36, .94);
    font-size: 15px;
}

.deal-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 24px;
}

.deal-category {
    color: var(--primary-red);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.6;
}

.deal-content h3 {
    margin: 8px 0 10px;
    color: var(--dark-blue);
    font-size: 24px;
    line-height: 1.35;
}

.deal-content p {
    margin-bottom: 22px;
    color: #5f6b83;
    font-size: 16px;
}

.deal-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    margin-bottom: 22px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #f5f8ff;
}

.deal-meta strong {
    color: var(--primary-red);
    font-size: 20px;
    white-space: nowrap;
}

.deal-meta span {
    color: #64708a;
    font-weight: 700;
    text-align: left;
}

.deal-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: 10px;
    background: var(--primary-blue);
    color: #fff;
    font: inherit;
    font-weight: 800;
    line-height: 1.4;
    transition: .25s ease;
    cursor: pointer;
}

.deal-link:hover {
    background: var(--primary-red);
    transform: translateY(-2px);
}

.offer-strip {
    padding: 42px 0;
    background: linear-gradient(135deg, var(--dark-blue), var(--primary-blue));
    color: #fff;
}

.offer-strip-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.offer-strip span {
    color: rgba(255, 255, 255, .78);
    font-weight: 800;
}

.offer-strip h2 {
    font-size: 25px;
    line-height: 1.35;
}

.offer-strip .btn {
    min-width: 100px;
    background: #ff0202;
}

.new-offer-badge {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1001;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    width: min(300px, calc(100vw - 48px));
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, .65);
    border-radius: 16px;
    background: rgba(255, 255, 255, .96);
    color: var(--dark-blue);
    box-shadow: 0 18px 45px rgba(0, 59, 122, .22);
    animation: badgeEntrance .8s ease .35s both, badgeFloat 3s ease-in-out 1.2s infinite;
}

.new-offer-badge i {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--primary-red);
    color: #fff;
    font-size: 21px;
}

.new-offer-badge strong,
.badge-text {
    display: block;
}

.new-offer-badge strong {
    color: var(--primary-red);
    font-size: 17px;
    line-height: 1.4;
}

.badge-text {
    min-width: 0;
    color: #57637c;
    font-size: 13px;
    font-weight: 700;
}

.badge-pulse {
    position: absolute;
    inset: -5px;
    border: 5px solid rgba(227, 30, 36, .22);
    border-radius: 20px;
    animation: badgePulse 1.8s ease-out infinite;
    pointer-events: none;
}

.offers-page .whatsapp-btn {
    bottom: 40px;
}

.price-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, .65);
    backdrop-filter: blur(8px);
}

.price-modal.active {
    display: flex;
}

.price-modal-content {
    display: flex;
    flex-direction: column;
    width: min(1200px, 95vw);
    max-height: 90vh;
    overflow: hidden;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 25px 50px rgba(0, 0, 0, .25);
    animation: modalContentIn .25s ease;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 22px 20px;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
}

.modal-header h2 {
    flex: 1;
    margin: 0;
    color: var(--dark-blue);
    font-size: 20px;
    font-weight: 800;
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 10px;
}

#searchInput {
    width: 280px;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
}

#searchInput:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 87, 184, .1);
}

#closeModal {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 10px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

#closeModal:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.table-wrapper {
    max-height: 75vh;
    overflow: auto;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
}

.price-table thead {
    position: sticky;
    top: 0;
    z-index: 5;
}

.price-table th {
    padding: 16px 15px;
    background: linear-gradient(135deg, #111827, #1f2937);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

.price-table td {
    padding: 14px 12px;
    border-bottom: 1px solid #f0f1f3;
    font-size: 14px;
    text-align: center;
}

.price-table tr:hover {
    background: #f8fafc;
}

.empty-table {
    padding: 30px;
    color: #8a94a8;
}

.old-price {
    color: #a1a8b8;
    font-size: 13px;
    text-decoration: line-through;
}

.new-price {
    display: block;
    margin-top: 4px;
    color: #16a34a;
    font-size: 16px;
    font-weight: 800;
}

@keyframes offerTickerScroll {
    from {
        transform: translateX(0%);
    }

    to {
        transform: translateX(50%);
    }
}

@keyframes liveDotPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(227, 30, 36, .58);
        transform: scale(2);
    }

    55% {
        box-shadow: 0 0 0 9px rgba(227, 30, 36, 0);
        transform: scale(1.18);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(227, 30, 36, 0);
        transform: scale(1);
    }
}

@keyframes liveRingPulse {
    0% {
        opacity: .78;
        transform: scale(.9);
    }

    70% {
        opacity: 0;
        transform: scale(2.45);
    }

    100% {
        opacity: 0;
        transform: scale(2.45);
    }
}

@keyframes ribbonFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes badgeEntrance {
    from {
        opacity: 0;
        transform: translateY(24px) scale(.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes badgeFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-7px);
    }
}

@keyframes badgePulse {
    from {
        opacity: .9;
        transform: scale(.98);
    }

    to {
        opacity: 0;
        transform: scale(1.12);
    }
}

@keyframes modalContentIn {
    from {
        opacity: 0;
        transform: scale(.96);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 1100px) {

    .offers-hero-grid,
    .offers-grid {
        grid-template-columns: 1fr;
    }

    .offers-hero h1 {
        font-size: 44px;
    }

    .offers-hero-media,
    .offers-hero-media img {
        min-height: 390px;
    }
}

@media (max-width: 768px) {
    .offers-page main {
        padding-top: 90px;
    }

    .offer-ticker-label {
        font-size: 12px;
        gap: 8px;
    }

    .offer-ticker-label::before,
    .offer-ticker-label::after {
        width: 8px;
        height: 8px;
    }

    .offer-ticker-track {
        --ticker-duration: 34s;
    }

    .offer-ticker-group {
        gap: 36px;
        padding-inline-end: 36px;
    }

    .offer-ticker-item {
        gap: 8px;
    }

    .offer-ticker-date {
        display: none;
    }

    .offers-hero {
        padding: 54px 0 52px;
    }

    .offers-hero-grid {
        gap: 34px;
    }

    .offers-hero h1 {
        font-size: 34px;
    }

    .offers-hero p {
        font-size: 17px;
    }

    .offers-actions,
    .offer-strip-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .offers-actions .btn,
    .offer-strip .btn {
        width: 100%;
        background-color: #028231 !important;

    }

    .offer-highlights {
        grid-template-columns: 1fr;
    }

    .offers-hero-media,
    .offers-hero-media img {
        min-height: 300px;
    }

    .deal-image {
        height: 220px;
    }

    .deal-content {
        padding: 20px;
    }

    .deal-meta {
        align-items: flex-start;
        flex-direction: column;
    }

    .deal-meta span {
        text-align: right;
    }

    .offer-strip h2 {
        font-size: 26px;
    }

    .new-offer-badge {
        right: 14px;
        bottom: 18px;
        width: min(280px, calc(100vw - 28px));
    }

    .offers-page .whatsapp-btn {
        bottom: 40px;
        left: 16px;
        width: 56px;
        height: 56px;
        font-size: 26px;
    }



    .price-modal {
        padding: 10px;
    }

    .price-modal-content {
        width: 100%;
        max-height: 95vh;
        border-radius: 16px;
    }

    .modal-header {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
    }

    .header-tools {
        align-items: stretch;
    }

    #searchInput {
        width: 100%;
        min-width: 0;
    }

    #closeModal {
        flex: 0 0 42px;
    }

    .price-table th,
    .price-table td {
        padding: 10px 6px;
        font-size: 13px;
    }

    .table-wrapper {
        max-height: calc(95vh - 150px);
    }
}

@media (max-width: 480px) {
    .offers-page main {
        padding-top: 90px;
    }

    .offer-ticker-label {
        font-size: 11px;
        gap: 7px;
    }

    .offer-ticker-track {
        gap: 28px;
        --ticker-duration: 30s;
    }

    .offer-ticker-group {
        gap: 28px;
        padding-inline-end: 28px;
    }

    .offer-ticker-item {
        font-size: 11px;
    }

    .offer-ticker-item strong {
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
    }

    .offer-ticker-track,
    .offer-ticker-label::before,
    .offer-ticker-label::after,
    .discount-ribbon,
    .new-offer-badge,
    .badge-pulse {
        animation: none !important;
    }
}