/*
 * Three Store — final homepage design-system enforcement
 * Default storefront only. Tokens own the visual rules; content and commerce behavior stay dynamic.
 */

body.homepage-reimagined-storefront {
    /* Brand and semantic color system */
    --ds-brand-primary: #107da4;
    --ds-brand-primary-strong: #0d6f92;
    --ds-brand-secondary: #2bc0c4;
    --ds-brand-soft: #eef8fa;
    --ds-white: #fff;
    --ds-canvas: #f7f8f8;
    --ds-surface: #f2f4f5;
    --ds-surface-strong: #e9edef;
    --ds-ink: #151718;
    --ds-ink-soft: #303537;
    --ds-muted: #626a6d;
    --ds-muted-soft: #8a9194;
    --ds-line: #e1e6e8;
    --ds-line-strong: #d2d9dc;
    --ds-success: #16845b;
    --ds-warning: #b86d12;
    --ds-error: #bd3e3e;
    --ds-info: #246fa8;

    /* Permanent 4-point spacing scale */
    --ds-space-1: 4px;
    --ds-space-2: 8px;
    --ds-space-3: 12px;
    --ds-space-4: 16px;
    --ds-space-5: 24px;
    --ds-space-6: 32px;
    --ds-space-7: 48px;
    --ds-space-8: 64px;
    --ds-space-9: 80px;

    /* Container and responsive grid */
    --ds-container: 1440px;
    --ds-gutter: clamp(16px, 3vw, 48px);
    --ds-section-space: clamp(var(--ds-space-7), 5vw, var(--ds-space-9));
    --ds-grid-gap: clamp(var(--ds-space-4), 2vw, var(--ds-space-6));

    /* Shape, border, and elevation */
    --ds-radius-control: 12px;
    --ds-radius-card: 18px;
    --ds-radius-large: 24px;
    --ds-radius-pill: 999px;
    --ds-border-subtle: 1px solid var(--ds-line);
    --ds-border-strong: 1px solid var(--ds-line-strong);
    --ds-elevation-1: 0 8px 24px rgba(21, 23, 24, .06);
    --ds-elevation-2: 0 18px 48px rgba(21, 23, 24, .11);
    --ds-elevation-overlay: 0 26px 72px rgba(21, 23, 24, .16);

    /* Controls and icons */
    --ds-control-height: 44px;
    --ds-control-height-large: 48px;
    --ds-icon-rating: 14px;
    --ds-icon-small: 18px;
    --ds-icon-standard: 21px;
    --ds-icon-action: 24px;
    --ds-icon-large: 28px;

    /* Motion */
    --ds-motion-micro: 160ms;
    --ds-motion-standard: 240ms;
    --ds-motion-card: 300ms;
    --ds-motion-sheet: 360ms;
    --ds-motion-reveal: 480ms;
    --ds-ease-standard: cubic-bezier(.2, 0, 0, 1);
    --ds-ease-out: cubic-bezier(.22, 1, .36, 1);

    /* Selective liquid-crystal material */
    --ds-crystal-bg: rgba(255, 255, 255, .84);
    --ds-crystal-bg-hover: rgba(255, 255, 255, .96);
    --ds-crystal-border: rgba(255, 255, 255, .7);
    --ds-crystal-highlight: inset 0 1px 0 rgba(255, 255, 255, .8);
    --ds-crystal-shadow: 0 10px 28px rgba(21, 23, 24, .1);
    --ds-crystal-blur: 10px;

    /* Layering */
    --ds-layer-base: 0;
    --ds-layer-sticky: 1000;
    --ds-layer-header: 1100;
    --ds-layer-mega: 1120;
    --ds-layer-overlay: 1290;
    --ds-layer-sheet: 1300;
    --ds-layer-modal: 1400;

    /* Compatibility with the existing presentation layer */
    --re-white: var(--ds-white);
    --re-canvas: var(--ds-canvas);
    --re-surface: var(--ds-surface);
    --re-ink: var(--ds-ink);
    --re-ink-soft: var(--ds-ink-soft);
    --re-muted: var(--ds-muted);
    --re-line: var(--ds-line);
    --re-line-strong: var(--ds-line-strong);
    --re-brand: var(--ds-brand-primary);
    --re-brand-bright: var(--ds-brand-secondary);
    --re-brand-wash: var(--ds-brand-soft);
    --re-danger: var(--ds-error);
    --re-success: var(--ds-success);
    --re-container: var(--ds-container);
    --re-gutter: var(--ds-gutter);
    --re-section-space: var(--ds-section-space);
    --re-radius-sm: var(--ds-radius-control);
    --re-radius-md: var(--ds-radius-card);
    --re-radius-lg: var(--ds-radius-large);
    --web-primary: var(--ds-brand-primary);
    --header-brand: var(--ds-brand-primary);
    --header-brand-strong: var(--ds-brand-primary-strong);
}

body.homepage-reimagined-storefront .container {
    width: min(100%, var(--ds-container)) !important;
    max-width: var(--ds-container) !important;
    padding-inline: var(--ds-gutter) !important;
}

body.homepage-reimagined-storefront :is(a, button, input, select, textarea, [tabindex]):focus-visible {
    outline: 2px solid var(--ds-brand-secondary) !important;
    outline-offset: 3px;
    box-shadow: 0 0 0 4px rgba(43, 192, 196, .16) !important;
}

body.homepage-reimagined-storefront :is(button, .btn, [role="button"]) {
    transition:
        color var(--ds-motion-micro) var(--ds-ease-standard),
        background-color var(--ds-motion-micro) var(--ds-ease-standard),
        border-color var(--ds-motion-micro) var(--ds-ease-standard),
        opacity var(--ds-motion-micro) var(--ds-ease-standard),
        transform var(--ds-motion-micro) var(--ds-ease-standard),
        box-shadow var(--ds-motion-standard) var(--ds-ease-standard);
}

body.homepage-reimagined-storefront :is(button, .btn, [role="button"]):active:not(:disabled) {
    transform: translateY(1px);
}

body.homepage-reimagined-storefront :is(button, .btn, input, select, textarea):disabled,
body.homepage-reimagined-storefront :is(button, .btn)[aria-disabled="true"] {
    cursor: not-allowed !important;
    opacity: .48 !important;
}

body.homepage-reimagined-storefront .btn-scroll-top {
    width: var(--ds-control-height) !important;
    height: var(--ds-control-height) !important;
    border: 1px solid var(--ds-crystal-border) !important;
    border-radius: var(--ds-radius-control) !important;
    background: var(--ds-crystal-bg) !important;
    color: var(--ds-brand-primary) !important;
    box-shadow: var(--ds-crystal-highlight), var(--ds-crystal-shadow) !important;
    -webkit-backdrop-filter: blur(var(--ds-crystal-blur));
    backdrop-filter: blur(var(--ds-crystal-blur));
}

