:root {
    --cream: #f6efe4;
    --latte: #efe2d1;
    --mocha: #2b1c15;
    --cocoa: #3d2a20;
    --caramel: #c1813f;
    --sage: #5c7a62;
    --brick: #ad4f2d;
    --white: #ffffff;
    --shadow: rgba(40, 24, 16, 0.15);
    --shadow-strong: rgba(40, 24, 16, 0.3);
    --radius: 20px;
    --radius-small: 12px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Alegreya Sans", "Trebuchet MS", sans-serif;
    background: radial-gradient(circle at top, #f9f3ea 0%, #efe2d1 45%, #e2d5c3 100%);
    color: var(--mocha);
    min-height: 100vh;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

h1,
h2,
h3 {
    font-family: "Fraunces", "Iowan Old Style", "Palatino Linotype", serif;
    margin: 0;
    letter-spacing: -0.02em;
}

p {
    margin: 0;
}



.page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 4rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    font-size: 2rem;
    background: var(--white);
    border-radius: 50%;
    padding: 0.5rem;
    box-shadow: 0 12px 25px var(--shadow);
    overflow: hidden;
    flex: 0 0 auto;
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.brand-label {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.7rem;
    color: rgba(61, 42, 32, 0.6);
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.topbar-actions .share-dropdown {
    left: auto;
    right: 0;
}

.language-switcher {
    display: flex;
    gap: 0.4rem;
    background: var(--white);
    padding: 0.4rem;
    border-radius: 999px;
    box-shadow: 0 12px 30px var(--shadow);
}

.language-button {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1rem;
    padding: 0.3rem 0.5rem;
    border-radius: 999px;
}

.language-button.active {
    background: var(--latte);
}

.cart-link {
    position: relative;
    background: var(--mocha);
    color: var(--cream);
    padding: 0.7rem 1rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: 0 12px 30px var(--shadow);
}

.cart-count {
    background: var(--caramel);
    color: var(--white);
    border-radius: 999px;
    padding: 0.1rem 0.45rem;
    font-size: 0.8rem;
    font-weight: 700;
}

.hero {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: linear-gradient(120deg, rgba(43, 28, 21, 0.9), rgba(173, 79, 45, 0.85));
    color: var(--cream);
    min-height: 320px;
    display: flex;
    align-items: flex-end;
    box-shadow: 0 25px 50px var(--shadow-strong);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.35;
    mix-blend-mode: screen;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.18), transparent 55%),
        radial-gradient(circle at 20% 80%, rgba(193, 129, 63, 0.35), transparent 60%),
        linear-gradient(120deg, rgba(43, 28, 21, 0.95), rgba(43, 28, 21, 0.55));
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 2.5rem 3rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-motto {
    font-size: 1.6rem;
    font-weight: 600;
}

.hero-description {
    color: rgba(248, 237, 224, 0.85);
    line-height: 1.6;
}

.hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    font-size: 0.85rem;
    font-weight: 600;
}

.chip.is-open {
    background: rgba(92, 122, 98, 0.7);
}

.chip.is-closed {
    background: rgba(173, 79, 45, 0.7);
}

.chip.accent {
    background: rgba(193, 129, 63, 0.9);
}

.chip.tiny {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
}

.chip.paid {
    background: rgba(92, 122, 98, 0.15);
    color: var(--sage);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.favorite-form-icon {
    margin: 0;
}

.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(248, 237, 224, 0.6);
    background: rgba(248, 237, 224, 0.2);
    color: var(--cream);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.icon-button svg {
    width: 20px;
    height: 20px;
}

.loyalty-indicator {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(173, 79, 45, 0.45);
    background: rgba(173, 79, 45, 0.08);
    color: var(--brick);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.loyalty-indicator:hover {
    border-color: rgba(173, 79, 45, 0.7);
    background: rgba(173, 79, 45, 0.15);
}

.loyalty-tooltip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translate(-50%, 6px);
    opacity: 0;
    pointer-events: none;
    padding: 0.35rem 0.6rem;
    border-radius: 10px;
    background: var(--cocoa);
    color: var(--cream);
    font-size: 0.75rem;
    white-space: nowrap;
    box-shadow: 0 12px 30px rgba(43, 28, 21, 0.4);
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 3;
}

.loyalty-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px 6px 0;
    border-style: solid;
    border-color: var(--cocoa) transparent transparent;
}

.loyalty-indicator:hover .loyalty-tooltip {
    opacity: 1;
    transform: translate(-50%, 0);
}

.favorite-toggle svg path {
    fill: transparent;
    stroke: var(--brick);
    stroke-width: 1.5;
}

.favorite-toggle:hover {
    border-color: rgba(173, 79, 45, 0.7);
    background: rgba(173, 79, 45, 0.15);
}

.favorite-toggle.is-active svg path {
    fill: var(--brick);
    stroke: var(--brick);
}

.icon-button[disabled] {
    opacity: 0.7;
    cursor: default;
}

.button {
    border: none;
    border-radius: 999px;
    padding: 0.6rem 1.3rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button.primary {
    background: var(--caramel);
    color: var(--white);
    box-shadow: 0 15px 30px rgba(193, 129, 63, 0.25);
}

.button.ghost {
    background: transparent;
    border: 1px solid currentColor;
    color: inherit;
}

.button:hover {
    transform: translateY(-2px);
}

.section {
    background: rgba(255, 255, 255, 0.75);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: 0 18px 45px var(--shadow);
    backdrop-filter: blur(10px);
}

.section summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.section summary::-webkit-details-marker {
    display: none;
}

.section-body {
    margin-top: 1.5rem;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.7rem;
    color: rgba(61, 42, 32, 0.5);
}

.muted {
    color: rgba(61, 42, 32, 0.6);
}

.quick-info {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    background: transparent;
    padding: 0;
    box-shadow: none;
}

.info-card {
    background: rgba(255, 255, 255, 0.75);
    border-radius: var(--radius);
    padding: 1.8rem;
    box-shadow: 0 16px 40px var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem 1.5rem;
}

.schedule-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0.8rem;
    border-radius: var(--radius-small);
    background: rgba(239, 226, 209, 0.6);
}

.schedule-item.is-today {
    border: 1px solid rgba(193, 129, 63, 0.4);
    background: rgba(193, 129, 63, 0.15);
}

.location-card {
    position: relative;
    overflow: hidden;
}

.location-card > * {
    position: relative;
    z-index: 1;
}

.location-card,
.location-card .label,
.location-card span,
.location-card .location-address,
.location-card strong {
    color: var(--cream);
}

.location-card .muted {
    color: rgba(248, 237, 224, 0.85);
}

.location-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(43, 28, 21, 0.7), rgba(43, 28, 21, 0.3)),
        var(--card-image, none);
    background-size: cover;
    background-position: center;
    pointer-events: none;
}

