/* Shared site header + interior page layouts (desktop + mobile) */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body.site-page {
    background: #fff;
    padding: 0;
}

body.site-page .page-wrap {
    max-width: none;
    width: 100%;
    margin: 0;
    box-shadow: none;
    min-height: auto;
}

/* ── Brand logo ── */
.site-brand,
.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #1e293b;
}

.site-brand-icon,
.footer-logo-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.site-brand-text,
.footer-logo-text {
    font-family: var(--display, 'Bebas Neue', sans-serif);
    font-size: 20px;
    letter-spacing: 1.5px;
    line-height: 1;
    color: #1e293b;
}

.site-brand-text small,
.footer-logo-text span {
    display: block;
    font-size: 10px;
    letter-spacing: 2.5px;
    color: #64748b;
    font-family: var(--body, Inter, sans-serif);
    font-weight: 700;
    margin-top: 2px;
}

/* ── Site header ── */
.site-offer-bar {
    width: 100%;
    background: linear-gradient(90deg, #ecfdf5, #d1fae5, #ecfdf5);
    background-size: 200% 100%;
    animation: offerBarMove 3s ease infinite;
    color: #047857;
    border-bottom: 1px solid #a7f3d0;
}

.site-offer-bar-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 8px 16px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 6px;
    white-space: nowrap;
}

.site-offer-bar strong {
    font-weight: 800;
    color: #065f46;
}

.site-offer-sep {
    margin: 0 4px;
    opacity: 0.7;
}

.site-offer-code {
    display: inline-block;
    background: #fff;
    border: 1px dashed #059669;
    border-radius: 6px;
    padding: 2px 8px;
    margin-left: 2px;
    font-family: ui-monospace, monospace;
    font-weight: 800;
    color: #047857;
}