body.homepage-reimagined-storefront .btn-scroll-top:hover {
    background: var(--ds-crystal-bg-hover) !important;
    color: var(--ds-brand-primary-strong) !important;
}

body.homepage-reimagined-storefront .btn-scroll-top > .btn-scroll-top-icon {
    position: absolute;
    inset: 50% auto auto 50%;
    display: block;
    width: var(--ds-icon-standard);
    height: var(--ds-icon-standard);
    transform: translate(-50%, -50%);
}

body.homepage-reimagined-storefront .store-app-banner-close-icon {
    display: block;
    width: var(--ds-icon-small);
    height: var(--ds-icon-small);
}

/* Shared section rhythm and heading contract */
body.homepage-reimagined-storefront :is(
    .home-modern-flash-section,
    .home-modern-featured-section,
    .home-modern-featured-deals-section,
    .home-modern-clearance-section,
    .home-creative-wide-banner-section,
    .seller-list,
    .home-modern-latest-deal-section,
    .home-modern-new-arrivals-section,
    .home-modern-ranking-section,
    .home-modern-promo-banners-section,
    .home-modern-category-products-section
) {
    margin-top: var(--ds-section-space) !important;
    padding: 0 !important;
}

body.homepage-reimagined-storefront :is(
    .home-modern-categories-container,
    .home-modern-brands-container
) {
    margin-top: var(--ds-section-space) !important;
}

body.homepage-reimagined-storefront .home-modern-benefits-container {
    margin-top: var(--ds-space-6) !important;
}

body.homepage-reimagined-storefront :is(
    .home-modern-section-heading,
    .home-modern-featured-heading,
    .home-modern-featured-deals-heading,
    .home-modern-clearance-heading,
    .home-modern-new-arrivals-heading,
    .home-modern-latest-products-heading,
    .home-modern-category-products-heading,
    .home-modern-ranking-heading
) {
    min-height: 0;
    align-items: flex-end;
    gap: var(--ds-space-5);
    margin: 0 0 var(--ds-space-6) !important;
}

body.homepage-reimagined-storefront :is(
    .home-modern-featured-subtitle,
    .home-modern-featured-deals-subtitle,
    .home-modern-clearance-subtitle,
    .home-modern-new-arrivals-heading p,
    .home-modern-latest-products-heading p,
    .home-modern-category-products-subtitle,
    .home-modern-ranking-heading p
) {
    max-width: 65ch;
    margin-top: var(--ds-space-2) !important;
}

body.homepage-reimagined-storefront :is(
    .home-modern-view-all,
    .home-modern-featured-view-all,
    .home-modern-featured-deals-view-all,
    .home-modern-clearance-view-all,
    .home-modern-new-arrivals-view-all,
    .home-modern-latest-products-view-all,
    .home-modern-category-products-view-all,
    .home-modern-flash-view-all,
    .seller-list-view-all a,
    .home-modern-ranking-view-all
) {
    min-height: var(--ds-control-height);
    gap: var(--ds-space-2);
    border-bottom-color: var(--ds-line-strong) !important;
}

body.homepage-reimagined-storefront :is(
    .home-modern-view-all,
    .home-modern-featured-view-all,
    .home-modern-featured-deals-view-all,
    .home-modern-clearance-view-all,
    .home-modern-new-arrivals-view-all,
    .home-modern-latest-products-view-all,
    .home-modern-category-products-view-all,
    .home-modern-flash-view-all,
    .seller-list-view-all a,
    .home-modern-ranking-view-all
) > i {
    display: none !important;
}

body.homepage-reimagined-storefront :is(
    .home-modern-view-all,
    .home-modern-featured-view-all,
    .home-modern-featured-deals-view-all,
    .home-modern-clearance-view-all,
    .home-modern-new-arrivals-view-all,
    .home-modern-latest-products-view-all,
    .home-modern-category-products-view-all,
    .home-modern-flash-view-all,
    .seller-list-view-all a,
    .home-modern-ranking-view-all
)::after {
    width: 7px;
    height: 7px;
    border-top: 1.6px solid currentColor;
    border-right: 1.6px solid currentColor;
    content: "";
    transform: rotate(45deg);
}

html[dir="rtl"] body.homepage-reimagined-storefront :is(
    .home-modern-view-all,
    .home-modern-featured-view-all,
    .home-modern-featured-deals-view-all,
    .home-modern-clearance-view-all,
    .home-modern-new-arrivals-view-all,
    .home-modern-latest-products-view-all,
    .home-modern-category-products-view-all,
    .home-modern-flash-view-all,
    .seller-list-view-all a,
    .home-modern-ranking-view-all
)::after {
    transform: rotate(-135deg);
}

/* Compact final header */
body.homepage-reimagined-storefront .modern-store-header {
    z-index: var(--ds-layer-header);
}

body.homepage-reimagined-storefront .modern-store-header .topbar,
body.homepage-reimagined-storefront .modern-store-header .topbar > .container {
    min-height: var(--ds-space-6) !important;
}

body.homepage-reimagined-storefront .modern-store-header .topbar-link {
    display: inline-flex;
    align-items: center;
    gap: var(--ds-space-2);
}

body.homepage-reimagined-storefront .store-topbar-phone-icon {
    width: var(--ds-icon-small);
    height: var(--ds-icon-small);
}

body.homepage-reimagined-storefront .modern-main-header > .navbar,
body.homepage-reimagined-storefront .modern-main-header > .navbar > .container {
    min-height: 76px !important;
}

body.homepage-reimagined-storefront .modern-main-header > .navbar > .container {
    grid-template-columns: auto minmax(280px, 1fr) auto;
    gap: var(--ds-space-5) !important;
}

body.homepage-reimagined-storefront .modern-store-header .navbar-brand {
    width: 112px !important;
    min-width: 112px !important;
    height: 64px;
}

body.homepage-reimagined-storefront .modern-store-header .navbar-brand img,
body.homepage-reimagined-storefront .modern-store-header .navbar-brand img.__inline-11 {
    height: 56px !important;
    max-height: 56px !important;
}

body.homepage-reimagined-storefront .header-search-language-wrap {
    grid-template-columns: minmax(260px, 1fr) auto;
    gap: var(--ds-space-4) !important;
}

body.homepage-reimagined-storefront .header-search-compact .search_form > .d-flex {
    min-height: var(--ds-control-height-large);
    border: var(--ds-border-subtle);
    border-radius: var(--ds-radius-control);
    background: var(--ds-canvas);
}

body.homepage-reimagined-storefront .header-search-compact .search_form > .d-flex:focus-within {
    border-color: var(--ds-brand-primary);
    background: var(--ds-white);
    box-shadow: 0 0 0 4px rgba(16, 125, 164, .1);
}

body.homepage-reimagined-storefront .header-search-compact .search-bar-input {
    height: calc(var(--ds-control-height-large) - 2px) !important;
    padding-inline: var(--ds-space-4) 52px !important;
    border-radius: var(--ds-radius-control) !important;
}

