:root {
    --deals-page-bg: linear-gradient(180deg, rgba(238, 244, 255, 0.78) 0%, rgba(248, 250, 252, 0.94) 44%, rgba(239, 246, 255, 0.9) 100%);
    --deals-surface: rgba(255, 255, 255, 0.92);
    --deals-surface-strong: rgba(255, 255, 255, 0.98);
    --deals-border: rgba(203, 213, 225, 0.8);
    --deals-text: #0f172a;
    --deals-muted: #64748b;
    --deals-accent: #2563eb;
    --deals-accent-soft: rgba(37, 99, 235, 0.1);
    --deals-orange: #f97316;
    --deals-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
    --deals-shadow-soft: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.deals_page {
    position: relative;
    margin: 1.4rem auto 0;
    padding: clamp(0.85rem, 2vw, 1.25rem);
    border-radius: 34px;
    background:
        radial-gradient(circle at top left, rgba(245, 158, 11, 0.16), transparent 26%),
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.14), transparent 30%),
        var(--deals-page-bg);
    color: var(--deals-text);
    overflow: hidden;
}

.deals_page::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.07) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 72%);
}

.deals_page > * {
    position: relative;
    z-index: 1;
}

.deals_hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.34fr);
    gap: 1rem;
    align-items: stretch;
    margin-bottom: 1rem;
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 30px;
    background:
        radial-gradient(circle at 86% 12%, rgba(96, 165, 250, 0.28), transparent 24%),
        linear-gradient(135deg, #07111f 0%, #13284b 48%, #0f766e 100%);
    color: #ffffff;
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.22);
    overflow: hidden;
}

.deals_hero::after {
    content: "";
    position: absolute;
    right: -5rem;
    bottom: -7rem;
    width: 18rem;
    height: 18rem;
    border-radius: 42%;
    background: rgba(255, 255, 255, 0.08);
    transform: rotate(-18deg);
}

.deals_hero_copy,
.deals_hero_panel {
    position: relative;
    z-index: 1;
}

.deals_eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.45rem 0.72rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: #fde68a;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.deals_hero h1 {
    max-width: 760px;
    margin: 0;
    color: #ffffff;
    font-size: clamp(2rem, 4vw, 4.2rem);
    line-height: 0.98;
    letter-spacing: -0.065em;
}

.deals_hero p {
    max-width: 620px;
    margin: 1rem 0 0;
    color: rgba(226, 232, 240, 0.86);
    font-size: 1rem;
    line-height: 1.72;
}

.deals_hero_panel {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 180px;
    padding: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(14px);
}

.deals_panel_label {
    width: fit-content;
    margin-bottom: auto;
    padding: 0.38rem 0.68rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.18);
    color: #bfdbfe;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.deals_hero_panel strong {
    margin-top: 1.4rem;
    color: #ffffff;
    font-family: var(--display-font);
    font-size: 1.45rem;
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.deals_hero_panel span:last-child {
    margin-top: 0.45rem;
    color: rgba(226, 232, 240, 0.78);
    font-size: 0.9rem;
}

.deals_tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    margin: 0 0 1rem;
}

.deals_tabs li {
    min-width: 0;
}

.deals_tabs a {
    display: flex;
    flex-direction: column;
    min-height: 98px;
    padding: 1rem;
    border: 1px solid var(--deals-border);
    border-radius: 24px;
    background: var(--deals-surface);
    color: var(--deals-text);
    box-shadow: var(--deals-shadow-soft);
    text-decoration: none;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.deals_tabs a:hover {
    transform: translateY(-2px);
    border-color: rgba(96, 165, 250, 0.4);
    box-shadow: var(--deals-shadow);
    text-decoration: none;
}

.deals_tabs a > span:first-child {
    font-family: var(--display-font);
    font-size: 1.03rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.deals_tabs small {
    margin-top: 0.3rem;
    color: var(--deals-muted);
    font-weight: 650;
}

.active_deal_page a {
    border-color: rgba(37, 99, 235, 0.38);
    background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 64%, #0ea5e9 100%);
    color: #ffffff;
}

.active_deal_page a small {
    color: rgba(226, 232, 240, 0.8);
}

#today_countdown_timer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: auto;
    padding-top: 0.8rem;
}

#today_countdown_timer span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    padding: 0.38rem 0.48rem;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.92);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
}