.location-address {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.location-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.location-actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.filters-wrap {
    position: relative;
}

.menu-search {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    box-sizing: border-box;
    margin: 0 0 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(61, 42, 32, 0.18);
    border-radius: var(--radius-small);
    background: rgba(255, 255, 255, 0.9);
    color: rgba(61, 42, 32, 0.58);
    box-shadow: 0 10px 24px rgba(40, 24, 16, 0.08);
}

.menu-search:focus-within {
    border-color: rgba(193, 129, 63, 0.62);
    box-shadow: 0 0 0 3px rgba(193, 129, 63, 0.13);
}

.menu-search svg {
    flex: 0 0 auto;
}

.menu-search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--mocha);
    font: inherit;
    font-size: 0.98rem;
}

.menu-search input::placeholder {
    color: rgba(61, 42, 32, 0.46);
}

.menu-empty-state {
    margin-top: 1rem;
}

.filters {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 1.5rem;
}

.filters::-webkit-scrollbar {
    display: none;
}

.filters-more {
    position: absolute;
    right: 0;
    top: 0;
    height: calc(100% - 1.5rem);
    width: 3rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 0.5rem;
    border: none;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.95) 45%);
    color: var(--mocha);
    cursor: pointer;
}

.filters-more[hidden] {
    display: none;
}