body.homepage-reimagined-storefront .header-search-compact .search_button {
    inset-inline-end: var(--ds-space-1);
    top: var(--ds-space-1);
    width: 38px !important;
    height: 38px !important;
    border-radius: calc(var(--ds-radius-control) - 3px) !important;
    background: var(--ds-white) !important;
}

body.homepage-reimagined-storefront .header-search-compact .search_button .input-group-text {
    width: 38px;
    height: 38px;
}

body.homepage-reimagined-storefront .header-search-compact .search_button svg {
    width: var(--ds-icon-standard);
    height: var(--ds-icon-standard);
}

body.homepage-reimagined-storefront .header-language-trigger {
    min-height: var(--ds-control-height);
    gap: var(--ds-space-2);
}

body.homepage-reimagined-storefront .navbar-toolbar {
    gap: var(--ds-space-2) !important;
}

body.homepage-reimagined-storefront .navbar-toolbar .navbar-tool-icon-box,
body.homepage-reimagined-storefront .navbar-toolbar .navbar-tool-icon-box.bg-secondary,
body.homepage-reimagined-storefront .navbar-toolbar .header-user-avatar-box {
    width: var(--ds-control-height) !important;
    min-width: var(--ds-control-height) !important;
    height: var(--ds-control-height) !important;
    border: 1px solid transparent !important;
    border-radius: var(--ds-radius-control) !important;
}

body.homepage-reimagined-storefront .navbar-toolbar .navbar-tool:hover .navbar-tool-icon-box,
body.homepage-reimagined-storefront .navbar-toolbar .navbar-tool:focus-within .navbar-tool-icon-box {
    border-color: var(--ds-line) !important;
    background: var(--ds-brand-soft) !important;
    color: var(--ds-brand-primary) !important;
}

body.homepage-reimagined-storefront .navbar-toolbar .store-outline-icon,
body.homepage-reimagined-storefront .navbar-toolbar .navbar-tool-icon-box > svg {
    width: var(--ds-icon-action) !important;
    height: var(--ds-icon-action) !important;
}

body.homepage-reimagined-storefront .modern-navigation-bar {
    min-height: 52px !important;
}

body.homepage-reimagined-storefront .modern-navigation-bar > .container,
body.homepage-reimagined-storefront .modern-navigation-bar .navbar-collapse,
body.homepage-reimagined-storefront .modern-navigation-bar .nav-link {
    min-height: 50px;
}

body.homepage-reimagined-storefront .modern-navigation-bar .navbar-nav {
    gap: clamp(var(--ds-space-3), 1.4vw, var(--ds-space-5));
}

body.homepage-reimagined-storefront .modern-navigation-bar .nav-link {
    padding-inline: var(--ds-space-2) !important;
}

body.homepage-reimagined-storefront .modern-navigation-bar .__mega-nav {
    min-width: 184px;
    margin-inline-end: var(--ds-space-5) !important;
}

body.homepage-reimagined-storefront .modern-navigation-bar .category-menu-toggle-btn {
    min-width: 184px;
    gap: var(--ds-space-2);
    padding-inline: var(--ds-space-4) !important;
}

body.homepage-reimagined-storefront .modern-navigation-bar .category-menu-toggle-btn svg {
    width: var(--ds-icon-standard);
    height: var(--ds-icon-standard);
}

body.homepage-reimagined-storefront .mobile-submenu-inline-chevron {
    display: block;
    width: var(--ds-icon-small);
    height: var(--ds-icon-small);
}

html[dir="rtl"] body.homepage-reimagined-storefront .mobile-submenu-inline-chevron {
    transform: rotate(180deg);
}

body.homepage-reimagined-storefront .modern-store-header.reimagined-header-is-scrolled .modern-main-header,
body.homepage-reimagined-storefront .modern-main-header.navbar-stuck {
    border-bottom: 1px solid rgba(225, 230, 232, .82) !important;
    background: rgba(255, 255, 255, .9) !important;
    box-shadow: var(--ds-elevation-1) !important;
    -webkit-backdrop-filter: blur(var(--ds-crystal-blur));
    backdrop-filter: blur(var(--ds-crystal-blur));
}

/* Viewport-bound mega menu with independent scroll regions */
body.homepage-reimagined-storefront {
    --ds-header-stack-height: 160px;
    --ds-mega-max-height: calc(100dvh - var(--ds-header-stack-height) - var(--ds-space-4));
}

body.homepage-reimagined-storefront :is(.desktop-category-mega-menu, .desktop-brand-mega-menu) {
    z-index: var(--ds-layer-mega) !important;
    max-height: var(--ds-mega-max-height);
    overflow: hidden;
    overscroll-behavior: contain;
}

body.homepage-reimagined-storefront :is(.desktop-category-mega-menu, .desktop-brand-mega-menu).show {
    transform: translateY(0);
}

body.homepage-reimagined-storefront :is(.desktop-category-mega-menu-shell, .desktop-brand-mega-menu-shell) {
    display: flex;
    max-height: var(--ds-mega-max-height);
    flex-direction: column;
    padding: var(--ds-space-5) var(--ds-gutter) !important;
    overflow: hidden !important;
    border-bottom: var(--ds-border-subtle) !important;
    box-shadow: var(--ds-elevation-2) !important;
}

body.homepage-reimagined-storefront .reimagined-category-mega-layout {
    grid-template-columns: minmax(220px, .72fr) minmax(0, 3fr);
    height: min(540px, calc(var(--ds-mega-max-height) - 76px));
    min-height: 0;
    gap: var(--ds-space-6);
}

body.homepage-reimagined-storefront .reimagined-category-mega-tabs {
    min-height: 0;
    gap: var(--ds-space-1);
    padding-inline-end: var(--ds-space-4);
    overflow-x: hidden;
    overflow-y: auto;
    border-inline-end: var(--ds-border-subtle);
    overscroll-behavior: contain;
    scrollbar-color: var(--ds-line-strong) transparent;
    scrollbar-width: thin;
}

body.homepage-reimagined-storefront .reimagined-category-mega-tab {
    grid-template-columns: 38px minmax(0, 1fr) var(--ds-icon-small);
    min-height: 48px;
    gap: var(--ds-space-3);
    padding: var(--ds-space-1) var(--ds-space-2) !important;
    border: 1px solid transparent !important;
    border-radius: var(--ds-radius-control) !important;
}

body.homepage-reimagined-storefront .reimagined-category-mega-tab:hover,
body.homepage-reimagined-storefront .reimagined-category-mega-tab:focus-visible,
body.homepage-reimagined-storefront .reimagined-category-mega-tab.is-active {
    border-color: rgba(16, 125, 164, .14) !important;
    background: var(--ds-brand-soft) !important;
    color: var(--ds-brand-primary) !important;
}

body.homepage-reimagined-storefront .reimagined-category-mega-tab-image {
    width: 36px;
    height: 36px;
    padding: var(--ds-space-1);
    border-radius: calc(var(--ds-radius-control) - 3px);
}

