/* --- QR Menu – Red Theme (qr-menu2.css) --- */
:root {
    --bg: #F7F1E3;
    --bg-alt: #EDE5D3;
    --bg-dark: #0A0A0A;
    --surface: #FFFFFF;
    --stn-white: #ffffff;
    --text: #1A1A1A;
    --text-secondary: #4A4A4A;
    --text-muted: #7A7A7A;
    --text-reverse-secondary: #000;
    --white: #fff;

    /* RED primary palette (replaces gold) */
    --red: #CC0000;
    --red-hover: #A30000;
    --red-light: #FFE6E6;
    --red-pale: rgba(204, 0, 0, 0.12);
    --red-grad: linear-gradient(135deg, #CC0000 0%, #E60000 50%, #990000 100%);
    --shadow-red: 0 8px 24px rgba(204, 0, 0, 0.25);

    --border: #D3C9B4;
    --border-light: #E3DDD0;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-subheading: 'Cinzel', serif;
    --font-body: 'Cormorant Garamond', Georgia, serif;
    --font-ui: 'Lato', 'Segoe UI', sans-serif;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-pill: 50px;
    --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.12);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --header-height: 0px;
    --top-buttons-offset: 1.5rem;
}

.dark {
    --bg: #0A0A0A;
    --bg-alt: #141414;
    --surface: #1A1A1A;
    --text: #F7F1E3;
    --stn-white: #ffffff;
    --text-secondary: #BFB8A8;
    --text-muted: #8C8678;
    --border: #2E2A23;
    --border-light: #3A352E;
    --text-reverse-secondary: #fff;
    --white: #fff;

    /* Brighter red in dark mode */
    --red: #E60000;
    --red-hover: #FF1A1A;
    --red-light: #2A0000;
    --red-pale: rgba(230, 0, 0, 0.10);

    --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.7);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.7;
    transition: background-color var(--transition), color var(--transition);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Full‑page background image – subtle and readable */
.page-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image: url('https://images.unsplash.com/photo-1572116469696-31de0f17cc34?w=2000&auto=format&fit=crop&q=60');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.08;
}

.dark .page-bg {
    opacity: 0.05;
}

/* ========== FIXED TOP BUTTONS ========== */
.top-btn {
    position: fixed;
    top: var(--top-buttons-offset);
    z-index: 110;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--red);
    border-radius: 50%;
    background: var(--surface);
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: var(--shadow-md);
    text-decoration: none;
    color: var(--red);
}

.top-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 28px rgba(204, 0, 0, 0.35);
}

.top-btn svg {
    width: 22px;
    height: 22px;
    position: absolute;
    transition: opacity 0.3s, transform 0.3s;
}

.gravano-logo {
    width: 150px;
    height: 150px;
}

.home-btn {
    left: var(--top-buttons-offset);
    width: 48px;
    height: 48px;
}

.home-btn svg {
    width: 22px;
    height: 22px;
}

.theme-toggle-btn {
    right: var(--top-buttons-offset);
    width: 48px;
    height: 48px;
}

.theme-toggle-btn .icon-sun {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

.theme-toggle-btn .icon-moon {
    opacity: 1;
    transform: rotate(0) scale(1);
}

.dark .theme-toggle-btn .icon-sun {
    opacity: 1;
    transform: rotate(0) scale(1);
}

.dark .theme-toggle-btn .icon-moon {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

/* ========== HERO ========== */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--bg-dark);
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
}

.dark .hero__bg img {
    opacity: 0.4;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg-dark), rgba(10, 10, 10, 0.3) 60%, transparent);
    z-index: 1;
}

.hero__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
    padding: 2rem;
    animation: fadeUp 1s ease;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero__overline {
    font-family: var(--font-subheading);
    font-size: 0.7rem;
    letter-spacing: 0.4em;
    color: var(--stn-white);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.hero__divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 200px;
    margin: 1rem auto;
}

.hero__divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--red), transparent);
}

.hero__divider-diamond {
    width: 6px;
    height: 6px;
    background: var(--red);
    transform: rotate(45deg);
}

.hero__title {
    font-family: var(--font-heading);
    font-size: clamp(3.5rem, 8vw, 6rem);
    font-weight: 700;
    color: var(--red);
    line-height: 1;
}

.hero__subtitle {
    font-family: var(--font-body);
    font-size: clamp(1.3rem, 2.5vw, 2rem);
    color: var(--white);
    font-style: italic;
    margin-top: 0.5rem;
}

.hero__scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

.hero__scroll svg {
    width: 24px;
    height: 24px;
    color: var(--red);
}

/* ========== STICKY CONTROLS (with spacing fix) ========== */
.sticky-controls {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 1rem 1rem;
    transition: all var(--transition);
    margin-top: 1.5rem;
    /* gap between hero and controls */
}

.controls__inner {
    max-width: 900px;
    margin: 0 auto;
}

.search-box {
    position: relative;
    max-width: 500px;
    margin: 0 auto 1rem;
}

