﻿/* ==========================================================================
   ANDO — Menu: editorial poster composition
   ========================================================================== */

.ao-menu-stage {
    padding-bottom: 24px;
    overflow-x: clip;
}

.ao-chapter__title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 8px;
}

.ao-chapter__motif {
    width: 48px;
    height: 48px;
    object-fit: contain;
    opacity: 0.78;
    flex-shrink: 0;
    mix-blend-mode: multiply;
}

.ao-chapter--coffee .ao-chapter__motif { width: 52px; height: 52px; }
.ao-chapter--tea .ao-chapter__motif { width: 40px; height: 64px; object-fit: cover; object-position: center top; border-radius: 8px; }
.ao-chapter--dessert .ao-chapter__motif { width: 56px; height: 56px; }
.ao-chapter--main .ao-chapter__motif { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; mix-blend-mode: normal; opacity: 0.9; }

.ao-chapter__title {
    margin: 8px 0 0;
    font-size: clamp(1.25rem, 3vw, 1.6rem);
}

.ao-separator--chapter {
    margin: 8px 0 18px;
}

.ao-menu-hero {
    position: relative;
    padding: 8px 0 4px;
    overflow: hidden;
}

.ao-menu-hero__art {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.ao-menu-hero__sun {
    position: absolute;
    top: 8px;
    inset-inline-end: 6%;
    width: 36px;
    opacity: 0.45;
}

.ao-menu-hero__sakura {
    position: absolute;
    top: 0;
    inset-inline-start: -8px;
    width: 88px;
    opacity: 0.22;
    mix-blend-mode: multiply;
}

.ao-menu-hero__waves {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    height: 36px;
    background-image: var(--ao-seigaiha-burgundy);
    background-size: 90px 45px;
    opacity: 0.35;
}

.ao-menu-hero .ao-container {
    position: relative;
    z-index: 1;
}

.ao-menu-hero__plate {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
    animation: ao-fade-up 0.55s var(--ao-ease) both;
}

.ao-menu-hero__latin {
    margin: 0 0 4px;
    font-family: var(--ao-font-en);
    font-style: italic;
    font-size: clamp(1.1rem, 3vw, 1.55rem);
    color: var(--ao-primary);
}

.ao-menu-hero__identity {
    margin-bottom: 12px;
}

.ao-menu-hero__logo,
.ao-menu-hero__mark {
    width: 44px;
    height: 44px;
    margin: 0 auto 8px;
    object-fit: contain;
}

.ao-menu-hero__title {
    margin: 0 0 4px;
    font-size: clamp(1.45rem, 5vw, 2.4rem);
    font-weight: 800;
    line-height: 1.2;
}

.ao-menu-hero__subtitle {
    margin: 0 auto;
    max-width: 36ch;
    color: var(--ao-ink-muted);
    font-size: 0.88rem;
    line-height: 1.45;
}

/* Search */
.ao-search {
    position: relative;
    max-width: 420px;
    margin: 0 auto;
}

.ao-search__icon {
    position: absolute;
    top: 50%;
    inset-inline-start: 14px;
    transform: translateY(-50%);
    color: var(--ao-ink-muted);
    pointer-events: none;
}

.ao-search__input {
    width: 100%;
    min-height: 42px;
    padding: 8px 42px;
    border-radius: var(--ao-radius-pill);
    border: 1.5px solid var(--ao-border);
    background: var(--ao-surface);
    color: var(--ao-ink);
}

.ao-search__input::placeholder {
    color: var(--ao-ink-muted);
}

.ao-search__input:focus {
    outline: none;
    background: #fff;
    border-color: var(--ao-primary);
    box-shadow: 0 0 0 3px rgba(128, 0, 47, 0.12);
}

.ao-search__clear {
    position: absolute;
    top: 50%;
    inset-inline-end: 10px;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: var(--ao-ink-muted);
    opacity: 0;
    pointer-events: none;
}

.ao-search__clear.is-visible {
    opacity: 1;
    pointer-events: auto;
}

/* Sticky category pills */
.ao-cat-nav {
    position: sticky;
    top: 68px;
    z-index: 30;
    padding: 8px 0;
    background: rgba(241, 238, 232, 0.94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--ao-border);
}

@media (max-width: 640px) {
    .ao-cat-nav {
        top: 60px;
    }

    .ao-menu-hero__sakura {
        width: 64px;
        opacity: 0.16;
    }

    .ao-chapter__motif {
        width: 40px;
        height: 40px;
    }

    .ao-item {
        padding: 10px 4px;
        gap: 8px;
    }

    .ao-item__media {
        flex-basis: 40px;
        width: 40px;
        height: 40px;
    }

    .ao-featured__rail .ao-item {
        flex-basis: min(88%, 280px);
    }
}

.ao-cat-rail {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 2px 6px;
    scroll-snap-type: x proximity;
}

.ao-cat-pill {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 6px 16px;
    border-radius: 999px;
    background: transparent;
    color: var(--ao-ink-muted);
    border: 1.5px solid var(--ao-border);
    font-weight: 700;
    font-size: 0.9rem;
    scroll-snap-align: center;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.ao-cat-pill.is-active {
    background: var(--ao-primary);
    color: #fff;
    border-color: var(--ao-primary);
}

.ao-cat-pill__count {
    font-size: 0.75rem;
    opacity: 0.75;
}

.ao-filters {
    padding: 10px 0 4px;
}

.ao-quick-filters {
    display: flex;
    gap: 8px;
    overflow-x: auto;
}

.ao-filter-chip {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 5px 14px;
    border-radius: var(--ao-radius-pill);
    border: 1px dashed var(--ao-border);
    background: rgba(255, 255, 255, 0.45);
    color: var(--ao-ink-muted);
    font-size: 0.85rem;
    font-weight: 600;
}

.ao-filter-chip.is-active {
    color: #fff;
    border-style: solid;
    border-color: var(--ao-primary);
    background: var(--ao-primary);
}

/* Featured rail */
.ao-featured {
    margin: 4px 0 18px;
}

.ao-featured__head {
    text-align: center;
    margin-bottom: 10px;
}

.ao-featured__head h2 {
    margin: 8px 0 0;
    font-size: 1.1rem;
    font-weight: 800;
}

.ao-featured__rail {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
}

.ao-featured__rail .ao-item {
    flex: 0 0 min(86%, 300px);
}

/* Catalog — multi-column editorial */
.ao-catalog {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px 24px;
    padding: 4px 0 28px;
}

.ao-chapter {
    min-width: 0;
}

.ao-chapter__head {
    text-align: center;
    margin-bottom: 10px;
}

.ao-chapter__desc {
    margin: 8px 0 0;
    color: var(--ao-ink-muted);
    font-size: 0.85rem;
}

.ao-schedule-notice {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 4px 10px;
    border-radius: var(--ao-radius-pill);
    border: 1px solid var(--ao-border);
    background: rgba(128, 0, 47, 0.06);
    font-size: 0.78rem;
    color: var(--ao-primary-deep);
}

.ao-chapter__empty {
    text-align: center;
    color: var(--ao-ink-muted);
    padding: 12px 0;
}

.ao-items {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Editorial menu row — dense, scannable */
.ao-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 8px;
    border-bottom: 1px dashed var(--ao-border);
    min-width: 0;
    color: var(--ao-ink);
    transition: background var(--ao-transition);
}

.ao-item:hover {
    background: rgba(255, 255, 255, 0.55);
}

.ao-item--compact {
    border: 1.5px solid var(--ao-border);
    border-radius: 14px;
    padding: 10px;
    background: var(--ao-surface);
    border-bottom: 1.5px solid var(--ao-border);
    box-shadow: var(--ao-shadow-sm);
}

.ao-item--sold {
    opacity: 0.55;
}

.ao-item__media {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--ao-border);
    background: var(--ao-bg-alt);
    cursor: pointer;
}

.ao-item__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ao-item__body {
    flex: 1 1 auto;
    min-width: 0;
}

.ao-item__line {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.ao-item__name-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
    flex: 0 1 auto;
}

.ao-item__title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
    cursor: pointer;
    color: var(--ao-ink);
}

