/* Define CSS variables for consistency */
:root {
    --primary-color: white; /* Red color */
    --secondary-color: white;
    --font-family: Arial, sans-serif;
    --button-radius: 20px; /* For consistent button styling */
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: var(--secondary-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: var(--font-family);
}

.container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

#header, #footer {
    background: black;
    color: var(--secondary-color);
    padding: 15px 0;
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Keep header (and dropdowns) above page images/avatars */
#header {
    position: relative;
    /* Must sit above PLP sticky nav (plp-modern.css uses z-index 1020) */
    z-index: 3000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 20px; /* Normalized padding */
}

.header-left, .header-right span, .dropdown span {
    cursor: pointer; 
}

.header-left a, .header-center .dropdown > a, .header-right .dropdown > span {
    color: white; /* Header bar links stay white */
    text-decoration: none;
}

.header-center {
    flex: 5;
    display: flex;
    justify-content: center;
    gap: 35px; /* Normalized for consistency */
    white-space: nowrap;
}

.header-right {
    flex: 1;
    display: flex;
    justify-content: flex-start;;
    gap: 5px; /* Normalized */
}

.login-icon {
    width: 20px;
    height: 20px;
    margin-right: 0;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    /* Ensure dropdowns are above sticky collection nav bars */
    z-index: 3001;
    text-align: left;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover, .dropdown-content a:focus {
    background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
    display: block;
}

#footer {
    display: block;
    padding: 20px 24px 14px 24px;
    max-width: 1920px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* ============================================
   GLOBAL SITE FOOTER (components/footer.html)
   ============================================ */

.site-footer {
    width: 100%;
}

.site-footer a {
    color: white;
    text-decoration: none;
}

.site-footer__top {
    display: grid;
    grid-template-columns: 1.3fr auto 1fr;
    gap: 22px 56px;
    align-items: start;
}

.site-footer__description-text {
    margin: 0;
    line-height: 1.35;
    font-size: clamp(13px, 0.85vw, 16px);
    max-width: 720px;
}

.site-footer__floors {
    display: flex;
    gap: 26px;
    justify-content: center;
    white-space: nowrap;
    align-self: center;
    padding-top: 0;
}

.site-footer__floor-link {
    font-size: clamp(16px, 1.35vw, 22px);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 6px;
}

.site-footer__social {
    justify-self: end;
    text-align: center;
}

.site-footer__social-icons {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-bottom: 8px;
}

.site-footer__social-link {
    display: inline-flex;
    width: clamp(34px, 3.2vw, 48px);
    height: clamp(34px, 3.2vw, 48px);
    align-items: center;
    justify-content: center;
}

.site-footer__icon {
    width: clamp(34px, 3.2vw, 48px);
    height: clamp(34px, 3.2vw, 48px);
    fill: white;
}

.site-footer__social-label {
    font-size: clamp(14px, 1.15vw, 18px);
    line-height: 1.2;
}

.site-footer__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 26px;
    margin-top: 18px;
    font-size: clamp(16px, 1.35vw, 22px);
}

.site-footer__copyright {
    text-align: center;
    margin-top: 12px;
    font-size: 16px;
    opacity: 0.9;
}

@media (max-width: 1024px) {
    .site-footer__top {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .site-footer__floors {
        padding-top: 6px;
        flex-wrap: wrap;
        white-space: normal;
        gap: 18px 26px;
    }

    .site-footer__floor-link {
        font-size: 22px;
    }

    .site-footer__links {
        font-size: 22px;
        gap: 16px 26px;
    }

    .site-footer__social {
        justify-self: center;
    }
}

/* Desktop-only alignment tweaks for footer layout */
@media (min-width: 1025px) {
    /* Drop the floor links down by ~one description text line, and shift right
       so "1st Shop" aligns above "Privacy Policies" in the links row. */
    .site-footer__floors {
        margin-top: 1.35em;
        justify-content: center;
        transform: none;
    }
}

#background-container {
    position: relative;
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

#background-img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Scene pages: let the background image drive layout sizing */
.scene-page #background-container {
    display: block;
}

.scene-page #background-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
}

/* Media Store: background video replacement */
#background-video {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* ============================================
   MOVIE LOBBY BUTTONS (4th Floor Movies)
   ============================================ */