.search-box input {
    width: 100%;
    padding: 0.9rem 1.2rem 0.9rem 3rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-pill);
    background: var(--surface);
    color: var(--text);
    font-family: var(--font-ui);
    font-size: 0.95rem;
    transition: all var(--transition);
}

.search-box input:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px var(--red-pale);
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.search-box svg {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.2rem;
    height: 1.2rem;
    color: var(--text-muted);
}

.filter-tabs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-tabs::-webkit-scrollbar {
    height: 0;
}

.filter-tab {
    font-family: var(--font-subheading);
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    padding: 0.6rem 1.2rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-pill);
    color: var(--text-reverse-secondary);
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    background: transparent;
    text-transform: uppercase;
    font-weight: 600;
}

.filter-tab:hover {
    border-color: var(--red);
    color: var(--red);
}

.filter-tab.active {
    background: var(--red-grad);
    color: #FFFFFF;
    border-color: transparent;
    font-weight: 700;
    box-shadow: var(--shadow-red);
}

#filterTabsContainer {
    transition: opacity 0.3s ease;
}

#filterTabsContainer[style*="display: none"] {
    opacity: 0;
}

/* ========== CART STYLES ========== */
.cart-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 200;
    background: var(--red);
    color: #FFFFFF;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    box-shadow: var(--shadow-red);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: var(--font-ui);
    font-weight: 700;
}

.cart-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(204, 0, 0, 0.4);
}

.cart-toggle .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #DC2626;
    color: #fff;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.cart-panel {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    max-width: 90vw;
    height: 100vh;
    background: var(--surface);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    z-index: 300;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    overflow-y: auto;
    font-family: var(--font-ui);
}

.cart-panel.open {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--red);
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
}

.cart-header h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--red);
    margin: 0;
}

.cart-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.cart-close:hover {
    color: var(--red);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 1rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border-light);
}

.cart-item .info {
    display: flex;
    flex-direction: column;
}

.cart-item .name {
    font-weight: 600;
    color: var(--text);
}

.cart-item .price {
    color: var(--red);
    font-size: 0.9rem;
}

.cart-item .remove-btn {
    background: none;
    border: none;
    color: #DC2626;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 0.5rem;
    transition: transform 0.2s;
}

.cart-item .remove-btn:hover {
    transform: scale(1.2);
}

.btn-submit {
    background: #16A34A;
    color: #fff;
}


.btn-submit:hover {
    background: #15803D;
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}


.cart-footer {
    border-top: 2px solid var(--border);
    padding-top: 1rem;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cart-total .total-price {
    color: var(--red);
}

.cart-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.cart-actions button {
    flex: 1;
    padding: 0.6rem 1rem;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    font-family: var(--font-ui);
    font-size: 0.9rem;
}

.cart-actions button:active {
    transform: scale(0.97);
}

.btn-clear {
    background: #DC2626;
    color: #fff;
}

.btn-clear:hover {
    background: #B91C1C;
}

.btn-print {
    background: var(--red);
    color: #fff;
}

.btn-print:hover {
    background: var(--red-hover);
}

.empty-cart {
    text-align: center;
    color: var(--text-muted);
    padding: 2rem 0;
    font-style: italic;
}

/* Mobile cart – bottom sheet */
@media (max-width: 768px) {
    .cart-panel {
        right: 0;
        top: auto;
        bottom: -100vh;
        width: 100%;
        max-width: 100%;
        height: 60vh;
        border-radius: 1.5rem 1.5rem 0 0;
        transition: bottom 0.3s ease;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
        padding: 1rem 1.5rem;
    }

    .cart-panel.open {
        bottom: 0;
        right: auto;
    }

    .cart-toggle {
        bottom: 1rem;
        right: 1rem;
        width: 56px;
        height: 56px;
        font-size: 1.3rem;
    }
}

/* Print styles */
@media print {

    .cart-panel,
    .cart-toggle {
        display: none;
    }

    .sticky-controls,
    .hero {
        display: none;
    }

    body {
        background: #fff !important;
    }
}

/* Selected menu card */
.menu-card.selected {
    border-color: var(--red);
    background: var(--red-pale);
    box-shadow: 0 0 0 2px var(--red);
}

.menu-card.selected .menu-card__price {
    color: var(--red-hover);
}

.menu-card .check-mark {
    display: none;
    margin-left: 0.5rem;
    color: var(--red);
    font-weight: 700;
}

.menu-card.selected .check-mark {
    display: inline;
}

/* ========== MENU WRAPPER (Two columns) ========== */
.menu-wrapper {
    display: flex;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1rem 3rem;
}

.menu-column {
    flex: 2;
    min-width: 0;
}

.info-column {
    flex: 1;
    min-width: 280px;
}

.info-sticky {
    position: sticky;
    top: 130px;
    /* approximate height of sticky controls + gap */
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* ========== SCROLLABLE MENU AREA ========== */
.menu-scrollable {
    overflow-y: auto;
    padding-right: 0.5rem;
    scroll-behavior: smooth;
}

.menu-scrollable::-webkit-scrollbar {
    width: 6px;
}

.menu-scrollable::-webkit-scrollbar-track {
    background: transparent;
}

.menu-scrollable::-webkit-scrollbar-thumb {
    background: var(--red);
    border-radius: 3px;
}

/* ========== CATEGORY HEADER ========== */
.category-header {
    position: relative;
    min-height: 180px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    background-size: cover;
    background-position: center;
}

.category-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.category-header__content {
    position: relative;
    z-index: 2;
}

.category-header__overline {
    font-family: var(--font-subheading);
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    color: var(--red-light);
    text-transform: uppercase;
}

.category-header__title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: #FFFFFF;
    font-style: italic;
}

.is-searching .category-header {
    display: none !important;
}

/* ========== ITEMS GRID ========== */
.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
    padding: 0.52rem;
    margin-bottom: 0.5rem;
}

