/* Toast Takeout Menu - Celebration-inspired styling */

/* WRAPPER */
.toast-menu-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: transparent;
    border-radius: 1.25rem;
}

/* CATEGORY NAV (scroll-to-category) */
.toast-menu-category-nav {
    position: sticky;
    top: 0;
    z-index: 10;
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
    background: #ffffff;
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.toast-menu-category-nav::-webkit-scrollbar {
    height: 6px;
}

.toast-menu-category-nav::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.2);
    border-radius: 999px;
}

.toast-category-nav-link {
    border: 1px solid #ddd0bf;
    background: #fff;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-size: 14px;
    cursor: pointer;
    color: #000;
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.toast-category-nav-link.is-active {
    background: #111;
    color: #fff;
    border-color: #111;
}

/* FILTER BAR */
.toast-menu-filters {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
}

.toast-menu-filter-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

/* Filter label default */
.toast-menu-filter-label {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 14px;
    color: #000000;
    margin-right: 0.25rem;
}

.toast-allergy-filter,
.toast-label-filter {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 14px;
    color: #000000;
}

.toast-allergy-filter input,
.toast-label-filter input {
    accent-color: #c5a46b;
}

/* CATEGORY SECTIONS */
.toast-menu-category-block {
    margin-bottom: 2rem;
}

.toast-menu-category-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 0.75rem;
    color: #000000;
}

/* GRID LAYOUT */
.toast-menu-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem;
}


/* ITEM CARD */
.toast-menu-item {
    cursor: pointer;
}

.toast-menu-card {
    border: 1px solid #e4d7c7;
    border-radius: 1rem;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: row;
    min-height: 150px;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.toast-menu-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0,0,0,0.06);
    border-color: #d2b88c;
}

.toast-menu-image {
    flex: 0 0 140px;
    max-width: 140px;
    overflow: hidden;
}

.toast-menu-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* CARD BODY */
.toast-menu-body {
    padding: 0.8rem 1rem 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

/* Highlight labels */
.toast-menu-label-pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-bottom: 0.2rem;
}

.toast-label-pill {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    border: 1px solid #7c4dff;
    color: #4b2a99;
    background: #e6e0ff;
}

.toast-label-icon {
    margin-right: 0.25rem;
    font-size: 0.8rem;
}

/* Title default (overridden by inline shortcode style) */
.toast-menu-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    color: #2c241a;
}

.toast-menu-price {
    font-weight: 600;
    font-size: 13px;
    color: #2c241a;
}

/* Spicy level row */
.toast-menu-spicy-level {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.15rem;
}

.toast-spicy-label {
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 10px;
    color: #b23b3b;
}

.toast-spicy-icons {
    display: inline-flex;
    gap: 2px;
}

.toast-spicy-icon {
    font-size: 12px;
    line-height: 1;
}

/* Description in card */
.toast-menu-description-excerpt {
    font-size: 15px;
    color: #5f5241;
    line-height: 1.4;
}

/* Allergy pills */
.toast-menu-allergy-pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: 0.15rem;
}

.toast-allergy-pill {
    background:#e6e0ff;
    border-radius:999px;
    padding:0.12rem 0.45rem;
    font-size:11px;
    color:#4b2a99;
}

/* Details button */
.toast-menu-details-btn {
    margin-top: auto;
    align-self: flex-start;
    border: none;
    background: transparent;
    color: #7a5b32;
    border-radius: 999px;
    padding: 0.2rem 0;
    font-size: 0.8rem;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Hidden modal content */
.toast-menu-hidden-content {
    display: none;
}

/* RESPONSIVE */
@media (max-width: 640px) {
    .toast-menu-grid { grid-template-columns: 1fr; }
.toast-menu-card {
        flex-direction: column;
    }

    .toast-menu-image {
        max-width: 100%;
        flex-basis: auto;
        height: 170px;
    }

    .toast-menu-wrapper {
        padding: 1.5rem 1rem 2.5rem;
        border-radius: 0.75rem;
    }
}

/* CENTERED MODAL */
.toast-menu-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.toast-menu-modal.is-open {
    display: flex !important;
}

.toast-menu-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
}

.toast-menu-modal-dialog {
    position: relative;
    background: #fff;
    border-radius: 1.25rem;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
    max-width: 840px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

@media (max-width: 768px) {
    .toast-menu-modal-dialog {
        grid-template-columns: 1fr;
    }
}

.toast-menu-modal-close {
    position: absolute;
    top: 0.55rem;
    right: 0.8rem;
    font-size: 1.6rem;
    border: none;
    background: transparent;
    cursor: pointer;
    line-height: 1;
}

.toast-menu-modal-image-wrap {
    background: #f5eee5;
}

.toast-menu-modal-image {
    width: 100%;
    height: auto;
    max-height: 380px;
    object-fit: cover;
    display: block;
}

.toast-menu-modal-content {
    padding: 1.35rem 1.6rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.toast-menu-modal-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #2c241a;
}

.toast-menu-modal-spicy {
    font-size: 0.85rem;
    color: #b23b3b;
}

.toast-menu-modal-description {
    font-size: 16px;
    color: #524636;
    line-height: 1.55;
}

.toast-menu-modal-allergies {
    font-size: 0.8rem;
    color: #7a6a56;
}

.toast-menu-modal-actions {
    margin-top: 0.85rem;
}

.toast-menu-modal-toast-btn {
    display: inline-block;
    text-decoration: none;
    background: #111;
    color: #fff;
    padding: 0.55rem 1.25rem;
    border-radius: 999px;
    font-size: 0.9rem;
}


/* Force left-aligned text (theme-safe) */
.toast-menu-body,
.toast-menu-title,
.toast-menu-price,
.toast-menu-description-excerpt,
.toast-menu-spicy-level,
.toast-menu-label-pill-list,
.toast-menu-allergy-pill-list {
    text-align: left;
}
