:root {
    --ldm-primary: #0052cc;
    --ldm-primary-dark: #0040a2;
    --ldm-background: #faf8ff;
    --ldm-surface: #faf8ff;
    --ldm-surface-lowest: #ffffff;
    --ldm-surface-low: #f3f3fd;
    --ldm-surface-container: #ededf8;
    --ldm-surface-high: #e7e7f2;
    --ldm-surface-highest: #e1e2ec;
    --ldm-on-surface: #191b23;
    --ldm-on-surface-variant: #434654;
    --ldm-outline: #737685;
    --ldm-outline-variant: #c3c6d6;
    --ldm-inverse-surface: #2e3038;
    --ldm-urgency: #ef4444;
    --ldm-success: #22c55e;
    --ldm-display: "Plus Jakarta Sans", system-ui, sans-serif;
    --ldm-body: "Inter", system-ui, sans-serif;
    --ldm-sidebar-width: 280px;
    --ldm-sidebar-collapsed: 80px;
    --ldm-page-padding: 32px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.ldm-home {
    min-width: 320px;
    margin: 0;
    overflow-x: hidden;
    background: var(--ldm-background);
    color: var(--ldm-on-surface);
    font-family: var(--ldm-body);
}

.ldm-home a {
    color: inherit;
    text-decoration: none;
}

.ldm-home img {
    display: block;
    max-width: 100%;
}

.material-symbols-outlined {
    display: inline-block;
    font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
    line-height: 1;
    vertical-align: middle;
}

.ldm-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1070;
    display: flex;
    width: var(--ldm-sidebar-width);
    height: 100vh;
    flex-direction: column;
    overflow: visible;
    /* border-right: 1px solid rgba(195, 198, 214, 0.3); */
    background: var(--ldm-surface-lowest);
    transition: width 0.3s ease;
}

.ldm-sidebar__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 24px;
}

.ldm-sidebar__brand,
.ldm-sidebar__brand-icon {
    color: var(--ldm-primary);
    font-family: var(--ldm-display);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.05;
}

.ldm-sidebar__brand {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.ldm-sidebar__brand span {
    font-size: 24px;
}

.ldm-sidebar__brand small {
    color: var(--ldm-on-surface-variant);
    font-family: var(--ldm-body);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.2em;
    opacity: 0.7;
}

.ldm-sidebar__brand-icon {
    display: none;
    font-size: 24px;
}

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

.ldm-icon-button:hover,
.ldm-icon-button:focus-visible {
    background: var(--ldm-surface-low);
    color: var(--ldm-primary);
}

.ldm-icon-button:active {
    transform: scale(0.92);
}

.ldm-sidebar__nav {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 4px;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 8px 16px;
}

.ldm-sidebar__footer {
    border-top: 1px solid rgba(195, 198, 214, 0.3);
    padding: 24px 16px;
}

.ldm-sidebar__item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    border-radius: 8px;
    color: var(--ldm-on-surface-variant);
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
    padding: 12px 16px;
    transition: background 0.2s ease, color 0.2s ease;
}

.ldm-sidebar__item:hover,
.ldm-sidebar__item:focus-visible {
    background: var(--ldm-surface-low);
    color: var(--ldm-primary);
}

.ldm-sidebar__item .material-symbols-outlined {
    flex: 0 0 auto;
}

.sidebar-link-active {
    /* border-right: 4px solid var(--ldm-primary); */
    background: rgba(0, 82, 204, 0.08);
    color: var(--ldm-primary);
}

.sidebar-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: opacity 0.2s ease, transform 0.2s ease, width 0.2s ease;
}

.tooltip {
    position: absolute;
    left: 100%;
    z-index: 1090;
    margin-left: 12px;
    border-radius: 6px;
    background: var(--ldm-inverse-surface);
    color: #fff;
    font-size: 12px;
    opacity: 0;
    padding: 8px 12px;
    pointer-events: none;
    top: 50%;
    transform: translateY(-50%);
    transition: opacity 0.2s ease;
    white-space: nowrap;
}

.sidebar-collapsed {
    width: var(--ldm-sidebar-collapsed);
}

.sidebar-collapsed .logo-full {
    display: none;
}

.sidebar-collapsed .logo-icon {
    display: block;
}

.sidebar-collapsed .sidebar-label {
    width: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-10px);
}

.sidebar-collapsed .ldm-sidebar__item {
    justify-content: center;
    padding-inline: 12px;
}

.sidebar-collapsed .sidebar-item:hover .tooltip,
.sidebar-collapsed .sidebar-item:focus-visible .tooltip {
    opacity: 1;
}

.ldm-page {
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

.main-content-expanded {
    margin-left: var(--ldm-sidebar-width);
}

.main-content-collapsed {
    margin-left: var(--ldm-sidebar-collapsed);
}

.ldm-live-banner {
    position: sticky;
    top: 0;
    z-index: 1060;
    display: flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: var(--ldm-urgency);
    color: #fff;
    padding: 7px var(--ldm-page-padding);
}

.ldm-live-banner strong {
    font-family: var(--ldm-display);
    font-size: 14px;
}

.ldm-live-banner a {
    border-radius: 999px;
    background: #fff;
    color: var(--ldm-urgency);
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    padding: 8px 16px;
}

.ldm-topnav {
    position: sticky;
    top: 40px;
    z-index: 1050;
    border-bottom: 1px solid rgba(195, 198, 214, 0.3);
    background: rgba(250, 248, 255, 0.85);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 8px rgba(25, 27, 35, 0.04);
    transition: transform 0.3s ease;
}

.ldm-topnav__inner,
.ldm-main,
.ldm-footer__grid {
    width: min(100%, 1280px);
    margin-inline: auto;
}

.ldm-topnav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px var(--ldm-page-padding);
}

.ldm-topnav__title {
    display: flex;
    align-items: center;
    gap: 32px;
}

.ldm-topnav__title h2 {
    margin: 0;
    color: var(--ldm-on-surface);
    font-family: var(--ldm-display);
    font-size: 24px;
    font-weight: 700;
    line-height: 32px;
}

.ldm-mobile-brand,
.ldm-mobile-link {
    display: none;
}

.ldm-topnav__actions {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    max-width: 672px;
}

.ldm-action-icons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ldm-main {
    display: grid;
    gap: 32px;
    padding: 32px var(--ldm-page-padding) 0;
}

.home-feed {
    align-content: start;
}

.home-app-promo {
    display: flex;
    align-items: center;
    gap: 14px;
    overflow: hidden;
    border: 1px solid rgba(0, 82, 204, 0.14);
    border-radius: 16px;
    background:
        linear-gradient(135deg, rgba(0, 82, 204, 0.1), rgba(239, 68, 68, 0.08)),
        var(--ldm-surface-lowest);
    box-shadow: 0 14px 34px rgba(25, 27, 35, 0.06);
    color: var(--ldm-on-surface);
    padding: 16px 20px;
}

