/* ==========================================================================
   YURKAS NEW HEADER (Pixel-Perfect from Figma)
   ========================================================================== */

/* Reset & Scope Isolation */
.header-new {
    width: 100%;
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    position: relative;
    z-index: 100;
    box-sizing: border-box;
    overflow: visible;
}

.header-new *,
.header-new *::before,
.header-new *::after {
    box-sizing: border-box;
}

/* Legacy .header wrapper reset */
header.header-new .header.header-new__wrapper-reset {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    min-height: 0 !important;
    position: relative !important;
}

/* --------------------------------------------------------------------------
   Top Bar (Desktop & Tablet)
   -------------------------------------------------------------------------- */
.header-new__top {
    background-color: #F4F4F4;
    height: 55px;
    width: 100%;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #ECECEC;
}

.header-new__top-container {
    width: 100%;
    max-width: 1856px;
    margin: 0 auto;
    padding-left: 16px;
    padding-right: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}

@media (min-width: 575.98px) {
    .header-new__top-container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (min-width: 1199.98px) {
    .header-new__top-container {
        padding-left: 48px;
        padding-right: 48px;
    }
}

.header-new__top-left,
.header-new__top-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-new__top-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Open Sans', sans-serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.4;
    color: #393939;
    text-decoration: none;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    transition: color 0.15s ease;
    white-space: nowrap;
}

.header-new__top-item:hover {
    color: #FFA400;
}

.header-new__top-icon {
    display: block;
    flex-shrink: 0;
}

/* City dropdown trigger styling */
.header-new__city-btn {
    outline: none;
}

.header-new__city-btn span {
    font-family: inherit;
    font-size: 17px;
    color: inherit;
}

/* --------------------------------------------------------------------------
   Mobile Top Micro-Bar (<768px)
   -------------------------------------------------------------------------- */
.header-new__mobile-top {
    display: none;
    width: 100%;
    max-width: 1856px;
    margin: 0 auto;
    height: 34px;
    background-color: #F4F4F4;
    border-bottom: 1px solid #ECECEC;
    padding: 0 16px;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}

.header-new__mobile-city {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #393939;
    cursor: pointer;
    outline: none;
}

.header-new__mobile-city img {
    width: 14px;
    height: 18px;
    display: block;
}

.header-new__mobile-top-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-new__mobile-top-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #393939;
    text-decoration: none;
}

.header-new__mobile-top-btn img {
    width: 18px;
    height: 18px;
    display: block;
}

/* --------------------------------------------------------------------------
   Main Bar
   -------------------------------------------------------------------------- */
/* Always position:fixed (never toggled) — see header.php. Earlier this
   toggled position:relative <-> position:fixed on scroll, which reliably
   broke on real devices: Chrome would leave the element reporting correct
   position/z-index/visibility (confirmed via every JS inspection — rect,
   computed style, elementFromPoint/elementsFromPoint) while painting
   nothing on screen at all, needing an unrelated full layout pass (e.g. a
   resize) to recover. Only ever animating transform:translateY() instead —
   a pure compositor property, nothing to do with layout or paint — sidesteps
   that: the element has been on its own GPU layer since page load, so
   there's never a transition into "freshly fixed" for Chrome to get wrong.
   JS sets the translateY (0 once stuck, -.header-new__top's height before
   that, so it sits directly under the utility bar at the natural scroll
   position) and keeps .header-new__main-spacer sized to match, since this
   element is permanently out of document flow now, not just while stuck. */
.header-new__main {
    background-color: #FFFFFF;
    width: 100%;
    box-shadow: 0px 3px 10px 0px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 101;
    box-sizing: border-box;
}

.header-new__main.is-fixed {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 101 !important;
    box-shadow: 0px 3px 10px 0px rgba(0, 0, 0, 0.1) !important;
}

/* Keep scrollbar gutter stable when catalog menu locks body scroll */
html.html--block-scroll.menu-catalog-active {
    overflow-y: scroll !important;
}

/* State 1: Catalog menu active AND top utility bar was NOT visible (scrolled down) */
html.menu-catalog-active:not(.menu-catalog--top-visible) .header-new__main {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 101 !important;
    box-shadow: 0px 3px 10px 0px rgba(0, 0, 0, 0.1) !important;
}

