:root {
    --ldm-primary: #003d9b;
    --ldm-primary-container: #0052cc;
    --ldm-primary-fixed: #dae2ff;
    --ldm-secondary: #4648d4;
    --ldm-secondary-container: #6063ee;
    --ldm-background: #faf8ff;
    --ldm-surface: #faf8ff;
    --ldm-surface-lowest: #fff;
    --ldm-surface-low: #f3f3fd;
    --ldm-surface-container: #ededf8;
    --ldm-surface-high: #e7e7f2;
    --ldm-surface-highest: #e1e2ec;
    --ldm-on-surface: #191b23;
    --ldm-on-variant: #434654;
    --ldm-outline: #737685;
    --ldm-outline-variant: #c3c6d6;
    --ldm-urgency: #ef4444;
    --ldm-success: #22c55e;
    --ldm-gold: #f59e0b;
    --ldm-display: "Plus Jakarta Sans", system-ui, sans-serif;
    --ldm-body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }

body.ldm-deals-page {
    margin: 0;
    overflow-x: hidden;
    background: var(--ldm-background);
    color: var(--ldm-on-surface);
    font-family: var(--ldm-body);
}

.ldm-deals-page a { color: inherit; text-decoration: none; }
.ldm-deals-page img { display: block; max-width: 100%; }
.material-symbols-outlined { line-height: 1; vertical-align: middle; }

.deals-topbar {
    position: fixed;
    inset: 0 0 auto;
    z-index: 60;
    height: 72px;
    border-bottom: 1px solid rgba(195, 198, 214, 0.3);
    background: rgba(250, 248, 255, 0.86);
    backdrop-filter: blur(18px);
    box-shadow: 0 1px 12px rgba(25, 27, 35, 0.04);
}

.deals-topbar__inner {
    display: flex;
    width: min(100%, 1600px);
    height: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-inline: auto;
    padding: 0 32px;
}

.deals-topbar__left,
.deals-topbar__right,
.deals-toplinks {
    display: flex;
    align-items: center;
}

.deals-topbar__left { gap: 16px; min-width: 0; }
.deals-topbar__right { gap: 24px; }

.deals-brand {
    color: var(--ldm-primary);
    font-family: var(--ldm-display);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.03em;
    white-space: nowrap;
}

.deals-icon-btn {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--ldm-on-variant);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.deals-icon-btn:hover {
    background: var(--ldm-surface-container);
    color: var(--ldm-primary);
}

.deals-icon-btn:active { transform: scale(0.94); }

.deals-search {
    position: relative;
    display: flex;
    width: min(384px, 34vw);
    align-items: center;
}

.deals-search .material-symbols-outlined {
    position: absolute;
    left: 12px;
    color: var(--ldm-on-variant);
}

.deals-search input {
    width: 100%;
    height: 40px;
    border: 0;
    border-radius: 999px;
    background: var(--ldm-surface-low);
    color: var(--ldm-on-surface);
    font-size: 14px;
    outline: 0;
    padding: 8px 16px 8px 42px;
}

.deals-search input:focus {
    box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.16);
}

.deals-toplinks {
    gap: 24px;
    font-size: 14px;
    font-weight: 700;
}

.deals-toplinks a {
    border-bottom: 2px solid transparent;
    color: var(--ldm-on-variant);
    padding: 8px 0;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.deals-toplinks a:hover,
.deals-toplinks a.is-active {
    border-bottom-color: var(--ldm-primary);
    color: var(--ldm-primary);
}

.deals-sidebar {
    position: fixed;
    left: 0;
    top: 72px;
    bottom: 0;
    z-index: 50;
    display: flex;
    width: 256px;
    flex-direction: column;
    overflow: hidden;
    border-right: 1px solid rgba(195, 198, 214, 0.3);
    background: var(--ldm-surface-lowest);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.deals-sidebar__nav {
    display: flex;
    height: 100%;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
    padding: 16px;
}

.deals-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 12px;
    color: var(--ldm-on-variant);
    font-size: 14px;
    font-weight: 700;
    padding: 12px 16px;
    transition: background 0.2s ease, color 0.2s ease;
}

.deals-nav-item:hover {
    background: var(--ldm-surface-low);
    color: var(--ldm-primary);
}

.deals-nav-item.is-active {
    background: var(--ldm-primary-container);
    color: #fff;
    box-shadow: 0 6px 16px rgba(0, 82, 204, 0.14);
}

.deals-sidebar hr {
    width: calc(100% - 32px);
    border-color: rgba(195, 198, 214, 0.3);
    margin: 8px 16px;
}

.deals-sidebar__vendor { margin-top: auto; }

.deals-sidebar.sidebar-collapsed { width: 80px; }
.deals-sidebar.sidebar-collapsed b { display: none; }
.deals-sidebar.sidebar-collapsed .deals-nav-item { justify-content: center; padding-inline: 0; }
.deals-sidebar.sidebar-collapsed hr { width: calc(100% - 16px); margin-inline: 8px; }

.deals-shell {
    min-height: 100vh;
    margin-left: 256px;
    padding-top: 72px;
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.deals-shell.is-collapsed { margin-left: 80px; }

.deals-urgency-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: var(--ldm-urgency);
    color: #fff;
    font-size: 14px;
    padding: 8px 16px;
}

.deals-urgency-bar strong {
    font-family: var(--ldm-display);
    font-size: 14px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.deals-urgency-bar a {
    border-radius: 999px;
    background: #fff;
    color: var(--ldm-urgency);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    padding: 5px 16px;
    text-transform: uppercase;
}

.deals-content {
    width: min(100%, 1300px);
    margin-inline: auto;
    padding: 32px;
}

.deals-hero {
    position: relative;
    height: 450px;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 22px 42px rgba(25, 27, 35, 0.18);
}

.deals-hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.deals-hero:hover img { transform: scale(1.05); }

.deals-hero__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(25, 27, 35, 0.92), rgba(25, 27, 35, 0.42), transparent);
}