.home-app-promo .material-symbols-outlined {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border-radius: 999px;
    background: var(--ldm-urgency);
    color: #fff;
    font-size: 24px;
}

.home-app-promo p {
    margin: 0;
    color: var(--ldm-on-surface-variant);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
}

.home-app-promo strong {
    color: var(--ldm-on-surface);
    font-family: var(--ldm-display);
    font-weight: 800;
}

.ldm-hero {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #000;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.18);
}

.ldm-hero__media {
    position: relative;
    aspect-ratio: 16 / 9;
    min-height: 360px;
}

.ldm-hero__media img,
.ldm-partner-card img,
.ldm-show-card img,
.ldm-bento img,
.ldm-deal__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ldm-hero__media img {
    opacity: 0.8;
}

.ldm-hero__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: none;
    padding: 12px;
}

.ldm-hero__badges {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ldm-live-pill,
.ldm-viewers {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    pointer-events: auto;
}

.ldm-live-pill {
    border-radius: 8px;
    background: var(--ldm-urgency);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    padding: 7px 12px;
    text-transform: uppercase;
}

.ldm-live-pill i {
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    animation: ldmPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    background: #fff;
}

.ldm-glass {
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(12px);
}

.ldm-viewers {
    border-radius: 8px;
    color: var(--ldm-on-surface);
    font-size: 12px;
    font-weight: 800;
    padding: 7px 12px;
}

.ldm-viewers .material-symbols-outlined {
    font-size: 16px;
}

.ldm-hero__card {
    width: min(100%, 512px);
    border-radius: 12px;
    color: var(--ldm-on-surface);
    margin: 0 0 16px;
    padding: 24px;
    pointer-events: auto;
    transition: transform 0.2s ease;
}

.ldm-hero__card:hover {
    transform: scale(1.02);
}

.ldm-hero__card h1 {
    margin: 0 0 8px;
    font-family: var(--ldm-display);
    font-size: 32px;
    font-weight: 700;
    line-height: 40px;
}

.ldm-hero__card p,
.ldm-section__heading p,
.ldm-copy {
    color: var(--ldm-on-surface-variant);
    font-size: 16px;
    line-height: 24px;
}

.ldm-hero__card p {
    margin: 0 0 24px;
}

.ldm-hero__play {
    position: absolute;
    inset: 50% auto auto 50%;
    display: flex;
    width: 80px;
    height: 80px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.2s ease;
    backdrop-filter: blur(12px);
}

.ldm-hero:hover .ldm-hero__play {
    opacity: 1;
}

.ldm-hero__play .material-symbols-outlined {
    font-size: 54px;
}

.ldm-button-row {
    display: flex;
    gap: 16px;
}

.ldm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    border: 0;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    line-height: 20px;
    padding: 12px 28px;
    text-transform: none;
    transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.ldm-btn .material-symbols-outlined,
.home-merchant-card b .material-symbols-outlined,
.home-curated-product__media b .material-symbols-outlined {
    flex: 0 0 auto;
    color: currentColor;
    font-size: 18px;
    line-height: 1;
}

.ldm-btn:active {
    transform: scale(0.97);
}

.ldm-btn--primary {
    background: var(--ldm-primary);
    color: #fff;
    box-shadow: 0 12px 24px rgba(0, 82, 204, 0.22);
}

.ldm-btn--soft {
    background: var(--ldm-surface-highest);
    color: var(--ldm-on-surface);
}

.ldm-btn--success {
    flex: 1;
    border-radius: 12px;
    background: var(--ldm-success);
    color: #fff;
    text-transform: uppercase;
}

.ldm-btn--icon {
    width: 56px;
    flex: 0 0 56px;
    border: 1px solid var(--ldm-outline-variant);
    border-radius: 12px;
    background: #fff;
    color: var(--ldm-on-surface);
    padding: 0;
}

.ldm-btn:hover {
    opacity: 0.9;
}

.ldm-section {
    min-width: 0;
}

.ldm-section__heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
}

.ldm-section__heading--single {
    align-items: center;
}

.ldm-section__heading h2,
.ldm-section-title {
    margin: 0;
    font-family: var(--ldm-display);
    font-size: 32px;
    font-weight: 700;
    line-height: 40px;
}

.ldm-section-title {
    margin-bottom: 32px;
}

.ldm-primary-heading {
    color: var(--ldm-primary);
}

.ldm-section__heading p {
    margin: 4px 0 0;
}

.ldm-section__heading > span,
.ldm-countdown span {
    color: var(--ldm-outline);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ldm-section__heading > a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--ldm-primary);
    font-size: 14px;
    font-weight: 800;
}

.ldm-countdown {
    text-align: right;
}

.ldm-countdown span {
    color: var(--ldm-urgency);
}

.ldm-countdown strong {
    display: block;
    font-family: var(--ldm-display);
    font-size: 24px;
    line-height: 32px;
}

.ldm-deal {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px;
    align-items: center;
    border: 1px solid rgba(195, 198, 214, 0.3);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(25, 27, 35, 0.04);
    padding: 32px;
}

.ldm-deal__image {
    position: relative;
    overflow: hidden;
    height: 400px;
    border-radius: 16px;
}

.ldm-deal__image span {
    position: absolute;
    left: 16px;
    top: 16px;
    border-radius: 999px;
    background: var(--ldm-primary);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    padding: 10px 16px;
    text-transform: uppercase;
}

.ldm-deal__content {
    display: grid;
    gap: 20px;
}