html.menu-catalog-active:not(.menu-catalog--top-visible) .header-new__top,
html.menu-catalog-active:not(.menu-catalog--top-visible) .header-new__mobile-top {
    display: none !important;
}

/* State 2: Catalog menu active AND top utility bar WAS visible (at top of page) */
html.menu-catalog-active.menu-catalog--top-visible .header-new__top {
    display: flex !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 102 !important;
}

html.menu-catalog-active.menu-catalog--top-visible .header-new__main {
    position: fixed !important;
    top: 55px !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 101 !important;
    box-shadow: 0px 3px 10px 0px rgba(0, 0, 0, 0.1) !important;
}

@media (max-width: 1410px) and (min-width: 913px) {
    html.menu-catalog-active.menu-catalog--top-visible .header-new__top {
        height: 50px !important;
    }
    html.menu-catalog-active.menu-catalog--top-visible .header-new__main {
        top: 50px !important;
    }
}

@media (max-width: 912px) {
    html.menu-catalog-active.menu-catalog--top-visible .header-new__top {
        display: none !important;
    }
    html.menu-catalog-active.menu-catalog--top-visible .header-new__mobile-top {
        display: flex !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 102 !important;
    }
    html.menu-catalog-active.menu-catalog--top-visible .header-new__main {
        top: 34px !important;
    }
}

.header-new__main-spacer {
    display: none;
    height: 0;
}

.header-new__container {
    width: 100%;
    max-width: 1856px;
    margin: 0 auto;
    padding: 20px 16px 24px 16px;
    min-height: 96px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 32px;
    box-sizing: border-box;
}

@media (min-width: 575.98px) {
    .header-new__container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (min-width: 1199.98px) {
    .header-new__container {
        padding-left: 48px;
        padding-right: 48px;
    }
}

/* Logo */
.header-new__logo {
    width: 199px;
    height: 54px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.header-new__logo-wrap {
    display: inline-block;
    width: 100%;
    height: 100%;
}

.header-new__logo-wrap img {
    width: 199px;
    height: 55px;
    object-fit: contain;
    display: block;
}

/* --------------------------------------------------------------------------
   Middle Search Group (Catalog + Search Bar + Stocks)
   -------------------------------------------------------------------------- */
.header-new__search-group {
    display: flex;
    align-items: center;
    gap: 22px;
    flex: 0 1 840px;
    max-width: 840px;
}

/* Catalog Button */
.header-new__btn-catalog {
    height: 48px;
    background-color: #FFA400;
    border-radius: 8px;
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    text-decoration: none;
    outline: none;
    transition: background-color 0.15s ease, transform 0.1s ease;
}

.header-new__btn-catalog:hover {
    background-color: #e59300;
}

.header-new__btn-catalog:active {
    transform: scale(0.98);
}

.header-new__btn-catalog-icon {
    width: 24px;
    height: 24px;
    display: block;
    flex-shrink: 0;
}

.header-new__btn-catalog-text {
    font-family: 'Gilroy', sans-serif;
    font-weight: 800;
    font-size: 17px;
    line-height: 1;
    color: #FFFFFF;
    white-space: nowrap;
    padding-top: 2px;
}

/* Search Wrapper & Inputs */
.header-new__search-wrap {
    position: relative;
    flex: 1 1 auto;
    max-width: 500px;
    height: 48px;
    display: flex;
    align-items: center;
}

.header-new__search-wrap form,
.header-new__search-wrap .header__form,
.header-new__search-wrap .bx-searchtitle,
.header-new__search-wrap .bx-input-group,
.header-new__search-wrap #old-search-wrap,
.header-new__search-wrap #new-search-wrap {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
}

.header-new__search-wrap form,
.header-new__search-wrap .header__form,
.header-new__search-wrap .bx-searchtitle,
.header-new__search-wrap .bx-input-group {
    display: flex !important;
    align-items: center !important;
}

.header-new__search-wrap #new-search-wrap[style*="display: none"],
.header-new__search-wrap #new-search-wrap[style*="display:none"],
.header-new__search-wrap #old-search-wrap[style*="display: none"],
.header-new__search-wrap #old-search-wrap[style*="display:none"] {
    display: none !important;
}

