﻿.sg-menu-shell {
    display: block;
}

.sg-menu-shell__content {
    min-width: 0;
}

.sg-menu-hero {
    margin: 0;
    padding: 0.85rem 0 0.65rem;
    background: var(--sg-ivory);
    border-bottom: 1px solid var(--sg-border);
}

.sg-menu-hero__inner {
    display: grid;
    gap: 0.65rem;
}

.sg-menu-hero__copy {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
}

.sg-menu-hero__copy h1 {
    margin: 0;
    font-family: var(--sg-font-display);
    font-size: 1.25rem;
    font-weight: 650;
    color: var(--sg-charcoal);
}

.sg-menu-hero__copy p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--sg-text-muted);
}

.sg-search {
    position: relative;
    width: 100%;
}

.sg-search__icon {
    position: absolute;
    inset-inline-start: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--sg-text-muted);
    font-size: 0.8rem;
}

.sg-search input {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--sg-border-strong);
    border-radius: 0;
    background: var(--sg-white);
    padding-block: 0.55rem;
    padding-inline: 2.2rem 0.85rem;
    color: var(--sg-text);
    outline: none;
}

.sg-search input:focus {
    border-color: var(--sg-green);
    box-shadow: 0 0 0 2px var(--sg-green-soft);
}

.sg-section-head--start {
    text-align: right;
    margin-inline: 0;
    margin-bottom: 1rem;
}

.sg-featured {
    padding: 0.5rem 0 1.25rem;
}

.hc-signature__rail-wrap,
.sg-featured__wrap {
    position: relative;
}

.hc-signature__rail-wrap::before,
.hc-signature__rail-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0.35rem;
    width: 28px;
    z-index: 2;
    pointer-events: none;
    opacity: 1;
    transition: opacity var(--sg-fast);
}

.hc-signature__rail-wrap::before {
    inset-inline-start: 0;
    background: linear-gradient(to left, transparent, var(--sg-surface));
}

.hc-signature__rail-wrap::after {
    inset-inline-end: 0;
    background: linear-gradient(to right, transparent, var(--sg-surface));
}

html[dir="rtl"] .hc-signature__rail-wrap::before {
    background: linear-gradient(to right, transparent, var(--sg-surface));
}

html[dir="rtl"] .hc-signature__rail-wrap::after {
    background: linear-gradient(to left, transparent, var(--sg-surface));
}

.hc-signature__rail-wrap.at-start::before,
.hc-signature__rail-wrap.at-end::after {
    opacity: 0;
}

.sg-featured__rail {
    display: flex;
    gap: 0.85rem;
    overflow-x: auto;
    padding-bottom: 0.35rem;
    scrollbar-width: thin;
}

.sg-featured__rail .sg-card {
    flex: 0 0 min(280px, 82vw);
}

/* Category chambers */
.sg-chamber {
    padding: 1rem 0 1.35rem;
}

.sg-chamber__head {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: end;
    gap: 0.65rem;
    margin-bottom: 0.85rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid var(--sg-border);
}

.sg-chamber__tile {
    display: none;
}

.sg-chamber__index {
    display: block;
    font-size: 0.7rem;
    color: var(--sg-malachite);
}

.sg-chamber__titles h2 {
    margin: 0;
    font-family: var(--sg-font-display);
    font-size: 1.05rem;
    font-weight: 650;
    color: var(--sg-charcoal);
}

.sg-chamber__titles p {
    margin: 0.2rem 0 0;
    color: var(--sg-text-secondary);
    font-size: 0.8rem;
}

.sg-chamber__line {
    display: none;
}

.sg-chamber__grid {
    display: grid;
    gap: 1rem;
}

/* Product cards — sharp editorial rows */
.sg-card {
    background: var(--sg-white);
    border: 1px solid var(--sg-border);
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
}

.sg-card:hover {
    border-color: rgba(11, 218, 81, 0.35);
}

.sg-card--sold {
    opacity: 0.7;
}

.sg-card__inner {
    display: grid;
    grid-template-columns: 96px 1fr;
    min-height: 108px;
}