.ldm-eyebrow {
    margin: 0;
    color: var(--ldm-primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.ldm-deal__content h3 {
    margin: -10px 0 0;
    font-family: var(--ldm-display);
    font-size: 48px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 56px;
}

.ldm-price {
    display: flex;
    align-items: baseline;
    gap: 16px;
}

.ldm-price strong {
    font-family: var(--ldm-display);
    font-size: 32px;
    font-weight: 800;
    line-height: 40px;
}

.ldm-price span {
    color: var(--ldm-on-surface-variant);
    font-size: 18px;
    text-decoration: line-through;
}

.ldm-copy {
    margin: 0;
}

.ldm-sold {
    display: grid;
    gap: 8px;
}

.ldm-sold div {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.ldm-sold span {
    color: var(--ldm-urgency);
}

.ldm-sold progress {
    width: 100%;
    height: 12px;
    overflow: hidden;
    border: 0;
    border-radius: 999px;
    background: var(--ldm-surface-high);
}

.ldm-sold progress::-webkit-progress-bar {
    background: var(--ldm-surface-high);
}

.ldm-sold progress::-webkit-progress-value,
.ldm-sold progress::-moz-progress-bar {
    border-radius: 999px;
    background: var(--ldm-urgency);
}

.home-live-section {
    position: relative;
    min-width: 0;
}

.home-live-section .ldm-section__heading {
    margin-bottom: 18px;
}

.home-live-section .ldm-section__heading h2 {
    color: var(--ldm-on-surface);
    letter-spacing: 0;
}

.home-live-section .ldm-section__heading a {
    border: 1px solid rgba(0, 82, 204, 0.14);
    border-radius: 999px;
    background: rgba(0, 82, 204, 0.07);
    padding: 8px 14px;
}

.home-live-rail,
.home-curated-rail,
.home-merchant-rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(280px, 420px);
    gap: 16px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding-bottom: 4px;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
}

.home-live-rail.is-single {
    grid-auto-flow: row;
    grid-auto-columns: initial;
    grid-template-columns: minmax(0, min(860px, 100%));
    justify-content: center;
    overflow: visible;
    padding-bottom: 0;
    scroll-snap-type: none;
}

.home-live-rail.is-slider {
    margin-inline: calc(var(--ldm-page-padding) * -1);
    padding-inline: var(--ldm-page-padding);
}

.home-live-rail.is-empty {
    display: block;
    overflow: visible;
}

.home-live-rail::-webkit-scrollbar,
.home-curated-rail::-webkit-scrollbar,
.home-merchant-rail::-webkit-scrollbar {
    display: none;
}

.home-live-card {
    display: grid;
    gap: 12px;
    min-width: 0;
    scroll-snap-align: start;
}

.home-live-card--featured {
    border: 1px solid rgba(195, 198, 214, 0.34);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.74);
    box-shadow: 0 18px 40px rgba(25, 27, 35, 0.09);
    padding: 8px;
}

.home-live-card__image {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: 16px;
    background: var(--ldm-surface-low);
}

.home-live-card--featured .home-live-card__image {
    /* Matches the natural 1280x360 proportions of the live-show banner
       images so the card's height fits the image instead of cropping it. */
    aspect-ratio: 32 / 9;
    border-radius: 20px;
}

.home-live-card__image img,
.home-curated-product img,
.home-merchant-card img,
.home-featured-product .ldm-deal__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-live-card__shade {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;
}

.home-live-card__shade {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.78), transparent 58%);
}

.home-live-card--featured .home-live-card__shade {
    background:
        linear-gradient(to right, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.2) 58%, transparent),
        linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent 60%);
}

.home-live-card__badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.home-live-card--featured .home-live-card__badges {
    top: 18px;
    left: 18px;
}

.home-live-badge,
.home-viewers-badge,
.home-upcoming-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 900;
    padding: 6px 9px;
}

.home-live-card--featured .home-live-badge,
.home-live-card--featured .home-viewers-badge,
.home-live-card--featured .home-upcoming-badge {
    border-radius: 999px;
    font-size: 12px;
    padding: 8px 12px;
}

.home-live-badge {
    background: var(--ldm-urgency);
    color: #fff;
    letter-spacing: 0.08em;
}

.home-live-badge i {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    animation: ldmPulse 1.4s ease infinite;
    background: #fff;
}

.home-viewers-badge {
    background: rgba(255, 255, 255, 0.88);
    color: var(--ldm-on-surface);
    /* Viewer count hidden for now — markup/logic in home-feed.js left intact. */
    display: none !important;
}

.home-upcoming-badge {
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    text-transform: uppercase;
}

.home-live-card__info {
    position: absolute;
    inset: auto 14px 14px;
    display: grid;
    gap: 4px;
    color: #fff;
}

.home-live-card--featured .home-live-card__info {
    inset: auto auto 28px 28px;
    width: min(560px, calc(100% - 56px));
    gap: 8px;
}

.home-live-card__info strong {
    font-size: 18px;
    font-weight: 800;
    line-height: 24px;
}

.home-live-card--featured .home-live-card__info strong {
    font-family: var(--ldm-display);
    font-size: clamp(28px, 4vw, 46px);
    font-weight: 900;
    line-height: 1.05;
    text-wrap: balance;
}

.home-live-card__info small {
    color: rgba(255, 255, 255, 0.88);
    font-size: 14px;
    font-weight: 400;
}

.home-live-card--featured .home-live-card__info small {
    font-size: 10px;
}

.home-live-card__summary {
    display: none;
}

.home-live-card--featured .home-live-card__summary {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 8px 14px;
    padding: 8px 8px 10px;
}

.home-live-card__summary b {
    overflow: hidden;
    color: var(--ldm-on-surface);
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-live-card--featured .home-live-card__summary small {
    border-radius: 999px;
    background: var(--ldm-surface-low);
    color: var(--ldm-primary);
    padding: 6px 10px;
}

.home-live-card--featured .home-live-card__summary b {
    font-size: 16px;
}

.home-live-card__summary em {
    grid-column: 1 / -1;
    color: var(--ldm-on-surface-variant);
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: 20px;
}

.home-live-empty {
    display: grid;
    justify-items: center;
    gap: 8px;
    width: min(100%, 560px);
    margin-inline: auto;
    border: 1px dashed rgba(0, 82, 204, 0.24);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--ldm-on-surface);
    padding: 28px 20px;
    text-align: center;
}

.home-live-empty > .material-symbols-outlined {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border-radius: 999px;
    background: rgba(0, 82, 204, 0.09);
    color: var(--ldm-primary);
    font-size: 28px;
}

.home-live-empty strong {
    font-family: var(--ldm-display);
    font-size: 20px;
    font-weight: 900;
}

.home-live-empty small {
    max-width: 360px;
    color: var(--ldm-on-surface-variant);
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
}

.home-live-empty a {
    margin-top: 4px;
    border-radius: 999px;
    background: var(--ldm-primary);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    padding: 9px 14px;
}

.home-live-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
}

.home-live-section.is-single .home-live-dots {
    display: none;
}

.home-live-dots span {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--ldm-outline-variant);
}

.home-live-dots .is-active {
    background: var(--ldm-primary);
}

.home-card-loader,
.home-empty,
.home-category-card.is-loading,
.home-curated-product.is-loading,
.home-merchant-card.is-loading {
    display: grid;
    min-height: 120px;
    place-items: center;
    border-radius: 16px;
    background: var(--ldm-surface-low);
    color: var(--ldm-on-surface-variant);
    font-size: 13px;
    font-weight: 800;
}

/* Shared product rail — "Latest Products" and "Recommended for You". Same scroll
   mechanics as the curated and merchant rails, but sized for the standard product
   card, which is much narrower than the image-overlay cards those rails carry. */
.home-product-rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(170px, 1fr);
    gap: 16px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding-bottom: 4px;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
}