.active_deal_page #today_countdown_timer span {
    background: rgba(255, 255, 255, 0.14);
}

.deals_mobile_filters {
    display: none;
    margin-bottom: 1rem;
    padding: 0.95rem;
    border: 1px solid var(--deals-border);
    border-radius: 24px;
    background: var(--deals-surface);
    box-shadow: var(--deals-shadow-soft);
}

.deals_filter_label {
    margin-bottom: 0.7rem;
    color: var(--deals-muted);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.deals_mobile_filters ul {
    display: flex;
    gap: 0.55rem;
    margin: 0;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scrollbar-width: thin;
}

.deals_mobile_filters li {
    flex: 0 0 auto;
}

.deals_mobile_filters a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 42px;
    padding: 0.6rem 0.85rem;
    border-radius: 999px;
    background: rgba(248, 250, 252, 0.92);
    color: var(--deals-text);
    font-weight: 700;
    white-space: nowrap;
}

.deals_layout {
    display: grid;
    grid-template-columns: minmax(220px, 0.28fr) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.deals_sidebar {
    min-width: 0;
}

.deals_sidebar_card {
    position: sticky;
    top: 138px;
    padding: 1rem;
    border: 1px solid var(--deals-border);
    border-radius: 28px;
    background: var(--deals-surface);
    box-shadow: var(--deals-shadow-soft);
}

.deals_sidebar_head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.8rem;
    color: var(--deals-text);
    font-family: var(--display-font);
    font-weight: 700;
    letter-spacing: -0.025em;
}

.deals_sidebar_head i {
    color: var(--deals-accent);
}

#deals_left {
    margin: 0;
}

#deals_left li + li {
    margin-top: 0.35rem;
}

#deals_left li a,
.deals_mobile_filters a {
    text-decoration: none;
    transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

#deals_left li a {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.72rem 0.8rem;
    border-radius: 16px;
    color: #334155;
    font-size: 0.9rem;
    font-weight: 700;
}

#deals_left li a i,
.deals_mobile_filters a i {
    width: 1.2rem;
    color: var(--deals-orange);
    text-align: center;
}

#deals_left li a:hover {
    background: rgba(37, 99, 235, 0.08);
    color: var(--deals-text);
    transform: translateX(2px);
}

.active_cat {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12) 0%, rgba(14, 165, 233, 0.1) 100%) !important;
    color: #1d4ed8 !important;
}

.active_cat i {
    color: #1d4ed8 !important;
}

.deals_content {
    min-width: 0;
    padding: clamp(1rem, 2vw, 1.25rem);
    border: 1px solid var(--deals-border);
    border-radius: 30px;
    background: var(--deals-surface-strong);
    box-shadow: var(--deals-shadow);
}

.deals_content_header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(203, 213, 225, 0.76);
}

.deals_section_kicker {
    color: var(--deals-muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.deals_content_header h2 {
    margin: 0.35rem 0 0;
    color: var(--deals-text);
    font-size: clamp(1.35rem, 2vw, 1.85rem);
    letter-spacing: -0.045em;
}

.deals_reset_link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.65rem 0.85rem;
    border-radius: 999px;
    background: var(--deals-accent-soft);
    color: var(--deals-accent);
    font-weight: 800;
    white-space: nowrap;
}

.deals_reset_link:hover {
    color: #1d4ed8;
    text-decoration: none;
}

#products_list {
    min-height: 220px;
}

.deals_article {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border-radius: 0;
    box-shadow: none;
    row-gap: 0.75rem;
}