.ao-item__leader {
    flex: 1 1 16px;
    min-width: 10px;
    align-self: center;
    height: 0;
    border-bottom: 1px dotted rgba(128, 0, 47, 0.28);
}

.ao-item__desc {
    margin: 4px 0 0;
    color: var(--ao-ink-muted);
    font-size: 0.75rem;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ao-item__stuffs {
    margin: 4px 0 0;
    color: var(--ao-ink-muted);
    font-size: 0.75rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.ao-item__stuffs span {
    color: var(--ao-ink);
    font-weight: 700;
}

.ao-item__price-col {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
    line-height: 1.2;
}

.ao-item__price {
    font-weight: 800;
    font-size: 0.92rem;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    color: var(--ao-primary-deep);
}

.ao-item__price-orig {
    font-size: 0.7rem;
    text-decoration: line-through;
    color: var(--ao-ink-muted);
}

.ao-badge {
    display: inline-block;
    padding: 1px 7px;
    border-radius: var(--ao-radius-pill);
    font-size: 0.65rem;
    font-weight: 700;
    background: rgba(128, 0, 47, 0.1);
    color: var(--ao-primary-deep);
    line-height: 1.4;
}

.ao-badge--rec {
    background: var(--ao-primary);
    color: #fff;
}

.ao-badge--off {
    background: rgba(128, 0, 47, 0.14);
    color: var(--ao-primary);
}

.ao-badge--sold {
    background: transparent;
    color: var(--ao-ink-muted);
    border: 1px solid var(--ao-border);
}

.ao-variants {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    margin-top: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.ao-variant {
    flex: 0 0 auto;
    min-height: 28px;
    padding: 3px 10px;
    border-radius: var(--ao-radius-pill);
    border: 1px solid var(--ao-border);
    background: rgba(255, 255, 255, 0.65);
    color: var(--ao-ink-muted);
    font-size: 0.74rem;
    font-weight: 600;
    white-space: nowrap;
}

.ao-variant.is-active {
    background: var(--ao-primary);
    color: #fff;
    border-color: var(--ao-primary);
}

.ao-item__blocked {
    flex-shrink: 0;
    font-size: 0.75rem;
    color: var(--ao-ink-muted);
}

.ao-qty {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--ao-border);
    border-radius: var(--ao-radius-pill);
    padding: 1px;
    background: var(--ao-surface);
}

.ao-qty__btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: var(--ao-primary);
    background: rgba(128, 0, 47, 0.08);
    font-size: 1rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ao-qty__btn:hover {
    background: var(--ao-primary);
    color: #fff;
}

.ao-qty__val {
    min-width: 18px;
    text-align: center;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--ao-ink);
}

.ao-empty-search {
    text-align: center;
    padding: 48px 16px;
}

.ao-empty-search .ao-empty-state {
    margin: 0 auto 14px;
    min-height: 100px;
}

.ao-empty-search h3 {
    margin: 0 0 6px;
    font-size: 1.15rem;
}

.ao-empty-search p {
    margin: 0;
    color: var(--ao-ink-muted);
}

/* Modal */
.ao-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: none;
    align-items: flex-end;
    justify-content: center;
}

