/**
 * Menu Page Styles - Version 2.0
 * Photo hero + sidebar categories layout
 */

/* Wrapper — full width for sidebar layout */
.greco-menu-wrapper {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

/* ========================================
   Menu Photo Hero (like lokalizacja)
   ======================================== */

/* Transparent header on menu page */
body.page-menu {
    padding-top: 0 !important;
}

body.page-menu .wp-site-blocks > * {
    margin-block-start: 0 !important;
}

body.page-menu .wp-site-blocks {
    gap: 0 !important;
}

body.page-menu .site-main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.page-menu .site-main > * {
    margin-block-start: 0 !important;
}

/* Hero must break out of constrained container */
body.page-menu .menu-hero--photo {
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    width: 100vw !important;
    max-width: 100vw !important;
}

body.page-menu .site-header:not(.header-scrolled) {
    background: transparent !important;
    box-shadow: none;
    border-bottom-color: transparent;
}

body.page-menu .site-header:not(.header-scrolled) .header-wrapper {
    background: transparent !important;
    background-color: transparent !important;
}

body.page-menu .site-header:not(.header-scrolled) .site-logo {
    filter: brightness(0) invert(1);
}

body.page-menu .site-header:not(.header-scrolled) .main-navigation .menu-item > a:not(.sub-menu a),
body.page-menu .site-header:not(.header-scrolled) .nav-menu > li > a,
body.page-menu .site-header:not(.header-scrolled) .nav-menu > li > .menu-item-label {
    color: #FFFFFF;
}

body.page-menu .site-header:not(.header-scrolled) .nav-menu > li > a:hover,
body.page-menu .site-header:not(.header-scrolled) .nav-menu > li > .menu-item-label:hover {
    color: rgba(255, 255, 255, 0.7);
}

body.page-menu .site-header:not(.header-scrolled) .dropdown-trigger {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

body.page-menu .site-header:not(.header-scrolled) .dropdown-icon,
body.page-menu .site-header:not(.header-scrolled) .dropdown-chevron {
    color: #FFFFFF;
}

body.page-menu .site-header:not(.header-scrolled) .dropdown-text {
    color: #FFFFFF;
}

body.page-menu .site-header:not(.header-scrolled) .theme-toggle {
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.25);
}

body.page-menu .site-header:not(.header-scrolled) .mobile-menu-toggle {
    color: #FFFFFF;
}

/* Scrolled header — ensure solid background on menu page */
body.page-menu .site-header.header-scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.dark-mode body.page-menu .site-header.header-scrolled,
body.dark-mode.page-menu .site-header.header-scrolled {
    background: var(--greco-surface-overlay) !important;
    box-shadow: 0 1px 3px var(--greco-shadow);
}

/* Photo Hero — Container */
.menu-hero--photo {
    position: relative;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--wp--preset--spacing--60, 3rem);
    padding-top: 80px;
}

/* Background image layer */
.menu-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center 60%;
    background-repeat: no-repeat;
    transition: background-image 0.5s ease;
}

/* Overlay */
.menu-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        180deg,
        rgba(10, 31, 51, 0.60) 0%,
        rgba(10, 31, 51, 0.40) 40%,
        rgba(10, 31, 51, 0.30) 100%
    );
}

.dark-mode .menu-hero__overlay {
    background: linear-gradient(
        180deg,
        rgba(5, 12, 22, 0.65) 0%,
        rgba(5, 12, 22, 0.50) 40%,
        rgba(5, 12, 22, 0.40) 100%
    );
}

/* Content wrapper */
.menu-hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 3.5rem) 1.5rem;
    text-align: center;
}

/* Title */
.menu-hero__title {
    font-family: var(--wp--preset--font-family--heading);
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 800;
    font-style: normal;
    color: #fff;
    margin: 0 0 1rem;
    line-height: 1.1;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
}

/* Subtitle */
.menu-hero__subtitle {
    font-size: clamp(0.95rem, 1.5vw, 1.15rem);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.65;
    margin: 0 auto;
    max-width: 520px;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
    font-weight: 400;
}

.menu-hero__highlight--aegean {
    color: #7DD3FC;
    font-weight: 700;
}

.menu-hero__highlight--gold {
    color: #FCD34D;
    font-weight: 700;
}

/* Hide wpautop empty paragraphs inside hero */
.menu-hero__content > p:not(.menu-hero__subtitle),
.menu-hero__search > p,
.menu-hero__location-bar > p,
.menu-hero--photo > p {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
}

/* Location bar inside hero */
.menu-hero__location-bar {
    margin-top: 1.25rem;
}

.menu-hero__location-bar .greco-location-info-bar {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 0.75rem 1.25rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    text-align: left;
}

.menu-hero__location-bar .location-bar-main {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.menu-hero__location-bar .location-bar-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.menu-hero__location-bar .location-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
}

.menu-hero__location-bar .location-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.menu-hero__location-bar .location-title-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.menu-hero__location-bar .btn-change-location {
    color: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    font-size: 0.7rem;
    padding: 0.25rem 0.6rem;
}

.menu-hero__location-bar .btn-change-location:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.menu-hero__location-bar .location-bar-details {
    display: none;
}

.menu-hero__location-bar .location-bar-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.menu-hero__location-bar .btn-map {
    font-size: 0.8rem;
    padding: 0.45rem 0.9rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
    transition: all 0.2s;
}