.deals_article > [class*="col-"] {
    padding-left: 0.38rem !important;
    padding-right: 0.38rem !important;
    margin-bottom: 0.15rem !important;
}

.deals_article .pdt_div,
.deals_article .load_ad {
    min-height: 100%;
    padding: 0.72rem !important;
    border: 1px solid rgba(226, 232, 240, 0.88);
    border-radius: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%) !important;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.07);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.deals_article .pdt_div:hover,
.deals_article .load_ad:hover {
    transform: translateY(-3px);
    border-color: rgba(96, 165, 250, 0.36);
    box-shadow: 0 20px 36px rgba(15, 23, 42, 0.12);
}

.deals_article .pdt_div > .pdt_trigger_div {
    padding-left: 0;
}

.deals_article .pdt_div img:nth-child(1),
.deals_article .load_ad img {
    max-height: 190px;
    object-fit: contain;
}

.deals_article .pdt_div img:nth-child(2) {
    width: 42px;
    height: 42px;
    object-fit: cover;
}

.deals_article .pdt_name {
    color: #475569;
    font-size: 0.83rem;
    line-height: 1.4;
}

.deals_article .pdt_price {
    color: var(--deals-text);
    font-size: 0.94rem;
}

.deals_article .pdt_old_price {
    color: #ef4444 !important;
}

.deals_article .pdt_countdown {
    color: var(--deals-orange) !important;
    font-weight: 800;
}

.deals_article .load_ad .bg-light {
    min-height: 180px;
    border-radius: 20px;
    background:
        radial-gradient(circle at 20% 20%, rgba(96, 165, 250, 0.18), transparent 26%),
        linear-gradient(135deg, #eef6ff 0%, #ffffff 100%) !important;
}

.deals_empty_state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    padding: 2rem 1rem;
    border: 1px dashed rgba(148, 163, 184, 0.42);
    border-radius: 26px;
    background:
        radial-gradient(circle at 50% 0%, rgba(96, 165, 250, 0.12), transparent 32%),
        rgba(248, 250, 252, 0.76);
    text-align: center;
}

.deals_empty_icon {
    width: 68px;
    height: 68px;
    display: grid;
    place-items: center;
    margin-bottom: 1rem;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(37, 99, 235, 0.14));
    color: var(--deals-orange);
    font-size: 1.5rem;
}

.deals_empty_state h2 {
    margin: 0;
    color: var(--deals-text);
    font-size: 1.35rem;
}

.deals_empty_state p {
    max-width: 540px;
    margin: 0.7rem 0 1.15rem;
    color: var(--deals-muted);
    line-height: 1.7;
}

.deals_loader {
    min-height: 54px;
}

@media (max-width: 1199px) {
    .deals_layout {
        grid-template-columns: minmax(210px, 0.32fr) minmax(0, 1fr);
    }
}

@media (max-width: 991px) {
    .deals_page {
        margin-top: 1rem;
        border-radius: 28px;
    }

    .deals_hero,
    .deals_layout {
        grid-template-columns: 1fr;
    }

    .deals_sidebar {
        display: none;
    }

    .deals_mobile_filters {
        display: block;
    }

    .deals_hero_panel {
        min-height: 140px;
    }
}

@media (max-width: 767px) {
    .deals_page {
        padding: 0.7rem;
        border-radius: 24px;
    }

    .deals_hero {
        padding: 1.1rem;
        border-radius: 24px;
    }

    .deals_hero h1 {
        font-size: 2rem;
    }

    .deals_tabs {
        grid-template-columns: 1fr;
    }

    .deals_tabs a {
        min-height: 0;
    }

    .deals_content {
        padding: 0.85rem;
        border-radius: 24px;
    }

    .deals_content_header {
        flex-direction: column;
    }

    .deals_reset_link {
        width: 100%;
        justify-content: center;
    }

    .deals_article > [class*="col-"] {
        padding-left: 0.25rem !important;
        padding-right: 0.25rem !important;
    }
}