.sg-card--rail .sg-card__inner {
    grid-template-columns: 1fr;
}

.sg-card__media-wrap {
    position: relative;
    min-height: 108px;
    background: #1a2226;
    cursor: pointer;
}

.sg-card--rail .sg-card__media-wrap {
    min-height: 130px;
}

.sg-card__media-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}

.sg-badge {
    position: absolute;
    top: 6px;
    inset-inline-start: 6px;
    z-index: 1;
    padding: 0.18rem 0.45rem;
    border-radius: 0;
    font-size: 0.65rem;
    font-weight: 700;
    background: var(--sg-charcoal);
    color: var(--sg-ivory);
}

.sg-badge--featured {
    background: var(--sg-malachite);
    color: var(--sg-charcoal);
}

.sg-badge--special {
    background: var(--sg-walnut);
    color: #fff;
}

.sg-badge--soldout {
    background: var(--sg-status-soldout);
}

.sg-card__body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.4rem;
    padding: 0.65rem 0.7rem;
    min-width: 0;
}

.sg-card__top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.sg-card__category {
    font-size: 0.68rem;
    color: var(--sg-walnut);
    font-weight: 600;
}

.sg-card__info-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--sg-beige);
    background: var(--sg-ivory);
    color: var(--sg-emerald);
    cursor: pointer;
}

.sg-card__title {
    margin: 0.25rem 0 0;
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--sg-text);
    cursor: pointer;
    line-height: 1.4;
}

.sg-card__desc {
    margin: 0.35rem 0 0;
    font-size: 0.8rem;
    color: var(--sg-text-secondary);
    line-height: 1.55;
}

.sg-variants {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.sg-variant {
    display: inline-flex;
    flex-direction: column;
    gap: 0.1rem;
    padding: 0.3rem 0.55rem;
    border-radius: 10px;
    border: 1px solid var(--sg-beige);
    background: var(--sg-ivory);
    cursor: pointer;
    font-size: 0.72rem;
}

.sg-variant.is-active {
    border-color: var(--sg-emerald);
    background: rgba(18, 63, 43, 0.08);
    color: var(--sg-emerald);
}

.sg-variant__price {
    color: var(--sg-text-secondary);
}

.sg-variant__price small {
    font-size: 0.65rem;
}

.sg-card__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    margin-top: auto;
}

.sg-card__price {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--sg-green);
}

.sg-card__price small {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--sg-text-muted);
}

.sg-card__off {
    display: block;
    font-size: 0.7rem;
    color: var(--sg-text-muted);
    text-decoration: line-through;
}

.sg-qty {
    display: inline-flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--sg-border-strong);
    border-radius: 0;
    background: var(--sg-white);
    overflow: hidden;
}

.sg-qty__btn {
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    color: var(--sg-charcoal);
    font-size: 1rem;
    cursor: pointer;
    font-weight: 700;
}

.sg-qty__btn:hover {
    background: rgba(11, 218, 81, 0.12);
    color: var(--sg-green);
}

.sg-qty__val {
    min-width: 1.4rem;
    text-align: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.sg-card__blocked {
    font-size: 0.75rem;
    color: var(--sg-status-soldout);
    font-weight: 700;
}

/* Tile breaks between categories */
.sg-tile-break {
    position: relative;
    margin: 0.5rem 0 1.5rem;
    border-radius: var(--sg-radius-xl);
    overflow: hidden;
    min-height: 110px;
    box-shadow: var(--sg-shadow-soft);
}

.sg-tile-break__surface {
    position: absolute;
    inset: 0;
}

.sg-tile-break__label {
    position: relative;
    z-index: 1;
    min-height: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    background: linear-gradient(180deg, rgba(11, 46, 32, 0.35), rgba(11, 46, 32, 0.55));
    color: var(--sg-text-on-green);
    text-align: center;
}

.sg-tile-break__label .sg-latin {
    font-size: 0.7rem;
    color: var(--sg-brass);
}

.sg-tile-break__label strong {
    font-size: 1rem;
}

.sg-empty {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--sg-text-secondary);
}

