@charset "UTF-8";

/**
 * Offers landing (/offer) — mobile-first, theme-variable driven
 * Polished hero, motion, campaign cards (structure preserved)
 */

.nx-offers-page {
    --nx-offers-bg: var(--filter-bg, #f5f5f7);
    --nx-offers-card: var(--card-bg, #fff);
    --nx-offers-text: var(--text-primary, #1d1d1f);
    --nx-offers-muted: var(--text-secondary, #6c757d);
    --nx-offers-border: var(--border-color, #e5e5ea);
    --nx-offers-accent: var(--primary, #0d6efd);
    --nx-offers-accent-hover: var(--primary-hover, #0b5ed7);
    --nx-offers-discount: var(--discount-text, #dc3545);
    --nx-offers-ease: cubic-bezier(0.22, 1, 0.36, 1);
    padding: 0 0 2.75rem;
    background: var(--nx-offers-bg);
    color: var(--nx-offers-text);
    overflow-x: clip;
}

.nx-offers-page .nx-container {
    width: min(1200px, calc(100% - 2rem));
    margin-inline: auto;
}

/* ========== Hero ========== */
.nx-offers-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin-bottom: 0.85rem;
    padding: 1.35rem 0 1.15rem;
    background:
        linear-gradient(165deg,
            color-mix(in srgb, var(--nx-offers-accent) 12%, #fff) 0%,
            var(--nx-offers-card) 52%,
            color-mix(in srgb, var(--nx-offers-accent) 6%, var(--nx-offers-bg)) 100%);
    border-bottom: 1px solid var(--nx-offers-border);
}

.nx-offers-hero__glow {
    position: absolute;
    inset: -35% -18% auto auto;
    width: min(420px, 70vw);
    height: min(420px, 70vw);
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--nx-offers-accent) 26%, transparent), transparent 68%);
    animation: nx-offers-float 11s var(--nx-offers-ease) infinite alternate;
    pointer-events: none;
    z-index: 0;
}

.nx-offers-hero__inner {
    position: relative;
    z-index: 1;
}

.nx-offers-hero__title {
    margin: 0;
    font-size: clamp(1.85rem, 5vw, 2.75rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.025em;
    color: var(--nx-offers-text);
    text-wrap: balance;
    opacity: 0;
    animation: nx-offers-rise 0.55s var(--nx-offers-ease) 0.06s forwards;
}

/* ========== Tabs ========== */
.nx-offers-tabs {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.55rem 0 0.75rem;
    margin-bottom: 1rem;
    scrollbar-width: none;
    scroll-margin-top: 0.5rem;
    background: linear-gradient(180deg, var(--nx-offers-bg) 70%, transparent);
}

.nx-offers-tabs::-webkit-scrollbar {
    display: none;
}

.nx-offers-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex: 0 0 auto;
    min-height: 44px;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    border: 1px solid var(--nx-offers-border);
    background: var(--nx-offers-card);
    color: var(--nx-offers-text);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s var(--nx-offers-ease),
        box-shadow 0.2s ease;
}

.nx-offers-tab:hover {
    border-color: color-mix(in srgb, var(--nx-offers-accent) 35%, var(--nx-offers-border));
    transform: translateY(-1px);
}

.nx-offers-tab.is-active,
.nx-offers-tab[aria-selected="true"] {
    background: var(--nx-offers-accent);
    border-color: var(--nx-offers-accent);
    color: #fff;
    box-shadow: 0 6px 16px color-mix(in srgb, var(--nx-offers-accent) 28%, transparent);
}

.nx-offers-tab__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    min-height: 1.5rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 750;
    background: color-mix(in srgb, var(--nx-offers-text) 8%, transparent);
}

.nx-offers-tab.is-active .nx-offers-tab__count,
.nx-offers-tab[aria-selected="true"] .nx-offers-tab__count {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.nx-offers-panel[hidden] {
    display: none !important;
}

.nx-offers-panel:not([hidden]) {
    animation: nx-offers-fade 0.35s var(--nx-offers-ease);
}

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

.nx-offers-section-title {
    margin: 0;
    font-size: clamp(1.15rem, 2.5vw, 1.45rem);
    font-weight: 800;
    letter-spacing: -0.015em;
}

.nx-offers-section-sub {
    margin: 0.25rem 0 0;
    font-size: 0.875rem;
    color: var(--nx-offers-muted);
}

.nx-offers-section-sub code {
    font-size: 0.75rem;
    padding: 0.05rem 0.3rem;
    border-radius: 4px;
    background: color-mix(in srgb, var(--nx-offers-border) 55%, transparent);
}

/* ========== Filters ========== */
.nx-offers-toolbar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-bottom: 1.15rem;
    padding: 0.95rem;
    border-radius: 16px;
    border: 1px solid var(--nx-offers-border);
    background: var(--nx-offers-card);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

@media (min-width: 768px) {
    .nx-offers-toolbar {
        grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
        align-items: end;
        gap: 0.85rem 1rem;
        padding: 1.1rem;
    }
}

@media (min-width: 1024px) {
    .nx-offers-toolbar {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.1fr) auto;
    }
}

.nx-offers-toolbar__field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
    margin: 0;
}

.nx-offers-toolbar__field--check {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    min-height: 44px;
    font-size: 0.875rem;
    font-weight: 600;
}

.nx-offers-toolbar__label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--nx-offers-muted);
}

.nx-offers-toolbar__control {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--nx-offers-border);
    border-radius: 12px;
    background: #fff;
    color: var(--nx-offers-text);
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    font-size: 0.9375rem;
    appearance: auto;
    -webkit-appearance: menulist;
    position: relative;
    z-index: 2;
    pointer-events: auto;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nx-offers-toolbar__control:focus {
    outline: none;
    border-color: var(--nx-offers-accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--nx-offers-accent) 22%, transparent);
}

