.menu-page-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 0.5rem 4rem;
}

/* Descriptions */
.menu-global-description {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.4;
    margin-bottom: 1.1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
}
.menu-global-description p {
    margin: 0;
}

.category-description {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.4;
    background: #f8fafc;
    border-left: 3px solid var(--highlight-border);
    padding: 0.65rem 1rem;
    border-radius: 0 6px 6px 0;
    margin-bottom: 1.5rem;
}

/* Category Scroller */
.category-scroller {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    overflow-x: auto;
    padding: 0.4rem 0 1rem;
    margin-bottom: 1.25rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}
.category-scroller::-webkit-scrollbar {
    height: 4px;
}
.category-scroller::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.category-scroller.text-only-scroller {
    align-items: stretch;
    gap: 0.65rem;
    padding: 0.5rem 0 1rem;
}

/* Category Tab */
.category-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #64748b;
    flex-shrink: 0;
    width: 76px;
    transition: transform 0.15s ease, color 0.15s ease;
}
.category-tab:hover {
    transform: translateY(-2px);
}
.category-tab.active {
    color: var(--highlight-text);
    font-weight: 600;
}

/* Text-Only Mode Tabs */
.category-tab.tab-text-only {
    width: auto;
    min-height: 42px;
    height: 42px;
    padding: 0 1.2rem;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 9999px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    cursor: pointer;
    transition: all 0.2s ease;
}
.category-tab.tab-text-only:hover {
    border-color: #cbd5e1;
    transform: translateY(-1px);
}
.category-tab.tab-text-only.active {
    border-color: var(--highlight-border);
    color: var(--highlight-text);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.category-tab.tab-text-only .cat-pill-text {
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    text-align: center;
}
.category-tab.tab-text-only.active .cat-pill-text {
    font-weight: 600;
}

/* Category Shapes */
.cat-thumb {
    width: 62px;
    height: 62px;
    background-color: #e2e8f0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    margin-bottom: 0.45rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.cat-thumb.shape-rounded { border-radius: 10px; }
.cat-thumb.shape-square  { border-radius: 0; }
.cat-thumb.shape-circle  { border-radius: 50%; }

.cat-thumb.border-none  { border: none; }
.cat-thumb.border-thin  { border: 1px solid #cbd5e1; }
.cat-thumb.border-thick { border: 3px solid #64748b; }

.category-tab.active .cat-thumb {
    border-color: var(--highlight-border);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.cat-label {
    font-size: 0.82rem;
    text-align: center;
    line-height: 1.2;
    word-break: break-word;
}
.cat-label.style-label,
.cat-pill-text.style-label {
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 500;
}

/* Subcategories & Add Button */
.subcategory-section {
    margin-bottom: 2.25rem;
}
.subcategory-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.85rem;
    padding-bottom: 0.35rem;
    border-bottom: 2px solid #e2e8f0;
}

.btn-add {
    background: var(--button-color);
    color: var(--button-text);
    border: none;
    padding: 0.4rem 0.85rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.15s ease;
}
.btn-add:hover {
    opacity: 0.9;
}

/* Loading */
.menu-loading-spinner {
    padding: 3rem 1rem;
    text-align: center;
    font-size: 1.05rem;
    color: #64748b;
}

/* List Display Mode */
.items-container-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.item-card-list {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.85rem 1rem;
    cursor: pointer;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.item-card-list:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}
.item-thumb-list {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    border-radius: 6px;
    background-color: #f1f5f9;
    background-position: center;
    background-size: cover;
}
.item-content-list {
    flex: 1;
    min-width: 0;
}
.item-title {
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.25rem;
}
.item-desc {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.item-actions-list {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.45rem;
    flex-shrink: 0;
}
.item-price {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}

/* Flex Display Mode */
.items-container-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}
.item-card-flex {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.85rem 1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex: 1 1 calc(50% - 0.85rem);
    min-width: 260px;
    max-width: calc(50% - 0.425rem);
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.item-card-flex:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}
@media (min-width: 992px) {
    .item-card-flex {
        flex: 0 0 340px;
        max-width: 340px;
    }
}
.item-content-flex {
    flex: 1;
    padding-right: 0.75rem;
}
.item-actions-flex {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* Grid Display Mode */
.items-container-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}
.item-card-grid {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.item-card-grid:hover {
    border-color: #cbd5e1;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
}
.item-thumb-grid {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #f1f5f9;
    background-position: center;
    background-size: cover;
}
.item-body-grid {
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.item-header-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}
.item-footer-grid {
    margin-top: auto;
    display: flex;
    justify-content: flex-end;
    padding-top: 0.75rem;
}

/* Notice */
.closed-order-floating {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #dc2626;
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.35);
    z-index: 1000;
    pointer-events: none;
    text-align: center;
    white-space: nowrap;
}