/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;900&display=swap');

:root {
    /* --- Main Theme Colors (Deep Blue/Off-White) --- */
    --primary-blue: #315ca0;
    /* Deep Blue for main accents */
    --off-white: #fcfcfc;
    /* Off-White for light backgrounds */

    /* --- Light Mode Colors --- */
    --light-card-bg: #ffffff;
    /* Pure white for cards */
    --dark-text: #1f2937;
    /* Dark gray for primary text */
    --muted-text: #4b5563;
    /* Muted gray for description text */
    --blue-hover: #264a80;
    /* Slightly darker blue for button hover state */
    --search-bg: #b6c8e4;
    /* Original search bar color */
    --more-btn-bg: #ade0f2;
    /* Original more button color (Now a variable) */

    /* --- Utility Variables --- */
    --accent: var(--primary-blue);
    --line: rgba(49, 92, 160, 0.15);
    /* Subtle border line */
    --muted: var(--muted-text);
    --panel: var(--light-card-bg);
    --panel-2: var(--off-white);
}

body {
    font-family: Roboto, sans-serif;
}

/* ==================================== */
/* === 1. HEADER & NAVIGATION STYLES (RESPONSIVE FOCUS) === */
/* ==================================== */

.header {
    background-color: var(--off-white);
    width: 100%;
    z-index: 1020;
    height: auto;
    /* Let content decide height */
}

/* Container alignment - ensures proper centering on all devices */
.header>.container {
    display: flex;
    justify-content: space-between;
    /* Space out logo and toggler */
    align-items: center;
    padding: 10px 15px;
    /* Even padding for smaller screens */
}

/* Logo Image */
.logo-image {
    width: 156px;
    height: auto;
    margin: 0;
}

/* Sticky Header */
.sticky-header {
    position: sticky;
    top: 0;
    background-color: var(--off-white);
    transition: box-shadow 0.3s ease-in-out;
    z-index: 1030;
    /* Ensure it stays above other content */
}

/* Shadow effect when scrolled */
.header-scrolled {
    box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.1);
}

/* --- Mobile Menu Collapse (Toggler Content) --- */
#mynavbar {
    background-color: var(--light-card-bg);
    width: 100%;
    border-top: 1px solid var(--line);
}

/* Base Navigation Text */
.nav-text {
    color: var(--primary-blue);
    font-size: 18px;
    padding-left: 1rem;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    display: inline-block;
    /* Keeps consistent clickable area */
}

.nav-text:hover {
    color: var(--blue-hover);
}

/* --- Search Bar Input Group --- */
.search-icon-bg {
    background-color: var(--search-bg);
    border-right: none;
    color: var(--primary-blue);
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-search-input {
    background-color: var(--search-bg);
    border: 1px solid var(--search-bg);
    border-left: none;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    width: 250px;
    /* Default width for PC */
    padding-left: 10px;
    outline: none;
    /* Removes blue border when active */
}

.custom-search-input::placeholder {
    color: rgba(49, 92, 160, 0.6);
}

/* Login Button & Icon */
.login-button {
    background-color: var(--primary-blue);
    color: var(--off-white);
    margin-left: 2rem;
    transition: background-color 0.2s ease;
    border: none;
    border-radius: 5px;
    padding: 8px 15px;
    font-weight: 500;
}

.login-button:hover {
    background-color: var(--blue-hover);
}

.fa-user-circle {
    color: var(--off-white);
    margin-right: 6px;
}

/* More Options Button (Three Dots) */
.more {
    padding: 0.5rem 0.75rem;
    background-color: var(--more-btn-bg);
    border-radius: 0.25rem;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.more:hover {
    background-color: #92c9db;
    /* Slightly darker variant */
}

/* ==================================== */
/* === PC / Desktop View (>= 992px) === */
/* ==================================== */
@media (min-width: 992px) {

    /* Force main content display on desktop */
    #mynavbar {
        display: flex !important;
        justify-content: flex-end;
        /* Push content to the right */
        align-items: center;
        flex-grow: 1;
        border-top: none;
        background-color: transparent;
        margin-right: 1.5rem;
        /* Space before login button/dots */
    }

    .header .container {
        justify-content: flex-start;
        /* Align logo left, nav next */
        align-items: center;
    }

    .header .navbar-brand {
        margin-right: 1.5rem;
    }

    /* Ensure the More Options button sits at far right */
    .header>.container>.ms-3:last-child {
        margin-left: auto !important;
    }

    /* Hide Toggler button on large screens */
    .navbar-toggler {
        display: none !important;
    }

    /* Navigation links inline */
    .links-nav {
        display: flex !important;
        flex-direction: row !important;
        align-items: center;
        margin-left: 0;
        gap: 1rem;
        /* Space between links */
    }
}

/* ==================================== */
/* === MOBILE / Tablet View (< 992px) === */
/* ==================================== */
@media (max-width: 991.98px) {
    /* --- Mobile Toggler Menu Setup --- */

    /* Show the toggler button */
    .navbar-toggler {
        display: block !important;
    }

    /* Stack nav and forms vertically */
    #mynavbar .d-flex {
        flex-direction: column !important;
        align-items: flex-start;
        width: 100%;
        padding: 1rem 0;
    }

    /* Search form width & spacing */
    #mynavbar form {
        width: 90%;
        margin: 0.5rem auto 1rem;
    }

    /* Search input fills width */
    .custom-search-input {
        width: 100% !important;
    }

    /* Vertical navigation links */
    .links-nav {
        flex-direction: column !important;
        width: 100%;
        margin-left: 0 !important;
        padding: 0 5%;
    }

    .nav-text {
        display: block;
        padding: 0.8rem 0;
        width: 100%;
        border-bottom: 1px solid var(--line);
        text-align: left;
    }

    .nav-text:last-child {
        border-bottom: none;
    }

    /* Dropdown links full width */
    .dropdown.ms-3 {
        width: 90%;
        margin: 1rem auto 0 auto !important;
    }

    /* Full-width login button inside collapsed menu */
    .login-button {
        width: 90%;
        margin: 1rem auto 0.5rem auto !important;
        text-align: center;
    }

    /* Hide desktop-only "More Options" */
    .header>.container>.ms-3:last-child {
        display: none !important;
    }
}