body.homepage-reimagined-storefront .reimagined-category-mega-tab > svg {
    width: var(--ds-icon-small);
    height: var(--ds-icon-small);
}

body.homepage-reimagined-storefront .reimagined-category-mega-panels {
    min-height: 0;
    padding-inline-end: var(--ds-space-2);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-color: var(--ds-line-strong) transparent;
    scrollbar-width: thin;
}

body.homepage-reimagined-storefront .reimagined-category-mega-panel {
    padding-bottom: var(--ds-space-2);
    animation: reimagined-panel-in var(--ds-motion-standard) var(--ds-ease-out) both;
}

body.homepage-reimagined-storefront .reimagined-category-mega-panel-head {
    gap: var(--ds-space-5);
    margin-bottom: var(--ds-space-4);
}

body.homepage-reimagined-storefront .reimagined-category-mega-subcategories {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--ds-space-3);
    margin-bottom: var(--ds-space-5);
}

body.homepage-reimagined-storefront .reimagined-category-mega-subcategory {
    grid-template-columns: 48px minmax(0, 1fr);
    min-height: 56px;
    gap: var(--ds-space-2);
    padding: var(--ds-space-1);
    border: var(--ds-border-subtle);
    border-radius: var(--ds-radius-control);
    background: var(--ds-white);
}

body.homepage-reimagined-storefront .reimagined-category-mega-subcategory-image {
    width: 48px;
    height: 48px;
    padding: var(--ds-space-1);
    border-radius: calc(var(--ds-radius-control) - 2px);
}

body.homepage-reimagined-storefront .reimagined-category-mega-products {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--ds-space-4);
}

body.homepage-reimagined-storefront .reimagined-category-mega-empty {
    display: grid;
    min-height: calc(var(--ds-space-9) * 4);
    place-items: center;
    padding: var(--ds-space-7);
    border: var(--ds-border-subtle);
    border-radius: var(--ds-radius-large);
    background: var(--ds-canvas);
}

body.homepage-reimagined-storefront .reimagined-category-mega-empty-link {
    display: grid;
    justify-items: center;
    gap: var(--ds-space-3);
    color: var(--ds-ink);
    text-align: center;
}

body.homepage-reimagined-storefront .reimagined-category-mega-empty-link:hover,
body.homepage-reimagined-storefront .reimagined-category-mega-empty-link:focus-visible {
    color: var(--ds-brand-primary);
}

body.homepage-reimagined-storefront .reimagined-category-mega-empty-media {
    display: grid;
    width: calc(var(--ds-space-9) * 2);
    aspect-ratio: 1;
    place-items: center;
    padding: var(--ds-space-4);
    border: var(--ds-border-subtle);
    border-radius: var(--ds-radius-card);
    background: var(--ds-white);
}

body.homepage-reimagined-storefront .reimagined-category-mega-empty-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

body.homepage-reimagined-storefront .reimagined-category-mega-empty-link strong {
    font-size: var(--ts-size-section-title);
    font-weight: var(--ts-weight-semibold);
}

body.homepage-reimagined-storefront .reimagined-category-mega-empty-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--ds-space-2);
    color: var(--ds-brand-primary);
    font-size: var(--ts-size-button);
    font-weight: var(--ts-weight-medium);
}

body.homepage-reimagined-storefront .reimagined-category-mega-empty-cta svg {
    width: var(--ds-icon-small);
    height: var(--ds-icon-small);
}

html[dir="rtl"] body.homepage-reimagined-storefront .reimagined-category-mega-empty-cta svg {
    transform: rotate(180deg);
}

body.homepage-reimagined-storefront .reimagined-category-mega-product {
    grid-template-columns: 72px minmax(0, 1fr);
    min-height: 88px;
    gap: var(--ds-space-3);
    padding-block: var(--ds-space-2);
}

body.homepage-reimagined-storefront .reimagined-category-mega-product-media {
    width: 72px;
    height: 72px;
    padding: var(--ds-space-2);
    border-radius: var(--ds-radius-control);
}

body.homepage-reimagined-storefront .desktop-category-mega-menu-footer,
body.homepage-reimagined-storefront .desktop-brand-mega-menu-footer {
    margin-top: var(--ds-space-3) !important;
}

body.homepage-reimagined-storefront .desktop-brand-mega-menu-shell {
    overflow-y: auto !important;
    overscroll-behavior: contain;
}

body.homepage-reimagined-storefront .desktop-brand-mega-menu-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: var(--ds-space-3) var(--ds-space-5) !important;
}

body.homepage-reimagined-storefront .desktop-brand-mega-menu-image {
    border-radius: var(--ds-radius-control) !important;
}

/* Hero and permanent image rules */
body.homepage-reimagined-storefront .home-modern-hero-container {
    margin-top: var(--ds-space-5) !important;
}

body.homepage-reimagined-storefront .home-modern-hero-card {
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
    border-radius: var(--ds-radius-large) !important;
    background: transparent !important;
}

body.homepage-reimagined-storefront .home-modern-hero-slider,
body.homepage-reimagined-storefront .home-modern-hero-slider .owl-stage-outer,
body.homepage-reimagined-storefront .home-modern-hero-slider .owl-stage,
body.homepage-reimagined-storefront .home-modern-hero-slider .owl-item,
body.homepage-reimagined-storefront .home-modern-hero-link {
    height: auto !important;
    min-height: 0 !important;
}

body.homepage-reimagined-storefront .home-modern-hero-slider .owl-stage {
    display: flex;
    align-items: flex-start;
}

body.homepage-reimagined-storefront .home-modern-hero-image,
body.homepage-reimagined-storefront .home-modern-hero-slider .owl-item img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    object-position: center !important;
}

body.homepage-reimagined-storefront :is(
    .home-modern-hero-control,
    .home-modern-category-control,
    .home-modern-flash-control,
    .home-modern-featured-control,
    .home-modern-featured-deals-control,
    .home-modern-clearance-control,
    .home-modern-new-arrivals-control,
    .home-modern-promo-control,
    .home-modern-category-products-control
) {
    width: var(--ds-control-height) !important;
    height: var(--ds-control-height) !important;
    border: 1px solid var(--ds-crystal-border) !important;
    border-radius: var(--ds-radius-control) !important;
    background: var(--ds-crystal-bg) !important;
    color: var(--ds-ink) !important;
    box-shadow: var(--ds-crystal-highlight), var(--ds-crystal-shadow) !important;
    -webkit-backdrop-filter: blur(var(--ds-crystal-blur));
    backdrop-filter: blur(var(--ds-crystal-blur));
}

body.homepage-reimagined-storefront :is(
    .home-modern-hero-control,
    .home-modern-category-control,
    .home-modern-flash-control,
    .home-modern-featured-control,
    .home-modern-featured-deals-control,
    .home-modern-clearance-control,
    .home-modern-new-arrivals-control,
    .home-modern-promo-control,
    .home-modern-category-products-control
):hover {
    border-color: rgba(16, 125, 164, .24) !important;
    background: var(--ds-crystal-bg-hover) !important;
    color: var(--ds-brand-primary) !important;
}

