
:root {
    --amazon-orange: #ff8f00;
    --amazon-deep: #ff6b00;
    --amazon-sub: #ffa04f;
    --amazon-white: #fff;
    --amazon-text: #1a1a1a;
    --amazon-muted: #424242;
    --amazon-border: rgba(0, 0, 0, 0.08);
    --font-heading: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    --font-body: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;

    /* Global breakpoints */
    --bp-xs: 480px; /* phone */
    --bp-sm: 640px; /* big phone */
    --bp-md: 768px; /* tablet */
    --bp-lg: 992px; /* desktop */
    --bp-xl: 1200px; /* wide desktop */
}

.lg-amazon-header {
    font-family: var(--font-heading);
    color: var(--amazon-white);
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    width: 100vw;
}

.lg-amazon-header__primary {
    background: linear-gradient(90deg, var(--amazon-deep), var(--amazon-orange));
    padding: 0.75rem clamp(0.75rem, 4vw, 2rem);
}

.lg-amazon-header__topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    flex-wrap: wrap;
}

.lg-amazon-header__secondary {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-top: 0.5rem;
}

.lg-amazon-header__secondary .lg-amazon-header__search {
    flex: 1 1 auto;
    order: initial;
}

.lg-amazon-header__secondary .lg-amazon-header__language {
    display: inline-flex;
    flex: 0 0 auto;
}

.lg-amazon-header__controls {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.lg-amazon-header__brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.lg-amazon-header__toggle {
    border: none;
    background: transparent;
    color: var(--amazon-white);
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 0.35rem;
    cursor: pointer;
}

.lg-amazon-header__toggle span {
    width: 20px;
    height: 2px;
    background: currentColor;
    display: block;
    border-radius: 2px;
}

.lg-amazon-header__logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--amazon-white);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.lg-amazon-header__logo img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.lg-amazon-header__logo-text {
    display: inline-flex;
    align-items: center;
    gap: 0.18em;
    white-space: nowrap;
}

.lg-amazon-header__logo-text small {
    text-transform: lowercase;
    letter-spacing: 0.05em;
    position: relative;
    top: 1px;
}

.lg-amazon-header__search {
    flex: 0 1 420px;
    max-width: 480px;
    display: flex;
    align-items: stretch;
    background: var(--amazon-white);
    border-radius: 999px;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.lg-amazon-header__search input {
    flex: 1;
    border: none;
    padding: 0.65rem 1.1rem;
    font-size: 1rem;
    color: var(--amazon-text);
    outline: none;
}

.lg-amazon-header__search button {
    border: none;
    background: transparent;
    width: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--amazon-muted);
    cursor: pointer;
    gap: 0.35rem;
}

.lg-amazon-header__search button svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
}

.lg-amazon-header__search-close {
    display: none !important;
    pointer-events: none;
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.06);
    color: var(--amazon-text);
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    gap: 0.35rem;
    padding: 0 0.5rem;
    align-items: center;
    font-weight: 700;
}

.lg-amazon-header__language {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    background: rgba(0, 0, 0, 0.18);
    color: var(--amazon-white);
    padding: 0.45rem 1rem;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 0.05em;
    min-height: 42px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
}

.lg-amazon-header__language-flag {
    display: inline-flex;
    width: 26px;
    height: 18px;
    border-radius: 5px;
    overflow: hidden;
}

.lg-amazon-header__language-flag svg {
    width: 100%;
    height: 100%;
    display: block;
}

.lg-amazon-header__language svg {
    width: 32px;
    height: 16px;
}

.lg-amazon-header__language-text {
    font-size: 0.9rem;
    text-transform: uppercase;
}

.lg-amazon-header__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}

.lg-amazon-header__action {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--amazon-white);
    font-size: 0.8rem;
    text-align: right;
}

.lg-amazon-header__action strong {
    font-size: 0.95rem;
}

.lg-amazon-header__cart {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    text-decoration: none;
    color: var(--amazon-white);
    font-weight: 600;
}

.lg-amazon-header__cart svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
}

.lg-amazon-header__nav-row {
    background: linear-gradient(90deg, var(--amazon-deep), var(--amazon-orange));
    padding: 0.4rem clamp(0.75rem, 4vw, 2rem);
    display: flex;
    gap: 1rem;
    align-items: center;
    color: var(--amazon-white);
    font-weight: 600;
}