@keyframes offerBarMove {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@media (max-width: 479px) {
    .site-offer-bar-inner {
        font-size: 9px;
        padding: 5px 10px;
        gap: 4px;
    }

    .site-offer-code {
        padding: 1px 5px;
        font-size: 9px;
    }
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 500;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid var(--border, #e5e7eb);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.site-header-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    max-width: 1240px;
    margin: 0 auto;
    padding: 12px 20px;
}

.site-brand {
    flex: 1 1 auto;
    min-width: 0;
}

.site-header-end {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.site-nav {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

@media (min-width: 900px) {
    .site-header-inner {
        display: grid;
        grid-template-columns: auto 1fr auto;
        gap: 16px;
    }

    .site-brand {
        flex: none;
        min-width: auto;
    }
}

.site-nav a {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 8px;
    transition: color 0.15s, background 0.15s;
}

.site-nav a:hover {
    color: #1e40af;
    background: #eff6ff;
}

.site-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.shop-cart-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 8px;
    padding: 8px 12px;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    color: var(--text, #111827);
    cursor: pointer;
    position: relative;
}

.shop-cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #111827;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}

.shop-cart-badge.is-hidden {
    display: none !important;
}

.shop-cart-label {
    display: none;
}

@media (min-width: 640px) {
    .shop-cart-label { display: inline; }
}

.site-header-cta {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    background: #111827;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-decoration: none;
    border-radius: 8px;
    white-space: nowrap;
    transition: background 0.15s;
}

.site-header-cta:hover {
    background: #000;
}

.site-nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}

.site-nav-toggle-bar {
    display: block;
    height: 2px;
    background: #111827;
    border-radius: 1px;
}

.site-nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border, #e5e7eb);
    padding: 12px 20px 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    z-index: 10;
}

.site-nav.is-open a {
    padding: 12px 8px;
    border-radius: 6px;
}

@media (min-width: 900px) {
    .site-nav-toggle {
        display: none;
    }

    .site-nav {
        display: flex;
        position: static;
        flex-direction: row;
        padding: 0;
        box-shadow: none;
        border: none;
    }
}

/* ── Interior pages ── */
.site-main {
    width: 100%;
}

.interior-page,
.simple-page,
.policy-page {
    width: 100%;
    max-width: none;
    margin: 0;
}

.interior-hero {
    max-width: 800px;
    margin: 0 auto;
    padding: 32px 20px 20px;
    border-bottom: 1px solid var(--border, #e5e7eb);
}

.interior-hero h1 {
    font-family: var(--display, 'Bebas Neue', sans-serif);
    font-size: clamp(32px, 5vw, 44px);
    letter-spacing: 1.5px;
    line-height: 1.05;
    color: var(--text, #111827);
    margin-bottom: 8px;
}

.interior-hero-sub {
    font-size: 14px;
    color: var(--muted, #6b7280);
    margin: 0;
    line-height: 1.5;
}

.interior-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 28px 20px 48px;
}

.interior-content-wide {
    max-width: 1100px;
}

@media (min-width: 1024px) {
    .interior-hero {
        padding: 48px 48px 28px;
    }

    .interior-content {
        padding: 36px 48px 56px;
    }

    .interior-content-wide {
        padding-left: 48px;
        padding-right: 48px;
    }
}

/* Shop: header lives outside page-wrap */
body.shop-body.site-page .site-header-inner {
    max-width: none;
    padding-left: max(20px, calc((100% - 1240px) / 2));
    padding-right: max(20px, calc((100% - 1240px) / 2));
}

/* Offer / VSL page */
body.offer-page {
    background: #f0f2f5;
}

body.offer-page .offer-page-wrap {
    max-width: 480px;
    margin: 0 auto;
    box-shadow: var(--shadow-lg, 0 8px 30px rgba(0, 0, 0, 0.1));
}

@media (max-width: 479px) {
    body.offer-page {
        background: #fff;
    }

    body.offer-page .offer-page-wrap {
        max-width: 100%;
        box-shadow: none;
    }
}

@media (min-width: 1024px) {
    body.offer-page {
        background: #fff;
    }

    body.offer-page .offer-page-wrap {
        max-width: 520px;
        margin: 24px auto 0;
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    }
}

/* Mobile compact header + shop urgency bar */
@media (max-width: 899px) {
    .site-brand {
        flex: 1 1 auto;
        min-width: 0;
        gap: 8px;
    }

    .site-brand-text,
    .footer-logo-text {
        font-size: 15px;
        letter-spacing: 0.8px;
        line-height: 1.05;
        overflow: hidden;
    }

    .site-brand-text small,
    .footer-logo-text span {
        font-size: 7px;
        letter-spacing: 1.2px;
        margin-top: 1px;
    }
}

@media (max-width: 639px) {
    .site-header-inner {
        padding: 10px 12px;
        gap: 8px;
    }

    .site-brand-icon,
    .footer-logo-icon {
        width: 32px;
        height: 32px;
        flex-shrink: 0;
    }

    .site-brand-text,
    .footer-logo-text {
        font-size: 13px;
        letter-spacing: 0.5px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .site-brand-text small,
    .footer-logo-text span {
        display: block;
        font-size: 6px;
        letter-spacing: 1px;
    }

    .site-header-end {
        gap: 6px;
    }

    .shop-cart-btn {
        width: 38px;
        height: 38px;
        padding: 0;
        justify-content: center;
        gap: 0;
    }

    .shop-cart-label {
        display: none !important;
    }

    .shop-cart-btn svg {
        width: 18px;
        height: 18px;
    }

    .shop-cart-badge {
        top: -4px;
        right: -4px;
        min-width: 16px;
        height: 16px;
        font-size: 10px;
        line-height: 16px;
    }

    .site-nav-toggle {
        width: 38px;
        height: 38px;
        padding: 8px;
        gap: 4px;
        flex-shrink: 0;
    }

    .site-nav-toggle-bar {
        height: 2px;
    }

    .site-header-cta {
        padding: 8px 12px;
        font-size: 11px;
    }

    .interior-hero,
    .interior-content {
        padding-left: 16px;
        padding-right: 16px;
    }

    body.shop-body .urgency-bar {
        padding: 6px 10px;
        font-size: 10px;
        gap: 4px;
    }

    body.shop-body .urgency-bar strong {
        font-size: 11px;
    }

    body.shop-body .pulse-dot {
        width: 6px;
        height: 6px;
    }
}

@media (max-width: 479px) {
    .site-header-inner {
        padding: 8px 10px;
    }
}
