/*
 * ScanWear — Global Header & Footer Styles
 * ═══════════════════════════════════════════════════════════════════
 * Fluent Snippets Settings:
 *   Type    → CSS Snippet
 *   Run on  → Frontend (All Pages)
 *   Status  → Active
 * ═══════════════════════════════════════════════════════════════════
 *
 * Covers:
 *  1. Google Fonts import
 *  2. CSS variables
 *  3. Header (.sw-topbar) styles
 *  4. Footer (.sw-footer-bar) styles
 *  5. Body top-padding offset for fixed header
 *  6. Responsive / mobile overrides
 */


/* ── 1. Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&family=DM+Mono:wght@400;500&display=swap');


/* ── 2. Variables ── */
:root {
    --sw-black:        #0d0d0d;
    --sw-white:        #f5f2ed;
    --sw-accent:       #c8f542;
    --sw-accent-dark:  #9dbf2a;
    --sw-mid:          rgba(245, 242, 237, 0.6);
    --sw-font-display: 'Bebas Neue', sans-serif;
    --sw-font-body:    'DM Sans', sans-serif;
    --sw-font-mono:    'DM Mono', monospace;
}


/* ── 3. Header ── */
.sw-topbar,
.sw-topbar * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.sw-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--sw-black);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    height: 56px;
    font-family: var(--sw-font-body);
    -webkit-font-smoothing: antialiased;
}

.sw-topbar-logo {
    font-family: var(--sw-font-display);
    font-size: 26px;
    letter-spacing: 2px;
    color: var(--sw-accent) !important;
    text-decoration: none !important;
    line-height: 1;
}

.sw-topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Counter display (not a CTA — pointer-events disabled) */
.sw-topbar-btn {
    background: var(--sw-accent);
    color: var(--sw-black) !important;
    border: none;
    padding: 8px 20px;
    border-radius: 2px;
    font-family: var(--sw-font-display);
    letter-spacing: 1px;
    cursor: default;
    text-decoration: none !important;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.15;
    transition: background 0.2s;
    white-space: nowrap;
    pointer-events: none;
}

.sw-topbar-btn:hover {
    background: var(--sw-accent);
    color: var(--sw-black) !important;
}

.sw-btn-label {
    font-size: 10px;
    letter-spacing: 2px;
    opacity: 0.7;
    font-family: var(--sw-font-display);
}

.sw-btn-count {
    font-size: 18px;
    letter-spacing: 1px;
    font-family: var(--sw-font-display);
}


/* ── 4. Footer ── */
.sw-footer-bar,
.sw-footer-bar * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.sw-footer-bar {
    background: #080808;
    padding: 28px 0;
    font-family: var(--sw-font-body);
    -webkit-font-smoothing: antialiased;
    width: 100%;
}

.sw-footer-bar .sw-fc {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.sw-footer-logo {
    font-family: var(--sw-font-display);
    font-size: 22px;
    letter-spacing: 2px;
    color: var(--sw-accent) !important;
    text-decoration: none !important;
    line-height: 1;
}

.sw-footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

.sw-footer-links a {
    font-size: 13px;
    color: rgba(245, 242, 237, 0.4) !important;
    text-decoration: none !important;
    font-family: var(--sw-font-mono);
    transition: color 0.2s;
}

.sw-footer-links a:hover {
    color: var(--sw-white) !important;
}

.sw-footer-copy {
    font-size: 12px;
    color: rgba(245, 242, 237, 0.25);
    font-family: var(--sw-font-mono);
    white-space: nowrap;
}


/* ── 5. Body offset — pushes content below the fixed header ── */
body {
    padding-top: 23px !important;
}


/* ── 6. Responsive / mobile ── */
@media (max-width: 768px) {

    .sw-topbar {
        padding: 0 16px;
    }

    .sw-live {
        display: none;
    }

    /* Hide Blocksy mobile header on WooCommerce pages */
    .woocommerce .ct-header,
    .woocommerce-page .ct-header,
    .woocommerce .ct-mobile-header,
    .woocommerce-page .ct-mobile-header {
        display: none !important;
    }
}
