﻿/* ===============================
   Guest Experience – Header
   =============================== */

[data-theme="guest-experience"] {
    /* Theme tokens (fixed for this theme) */
    --ge-ink: #2f2f2f; /* default outline/ink */
    --ge-accent: #0a8ea6; /* subtle brand accent */
    --ge-sun: #f4b400; /* sun fill */
    --ge-danger: #e53935; /* badge */
    /* Stroke consistency for all header icons */
    --ge-stroke: 2.2px;
}

    [data-theme="guest-experience"] .ge-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        background: #f6f8fb;
        border-bottom-left-radius: 22px;
        border-bottom-right-radius: 22px;
        padding-top: env(safe-area-inset-top);
    }

    [data-theme="guest-experience"] .ge-header-inner {
        display: flex;
        align-items: center;
        padding: 10px 12px; /* tighter */
    }

    [data-theme="guest-experience"] .ge-spacer {
        flex: 1;
    }

    /* Button/anchor tap target */
    [data-theme="guest-experience"] .ge-icon-btn {
        width: 44px; /* closer */
        height: 44px;
        display: grid;
        place-items: center;
        appearance: none;
        border: 0;
        background: transparent;
        padding: 0;
        margin: 0;
        cursor: pointer;
        text-decoration: none;
        -webkit-tap-highlight-color: transparent;
        position: relative; /* for badge */
    }

    /* Base SVG sizing + default color */
    [data-theme="guest-experience"] .ge-top-icon {
        width: 30px;
        height: 30px;
        display: block;
        color: var(--ge-ink); /* drives currentColor in SVG */
    }

    /* IMPORTANT: prevent "black blob" fills from global SVG rules */
    [data-theme="guest-experience"] .ge-top-icon {
        fill: none !important; /* default: outline only */
        stroke: currentColor !important; /* default: ink */
        stroke-width: var(--ge-stroke) !important;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

        /* If any paths/circles in SVG intentionally use fill, they must opt-in */
        [data-theme="guest-experience"] .ge-top-icon .ge-fill {
            fill: currentColor !important;
            stroke: none !important;
        }

        /* Accent helpers used inside the SVGs */
        [data-theme="guest-experience"] .ge-top-icon .ge-accent {
            color: var(--ge-accent) !important; /* affects stroke via currentColor */
        }

        [data-theme="guest-experience"] .ge-top-icon .ge-accent-fill {
            fill: var(--ge-accent) !important;
            stroke: none !important;
        }

        [data-theme="guest-experience"] .ge-top-icon .ge-sun {
            fill: var(--ge-sun) !important;
            stroke: none !important;
        }

        [data-theme="guest-experience"] .ge-top-icon .ge-sun-stroke {
            color: var(--ge-sun) !important; /* affects stroke via currentColor */
        }

    /* Visual tweaks for icons that read smaller/larger */
    [data-theme="guest-experience"] .ge-top-icon--globe,
    [data-theme="guest-experience"] .ge-top-icon--email {
        width: 32px;
        height: 32px;
    }

    /* Phone slightly smaller so it doesn't dominate */
    [data-theme="guest-experience"] .ge-top-icon--phone {
        width: 28px;
        height: 28px;
        transform: translateY(-0.5px);
    }

    /* Cart badge */
    [data-theme="guest-experience"] .ge-cart-btn {
        position: relative;
    }

    [data-theme="guest-experience"] .ge-badge {
        position: absolute;
        top: 6px;
        right: 6px;
        background: var(--ge-danger);
        color: #fff;
        font-size: 11px;
        font-weight: 700;
        padding: 2px 6px;
        border-radius: 999px;
        line-height: 1;
    }

    /* Tap feedback */
    [data-theme="guest-experience"] .ge-icon-btn:active {
        transform: scale(0.94);
        opacity: 0.9;
    }

/* Optional: keep the row from feeling too spread on wide screens */
@media (min-width: 600px) {
    [data-theme="guest-experience"] .ge-header-inner {
        padding-left: 14px;
        padding-right: 14px;
    }
}

/* ===============================
   Guest Experience – Footer (match Header)
   Works with:
   <div id="footer-bar" class="footer-bar-1 ge-footer-bar">
     <a class="active-nav"><img class="ge-footer-icon" ... /><span>Label</span></a>
   </div>
   =============================== */

[data-theme="guest-experience"] #footer-bar.ge-footer-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #f6f8fb;
    border-top-left-radius: 22px;
    border-top-right-radius: 22px;
    /* match header weight / height */
    min-height: calc(78px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    display: flex;
    justify-content: space-around;
    align-items: center;
    /* tighter like header */
    padding-left: 10px;
    padding-right: 10px;
    border-top: 0; /* remove classic line */
}

    /* nav item */
    [data-theme="guest-experience"] #footer-bar.ge-footer-bar a {
        flex: 1 1 auto;
        text-decoration: none;
        color: #2f2f2f;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        /* match header tap target feeling */
        min-height: 78px;
        gap: 4px;
        position: relative;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

        /* label */
        [data-theme="guest-experience"] #footer-bar.ge-footer-bar a span {
            display: block;
            font-size: 11px;
            font-weight: 500;
            margin-top: 2px;
            opacity: 0.75;
            font-family: "Roboto", sans-serif !important;
            line-height: 1.1;
        }

/* icon size -> MUST match header */
[data-theme="guest-experience"] .ge-footer-icon {
    width: 30px;
    height: 30px;
    display: block;
}

/* a couple of icons often look optically smaller */
[data-theme="guest-experience"] .ge-footer-icon--globe,
[data-theme="guest-experience"] .ge-footer-icon--email {
    width: 32px;
    height: 32px;
}

/* active state: clean underline like mockup */
[data-theme="guest-experience"] #footer-bar.ge-footer-bar a.active-nav::after {
    content: "";
    position: absolute;
    bottom: calc(8px + env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 4px;
    border-radius: 999px;
    background: #0a8ea6;
}

/* active label slightly stronger */
[data-theme="guest-experience"] #footer-bar.ge-footer-bar a.active-nav span {
    opacity: 0.95;
}

/* press feedback */
[data-theme="guest-experience"] #footer-bar.ge-footer-bar a:active {
    transform: scale(0.96);
    opacity: 0.92;
}