.menu-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1rem 1.2rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    box-shadow: var(--shadow-sm);
}

.menu-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--red);
}

.menu-card--active {
    animation: cardPulse 0.4s ease;
    border-color: var(--red);
    box-shadow: 0 0 0 3px var(--red-pale);
}

@keyframes cardPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.03);
    }

    100% {
        transform: scale(1);
    }
}

.menu-card__info {
    flex: 1;
    min-width: 0;
    padding-right: 1rem;
}

.menu-card__name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--red);
    margin-bottom: 0.2rem;
}

.dark .menu-card__name {
    color: var(--stn-white);
}

.menu-card__desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.4;
}

.menu-card__price {
    font-family: var(--font-subheading);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--red);
    white-space: nowrap;
}

/* ========== PAGINATION CONTROLS ========== */
.pagination-controls {
    text-align: center;
    margin: 0.5rem 0 1.5rem;
}

.load-more-btn {
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.5rem 1.5rem;
    border: 1.5px solid var(--red);
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--red);
    cursor: pointer;
    transition: all var(--transition);
}

.load-more-btn:hover {
    background: var(--red);
    color: #FFFFFF;
    box-shadow: var(--shadow-red);
}

/* ========== INFO SIDEBAR CARDS ========== */
.info-card {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.8rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.info-card:hover {
    box-shadow: var(--shadow-md);
}

.info-card__title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--red);
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--red);
    letter-spacing: 0.03em;
}

.info-card__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 8px;
}



.info-card ul {
    list-style: none;
}

.info-card li {
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.95rem;
    color: var(--text-secondary);
    display: block;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.info-card li:last-child {
    border-bottom: none;
}

.event-highlight {
    color: var(--text);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.event-desc {
    text-align: right;
    font-size: 1rem;
    color: var(--text-muted);
    font-style: italic;
}

.event-time {
    color: var(--red);
}

.hours-day {
    font-weight: 600;
    color: var(--text);
}

.hours-time {
    color: var(--red);
    font-weight: 600;
    white-space: nowrap;
}

/* ========== NO RESULTS ========== */
.no-results {
    text-align: center;
    padding: 3rem 2rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-muted);
    font-style: italic;
}

/* ========== FOOTER ========== */
.footer {
    text-align: center;
    padding: 3rem 1.5rem 2rem;
    border-top: 1px solid var(--border);
    background: var(--bg-dark);
    color: var(--text-muted);
}

.footer__divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 200px;
    margin: 0 auto 1.5rem;
}

.footer__divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--red), transparent);
}

.footer__diamond {
    width: 6px;
    height: 6px;
    background: var(--red);
    transform: rotate(45deg);
}

.footer__name {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--red);
}

.footer__address {
    font-family: var(--font-body);
    font-size: 0.9rem;
    opacity: 0.7;
    margin-top: 0.5rem;
}

.footer__copyright {
    font-family: var(--font-ui);
    font-size: 0.6rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    opacity: 0.4;
    margin-top: 1.5rem;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
    .menu-wrapper {
        flex-direction: column;
    }

    .info-column {
        min-width: unset;
    }

    .info-sticky {
        position: static;
        top: auto;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .items-grid {
        grid-template-columns: 1fr;
        gap: 0.7rem;
    }

    .menu-card {
        padding: 0.8rem 1rem;
    }

    .menu-card__name {
        font-size: 1rem;
    }

    .menu-card__price {
        font-size: 0.95rem;
    }

    .category-header {
        min-height: 140px;
        padding: 1.5rem;
    }

    .category-header__title {
        font-size: 1.8rem;
    }

    .hero__title {
        font-size: 2.8rem;
    }

    .info-sticky {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    :root {
        --top-buttons-offset: 0.75rem;
    }

    .top-btn {
        width: 40px;
        height: 40px;
    }

    .top-btn svg {
        width: 18px;
        height: 18px;
    }

    .menu-scrollable {
        max-height: none !important;
        overflow-y: visible;
    }
}