body.homepage-reimagined-storefront :is(
    .home-modern-category-full-image,
    .store-creative-product-image,
    .reimagined-category-mega-tab-image img,
    .reimagined-category-mega-subcategory-image img,
    .reimagined-category-mega-product-media img,
    .desktop-brand-mega-menu-image img,
    .home-modern-brand-item img,
    .home-modern-daily-deal-media img,
    .home-modern-new-arrival-media img,
    .home-modern-horizontal-product-media img
) {
    object-fit: contain !important;
    object-position: center !important;
}

/* Reliability and category cards */
body.homepage-reimagined-storefront .home-modern-benefits {
    padding-block: var(--ds-space-4) !important;
}

body.homepage-reimagined-storefront .home-modern-benefit-item {
    min-height: 56px;
    padding: var(--ds-space-2) var(--ds-space-5) !important;
}

body.homepage-reimagined-storefront .home-modern-categories-slider {
    grid-auto-columns: clamp(168px, 15vw, 208px);
    gap: var(--ds-space-4);
}

body.homepage-reimagined-storefront .home-modern-category-card {
    gap: var(--ds-space-3);
}

body.homepage-reimagined-storefront .home-modern-category-image-wrap {
    aspect-ratio: 1 / 1;
    padding: var(--ds-space-2) !important;
    border: var(--ds-border-subtle) !important;
    border-radius: var(--ds-radius-card) !important;
    background: var(--ds-surface) !important;
}

body.homepage-reimagined-storefront .home-modern-category-full-image {
    transition: transform var(--ds-motion-card) var(--ds-ease-out) !important;
}

body.homepage-reimagined-storefront .home-modern-category-card:hover .home-modern-category-full-image {
    transform: translateY(-2px) scale(1.025) !important;
}

body.homepage-reimagined-storefront .home-modern-category-title {
    min-height: 44px;
    padding-inline: var(--ds-space-1) !important;
    font-size: var(--ts-size-nav) !important;
    font-weight: var(--ts-weight-medium) !important;
}

/* Two-row brand marquee */
body.homepage-reimagined-storefront .home-modern-brands-container,
body.homepage-reimagined-storefront .home-modern-brands-container.container {
    width: min(100%, var(--ds-container)) !important;
    max-width: var(--ds-container) !important;
    padding: var(--ds-space-7) var(--ds-gutter) !important;
    border: var(--ds-border-subtle);
    border-radius: var(--ds-radius-large);
    background: var(--ds-canvas);
}

body.homepage-reimagined-storefront .home-modern-brands-heading {
    margin-bottom: var(--ds-space-5) !important;
}

body.homepage-reimagined-storefront .home-modern-brands-marquees {
    display: grid;
    gap: var(--ds-space-3);
    overflow: hidden;
}

body.homepage-reimagined-storefront .home-modern-brand-marquee {
    width: 100%;
    overflow: hidden;
    direction: ltr;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

body.homepage-reimagined-storefront .home-modern-brand-marquee-track {
    display: flex;
    width: max-content;
    gap: var(--ds-space-3);
    will-change: transform;
    animation: ds-brand-marquee-forward 44s linear infinite;
}

body.homepage-reimagined-storefront .home-modern-brand-marquee--reverse .home-modern-brand-marquee-track {
    animation-name: ds-brand-marquee-reverse;
}

body.homepage-reimagined-storefront .home-modern-brand-marquee:is(:hover, :focus-within) .home-modern-brand-marquee-track {
    animation-play-state: paused;
}

body.homepage-reimagined-storefront .home-modern-brand-marquee-group {
    display: flex;
    flex-shrink: 0;
    gap: var(--ds-space-3);
}

body.homepage-reimagined-storefront .home-modern-brand-item {
    width: 156px;
    height: 88px !important;
    flex: 0 0 156px;
    padding: var(--ds-space-4) !important;
    border: var(--ds-border-subtle) !important;
    border-radius: var(--ds-radius-card) !important;
    background: var(--ds-white) !important;
    transition:
        border-color var(--ds-motion-standard) var(--ds-ease-standard),
        box-shadow var(--ds-motion-standard) var(--ds-ease-standard),
        transform var(--ds-motion-standard) var(--ds-ease-out) !important;
}

body.homepage-reimagined-storefront .home-modern-brand-item:hover {
    border-color: rgba(16, 125, 164, .24) !important;
    box-shadow: var(--ds-elevation-1) !important;
    transform: translateY(-2px) !important;
}

body.homepage-reimagined-storefront .home-modern-brand-item img {
    filter: grayscale(1) !important;
    opacity: .74;
    transition: filter var(--ds-motion-standard) var(--ds-ease-standard), opacity var(--ds-motion-standard) var(--ds-ease-standard) !important;
}

body.homepage-reimagined-storefront .home-modern-brand-item:hover img,
body.homepage-reimagined-storefront .home-modern-brand-item:focus-visible img {
    filter: grayscale(0) !important;
    opacity: 1;
}

@keyframes ds-brand-marquee-forward {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(-50%, 0, 0); }
}

@keyframes ds-brand-marquee-reverse {
    from { transform: translate3d(-50%, 0, 0); }
    to { transform: translate3d(0, 0, 0); }
}

/* Unified product card family */
body.homepage-reimagined-storefront .store-creative-product-card[data-reimagined-product-card] {
    padding: var(--ds-space-3) !important;
    overflow: hidden !important;
    border: var(--ds-border-subtle) !important;
    border-radius: var(--ds-radius-card) !important;
    background: var(--ds-white) !important;
    transition:
        border-color var(--ds-motion-card) var(--ds-ease-standard),
        box-shadow var(--ds-motion-card) var(--ds-ease-standard),
        transform var(--ds-motion-card) var(--ds-ease-out) !important;
}

body.homepage-reimagined-storefront .store-creative-product-card[data-reimagined-product-card]:hover {
    border-color: rgba(16, 125, 164, .22) !important;
    box-shadow: var(--ds-elevation-1) !important;
    transform: translateY(-2px) !important;
}

body.homepage-reimagined-storefront .store-creative-product-media {
    border-radius: var(--ds-radius-control) !important;
}

body.homepage-reimagined-storefront .store-creative-product-image-link {
    padding: 6%;
}

body.homepage-reimagined-storefront .store-creative-product-image {
    transition: transform var(--ds-motion-card) var(--ds-ease-out) !important;
}

body.homepage-reimagined-storefront .store-creative-product-card:hover .store-creative-product-image {
    transform: translateY(-2px) scale(1.025) !important;
}

body.homepage-reimagined-storefront .store-creative-product-content {
    padding: var(--ds-space-4) 0 0 !important;
}