.sg-empty__mark {
    margin: 0 auto 0.75rem;
    opacity: 0.7;
}

.sg-empty--inline {
    padding: 1.5rem;
    border: 1px dashed var(--sg-beige);
    border-radius: var(--sg-radius-md);
    background: rgba(255, 252, 245, 0.6);
}

/* Modal */
.sg-modal[aria-hidden="true"] {
    display: none;
}

.sg-modal {
    position: fixed;
    inset: 0;
    z-index: 130;
    display: grid;
    place-items: center;
}

.sg-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(11, 46, 32, 0.65);
}

.sg-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(480px, calc(100% - 1.5rem));
    max-height: min(88vh, 720px);
    overflow: auto;
    background: var(--sg-card);
    border-radius: var(--sg-radius-xl);
    padding: 1rem 1.1rem 1.35rem;
    box-shadow: var(--sg-shadow-lift);
}

.sg-modal__close {
    position: absolute;
    top: 10px;
    inset-inline-end: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--sg-beige);
    background: var(--sg-ivory);
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
    z-index: 2;
}

.sg-modal__image {
    width: 100%;
    aspect-ratio: 16 / 11;
    object-fit: cover;
    border-radius: var(--sg-radius-md);
    margin-bottom: 0.85rem;
}

.sg-modal__category {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--sg-brass);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.sg-modal__title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--sg-emerald);
}

.sg-modal__desc {
    margin: 0.55rem 0 0;
    color: var(--sg-text-secondary);
    font-size: 0.9rem;
}

.sg-modal__price-row {
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--sg-beige);
}

.sg-modal__price {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--sg-emerald);
}

@media (max-width: 719.98px) {
    .sg-chamber__grid {
        grid-template-columns: 1fr;
    }

    .sg-card__inner {
        grid-template-columns: 1fr;
    }

    .sg-card__media-wrap {
        min-height: 160px;
    }

    .sg-menu-hero__band {
        border-radius: 0 0 20px 20px;
    }

    .sg-menu-hero__inner {
        padding: 1.35rem 0 1.5rem;
    }

    .sg-catalog .sg-container {
        width: min(1120px, calc(100% - 1.25rem));
    }
}

@media (min-width: 720px) {
    .sg-chamber__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sg-card__inner {
        grid-template-columns: 140px 1fr;
    }
}

@media (min-width: 1100px) {
    .sg-menu-shell {
        display: grid;
        grid-template-columns: 220px minmax(0, 1fr);
        gap: 1.5rem;
        width: min(1180px, calc(100% - 2rem));
        margin: 1.25rem auto 0;
        align-items: start;
    }

    .sg-menu-shell .sg-container {
        width: 100%;
    }

    .sg-menu-hero__inner {
        grid-template-columns: 1fr auto;
        align-items: end;
        text-align: right;
    }

    .sg-menu-hero__copy {
        text-align: right;
    }

    .sg-search {
        margin-inline: 0;
        min-width: 280px;
    }

    .sg-chamber__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1280px) {
    .sg-chamber__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .sg-card__inner {
        grid-template-columns: 1fr;
    }

    .sg-card__media-wrap {
        min-height: 180px;
    }
}

/* Modal variant picks (generated by menu.js) */
.sg-modal .hc-variant-pick,
.sg-modal .np-petal-modal__variant {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    margin-top: 0.45rem;
    padding: 0.7rem 0.85rem;
    border: 1px solid var(--sg-border-strong);
    border-radius: var(--sg-radius-sm);
    background: var(--sg-white);
    color: var(--sg-text);
    cursor: pointer;
}
.sg-modal .hc-variant-pick.is-active,
.sg-modal .np-petal-modal__variant.is-active {
    border-color: var(--sg-malachite);
    background: rgba(11, 218, 81, 0.08);
}
.sg-modal .np-petal-modal__variants-label {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--sg-jet);
}
.sg-card__stuffs {
    margin: 0.35rem 0 0;
    font-size: 0.8rem;
    color: var(--sg-text-muted);
}
