﻿/* ==========================================================================
   LE SELECT — Menu: editorial poster composition
   ========================================================================== */

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

.ls-menu-hero {
    padding: 8px 0 4px;
}

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

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

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

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

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

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

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

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

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

.ls-search__input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.ls-search__input:focus {
    outline: none;
    background: var(--ls-surface-hover);
    border-color: #fff;
}

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

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

/* Sticky category pills */
.ls-cat-nav {
    position: sticky;
    top: 68px;
    z-index: 30;
    padding: 8px 0;
    background: rgba(146, 43, 148, 0.94);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

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

.ls-cat-pill {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 6px 16px;
    border-radius: var(--ls-radius-pill);
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    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;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.ls-schedule-notice {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 4px 10px;
    border-radius: var(--ls-radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 0.78rem;
    color: var(--ls-ink-muted);
}

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

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

/* Editorial menu row — dense, scannable */
.ls-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 2px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
    min-width: 0;
}

.ls-item:hover {
    background: var(--ls-surface);
}

.ls-item--compact {
    border: 1.5px solid rgba(255, 255, 255, 0.28);
    border-radius: 14px;
    padding: 10px;
    background: var(--ls-surface);
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.28);
}

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

.ls-item__media {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(0, 0, 0, 0.08);
    cursor: pointer;
}

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

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

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

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

.ls-item__title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
    cursor: pointer;
}

.ls-item__leader {
    flex: 1 1 16px;
    min-width: 10px;
    align-self: center;
    height: 0;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.4);
}

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

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

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

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

.ls-item__price {
    font-weight: 800;
    font-size: 0.92rem;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

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

.ls-badge {
    display: inline-block;
    padding: 1px 7px;
    border-radius: var(--ls-radius-pill);
    font-size: 0.65rem;
    font-weight: 700;
    background: #fff;
    color: var(--ls-primary-deep);
    line-height: 1.4;
}

.ls-badge--sold {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

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

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

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

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

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

.ls-qty__btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: #fff;
    font-size: 1rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ls-qty__btn:hover {
    background: var(--ls-surface-hover);
}

.ls-qty__val {
    min-width: 18px;
    text-align: center;
    font-weight: 700;
    font-size: 0.8rem;
}

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

.ls-empty-search img {
    margin: 0 auto 12px;
    opacity: 0.9;
}

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

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

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

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

.ls-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(40, 8, 48, 0.55);
}

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

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

.ls-modal__media {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.25);
    margin-bottom: 14px;
    background: rgba(0, 0, 0, 0.1);
}

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

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

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

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

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

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

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

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

.ls-modal__footer {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 8px;
    padding-top: 14px;
    border-top: 1px dashed rgba(255, 255, 255, 0.3);
}

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

.ls-modal__price {
    font-size: 1.25rem;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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