body.homepage-reimagined-storefront .store-creative-product-brand {
    margin-bottom: var(--ds-space-1) !important;
}

body.homepage-reimagined-storefront .store-creative-product-title {
    min-height: 48px;
    margin-bottom: var(--ds-space-2) !important;
}

body.homepage-reimagined-storefront .store-creative-product-commerce-rating {
    gap: var(--ds-space-1);
    margin-bottom: var(--ds-space-2);
}

body.homepage-reimagined-storefront .store-creative-product-stars {
    display: inline-flex;
    align-items: center;
    gap: 1px;
}

body.homepage-reimagined-storefront .store-creative-product-star {
    width: 12px;
    height: 12px;
    color: var(--ds-line-strong);
}

body.homepage-reimagined-storefront .store-creative-product-star.is-active {
    color: var(--ds-brand-secondary);
}

body.homepage-reimagined-storefront .store-rating-star {
    display: inline-block;
    width: var(--ds-icon-rating);
    height: var(--ds-icon-rating);
    flex: 0 0 var(--ds-icon-rating);
    fill: currentColor;
    color: var(--ds-brand-secondary);
}

body.homepage-reimagined-storefront .store-creative-product-prices {
    gap: var(--ds-space-1) var(--ds-space-2);
}

body.homepage-reimagined-storefront .store-creative-product-cart-button {
    min-height: var(--ds-control-height);
    gap: var(--ds-space-2);
    margin-top: var(--ds-space-4) !important;
    padding-inline: var(--ds-space-4) !important;
    border-radius: var(--ds-radius-control) !important;
}

body.homepage-reimagined-storefront .store-creative-product-cart-button:hover {
    border-color: var(--ds-brand-primary) !important;
    background: var(--ds-brand-primary) !important;
    color: var(--ds-white) !important;
}

/* Premium flash-deal composition */
body.homepage-reimagined-storefront .home-modern-flash-card {
    grid-template-columns: minmax(260px, .9fr) minmax(0, 2.4fr);
    gap: var(--ds-space-7);
    padding: var(--ds-space-7) !important;
    border: 1px solid rgba(16, 125, 164, .14) !important;
    border-radius: var(--ds-radius-large) !important;
    background:
        linear-gradient(135deg, rgba(238, 248, 250, .98), rgba(255, 255, 255, .98)) !important;
}

body.homepage-reimagined-storefront .home-modern-flash-title {
    word-break: normal !important;
    overflow-wrap: normal !important;
}

body.homepage-reimagined-storefront .home-modern-flash-offer {
    padding-inline-end: var(--ds-space-6) !important;
    border-inline-end: 1px solid rgba(16, 125, 164, .16) !important;
}

body.homepage-reimagined-storefront .home-modern-flash-eyebrow {
    min-height: 28px;
    margin-bottom: var(--ds-space-3);
    padding-inline: var(--ds-space-3);
    border: 1px solid rgba(16, 125, 164, .18) !important;
    border-radius: var(--ds-radius-pill) !important;
}

body.homepage-reimagined-storefront .home-modern-flash-description {
    margin: var(--ds-space-3) 0 var(--ds-space-5) !important;
}

body.homepage-reimagined-storefront .home-modern-flash-countdown .cz-countdown {
    gap: var(--ds-space-2);
}

body.homepage-reimagined-storefront .home-modern-flash-time-unit {
    min-width: 52px;
    min-height: 56px;
    padding: var(--ds-space-2);
    border: var(--ds-border-subtle) !important;
    border-radius: var(--ds-radius-control) !important;
}

body.homepage-reimagined-storefront .home-modern-flash-progress {
    margin-top: var(--ds-space-4) !important;
}

body.homepage-reimagined-storefront .home-modern-flash-button {
    min-height: var(--ds-control-height);
    gap: var(--ds-space-2);
    margin-top: var(--ds-space-5);
    padding-inline: var(--ds-space-4) !important;
    border-radius: var(--ds-radius-control) !important;
}

body.homepage-reimagined-storefront .home-modern-flash-products-heading {
    min-height: 0;
    gap: var(--ds-space-4);
    margin-bottom: var(--ds-space-4);
}

body.homepage-reimagined-storefront .home-modern-flash-slider {
    grid-auto-columns: clamp(210px, 17vw, 252px);
    gap: var(--ds-space-4);
}

/* Banner ratios are content-led */
body.homepage-reimagined-storefront :is(
    .home-creative-wide-banner-frame,
    .home-creative-wide-banner-link,
    .home-modern-promo-card
) {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
    overflow: hidden;
    border-radius: var(--ds-radius-large) !important;
}

body.homepage-reimagined-storefront :is(
    .home-creative-wide-banner-image,
    .home-modern-promo-image
) {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
}

/* Compact card variants share the same system */
body.homepage-reimagined-storefront :is(
    .home-modern-daily-deal-card,
    .home-modern-new-arrival-product,
    .home-modern-best-selling-card,
    .home-modern-top-rated-card
) {
    border: var(--ds-border-subtle) !important;
    border-radius: var(--ds-radius-card) !important;
    background: var(--ds-white) !important;
    box-shadow: none !important;
}

body.homepage-reimagined-storefront .home-modern-daily-deal-card {
    padding: var(--ds-space-5) !important;
}

body.homepage-reimagined-storefront .home-modern-new-arrival-product {
    gap: var(--ds-space-4);
    padding: var(--ds-space-3) !important;
}

body.homepage-reimagined-storefront .home-modern-new-arrival-media,
body.homepage-reimagined-storefront .home-modern-horizontal-product-media {
    border-radius: var(--ds-radius-control);
}

body.homepage-reimagined-storefront .home-modern-new-arrival-content h3 {
    margin-bottom: var(--ds-space-3);
}

body.homepage-reimagined-storefront :is(
    .home-modern-new-arrival-current,
    .home-modern-horizontal-current
) {
    color: var(--ds-ink) !important;
}

body.homepage-reimagined-storefront .home-modern-ranking-grid {
    gap: var(--ds-grid-gap);
}

body.homepage-reimagined-storefront :is(.home-modern-best-selling-card, .home-modern-top-rated-card) {
    padding: var(--ds-space-5) !important;
}

body.homepage-reimagined-storefront .home-modern-horizontal-product {
    gap: var(--ds-space-3);
    padding-block: var(--ds-space-3) !important;
}

body.homepage-reimagined-storefront .home-modern-category-products-section {
    padding-block: var(--ds-section-space) !important;
}

/* Newsletter and recomposed neutral footer */
body.homepage-reimagined-storefront .store-footer-shell {
    margin-top: var(--ds-section-space) !important;
    background: var(--ds-surface) !important;
}

body.homepage-reimagined-storefront .store-footer-newsletter {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 1.15fr);
    min-height: 0;
    gap: var(--ds-space-7);
    padding: var(--ds-space-6) var(--ds-space-7) !important;
    border: var(--ds-border-subtle) !important;
    border-top: 2px solid var(--ds-brand-secondary) !important;
    border-radius: var(--ds-radius-large) !important;
}

