/* Shared promotion components */
.promo-banner {
    background: linear-gradient(135deg, var(--brand-blue), #173d83);
    color: var(--white);
    padding: 18px 0;
}

.promo-banner__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.promo-banner__copy {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.promo-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--brand-yellow);
    color: var(--brand-dark);
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.promo-banner__title {
    font-weight: 700;
    margin-right: 8px;
}

.promo-banner__text {
    opacity: .92;
}

.promo-banner .btn {
    flex-shrink: 0;
    background: var(--brand-yellow);
    color: var(--brand-dark);
}

.promotions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.promotion-card {
    background: var(--white);
    border-radius: 20px;
    padding: 28px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(33, 80, 166, .08);
}

.promotion-card h2 {
    color: var(--brand-blue);
    margin: 14px 0 10px;
}

.promotion-card p {
    margin-bottom: 20px;
}

.promotion-card__meta {
    font-size: .85rem;
    opacity: .72;
    margin-top: 12px;
}

/* Stable menu-card layout */
.menu-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    gap: 12px 20px;
    align-items: center;
}

.menu-item-info {
    min-width: 0;
    padding-right: 0;
}

.menu-item-title,
.menu-item-subtitle,
.menu-item-desc {
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

.menu-item-price {
    justify-self: end;
    text-align: right;
    white-space: nowrap;
}

/* Multi-price cards always stack: copy first, prices below. */
.menu-item--multi-price {
    grid-template-columns: 1fr;
    align-items: start;
}

.menu-item--multi-price .menu-item-info {
    width: 100%;
}

.menu-item--multi-price .menu-item-price--multi {
    justify-self: start;
    align-items: flex-start;
    text-align: left;
    width: 100%;
    min-width: 0;
}

.menu-item-price--multi {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: .92rem;
}

.menu-item-price--multi span {
    display: block;
    white-space: nowrap;
}

.menu-item--promo-active {
    position: relative;
    border-color: rgba(250, 166, 50, .9) !important;
    box-shadow:
        0 0 0 1px rgba(250, 166, 50, .28),
        0 8px 24px rgba(250, 166, 50, .24),
        0 0 22px rgba(250, 166, 50, .22) !important;
    transition: box-shadow .25s ease, border-color .25s ease, transform .25s ease;
}

.menu-item--promo-active::after {
    content: attr(data-promo-label);
    position: absolute;
    top: 10px;
    right: 12px;
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--brand-yellow);
    color: var(--brand-dark);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .04em;
    line-height: 1;
}

.menu-item--promo-active:hover {
    transform: translateY(-2px);
    box-shadow:
        0 0 0 1px rgba(250, 166, 50, .38),
        0 12px 28px rgba(250, 166, 50, .3),
        0 0 28px rgba(250, 166, 50, .28) !important;
}

.menu-promo-float {
    position: fixed;
    right: 22px;
    bottom: 88px;
    width: min(330px, calc(100vw - 32px));
    background: var(--white);
    border: 2px solid var(--brand-yellow);
    border-radius: 18px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, .18);
    padding: 18px 44px 18px 18px;
    z-index: 950;
}

.menu-promo-float[hidden] {
    display: none;
}

.menu-promo-float__close {
    position: absolute;
    top: 8px;
    right: 10px;
    border: 0;
    background: transparent;
    font-size: 1.35rem;
    cursor: pointer;
    color: var(--brand-dark);
}

.menu-promo-float h3 {
    color: var(--brand-blue);
    margin: 10px 0 6px;
    font-size: 1.05rem;
}

.menu-promo-float p {
    font-size: .9rem;
    margin-bottom: 12px;
}

.menu-promo-float a {
    color: var(--brand-blue);
    font-weight: 700;
    text-decoration: none;
}

.promo-empty {
    text-align: center;
    padding: 40px 20px;
    background: rgba(33, 80, 166, .05);
    border-radius: 18px;
}

body.dark-theme .promotion-card,
body.dark-theme .menu-promo-float {
    background: #292929;
    color: #f5f5f5;
}

body.dark-theme .menu-promo-float__close {
    color: #f5f5f5;
}

body.dark-theme .menu-item--promo-active {
    box-shadow:
        0 0 0 1px rgba(250, 166, 50, .42),
        0 8px 24px rgba(250, 166, 50, .3),
        0 0 26px rgba(250, 166, 50, .28) !important;
}

@media (max-width: 768px) {
    .promo-banner__inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .promo-banner .btn {
        width: 100%;
        text-align: center;
    }

    .menu-promo-float {
        right: 16px;
        bottom: 78px;
    }

    .menu-item {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .menu-item-price,
    .menu-item-price--multi {
        justify-self: start;
        text-align: left;
        align-items: flex-start;
    }

    .menu-item--promo-active::after {
        top: 8px;
        right: 8px;
        font-size: .62rem;
    }
}