.deals-hero__content {
    position: relative;
    z-index: 1;
    display: flex;
    height: 100%;
    max-width: 672px;
    flex-direction: column;
    justify-content: center;
    color: #fff;
    padding: 48px;
}

.deals-chip {
    width: max-content;
    border-radius: 999px;
    background: var(--ldm-primary-container);
    color: #c4d2ff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    margin-bottom: 24px;
    padding: 6px 16px;
    text-transform: uppercase;
}

.deals-hero h1 {
    font-family: var(--ldm-display);
    font-size: 48px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 56px;
    margin: 0 0 16px;
}

.deals-hero p {
    max-width: 520px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
    line-height: 28px;
    margin: 0 0 28px;
}

.deals-countdown-wrap > span {
    display: block;
    color: rgba(255, 255, 255, 0.62);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
}

.deals-countdown {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}

.deals-countdown label {
    display: grid;
    gap: 6px;
    text-align: center;
}

.deals-countdown b {
    min-width: 60px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    font-family: var(--ldm-display);
    font-size: 24px;
    line-height: 32px;
    padding: 12px;
    backdrop-filter: blur(10px);
}

.deals-countdown small {
    color: rgba(255, 255, 255, 0.62);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.deals-primary-btn {
    display: inline-flex;
    width: max-content;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    background: var(--ldm-primary-container);
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    padding: 14px 36px;
    box-shadow: 0 12px 24px rgba(0, 61, 155, 0.24);
}

.deals-section {
    margin-top: 56px;
}

.deals-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
}

.deals-section__head h2,
.coupon-heading h2,
.category-deals h2,
.promo-vendor h2,
.promo-rewards h2 {
    margin: 0;
    font-family: var(--ldm-display);
    font-size: 32px;
    font-weight: 800;
    line-height: 40px;
}

.deals-section__head a {
    color: var(--ldm-primary);
    font-size: 14px;
    font-weight: 900;
}

.deals-heading-inline {
    display: flex;
    align-items: center;
    gap: 12px;
}

.deals-heading-icon {
    color: var(--ldm-urgency);
    font-size: 34px;
}

.deals-ending-badge {
    border-radius: 8px;
    background: #ffdad6;
    color: #93000a;
    font-size: 12px;
    font-weight: 900;
    padding: 6px 12px;
    animation: dealPulse 2s ease-in-out infinite;
}

.deals-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.deal-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(195, 198, 214, 0.3);
    border-radius: 16px;
    background: var(--ldm-surface-lowest);
    padding: 16px;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.deal-card:hover {
    box-shadow: 0 18px 34px rgba(25, 27, 35, 0.12);
    transform: translateY(-2px);
}

.deal-card__image {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: var(--ldm-surface-low);
    aspect-ratio: 1;
    margin-bottom: 16px;
}

.deal-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.deal-card__image > span {
    position: absolute;
    left: 8px;
    top: 8px;
    border-radius: 8px;
    background: var(--ldm-urgency);
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    padding: 6px 8px;
}

.deal-card__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 61, 155, 0.2);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    backdrop-filter: blur(4px);
}

.deal-card:hover .deal-card__overlay {
    opacity: 1;
    transform: translateY(0);
}