body.homepage-reimagined-storefront .store-footer-newsletter-copy h2 {
    margin-bottom: var(--ds-space-2) !important;
}

body.homepage-reimagined-storefront .store-footer-newsletter-form {
    min-height: var(--ds-control-height-large);
    border-radius: var(--ds-radius-control) !important;
}

body.homepage-reimagined-storefront .store-footer-newsletter-form input {
    height: var(--ds-control-height-large) !important;
    padding-inline: var(--ds-space-4) !important;
}

body.homepage-reimagined-storefront .store-footer-newsletter-form button {
    min-width: 120px;
    height: 40px !important;
    margin: var(--ds-space-1);
    padding-inline: var(--ds-space-4) !important;
    border-radius: calc(var(--ds-radius-control) - 2px) !important;
}

body.homepage-reimagined-storefront .store-footer-newsletter-form button:hover {
    background: var(--ds-brand-primary-strong) !important;
}

body.homepage-reimagined-storefront .store-footer-main {
    grid-template-columns: 1.25fr repeat(2, minmax(140px, .78fr)) 1.1fr .9fr;
    gap: var(--ds-grid-gap);
    padding: var(--ds-space-8) 0 var(--ds-space-7) !important;
}

body.homepage-reimagined-storefront .store-footer-description {
    margin: var(--ds-space-4) 0 var(--ds-space-5) !important;
}

body.homepage-reimagined-storefront .store-footer-payment-methods,
body.homepage-reimagined-storefront .store-footer-socials,
body.homepage-reimagined-storefront .store-footer-app-buttons {
    gap: var(--ds-space-2);
}

body.homepage-reimagined-storefront .store-footer-links-column ul {
    margin-top: var(--ds-space-4) !important;
}

body.homepage-reimagined-storefront .store-footer-links-column li + li {
    margin-top: var(--ds-space-2);
}

body.homepage-reimagined-storefront .store-footer-contact-link {
    grid-template-columns: var(--ds-space-6) minmax(0, 1fr);
    gap: var(--ds-space-3);
    margin-top: var(--ds-space-3);
}

body.homepage-reimagined-storefront .store-footer-contact-icon {
    width: var(--ds-space-6);
    height: var(--ds-space-6);
    border: var(--ds-border-subtle);
    border-radius: var(--ds-radius-control);
}

body.homepage-reimagined-storefront .store-footer-contact-icon svg {
    width: var(--ds-icon-small);
    height: var(--ds-icon-small);
}

body.homepage-reimagined-storefront .store-footer-accordion-icon svg {
    display: block;
    width: var(--ds-icon-standard);
    height: var(--ds-icon-standard);
}

body.homepage-reimagined-storefront .store-footer-accordion-open .store-footer-accordion-icon {
    transform: rotate(180deg);
}

body.homepage-reimagined-storefront .store-footer-socials a {
    width: var(--ds-control-height);
    height: var(--ds-control-height);
    border-radius: var(--ds-radius-control);
}

body.homepage-reimagined-storefront .store-footer-socials a svg {
    width: var(--ds-icon-standard);
    height: var(--ds-icon-standard);
}

body.homepage-reimagined-storefront .store-footer-bottom {
    min-height: var(--ds-space-9);
    gap: var(--ds-space-5);
    padding-block: var(--ds-space-4) !important;
}

/* Motion, states, and optical behavior */
body.homepage-reimagined-storefront .reimagined-reveal-target {
    opacity: 0;
    transform: translateY(var(--ds-space-3));
    transition:
        opacity var(--ds-motion-reveal) var(--ds-ease-standard),
        transform var(--ds-motion-reveal) var(--ds-ease-out);
}

body.homepage-reimagined-storefront .reimagined-reveal-target.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