.heading-box {
    background-color: var(--primary-blue);
    color: var(--off-white);
    text-align: center;
    font-size: 2.5rem;
    font-weight: 500;
    width: 100%;
    border-radius: 1rem;
    padding: 0.1rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.product {
    background-color: var(--more-btn-bg);
    border: solid 1px;
    border-color: var(--primary-blue);
    border-radius: .5rem;
    padding: 1rem;
    width: auto;
    height: 22rem;
    color: var(--dark-text);
    margin: 1rem;
    align-content: center;
    align-items: center;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-row{
    margin-bottom: 5rem;
}

.product-title {
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
}

.product-image {
    width: 7rem;
}

.product-content {
    font-size: 1rem;
    font-weight: 400;
}

.price-button {
    width: 100%;
    border-radius: .5rem;
}

/* ==================================== */
/* === FIXED TICKER BANNER (FOOTER) === */
/* ==================================== */

.fixed-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--primary-blue);
    color: var(--light-card-bg);
    z-index: 2000;
    overflow: hidden;
    white-space: nowrap;
    box-sizing: border-box;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    /* Add this */
    align-items: center;
    /* Vertical centering */
    padding: 0.2rem 0.5rem;
    /* Adjust top/bottom padding as needed */
}

.ticker-banner {
    display: flex;
    align-items: center;
    /* Keep this for vertical centering inside */
    font-weight: bold;
    font-size: 1.1em;
    position: relative;
}

.ticker-text {
    display: inline-block;
    padding-left: 100%;
    animation: ticker 40s linear infinite;
    will-change: transform;
}

.ticker-text>div {
    display: inline-block;
    vertical-align: middle;
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* --- Individual Item Styles --- */
.ticker-alert-main {
    color: #ff3333;
    font-size: 1.2em;
    padding-right: 20px;
}

.ticker-product {
    color: #ffeb3b;
    margin-right: 20px;
}

.ticker-strikethrough {
    display: inline;
    color: #bdbdbd;
    text-decoration: line-through;
    font-weight: 900;
}

.ticker-fries {
    color: #90ee90;
    margin-right: 20px;
}

.ticker-cta {
    color: #ffffff;
    font-weight: 700;
}

.ticker-separator {
    font-size: 1.4em;
    margin: 0 15px;
    color: #ffffffa8;
}

.ticker-separator-wide {
    font-size: 1.4em;
    margin: 0 25px;
    color: #ffffffa8;
}

.ticker-icon {
    height: 26px;
    width: auto;
    vertical-align: middle;
    margin-right: 6px;
}

.product-icon {
    height: 26px;
}

.ticker-price-highlight {
    color: #ffffff;
    font-weight: 900;
    display: inline-block;
}

.items {
    width: auto;
    height: 2rem;
    background-color: var(--more-btn-bg);
    border: solid var(--primary-blue);
    margin: .5rem;

}

.items-row{
    padding: 2rem;
}