.header-new__search-wrap input[type="text"],
.header-new__search-wrap input.input--fluid,
.header-new__search-wrap input.bx-form-control {
    width: 100% !important;
    height: 48px !important;
    border: 1px solid #DEE0E4 !important;
    border-radius: 8px !important;
    padding: 0 45px 0 12px !important;
    font-family: 'Open Sans', sans-serif !important;
    font-size: 17px !important;
    font-weight: 400 !important;
    color: #393939 !important;
    background-color: #FFFFFF !important;
    outline: none !important;
    box-sizing: border-box !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.header-new__search-wrap input:focus {
    border-color: #FFA400 !important;
    box-shadow: 0 0 0 2px rgba(255, 164, 0, 0.15) !important;
}

.header-new__search-wrap input::placeholder {
    color: #393939 !important;
    opacity: 1 !important;
    font-family: 'Open Sans', sans-serif !important;
    font-size: 17px !important;
}

.header-new__search-wrap .header__form-button__search,
.header-new__search-wrap .bx-input-group-btn {
    display: none !important;
}

.header-new__search-mic {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 26px;
    pointer-events: none;
    z-index: 5;
}

/* Stocks Button («Акции») */
.header-new__btn-stock {
    height: 48px;
    background-color: #3D3935;
    border-radius: 8px;
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
    transition: background-color 0.15s ease, transform 0.1s ease;
}

.header-new__btn-stock:hover {
    background-color: #2b2825;
}

.header-new__btn-stock:active {
    transform: scale(0.98);
}

.header-new__btn-stock-icon {
    width: 20px;
    height: 20px;
    display: block;
    flex-shrink: 0;
}

.header-new__btn-stock-text {
    font-family: 'Gilroy', sans-serif;
    font-weight: 800;
    font-size: 17px;
    line-height: 1;
    color: #FFFFFF;
    white-space: nowrap;
    padding-top: 2px;
}

/* Mobile stocks button hidden on desktop */
.header-new__btn-stock--mobile {
    display: none;
}

/* --------------------------------------------------------------------------
   Actions Group (Surveyor, Phone, Messengers, Cart)
   -------------------------------------------------------------------------- */
.header-new__actions-group {
    display: flex;
    align-items: center;
    gap: 32px;
    flex-shrink: 0;
    margin-left: auto;
}

/* Call Surveyor Button */
.header-new__surveyor-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    font-family: 'Open Sans', sans-serif;
    font-size: 17px;
    font-weight: 400;
    color: #3D3935;
    line-height: 1;
    outline: none;
    transition: color 0.15s ease;
    white-space: nowrap;
}

.header-new__surveyor-btn:hover {
    color: #FFA400;
}

.header-new__surveyor-icon {
    width: 22px;
    height: 22px;
    display: block;
    flex-shrink: 0;
    transform: scaleX(-1);
}

/* Phone */
.header-new__phone-link {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    font-family: 'Open Sans', sans-serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.4;
    color: #393939;
    transition: color 0.15s ease;
    white-space: nowrap;
}

.header-new__phone-link:hover {
    color: #FFA400;
}

.header-new__phone-icon {
    width: 24px;
    height: 24px;
    display: block;
    flex-shrink: 0;
}

.header-new__phone-text {
    white-space: nowrap;
}