.movie-lobby-buttons {
    position: absolute;
    right: clamp(18px, 2.4vw, 46px);
    top: clamp(92px, 8.5vw, 160px);
    bottom: clamp(72px, 7vw, 130px);
    z-index: 9; /* above background, below chatbot (10) */
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* More breathing room so buttons don't feel cramped */
    gap: clamp(14px, 1.65vw, 26px);
    pointer-events: none; /* re-enable only on buttons */
    /* Position tweak: total move = left 74% and up 19% */
    transform: translate(-74%, -19%);
}

.ml-btn {
    pointer-events: auto;
    cursor: pointer;
    border: 0;
    padding: 0;
    background: transparent;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
    transform: translateZ(0);
    transform-origin: center;
    transition: transform 180ms ease;
    will-change: transform;
}

.ml-btn img {
    display: block;
    /* Slightly smaller to reduce visual crowding */
    width: clamp(140px, 14.5vw, 280px);
    height: auto;
    user-select: none;
    -webkit-user-drag: none;
}

/* Optical weight balancing (PNG text is baked-in) */
.ml-btn--indie img,
.ml-btn--scifi img {
    transform: scale(0.92);
    transform-origin: center;
    opacity: 0.94;
}

.ml-btn:hover,
.ml-btn:focus-visible {
    transform: scale(1.06);
}

.ml-btn:focus-visible {
    outline: 2px solid rgba(0, 255, 255, 0.75);
    outline-offset: 8px;
    border-radius: 10px;
}

/* ============================================
   GAME ROOM BUTTON OVERLAY (3rd Floor Games)
   ============================================ */

.game-room-buttons {
    position: absolute;
    inset: 0;
    z-index: 6; /* below chatbot (z=10) but above background */
    pointer-events: none; /* re-enable only on buttons */
}

.gr-btn {
    position: absolute;
    display: inline-block;
    pointer-events: auto;
    cursor: pointer;
    transform: translateZ(0);
    transform-origin: left center;
    transition: transform 180ms ease, filter 180ms ease;
    will-change: transform, filter;
    -webkit-tap-highlight-color: transparent;
}

.gr-btn img {
    display: block;
    width: 100%;
    height: auto;
    user-select: none;
    -webkit-user-drag: none;
    filter: drop-shadow(0 6px 0 rgba(255, 0, 0, 0.65));
    transition: filter 180ms ease;
}

/* Placement tuned to match the designed overlay spacing (scales with background) */
.gr-btn--arcade { left: 3.0%; top: 16.0%; width: 31%; }
.gr-btn--card   { left: 3.0%; top: 32.5%; width: 34%; }
.gr-btn--board  { left: 3.0%; top: 48.5%; width: 36.5%; }
.gr-btn--pool   { left: 3.0%; top: 62.0%; width: 18%; }

/* Arcade hover/focus effects: zoom + neon pulse + shimmer sweep */
.gr-btn::after {
    content: "";
    position: absolute;
    inset: -12px -18px;
    background: linear-gradient(110deg, rgba(0,0,0,0) 20%, rgba(0,255,255,0.22) 45%, rgba(255,0,255,0.18) 55%, rgba(0,0,0,0) 80%);
    transform: translateX(-120%) skewX(-18deg);
    opacity: 0;
    pointer-events: none;
    filter: blur(0.3px);
}

.gr-btn:hover,
.gr-btn:focus-visible {
    transform: scale(1.06);
    filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.55))
            drop-shadow(0 0 18px rgba(255, 0, 255, 0.40));
}

.gr-btn:hover img,
.gr-btn:focus-visible img {
    filter: drop-shadow(0 6px 0 rgba(255, 0, 0, 0.9))
            drop-shadow(0 0 10px rgba(0, 255, 255, 0.55))
            drop-shadow(0 0 18px rgba(255, 0, 255, 0.40));
    animation: grNeonPulse 900ms ease-in-out infinite;
}

.gr-btn:hover::after,
.gr-btn:focus-visible::after {
    opacity: 1;
    animation: grShimmer 750ms ease-out 1;
}

.gr-btn:focus-visible {
    outline: 2px solid rgba(0, 255, 255, 0.8);
    outline-offset: 8px;
    border-radius: 10px;
}