#discount-filter-form select.no-nice-select {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

#discount-filter-form .nice-select {
    display: none !important;
}

.nx-offers-toolbar__actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.nx-offers-toolbar__btn {
    min-height: 44px;
    padding: 0.55rem 1.05rem;
    border: 0;
    border-radius: 12px;
    background: var(--nx-offers-accent);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.nx-offers-toolbar__btn:hover,
.nx-offers-toolbar__btn:focus-visible {
    background: var(--nx-offers-accent-hover);
    transform: translateY(-1px);
}

.nx-offers-toolbar__reset {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--nx-offers-muted);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ========== Pagination ========== */
.nx-offers-pagination,
.nx-offers-products #pro-paginate-area {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    width: 100%;
    overflow-x: auto;
}

.nx-offers-products #pro-paginate-area {
    margin-left: auto;
    margin-right: auto;
}

.nx-offers-pagination nav,
.nx-offers-products #pro-paginate-area nav {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.nx-offers-products #pro-paginate-area > nav > .d-sm-none,
.nx-offers-pagination > nav > .d-sm-none {
    display: none !important;
}

.nx-offers-products #pro-paginate-area > nav > .d-none.d-sm-flex,
.nx-offers-pagination > nav > .d-none.d-sm-flex,
.nx-offers-products #pro-paginate-area > nav > [class*="d-sm-flex"],
.nx-offers-pagination > nav > [class*="d-sm-flex"] {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
}

.nx-offers-pagination .pagination,
.nx-offers-products #pro-paginate-area .pagination {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nx-offers-pagination .page-item,
.nx-offers-products #pro-paginate-area .page-item {
    display: inline-flex;
}

.nx-offers-pagination .page-link,
.nx-offers-products #pro-paginate-area .page-link {
    min-width: 40px;
    min-height: 40px;
    max-height: 44px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: var(--nx-offers-text);
    border: 1px solid var(--nx-offers-border);
    background: #fff;
    text-decoration: none;
    font-size: 0.875rem;
    line-height: 1;
    padding: 0.45rem 0.7rem;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.nx-offers-pagination .page-item.active .page-link,
.nx-offers-products #pro-paginate-area .page-item.active .page-link {
    background: var(--nx-offers-accent);
    border-color: var(--nx-offers-accent);
    color: #fff;
}

.nx-offers-pagination .page-item.disabled .page-link,
.nx-offers-products #pro-paginate-area .page-item.disabled .page-link {
    opacity: 0.55;
    pointer-events: none;
}

.nx-offers-pagination svg,
.nx-offers-products #pro-paginate-area svg {
    width: 1rem !important;
    height: 1rem !important;
    max-width: 1rem !important;
    max-height: 1rem !important;
    display: block;
}

/* ========== Campaign cards ========== */
.nx-offers-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.95rem;
}