.home-product-rail::-webkit-scrollbar {
    display: none;
}

.home-product-rail > * {
    scroll-snap-align: start;
    min-width: 0;
}

/* All six fit without scrolling on a wide screen; below that the rail scrolls. */
@media (max-width: 1100px) {
    .home-product-rail {
        grid-auto-columns: minmax(170px, 210px);
    }
}

/* "Discover More" — a fixed 6-across grid, so the 18 products the feed returns
   land as 3 full rows. Column count steps down on narrower screens; the row
   count grows to suit rather than the cards being squeezed. */
.home-discover-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
}

@media (max-width: 1280px) {
    .home-discover-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (max-width: 1100px) {
    .home-discover-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
    .home-discover-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
    .home-discover-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}

/* "Explore your interests" reuses the Discover More grid; its "Load more"
   button sits centred under the cards in Discover More's shop-name orange. */
.home-load-more {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.home-load-more__button {
    min-width: 200px;
    background: #ff9800;
    color: #fff;
    box-shadow: 0 12px 24px rgba(255, 152, 0, 0.24);
}

.home-load-more__button:hover {
    background: #f57c00;
}

.home-load-more__button:disabled {
    cursor: progress;
    opacity: 0.7;
}

/* .ldm-btn's inline-flex would otherwise override the hidden attribute. */
.home-load-more__button[hidden] {
    display: none;
}

/* Shared one-row-of-4 grid — "Save now on Home Deals" and "Today's Fashion
   Deals". Steps down to 3 then 2 so cards keep a sane width when narrow. */
.home-quad-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

@media (max-width: 1100px) {
    .home-quad-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
    .home-quad-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}

/* On an unfolded foldable the 3-column step leaves the fourth card alone on a
   second row; lay the four out 2x2 instead. */
@media (max-width: 767.98px) and (min-aspect-ratio: 3/4) and (max-aspect-ratio: 4/3) {
    .home-quad-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Empty state. Spans the whole track so it reads as one message rather than
   sitting in the first cell of a grid or rail. */
.home-empty {
    margin: 0;
    grid-column: 1 / -1;
    width: 100%;
    text-align: center;
}

/* Home banner slider. Slides live in the markup, so adding one is an HTML edit;
   with a single slide it renders as a static hero and hides its own controls
   (see initBannerSlider in home-feed.js). The 16:6 box is reserved up front so
   the image cannot shift the page as it loads. */
.home-banner {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: var(--ldm-surface-container);
    margin-bottom: 32px;
}

.home-banner__track {
    display: flex;
    scroll-snap-type: inline mandatory;
    overflow-x: auto;
    scrollbar-width: none;
}

.home-banner__track::-webkit-scrollbar {
    display: none;
}

.home-banner__slide {
    position: relative;
    flex: 0 0 100%;
    scroll-snap-align: start;
    aspect-ratio: 16/6;
    min-width: 0;
}

.home-banner__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Slides are cropped to 16/6, so artwork with its subject off-centre needs to
   say where to hold the crop — otherwise the centre cut clips it. */
.home-banner__slide[data-focus="top"] img { object-position: center 25%; }
.home-banner__slide[data-focus="bottom"] img { object-position: center 75%; }

.home-banner__copy {
    position: absolute;
    inset: 0 auto 0 0;
    display: grid;
    align-content: center;
    justify-items: start;
    gap: 10px;
    width: min(100%, 560px);
    padding: 0 clamp(20px, 5vw, 56px);
    /* background: linear-gradient(to right, rgba(12, 17, 28, 0.72) 40%, rgba(12, 17, 28, 0)); */

    background: linear-gradient(to right, rgb(12 17 28 / 30%) 40%, rgb(12 17 28 / 0%));
    color: #fff;
}

.home-banner__eyebrow {
    margin: 0;
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    opacity: 0.85;
}

.home-banner__copy h2 {
    margin: 0;
    font-family: var(--ldm-display);
    font-size: clamp(22px, 3.6vw, 40px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.08;
}

.home-banner__copy p:not(.home-banner__eyebrow) {
    margin: 0;
    font-size: clamp(13px, 1.5vw, 16px);
    opacity: 0.9;
}

.home-banner__cta {
    margin-top: 6px;
    border-radius: 999px;
    background: var(--ldm-urgency);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    padding: 10px 22px;
}

.home-banner__cta:hover,
.home-banner__cta:focus-visible {
    background: #dc2626;
    color: #fff;
}

.home-banner__nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--ldm-on-surface);
    cursor: pointer;
    transform: translateY(-50%);
}

.home-banner__nav--prev { left: 14px; }
.home-banner__nav--next { right: 14px; }

.home-banner__dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    z-index: 2;
    display: flex;
    gap: 7px;
    transform: translateX(-50%);
}

.home-banner__dots button {
    width: 8px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    padding: 0;
    transition: width 0.2s ease, background 0.2s ease;
}

.home-banner__dots button[aria-selected="true"] {
    width: 22px;
    background: #fff;
}

@media (max-width: 760px) {
    .home-banner {
        border-radius: 18px;
        margin-bottom: 24px;
    }

    .home-banner__slide {
        aspect-ratio: 16 / 7;
    }

    .home-banner__copy {
        width: 100%;
        /* background: linear-gradient(to top, rgba(12, 17, 28, 0.82) 45%, rgba(12, 17, 28, 0.15)); */
        background: linear-gradient(to top, rgb(12 17 28 / 15%) 45%, rgba(12, 17, 28, 0.15));
        align-content: end;
        padding-bottom: 28px;
    }

    .home-banner__copy p {
        display: none;
    }

    .home-banner__nav { display: none; }
}

/* "Shop by Category" — a tinted band of circular category tiles. The cards drop
   their own border and fill so the band reads as one surface rather than eight
   boxes; the artwork carries the section instead. */
.home-browse-categories-section {
    border-radius: 24px;
    background: #faf5f2;
    padding: 28px var(--ldm-page-padding);
}

.home-browse-categories-section .ldm-section__heading {
    margin-bottom: 22px;
}

/* A rail rather than a grid: the API returns more departments than fit across
   the band, so they scroll instead of wrapping into a second row. */
.home-category-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: inline proximity;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    padding-bottom: 4px;
}

.home-category-grid::-webkit-scrollbar {
    display: none;
}

.home-category-card {
    flex: 0 0 120px;
    scroll-snap-align: start;
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 4px 0;
    text-align: center;
}

/* The loading and empty placeholders are messages, not tiles — let them span. */
.home-category-grid > .home-category-card.is-loading,
.home-category-grid > .home-empty {
    flex: 1 1 100%;
}