@keyframes grNeonPulse {
    0%, 100% {
        filter: drop-shadow(0 6px 0 rgba(255, 0, 0, 0.9))
                drop-shadow(0 0 10px rgba(0, 255, 255, 0.45))
                drop-shadow(0 0 18px rgba(255, 0, 255, 0.32));
    }
    50% {
        filter: drop-shadow(0 6px 0 rgba(255, 0, 0, 1))
                drop-shadow(0 0 14px rgba(0, 255, 255, 0.75))
                drop-shadow(0 0 26px rgba(255, 0, 255, 0.55));
    }
}

@keyframes grShimmer {
    0% { transform: translateX(-120%) skewX(-18deg); }
    100% { transform: translateX(120%) skewX(-18deg); }
}

@media (prefers-reduced-motion: reduce) {
    .gr-btn,
    .gr-btn img {
        transition: none !important;
        animation: none !important;
    }
    .gr-btn::after {
        display: none !important;
    }
}

/* ============================================
   BOARD GAMES ICON OVERLAY (2nd Floor > Board)
   ============================================ */

.board-games-buttons {
    position: absolute;
    inset: 0;
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(14px, 2.2vw, 36px);
    padding-inline: clamp(20px, 4vw, 64px);
    transform: translateY(-6%);
    pointer-events: none; /* re-enable only on buttons */
}

.bg-icon-btn {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(150px, 16vw, 280px);
    max-width: 19%;
    aspect-ratio: 1 / 1;
    border-radius: 18px;
    background: rgba(0, 0, 0, 0.0);
    transition: transform 160ms ease, filter 160ms ease;
    will-change: transform, filter;
}

.bg-icon-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.55));
    transition: filter 160ms ease;
    user-select: none;
    -webkit-user-drag: none;
}

.bg-icon-btn:hover,
.bg-icon-btn:focus-visible {
    transform: scale(1.08);
}

.bg-icon-btn:hover img,
.bg-icon-btn:focus-visible img {
    filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.65));
}

.bg-icon-btn:focus-visible {
    outline: 2px solid rgba(0, 255, 255, 0.85);
    outline-offset: 8px;
}

@media (max-width: 860px) {
    .board-games-buttons {
        flex-wrap: wrap;
        justify-content: center;
        padding-top: 14px;
        padding-bottom: 14px;
        transform: translateY(-2%);
    }
    .bg-icon-btn {
        max-width: none;
        width: clamp(140px, 38vw, 220px);
    }
}

/* Per-icon fine tuning (match placeholder centers) */
.bg-icon-btn--monopoly { transform: translateY(-6%); }
.bg-icon-btn--connect4 { transform: translateY(-6%); }
.bg-icon-btn--chess    { transform: translateY(-4%); }
.bg-icon-btn--dominoes { transform: translateY(-7%) scale(0.88); }
.bg-icon-btn--checkers { transform: translateY(-7%) scale(0.88); }

.bg-icon-btn--monopoly:hover,
.bg-icon-btn--monopoly:focus-visible { transform: translateY(-6%) scale(1.08); }
.bg-icon-btn--connect4:hover,
.bg-icon-btn--connect4:focus-visible { transform: translateY(-6%) scale(1.08); }
.bg-icon-btn--chess:hover,
.bg-icon-btn--chess:focus-visible { transform: translateY(-4%) scale(1.08); }
.bg-icon-btn--dominoes:hover,
.bg-icon-btn--dominoes:focus-visible { transform: translateY(-7%) scale(0.88) scale(1.08); }
.bg-icon-btn--checkers:hover,
.bg-icon-btn--checkers:focus-visible { transform: translateY(-7%) scale(0.88) scale(1.08); }

/* ============================================
   CARD GAMES ICON OVERLAY (2nd Floor > Card)
   ============================================ */

.card-games-buttons {
    position: absolute;
    inset: 0;
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(14px, 2.2vw, 36px);
    padding-inline: clamp(20px, 4vw, 64px);
    transform: translateY(-6%);
    pointer-events: none; /* re-enable only on buttons */
}

