/* ===========================================================
   Modern Light digital menu page — light palette, accent driven
   by --cwml-accent / --cwml-accent-hover / --cwml-accent-contrast
   set inline by the host view from the restaurant's ThemeColour.
   Prefix: cwmml-* (Common Website Modern menu Light)
   =========================================================== */

/* 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-light.css. */
.cwml-nav {
    position: static;
}

.cwmml-page {
    background: #ffffff;
    color: #111111;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    min-height: 100vh;
    padding-top: 40px;
    padding-bottom: 120px;
    position: relative;
    z-index: 1;
}

.cwmml-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 48px;
}

@media (max-width: 768px) {
    .cwmml-container {
        padding: 0 24px;
    }

    .cwmml-page {
        padding-top: 20px;
        padding-bottom: 80px;
    }
}

.cwmml-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.cwmml-search {
    position: relative;
    width: 260px;
    max-width: 100%;
}

.cwmml-search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #c4c4c4;
    font-size: 12px;
}

.cwmml-search input {
    width: 100%;
    background: #fafafa;
    border: 1px solid #f0f0f0;
    border-radius: 9999px;
    padding: 10px 16px 10px 32px;
    color: #111111;
    font-size: 11px;
    outline: none;
    transition: border-color 0.2s ease;
}

.cwmml-search input::placeholder {
    color: #c4c4c4;
}

.cwmml-search input:focus {
    border-color: var(--cwml-accent, #c9a14a);
}

@media (max-width: 900px) {
    .cwmml-header {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        margin-bottom: 20px;
    }

    .cwmml-search {
        width: 100%;
    }
}

.cwmml-layout {
    display: flex;
    gap: 64px;
    flex-direction: row;
}

@media (max-width: 900px) {
    .cwmml-layout {
        flex-direction: column;
        gap: 40px;
    }
}

.cwmml-sidebar {
    width: 260px;
    flex-shrink: 0;
}

@media (max-width: 900px) {
    /* display: contents lets .cwmml-sidebar-sticky escape the short sidebar
       parent and become a direct child of .cwmml-layout, so it has full scroll
       range over the items column too. */
    .cwmml-sidebar {
        display: contents;
    }
}

.cwmml-sidebar-sticky {
    position: sticky;
    top: 120px;
}

.cwmml-sidebar-label {
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    color: #c4c4c4;
    font-size: 10px;
    font-weight: 700;
    margin-bottom: 28px;
}

.cwmml-cat-nav {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cwmml-cat-link {
    display: block;
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: 18px;
    color: #111111;
    text-decoration: none;
    padding-left: 16px;
    margin-left: -16px;
    border-left: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.cwmml-cat-link:hover,
.cwmml-cat-link.cwmml-cat-link-active {
    color: var(--cwml-accent, #c9a14a);
    border-left-color: var(--cwml-accent, #c9a14a);
}

.cwmml-allergen {
    margin-top: 56px;
    padding: 28px;
    background: #fafafa;
    border: 1px solid #f0f0f0;
    border-radius: 40px;
}

.cwmml-allergen i {
    color: var(--cwml-accent, #c9a14a);
    font-size: 22px;
    margin-bottom: 14px;
    display: block;
}

.cwmml-allergen h4 {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #111111;
}

.cwmml-allergen p {
    font-size: 11px;
    color: #737373;
    line-height: 1.6;
    font-weight: 300;
    margin: 0;
}

/* ---------- Mobile: categories collapse to a sticky horizontal scroll strip ---------- */
@media (max-width: 900px) {
    .cwmml-sidebar-sticky {
        position: sticky;
        top: 0;
        z-index: 30;
        background: var(--cwml-bg, #ffffff);
        margin: 0 -24px;
        padding: 10px 24px;
        border-bottom: 1px solid #f0f0f0;
    }

    .cwmml-sidebar-label,
    .cwmml-allergen {
        display: none;
    }

    .cwmml-cat-nav {
        flex-direction: row;
        gap: 8px;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -ms-overflow-style: none;
        -webkit-overflow-scrolling: touch;
    }

    .cwmml-cat-nav::-webkit-scrollbar {
        display: none;
    }

    .cwmml-cat-link {
        flex-shrink: 0;
        white-space: nowrap;
        font-size: 14px;
        padding: 8px 16px;
        margin-left: 0;
        border: 1px solid #ececec;
        border-left: 1px solid #ececec;
        border-radius: 999px;
        background: #ffffff;
    }

    .cwmml-cat-link:hover,
    .cwmml-cat-link.cwmml-cat-link-active {
        color: var(--cwml-accent-contrast, #ffffff);
        background: var(--cwml-accent, #c9a14a);
        border-color: var(--cwml-accent, #c9a14a);
    }
}

.cwmml-items {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 96px;
}

.cwmml-category {
    scroll-margin-top: 120px;
}

.cwmml-category-head {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 48px;
}

.cwmml-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: #111111;
    margin: 0;
}

@media (max-width: 768px) {
    .cwmml-category-title {
        font-size: 32px;
    }
}

.cwmml-category-rule {
    flex: 1;
    height: 1px;
    background: #f0f0f0;
}

.cwmml-item-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 56px;
    row-gap: 60px;
}

@media (max-width: 900px) {
    .cwmml-item-grid {
        grid-template-columns: 1fr;
        row-gap: 36px;
    }
}

.cwmml-item {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    text-align: left;
}

.cwmml-item-thumb {
    width: 124px;
    height: 124px;
    flex-shrink: 0;
    border-radius: 30px;
    border: 1px solid #f0f0f0;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.5s ease;
    position: relative;
}

.cwmml-item:hover .cwmml-item-thumb {
    transform: scale(1.04);
}

.cwmml-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cwmml-item-discount {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--cwml-accent, #c9a14a);
    color: var(--cwml-accent-contrast, #ffffff);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 9999px;
}

.cwmml-item-body {
    flex: 1;
    min-width: 0;
}

.cwmml-item-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 6px;
}

.cwmml-item-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 500;
    font-size: 18px;
    color: #111111;
    margin: 0;
    transition: color 0.2s ease;
}

.cwmml-item:hover .cwmml-item-name {
    color: var(--cwml-accent, #c9a14a);
}

.cwmml-item-price {
    color: var(--cwml-accent, #c9a14a);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.cwmml-item-price-full {
    color: #b3b3b3;
    font-size: 11px;
    text-decoration: line-through;
    margin-left: 8px;
}

.cwmml-item-desc {
    color: #737373;
    font-size: 11px;
    line-height: 1.6;
    font-weight: 300;
    margin: 0 0 6px 0;
}

.cwmml-item-classic {
    border-left: 1px solid #f0f0f0;
    padding-left: 24px;
    text-align: left;
    transition: border-color 0.25s ease;
}

.cwmml-item-classic:hover {
    border-left-color: var(--cwml-accent, #c9a14a);
}

.cwmml-item-classic .cwmml-item-name {
    font-style: italic;
}

.cwmml-item-classic:hover .cwmml-item-name {
    color: var(--cwml-accent, #c9a14a);
}

.cwmml-empty {
    padding: 80px 24px;
    text-align: center;
    color: #737373;
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: 20px;
}

.cwmml-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.cwmml-reveal.cwmml-visible {
    opacity: 1;
    transform: none;
}