body.homepage-reimagined-storefront :is(
    .home-modern-category-card,
    .home-modern-brand-item,
    .store-creative-product-card,
    .reimagined-category-mega-tab,
    .reimagined-category-mega-subcategory,
    .reimagined-category-mega-product
) {
    cursor: pointer;
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    body.homepage-reimagined-storefront :is(
        .home-modern-hero-control,
        .home-modern-category-control,
        .home-modern-flash-control,
        .home-modern-featured-control,
        .home-modern-featured-deals-control,
        .home-modern-clearance-control,
        .home-modern-new-arrivals-control,
        .home-modern-promo-control,
        .home-modern-category-products-control
    ),
    body.homepage-reimagined-storefront .modern-main-header.navbar-stuck {
        background: var(--ds-white) !important;
    }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1199.98px) {
    body.homepage-reimagined-storefront {
        --ds-gutter: var(--ds-space-5);
        --ds-section-space: var(--ds-space-8);
    }

    body.homepage-reimagined-storefront .modern-main-header > .navbar > .container {
        grid-template-columns: 92px minmax(240px, 1fr) auto;
        gap: var(--ds-space-3) !important;
    }

    body.homepage-reimagined-storefront .modern-store-header .navbar-brand {
        width: 92px !important;
        min-width: 92px !important;
    }

    body.homepage-reimagined-storefront .modern-store-header .navbar-brand img,
    body.homepage-reimagined-storefront .modern-store-header .navbar-brand img.__inline-11 {
        height: 52px !important;
    }

    body.homepage-reimagined-storefront .reimagined-category-mega-layout {
        grid-template-columns: 200px minmax(0, 1fr);
        gap: var(--ds-space-5);
    }

    body.homepage-reimagined-storefront .reimagined-category-mega-products,
    body.homepage-reimagined-storefront .reimagined-category-mega-subcategories {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.homepage-reimagined-storefront .home-modern-flash-card {
        grid-template-columns: minmax(230px, .9fr) minmax(0, 2fr);
        gap: var(--ds-space-5);
        padding: var(--ds-space-6) !important;
    }

    body.homepage-reimagined-storefront .store-footer-main {
        grid-template-columns: 1.2fr repeat(2, .8fr) 1fr;
    }
}

/* Mobile */
@media (max-width: 767.98px) {
    body.homepage-reimagined-storefront {
        --ds-gutter: var(--ds-space-4);
        --ds-section-space: var(--ds-space-7);
        --ds-grid-gap: var(--ds-space-4);
    }

    body.homepage-reimagined-storefront .modern-main-header > .navbar,
    body.homepage-reimagined-storefront .modern-main-header > .navbar > .container {
        min-height: 72px !important;
    }

    body.homepage-reimagined-storefront .modern-main-header .navbar-toggler.js-mobile-menu-open,
    body.homepage-reimagined-storefront .navbar-toolbar .navbar-tool-icon-box,
    body.homepage-reimagined-storefront .navbar-toolbar .navbar-tool-icon-box.bg-secondary {
        width: var(--ds-control-height) !important;
        min-width: var(--ds-control-height) !important;
        height: var(--ds-control-height) !important;
        border-radius: var(--ds-radius-control) !important;
    }

    body.homepage-reimagined-storefront .modern-navigation-bar #navbarCollapse {
        z-index: var(--ds-layer-sheet) !important;
        height: min(82svh, 720px) !important;
        padding: 0 var(--ds-space-5) var(--ds-space-6) !important;
        border-radius: var(--ds-radius-large) var(--ds-radius-large) 0 0 !important;
        box-shadow: var(--ds-elevation-overlay) !important;
        transition: transform var(--ds-motion-sheet) var(--ds-ease-out) !important;
    }

    body.homepage-reimagined-storefront .mobile-menu-page-overlay {
        z-index: var(--ds-layer-overlay) !important;
    }

    body.homepage-reimagined-storefront .design-mobile-sheet-head {
        min-height: var(--ds-space-9);
        margin: 0 calc(var(--ds-space-5) * -1) var(--ds-space-2) !important;
        padding: var(--ds-space-5) var(--ds-space-5) var(--ds-space-3) !important;
    }

    body.homepage-reimagined-storefront #navbarCollapse :is(.nav-link, .mobile-category-item-link) {
        min-height: 56px;
    }

    body.homepage-reimagined-storefront .home-modern-hero-container {
        margin-top: var(--ds-space-3) !important;
        padding-inline: var(--ds-space-3) !important;
    }

    body.homepage-reimagined-storefront .home-modern-hero-card {
        border-radius: var(--ds-radius-card) !important;
    }

    body.homepage-reimagined-storefront :is(
        .home-modern-section-heading,
        .home-modern-featured-heading,
        .home-modern-featured-deals-heading,
        .home-modern-clearance-heading,
        .home-modern-new-arrivals-heading,
        .home-modern-latest-products-heading,
        .home-modern-category-products-heading,
        .home-modern-ranking-heading
    ) {
        gap: var(--ds-space-3);
        margin-bottom: var(--ds-space-5) !important;
    }

    body.homepage-reimagined-storefront :is(
        .home-modern-featured-subtitle,
        .home-modern-featured-deals-subtitle,
        .home-modern-clearance-subtitle,
        .home-modern-new-arrivals-heading p,
        .home-modern-latest-products-heading p,
        .home-modern-category-products-subtitle,
        .home-modern-ranking-heading p
    ) {
        display: block !important;
    }

    body.homepage-reimagined-storefront .home-modern-benefits {
        padding-block: var(--ds-space-2) !important;
    }

    body.homepage-reimagined-storefront .home-modern-benefit-item {
        padding: var(--ds-space-2) !important;
    }

    body.homepage-reimagined-storefront .home-modern-categories-slider {
        grid-auto-columns: min(46vw, 176px);
        gap: var(--ds-space-3);
    }

    body.homepage-reimagined-storefront .home-modern-category-image-wrap {
        padding: var(--ds-space-2) !important;
    }

    body.homepage-reimagined-storefront .home-modern-brands-container,
    body.homepage-reimagined-storefront .home-modern-brands-container.container {
        padding-block: var(--ds-space-6) !important;
        border-radius: 0;
    }

    body.homepage-reimagined-storefront .home-modern-brand-item {
        width: 124px;
        height: 76px !important;
        flex-basis: 124px;
        padding: var(--ds-space-3) !important;
    }

    body.homepage-reimagined-storefront .store-creative-product-card[data-reimagined-product-card] {
        padding: var(--ds-space-2) !important;
    }

    body.homepage-reimagined-storefront .home-modern-flash-card {
        display: block !important;
        padding: var(--ds-space-5) var(--ds-space-4) !important;
        border-radius: var(--ds-radius-card) !important;
    }

    body.homepage-reimagined-storefront .home-modern-flash-offer {
        padding: 0 0 var(--ds-space-5) !important;
        border: 0 !important;
        border-bottom: 1px solid rgba(16, 125, 164, .16) !important;
    }

    body.homepage-reimagined-storefront .home-modern-flash-products {
        padding-top: var(--ds-space-5) !important;
    }

    body.homepage-reimagined-storefront .home-modern-promo-card {
        border-radius: var(--ds-radius-card) !important;
    }

    body.homepage-reimagined-storefront .home-modern-daily-deal-card,
    body.homepage-reimagined-storefront :is(.home-modern-best-selling-card, .home-modern-top-rated-card) {
        padding: var(--ds-space-4) !important;
    }

    body.homepage-reimagined-storefront .store-footer-newsletter {
        grid-template-columns: 1fr;
        gap: var(--ds-space-5);
        padding: var(--ds-space-6) var(--ds-space-5) !important;
        border-radius: var(--ds-radius-large) var(--ds-radius-large) 0 0 !important;
    }

    body.homepage-reimagined-storefront .store-footer-main {
        padding: var(--ds-space-7) 0 var(--ds-space-6) !important;
    }

    body.homepage-reimagined-storefront .store-footer-brand-column {
        margin-bottom: var(--ds-space-6);
    }

    body.homepage-reimagined-storefront .store-footer-accordion,
    body.homepage-reimagined-storefront .store-footer-app-column {
        padding-block: var(--ds-space-3);
    }

    body.homepage-reimagined-storefront .store-footer-accordion-toggle {
        min-height: var(--ds-control-height);
    }

    body.homepage-reimagined-storefront .store-footer-accordion-content {
        padding-bottom: var(--ds-space-3);
    }
}

@media (max-width: 390px) {
    body.homepage-reimagined-storefront {
        --ds-gutter: var(--ds-space-3);
    }

    body.homepage-reimagined-storefront .home-modern-categories-slider {
        grid-auto-columns: min(48vw, 168px);
    }

    body.homepage-reimagined-storefront .store-footer-newsletter-form {
        grid-template-columns: 1fr;
        overflow: visible;
        border: 0 !important;
        background: transparent !important;
    }

    body.homepage-reimagined-storefront .store-footer-newsletter-form input,
    body.homepage-reimagined-storefront .store-footer-newsletter-form button {
        width: 100%;
        margin: 0;
        border: var(--ds-border-subtle) !important;
        border-radius: var(--ds-radius-control) !important;
    }

    body.homepage-reimagined-storefront .store-footer-newsletter-form button {
        margin-top: var(--ds-space-2);
        border-color: var(--ds-brand-primary) !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.homepage-reimagined-storefront *,
    body.homepage-reimagined-storefront *::before,
    body.homepage-reimagined-storefront *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    body.homepage-reimagined-storefront .home-modern-brand-marquee {
        overflow-x: auto;
        scrollbar-width: none;
    }

    body.homepage-reimagined-storefront .home-modern-brand-marquee-track {
        animation: none !important;
        transform: none !important;
    }

    body.homepage-reimagined-storefront .home-modern-brand-marquee-group[aria-hidden="true"] {
        display: none;
    }

    body.homepage-reimagined-storefront .reimagined-reveal-target {
        opacity: 1;
        transform: none;
    }
}