.deal-card__overlay a {
    border-radius: 999px;
    background: #fff;
    color: var(--ldm-primary);
    font-size: 14px;
    font-weight: 900;
    padding: 9px 24px;
    box-shadow: 0 8px 20px rgba(25, 27, 35, 0.18);
}

.deal-card h3 {
    overflow: hidden;
    color: var(--ldm-on-surface);
    font-size: 14px;
    font-weight: 800;
    margin: 0 0 4px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.deal-card p {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 0 0 12px;
}

.deal-card strong {
    color: var(--ldm-on-surface);
    font-family: var(--ldm-display);
    font-size: 18px;
    font-weight: 900;
}

.deal-card del {
    color: var(--ldm-on-variant);
    font-size: 14px;
}

.deal-stock {
    display: grid;
    gap: 6px;
}

.deal-stock div {
    display: flex;
    justify-content: space-between;
    color: var(--ldm-on-variant);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.deal-stock {
    --track: var(--ldm-surface-container);
}

.deal-stock::after {
    display: block;
    width: 100%;
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--track);
    content: "";
}

.deal-stock i {
    display: block;
    width: var(--sold);
    height: 6px;
    border-radius: 999px;
    background: var(--ldm-urgency);
    margin-top: -12px;
    position: relative;
    z-index: 1;
}

.deal-card:nth-child(2) .deal-stock i,
.deal-card:nth-child(4) .deal-stock i {
    background: var(--ldm-primary);
}

.coupon-center {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: var(--ldm-surface-container);
    margin-top: 64px;
    padding: 48px;
}

.coupon-watermark {
    position: absolute;
    right: -70px;
    top: -30px;
    color: var(--ldm-on-surface);
    font-size: 220px;
    opacity: 0.08;
    transform: rotate(-12deg);
    pointer-events: none;
}

.coupon-heading {
    position: relative;
    z-index: 1;
    align-items: flex-start;
    margin-bottom: 32px;
}

.coupon-heading p {
    color: var(--ldm-on-variant);
    margin: 8px 0 0;
}

.coupon-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.coupon-card {
    display: flex;
    align-items: center;
    gap: 22px;
    border: 2px dashed rgba(0, 82, 204, 0.3);
    border-radius: 16px;
    background: #fff;
    padding: 24px;
}

.coupon-card > div {
    display: flex;
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(0, 82, 204, 0.1);
    color: var(--ldm-primary);
}

.coupon-card .material-symbols-outlined { font-size: 40px; }
.coupon-card section { min-width: 0; flex: 1; }
.coupon-card h3 {
    color: var(--ldm-primary);
    font-family: var(--ldm-display);
    font-size: 22px;
    font-weight: 900;
    margin: 0;
}

.coupon-card p {
    color: var(--ldm-on-variant);
    font-size: 14px;
    font-weight: 700;
    margin: 2px 0;
}

.coupon-card small {
    color: rgba(67, 70, 84, 0.65);
    display: block;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.coupon-card button {
    border: 0;
    border-radius: 8px;
    background: var(--ldm-primary);
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    padding: 9px 16px;
    transition: transform 0.2s ease;
}

.coupon-card button:hover { transform: scale(1.05); }
.coupon-card--gold { border-color: rgba(245, 158, 11, 0.3); }
.coupon-card--gold > div { background: rgba(245, 158, 11, 0.1); color: var(--ldm-gold); }
.coupon-card--gold h3 { color: var(--ldm-gold); }
.coupon-card--gold button { background: var(--ldm-gold); }
.coupon-card--success { border-color: rgba(34, 197, 94, 0.3); }
.coupon-card--success > div { background: rgba(34, 197, 94, 0.1); color: var(--ldm-success); }
.coupon-card--success h3 { color: var(--ldm-success); }
.coupon-card--success button { background: var(--ldm-success); }

.category-deals {
    margin-top: 64px;
}

.category-arrows {
    display: flex;
    gap: 8px;
}

.category-arrows button,
.deals-social button {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--ldm-outline-variant);
    border-radius: 999px;
    background: transparent;
    color: var(--ldm-on-surface);
}

.category-arrows button:hover {
    background: var(--ldm-surface-container);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
}

.category-grid a {
    display: grid;
    justify-items: center;
    gap: 12px;
    color: var(--ldm-on-variant);
    font-size: 14px;
    font-weight: 800;
    text-align: center;
}

.category-grid span {
    display: flex;
    width: 96px;
    height: 96px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--ldm-surface-high);
    color: var(--ldm-on-surface);
    font-size: 34px;
    box-shadow: 0 4px 14px rgba(25, 27, 35, 0.06);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.category-grid a:hover span {
    background: var(--ldm-primary-container);
    color: #fff;
    transform: scale(1.05);
}

.category-grid a:hover b {
    color: var(--ldm-primary);
}

.promo-bento {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin: 64px 0 80px;
}

.promo-vendor {
    position: relative;
    overflow: hidden;
    min-height: 320px;
    border-radius: 24px;
    box-shadow: 0 18px 36px rgba(25, 27, 35, 0.14);
}

.promo-vendor img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.promo-vendor::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 61, 155, 0.82), transparent);
    content: "";
}