.ao-modal.is-open {
    display: flex;
}

.ao-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(25, 25, 25, 0.48);
}

.ao-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 520px);
    max-height: min(92vh, 780px);
    overflow: auto;
    background: var(--ao-bg);
    border: 1.5px solid var(--ao-border);
    border-radius: 24px 24px 0 0;
    padding: 16px 16px 28px;
    color: var(--ao-ink);
    animation: ao-fade-up 0.3s var(--ao-ease) both;
}

.ao-modal__close {
    position: absolute;
    top: 12px;
    inset-inline-end: 12px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--ao-border);
    color: var(--ao-ink);
    font-size: 1.4rem;
    z-index: 2;
    background: var(--ao-surface);
}

.ao-modal__media {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--ao-border);
    margin-bottom: 14px;
    background: var(--ao-bg-alt);
}

.ao-modal__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ao-modal__body .ao-pill {
    margin-bottom: 8px;
}

.ao-modal__title {
    margin: 0 0 8px;
    font-size: 1.35rem;
    font-weight: 800;
}

.ao-modal__desc {
    margin: 0 0 12px;
    color: var(--ao-ink-muted);
}

.ao-modal__stuffs {
    margin: -4px 0 12px;
    color: var(--ao-ink-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.ao-modal__stuffs[hidden] {
    display: none;
}

.ao-modal__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: var(--ao-ink-muted);
}

.ao-modal__variants {
    margin-bottom: 12px;
}

.ao-modal__footer {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 8px;
    padding-top: 14px;
    border-top: 1px dashed var(--ao-border);
}

.ao-modal__price-label {
    display: block;
    font-size: 0.8rem;
    color: var(--ao-ink-muted);
}

.ao-modal__price {
    font-size: 1.25rem;
    color: var(--ao-primary-deep);
    font-weight: 800;
}

.ao-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ao-modal__actions .ao-btn {
    flex: 1;
}

/* Responsive columns */
@media (min-width: 760px) {
    .ao-catalog {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px 28px;
    }

    .ao-item__media {
        flex-basis: 48px;
        width: 48px;
        height: 48px;
    }

    .ao-item__title {
        font-size: 1rem;
    }

    .ao-featured__rail .ao-item {
        flex-basis: 300px;
    }
}

@media (min-width: 1100px) {
    .ao-catalog {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 36px 32px;
    }

    .ao-menu-hero {
        padding-top: 18px;
    }

    .ao-menu-hero__logo,
    .ao-menu-hero__mark {
        width: 56px;
        height: 56px;
    }

    .ao-modal {
        align-items: center;
    }

    .ao-modal__dialog {
        border-radius: 24px;
        max-height: 86vh;
    }
}

@media (min-width: 1400px) {
    .ao-catalog {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Very narrow phones: wrap qty under price if needed */
@media (max-width: 360px) {
    .ao-item__leader {
        display: none;
    }

    .ao-item__line {
        flex-wrap: wrap;
        row-gap: 6px;
    }

    .ao-item__name-wrap {
        flex: 1 1 100%;
    }

    .ao-item__price-col {
        margin-inline-start: auto;
    }
}