.filter-pill {
    flex-shrink: 0;
    white-space: nowrap;
    border: 1px solid rgba(61, 42, 32, 0.2);
    border-radius: 999px;
    padding: 0.4rem 1.1rem;
    background: transparent;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.filter-pill.is-active {
    background: var(--mocha);
    color: var(--cream);
    border-color: var(--mocha);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 12px 30px var(--shadow);
}

.cards-grid .card[data-product-expandable="true"] {
    cursor: pointer;
}

.cards-grid .card[data-product-expandable="true"]:focus-visible {
    outline: 2px solid var(--brick);
    outline-offset: 2px;
}

.card-media {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: rgba(43, 28, 21, 0.08);
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: height 0.25s ease, object-fit 0.2s ease;
}

.cards-grid .card.is-expanded .card-media {
    aspect-ratio: auto;
    height: clamp(240px, 34vw, 420px);
}

.cards-grid .card.is-expanded .card-media img {
    object-fit: contain;
}

.card-body {
    flex: 1;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding-bottom: 1rem;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(61, 42, 32, 0.12);
}

.badge {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.65rem;
    color: rgba(61, 42, 32, 0.5);
}

.price {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.price-original {
    text-decoration: line-through;
    color: rgba(61, 42, 32, 0.4);
    font-size: 0.9rem;
}

.price-current {
    font-weight: 700;
    color: var(--brick);
}

.card-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.qty {
    background: rgba(61, 42, 32, 0.1);
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.85rem;
}

.highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.highlight {
    background: rgba(255, 255, 255, 0.75);
    border-radius: var(--radius);
    padding: 1.8rem;
    box-shadow: 0 16px 35px var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.highlight-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.highlight-card {
    background: rgba(239, 226, 209, 0.6);
    border-radius: var(--radius-small);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.grouped-promo-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.grouped-promo-row {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 1rem;
}

.grouped-promo-reqs {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.grouped-promo-card {
    background: rgba(239, 226, 209, 0.6);
    border-radius: var(--radius-small);
    padding: 0.45rem 0.65rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.grouped-promo-card.reward {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
}

.grouped-promo-count {
    min-width: 2.2rem;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.12);
    font-weight: 700;
    text-align: center;
}

.grouped-promo-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(15, 23, 42, 0.65);
}

@media (max-width: 720px) {
    .grouped-promo-row {
        grid-template-columns: 1fr;
    }
}

.gallery-grid {
    columns: 3;
    column-gap: 1rem;
}

.gallery-item {
    margin: 0 0 1rem;
    border-radius: var(--radius-small);
    overflow: hidden;
    box-shadow: 0 12px 25px var(--shadow);
    background: var(--white);
    display: block;
    width: 100%;
    break-inside: avoid;
    page-break-inside: avoid;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 900px) {
    .gallery-grid {
        columns: 2;
    }
}

@media (max-width: 560px) {
    .gallery-grid {
        columns: 1;
    }
}

.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.event-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 16px 35px var(--shadow);
    display: flex;
    flex-direction: column;
}

.event-media {
    height: clamp(280px, 38vw, 420px);
    margin: 1rem 1rem 0;
    border-radius: calc(var(--radius-small) + 2px);
    border: 1px solid rgba(61, 42, 32, 0.14);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(43, 28, 21, 0.08);
}

.event-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

@media (min-width: 768px) {
    .event-media img {
        object-fit: contain;
    }
}

.event-body {
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.event-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem 1rem;
}

.label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(61, 42, 32, 0.5);
}

.event-actions {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding-top: 0.5rem;
}

.event-actions .buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.event-actions .status {
    font-weight: 600;
}

.event-status-text {
    margin: 0;
}

.event-paid-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    width: fit-content;
    max-width: 100%;
    padding: 0.35rem 0.65rem;
    border: 1px solid rgba(22, 101, 52, 0.22);
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.12);
    color: #166534;
    font-size: 0.78rem;
    font-weight: 700;
}

.event-paid-chip[hidden] {
    display: none;
}

.event-actions.is-full .status,
.event-actions .status.is-warning {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid rgba(146, 64, 14, 0.35);
    border-radius: var(--radius-small);
    background: rgba(251, 191, 36, 0.24);
    color: #7c2d12;
    box-shadow: 0 10px 20px rgba(146, 64, 14, 0.12);
}

.event-action.active {
    background: var(--mocha);
    color: var(--cream);
    border-color: var(--mocha);
}

.size-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(43, 28, 21, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 90;
    padding: 1.5rem;
}

.size-modal {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    max-width: 340px;
    width: min(340px, calc(100vw - 3rem));
    margin: 0 auto;
    box-shadow: 0 20px 40px var(--shadow-strong);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.size-options {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.size-option {
    border: 1px solid rgba(61, 42, 32, 0.2);
    border-radius: var(--radius-small);
    padding: 0.7rem 1rem;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.size-actions {
    display: flex;
    justify-content: flex-end;
}

.size-actions [data-extra-apply],
.size-actions [data-ticket-confirm] {
    background: var(--mocha);
    color: var(--cream);
}

@media (max-width: 900px) {
    .quick-info {
        grid-template-columns: 1fr;
    }

    .hero-content {
        padding: 2rem;
    }

    .event-meta {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .size-modal-overlay {
        padding: 1rem;
    }

    .size-modal {
        width: min(100%, calc(100vw - 2rem));
    }

    .topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .topbar-actions .share-dropdown {
        left: 0;
        right: auto;
    }

    .hero {
        min-height: 280px;
    }

    .section {
        padding: 1.5rem;
    }

    .schedule-grid {
        grid-template-columns: 1fr;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }
}