.menu-hero__location-bar .btn-map:hover {
    background: rgba(255, 255, 255, 0.25);
}

.menu-hero__location-bar .btn-map svg {
    stroke: #fff;
}

.menu-hero__location-bar .order-buttons-group {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.menu-hero__location-bar .btn-order {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
}

.menu-hero__location-bar .order-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.7rem;
    white-space: nowrap;
}

/* Search bar + sort inside hero */
.menu-hero__search {
    margin-top: 1.5rem;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

.menu-hero__search-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.menu-hero__search-box {
    position: relative;
    flex: 1;
    min-width: 0;
}

/* Sort dropdown in hero */
.menu-hero__sort-box {
    flex-shrink: 0;
}

.menu-hero__sort-box select {
    height: 52px;
    padding: 0 2.2rem 0 1rem;
    border: none;
    border-radius: 9999px;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.92);
    color: #1a1a1a;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
    transition: all 0.2s ease;
}

.menu-hero__sort-box select:focus {
    outline: none;
    background-color: #fff;
    border: 2px solid var(--wp--preset--color--gold, #C9A227);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.dark-mode .menu-hero__sort-box select {
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.6)' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}

.dark-mode .menu-hero__sort-box select:focus {
    background-color: rgba(255, 255, 255, 0.22);
    border-color: var(--greco-accent);
}

.dark-mode .menu-hero__sort-box select option {
    background-color: var(--greco-bg-solid);
    color: var(--greco-text);
}

/* View Toggle (grid/list) */
.menu-hero__view-toggle {
    display: flex;
    gap: 0;
    flex-shrink: 0;
    border-radius: 9999px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.greco-view-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.greco-view-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
}

.greco-view-btn.active {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.dark-mode .menu-hero__view-toggle {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
}

.menu-hero__search-box input {
    width: 100%;
    height: 52px;
    padding: 0 1.25rem 0 3.25rem;
    border: none;
    border-radius: 9999px;
    font-size: 1rem;
    line-height: 52px;
    background: rgba(255, 255, 255, 0.92);
    box-sizing: border-box;
    color: #1a1a1a;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

.menu-hero__search-box input::placeholder {
    color: #9CA3AF;
}

.menu-hero__search-box input:focus {
    outline: none;
    background: #fff;
    border: 2px solid var(--wp--preset--color--gold, #C9A227);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.menu-hero__search-box svg {
    position: absolute;
    left: 1.15rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #9CA3AF;
    pointer-events: none;
    z-index: 1;
}

.dark-mode .menu-hero__search-box input {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
}

.dark-mode .menu-hero__search-box input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.dark-mode .menu-hero__search-box input:focus {
    background: rgba(255, 255, 255, 0.22);
    border-color: var(--greco-accent);
}

.dark-mode .menu-hero__search-box svg {
    color: rgba(255, 255, 255, 0.6);
}

/* Dark mode overrides for hero location bar buttons */
.dark-mode .menu-hero__location-bar .btn-map {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.dark-mode .menu-hero__location-bar .btn-map:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.dark-mode .menu-hero__location-bar .btn-map svg {
    stroke: #fff;
}

/* Filter chips inside hero */
.menu-hero__filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.menu-hero__filter-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
}

.menu-hero__filter-label svg {
    width: 16px;
    height: 16px;
}

.menu-hero__filters .greco-filter-chip {
    padding: 0.3rem 0.85rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1.4;
}

.menu-hero__filters .greco-filter-chip:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.4);
}

.menu-hero__filters .greco-filter-chip.active {
    background: var(--wp--preset--color--gold, #C9A227);
    border-color: var(--wp--preset--color--gold, #C9A227);
    color: #fff;
}

.menu-hero__filters .greco-filter-chip.has-color {
    border-color: transparent;
}

.menu-hero__filters .greco-filter-chip.has-color:hover {
    filter: brightness(1.15);
    border-color: transparent;
}

/* Hide old filter row (cached HTML fallback) */
.greco-filter-row {
    display: none !important;
}

/* Responsive — Tablet */
@media (max-width: 768px) {
    .menu-hero--photo {
        min-height: 550px;
        padding-top: 70px;
    }

    .menu-hero__content {
        padding: clamp(1.5rem, 4vw, 3rem) 1.25rem;
    }

    .menu-hero__search-box input {
        height: 46px;
        line-height: 46px;
        font-size: 0.95rem;
    }

    .menu-hero__sort-box select {
        height: 46px;
        font-size: 0.9rem;
    }
}

/* Responsive — Small mobile */
@media (max-width: 480px) {
    .menu-hero--photo {
        min-height: 500px;
    }

    .menu-hero__content {
        padding: 1.5rem 1rem;
    }

    .menu-hero__title {
        font-size: 2rem;
    }

    .menu-hero__subtitle {
        font-size: 0.9rem;
    }

    .menu-hero__search-row {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .menu-hero__search-box {
        width: 100%;
    }

    .menu-hero__search-box input {
        height: 44px;
        line-height: 44px;
    }

    .menu-hero__sort-box {
        flex: 1;
    }

    .menu-hero__sort-box select {
        width: 100%;
        height: 44px;
    }

    .greco-view-btn {
        width: 38px;
        height: 38px;
    }

    .greco-menu-grid.list-view .greco-dish-image-wrapper {
        width: 100px;
        min-width: 100px;
        max-width: 100px;
    }

    .menu-hero__location-bar .greco-location-info-bar {
        flex-direction: column;
        padding: 0.6rem 1rem;
        gap: 0.4rem;
        text-align: center;
    }

    .menu-hero__location-bar .location-bar-main {
        flex-direction: column;
        gap: 0.25rem;
    }

    .menu-hero__location-bar .location-bar-header {
        flex-direction: column;
        gap: 0.2rem;
    }

    .menu-hero__location-bar .location-title {
        font-size: 1rem;
    }

    .menu-hero__location-bar .location-title-row {
        justify-content: center;
    }

    .menu-hero__location-bar .location-bar-actions {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.4rem;
    }

    .menu-hero__location-bar .btn-map {
        font-size: 0.75rem;
        padding: 0.35rem 0.75rem;
    }

    .menu-hero__location-bar .order-buttons-group {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Location Required Overlay */
.greco-location-required {
    text-align: center;
    padding: 4rem 2rem;
    background: #F9FAFB;
    border-radius: 1rem;
    margin: 2rem 0;
}

.greco-location-required h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--wp--preset--color--dark);
}

.greco-location-required p {
    color: var(--wp--preset--color--gray);
    margin-bottom: 1.5rem;
}

.greco-location-required .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--wp--preset--color--aegean);
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.greco-location-required .btn:hover {
    background: var(--wp--preset--color--aegean-light);
}

.dark-mode .greco-location-required .btn {
    background: linear-gradient(135deg, var(--greco-accent) 0%, var(--greco-accent-soft) 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--greco-accent) 30%, transparent);
}

.dark-mode .greco-location-required .btn:hover {
    background: linear-gradient(135deg, var(--greco-accent-soft) 0%, var(--greco-accent) 100%);
    color: #ffffff;
    box-shadow: 0 6px 18px color-mix(in srgb, var(--greco-accent) 40%, transparent);
}

/* Controls Row */
.greco-menu-controls {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-bottom: 0.5rem;
    align-items: center;
}

/* Hide P and BR tags injected by WordPress wpautop inside menu containers */
/* But exclude category divider descriptions */
.greco-menu-controls p,
.greco-filter-row p,
.greco-tag-filters p,
.greco-menu-grid p:not(.greco-category-divider-desc) {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
}

.greco-filter-chip br,
.greco-tab-link br,
.greco-menu-tabs br {
    display: none !important;
}

/* Search & sort moved to hero — hide old controls row (also handles cached HTML) */
.greco-menu-controls {
    display: none !important;
}

.greco-search-box {
    position: relative;
    width: 100%;
    height: 48px;
    display: flex;
    align-items: center;
}

.greco-search-box br {
    display: none;
}

.greco-sort-box {
    width: auto;
    height: 48px;
    display: flex;
    align-items: center;
}

.greco-search-box input {
    width: 100%;
    height: 48px;
    padding: 0 1rem 0 3rem;
    border: 1px solid #E5E7EB;
    border-radius: 0.5rem;
    font-size: 1rem;
    line-height: 48px;
    background: #fff;
    box-sizing: border-box;
}

.greco-search-box input:focus {
    outline: none;
    border-color: var(--wp--preset--color--aegean);
    box-shadow: 0 0 0 3px rgba(30, 91, 140, 0.1);
}

.greco-search-box svg {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #9CA3AF;
    pointer-events: none;
}

.greco-sort-box select {
    height: 48px;
    padding: 0 2.5rem 0 1.25rem;
    border: 1px solid #E5E7EB;
    border-radius: 0.5rem;
    background-color: #fff;
    cursor: pointer;
    font-size: 0.9rem;
    min-width: 160px;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="none" stroke="%236B7280" stroke-width="2" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M6 9l6 6 6-6"/></svg>');
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    box-sizing: border-box;
}

@media (max-width: 767px) {
    .greco-sort-box select {
        width: 100%;
    }
}

/* Filter Row */
.greco-filter-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    padding: 0;
}

.filter-label {
    color: #6B7280;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    line-height: 1;
}

.filter-label svg {
    width: 16px;
    height: 16px;
    stroke: #6B7280;
    flex-shrink: 0;
    display: inline-block;
}

.filter-label br {
    display: none;
}

.greco-tag-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.greco-filter-chip {
    display: inline-block;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(30, 77, 107, 0.1);
    border-radius: 12px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    color: #374151;
    line-height: 1.3;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.greco-filter-chip:hover {
    background: rgba(30, 77, 107, 0.08);
    border-color: rgba(30, 77, 107, 0.25);
    color: #1E4D6B;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 77, 107, 0.15);
}

.greco-menu-wrapper .greco-filter-chip.active {
    background: linear-gradient(135deg, #1E4D6B 0%, #2A7AB8 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(30, 77, 107, 0.3);
}

/* Active filter chip gold underline */
.greco-filter-chip.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, #C9A227, #E8D5A3, #C9A227);
    border-radius: 2px;
}

/* ========================================
   Sidebar + Grid Layout
   ======================================== */

.greco-menu-layout {
    display: flex;
    gap: 0;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--wp--preset--spacing--40, 1.5rem);
}

.greco-menu-main {
    flex: 1;
    min-width: 0;
}

/* ========================================
   Category Sidebar (Desktop)
   ======================================== */
.greco-menu-tabs-wrapper {
    position: sticky;
    top: 90px;
    z-index: 100;
    align-self: flex-start;
    flex-shrink: 0;
    width: 220px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    padding: 1rem 0;
    margin-right: 2rem;
    scrollbar-width: thin;
}

.greco-menu-tabs-wrapper::-webkit-scrollbar {
    width: 4px;
}

.greco-menu-tabs-wrapper::-webkit-scrollbar-thumb {
    background: rgba(30, 77, 107, 0.2);
    border-radius: 4px;
}

/* Category Tabs Container — Vertical on desktop */
.greco-menu-tabs {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 16px;
    border: 2px solid rgba(30, 77, 107, 0.12);
    box-shadow: 0 4px 24px rgba(10, 31, 51, 0.08);
}

.dark-mode .greco-menu-tabs {
    background: var(--greco-surface-elevated);
    border-color: var(--greco-border-subtle);
}

.greco-menu-tabs::-webkit-scrollbar {
    display: none;
}

/* Tab Links */
.greco-tab-link {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(30, 77, 107, 0.1);
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--wp--preset--color--dark, #1F2937);
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    line-height: 1.2;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    text-align: left;
    width: 100%;
}

/* Tab subtle sheen */
.greco-tab-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.greco-tab-link:hover::before {
    transform: translateX(100%);
}

.greco-tab-link:hover {
    background: rgba(30, 77, 107, 0.08);
    border-color: rgba(30, 77, 107, 0.25);
    color: #1E4D6B;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(30, 77, 107, 0.15);
}

/* Active Tab */
.greco-tab-link.active {
    background: linear-gradient(135deg, #1E4D6B 0%, #2A7AB8 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 16px rgba(30, 77, 107, 0.3);
}

/* Active State Gold Left Border on desktop */
.greco-tab-link.active::after {
    content: '';
    position: absolute;
    left: -1px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: linear-gradient(180deg, #C9A227, #E8D5A3, #C9A227);
    border-radius: 2px;
}

/* Tab Icon Styles */
.greco-tab-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.greco-tab-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Active tab - white icon */
.greco-tab-link.active .greco-tab-icon svg {
    fill: #fff;
}

/* Category Section Header */
.greco-category-header {
    margin-bottom: 2rem;
    text-align: center;
}

.greco-category-header h2 {
    position: relative;
    display: inline-block;
    font-size: 1.75rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    padding-bottom: 1rem;
    color: #111827;
}

.greco-category-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #C9A227, #E8D5A3, #C9A227, transparent);
    border-radius: 2px;
}

.greco-category-header p {
    color: #6B7280;
    margin: 0;
    font-size: 1rem;
}

/* Category Dividers for "All Menu" mode */
.greco-category-divider {
    grid-column: 1 / -1;
    padding: 2rem 0 1rem;
    margin-top: 1rem;
}

.greco-category-divider:first-child {
    margin-top: 0;
    padding-top: 0;
}

.greco-category-divider-content {
    text-align: center;
    position: relative;
}

.greco-category-divider-title {
    position: relative;
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    padding-bottom: 0.75rem;
    color: #111827;
}

.greco-category-divider-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #C9A227, #E8D5A3, #C9A227, transparent);
    border-radius: 2px;
}

.greco-category-divider-desc {
    color: #6B7280;
    margin: 0;
    font-size: 0.9rem;
}

/* Dark mode for category dividers */
.dark-mode .greco-category-divider-title {
    color: var(--greco-text);
}

.dark-mode .greco-category-divider-desc {
    color: var(--greco-text-muted);
}

/* Grid */
.greco-menu-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .greco-menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .greco-menu-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ========================================
   List View
   ======================================== */
.greco-menu-grid.list-view {
    grid-template-columns: 1fr;
}

.greco-menu-grid.list-view .greco-dish-card {
    flex-direction: row;
    border-radius: 12px;
}

.greco-menu-grid.list-view .greco-dish-image-wrapper {
    aspect-ratio: 1/1;
    width: 120px;
    min-width: 120px;
    max-width: 120px;
    border-radius: 12px 0 0 12px;
}

.greco-menu-grid.list-view .greco-dish-content {
    padding: 0.875rem 1rem;
    justify-content: center;
}

.greco-menu-grid.list-view .greco-dish-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.25rem;
}

.greco-menu-grid.list-view .greco-dish-gramatura {
    display: none;
}

.greco-menu-grid.list-view .greco-dish-card:hover {
    transform: translateY(-2px);
}

.greco-menu-grid.list-view .greco-dish-card:hover .greco-dish-image-wrapper img {
    transform: scale(1.05);
}

@media (min-width: 640px) {
    .greco-menu-grid.list-view .greco-dish-image-wrapper {
        width: 160px;
        min-width: 160px;
        max-width: 160px;
    }
}

@media (min-width: 1024px) {
    .greco-menu-grid.list-view {
        grid-template-columns: 1fr;
    }

    .greco-menu-grid.list-view .greco-dish-image-wrapper {
        width: 180px;
        min-width: 180px;
        max-width: 180px;
    }
}

/* Location Modal Specific Styles */
.greco-location-modal .greco-modal-container {
    max-width: 900px;
    width: 95%;
}

.greco-location-modal-container {
    max-width: 900px;
    width: 95%;
}

.greco-location-modal-content {
    padding: 2rem;
    overflow-y: auto;
    max-height: calc(90vh - 4rem);
}

.greco-modal-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: var(--wp--preset--color--dark, #111827);
}

.greco-modal-subtitle {
    font-size: 1rem;
    color: var(--wp--preset--color--gray, #6B7280);
    margin: 0 0 1.5rem 0;
}

/* Dark Mode Support for Location Modal — uses --greco-* tokens (theme-tokens.css) */
.dark-mode .greco-location-modal-container {
    background: var(--greco-bg-gradient);
}

.dark-mode .greco-modal-title {
    color: var(--greco-text);
}

.dark-mode .greco-location-card {
    background: var(--greco-card-bg);
    border-color: var(--greco-card-border);
    backdrop-filter: var(--greco-card-blur);
    -webkit-backdrop-filter: var(--greco-card-blur);
    box-shadow: var(--greco-card-shadow);
}

.dark-mode .greco-location-card-title {
    color: var(--greco-text);
}

.dark-mode .greco-location-card:hover {
    border-color: var(--greco-accent);
}

.dark-mode .greco-location-card.is-selected {
    border-color: var(--greco-accent);
    background: color-mix(in srgb, var(--greco-accent) 14%, var(--greco-card-bg));
    box-shadow: 0 4px 24px color-mix(in srgb, var(--greco-accent) 22%, transparent);
}

.dark-mode .greco-location-info-row {
    color: var(--greco-text-muted);
}

.dark-mode .greco-location-info-row svg {
    color: var(--greco-accent);
}

.dark-mode .greco-location-info-row a {
    color: var(--greco-text);
}

.dark-mode .greco-location-info-row a:hover {
    color: var(--greco-accent);
}

/* Location buttons (modal + archive grid) and badge handled in dark-mode.css (loaded globally) */

/* ========================================
   Refined Grid for Location Modal
   ======================================== */
.greco-locations-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.greco-location-card {
    box-sizing: border-box;
    border: 1px solid #E5E7EB;
    border-radius: 1rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
    background: #fff;
    height: 100%;
}

.greco-location-card:hover {
    border-color: var(--greco-accent, var(--wp--preset--color--aegean, #1E5B8C));
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Typography refinements for Location Card */
.greco-location-card-title {
    margin: 0 0 0.75rem 0;
    font-size: 1.125rem;
    /* Reduced from 1.25rem */
    font-weight: 600;
    line-height: 1.4;
    color: var(--wp--preset--color--dark);
}

.greco-location-card-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.5rem;
}

.greco-location-card-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.greco-location-info-row {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    color: var(--wp--preset--color--gray);
    font-size: 0.8125rem;
    line-height: 1.5;
}

.greco-location-info-row svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 0.125rem;
    color: var(--greco-accent, var(--wp--preset--color--aegean, #1E5B8C));
}

.greco-location-info-row a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.greco-location-info-row a:hover {
    color: var(--greco-accent, var(--wp--preset--color--aegean, #1E5B8C));
    text-decoration: underline;
}

.location-select-btn {
    margin-top: auto;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    border-radius: 0.5rem;
}

/* Dish Card - Premium Style */
.greco-dish-card {
    background: rgba(255, 255, 255, 0.97);
    border: 1.5px solid rgba(30, 77, 107, 0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    width: 100%;
    box-shadow: 0 4px 16px rgba(10, 31, 51, 0.06);
    position: relative;
}

/* Subtle sheen effect */
.greco-dish-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.15) 0%,
            transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.greco-dish-card:hover {
    transform: translateY(-6px);
    border-color: rgba(30, 77, 107, 0.2);
    box-shadow: 0 12px 36px rgba(10, 31, 51, 0.12), 0 4px 12px rgba(10, 31, 51, 0.08);
}

/* Dark Mode Dish Card */
.dark-mode .greco-dish-card {
    background: var(--greco-card-bg);
    border-color: var(--greco-card-border);
}

.dark-mode .greco-dish-card:hover {
    border-color: var(--greco-border-strong);
    box-shadow: 0 12px 36px var(--greco-shadow);
}

.greco-dish-image-wrapper {
    position: relative;
    aspect-ratio: 4/3;
    background-color: rgba(249, 250, 251, 0.8);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.greco-dish-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.greco-dish-card:hover .greco-dish-image-wrapper img {
    transform: scale(1.08);
}

.greco-dish-placeholder-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(30, 77, 107, 0.1) 0%, rgba(30, 77, 107, 0.05) 100%);
    border-radius: 50%;
}

.greco-dish-badges {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    max-width: calc(100% - 1.5rem);
    z-index: 2;
}

.greco-badge {
    padding: 0.25rem 0.625rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.97);
    color: #374151;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Badge Colors */
.greco-badge.wegetarianskie {
    background: rgba(220, 252, 231, 0.95);
    color: #166534;
}

.greco-badge.weganskie {
    background: rgba(236, 252, 203, 0.95);
    color: #365314;
}

.greco-badge.ostre {
    background: rgba(254, 226, 226, 0.95);
    color: #991b1b;
}

.greco-badge.nowosc {
    background: rgba(30, 77, 107, 0.95);
    color: #fff;
}

.greco-badge.popularne {
    background: linear-gradient(135deg, #C9A227 0%, #E8D5A3 100%);
    color: #fff;
}

.greco-badge.bezglutenowe {
    background: rgba(254, 243, 199, 0.95);
    color: #92400E;
}

.greco-dish-content {
    padding: 1rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    text-align: left;
    position: relative;
    z-index: 2;
}

.greco-dish-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    gap: 0.75rem;
}

.greco-dish-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--wp--preset--color--dark, #111827);
}

.dark-mode .greco-dish-title {
    color: var(--greco-text);
}

/* Patina Gold Price */
.greco-dish-price {
    font-weight: 700;
    font-size: 1.1rem;
    color: #C9A227;
    white-space: nowrap;
}

.dark-mode .greco-dish-price {
    color: var(--greco-accent);
}

.greco-dish-desc {
    color: var(--wp--preset--color--gray, #6B7280);
    font-size: 0.8125rem;
    line-height: 1.5;
    flex: 1;
    margin-bottom: 0.75rem;
    text-align: left;
}

.dark-mode .greco-dish-desc {
    color: var(--greco-text-muted);
}

.greco-dish-meta-footer {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: #D97706;
    font-size: 0.75rem;
    font-weight: 500;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid #F3F4F6;
}

.greco-dish-meta-footer svg {
    flex-shrink: 0;
    color: #D97706;
    stroke: #D97706;
}

.greco-allergen-label {
    font-weight: 600;
    color: #D97706;
    margin-right: 0.25rem;
}

/* Modal - Liquid Glass Premium Style */
.greco-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
    background: rgba(10, 31, 51, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
}

.greco-modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Modal Backdrop - Fixed full screen, above header */
.greco-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 31, 51, 0.75);
    z-index: 99999;
}

.greco-modal-container {
    background: rgba(255, 255, 255, 0.98);
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    z-index: 100000;
    box-shadow: 0 25px 80px rgba(10, 31, 51, 0.25), 0 10px 30px rgba(10, 31, 51, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.6);
    display: flex;
    flex-direction: column;
    transform: scale(0.95) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.greco-modal-overlay.open .greco-modal-container {
    transform: scale(1) translateY(0);
}

.greco-modal-container-inner {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    max-height: 90vh;
}

@media (min-width: 768px) {
    /* Row layout: zdjęcie po lewej, opis po prawej. Image-area ma aspect-ratio
       ustawioną dynamicznie przez JS (window.GrecoDishModal.open) z natural
       dimensions zdjęcia — pole dopasowuje szerokość do wysokości × natural
       aspect, więc object-fit: cover wypełnia bez letterboxa ani cropowania. */
    .greco-modal-container {
        display: flex;
        flex-direction: row;
        max-width: 1000px;
        /* max-height containera = max-height image-area (60vh) — bez tej synchronizacji
           container rósł z content do max-height 80vh, a image-area ograniczona do
           60vh zostawiała pusty pasek pod spodem. Treść dłuższa niż 60vh przewija się
           wewnątrz .greco-modal-content (overflow-y: auto). */
        max-height: 60vh;
        /* stretch: image-area rośnie do pełnej wysokości containera. Inline aspect-ratio
           ze skryptu jest preferencją, ale stretch w cross-axis ma pierwszeństwo.
           Zdjęcie wewnątrz z object-fit: contain + object-position: center daje
           symetryczne paski u góry/dołu, niewidoczne na białym tle image-area
           (rgba(255,255,255,0.98) zlewa się z białym containera). */
        align-items: stretch;
    }

    .greco-modal-image-area {
        flex: 0 0 auto;
        width: auto;
        height: auto;
        max-height: 60vh;
        max-width: 50%;
        /* aspect-ratio: ustawiane inline przez JS, np. "1024 / 976" */
    }

    .greco-modal-image-area img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
    }

    .greco-modal-content {
        flex: 1 1 0;
        min-width: 0;
        overflow-y: auto;
    }
}

.greco-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(30, 77, 107, 0.1);
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(10, 31, 51, 0.12);
    transition: transform 0.3s ease, background 0.3s ease;
    line-height: 1;
    color: #1E4D6B;
}

.greco-modal-close:hover {
    transform: scale(1.1);
    background: #fff;
    box-shadow: 0 6px 20px rgba(10, 31, 51, 0.18);
}

.greco-modal-image-area {
    /* Białe tło zlewa się z tłem modala — letterbox z object-fit: contain
       staje się niewidoczny, a zdjęcie pokazuje się w całości, proporcjonalnie.
       max-height mobile-only poniżej; na desktop @media (min-width: 768px)
       wprost ustawia max-height: 60vh — bez tej separacji obie reguły mają
       równą specyficzność i ta-niżej-w-pliku (40vh) wygrywała. */
    background: rgba(255, 255, 255, 0.98);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

@media (max-width: 767px) {
    .greco-modal-image-area {
        max-height: 40vh;
    }
}

.greco-modal-image-area img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.greco-modal-allergens-title {
    color: #D97706;
    display: flex;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.greco-modal-allergens-title svg {
    color: #D97706;
    stroke: #D97706;
}

.greco-modal-image-area .greco-dish-placeholder-icon {
    width: 120px;
    height: 120px;
}

/* Homepage "Nasze menu" cards (.menu-item) have a flat grid layout without a
   relative image wrapper, so the absolutely-positioned badges collide with
   the title. Hide them on the card — dish-modal.js still reads innerHTML
   from the (hidden) element to populate #modal-badges. */
.menu-item .greco-dish-badges {
    display: none;
}

.greco-modal-image-area .greco-dish-badges {
    bottom: 1rem;
    top: auto;
}

/* Modal Content - Left Aligned */
.greco-modal-content {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    text-align: left;
}

@media (min-width: 768px) {
    .greco-modal-content {
        max-height: none;
    }
}

.greco-modal-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
    color: var(--wp--preset--color--dark, #111827);
    line-height: 1.2;
    text-align: left;
}

/* Patina Gold Price */
.greco-modal-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #C9A227;
    margin-bottom: 1.25rem;
    text-align: left;
}

.greco-modal-desc {
    color: var(--wp--preset--color--gray, #6B7280);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
    text-align: left;
}

.greco-modal-section {
    margin-bottom: 1.25rem;
    text-align: left;
}

.greco-modal-section h4 {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #1E4D6B;
    margin: 0 0 0.625rem 0;
    font-weight: 700;
    display: flex;
    align-items: center;
    text-align: left;
}

.greco-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-start;
}

.greco-pill {
    background: rgba(30, 77, 107, 0.08);
    padding: 0.375rem 0.875rem;
    border-radius: 8px;
    font-size: 0.8125rem;
    color: #1E4D6B;
    font-weight: 500;
    border: 1px solid rgba(30, 77, 107, 0.1);
}

.greco-pills--dark .greco-pill {
    background: linear-gradient(135deg, rgba(30, 77, 107, 0.9) 0%, rgba(42, 122, 184, 0.9) 100%);
    color: #fff;
    border-color: transparent;
}

/* No items message */
.greco-no-items,
.greco-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 2rem;
    color: #6B7280;
    display: none !important;
}

.greco-no-results.visible {
    display: block !important;
}

.greco-no-results h3 {
    font-size: 1.25rem;
    color: #374151;
    margin-bottom: 0.5rem;
}

.greco-no-results p {
    margin: 0;
    font-size: 0.9375rem;
}

/* ========================================
   Dark Mode Styles for Menu Page
   ======================================== */

.dark-mode .greco-menu-wrapper {
    color: var(--greco-text);
}

.dark-mode .greco-location-required {
    background: var(--greco-surface-elevated);
}

.dark-mode .greco-location-required h3 {
    color: var(--greco-text);
}

.dark-mode .greco-search-box input {
    background: var(--greco-surface-elevated);
    border-color: var(--greco-border-subtle);
    color: var(--greco-text);
}

.dark-mode .greco-search-box input::placeholder {
    color: var(--greco-text-muted);
}

.dark-mode .greco-sort-box select {
    background-color: var(--greco-surface-elevated);
    border-color: var(--greco-border-subtle);
    color: var(--greco-text);
}

.dark-mode .greco-sort-box select option {
    background-color: var(--greco-bg-solid);
    color: var(--greco-text);
}

.dark-mode .greco-filter-chip {
    background: var(--greco-surface-elevated);
    border-color: var(--greco-border-subtle);
    color: var(--greco-text);
}

.dark-mode .greco-filter-chip:hover {
    background: var(--greco-accent-glow);
    border-color: var(--greco-border-strong);
    color: var(--greco-text);
    box-shadow: 0 4px 12px var(--greco-shadow);
}

.dark-mode .greco-menu-wrapper .greco-filter-chip.active {
    background: linear-gradient(135deg, var(--greco-accent) 0%, var(--greco-accent-soft) 100%);
    color: var(--greco-accent-on);
    border-color: transparent;
    box-shadow: 0 4px 16px color-mix(in srgb, var(--greco-accent) 30%, transparent);
}

.dark-mode .greco-menu-tabs {
    background: transparent;
}

.dark-mode .greco-tab-link {
    background: var(--greco-surface-elevated);
    border-color: var(--greco-border-subtle);
    color: var(--greco-text-muted);
}

.dark-mode .greco-tab-link:hover {
    background: var(--greco-accent-glow);
    border-color: var(--greco-accent);
    color: var(--greco-accent);
}

.dark-mode .greco-tab-link.active {
    background: var(--greco-accent);
    border-color: var(--greco-accent);
    color: var(--greco-accent-on);
}

.dark-mode .greco-category-header h2 {
    color: var(--greco-text);
}

.dark-mode .greco-category-header p {
    color: var(--greco-text-muted);
}

.dark-mode .greco-dish-card {
    background: var(--greco-card-bg);
    border-color: var(--greco-card-border);
}

.dark-mode .greco-dish-card:hover {
    border-color: var(--greco-border-strong);
    box-shadow: 0 4px 12px var(--greco-shadow);
}

.dark-mode .greco-dish-image-wrapper {
    background-color: var(--greco-tile-bg);
}

.dark-mode .greco-dish-title {
    color: var(--greco-text);
}

.dark-mode .greco-dish-price {
    color: var(--greco-accent);
}

.dark-mode .greco-dish-meta-footer {
    border-top-color: var(--greco-border-subtle);
}

/* Modal Dark Mode */
.dark-mode .greco-modal-container {
    background: var(--greco-bg-solid);
}

.dark-mode .greco-modal-close {
    background: var(--greco-surface-elevated);
    color: var(--greco-text);
}

.dark-mode .greco-modal-image-area {
    background-color: var(--greco-tile-bg);
}

.dark-mode .greco-modal-content h2 {
    color: var(--greco-text);
}

.dark-mode .greco-modal-price {
    color: var(--greco-accent);
}

.dark-mode .greco-modal-section h4 {
    color: var(--greco-text-muted);
}

.dark-mode .greco-pill {
    background: var(--greco-surface-elevated);
    color: var(--greco-text);
}

/* Hide unavailable items */
.greco-dish-card.is-unavailable {
    display: none;
}

/* Focus-visible for interactive elements */
.greco-filter-chip:focus-visible,
.greco-tab-link:focus-visible,
.greco-modal-close:focus-visible,
#greco-menu-search:focus-visible,
#greco-menu-sort:focus-visible {
    outline: 2px solid var(--wp--preset--color--aegean, #1E4D6B);
    outline-offset: 2px;
}

/* ========================================
   Mobile Layout — Bottom Category Bar
   ======================================== */

@media (max-width: 899px) {
    .greco-menu-layout {
        flex-direction: column;
        padding: 0 1rem;
    }

    .greco-menu-tabs-wrapper {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        width: 100%;
        max-height: none;
        overflow: visible;
        z-index: 9999;
        margin: 0;
        padding: 0;
        background: rgba(255, 255, 255, 0.97);
        border-top: 1px solid rgba(30, 77, 107, 0.1);
        box-shadow: 0 -4px 20px rgba(10, 31, 51, 0.1);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

    .dark-mode .greco-menu-tabs-wrapper {
        background: var(--greco-surface-overlay);
        border-top-color: var(--greco-border-subtle);
    }

    .greco-menu-tabs {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        gap: 0.375rem;
        padding: 0.5rem 0.75rem;
        padding-bottom: calc(0.5rem + env(safe-area-inset-bottom, 0px));
        border: none;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        scrollbar-width: none;
    }

    .greco-menu-tabs::-webkit-scrollbar {
        display: none;
    }

    .greco-tab-link {
        flex-direction: row;
        flex-shrink: 0;
        padding: 0.4rem 0.75rem;
        font-size: 0.75rem;
        gap: 0.35rem;
        min-width: auto;
        width: auto;
        border: 1px solid rgba(30, 77, 107, 0.1);
        background: rgba(255, 255, 255, 0.6);
        border-radius: 20px;
    }

    .greco-tab-link:hover {
        transform: none;
        box-shadow: none;
    }

    .greco-tab-link.active {
        background: linear-gradient(135deg, #1E4D6B 0%, #2A7AB8 100%);
        border-color: transparent;
        border-radius: 20px;
    }

    .greco-tab-link.active::after {
        display: none;
    }

    .greco-tab-icon {
        width: 16px;
        height: 16px;
    }

    .greco-tab-icon svg {
        width: 16px;
        height: 16px;
    }

    .greco-tab-name {
        font-size: 0.75rem;
        line-height: 1;
    }

    /* Add padding at bottom of page so content isn't hidden behind bottom bar */
    .greco-menu-wrapper {
        padding-bottom: 80px;
    }
}

/* ========================================
   Desktop — Ensure sidebar is visible
   ======================================== */

@media (min-width: 900px) {
    .greco-menu-tabs-wrapper {
        display: block;
    }

    .greco-menu-layout {
        display: flex;
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===== Variant Groups (modal selector) ===== */
.greco-modal-variants {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.greco-variant-group {
    border: 1px solid rgba(30, 77, 107, 0.08);
    border-radius: 12px;
    padding: 0.875rem 1rem;
    background: rgba(30, 77, 107, 0.03);
}

.greco-variant-group__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.greco-variant-group__label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #1E4D6B;
    margin: 0;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.greco-variant-required {
    color: #C9A227;
    font-weight: 700;
}

.greco-variant-group__hint {
    font-size: 0.75rem;
    color: #9CA3AF;
    font-style: italic;
}

.greco-variant-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.greco-variant-option {
    position: relative;
    display: inline-flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    border-radius: 10px;
    border: 1px solid rgba(30, 77, 107, 0.18);
    background: #fff;
    cursor: pointer;
    transition: all 0.18s ease;
    user-select: none;
    min-width: 0;
}

.greco-variant-option:hover {
    border-color: rgba(30, 77, 107, 0.4);
    background: rgba(30, 77, 107, 0.04);
}

.greco-variant-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

.greco-variant-option:has(input:checked) {
    border-color: #C9A227;
    background: rgba(201, 162, 39, 0.08);
    box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.4);
}

.greco-variant-option__body {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    min-width: 0;
}

.greco-variant-name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #1E4D6B;
    line-height: 1.3;
}

.greco-variant-delta {
    margin-left: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #C9A227;
}

.greco-variant-desc {
    font-size: 0.6875rem;
    color: #6B7280;
    line-height: 1.4;
}

/* ===== "od X zł" prefix on card with required variants ===== */
.greco-dish-card[data-has-variants="1"] .greco-dish-price .price-amount:not(:empty)::before {
    content: "od ";
    font-size: 0.75em;
    font-weight: 500;
    opacity: 0.7;
    margin-right: 0.15em;
}

/* Dark mode tweaks */
.dark-mode .greco-variant-group {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.dark-mode .greco-variant-group__label {
    color: #E5E7EB;
}

.dark-mode .greco-variant-option {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
}

.dark-mode .greco-variant-option:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
}

.dark-mode .greco-variant-option:has(input:checked) {
    border-color: #C9A227;
    background: rgba(201, 162, 39, 0.16);
}

.dark-mode .greco-variant-name {
    color: #F9FAFB;
}

.dark-mode .greco-variant-desc {
    color: #9CA3AF;
}