/*
============================================================
menus/css/style.css
4TFIED Technologies Website Framework
Copyright © 2026 Benjamin Pendleton / 4TFIED Technologies
All rights reserved.

This file is part of a proprietary website framework created
by 4TFIED Technologies.

Unauthorized copying, reuse, redistribution, resale, or use
on another website or project is prohibited without written
permission from 4TFIED Technologies.

Client receives permission to use this code only as part of
the approved website/project delivered by 4TFIED Technologies.

Author: Benjamin Pendleton
Website: https://4tfied.us
============================================================
*/

* {
    box-sizing: border-box;
}


body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--cm-bg);
    color: var(--cm-text);
}

/* =========================================================
   COMPLETE MENUS DEMO WRAPPER
========================================================= */

.complete-menus-demo {
    width: min(1180px, 94%);
    margin: 40px auto;
}

.plugin-intro {
    text-align: center;
    margin-bottom: 28px;
}

.plugin-eyebrow {
    margin: 0 0 10px;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.14em;
    font-size: 0.8rem;
    color: var(--cm-primary);
}

.plugin-intro h1 {
    margin: 0 0 12px;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    line-height: 1.1;
}

.plugin-intro p {
    width: min(780px, 100%);
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--cm-muted);
}

/* =========================================================
   MAIN MENU PLUGIN
========================================================= */

.complete-menu-plugin {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 28px;
    align-items: start;
}

/* =========================================================
   SIDEBAR
========================================================= */

.menu-sidebar {
    background: var(--cm-panel);
    border-radius: var(--cm-radius);
    box-shadow: var(--cm-shadow);
    padding: 20px;
    position: sticky;
    top: 24px;
}

.menu-sidebar h2 {
    margin: 0 0 18px;
    font-size: 1.45rem;
}


/* =========================================================
   SEARCH
========================================================= */

.menu-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.menu-sidebar-header h2 {
    margin: 0;
}

.menu-search-toggle {
    border: 0;
    border-radius: 999px;
    padding: 9px 15px;
    background: var(--cm-accent);
    color: var(--cm-text);
    font-size: 0.9rem;
    font-weight: 900;
    cursor: pointer;
    transition:
        background 0.18s ease,
        transform 0.12s ease;
}

.menu-search-toggle:hover,
.menu-search-toggle[aria-expanded="true"] {
    background: var(--cm-accent-strong);
}

.menu-search-toggle:active {
    transform: scale(0.98);
}

.menu-search-panel {
    margin: 0 0 16px;
}

.menu-search-input {
    width: 100%;
    border: 2px solid var(--cm-border);
    border-radius: 14px;
    padding: 13px 14px;
    background: var(--cm-panel);
    color: var(--cm-text);
    font-size: 1rem;
    font-weight: 700;
    outline: none;
}

.menu-search-input:focus {
    border-color: var(--cm-accent);
    box-shadow: 0 0 0 4px var(--cm-focus-ring);
}