/* Messengers */
.header-new__messengers {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header-new__messenger-item {
    width: 50px;
    height: 50px;
    border-radius: 10px !important;
    overflow: hidden !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.header-new__messenger-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.header-new__messenger-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Cart */
.header-new__cart {
    display: flex;
    align-items: center;
    position: relative;
}

.header-new__cart .header-cart-link {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 31px !important;
    max-height: none !important;
    margin: 0 !important;
    text-decoration: none !important;
}

.header-new__cart .header-cart-link svg {
    width: 36px !important;
    height: 31px !important;
    max-width: none !important;
    max-height: none !important;
    display: block !important;
}

.header-new__cart .header-cart-badge {
    position: absolute !important;
    right: -7px !important;
    bottom: -2px !important;
    background-color: #FFA400 !important;
    color: #3D3935 !important;
    font-family: 'Open Sans', sans-serif !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    min-width: 18px !important;
    height: 18px !important;
    padding: 0 4px !important;
    border-radius: 9px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2) !important;
    box-sizing: border-box !important;
}

.header-new__cart .header-cart-badge.is-empty {
    display: none !important;
}

/* Mobile-only wrapper in Row 1 */
.header-new__mobile-row-actions {
    display: none;
}

/* --------------------------------------------------------------------------
   Responsive Breakpoints
   -------------------------------------------------------------------------- */

/* 1. Large screens, right above the tablet breakpoint */
@media (max-width: 1759.98px) and (min-width: 1411px) {
    .header-new__top-container {
        padding-left: 48px;
        padding-right: 48px;
    }
    .header-new__container {
        padding: 20px 48px;
        justify-content: flex-start;
        gap: 16px;
    }
    .header-new__search-group {
        flex: 1 1 auto;
        width: auto;
        max-width: 780px;
        gap: 12px;
    }
    .header-new__search-wrap {
        flex: 1 1 auto;
        min-width: 160px;
    }
    .header-new__actions-group {
        gap: 14px;
    }
    .header-new__messenger-item {
        width: 38px;
        height: 38px;
        border-radius: 9px !important;
    }
}

/* 2. Tablet (913px - 1410px) -> Matches Figma 1024px */
@media (max-width: 1410px) and (min-width: 913px) {
    .header-new__top {
        height: 50px;
    }
    .header-new__top-container {
        padding: 0 20px;
    }
    .header-new__top-left,
    .header-new__top-right {
        gap: 24px;
    }
    .header-new__top-item {
        font-size: 16px;
    }

    /* Pinned to Figma 1024 values independently of the 1920px desktop rules above */
    .header-new__logo {
        height: 55px;
    }
    .header-new__logo-wrap img {
        height: 60px;
        margin-left: 0;
    }
    .header-new__phone-link,
    .header-new__surveyor-btn {
        gap: 5px;
    }
    .header-new__messengers {
        gap: 15px;
    }

    .header-new__container {
        padding: 12px 20px 20px 20px;
        flex-wrap: wrap;
        gap: 16px;
        min-height: auto;
    }

    /* Row 1: Logo & Actions Group */
    .header-new__logo {
        order: 1;
    }

    .header-new__actions-group {
        order: 2;
        gap: 32px;
        margin-right: 0;
    }

    .header-new__messenger-item {
        width: 38px;
        height: 38px;
        border-radius: 9px !important;
    }

    /* Row 2: Search Group (100% width) */
    .header-new__search-group {
        order: 3;
        flex: 1 1 auto;
        width: 100%;
        max-width: 100%;
        gap: 16px;
    }

    .header-new__btn-catalog {
        width: 134px;
        flex-shrink: 0;
    }

    .header-new__search-wrap {
        flex: 1 1 auto;
        max-width: none;
    }

    .header-new__btn-stock {
        width: 121px;
        flex-shrink: 0;
    }
}

/* 3. Mobile (<=912px) -> Matches Figma 390px */
@media (max-width: 912px) {
    /* Hero banner height already matches Figma on mobile — just the extra
       bottom padding on the section pushes everything after it (CTA button,
       category grid) lower than it should be. */
    .hero-new.section-new.section-new--first-section {
        padding-bottom: 0;
    }

    .header-new__top {
        display: none !important;
    }

    .header-new__mobile-top {
        display: flex !important;
        padding-left: 16px;
        padding-right: 16px;
    }

    .header-new__container {
        padding: 12px 16px;
        flex-wrap: wrap;
        gap: 12px;
        min-height: auto;
    }

    /* Row 1: Logo on left, mobile actions (Акции + Messengers) on right */
    .header-new__logo {
        order: 1;
        width: 124px;
        height: 36px;
    }

    .header-new__logo-wrap img {
        width: 124px;
        height: 36px;
    }

    .header-new__mobile-city img {
        display: none;
    }

    .header-new__mobile-row-actions {
        order: 2;
        display: flex !important;
        align-items: center;
        gap: 8px;
        margin-left: auto;
    }

    .header-new__btn-stock--mobile {
        display: inline-flex !important;
        height: 28px !important;
        width: 86px !important;
        padding: 0 8px !important;
        gap: 6px !important;
        border-radius: 8px !important;
    }

    .header-new__btn-stock--mobile .header-new__btn-stock-icon {
        width: 14px !important;
        height: 14px !important;
    }

    .header-new__btn-stock--mobile .header-new__btn-stock-text {
        font-size: 14px !important;
        padding-top: 1px !important;
    }

    .header-new__mobile-row-actions .header-new__messengers {
        display: flex;
        align-items: center;
        gap: 9px;
    }

    .header-new__mobile-row-actions .header-new__messenger-item {
        width: 28px !important;
        height: 28px !important;
        border-radius: 7px !important;
    }

    /* Hide desktop elements */
    .header-new__actions-group {
        display: none !important;
    }

    .header-new__btn-catalog {
        display: none !important;
    }

    .header-new__btn-stock--desktop {
        display: none !important;
    }

    /* Row 2: Full width search bar */
    .header-new__search-group {
        order: 3;
        width: 100%;
        max-width: 100%;
        margin: 0;
        gap: 0;
    }

    /* Only Row 1 (logo + Акции + messengers) stays pinned on mobile — JS
       (header.php) moves .header-new__search-group out of the fixed
       .header-new__main into normal document flow right below it, so it
       scrolls away like ordinary page content instead of staying pinned.
       Standalone, it loses .header-new__container's padding/gap, which
       this replaces; the white background keeps it visually part of the
       header rather than the page content starting right under it. */
    .header-new__search-group--detached {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 12px 16px;
        box-sizing: border-box;
        background-color: #FFFFFF;
    }

    .header-new__search-wrap {
        width: 100% !important;
        max-width: 100% !important;
        height: 36px !important;
    }

    .header-new__search-wrap input[type="text"],
    .header-new__search-wrap input.input--fluid,
    .header-new__search-wrap input.bx-form-control {
        height: 36px !important;
        font-size: 14px !important;
        padding: 0 36px 0 12px !important;
        border-radius: 8px !important;
    }

    .header-new__search-wrap input::placeholder {
        font-size: 14px !important;
    }

    .header-new__search-mic {
        width: 12px;
        height: 21px;
        right: 12px;
    }

    /* Hide header when search popup is active on mobile (<=912px) */
    .header-new:has(#title-search.active) .header-new__main,
    .header-new:has(#title-search.active) .header-new__mobile-top,
    .header-new:has(#title-search.active) .header-new__top,
    .header-new:has(#title-search.active) .header-new__main-spacer,
    .header-new:has(.popup--simple.active) .header-new__main,
    .header-new:has(.popup--simple.active) .header-new__mobile-top,
    .header-new:has(.popup--simple.active) .header-new__top,
    .header-new:has(.popup--simple.active) .header-new__main-spacer,
    html.search-popup-active .header-new__main,
    html.search-popup-active .header-new__mobile-top,
    html.search-popup-active .header-new__top,
    html.search-popup-active .header-new__main-spacer,
    body:has(> div.title-search-result[style*="display: block"]) .header-new__main,
    body:has(> div.title-search-result[style*="display: block"]) .header-new__mobile-top,
    body:has(> div.title-search-result[style*="display: block"]) .header-new__top,
    body:has(> div.title-search-result[style*="display: block"]) .header-new__main-spacer {
        display: none !important;
    }
}

/* --------------------------------------------------------------------------
   Category Cards Bar (Sub-header from Figma)
   -------------------------------------------------------------------------- */
.header-new__categories {
    background-color: transparent;
    padding: 16px 0 24px 0;
    width: 100%;
    position: relative;
    z-index: auto;
    overflow: hidden; /* Guaranteed no page-level horizontal scrollbar */
    box-sizing: border-box;
}

.header-new__categories-container {
    width: 100%;
    max-width: 1856px;
    margin: 0 auto;
    padding-left: 16px;
    padding-right: 16px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

@media (min-width: 575.98px) {
    .header-new__categories-container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (min-width: 1199.98px) {
    .header-new__categories-container {
        padding-left: 48px;
        padding-right: 48px;
    }
}

.header-new__category-card {
    height: 103px;
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0px 4px 14px 0px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 12px 14px 14px;
    text-decoration: none;
    box-sizing: border-box;
    flex: 0 0 auto;
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-new__category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0px 8px 22px 0px rgba(0, 0, 0, 0.12);
}

.header-new__category-img {
    width: 75px;
    height: 75px;
    border-radius: 12px;
    overflow: hidden;
    background-color: #F4F4F4;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-new__category-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.header-new__category-title {
    font-family: 'Open Sans', sans-serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.35;
    color: #3D3935;
    white-space: nowrap;
}

/* Medium & Standard Desktops (1411-1700px) tier removed — the fluid
   category-card rule below now covers this range continuously. */

/* Compact Desktops (1200-1399px) removed: that whole range is now inside
   the expanded tablet breakpoint (913-1410px) below, so this tier is dead —
   kept it from existing as unreachable leftover CSS. */

@media (min-width: 913px) {
    .header-new__categories-container {
        overflow-x: visible;
        justify-content: space-between;
        gap: 0;
    }
}

@media (min-width: 1920px) {
    .header-new__categories-container {
        max-width: 1856px;
        margin: 0 auto;
        overflow-x: visible;
        padding-left: 48px;
        padding-right: 48px;
        justify-content: space-between;
        gap: 0;
        box-sizing: border-box;
    }
    .header-new__category-card:nth-child(1) { width: 326px; }
    .header-new__category-card:nth-child(2) { width: 263px; }
    .header-new__category-card:nth-child(3) { width: 266px; }
    .header-new__category-card:nth-child(4) { width: 310px; }
    .header-new__category-card:nth-child(5) { width: 243px; }
    .header-new__category-card:nth-child(6) { width: 229px; }
}

@media (min-width: 913px) {
    .header-new__category-card {
        min-width: 0;
        flex: 0 0 auto;
        height: clamp(54.67px, calc(60px + 0.04799 * (100vw - 1024px)), 103.00px);
        padding: clamp(3.89px, calc(5px + 0.01004 * (100vw - 1024px)), 14.00px) clamp(8.628px, calc(9px + 0.00335 * (100vw - 1024px)), 12.000px) clamp(3.89px, calc(5px + 0.01004 * (100vw - 1024px)), 14.00px) clamp(3.885px, calc(5px + 0.01004 * (100vw - 1024px)), 14.000px);
        gap: clamp(9.26px, calc(10px + 0.00670 * (100vw - 1024px)), 16.00px);
        border-radius: clamp(7.50px, calc(8px + 0.00446 * (100vw - 1024px)), 12.00px);
    }
    .header-new__category-img {
        width: clamp(46.90px, calc(50px + 0.02790 * (100vw - 1024px)), 75.00px);
        height: clamp(46.90px, calc(50px + 0.02790 * (100vw - 1024px)), 75.00px);
        border-radius: clamp(7.50px, calc(8px + 0.00446 * (100vw - 1024px)), 12.00px);
    }
    .header-new__category-title {
        font-size: clamp(13.63px, calc(14px + 0.00335 * (100vw - 1024px)), 17.00px);
        line-height: 1.4;
        white-space: normal;
        word-break: normal;
    }
    .header-new__category-card:nth-child(1) { width: clamp(165.28px, calc(183px + 0.15960 * (100vw - 1024px)), 326.00px); }
    .header-new__category-card:nth-child(2) { width: clamp(124.76px, calc(140px + 0.13728 * (100vw - 1024px)), 263.00px); }
    .header-new__category-card:nth-child(3) { width: clamp(123.27px, calc(139px + 0.14174 * (100vw - 1024px)), 266.00px); }
    .header-new__category-card:nth-child(4) { width: clamp(145.91px, calc(164px + 0.16295 * (100vw - 1024px)), 310.00px); }
    .header-new__category-card:nth-child(5) { width: clamp(155.34px, calc(165px + 0.08705 * (100vw - 1024px)), 243.00px); }
    .header-new__category-card:nth-child(6) { width: clamp(136.84px, calc(147px + 0.09152 * (100vw - 1024px)), 229.00px); }
}

@media (max-width: 912px) {
    .header-new__categories {
        padding: 12px 0 16px 0;
    }
    /* Figma 390w: 2-column grid, all 6 cards, no horizontal scroll */
    .header-new__categories-container {
        overflow-x: visible;
        flex-wrap: wrap;
        padding: 0 16px;
        gap: 8px;
    }
    .header-new__category-card {
        flex: 0 0 calc(50% - 4px);
        width: calc(50% - 4px);
        min-width: 0;
        height: 60px;
        padding: 5px 9px 5px 5px;
        gap: 10px;
        border-radius: 8px;
    }
    .header-new__category-img {
        width: 50px;
        height: 50px;
        border-radius: 8px;
    }
    .header-new__category-title {
        font-size: 14px;
        line-height: 1.4;
        white-space: normal;
        word-break: normal;
    }
}

@media (min-width: 575.98px) and (max-width: 912px) {
    .header-new__categories-container {
        padding-left: 20px;
        padding-right: 20px;
    }
}