.home-category-card__icon {
    display: grid;
    width: 100%;
    max-width: 104px;
    aspect-ratio: 1;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    background: var(--ldm-surface-lowest);
    color: var(--ldm-primary);
    transition: transform 0.2s ease;
}

.home-category-card__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-category-card:hover .home-category-card__icon {
    transform: scale(1.04);
}

.home-category-card strong {
    color: var(--ldm-on-surface);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
}

@media (max-width: 600px) {
    .home-browse-categories-section {
        border-radius: 18px;
        padding: 20px 16px;
    }

    .home-category-grid {
        gap: 10px;
    }

    .home-category-card {
        flex-basis: 100px;
    }
}

.home-curated-section {
    display: grid;
    gap: 24px;
}

.home-subsection-heading {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 8px;
}

.home-subsection-heading span {
    color: var(--ldm-primary);
}

.home-slider-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.home-slider-heading .ldm-section-title {
    min-width: 0;
    margin-bottom: 0;
}

.home-slider-controls {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
}

.home-slider-controls button {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid rgba(195, 198, 214, 0.5);
    border-radius: 999px;
    background: #fff;
    color: var(--ldm-on-surface);
    box-shadow: 0 8px 18px rgba(25, 27, 35, 0.06);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.home-slider-controls button:hover,
.home-slider-controls button:focus-visible {
    background: var(--ldm-primary);
    color: #fff;
}

.home-slider-controls button:active {
    transform: scale(0.94);
}

.home-slider-controls .material-symbols-outlined {
    color: currentColor;
    font-size: 22px;
}

.home-curated-rail {
    grid-auto-columns: minmax(210px, 240px);
    padding-bottom: 8px;
}

.home-curated-product {
    display: grid;
    grid-template-rows: auto 1fr;
    overflow: hidden;
    border: 1px solid rgba(195, 198, 214, 0.35);
    border-radius: 20px;
    background: var(--ldm-surface-lowest);
    scroll-snap-align: start;
}

/* Only the Trending badge sits on the artwork now; the title and price live in
   the body below it, on the card surface. */
.home-curated-product__media {
    position: relative;
    height: 170px;
    overflow: hidden;
}

.home-curated-product__body {
    display: grid;
    align-content: start;
    gap: 8px;
    color: var(--ldm-on-surface);
    padding: 14px 16px 16px;
}

.home-curated-product__media b {
    position: absolute;
    top: 12px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border-radius: 8px;
    background: rgba(239, 68, 68, 0.92);
    color: #fff;
    font-size: 11px;
    padding: 4px 8px;
}

.home-curated-product__media b .material-symbols-outlined {
    font-size: 14px;
}

.home-curated-product__body strong {
    display: -webkit-box;
    overflow: hidden;
    font-size: 15px;
    line-height: 20px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.home-curated-product__body em {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-style: normal;
}

.home-curated-product__body small {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    border-radius: 8px;
    background: var(--ldm-surface-container);
    color: var(--ldm-on-surface-variant);
    padding: 3px 7px;
}

.home-curated-grid {
    display: block;
    min-width: 0;
}

.home-merchants-column {
    min-width: 0;
    width: 100%;
}

.home-merchant-rail {
    grid-auto-columns: minmax(210px, 240px);
    padding-bottom: 8px;
}

.home-merchant-card {
    display: grid;
    align-content: start;
    gap: 10px;
    scroll-snap-align: start;
}

/* The tile keeps the card's original treatment — same height, border, radius and
   fill. The name, description and Shop Now button now sit below it. */
.home-merchant-card__media {
    position: relative;
    overflow: hidden;
    height: 240px;
    border: 1px solid rgba(195, 198, 214, 0.35);
    border-radius: 20px;
    background: var(--ldm-surface-low);
}

.home-merchant-card__body {
    display: grid;
    justify-items: start;
    gap: 6px;
    color: var(--ldm-on-surface);
}

.home-merchant-card strong {
    overflow: hidden;
    font-size: 17px;
    font-weight: 900;
    line-height: 22px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-merchant-card small {
    max-width: 100%;
    overflow: hidden;
    color: var(--ldm-on-surface-variant);
    font-size: 12px;
    line-height: 16px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-merchant-card b {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    background: var(--ldm-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    padding: 8px 11px;
}

.home-rewards-card {
    position: relative;
    display: grid;
    align-content: start;
    gap: 12px;
    overflow: hidden;
    border-radius: 24px;
    background: #dbe6ff;
    color: var(--ldm-on-surface);
    padding: 24px;
}

.home-rewards-card > .material-symbols-outlined {
    color: var(--ldm-primary);
    font-size: 48px;
}

.home-rewards-card strong {
    font-size: 22px;
    font-weight: 900;
}

.home-rewards-card small {
    color: var(--ldm-on-surface-variant);
    font-size: 14px;
    line-height: 20px;
}

.home-rewards-card b {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--ldm-primary);
    font-size: 14px;
}

.ldm-partner-grid,
.ldm-show-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.ldm-partner-card {
    position: relative;
    overflow: hidden;
    height: 400px;
    border-radius: 24px;
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.15);
}

.ldm-partner-card::after,
.ldm-show-card > div::after,
.ldm-bento::after {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;
}

.ldm-partner-card::after {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.62), transparent 60%);
}

.ldm-partner-card img,
.ldm-show-card img,
.ldm-bento img {
    transition: transform 0.6s ease;
}

.ldm-partner-card:hover img,
.ldm-show-card:hover img,
.ldm-bento:hover img {
    transform: scale(1.08);
}

.ldm-partner-card .ldm-glass {
    position: absolute;
    inset: auto 24px 24px;
    z-index: 1;
    border-radius: 16px;
    padding: 24px;
}

.ldm-partner-card p {
    margin: 0 0 4px;
    color: var(--ldm-primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ldm-partner-card h3 {
    margin: 0 0 18px;
    font-family: var(--ldm-display);
    font-size: 24px;
    line-height: 32px;
}

.ldm-partner-card a {
    display: flex;
    justify-content: center;
    border-radius: 12px;
    background: var(--ldm-primary);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    padding: 12px;
}

.ldm-show-card {
    cursor: pointer;
}

.ldm-show-card > div,
.ldm-show-card__media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border: 1px solid rgba(195, 198, 214, 0.2);
    border-radius: 16px;
    margin-bottom: 16px;
    box-shadow: 0 6px 14px rgba(25, 27, 35, 0.06);
}

.ldm-show-card > div::after,
.ldm-show-card__media::after {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent 65%);
}

.ldm-show-card__media-link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.ldm-show-card > div > span,
.ldm-show-card__status {
    position: absolute;
    bottom: 16px;
    left: 16px;
    z-index: 2;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
}

.ldm-show-card button {
    position: absolute;
    right: 16px;
    top: 16px;
    z-index: 3;
    display: flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    backdrop-filter: blur(10px);
}

.ldm-show-card p:first-of-type {
    margin: 0 0 4px;
    color: var(--ldm-primary);
    font-size: 13px;
    font-weight: 800;
}

.ldm-show-card h3 {
    margin: 0 0 8px;
    font-family: var(--ldm-display);
    font-size: 24px;
    line-height: 32px;
}

.ldm-show-card p:last-of-type {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--ldm-on-surface-variant);
    font-size: 16px;
    line-height: 24px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.ldm-show-card[data-live-status="live"] .ldm-show-card__status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ldm-show-card[data-live-status="live"] .ldm-show-card__status::before {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #ff4242;
    box-shadow: 0 0 0 5px rgba(255, 66, 66, 0.2);
    content: "";
}

.ldm-show-card__body {
    display: grid;
    gap: 8px;
}

.ldm-show-card__host {
    margin: 0;
    color: var(--ldm-primary);
    font-size: 13px;
    font-weight: 800;
}

.ldm-show-card__description {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--ldm-on-surface-variant);
    font-size: 16px;
    line-height: 24px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.ldm-show-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ldm-show-card__meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--ldm-on-surface-variant);
    font-size: 12px;
    font-weight: 700;
}