.nx-offer-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--nx-offers-card);
    border: 1px solid var(--nx-offers-border);
    border-radius: 16px;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    opacity: 0;
    animation: nx-offers-card-in 0.55s var(--nx-offers-ease) forwards;
    animation-delay: calc(0.05s + (var(--nx-offer-i, 0) * 0.05s));
    transition:
        transform 0.28s var(--nx-offers-ease),
        border-color 0.2s ease,
        box-shadow 0.28s var(--nx-offers-ease);
}

a.nx-offer-card:hover,
a.nx-offer-card:focus-visible {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--nx-offers-accent) 40%, var(--nx-offers-border));
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    color: inherit;
}

.nx-offer-card__media {
    position: relative;
    aspect-ratio: 16 / 10;
    background:
        linear-gradient(145deg,
            color-mix(in srgb, var(--nx-offers-accent) 10%, #fff),
            color-mix(in srgb, var(--nx-offers-bg) 80%, #fff));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.nx-offer-card__media--empty {
    min-height: 10rem;
}

.nx-offer-card__media--flash {
    background:
        linear-gradient(145deg,
            color-mix(in srgb, var(--nx-offers-accent) 18%, var(--nx-offers-card)) 0%,
            color-mix(in srgb, var(--nx-offers-discount) 12%, var(--nx-offers-bg)) 100%);
}

.nx-offer-card--flash .nx-offer-card__placeholder {
    color: var(--nx-offers-text);
    letter-spacing: -0.01em;
}

.nx-offer-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s var(--nx-offers-ease);
}

a.nx-offer-card:hover .nx-offer-card__img {
    transform: scale(1.04);
}

.nx-offer-card__placeholder {
    max-width: 80%;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 750;
    color: var(--nx-offers-muted);
    line-height: 1.35;
}

.nx-offer-card__badge {
    position: absolute;
    top: 0.7rem;
    right: 0.7rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.32rem 0.65rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 750;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #fff;
    background: var(--nx-offers-accent);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.nx-offer-card__badge-dot {
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5);
    animation: nx-offers-pulse-soft 1.8s ease-out infinite;
}

.nx-offer-card__badge--upcoming {
    background: #b58100;
}

.nx-offer-card__badge--expired {
    background: #8a8a8e;
}

.nx-offer-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.95rem 1rem 1.1rem;
    flex: 1;
}

.nx-offer-card__title {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 750;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nx-offer-card__discount {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 750;
    color: var(--nx-offers-discount);
}

.nx-offer-card__meta {
    margin: 0;
    font-size: 0.75rem;
    color: var(--nx-offers-muted);
}

/* Campaign / Flash Sale countdown (replaces end date) */
.nx-offer-countdown {
    display: inline-flex;
    align-items: stretch;
    gap: 0.3rem;
    margin: 0.35rem 0 0.15rem;
}

.nx-offer-countdown__unit {
    display: flex;
    flex-direction: column;
    width: 2.65rem;
    min-width: 2.65rem;
    border-radius: 7px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nx-offer-countdown__value {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 1.5rem;
    padding: 0.25rem 0.08rem 0.1rem;
    background: var(--nx-offers-accent);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.nx-offer-countdown__label {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0.95rem;
    padding: 0.08rem 0.06rem 0.16rem;
    background: #fff;
    color: var(--nx-offers-text);
    font-size: 0.5rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1;
    border-top: 1px solid color-mix(in srgb, var(--nx-offers-border) 75%, transparent);
}

@media (min-width: 768px) {
    .nx-offer-countdown__unit {
        width: 2.85rem;
        min-width: 2.85rem;
    }

    .nx-offer-countdown__value {
        min-height: 1.65rem;
        font-size: 1rem;
    }
}

.nx-offer-card__cta {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 44px;
    padding: 0.55rem 0.85rem;
    border-radius: 12px;
    background: var(--nx-offers-accent);
    color: #fff !important;
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none !important;
    transition: background 0.2s ease, gap 0.2s ease;
}

a.nx-offer-card:hover .nx-offer-card__cta {
    background: var(--nx-offers-accent-hover);
    gap: 0.5rem;
}

.nx-offer-card__cta svg {
    transition: transform 0.2s var(--nx-offers-ease);
}

a.nx-offer-card:hover .nx-offer-card__cta svg {
    transform: translateX(2px);
}

.nx-offer-card__cta--disabled {
    background: #a1a1a6;
    pointer-events: none;
}

.nx-offer-card.is-disabled {
    filter: grayscale(0.2);
}

/* ========== Products ========== */
.nx-offers-products .row {
    --bs-gutter-x: 0.75rem;
    --bs-gutter-y: 0.75rem;
}

.nx-offers-products__grid > .nx-product-col {
    opacity: 0;
    animation: nx-offers-card-in 0.5s var(--nx-offers-ease) forwards;
}

.nx-offers-products__grid > .nx-product-col:nth-child(1) { animation-delay: 0.04s; }
.nx-offers-products__grid > .nx-product-col:nth-child(2) { animation-delay: 0.08s; }
.nx-offers-products__grid > .nx-product-col:nth-child(3) { animation-delay: 0.12s; }
.nx-offers-products__grid > .nx-product-col:nth-child(4) { animation-delay: 0.16s; }
.nx-offers-products__grid > .nx-product-col:nth-child(5) { animation-delay: 0.2s; }
.nx-offers-products__grid > .nx-product-col:nth-child(6) { animation-delay: 0.24s; }
.nx-offers-products__grid > .nx-product-col:nth-child(7) { animation-delay: 0.28s; }
.nx-offers-products__grid > .nx-product-col:nth-child(8) { animation-delay: 0.32s; }
.nx-offers-products__grid > .nx-product-col:nth-child(n+9) { animation-delay: 0.36s; }

.nx-offers-products .single-product {
    transition: transform 0.28s var(--nx-offers-ease), box-shadow 0.28s var(--nx-offers-ease);
}

@media (hover: hover) and (pointer: fine) {
    .nx-offers-products .single-product:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
    }
}

.nx-offers-empty {
    padding: 2rem 1rem;
    text-align: center;
    border-radius: 16px;
    border: 1px dashed var(--nx-offers-border);
    background: var(--nx-offers-card);
    color: var(--nx-offers-muted);
    animation: nx-offers-rise 0.45s var(--nx-offers-ease) both;
}

.nx-offers-page .visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* ========== FAQ ========== */
.nx-offers-faq {
    margin-top: 2.25rem;
    padding: 1.25rem 1rem;
    border-radius: 16px;
    background: var(--nx-offers-card);
    border: 1px solid var(--nx-offers-border);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.nx-offers-faq__title {
    margin: 0 0 0.85rem;
    font-size: 1.1rem;
    font-weight: 800;
}

.nx-offers-faq details {
    border-top: 1px solid var(--nx-offers-border);
    padding: 0.75rem 0;
}

.nx-offers-faq summary {
    cursor: pointer;
    font-weight: 650;
    font-size: 0.9375rem;
    min-height: 44px;
    display: flex;
    align-items: center;
    transition: color 0.15s ease;
}

.nx-offers-faq summary:hover {
    color: var(--nx-offers-accent);
}

.nx-offers-faq details[open] summary {
    color: var(--nx-offers-accent);
}

.nx-offers-faq p {
    margin: 0.45rem 0 0;
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--nx-offers-muted);
}

/* ========== Motion ========== */
@keyframes nx-offers-rise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes nx-offers-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes nx-offers-card-in {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes nx-offers-float {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(-6%, 8%, 0) scale(1.06); }
}

@keyframes nx-offers-pulse {
    0% { box-shadow: 0 0 0 0 rgba(52, 199, 89, 0.55); }
    70% { box-shadow: 0 0 0 8px rgba(52, 199, 89, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 199, 89, 0); }
}

@keyframes nx-offers-pulse-soft {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.45); }
    70% { box-shadow: 0 0 0 6px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .nx-offers-hero__glow,
    .nx-offers-hero__title,
    .nx-offers-panel:not([hidden]),
    .nx-offer-card,
    .nx-offers-products__grid > .nx-product-col,
    .nx-offers-empty,
    .nx-offer-card__badge-dot {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ========== Breakpoints ========== */
@media (min-width: 576px) {
    .nx-offers-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    .nx-offers-page {
        padding-bottom: 3.25rem;
    }

    .nx-offers-hero {
        padding: 1.65rem 0 1.35rem;
        margin-bottom: 1rem;
    }

    .nx-offers-faq {
        padding: 1.35rem 1.5rem;
    }
}

@media (min-width: 992px) {
    .nx-offers-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.2rem;
    }
}