.menu-search-results {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.menu-search-result-button {
    width: 100%;
    border: 0;
    border-left: 4px solid var(--cm-accent);
    border-radius: 12px;
    padding: 12px 14px;
    background: var(--cm-soft);
    color: var(--cm-text);
    text-align: left;
    cursor: pointer;
}

.menu-search-result-button:hover,
.menu-search-result-button.active {
    background: var(--cm-soft-warm);
}

.search-result-topline {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    font-weight: 900;
}

.search-result-price {
    white-space: nowrap;
}

.search-result-category {
    display: block;
    margin-top: 4px;
    color: var(--cm-muted);
    font-size: 0.85rem;
    font-weight: 800;
}

.menu-search-empty {
    margin: 10px 0 0;
    color: var(--cm-muted);
    font-size: 0.92rem;
    font-weight: 700;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* =========================================================
   CATEGORY BLOCKS
========================================================= */

.category-block + .category-block {
    margin-top: 12px;
}

.category-toggle {
    width: 100%;
    border: 0;
    border-radius: 14px;
    padding: 15px 18px;
    background: var(--cm-primary);
    color: var(--cm-panel);
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    transition: background 0.18s ease;
}

.category-toggle:hover {
    background: var(--cm-primary-light);
}

.category-toggle span {
    font-size: 1.4rem;
    line-height: 1;
}

/* =========================================================
   MENU ITEMS
========================================================= */

.item-list {
    padding: 10px 0 2px 12px;
}

.menu-item-button {
    width: 100%;
    display: block;
    border: 0;
    border-left: 4px solid var(--cm-accent);
    background: var(--cm-soft);
    margin: 8px 0;
    padding: 12px 14px;
    text-align: left;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    color: var(--cm-text);
    transition:
        background 0.18s ease,
        transform 0.12s ease;
}

.menu-item-button:hover,
.menu-item-button.active {
    background: var(--cm-soft-warm);
}

.menu-item-button:active {
    transform: scale(0.99);
}

.menu-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.menu-item-name {
    text-align: left;
    flex: 1;
}

.menu-item-price {
    font-weight: 700;
    white-space: nowrap;
}

/* =========================================================
   SPECIALS
========================================================= */

.menu-item-special {
    border-left-color: var(--cm-warning);
    background: var(--cm-special-bg);
}

.menu-item-special:hover,
.menu-item-special.active {
    background: var(--cm-special-bg-strong);
}

.menu-item-special-badge {
    display: inline-flex;
    width: fit-content;
    margin-top: 8px;
    border-radius: 999px;
    padding: 5px 10px;
    background: var(--cm-warning);
    color: var(--cm-panel);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.search-special-badge {
    margin-top: 6px;
}

.item-detail-special {
    border: 2px solid var(--cm-special-ring);
    border-radius: 18px;
    padding: 18px;
    background: var(--cm-special-bg);
}

.special-detail-badge {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 12px;
    border-radius: 999px;
    padding: 7px 13px;
    background: var(--cm-warning);
    color: var(--cm-panel);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.special-pricing-section {
    border-top-color: var(--cm-special-ring);
}

.special-price-row {
    background: var(--cm-special-bg-strong);
    border: 1px solid var(--cm-special-ring-soft);
}

.special-price-row strong,
.special-price-row span {
    color: var(--cm-special-text);
}

.regular-price-row {
    opacity: 0.82;
}

.regular-price-row span {
    text-decoration: line-through;
}

.menu-item-price-group {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.menu-item-price-regular {
    font-size: 0.85rem;
    color: var(--cm-muted);
    text-decoration: line-through;
    line-height: 1;
}

.menu-item-price-special {
    font-size: 1rem;
    font-weight: 900;
    color: var(--cm-warning);
    line-height: 1;
}

/* =========================================================
   DETAIL PANEL
========================================================= */

.menu-detail-panel {
    background: var(--cm-panel);
    border-radius: var(--cm-radius);
    box-shadow: var(--cm-shadow);
    min-height: 540px;
    padding: 28px;
}

.detail-placeholder {
    height: 460px;
    display: grid;
    place-content: center;
    text-align: center;
    color: var(--cm-muted);
}

.detail-placeholder h2 {
    margin-bottom: 12px;
}


/* =========================================================
   CATEGORY DETAIL CARD
   Desktop shows the category image as a normal card image.
   Mobile turns this same image into the card background in mobile.css.
========================================================= */

.category-detail {
    display: grid;
}

.category-card-bg {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 16px;
    background: var(--cm-border);
    box-shadow: 0 8px 18px var(--cm-shadow-light);
}

/* =========================================================
   ITEM DETAIL
========================================================= */

.item-detail {
    display: grid;
    grid-template-columns: minmax(240px, 340px) 1fr;
    gap: 28px;
    align-items: start;
}

.item-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 16px;
    background: var(--cm-border);
    box-shadow: 0 8px 18px var(--cm-shadow-light);
}

.item-content h2 {
    margin: 0 0 10px;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.02;
}

.item-description {
    font-size: 1.08rem;
    line-height: 1.6;
}

/* =========================================================
   DETAIL SECTIONS
========================================================= */

.detail-section {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--cm-border);
}

.detail-section h3 {
    margin: 0 0 12px;
    font-size: 1.08rem;
}

/* =========================================================
   PRICING / NUTRITION
========================================================= */

.price-list,
.nutrition-list {
    display: grid;
    gap: 8px;
}

.price-row,
.nutrition-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    background: var(--cm-soft);
    padding: 11px 13px;
    border-radius: 10px;
}

/* =========================================================
   META TAGS
========================================================= */

.meta-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.meta-pill {
    background: var(--cm-soft-warm);
    border-radius: 999px;
    padding: 7px 11px;
    font-size: 0.9rem;
    font-weight: 700;
}

/* =========================================================
   STATES
========================================================= */

.empty-state {
    color: var(--cm-muted);
}

/* ============================================================
   Default Restaurant Background
   ============================================================ */

.detail-placeholder-home {
    position: relative;
    min-height: 650px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    text-align: center;
}

.detail-placeholder-home::before {
    content: "";
    position: absolute;
    inset: 0;

    background-image: url('../assets/restaurant.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;

    opacity: 0.70;

    z-index: 0;
    pointer-events: none;
}

.detail-placeholder-home h2,
.detail-placeholder-home p {
    position: relative;
    z-index: 1;
}

.detail-placeholder-home h2 {
    color: var(--cm-mobile-device-border);
    margin: 0 0 12px;
    font-size: 2.5rem;
}

.detail-placeholder-home p {
    color: var(--cm-mobile-device-border);
    max-width: 700px;
    font-size: 1.2rem;
    line-height: 1.5;
    font-weight: bold;
}

/*
============================================================
CompleteMenus Host Website CSS Protection
============================================================
*/

.cm-plugin-stage .complete-menus-demo section,
.complete-menus-demo section {
    padding: 0;
}

.cm-plugin-stage .plugin-intro,
.complete-menus-demo .plugin-intro {
    padding: 0;
}

.cm-plugin-stage .complete-menu-plugin,
.complete-menus-demo .complete-menu-plugin {
    padding: 0;
}