html,
body {
    margin: 0;
    background: #f5f5f5;
    color: #484848;
    font-family: 'Rethink Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    min-height: 100%;
    font-size: 16px;
    line-height: 1.75;
}

#header-container,
.site-header,
.header-container {
    background: #fff;
}

.layout-horizontal {
    min-height: 100vh;
    background: #f5f5f5;
}

/* Header: prevent FOUC before main stylesheet loads */
.header-container {
    z-index: 100;
    border-bottom: 1px solid #e2e2e2;
    width: 100%;
}

@media (min-width: 901px) {
    .header-container {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
    }

    body {
        padding-top: 4rem;
    }
}

@media (max-width: 900px) {
    .header-container {
        position: sticky;
        top: 0;
    }
}

@media (max-width: 1279px) {
    .site-header-nav.site-desktop-only {
        display: none !important;
    }

    .site-menu-toggle.site-mobile-only {
        display: inline-flex;
    }
}

@media (max-width: 1279px) and (min-width: 901px) {
    .site-actions > .site-desktop-only {
        display: inline-flex !important;
    }
}

.site-header__inner {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0.875rem clamp(1rem, 4vw, 3.75rem);
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 4rem;
}

.site-logo {
    display: inline-flex;
    align-items: center;
}

.site-logo img {
    display: block;
    height: 2rem;
    width: auto;
}

.site-desktop-only {
    display: flex;
}

.site-mobile-only,
.site-header-link.site-mobile-only {
    display: none;
}

.site-header-nav {
    flex: 1 1 auto;
    min-width: 0;
}

.site-header-nav__list,
.site-header-nav__dropdown,
.site-header-nav__dropdown-sub,
.site-drawer__menu,
.site-drawer__submenu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-header-nav__list {
    display: flex;
    align-items: center;
    gap: 0.125rem;
}

.site-header-nav__item {
    position: relative;
}

.site-header-nav__link,
.site-header-nav__trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    border: 0;
    background: transparent;
    text-decoration: none;
    white-space: nowrap;
}

/* Keep mega-menu hidden until full header styles load */
.site-header-nav__dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.site-drawer[hidden] {
    display: none !important;
}

.search-suggest {
    display: none;
}

.header-container svg {
    flex-shrink: 0;
}

.site-header-nav__chevron {
    width: 0.75rem;
    height: 0.75rem;
}

.site-header-nav__dropdown-arrow,
.site-drawer__chevron {
    width: 0.875rem;
    height: 0.875rem;
}

.site-header-cta__icon {
    width: 1.125rem;
    height: 1.125rem;
}

.site-header-link__icon,
.site-cart__icon,
.site-menu-toggle__icon {
    width: 1rem;
    height: 1rem;
}

.site-header-nav__dropdown-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
}

.site-header-nav__dropdown-icon img {
    display: block;
    width: 2rem;
    height: 2rem;
    object-fit: contain;
}

.site-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

/* Footer: prevent oversized trust icons before main CSS */
.site-footer {
    background: #fff;
    color: #0e0e0e;
}

.trust-bar__inner {
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2rem;
    padding: 2rem clamp(1rem, 4vw, 3.75rem);
}

.trust-bar__icon {
    width: 32px;
    height: 32px;
    max-width: 32px;
    max-height: 32px;
    object-fit: contain;
}

.site-footer__logo img {
    display: block;
    width: auto;
    height: 30px;
    max-width: 147px;
}

/* Hide loaders that may flash before themed styles load */
.page-loader {
    display: none !important;
}

/* Home/content: keep layout stable before block styles arrive */
.home-page,
.page {
    min-height: 50vh;
}
