/* Sleepress search-first header draft: original hero/layout stays in place.
   The navigation row is absolutely overlaid over the hero, never in page flow. */
.sr-header {
    position: relative;
    z-index: 90;
    overflow: visible !important;
}
.sr-header .sr-header__container {
    width: min(1380px, calc(100% - 64px)) !important;
    max-width: 1380px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    overflow: visible;
}
.sr-header .sr-header__body {
    position: relative;
    display: grid !important;
    grid-template-columns: clamp(170px, 14vw, 220px) minmax(0,1fr) max-content;
    grid-template-areas: "brand discovery socials";
    align-items: center;
    justify-content: stretch;
    column-gap: clamp(17px, 2vw, 30px);
    row-gap: 0;
    box-sizing: border-box;
    width: 100%;
    min-height: 88px !important;
    padding: 9px 0 !important;
    margin: 0;
    overflow: visible;
}
.sr-header .sr-brand {
    grid-area: brand;
    order: initial;
    margin: 0;
    min-width: 0;
}
.sr-header .sr-brand__mark {
    width: min(100%, 216px);
}
.sr-header .sr-header__phone,
.sr-header .sr-nav--legacy {
    display: none !important;
}
.sr-header .sr-header__social.sr-topline__social {
    grid-area: socials;
    order: initial;
    margin: 0;
    justify-content: flex-end;
}
.sr-header__discovery {
    grid-area: discovery;
    display: grid;
    grid-template-columns: 116px minmax(0,1fr);
    align-items: center;
    gap: clamp(16px,1.85vw,28px);
    min-width: 0;
    width: 100%;
}
.sr-header__catalog {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 116px;
    height: 56px;
    border-radius: 9px;
    background: #68745D;
    color: #fff !important;
    text-decoration: none;
    font: 700 17px/1.2 "Roboto", Arial, sans-serif;
    transition: background-color .18s ease;
}
.sr-header__catalog:hover,
.sr-header__catalog:focus-visible {
    background: #505d48;
    color: #fff !important;
}
.sr-header__catalog-bars {
    display: none;
}
.sr-quick-search {
    position: relative;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    min-width: 0;
    width: 100%;
    height: 56px;
    margin: 0;
    padding: 0 10px 0 12px;
    border: 1px solid #111;
    border-radius: 10px;
    background: #fff;
    color: #111;
}
.sr-quick-search__sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.sr-quick-search__submit {
    display: inline-grid;
    flex: 0 0 32px;
    align-items: center;
    justify-content: center;
    border: 0;
    margin: 0 7px 0 0;
    padding: 0;
    background: transparent;
    color: rgba(0,0,0,.5);
    cursor: pointer;
}
.sr-quick-search__submit svg { display: block; }
.sr-quick-search__input,
.sr-quick-search__input[type="search"] {
    flex: 1 1 auto;
    box-sizing: border-box;
    display: block;
    min-width: 0;
    width: 100%;
    height: 100%;
    margin: 0 !important;
    padding: 0 8px 0 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    color: #141414 !important;
    font: 400 clamp(14px, 1.2vw, 18px)/1.25 "Roboto", Arial, sans-serif !important;
    -webkit-appearance: none;
    appearance: none;
}
.sr-quick-search__input::placeholder {
    color: rgba(0,0,0,.5) !important;
    opacity: 1;
}
.sr-quick-search__heart {
    display: inline-grid;
    place-items: center;
    flex: 0 0 38px;
    width: 38px;
    height: 44px;
    margin: 0 0 0 3px;
    color: #111 !important;
}
.sr-quick-search__heart svg { display: block; width: 30px; height: 30px; }
.sr-quick-search__heart:hover { color: #68745D !important; }
/* Desktop sale shortcut shares one link for its label and flame. */
.sr-quick-search__sale { display: none; }
@media (min-width: 901px) {
    .sr-quick-search__sale {
        display: inline-flex;
        flex: 0 0 auto;
        align-items: center;
        justify-content: center;
        gap: 8px;
        height: 44px;
        margin: 0 5px 0 4px;
        color: #111 !important;
        text-decoration: none;
        white-space: nowrap;
        font: 400 clamp(13px, 1.05vw, 16px)/1.25 "Roboto", Arial, sans-serif;
    }
    .sr-quick-search__sale-label { opacity: .25; }
    .sr-quick-search__sale-flame { display: block; flex: none; width: 26px; height: 34px; }
    .sr-quick-search__sale:focus-visible { outline: 2px solid #68745D; outline-offset: 3px; }
    .sr-header .sr-search-nav .sr-search-nav__sale { display: none !important; }
}
.sr-quick-search:focus-within { border-color: #171a16; }
.sr-quick-search__suggestions[hidden] { display: none !important; }
.sr-quick-search__suggestions {
    position: absolute;
    top: calc(100% + 7px);
    left: 0;
    right: 0;
    z-index: 300;
    box-sizing: border-box;
    max-height: min(60vh, 440px);
    overflow-y: auto;
    background: #fff;
    border: 1px solid #d9deda;
    border-radius: 9px;
    box-shadow: 0 16px 38px rgba(0,0,0,.14);
    padding: 5px 0;
}
.sr-quick-search__suggestion {
    display: grid;
    grid-template-columns: 52px minmax(0,1fr);
    gap: 12px;
    align-items: center;
    min-height: 62px;
    padding: 7px 12px;
    text-decoration: none;
    color: #171a16 !important;
}
.sr-quick-search__suggestion:hover,
.sr-quick-search__suggestion:focus-visible,
.sr-quick-search__suggestion[data-active="true"] {
    background: #edf0eb;
}
.sr-quick-search__suggestion img {
    width: 52px;
    height: 52px;
    object-fit: cover;
    display: block;
    background: #f5f5f5;
}
.sr-quick-search__suggestion-name {
    display: block;
    font: 700 15px/1.35 "Roboto", Arial, sans-serif;
    color: #151715;
}
.sr-quick-search__suggestion-price {
    display: block;
    padding-top: 3px;
    color: #68745D;
    font: 400 13px/1.3 "Roboto", Arial, sans-serif;
}
.sr-quick-search__message {
    display: block;
    margin: 0;
    padding: 16px 14px;
    color: #525952;
    font: 400 14px/1.4 "Roboto", Arial, sans-serif;
}
.sr-quick-search__all {
    display: block;
    padding: 12px 14px;
    border-top: 1px solid #e6e8e4;
    text-align: center;
    color: #68745D !important;
    font: 700 14px/1.4 "Roboto", Arial, sans-serif;
    text-decoration: none;
}
.sr-quick-search__all:hover { background: #f1f3ef; }

/* The new menu rests on top of the hero rather than shifting it downward. */
.sr-header .sr-search-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 12;
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: clamp(8px,1.2vw,22px);
    box-sizing: border-box;
    min-width: 0;
    width: 100%;
    height: 83px;
    margin: 0;
    padding: 14px 0 0;
    overflow: visible;
    background: linear-gradient(to bottom, #fff 0%, rgba(255,255,255,.94) 30%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}
.sr-header .sr-search-nav a {
    display: inline-block;
    flex: 0 0 auto;
    white-space: nowrap;
    color: #111 !important;
    text-decoration: none;
    font: 700 clamp(12px,1.12vw,18px)/1.25 "Roboto", Arial, sans-serif;
    letter-spacing: 0;
    pointer-events: auto;
}
.sr-header .sr-search-nav a:hover,
.sr-header .sr-search-nav a:focus-visible { color: #68745D !important; }
.sr-search-nav__sale { display: inline-block !important; }
.sr-header__catalog:focus-visible,
.sr-quick-search__heart:focus-visible,
.sr-quick-search__submit:focus-visible,
.sr-header .sr-search-nav a:focus-visible {
    outline: 2px solid #68745D;
    outline-offset: 3px;
}

/* Four socially branded icons keep their original positions and dimensions. */
@media (min-width: 901px) and (max-width: 1230px) {
    .sr-header .sr-header__body {
        grid-template-columns: 175px minmax(0,1fr) max-content;
        column-gap: 16px;
    }
    .sr-header .sr-brand__mark { width: 174px; }
    .sr-header__discovery { gap: 14px; grid-template-columns: 100px minmax(0,1fr); }
    .sr-header__catalog { width: 100px; }
    .sr-header .sr-search-nav {
        gap: 16px;
        overflow-x: auto;
        scrollbar-width: none;
    }
}
@media (max-width: 900px) {
    .sr-header .sr-header__container {
        width: calc(100% - 30px) !important;
    }
    .sr-header .sr-header__body {
        display: grid !important;
        grid-template-areas:
            "brand socials"
            "discovery discovery";
        grid-template-columns: minmax(0,1fr) max-content;
        grid-template-rows: auto auto;
        justify-content: stretch;
        align-items: center;
        column-gap: 8px;
        row-gap: 12px;
        min-height: 0 !important;
        margin: 0;
        padding: 11px 0 10px !important;
    }
    .sr-header .sr-brand {
        grid-area: brand;
        justify-self: start;
        margin: 0 !important;
    }
    .sr-header .sr-brand__mark {
        width: clamp(118px, 37vw, 165px);
    }
    .sr-header .sr-header__social.sr-topline__social {
        grid-area: socials;
        justify-self: end;
        margin: 0 !important;
    }
    .sr-header__discovery {
        grid-area: discovery;
        grid-template-columns: 47px minmax(0,1fr);
        gap: 12px;
        width: 100%;
        min-width: 0;
    }
    .sr-header__catalog {
        width: 47px;
        height: 47px;
        border-radius: 9px;
    }
    .sr-header__catalog-label { display: none; }
    .sr-header__catalog-bars { display: block; width: 29px; height: 29px; }
    .sr-quick-search {
        height: 47px;
        padding: 0 6px 0 10px;
        border-radius: 9px;
    }
    .sr-quick-search__submit { flex-basis: 24px; margin-right: 5px; }
    .sr-quick-search__submit svg { width: 23px; height: 23px; }
    .sr-quick-search__input,
    .sr-quick-search__input[type="search"] { font-size: 14px !important; }
    .sr-quick-search__heart {
        flex-basis: 32px;
        width: 32px;
        height: 41px;
        margin: 0;
    }
    .sr-quick-search__heart svg {
        width: 29px;
        height: 29px;
        fill: #fff;
        stroke: #111;
    }
    .sr-header .sr-search-nav {
        top: calc(100% - 1px);
        justify-content: space-between;
        align-items: flex-start;
        gap: 6px;
        height: 68px;
        padding: 13px 0 0;
        background: transparent;
        isolation: isolate;
        overflow: visible;
    }
    .sr-header .sr-search-nav::before {
        content: "";
        position: absolute;
        inset: 0 -15px auto;
        height: 140px;
        z-index: -1;
        background: linear-gradient(to bottom, #fff 0%, rgba(255,255,255,.96) 18%, rgba(255,255,255,.78) 38%, rgba(255,255,255,.45) 60%, rgba(255,255,255,.15) 80%, rgba(255,255,255,0) 100%);
        pointer-events: none;
    }
    .sr-header .sr-search-nav a {
        flex-shrink: 1;
        white-space: normal;
        font-size: 17px;
        letter-spacing: -.025em;
        line-height: 1.3;
    }
    @media (max-width: 600px) {
        .sr-header .sr-search-nav a { font-size: 14px; }
    }
    .sr-header .sr-search-nav .sr-search-nav__category { display: none !important; }
    .sr-header .sr-search-nav .sr-search-nav__sale { display: inline-block !important; }
    .sr-quick-search__suggestions {
        max-height: min(55vh, 360px);
        border-radius: 8px;
    }
}
@media (max-width: 365px) {
    .sr-header .sr-brand__mark { width: 120px; }
    .sr-header .sr-header__social .sr-social-link {
        flex: 0 0 28px;
        width: 28px;
        height: 28px;
    }
    .sr-header .sr-header__social.sr-topline__social { gap: 5px; }
    .sr-header .sr-search-nav a { font-size: 14px; }
    .sr-header__discovery { gap: 9px; grid-template-columns: 44px minmax(0,1fr); }
    .sr-header__catalog { width: 44px; height: 44px; }
}

/* Product archives and product pages use a compact white gap below the navigation. */
.sr-header:has(+ .page > :is(.catalog__section, .product__section)) .sr-search-nav {
    background: transparent;
}
.sr-header:has(+ .page > :is(.catalog__section, .product__section)) .sr-search-nav::before {
    display: none;
}
.sr-header + .page:has(> :is(.catalog__section, .product__section)) {
    padding-top: 48px;
}
@media (max-width: 900px) {
    .sr-header + .page:has(> :is(.catalog__section, .product__section)) {
        padding-top: 25px;
    }
}
@media (max-width: 365px) {
    .sr-header + .page:has(> :is(.catalog__section, .product__section)) {
        padding-top: 44px;
    }
}

/* Product search result page; no structural changes to catalog/hero. */
.sr-product-search-results {
    box-sizing: border-box;
    padding: 92px 0 85px;
    min-height: 64vh;
}
.sr-product-search-results__container {
    width: min(1340px,calc(100% - 64px));
    margin: 0 auto;
}
.sr-product-search-results h1 {
    margin: 0 0 28px;
    color: #171a16;
    font: 700 clamp(32px,3.8vw,54px)/1.15 "Roboto",Arial,sans-serif;
}
.sr-product-search-results__grid {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 22px;
}
.sr-product-search-results__item {
    display: block;
    min-width: 0;
    color: #171a16;
    text-decoration: none;
}
.sr-product-search-results__item img {
    display: block;
    aspect-ratio: 1.14;
    width: 100%;
    object-fit: cover;
    background: #f3f3f3;
}
.sr-product-search-results__item-name {
    display: block;
    margin: 12px 0 7px;
    font: 700 20px/1.35 "Roboto",Arial,sans-serif;
}
.sr-product-search-results__item-price {
    color: #68745D;
    font: 400 16px/1.4 "Roboto",Arial,sans-serif;
}
.sr-product-search-results__pagination { margin-top: 30px; }
.sr-product-search-results__pagination a,
.sr-product-search-results__pagination span { display: inline-block; margin: 0 8px 0 0; color: #171a16; }
.sr-blank-page {
    box-sizing: border-box;
    padding: 110px 0 100px;
    min-height: 57vh;
}
.sr-blank-page__container {
    width: min(1340px,calc(100% - 64px));
    margin: 0 auto;
}
.sr-blank-page h1 {
    margin: 0;
    color: #171a16;
    font: 700 clamp(36px,4vw,56px)/1.1 "Roboto",Arial,sans-serif;
}
@media (max-width: 900px) {
    .sr-product-search-results { padding: 96px 0 60px; }
    .sr-product-search-results__container,
    .sr-blank-page__container { width: calc(100% - 30px); }
    .sr-product-search-results__grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap: 16px; }
    .sr-product-search-results__item-name { font-size: 16px; }
}
@media (max-width: 600px) {
    .sr-product-search-results__grid { grid-template-columns: minmax(0,1fr); gap: 10px; }
    .sr-product-search-results__item-name { font-size: 14px; }
    .sr-product-search-results__item-price { font-size: 12px; }
}