.cg-icon-btn {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(130px, 14vw, 235px);
    max-width: 17%;
    aspect-ratio: 1 / 1;
    border-radius: 18px;
    transition: transform 160ms ease;
    will-change: transform;
    transform: scale(0.88);
}

.cg-icon-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.55));
    transition: filter 160ms ease;
    user-select: none;
    -webkit-user-drag: none;
}

.cg-icon-btn:hover,
.cg-icon-btn:focus-visible {
    transform: scale(0.88) scale(1.08);
}

.cg-icon-btn:hover img,
.cg-icon-btn:focus-visible img {
    filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.65));
}

.cg-icon-btn:focus-visible {
    outline: 2px solid rgba(0, 255, 255, 0.85);
    outline-offset: 8px;
}

@media (max-width: 860px) {
    .card-games-buttons {
        flex-wrap: wrap;
        justify-content: center;
        padding-top: 14px;
        padding-bottom: 14px;
        transform: translateY(-2%);
    }
    .cg-icon-btn {
        max-width: none;
        width: clamp(140px, 38vw, 220px);
        transform: scale(0.92);
    }
    .cg-icon-btn:hover,
    .cg-icon-btn:focus-visible {
        transform: scale(0.92) scale(1.06);
    }
}

/* ============================================
   ARCADE GAMES ICON OVERLAY (2nd Floor > Arcade)
   ============================================ */

.arcade-games-buttons {
    position: absolute;
    z-index: 6;
    /* Position over the opaque rectangle area in avenue_arcade_games.png */
    left: 4.5%;
    right: 4.5%;
    top: 18.5%;
    height: 62%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    column-gap: clamp(14px, 2.2vw, 28px);
    row-gap: clamp(7px, 1.3vw, 15px);
    padding-inline: clamp(14px, 2.6vw, 34px);
    padding-block: clamp(12px, 2.0vw, 26px);
    align-items: stretch;
    justify-items: stretch;
    pointer-events: none; /* re-enable only on buttons */
    /* Fine position tweak to match the opaque rectangle */
    transform: translate(-2.2%, -6.4%);
}

.ag-icon-btn {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.0);
    transition: transform 160ms ease;
    will-change: transform;
    padding: clamp(6px, 1.2vw, 14px);
}

.ag-icon-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.55));
    transition: filter 160ms ease;
    user-select: none;
    -webkit-user-drag: none;
}

.ag-icon-btn:hover,
.ag-icon-btn:focus-visible {
    transform: scale(1.08);
}

.ag-icon-btn:hover img,
.ag-icon-btn:focus-visible img {
    filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.65));
}

.ag-icon-btn:focus-visible {
    outline: 2px solid rgba(0, 255, 255, 0.85);
    outline-offset: 8px;
}

@media (max-width: 860px) {
    .arcade-games-buttons {
        left: 3%;
        right: 3%;
        top: 16%;
        height: 66%;
        column-gap: clamp(10px, 2.6vw, 18px);
        row-gap: clamp(5px, 1.9vw, 11px);
        padding-inline: clamp(10px, 3.2vw, 18px);
        padding-block: clamp(10px, 2.8vw, 16px);
        transform: translate(-1.6%, -5.2%);
    }
    .ag-icon-btn {
        padding: clamp(6px, 1.8vw, 12px);
    }
}

.red-header {
    color: var(--primary-color);
}

/* Chatbot specific styles */
#chatbot-container {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 300px;
    box-shadow: none; /* Remove shadow if unwanted */
    background-color: transparent; /* Fully transparent background */
    z-index: 10; /* Ensure it sits above the background image */
}

/* Movie Lobby: keep avatar/chat on far-left (desktop/landscape) */
.page-movie-lobby #chatbot-container {
    left: 106px;
    right: auto;
}

/* Portrait fallback system (scene pages only) */
.scene-page .portrait-menu {
    display: none;
}

/* Hide toggle by default (only show in portrait) */
#chatbot-container .chatbot-toggle {
    display: none;
}