.lg-amazon-header__nav-all {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(0, 0, 0, 0.15);
    border: none;
    color: inherit;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    cursor: pointer;
}

.lg-amazon-header__nav-all svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.lg-amazon-header__nav {
    display: flex;
    gap: 1rem;
    flex-wrap: nowrap;
    font-size: 0.92rem;
    align-items: center;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.lg-amazon-header__nav::-webkit-scrollbar {
    display: none;
}

.lg-amazon-header__nav a {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
    padding: 0.2rem 0;
    display: inline-flex;
    align-items: center;
    scroll-snap-align: start;
    white-space: nowrap;
}

.lg-amazon-nav-item {
    position: relative;
}

.lg-amazon-nav-link {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.lg-amazon-nav-link::after {
    content: '';
    width: 0.35rem;
    height: 0.35rem;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    opacity: 0.75;
}

.lg-amazon-mega {
    position: absolute;
    left: 50%;
    top: calc(100% + 0.5rem);
    transform: translate(-50%, 10px);
    width: min(920px, calc(100vw - 2rem));
    background: #ffffff;
    color: var(--amazon-text);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 25px 65px rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 1500;
}

.lg-amazon-nav-item:hover .lg-amazon-mega,
.lg-amazon-nav-item:focus-within .lg-amazon-mega,
.lg-amazon-nav-item.is-open .lg-amazon-mega {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.lg-amazon-mega__column {
    flex: 1 1 0;
    min-width: 180px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.lg-amazon-mega__heading {
    margin: 0;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b7280;
}

.lg-amazon-mega ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.35rem;
}

.lg-amazon-mega ul a {
    color: var(--amazon-text);
    text-decoration: none;
    font-weight: 600;
}

.lg-amazon-mega ul a:hover {
    color: var(--amazon-deep);
}

.lg-amazon-mega {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}
}

.lg-amazon-header__nav a:hover {
    text-decoration: underline;
}

body.lg-amazon-menu-open {
    overflow: hidden;
}

.lg-amazon-menu {
    position: fixed;
    inset: 0;
    z-index: 2000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.lg-amazon-menu.is-open {
    pointer-events: auto;
    opacity: 1;
}

.lg-amazon-menu__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.lg-amazon-menu.is-open .lg-amazon-menu__backdrop {
    opacity: 1;
}

.lg-amazon-menu__panel {
    position: absolute;
    top: 0;
    left: 0;
    width: min(420px, 90vw);
    height: 100%;
    background: #ffffff;
    box-shadow: 6px 0 25px rgba(0, 0, 0, 0.15);
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    display: flex;
    flex-direction: column;
}

.lg-amazon-menu.is-open .lg-amazon-menu__panel {
    transform: translateX(0);
}

.lg-amazon-menu__hero {
    background: #1b2433;
    color: #ffffff;
    padding: 1.75rem 1.5rem 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    position: relative;
}

.lg-amazon-menu__hero p {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.75rem;
    margin: 0;
    opacity: 0.7;
}

.lg-amazon-menu__hero strong {
    font-size: 1.6rem;
    letter-spacing: 0.05em;
    font-weight: 700;
}

.lg-amazon-menu__signin {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
}

.lg-amazon-menu__signin svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.lg-amazon-menu__close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    border: none;
    background: transparent;
    color: inherit;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    cursor: pointer;
}

.lg-amazon-menu__close span {
    position: absolute;
    width: 20px;
    height: 2px;
    background: currentColor;
}

.lg-amazon-menu__close span:first-child {
    transform: rotate(45deg);
}

.lg-amazon-menu__close span:last-child {
    transform: rotate(-45deg);
}

.lg-amazon-menu__scroll {
    flex: 1;
    overflow-y: auto;
    padding: 0 0 2rem;
}

.lg-amazon-menu__section {
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.lg-amazon-menu__accordion + .lg-amazon-menu__accordion {
    border-top: 1px solid #f0f0f0;
}

.lg-amazon-menu__accordion-trigger {
    width: 100%;
    border: none;
    background: transparent;
    padding: 1.2rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    color: var(--amazon-text);
}

.lg-amazon-menu__accordion-trigger svg {
    width: 18px;
    height: 18px;
    transition: transform 0.2s ease;
}

.lg-amazon-menu__accordion-trigger[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.lg-amazon-menu__accordion-panel {
    padding: 0 1.5rem 1.25rem;
    border-top: 1px solid #f3f4f6;
}

.lg-amazon-menu__panel-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
}

.lg-amazon-menu__panel-columns p {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9ca3af;
    margin: 0 0 0.35rem;
}

.lg-amazon-menu__panel-columns ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.35rem;
}

.lg-amazon-menu__panel-columns a {
    text-decoration: none;
    color: var(--amazon-text);
    font-weight: 600;
}

.lg-amazon-menu__panel-columns a:hover {
    color: var(--amazon-deep);
}

.lg-amazon-menu__home {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--amazon-text);
    text-decoration: none;
}

.lg-amazon-menu__home svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.4;
}

