/* ===========================================================
   Modern digital menu page — dark palette, gold accent.
   Sibling stylesheet to common-website-modern.css.
   Prefix: cwmm-*  (Common Website Modern Menu)
   =========================================================== */

/* Menu page only: navbar flows with content instead of overlaying — keeps the
   sticky category strip and the search bar visible without the fixed header
   covering them. The homepage still uses the fixed-nav rule from common-website-modern.css. */
.cwm-nav {
    position: static;
}

.cwmm-page {
    background: var(--cwm-bg);
    color: var(--cwm-white);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    min-height: 100vh;
    padding-top: 40px;
    padding-bottom: 120px;
    position: relative;
    z-index: 1;
}

.cwmm-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 48px;
}

@media (max-width: 768px) {
    .cwmm-container {
        padding: 0 24px;
    }

    .cwmm-page {
        padding-top: 20px;
        padding-bottom: 80px;
    }
}

/* ---------- Header strip: search ---------- */
.cwmm-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.cwmm-search {
    position: relative;
    width: 260px;
    max-width: 100%;
}

.cwmm-search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--cwm-neutral-500);
    font-size: 12px;
}

.cwmm-search input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--cwm-border);
    border-radius: 9999px;
    padding: 10px 16px 10px 32px;
    color: var(--cwm-white);
    font-size: 11px;
    outline: none;
    transition: border-color 0.2s ease;
}

.cwmm-search input::placeholder {
    color: var(--cwm-neutral-500);
}

.cwmm-search input:focus {
    border-color: rgba(212, 175, 55, 0.4);
}

@media (max-width: 900px) {
    .cwmm-header {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        margin-bottom: 20px;
    }

    .cwmm-search {
        width: 100%;
    }
}

/* ---------- Two-column grid: sidebar + items ---------- */
.cwmm-layout {
    display: flex;
    gap: 64px;
    flex-direction: row;
}

@media (max-width: 900px) {
    .cwmm-layout {
        flex-direction: column;
        gap: 40px;
    }
}

.cwmm-sidebar {
    width: 260px;
    flex-shrink: 0;
}

@media (max-width: 900px) {
    /* display: contents lets .cwmm-sidebar-sticky escape the short sidebar
       parent and become a direct child of .cwmm-layout, so it has full scroll
       range over the items column too. */
    .cwmm-sidebar {
        display: contents;
    }
}

.cwmm-sidebar-sticky {
    position: sticky;
    top: 120px;
}

.cwmm-sidebar-label {
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    color: var(--cwm-neutral-500);
    font-size: 10px;
    font-weight: 700;
    margin-bottom: 28px;
}