@media (max-width: 900px) and (orientation: portrait) {
    /* Hide immersive overlays in portrait (scene pages only) */
    .scene-page .movie-lobby-buttons,
    .scene-page .game-room-buttons,
    .scene-page .arcade-games-buttons,
    .scene-page .card-games-buttons,
    .scene-page .board-games-buttons {
        display: none !important;
    }

    /* Portrait menu (scene pages only) */
    .scene-page .portrait-menu {
        display: grid;
        position: fixed;
        left: 50%;
        transform: translateX(-50%);
        bottom: 120px; /* leave room for docked chatbot */
        width: min(92vw, 420px);
        gap: 10px;
        z-index: 9999;
        padding: 12px;
        border-radius: 16px;
        background: rgba(0, 0, 0, 0.72);
        backdrop-filter: blur(6px);
    }

    .scene-page .portrait-menu a,
    .scene-page .portrait-menu button {
        display: block;
        width: 100%;
        padding: 12px 14px;
        border-radius: 12px;
        text-decoration: none;
        color: #fff;
        font-weight: 700;
        background: rgba(255, 255, 255, 0.10);
        border: 0;
        text-align: left;
        cursor: pointer;
    }

    .scene-page .portrait-menu a:active,
    .scene-page .portrait-menu button:active {
        transform: scale(0.99);
    }

    .scene-page .portrait-menu .is-disabled {
        pointer-events: none;
        opacity: 0.7;
        cursor: default;
    }

    /* Chatbot docked bottom-center in portrait (works on scene pages) */
    #chatbot-container {
        position: fixed !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        bottom: 12px !important;
        right: auto !important;
        width: min(92vw, 360px) !important;
        z-index: 10000 !important;
    }

    /* Collapsed-by-default support */
    #chatbot-container.is-collapsed #chat-output,
    #chatbot-container.is-collapsed #chat-input-container {
        display: none !important;
    }

    /* Toggle button shows only in portrait */
    #chatbot-container .chatbot-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-top: 8px;
        padding: 10px 12px;
        border-radius: 12px;
        border: 0;
        cursor: pointer;
        font-weight: 700;
        background: rgba(181, 2, 36, 0.95);
        color: #fff;
        width: 100%;
    }

    /* Movie Lobby transform safety (portrait) */
    .scene-page .movie-lobby-buttons {
        transform: none !important;
        right: auto !important;
        left: auto !important;
        top: auto !important;
        bottom: auto !important;
    }
}

/* Chatbot Avatar */
#chatbot-avatar {
    width: 100%;
    height: auto;
    display: block;
}

/* Chat Output */
#chat-output {
    height: 150px;
    overflow-y: auto;
    background-color: rgba(0, 0, 0, 0.5); /* Optional: semi-transparent dark background */
    color: white; /* Text contrast if using a darker background */
    border: none; /* Remove if desired */
    margin-top: 10px;
    padding: 10px;
    font-size: 14px;
}

/* User Input */
#user-input {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

/* Search bar specific styles */
#search-bar {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 20px; /* Adjusted spacing */
}

#search-bar input[type="text"] {
    width: 300px;
    height: 35px;
    padding: 5px 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: var(--button-radius);
    box-sizing: border-box;
    outline: none;
    transition: all 0.3s ease;
}

#search-bar input[type="text"]:focus {
    border-color: var(--primary-color);
    box-shadow: 0px 0px 5px rgba(252, 0, 0, 0.5);
}

#search-bar button {
    position: absolute;
    right: 10px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    outline: none;
    transition: background-color 0.3s ease;
}

#search-bar button:hover {
    background-color: #ff3333;
}

#search-bar button i {
    font-size: 14px;
}

@media screen and (max-width: 1024px) {
    .header-content {
        padding: 0 20px; /* Consistent padding */
    }

    .header-center {
        gap: 15px; /* Balanced gap */
    }

    .footer-right {
        text-align: left;
    }

    #background-img {
        width: 100%;
        height: auto;
    }
}
/* 8-Grid Placeholder Styles */
.grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
    max-width: 1920px;
    margin: auto;
    background-color: black;
    padding: 20px 0;
}

/* Movie Lobby: hide the legacy 8-grid category module (keep background + avatar + chat) */
#background-container + .grid-container {
    display: none !important;
}

.grid-item {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 350px; /* Adjust height as needed */
    overflow: hidden;
    position: relative;
}

/* Default Image (Visible by Default) */
.grid-item .default-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.3s ease-in-out;
}
/* == Mens Collection Product Grid == */
#product-grid {
  display: grid;
  /* 4 columns on desktops, with auto fill if you prefer */
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  padding: 20px;
}