.ldm-show-card__meta .material-symbols-outlined {
    color: var(--ldm-primary);
    font-size: 16px;
}

.ldm-show-card__deal {
    display: grid;
    gap: 2px;
    border: 1px solid rgba(195, 198, 214, 0.24);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
    padding: 12px;
}

.ldm-show-card__deal span {
    color: var(--ldm-on-surface-variant);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ldm-show-card__deal strong {
    overflow: hidden;
    color: var(--ldm-on-surface);
    font-size: 14px;
    line-height: 20px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ldm-show-card__deal em {
    color: var(--ldm-primary);
    font-size: 14px;
    font-style: normal;
    font-weight: 900;
}

.ldm-bento-grid {
    display: grid;
    grid-auto-rows: 184px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.ldm-bento {
    position: relative;
    display: flex;
    overflow: hidden;
    min-height: 180px;
    border: 1px solid rgba(195, 198, 214, 0.2);
    border-radius: 24px;
    color: #fff;
}

.ldm-bento::after {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.64), transparent 70%);
}

.ldm-bento > span {
    position: absolute;
    inset: auto 0 0;
    z-index: 1;
    display: grid;
    color: #fff;
    gap: 8px;
    padding: 24px;
}

.ldm-bento strong {
    display: block;
    font-family: var(--ldm-display);
    font-size: 32px;
    font-weight: 800;
    line-height: 40px;
}

.ldm-bento--large strong {
    font-size: 48px;
    line-height: 56px;
}

.ldm-bento small {
    color: rgba(255, 255, 255, 0.88);
    font-size: 16px;
}

.ldm-bento b {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 14px;
}

.ldm-bento b .material-symbols-outlined {
    color: currentColor;
}

.ldm-bento--large {
    grid-column: span 2;
    grid-row: span 2;
    min-height: 380px;
}

.ldm-bento--medium {
    grid-column: span 1;
    min-height: 184px;
}

.ldm-bento--small {
    align-items: center;
    justify-content: center;
}

.ldm-bento--small::after {
    background: rgba(0, 0, 0, 0.32);
}

.ldm-bento--small > span {
    inset: 0;
    place-items: center;
}

.ldm-bento--trend {
    display: grid;
    align-content: space-between;
    background: var(--ldm-primary);
    color: #fff;
    padding: 24px;
}

.ldm-bento--trend::after {
    display: none;
}

.ldm-bento--trend > .material-symbols-outlined {
    font-size: 40px;
}

.ldm-bento--trend strong {
    font-size: 24px;
    line-height: 32px;
}

.ldm-bento--trend small {
    color: rgba(255, 255, 255, 0.84);
}

.ldm-footer {
    border-top: 1px solid var(--ldm-outline-variant);
    background: var(--ldm-surface-highest);
    margin-top: 80px;
}

.ldm-footer__grid {
    display: grid;
    grid-template-columns: 1.2fr repeat(3, 1fr);
    gap: 24px;
    padding: 48px var(--ldm-page-padding);
}

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

.ldm-footer small {
    color: var(--ldm-on-surface-variant);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
}

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

.ldm-footer h4 {
    margin: 0 0 20px;
    font-size: 14px;
    font-weight: 800;
}

.ldm-footer__grid > div:not(:first-child) {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ldm-footer__social {
    display: flex;
    gap: 12px;
}

.ldm-footer__social a {
    display: flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--ldm-surface-container);
}

.ldm-footer__form {
    display: flex;
    gap: 8px;
}

.ldm-footer__form input {
    min-width: 0;
    flex: 1;
    border: 1px solid var(--ldm-outline-variant);
    border-radius: 8px;
    padding: 10px 12px;
}

.ldm-footer__form button {
    border: 0;
    border-radius: 8px;
    background: var(--ldm-primary);
    color: #fff;
    font-weight: 800;
    padding: 10px 16px;
}

.ldm-footer__legal {
    border-top: 1px solid var(--ldm-outline-variant);
    color: var(--ldm-on-surface-variant);
    font-size: 14px;
    margin: 0;
    padding: 24px;
    text-align: center;
}

.ldm-quick-buy {
    position: fixed;
    inset: auto 0 0;
    z-index: 1080;
    display: none;
    border-radius: 24px 24px 0 0;
    background: #fff;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
    padding: 24px;
    transform: translateY(100%);
    transition: transform 0.5s ease;
}

.ldm-quick-buy.is-open {
    transform: translateY(0);
}

.ldm-quick-buy__handle {
    width: 48px;
    height: 4px;
    border-radius: 999px;
    background: var(--ldm-surface-highest);
    margin: 0 auto 24px;
}

.ldm-quick-buy__product {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.ldm-quick-buy__product img {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
}

.ldm-quick-buy h5 {
    margin: 0 0 4px;
    font-weight: 800;
}

.ldm-quick-buy p {
    margin: 0;
    color: var(--ldm-primary);
    font-weight: 800;
}

.ldm-quick-buy small {
    color: var(--ldm-on-surface-variant);
}

@keyframes ldmPulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@media (max-width: 991.98px) {
    :root {
        --ldm-page-padding: 16px;
    }

    .ldm-sidebar {
        display: none;
    }

    .ldm-page,
    .main-content-expanded,
    .main-content-collapsed {
        margin-left: 0;
    }

    .ldm-topnav__title h2 {
        display: none;
    }

    .ldm-mobile-brand {
        display: inline-flex;
        color: var(--ldm-primary);
        font-family: var(--ldm-display);
        font-size: 32px;
        font-weight: 800;
        letter-spacing: -0.02em;
    }

    .ldm-mobile-link {
        display: inline-flex;
        border-bottom: 2px solid var(--ldm-primary);
        color: var(--ldm-primary);
        font-weight: 800;
        padding-bottom: 4px;
    }

    .ldm-topnav__inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .ldm-topnav__actions {
        width: 100%;
        max-width: none;
    }

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

    .home-curated-grid {
        grid-template-columns: 1fr;
    }

    .ldm-bento-grid {
        grid-template-columns: 2fr 1fr;
    }
}

@media (max-width: 767.98px) {
    body.ldm-home {
        background: #fbf9ff;
    }

    .ldm-live-banner {
        min-height: 32px;
        flex-wrap: nowrap;
        gap: 8px;
        justify-content: flex-start;
        overflow: hidden;
        padding-block: 6px;
        text-align: center;
    }

    .ldm-live-banner strong {
        overflow: hidden;
        font-size: 10px;
        line-height: 14px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .ldm-live-banner a {
        flex: 0 0 auto;
        font-size: 11px;
        padding: 5px 10px;
    }

    .ldm-topnav__inner {
        align-items: center !important;
        flex-direction: row !important;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 10px;
        padding-block: 10px;
    }

    .ldm-topnav__title {
        flex: 0 1 auto;
        min-width: 0;
        gap: 0;
    }

    .ldm-mobile-brand {
        max-width: 84px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .ldm-action-icons .ldm-icon-button {
        width: 40px;
        height: 40px;
        flex: 0 0 40px;
        border-radius: 999px;
        background: var(--ldm-surface-low);
    }

    .ldm-topnav__actions {
        display: contents;
        flex: 0 0 auto;
        align-items: center;
        justify-content: flex-end;
        flex-wrap: nowrap;
        gap: 8px;
        width: auto;
        margin-left: auto;
    }

    .ldm-action-icons {
        align-items: center;
        flex: 0 0 auto;
        flex-wrap: nowrap;
        gap: 8px;
    }

    .ldm-icon-button--wishlist { display: none; }

    .ldm-main {
        gap: 24px;
        padding: 18px var(--ldm-page-padding) 0;
    }

    .home-app-promo {
        align-items: flex-start;
        gap: 10px;
        border-radius: 14px;
        padding: 12px 14px;
    }

    .home-app-promo .material-symbols-outlined {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
        font-size: 21px;
    }

    .home-app-promo p {
        font-size: 13px;
        line-height: 1.4;
    }

    .ldm-hero__media {
        min-height: 520px;
    }

    .ldm-hero__card {
        margin-bottom: 0;
        padding: 18px;
    }

    .ldm-section__heading h2,
    .ldm-section-title {
        font-size: 19px;
        line-height: 26px;
    }

    .ldm-section-title {
        margin-bottom: 14px;
    }

    .ldm-section__heading {
        align-items: center;
        flex-direction: row;
        gap: 12px;
        margin-bottom: 14px;
    }

    .ldm-section__heading > div {
        min-width: 0;
    }

    .ldm-section__heading p {
        display: -webkit-box;
        overflow: hidden;
        margin-top: 2px;
        font-size: 11px;
        line-height: 16px;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .ldm-section__heading > a {
        flex: 0 0 auto;
        font-size: 12px;
    }

    .ldm-button-row {
        flex-wrap: wrap;
        gap: 8px;
    }

    .ldm-deal,
    .ldm-partner-grid,
    .ldm-show-grid,
    .ldm-footer__grid {
        grid-template-columns: 1fr;
    }

    .ldm-deal {
        gap: 12px;
        border-radius: 18px;
        padding: 10px;
    }

    .ldm-deal__image {
        height: auto;
        aspect-ratio: 1 / 0.82;
        border-radius: 14px;
    }

    .ldm-deal__image span {
        left: 10px;
        top: 10px;
        font-size: 10px;
        padding: 6px 9px;
    }

    .ldm-deal__content {
        gap: 9px;
        padding: 0 2px 2px;
    }

    .ldm-eyebrow {
        font-size: 9px;
        letter-spacing: 0.08em;
    }

    .ldm-deal__content h3 {
        margin: -4px 0 0;
        font-size: 18px;
        line-height: 23px;
    }

    .ldm-price {
        gap: 8px;
    }

    .ldm-price strong {
        font-size: 22px;
        line-height: 28px;
    }

    .ldm-price span {
        font-size: 12px;
    }

    .ldm-copy {
        display: -webkit-box;
        overflow: hidden;
        font-size: 11px;
        line-height: 16px;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .ldm-sold {
        gap: 5px;
    }

    .ldm-sold div {
        gap: 8px;
        font-size: 9px;
    }

    .ldm-sold progress {
        height: 7px;
    }

    .home-featured-product {
        width: min(100%, 360px);
    }

    .home-live-rail {
        grid-auto-columns: minmax(264px, calc(100vw - 48px));
        margin-left: calc(var(--ldm-page-padding) * -1);
        padding-left: var(--ldm-page-padding);
        scroll-padding-left: var(--ldm-page-padding);
    }

    .home-live-rail.is-single {
        grid-template-columns: 1fr;
    }

    .home-live-card--featured {
        border-radius: 18px;
        padding: 6px;
    }

    .home-live-card--featured .home-live-card__image {
        aspect-ratio: 32 / 9;
        border-radius: 14px;
    }

    .home-live-card--featured .home-live-card__info {
        inset: auto 16px 16px;
        width: auto;
    }

    .home-live-card--featured .home-live-card__summary {
        grid-template-columns: 1fr;
        padding-inline: 4px;
    }

    .home-live-empty {
        border-radius: 18px;
        padding: 24px 16px;
    }

    .home-category-grid {
        gap: 10px;
    }

    .home-category-card {
        min-height: 84px;
        gap: 8px;
        border-radius: 12px;
        padding: 4px 0;
    }

    .home-category-card__icon {
        width: 100px;
        height: 100px;
    }

    .home-category-card__icon .material-symbols-outlined {
        font-size: 20px;
    }

    .home-category-card strong {
        font-size: 11px;
        line-height: 15px;
    }

    .home-curated-section {
        gap: 16px;
    }

    .home-curated-block,
    .home-merchants-column {
        min-width: 0;
    }

    .home-slider-heading {
        margin-bottom: 10px;
    }

    .home-subsection-heading h3,
    .home-merchants-column h3 {
        font-size: 13px;
        line-height: 18px;
    }

    .home-slider-controls {
        gap: 6px;
    }

    .home-slider-controls button {
        width: 30px;
        height: 30px;
    }

    .home-slider-controls .material-symbols-outlined {
        font-size: 20px;
    }

    .home-curated-rail {
        grid-auto-columns: minmax(188px, 58vw);
        margin-inline: calc(var(--ldm-page-padding) * -1);
        padding-inline: var(--ldm-page-padding);
        scroll-padding-inline: var(--ldm-page-padding);
    }

    .home-curated-product {
        border-radius: 18px;
    }

    .home-curated-product__media {
        height: 150px;
    }

    .home-curated-product__body {
        gap: 7px;
        padding: 14px;
    }

    .home-curated-product__media b {
        font-size: 10px;
        padding: 4px 8px;
    }

    .home-curated-product__body strong {
        font-size: 14px;
        line-height: 19px;
    }

    .home-curated-product__body em {
        align-items: center;
        flex-direction: row;
        gap: 8px;
        font-size: 14px;
    }

    .home-curated-grid {
        display: block;
        min-width: 0;
    }

    .home-curated-grid::-webkit-scrollbar {
        display: none;
    }

    .home-curated-grid > * {
        min-width: 0;
        scroll-snap-align: start;
    }

    .home-merchant-rail {
        grid-auto-columns: minmax(188px, 58vw);
        margin-inline: calc(var(--ldm-page-padding) * -1);
        padding-inline: var(--ldm-page-padding);
        scroll-padding-inline: var(--ldm-page-padding);
    }

    .home-merchant-card__media {
        height: 224px;
        border-radius: 18px;
    }

    .home-merchant-card__body {
        gap: 5px;
    }

    .home-merchant-card strong {
        font-size: 15px;
        line-height: 20px;
    }

    .home-merchant-card small {
        font-size: 11px;
        line-height: 15px;
    }

    .home-merchant-card b {
        gap: 5px;
        font-size: 11px;
        padding: 7px 10px;
    }

    .home-rewards-card {
        border-radius: 18px;
        padding: 18px;
    }

    .ldm-deal__content h3 {
        font-size: 18px;
        line-height: 23px;
    }

    .ldm-countdown {
        display: none;
    }

    .ldm-bento-grid {
        grid-auto-rows: clamp(112px, 29vw, 150px);
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .ldm-bento {
        min-height: 0;
        border-radius: 18px;
    }

    .ldm-bento--large {
        grid-column: span 2;
        grid-row: span 2;
    }

    .ldm-bento--medium {
        grid-column: span 1;
        grid-row: span 1;
    }

    .ldm-bento > span {
        gap: 5px;
        padding: 14px;
    }

    .ldm-bento strong,
    .ldm-bento--large strong {
        display: -webkit-box;
        overflow: hidden;
        font-size: clamp(16px, 5vw, 28px);
        line-height: 1.06;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .ldm-bento--large strong {
        font-size: clamp(24px, 8vw, 38px);
    }

    .ldm-bento small {
        display: -webkit-box;
        overflow: hidden;
        font-size: clamp(10px, 3vw, 14px);
        line-height: 1.25;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .ldm-bento b {
        gap: 5px;
        font-size: 11px;
    }

    .ldm-footer {
        margin-top: 56px;
    }

    .ldm-quick-buy {
        display: block;
    }
}

/* Unfolded foldables get the phone rules above but have room for the desktop
   layout of "Today's Special Value": image and details side by side. */
@media (max-width: 767.98px) and (min-aspect-ratio: 3/4) and (max-aspect-ratio: 4/3) {
    .ldm-deal {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 20px;
        padding: 16px;
    }

    .home-featured-product {
        width: 100%;
    }

    .ldm-deal__content h3 {
        font-size: 22px;
        line-height: 28px;
    }
}

@media (max-width: 575.98px) {
    .ldm-topnav__actions {
        align-items: center;
        flex-direction: row;
    }

    .ldm-action-icons {
        justify-content: flex-end;
    }

    .ldm-hero__media {
        min-height: 600px;
    }

    .ldm-hero__badges {
        flex-wrap: wrap;
    }

    .ldm-hero__overlay {
        padding: 10px;
    }

    .ldm-btn {
        min-height: 42px;
        padding: 10px 16px;
    }

    .ldm-btn--icon {
        width: 42px;
        flex: 0 0 42px;
    }

    .home-featured-product .ldm-btn--success {
        flex: 1 1 0;
        min-width: 0;
    }

    .ldm-footer__form {
        flex-direction: column;
    }

    .home-live-card__badges {
        flex-wrap: wrap;
        max-width: calc(100% - 24px);
    }

    .home-live-card--featured .home-live-card__badges {
        top: 12px;
        left: 12px;
    }

    .home-live-card--featured .home-live-card__info strong {
        font-size: 14px;
        line-height: 7px;
    }
}

/* Recommended products rail */
#recommendedSection .ldm-section__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
#recommendedSection .ldm-section__heading a {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--ldm-primary, #0052cc);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}
.ldm-product-rail {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

/* Per-section shop-name colours. The shared card (shared.css) defaults to
   #607d8b, which Latest Products, the live show and the catalogue all keep;
   these sections override it. */
.home-discover-section .ldm-product-card__vendor {
    color: #ff9800;
}

.home-recommended-section .ldm-product-card__vendor,
.home-homedeals-section .ldm-product-card__vendor,
.home-fashion-section .ldm-product-card__vendor,
.home-explore-section .ldm-product-card__vendor {
    color: #9e9e9e;
}

/* "Recommended for You", "Discover More" and "Explore your interests" show the
   fulfilment label ("Shipping only" / "Pickup only") as a tinted chip. Scoped to
   these sections on purpose — the same card markup is reused by Latest Products
   and other rails, where the label stays plain. */
.home-recommended-section .ldm-product-card__body small,
.home-discover-section .ldm-product-card__body small,
.home-explore-section .ldm-product-card__body small {
    display: inline-block;
    border-radius: 6px;
    font-size: 11px;
    line-height: 1.4;
    padding: 2px 7px;
}

/* Shipping reads green, pickup reads orange, so the two fulfilment types are
   distinguishable at a glance rather than only by reading the label. Both are
   tinted backgrounds with a darker foreground — the flat hues are too light to
   sit on white as text. */
.home-recommended-section .ldm-product-card__body small.is-shipping,
.home-discover-section .ldm-product-card__body small.is-shipping,
.home-explore-section .ldm-product-card__body small.is-shipping {
    background: rgba(34, 197, 94, 0.14);
    color: #15803d;
}

.home-recommended-section .ldm-product-card__body small.is-pickup,
.home-discover-section .ldm-product-card__body small.is-pickup,
.home-explore-section .ldm-product-card__body small.is-pickup {
    background: rgba(245, 158, 11, 0.16);
    color: #b45309;
}

@media (max-width: 767.98px) {
    .ldm-product-rail { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .ldm-product-card__cart { opacity: 1; width: 32px; height: 32px; font-size: 16px; }
}