.cwmm-cat-nav {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cwmm-cat-link {
    display: block;
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: 18px;
    color: var(--cwm-white);
    text-decoration: none;
    padding-left: 16px;
    margin-left: -16px;
    border-left: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.cwmm-cat-link:hover,
.cwmm-cat-link.cwmm-cat-link-active {
    color: var(--cwm-gold);
    border-left-color: var(--cwm-gold);
}

.cwmm-allergen {
    margin-top: 56px;
    padding: 28px;
    background: var(--cwm-bg-card);
    border: 1px solid var(--cwm-border);
    border-radius: 40px;
}

.cwmm-allergen i {
    color: var(--cwm-gold);
    font-size: 22px;
    margin-bottom: 14px;
    display: block;
}

.cwmm-allergen h4 {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: var(--cwm-white);
}

.cwmm-allergen p {
    font-size: 11px;
    color: var(--cwm-neutral-400);
    line-height: 1.6;
    font-weight: 300;
    margin: 0;
}

/* ---------- Mobile: categories collapse to a sticky horizontal scroll strip ---------- */
@media (max-width: 900px) {
    .cwmm-sidebar-sticky {
        position: sticky;
        top: 0;
        z-index: 30;
        background: var(--cwm-bg);
        margin: 0 -24px;
        padding: 10px 24px;
        border-bottom: 1px solid var(--cwm-border);
    }

    .cwmm-sidebar-label,
    .cwmm-allergen {
        display: none;
    }

    .cwmm-cat-nav {
        flex-direction: row;
        gap: 8px;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -ms-overflow-style: none;
        -webkit-overflow-scrolling: touch;
    }

    .cwmm-cat-nav::-webkit-scrollbar {
        display: none;
    }

    .cwmm-cat-link {
        flex-shrink: 0;
        white-space: nowrap;
        font-size: 14px;
        padding: 8px 16px;
        margin-left: 0;
        border: 1px solid var(--cwm-border);
        border-left: 1px solid var(--cwm-border);
        border-radius: 999px;
        background: var(--cwm-bg-card);
    }

    .cwmm-cat-link:hover,
    .cwmm-cat-link.cwmm-cat-link-active {
        color: var(--cwm-bg);
        background: var(--cwm-gold);
        border-color: var(--cwm-gold);
    }
}

/* ---------- Items pane ---------- */
.cwmm-items {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 96px;
}

.cwmm-category {
    scroll-margin-top: 120px;
}

.cwmm-category-head {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 48px;
}

.cwmm-category-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-weight: 500;
    font-size: 44px;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--cwm-white);
    margin: 0;
}

@media (max-width: 768px) {
    .cwmm-category-title {
        font-size: 32px;
    }
}

.cwmm-category-rule {
    flex: 1;
    height: 1px;
    background: var(--cwm-border);
}

.cwmm-item-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 56px;
    row-gap: 60px;
}

@media (max-width: 900px) {
    .cwmm-item-grid {
        grid-template-columns: 1fr;
        row-gap: 36px;
    }
}

/* Item with photo */
.cwmm-item {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    text-align: left;
}

.cwmm-item-thumb {
    width: 124px;
    height: 124px;
    flex-shrink: 0;
    border-radius: 30px;
    border: 1px solid var(--cwm-border);
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    transition: transform 0.5s ease;
    position: relative;
}

.cwmm-item:hover .cwmm-item-thumb {
    transform: scale(1.04);
}

.cwmm-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cwmm-item-discount {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--cwm-gold);
    color: #1a1a1a;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 9999px;
}

.cwmm-item-body {
    flex: 1;
    min-width: 0;
}

.cwmm-item-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 6px;
}

.cwmm-item-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 500;
    font-size: 18px;
    color: var(--cwm-white);
    margin: 0;
    transition: color 0.2s ease;
}

.cwmm-item:hover .cwmm-item-name {
    color: var(--cwm-gold);
}

.cwmm-item-price {
    color: var(--cwm-gold);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.cwmm-item-price-full {
    color: var(--cwm-neutral-500);
    font-size: 11px;
    text-decoration: line-through;
    margin-left: 8px;
}

.cwmm-item-desc {
    color: var(--cwm-neutral-400);
    font-size: 11px;
    line-height: 1.6;
    font-weight: 300;
    margin: 0 0 6px 0;
}

/* Item without photo — classic elegant treatment */
.cwmm-item-classic {
    border-left: 1px solid var(--cwm-border);
    padding-left: 24px;
    text-align: left;
    transition: border-color 0.25s ease;
}

.cwmm-item-classic:hover {
    border-left-color: rgba(212, 175, 55, 0.45);
}

.cwmm-item-classic .cwmm-item-name {
    font-style: italic;
}

.cwmm-item-classic:hover .cwmm-item-name {
    color: var(--cwm-gold);
}

/* ---------- Empty state ---------- */
.cwmm-empty {
    padding: 80px 24px;
    text-align: center;
    color: var(--cwm-neutral-400);
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: 20px;
}

/* ---------- Entrance reveal ---------- */
.cwmm-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.cwmm-reveal.cwmm-visible {
    opacity: 1;
    transform: none;
}

