/* ==================================================================
   WATERWISE SHARED CHROME — header + footer styles
   Single source of truth for every page's header/nav/footer visuals.
   Extracted from shop.html (most complete existing implementation).
   Loaded by every page; markup itself is injected by js/ww-header.js
   and js/ww-footer.js so there is exactly one copy of the DOM too.
   ================================================================== */

:root {
    --ww-navy: #102a43;
    --ww-blue: #1769aa;
    --ww-blue-dark: #0e4f82;
    --ww-cyan: #2aa7d6;
    --ww-bg: #f5f8fa;
    --ww-surface: #ffffff;
    --ww-text: #17324d;
    --ww-muted: #718096;
    --ww-border: #e4ebf0;
}

.ww-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--ww-border);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.ww-nav {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.ww-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    font-weight: 700;
    font-size: 22px;
    letter-spacing: -.5px;
    color: var(--ww-navy);
    text-decoration: none;
}

.ww-brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, var(--ww-blue), var(--ww-cyan));
    color: #fff;
    box-shadow: 0 6px 16px rgba(23, 105, 170, .22);
}

.ww-nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ww-nav-links > li > a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 13px;
    border-radius: 10px;
    color: var(--ww-muted);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s, color .2s;
}

.ww-nav-links > li > a:hover,
.ww-nav-links > li > a.active {
    color: var(--ww-blue);
    background: #eef6fa;
}

.ww-icon-button {
    width: 42px;
    height: 42px;
    display: inline-flex !important;
    justify-content: center;
    align-items: center;
    padding: 0 !important;
    border: 1px solid var(--ww-border);
    border-radius: 50% !important;
    background: var(--ww-surface);
    position: relative;
}

.ww-cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--ww-blue);
    color: #fff;
    font-size: 9.5px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
}

/* ---- Footer ---- */

.ww-footer {
    background: var(--ww-surface);
    border-top: 1px solid var(--ww-border);
}

.ww-footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 32px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.ww-footer-copy {
    color: var(--ww-muted);
    font-size: 12px;
}

.ww-footer-links {
    display: flex;
    gap: 18px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ww-footer-links a {
    color: var(--ww-muted);
    font-size: 12px;
    text-decoration: none;
}

.ww-footer-links a:hover {
    color: var(--ww-blue);
}

@media (max-width: 650px) {
    .ww-nav { padding: 0 16px; }
    .ww-nav-links > li:not(:last-child) { display: none; }
    .ww-footer-inner { flex-direction: column; align-items: flex-start; }
}