.lg-amazon-menu__heading {
    font-weight: 700;
    color: var(--amazon-text);
    margin: 0 0 0.65rem;
}

.lg-amazon-menu__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.5rem;
}

.lg-amazon-menu__list a,
.lg-amazon-menu__see-all {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    color: var(--amazon-text);
    text-decoration: none;
    font-size: 0.95rem;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
}

.lg-amazon-menu__list a svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
}

.lg-amazon-menu__see-all svg {
    width: 18px;
    height: 18px;
}

.lg-amazon-menu__cta {
    margin: 1.5rem 1.5rem 1rem;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--amazon-deep), var(--amazon-orange));
    color: #fff;
    border-radius: 999px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    box-shadow: rgba(255, 139, 0, 0.4) 0 15px 30px;
}

.lg-amazon-menu__link {
    display: block;
    padding: 0.95rem 1.5rem;
    text-decoration: none;
    color: var(--amazon-text);
    font-weight: 600;
    border-top: 1px solid #f3f4f6;
}

.lg-amazon-menu__bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: #fff8ef;
}

.lg-amazon-menu__bottom-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--amazon-text);
    font-weight: 600;
}

.lg-amazon-menu__bottom-link svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.lg-amazon-menu__bottom-link div {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.lg-amazon-menu__bottom-link strong {
    font-size: 1rem;
}

.lg-amazon-menu__bottom-hours {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.9rem;
    color: var(--amazon-text);
}

@media (max-width: 480px) {
    .lg-amazon-menu__panel {
        width: min(340px, 92vw);
    }
}

.lg-amazon-header__flag img {
    border-radius: 2px;
}

.lg-amazon-header__sub {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    background: var(--amazon-sub);
    padding: 0.5rem clamp(0.75rem, 4vw, 2rem);
    color: var(--amazon-text);
    font-weight: 600;
}

.lg-amazon-header__location {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--amazon-text);
    font-size: 0.85rem;
    flex: 1 1 auto;
    min-width: 0;
}

.lg-amazon-header__location svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
}

.lg-amazon-header__location strong {
    display: block;
    font-size: 1rem;
    color: var(--amazon-text);
}

.lg-amazon-header__location span {
    display: block;
    font-size: 0.75rem;
    color: rgba(0, 0, 0, 0.65);
    text-transform: none;
}

.lg-amazon-header__chevron {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
}

.lg-amazon-header__sub-search {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.3);
    color: var(--amazon-text);
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: transform 120ms ease, box-shadow 160ms ease, background 160ms ease;
    cursor: pointer;
}

.lg-amazon-header__sub-search svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.7;
}

.lg-amazon-header__sub-search:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.4);
}

.lg-amazon-header__sub-search:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.lg-amazon-header__call {
    position: relative;
}

.lg-amazon-header__call-caret {
    width: 14px;
    height: 14px;
}

.lg-amazon-header__call-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    display: flex;
    flex-direction: column;
    background: #fff;
    color: var(--amazon-text);
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
    min-width: 200px;
    overflow: hidden;
    z-index: 10;
}

.lg-amazon-header__call-menu[hidden] {
    display: none;
}

.lg-amazon-header__call-menu a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: inherit;
    font-weight: 700;
}

.lg-amazon-header__call-menu a svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.6;
}