.promo-vendor div {
    position: relative;
    z-index: 1;
    display: flex;
    max-width: 460px;
    min-height: 320px;
    flex-direction: column;
    justify-content: center;
    color: #fff;
    padding: 40px;
}

.promo-vendor p,
.promo-rewards p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 16px;
    line-height: 24px;
    margin: 8px 0 24px;
}

.promo-vendor a,
.promo-rewards a {
    display: inline-flex;
    width: max-content;
    justify-content: center;
    border-radius: 999px;
    background: #fff;
    color: var(--ldm-primary);
    font-size: 14px;
    font-weight: 900;
    padding: 10px 24px;
}

.promo-rewards {
    display: flex;
    min-height: 320px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    background: var(--ldm-secondary-container);
    color: #fff;
    padding: 40px;
    text-align: center;
    box-shadow: 0 18px 36px rgba(70, 72, 212, 0.18);
}

.promo-rewards > span {
    font-size: 64px;
    margin-bottom: 16px;
}

.promo-rewards a {
    width: 100%;
    color: var(--ldm-secondary);
    padding: 14px 24px;
}

.deals-footer {
    border-top: 1px solid rgba(195, 198, 214, 0.3);
    background: var(--ldm-surface-highest);
}

.deals-footer__grid {
    display: grid;
    grid-template-columns: 1.2fr repeat(3, 1fr);
    gap: 24px;
    width: min(100%, 1280px);
    margin-inline: auto;
    padding: 48px 32px;
}

.deals-footer section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.deals-footer h2 {
    color: var(--ldm-primary);
    font-family: var(--ldm-display);
    font-size: 24px;
    font-weight: 900;
}

.deals-footer h3 {
    font-size: 14px;
    font-weight: 900;
}

.deals-footer p,
.deals-footer a {
    color: var(--ldm-on-variant);
    font-size: 15px;
    line-height: 24px;
}

.deals-social {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.deals-social button {
    border: 0;
    background: var(--ldm-surface-high);
}

.deals-social button:hover {
    color: var(--ldm-primary);
}

.deals-footer__legal {
    width: min(100%, 1280px);
    border-top: 1px solid rgba(195, 198, 214, 0.3);
    color: var(--ldm-on-variant);
    margin: 0 auto;
    padding: 24px 32px;
    text-align: center;
}

@keyframes dealPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.55; }
}

@media (max-width: 1199.98px) {
    .deals-grid,
    .coupon-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .deals-toplinks {
        display: none;
    }
}

@media (max-width: 991.98px) {
    .deals-sidebar {
        display: none;
    }

    .deals-shell,
    .deals-shell.is-collapsed {
        margin-left: 0;
    }

    .deals-search {
        display: none;
    }

    .promo-bento,
    .deals-footer__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .deals-topbar {
        height: 64px;
    }

    .deals-topbar__inner {
        padding: 0 16px;
    }

    .deals-brand {
        font-size: 20px;
    }

    .deals-shell {
        padding-top: 64px;
    }

    .deals-urgency-bar {
        flex-wrap: wrap;
        gap: 8px 12px;
        text-align: center;
    }

    .deals-urgency-bar strong {
        font-size: 12px;
    }

    .deals-content {
        padding: 20px 16px;
    }

    .deals-hero {
        height: 560px;
        border-radius: 20px;
    }

    .deals-hero__shade {
        background: linear-gradient(to top, rgba(25, 27, 35, 0.94), rgba(25, 27, 35, 0.38), transparent);
    }

    .deals-hero__content {
        justify-content: flex-end;
        padding: 28px;
    }

    .deals-hero h1 {
        font-size: 34px;
        line-height: 42px;
    }

    .deals-hero p {
        font-size: 16px;
        line-height: 24px;
    }

    .deals-countdown {
        flex-wrap: wrap;
    }

    .deals-section__head {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .deals-heading-inline {
        flex-wrap: wrap;
    }

    .deals-grid,
    .coupon-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .coupon-center {
        padding: 28px 20px;
    }

    .coupon-card {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .coupon-card button {
        width: 100%;
    }

    .category-grid {
        gap: 24px;
    }

    .promo-vendor div,
    .promo-rewards {
        padding: 28px;
    }
}