.product-item {
  text-align: center;
  background-color: #fff; /* or transparent, etc. */
  padding: 10px;
  border: 1px solid #ccc; /* optional border for styling */
}

.product-item img {
  width: 100%;
  height: auto;
  display: block; /* ensures images scale properly */
  margin: 0 auto;
}

/* Pagination styling */
.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 20px auto;
}

.page-number {
  text-decoration: none;
  color: black; /* or your choice */
  padding: 5px 10px;
}

.page-number:hover {
  text-decoration: underline;
  cursor: pointer;
}

/* The active/current page number */
.current-page {
  text-decoration: underline;
  font-weight: bold; /* stands out more */
}

/* Make the product grid responsive */
@media (max-width: 768px) {
  #product-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}

/* Hover Image (Hidden by Default) */
.grid-item .hover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}
.product-detail-container {
  display: flex;  /* or grid, as you like */
  max-width: 1200px;
  margin: 0 auto; /* center on the page */
  gap: 20px;
  padding: 20px;
}
.product-images img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 10px;
}
.product-meta {
  flex: 1;
}
.product-title {
  margin-top: 0;
}
.add-to-cart {
  background-color: black;
  color: white;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

/* On Hover, Hide Default Image and Show Hover Image */
.grid-item:hover .default-img {
    opacity: 0;
}

.grid-item:hover .hover-img {
    opacity: 1;
}
@media screen and (max-width: 768px) {
    .grid-container {
        grid-template-columns: repeat(1, 1fr);
    }
}
@media screen and (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        padding: 0;
    }

    .header-left, .header-right {
        text-align: center;
        margin: 10px 0;
    }

    .header-center {
        flex-direction: column;
        margin: 0;
    }

    .header-right span {
        font-size: 14px;
    }

    #footer {
        padding: 10px 20px;
        flex-direction: column;
    }

    #chatbot-container {
        width: 90%;
        right: 5%;
    }

    #chat-output, #user-input {
        font-size: 12px;
    }

    #search-bar input[type="text"] {
        width: 90%;
    }

    #search-bar button {
        width: 25px;
        height: 25px;
    }
}

/* Active state for header navigation */
.header-center .dropdown > a.active,
.header-center .dropdown > a:active {
    color: #b50224 !important;
    font-weight: bold;
    position: relative;
}

/* Optional: Add underline effect for active state */
/* .header-center .dropdown > a.active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 2px;
    background-color: #b50224;
    border-radius: 1px;
} */

/* Smooth transition for header links */
.header-center .dropdown > a {
    transition: color 0.3s, font-weight 0.3s;
    position: relative;
}

/* Keep all other header links white */
.header-center .dropdown > a {
    color: white;
    text-decoration: none;
}

/* LOGIN MODAL STYLES */
.login-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.login-modal {
    background: white;
    padding: 30px;
    border-radius: 10px;
    width: 400px;
    max-width: 90%;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.modal-close:hover {
    color: #b50224;
}

.login-modal h2 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

.login-input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
}

.login-input:focus {
    outline: none;
    border-color: #b50224;
}

.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0;
}

.remember-me {
    display: flex;
    align-items: center;
    font-size: 14px;
}

.remember-me input {
    margin-right: 5px;
}

.login-options a {
    color: #b50224;
    text-decoration: none;
    font-size: 14px;
}

.login-options a:hover {
    text-decoration: underline;
}

.login-btn {
    width: 100%;
    padding: 12px;
    background-color: #b50224;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
}

.login-btn:hover {
    background-color: #900;
}

.signup-link {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}

.signup-link a {
    color: #b50224;
    text-decoration: none;
}

.signup-link a:hover {
    text-decoration: underline;
}

/* Enhanced Chatbot Styles */
#chat-input-container {
    margin-top: 10px;
}

#voice-controls {
    display: flex;
    gap: 5px;
    margin-top: 5px;
}

#voice-controls button {
    padding: 8px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    color: white;
    transition: all 0.3s ease;
}

#listen-btn {
    background-color: #007bff;
}

#speak-btn {
    background-color: #28a745;
}

#voice-controls button:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

#voice-controls button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