.lg-amazon-header__call-menu a + a {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.lg-amazon-header__call-menu a:hover {
    background: rgba(0, 0, 0, 0.03);
}

@media (min-width: 641px) {
    .lg-amazon-header__primary {
        position: relative;
    }

    .lg-amazon-header__topline {
        flex-wrap: nowrap;
        align-items: center;
        gap: 1.25rem;
        padding-right: 140px; /* space for cart control on the right */
    }

    .lg-amazon-header__brand {
        display: inline-flex;
        align-items: center;
        gap: 1rem;
        flex: 1 1 320px;
    }

    .lg-amazon-header__logo {
        order: 1;
    }

    .lg-amazon-header__controls {
        position: absolute;
        right: clamp(0.75rem, 4vw, 2rem);
        top: 50%;
        transform: translateY(-50%);
        order: initial;
        margin-left: 0;
        flex: 0 0 auto;
        gap: 0.85rem;
    }

    .lg-amazon-header__actions {
        gap: 0.85rem;
    }

.lg-amazon-header__search {
    flex: 1 1 clamp(280px, 42vw, 600px);
    max-width: clamp(320px, 55vw, 640px);
    margin: 0 0.75rem;
}

    .lg-amazon-header__language {
        order: 2;
        margin-left: 1rem;
        display: inline-flex;
    }

    .lg-amazon-header__nav-row {
        align-items: center;
    }

    .lg-amazon-header__nav {
        flex: 1;
        justify-content: flex-start;
        gap: 1.25rem;
    }

    .lg-amazon-header__sub {
        justify-content: flex-end;
        gap: 1rem;
    }

    .lg-amazon-header__location {
        flex: 0 0 auto;
    }
}

@media (max-width: 640px) {
    .lg-amazon-header__primary {
        padding: 1rem clamp(0.75rem, 4vw, 1.5rem);
    }

    .lg-amazon-header__toggle {
        display: flex;
    }

    .lg-amazon-header__topline {
        gap: 0.75rem;
    }

    .lg-amazon-header__controls {
        gap: 0.5rem;
    }

    .lg-amazon-header__search {
        flex: 1 1 100%;
        border-radius: 32px;
        order: 2;
    }

    .lg-amazon-header__nav-row {
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .lg-amazon-header__nav-row::-webkit-scrollbar {
        display: none;
    }

    .lg-amazon-header__flag {
        margin-left: 0;
    }

    .lg-amazon-nav-link::after {
        display: none;
    }

    .lg-amazon-nav-item .lg-amazon-mega {
        display: none !important;
    }

    .lg-amazon-header__language {
        display: none;
    }

    .lg-amazon-header__toggle {
        margin-left: auto;
    }
}

@media (max-width: 850px) and (min-width: 641px) {
    .lg-amazon-header__search {
        flex: 0 0 auto;
        width: 48px;
        min-width: 48px;
        padding: 0;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
        transition: width 180ms ease, border-radius 180ms ease, box-shadow 180ms ease;
    }

    .lg-amazon-header__search input {
        width: 0;
        padding: 0;
        opacity: 0;
        pointer-events: none;
        transition: opacity 160ms ease, width 0s linear 160ms, padding 0s linear 160ms;
    }

    .lg-amazon-header__search button {
        width: 44px;
        min-width: 44px;
        height: 42px;
        border-radius: 10px;
        background: #fff;
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    }

    .lg-amazon-header__search--open {
        flex: 1 1 clamp(240px, 50vw, 520px);
        width: auto;
        min-width: clamp(240px, 50vw, 520px);
        border-radius: 999px;
        box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
    }

    .lg-amazon-header__search--open input {
        width: 100%;
        padding: 0.65rem 1.1rem;
        opacity: 1;
        pointer-events: auto;
        transition: opacity 140ms ease;
    }

    .lg-amazon-header__search--open button {
        width: 48px;
        min-width: 48px;
        height: 42px;
        border-radius: 12px;
        box-shadow: none;
    }
}

@media (max-width: 991px) and (min-width: 641px) {
    body.lg-amazon-search-open {
        overflow: hidden;
    }

    body.lg-amazon-search-open::before {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.55);
        backdrop-filter: blur(3px);
        z-index: 2990;
    }

    body.lg-amazon-search-open .lg-amazon-header__search {
        position: fixed;
        top: 8%;
        left: 50%;
        transform: translateX(-50%);
        z-index: 3000;
        margin: 0;
        padding: 1rem 1.1rem;
        width: min(720px, 92vw);
        height: auto;
        border-radius: 18px;
        background: #fff;
        box-shadow: 0 20px 48px rgba(0, 0, 0, 0.25);
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        overflow: visible;
    }

    body.lg-amazon-search-open .lg-amazon-header__search input {
        width: 100%;
        padding: 0.95rem 1.2rem;
        opacity: 1;
        pointer-events: auto;
        font-size: 1.05rem;
    }

    body.lg-amazon-search-open .lg-amazon-header__search button[type='submit'] {
        width: auto;
        min-width: 110px;
        height: 48px;
        padding: 0 1rem;
        border-radius: 12px;
        box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
        background: #f7f7f7;
        color: var(--amazon-text);
        gap: 0.5rem;
    }

    body.lg-amazon-search-open .lg-amazon-header__search-label {
        display: inline;
        color: var(--amazon-text);
        opacity: 1;
    }

    body.lg-amazon-search-open .lg-amazon-header__search-close {
        display: inline-flex !important;
        pointer-events: auto;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: -2.4rem;
        left: 50%;
        transform: translateX(-50%);
        width: auto;
        height: 36px;
        background: rgba(200, 40, 40, 0.9);
        color: #fff;
        padding: 0.25rem 0.75rem;
        border-radius: 12px;
        font-size: 0.9rem;
        box-shadow: none;
        border: none;
        z-index: 5;
    }
}

@media (max-width: 900px) {
    .lg-amazon-header__topline {
        gap: 0.9rem;
    }

    .lg-amazon-header__search {
        flex: 1 1 clamp(280px, 50vw, 480px);
        max-width: clamp(320px, 60vw, 520px);
        margin: 0 0.75rem;
    }

    .lg-amazon-header__nav {
        gap: 0.9rem;
    }
}

@media (max-width: 640px) {
    .lg-amazon-header__topline {
        gap: 0.5rem;
    }

    .lg-amazon-header__search {
        width: 100%;
        max-width: none;
        margin: 0 auto;
    }

    .lg-amazon-header__brand {
        flex: 1 1 100%;
    }

    .lg-amazon-header__secondary {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        width: 100%;
    }

    .lg-amazon-header__secondary .lg-amazon-header__search {
        flex: 1 1 100%;
        border-radius: 22px;
    }

    .lg-amazon-header__secondary .lg-amazon-header__language {
        width: 100%;
        justify-content: center;
    }

    .lg-amazon-header__controls {
        order: 4;
        width: 100%;
        justify-content: space-between;
        gap: 0.45rem;
    }

    .lg-amazon-header__toggle {
        order: 2;
        margin-left: 0;
    }

    .lg-amazon-header__action--orders {
        display: none;
    }

    .lg-amazon-header__action--account {
        flex-direction: row;
        align-items: center;
        gap: 0.25rem;
        text-align: left;
    }

    /* Hide popup-specific elements on mobile */
    .lg-amazon-header__search-close,
    .lg-amazon-header__search-label {
        display: none !important;
    }

    .lg-amazon-header__action--account span {
        display: none;
    }

    .lg-amazon-header__action span {
        font-size: 0.65rem;
    }

    .lg-amazon-header__action strong {
        font-size: 0.85rem;
    }

    .lg-amazon-header__cart span {
        display: none;
    }

    .lg-amazon-header__cart svg {
        width: 28px;
        height: 28px;
    }

    .lg-amazon-header__nav-row {
        gap: 0.65rem;
        padding: 0.5rem clamp(0.75rem, 4vw, 1.25rem);
        border-top: 1px solid rgba(255, 255, 255, 0.25);
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    .lg-amazon-header__nav-all {
        display: none;
    }

    .lg-amazon-header__nav {
        gap: 0.85rem;
        white-space: nowrap;
        flex-wrap: nowrap;
        padding-bottom: 0.25rem;
    }

    .lg-amazon-header__sub {
        border-top: none;
        text-align: left;
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
    }
}
.lg-amazon-header__search-label {
    display: none;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--amazon-text);
    opacity: 0;
    transition: opacity 120ms ease;
}