@font-face {
    font-family: "Oswald";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src:
        url("../fonts/oswald-regular-full.ttf") format("truetype"),
        url("../fonts/oswald-regular.woff2") format("woff2"),
        url("../fonts/oswald-regular.woff") format("woff");
}

@font-face {
    font-family: "Oswald";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src:
        url("../fonts/oswald-medium-full.ttf") format("truetype"),
        url("../fonts/oswald-medium.woff") format("woff");
}

@font-face {
    font-family: "Oswald";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src:
        url("../fonts/oswald-semibold-full.ttf") format("truetype"),
        url("../fonts/oswald-semibold.woff2") format("woff2"),
        url("../fonts/oswald-semibold.woff") format("woff");
}

@font-face {
    font-family: "Oswald";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src:
        url("../fonts/oswald-bold-full.ttf") format("truetype"),
        url("../fonts/oswald-bold.woff") format("woff");
}

@font-face {
    font-family: "Open Sans";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src:
        url("../fonts/open-sans-regular-full.ttf") format("truetype"),
        url("../fonts/open-sans-regular.woff2") format("woff2"),
        url("../fonts/open-sans-regular.woff") format("woff");
}

@font-face {
    font-family: "Open Sans";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src:
        url("../fonts/open-sans-semibold-full.ttf") format("truetype"),
        url("../fonts/open-sans-semibold.woff2") format("woff2"),
        url("../fonts/open-sans-semibold.woff") format("woff");
}

@font-face {
    font-family: "Open Sans";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src:
        url("../fonts/open-sans-bold-full.ttf") format("truetype"),
        url("../fonts/open-sans-bold.woff") format("woff");
}

html {
    overflow-x: clip;
    background:
        radial-gradient(circle at top center, rgba(255, 255, 255, 0.45), transparent 34%),
        linear-gradient(180deg, #e6e6e6 0%, #dcdcdc 42%, #d5d5d5 100%);
}

:root {
    --accent: #ffd128;
    --accent-hover: #e6bc00;
    --warm: #c8a060;
    --cool: #90b8c8;
    --background: #f2f2f2;
    --page-bg: #d5d5d5;
    --card-bg: #ffffff;
    --food-bg: #f5f0e8;
    --bar-bg: #e8f3f7;
    --beer-bg: #fff8e1;
    --dark: #181818;
    --secondary: #333333;
    --muted: #696969;
    --border: #e0e0e0;
    --abv-bg: #fff3cd;
    --abv-text: #7a5500;
    --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 10px 24px rgba(0, 0, 0, 0.16);
    --shadow-up: 0 -2px 8px rgba(0, 0, 0, 0.06);
    --page-max-width: 31rem;
    --category-nav-height: 4rem;
    --font-heading: "Oswald", system-ui, sans-serif;
    --font-body: "Open Sans", system-ui, sans-serif;

    --pico-font-family: var(--font-body);
    --pico-font-size: 100%;
    --pico-line-height: 1.55;
    --pico-color: var(--secondary);
    --pico-background-color: transparent;
    --pico-card-background-color: var(--card-bg);
    --pico-card-border-color: rgba(24, 24, 24, 0.08);
    --pico-primary: var(--accent);
    --pico-primary-hover: var(--accent-hover);
    --pico-primary-focus: rgba(255, 209, 40, 0.24);
    --pico-primary-inverse: var(--dark);
    --pico-h1-color: var(--dark);
    --pico-h2-color: var(--dark);
    --pico-h3-color: var(--dark);
    --pico-muted-color: var(--muted);
    --pico-border-radius: 1rem;
    --pico-spacing: 1rem;
}

body {
    min-height: 100vh;
    font-size: 16px;
    color: var(--secondary);
}

body,
button,
input,
select,
textarea {
    font-family: var(--font-body);
    font-synthesis: none;
}

h1,
h2,
h3,
h4,
h5,
h6,
.listing-header__name,
.storefront-brand,
.section-card__title,
.item-card__title,
.item-card__price,
.btn-plus,
.btn-detail,
.volume-chip,
.detail-title,
.detail-header-bar__title,
.detail-total__value,
.btn-add-to-list,
.wishlist-screen__title,
.wishlist-row__price,
.wishlist-screen__total-value {
    font-family: var(--font-heading);
    font-synthesis: none;
    letter-spacing: 0.02em;
}

.page-shell {
    width: min(calc(100% - 1.5rem), var(--page-max-width));
    margin: 0 auto;
}

.storefront-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 3px solid var(--accent);
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.storefront-header .page-shell {
    padding: 0.95rem 0 0.8rem;
}

.storefront-header--home {
    box-shadow: var(--shadow-sm);
}

.storefront-header__inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.storefront-brand-lockup {
    display: grid;
    gap: 0.28rem;
}

.storefront-brand {
    margin: 0;
    color: var(--dark);
    font-size: clamp(1.9rem, 7vw, 2.4rem);
    line-height: 0.95;
    text-transform: uppercase;
}

.storefront-tagline {
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.35;
}

.storefront-logo {
    display: block;
    width: min(12.75rem, 64vw);
    height: auto;
}

.eyebrow {
    margin: 0;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.eyebrow--home {
    color: var(--muted);
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.14em;
}

main.page-shell {
    padding: 0.9rem 0 5.5rem;
}

.section-screen {
    display: grid;
    gap: 0.9rem;
}

.section-screen--home {
    gap: 1rem;
}

.category-page {
    margin-top: -0.9rem;
}

.section-screen__intro {
    display: grid;
    gap: 0.25rem;
}

.section-screen__intro h2 {
    margin: 0;
    color: var(--dark);
    font-size: clamp(1.65rem, 7vw, 2.2rem);
    line-height: 0.98;
}

.section-screen__lead {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.section-grid {
    display: grid;
    gap: 0.75rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.section-grid > li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.section-card {
    --section-accent: var(--accent);
    position: relative;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    border-radius: 1rem;
    background: var(--card-bg);
    box-shadow: var(--shadow-md);
    color: inherit;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.section-card::before {
    position: absolute;
    top: -1px;
    bottom: -1px;
    left: -1px;
    width: 5px;
    border-radius: 1rem 0 0 1rem;
    background: var(--section-accent);
    content: "";
    pointer-events: none;
}

.section-card:hover,
.section-card:focus-visible {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.section-card__body {
    flex: 1 1 auto;
    min-width: 0;
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0.26rem;
    padding: 0.95rem 0.95rem 0.95rem 1.15rem;
}

.section-card__icon {
    font-size: 1.45rem;
    line-height: 1;
}

.section-card__title {
    color: var(--dark);
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.05;
    text-transform: none;
    letter-spacing: 0.01em;
}

.section-card__meta {
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.4;
}

.section-card__arrow {
    flex: 0 0 auto;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.9rem;
    color: var(--section-accent);
    font-size: 1.35rem;
}

.section-card--yellow {
    --section-accent: var(--accent);
}

.section-card--warm {
    --section-accent: var(--warm);
}

.section-card--cool {
    --section-accent: var(--cool);
}

.storefront-header a,
.storefront-header button,
main a,
main button,
main [role="button"],
main input,
main select,
main textarea,
main summary {
    min-height: 44px;
}

.listing-chrome {
    --section-accent: var(--accent);
    position: sticky;
    top: 0;
    z-index: 18;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-bottom: 0.95rem;
    border-bottom: 3px solid var(--section-accent);
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
}

.listing-chrome--food {
    --section-accent: var(--warm);
}

.listing-chrome--bar {
    --section-accent: var(--cool);
}

.listing-header {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 0.625rem;
    align-items: center;
    width: min(100%, var(--page-max-width));
    margin: 0 auto;
    padding: 0.75rem 0.875rem 0.5rem;
}

.detail-header-bar {
    --section-accent: var(--accent);
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 0.7rem;
    align-items: center;
    padding: 0.75rem 0.85rem;
    border-radius: 1rem;
    background: var(--card-bg);
    box-shadow: var(--shadow-sm);
}

.listing-header--food,
.detail-header-bar--food {
    --section-accent: var(--warm);
}

.listing-header--bar,
.detail-header-bar--bar {
    --section-accent: var(--cool);
}

.listing-header__back,
.detail-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    min-width: 32px;
    min-height: 32px;
    border-radius: 999px;
    background: var(--background);
    color: var(--dark);
    font-size: 1.05rem;
    line-height: 1;
    text-decoration: none;
}

.listing-header__title,
.detail-header-bar__copy {
    min-width: 0;
}

.listing-header__title {
    display: grid;
    gap: 0.12rem;
}

.detail-header-bar__title {
    margin: 0;
    color: var(--dark);
    font-size: 1rem;
    line-height: 1.05;
    text-transform: none;
}

.listing-header__name {
    margin: 0;
    color: var(--dark);
    font-size: 1.0625rem;
    line-height: 1.15;
    text-transform: none;
}

.listing-header__meta {
    margin: 0;
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.35;
    font-family: var(--font-body);
    letter-spacing: 0;
    text-transform: none;
}

.detail-header-bar__meta {
    margin: 0.1rem 0 0;
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.35;
}

.category-nav {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    width: min(100%, var(--page-max-width));
    margin: 0 auto;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    padding: 0 0.875rem 0.625rem;
    background: transparent;
}

.category-nav::-webkit-scrollbar {
    display: none;
}

.category-pill {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0.375rem 0.75rem;
    border: 1px solid transparent;
    border-radius: 999px;
    background: #dfdfdf;
    color: var(--muted);
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    letter-spacing: 0.02em;
    -webkit-tap-highlight-color: transparent;
    transition:
        background-color 140ms ease,
        border-color 140ms ease,
        color 140ms ease,
        box-shadow 140ms ease,
        transform 140ms ease;
}

.category-pill--active {
    background: #181818;
    color: #ffffff;
    border-color: #181818;
}

.category-pill:hover {
    border-color: rgba(24, 24, 24, 0.12);
    background: #e7e7e7;
    color: var(--dark);
}

.category-pill:focus-visible {
    outline: none;
    border-color: #181818;
    box-shadow: 0 0 0 3px rgba(24, 24, 24, 0.08);
}

.category-pill:active {
    transform: translateY(1px);
}

.category-pill--active:hover,
.category-pill--active:focus-visible,
.category-pill--active:active {
    background: #181818;
    color: #ffffff;
    border-color: #181818;
    box-shadow: none;
}

.category-note {
    margin: 0 0 0.95rem;
    padding: 0;
}

.category-note-row {
    display: grid;
    gap: 0.4rem;
}

.category-note-text,
.category-note__text {
    margin: 0;
    padding-left: 0.65rem;
    border-left: 3px solid var(--accent);
    color: var(--secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.category-note__text--clamped {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-note-btn,
.category-note__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    width: fit-content;
    min-height: 28px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--dark);
    cursor: pointer;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    -webkit-tap-highlight-color: transparent;
}

.category-note__toggle:focus,
.category-note__toggle:focus-visible {
    outline: none;
    box-shadow: none;
    text-decoration: underline;
    text-underline-offset: 0.16em;
}

.listing-shell {
    margin-top: 0.15rem;
}

.listing-shell--with-wishlist-fab {
    padding-bottom: calc(5.75rem + env(safe-area-inset-bottom));
}

.subcategory-section {
    margin-bottom: 1.1rem;
}

.subcategory-heading {
    margin: 0 0 0.85rem;
    padding: 0.05rem 0;
    color: var(--dark);
    font-size: 0.92rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1.1;
    overflow-wrap: anywhere;
    scroll-margin-top: calc(7.5rem + env(safe-area-inset-top));
}

#loose-items {
    scroll-margin-top: calc(7.5rem + env(safe-area-inset-top));
}

.item-list {
    display: grid;
    gap: 0.55rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.item-list > li {
    list-style: none;
    margin: 0;
    padding: 0;
    min-width: 0;
}

.item-card {
    overflow: hidden;
    border-radius: 0.9rem;
    background: var(--card-bg);
    box-shadow: var(--shadow-sm);
    padding: 0;
}

.item-card__link {
    display: grid;
    color: inherit;
    text-decoration: none;
}

.item-card__link:hover .item-card__title,
.item-card__link:focus-visible .item-card__title {
    color: color-mix(in srgb, var(--accent) 35%, var(--dark));
}

.item-card--beer .item-card__link {
    grid-template-columns: clamp(74px, 18vw, 82px) minmax(0, 1fr) auto;
}

.item-card--food .item-card__link {
    grid-template-columns: clamp(96px, 30%, 130px) minmax(0, 1fr);
}

.item-card--bar .item-card__link {
    grid-template-columns: 80px minmax(0, 1fr) auto;
}

.item-card__media {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--background);
}

.item-card--beer .item-card__media {
    min-height: 102px;
    background: linear-gradient(160deg, #f5e9c0 0%, #d7b85a 100%);
}

.item-card--food .item-card__media {
    min-height: 96px;
    background: var(--food-bg);
}

.item-card--food .item-card__image {
    object-position: center 20%;
}

.item-card--bar .item-card__media {
    position: relative;
    min-height: 84px;
    background: linear-gradient(160deg, #f3ebe4 0%, #d7e6ec 100%);
}

.item-card__media picture {
    display: flex;
    align-self: stretch;
    width: 100%;
}

.item-card__image {
    flex: 1;
    min-height: 0;
    width: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.item-card__placeholder {
    font-size: 1.6rem;
    line-height: 1;
}

.item-card--bar .item-card__placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
}

.item-card__body {
    display: grid;
    gap: 0.18rem;
    min-width: 0;
    padding: 0.7rem 0.75rem 0.55rem;
}

.item-card--food .item-card__body {
    gap: 0.22rem;
    padding: 0.55rem 0.65rem 0.45rem;
}

.item-card__title {
    margin: 0;
    color: var(--dark);
    font-size: clamp(1.06rem, 3.35vw, 1.12rem);
    font-weight: 600;
    line-height: 1.21;
    text-transform: none;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
}

.item-card__subtitle {
    margin: 0;
    color: #555555;
    font-size: 0.88rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.item-card__description {
    margin: 0;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.32;
    white-space: pre-line;
    overflow: hidden;
    overflow-wrap: anywhere;
}

@supports (-webkit-line-clamp: 3) {
    .item-card__description {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
    }
}

@supports not (-webkit-line-clamp: 3) {
    .item-card__description {
        max-height: calc(3 * 1.32em);
    }
}

.beer-meta {
    margin: 0.08rem 0 0;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.35;
}

.item-card__tags,
.beer-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0.22rem;
}

.tag-chip,
.beer-chip {
    display: inline-flex;
    align-items: center;
    min-height: 1.25rem;
    padding: 0.16rem 0.42rem;
    border-radius: 0.55rem;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.1;
}

.beer-chip {
    background: var(--abv-bg);
    color: var(--abv-text);
}

.item-card__chevron {
    display: flex;
    align-items: center;
    padding: 0 0.7rem 0 0.1rem;
    color: #c2c2c2;
    font-size: 1.35rem;
}

.item-card__footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.7rem;
    align-items: center;
    padding: 0.55rem 0.75rem 0.72rem;
    border-top: 1px solid var(--border);
}

.item-card__footer--dual {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.75rem 0.65rem;
}

.item-card__footer--food {
    padding: 0.42rem 0.65rem 0.55rem;
}

.item-card__footer-meta {
    min-width: 0;
}

.item-card__footer-note {
    margin: 0;
    color: var(--muted);
    font-size: 0.72rem;
    line-height: 1.3;
}

.item-card__facts-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.item-card__footer-actions {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.item-card__footer-actions--food {
    gap: 0.45rem;
}

.item-card__price {
    margin: 0;
    color: var(--dark);
    font-size: 1.05rem;
    line-height: 1;
    text-transform: none;
}

.btn-plus,
.btn-detail {
    min-height: 44px;
    margin: 0;
    cursor: pointer;
}

.volume-chip {
    min-height: 36px;
    margin: 0;
    cursor: pointer;
}

.btn-plus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-width: 44px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: var(--accent);
    color: var(--dark);
    font-size: 1.1rem;
    line-height: 1;
    text-decoration: none;
}

.btn-plus--count {
    width: auto;
    min-width: 44px;
    padding: 0 0.72rem;
    background: var(--dark);
    color: #ffffff;
}

.btn-plus__label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1ch;
}

.btn-detail {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.85rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--background);
    color: var(--dark);
    font-size: 0.72rem;
    line-height: 1;
    text-decoration: none;
    text-transform: none;
}

.volume-chip {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem;
    padding: 0.4rem 0.7rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--background);
    color: var(--dark);
    font-size: 0.8rem;
    line-height: 1.3;
    text-align: left;
}

.volume-chip__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.55rem;
    min-height: 1.55rem;
    padding: 0 0.38rem;
    border-radius: 999px;
    background: rgba(24, 24, 24, 0.06);
    color: var(--muted);
    font-family: var(--font-heading);
    font-size: 0.82rem;
    line-height: 1;
}

.volume-chip__count--active {
    background: var(--dark);
    color: #ffffff;
}

.volume-chip--active {
    border-color: color-mix(in srgb, var(--dark) 24%, var(--border));
}

.btn-plus:hover,
.btn-detail:hover,
.volume-chip:hover,
.btn-plus:focus-visible,
.btn-detail:focus-visible,
.volume-chip:focus-visible,
.listing-header__back:hover,
.detail-back:hover {
    box-shadow: 0 0 0 3px rgba(255, 209, 40, 0.18);
}

.wishlist-fab {
    position: fixed;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    z-index: 30;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 48px;
    padding: 0.65rem 0.9rem 0.65rem 1rem;
    border: 0;
    border-radius: 999px;
    background: var(--dark);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    color: #ffffff;
}

.wishlist-fab__icon {
    font-size: 0.92rem;
    line-height: 1;
}

.wishlist-fab__label {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1;
}

.wishlist-fab__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    min-width: 20px;
    min-height: 20px;
    border-radius: 999px;
    background: var(--accent);
    color: var(--dark);
    font-family: var(--font-heading);
    font-size: 0.78rem;
    line-height: 1;
}

.wishlist-screen-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

.wishlist-screen {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: grid;
}

.wishlist-screen__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(24, 24, 24, 0.44);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.wishlist-panel-enter,
.wishlist-panel-leave {
    transition:
        transform 0.28s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.28s ease;
}

.wishlist-panel-enter-start,
.wishlist-panel-leave-end {
    transform: translateY(1.5rem);
    opacity: 0;
}

.wishlist-panel-enter-end,
.wishlist-panel-leave-start {
    transform: translateY(0);
    opacity: 1;
}

.wishlist-screen__panel {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    min-height: 100dvh;
    padding:
        calc(1rem + env(safe-area-inset-top))
        1rem
        calc(1rem + env(safe-area-inset-bottom));
    background:
        radial-gradient(circle at top right, rgba(255, 209, 40, 0.16), transparent 26%),
        linear-gradient(180deg, #f7f4ee 0%, #efefef 100%);
}

.wishlist-screen__header {
    display: grid;
    gap: 0.65rem;
    padding-bottom: 1rem;
}

.wishlist-screen__back {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 32px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 600;
}

.wishlist-screen__intro {
    display: grid;
    gap: 0.2rem;
}

.wishlist-screen__meta,
.wishlist-screen__footer-hint,
.wishlist-row__meta,
.wishlist-row__modifiers {
    margin: 0;
    color: var(--muted);
}

.wishlist-screen__title {
    margin: 0;
    color: var(--dark);
    font-size: 1.28rem;
    line-height: 1;
    text-transform: none;
}

.wishlist-screen__meta {
    font-size: 0.84rem;
}

.wishlist-screen__content {
    min-height: 0;
    overflow-y: auto;
}

.wishlist-screen__list {
    display: grid;
    gap: 0.55rem;
}

.wishlist-row {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 0.65rem;
    align-items: center;
    padding: 0.75rem;
    border-radius: 0.9rem;
    background: var(--card-bg);
    box-shadow: var(--shadow-sm);
}

.wishlist-row__media {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    overflow: hidden;
    border-radius: 0.5rem;
    background: var(--background);
}

.wishlist-row__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.wishlist-row--beer .wishlist-row__image {
    object-position: center top;
}

.wishlist-row__placeholder {
    font-size: 1.25rem;
    line-height: 1;
}

.wishlist-row__main {
    min-width: 0;
}

.wishlist-row__headline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
}

.wishlist-row__title {
    margin: 0;
    color: var(--dark);
    font-size: 0.92rem;
    line-height: 1.2;
    text-transform: none;
}

.wishlist-row__quantity {
    display: inline-flex;
    align-items: center;
    min-height: 1.3rem;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    background: rgba(255, 209, 40, 0.18);
    color: var(--secondary);
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
}

.wishlist-row__meta {
    margin-top: 0.15rem;
    font-size: 0.72rem;
    line-height: 1.4;
}

.wishlist-row__modifiers {
    margin-top: 0.2rem;
    font-size: 0.76rem;
    line-height: 1.45;
}

.wishlist-row__actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.wishlist-row__price {
    margin: 0;
    color: var(--dark);
    font-size: 1rem;
    line-height: 1;
    text-transform: none;
    white-space: nowrap;
}

.wishlist-row__remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    min-width: 28px;
    min-height: 28px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: var(--background);
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1;
}

.wishlist-screen__footer {
    margin-top: 0.9rem;
    padding: 0.85rem 0.9rem 0.35rem;
    border-radius: 0.9rem 0.9rem 0 0;
    background: var(--card-bg);
    box-shadow: var(--shadow-up);
}

.wishlist-screen__total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.wishlist-screen__total-label {
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
}

.wishlist-screen__total-value {
    margin: 0;
    color: var(--dark);
    font-size: 1.3rem;
    line-height: 1;
    text-transform: none;
}

.wishlist-screen__footer-hint {
    margin-top: 0.4rem;
    font-size: 0.74rem;
    text-align: center;
}

.wishlist-screen__empty {
    display: grid;
    gap: 0.35rem;
    padding: 1rem;
    border: 1px dashed rgba(24, 24, 24, 0.14);
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.76);
}

.wishlist-screen__empty-title,
.wishlist-screen__empty-text {
    margin: 0;
}

.wishlist-screen__empty-title {
    color: var(--dark);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    line-height: 1;
}

.detail-screen {
    display: grid;
    gap: 0.75rem;
}

.detail-hero,
.detail-copy,
.detail-section,
.detail-action-row {
    border-radius: 0.9rem;
    background: var(--card-bg);
    box-shadow: var(--shadow-sm);
}

.detail-hero--split {
    display: grid;
    grid-template-columns: 114px minmax(0, 1fr);
    overflow: hidden;
}

.detail-hero--split .photo-panel {
    align-items: stretch;
}

.detail-hero--split .photo-panel picture {
    display: block;
    width: 100%;
    height: 100%;
}

.detail-hero--split .photo-panel__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-hero--food {
    overflow: hidden;
}

.photo-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 176px;
    overflow: hidden;
    background: linear-gradient(160deg, #f5e9c0 0%, #d7b85a 100%);
}

.detail-screen--food .photo-panel {
    background: var(--food-bg);
}

.detail-screen--bar .photo-panel {
    background: linear-gradient(160deg, #f3ebe4 0%, #d7e6ec 100%);
}

.photo-panel--wide {
    width: 100%;
    min-height: 220px;
}

.photo-panel__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.photo-panel__placeholder {
    font-size: 2.5rem;
    line-height: 1;
}

.detail-hero--split .photo-panel > .photo-panel__placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
}

.detail-hero__aside {
    display: grid;
    align-content: start;
    gap: 0.45rem;
    padding: 0.75rem;
    background: #f7f3ed;
}

.detail-copy {
    display: grid;
    gap: 0.28rem;
    padding: 0.85rem 0.9rem 0.95rem;
}

.detail-copy--food {
    box-shadow: none;
}

.detail-title {
    margin: 0;
    color: var(--dark);
    font-size: clamp(1.45rem, 5vw, 1.7rem);
    line-height: 1.08;
    text-transform: none;
}

.detail-subtitle {
    margin: 0;
    color: #555555;
    font-size: 0.98rem;
    line-height: 1.3;
}

.detail-description-text {
    margin: 0.15rem 0 0;
    color: var(--secondary);
    font-size: 0.94rem;
    line-height: 1.6;
    white-space: pre-line;
}

.detail-copy .beer-meta {
    font-size: 0.9rem;
}

.kbzhu-grid {
    display: grid;
    grid-template-columns: repeat(4, auto);
    justify-content: start;
    gap: 0 1.1rem;
    margin-top: 0.25rem;
}

.kbzhu-cell {
    display: grid;
    gap: 0.1rem;
    padding: 0.35rem 0;
}

.kbzhu-value {
    color: var(--dark);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1;
}

.kbzhu-label {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
}

.kbzhu-unit {
    display: none;
}

.allergen-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.3rem;
}

.allergen-chips__label {
    width: 100%;
    margin-bottom: 0.15rem;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.allergen-chip {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(24, 24, 24, 0.06);
    color: var(--secondary);
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1.2;
}

.detail-facts-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 0.35rem;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.35;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.detail-tags--stacked {
    margin-bottom: 0.1rem;
}

.detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-bottom: 0.15rem;
}

.detail-section {
    padding: 0.85rem 0.9rem 0.95rem;
}

.detail-section legend {
    margin-bottom: 0.6rem;
    color: var(--dark);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.detail-fact {
    margin: 0;
    color: var(--secondary);
    font-size: 0.82rem;
}

.detail-fieldset,
.modifier-group {
    margin: 0;
    padding: 0;
    border: 0;
}

.modifier-group + .modifier-group {
    margin-top: 0.9rem;
    padding-top: 0.9rem;
    border-top: 1px solid var(--border);
}

.modifier-group--variant-axis + .modifier-group--variant-axis {
    margin-top: 1.1rem;
    padding-top: 0;
    border-top: 0;
}

.modifier-group__required {
    margin-left: 0.35rem;
    color: var(--muted);
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

.volume-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.modifier-group__options {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0.55rem;
}

.modifier-group__options--variant {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.volume-option {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 44px;
    padding: 0.35rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--card-bg);
    cursor: pointer;
}

.modifier-chip {
    position: relative;
    display: grid;
    gap: 0.18rem;
    flex: 0 1 auto;
    width: fit-content;
    max-width: min(100%, 22rem);
    min-width: 0;
    min-height: 44px;
    padding: 0.75rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    background: var(--card-bg);
    cursor: pointer;
}

.volume-option input,
.modifier-chip input {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
}

.volume-option:hover,
.modifier-chip:hover,
.volume-option:focus-within,
.modifier-chip:focus-within,
.volume-option--active,
.modifier-chip--active {
    border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
    box-shadow: 0 0 0 3px rgba(255, 209, 40, 0.16);
}

.detail-screen--food .volume-option:hover,
.detail-screen--food .modifier-chip:hover,
.detail-screen--food .volume-option:focus-within,
.detail-screen--food .modifier-chip:focus-within,
.detail-screen--food .volume-option--active,
.detail-screen--food .modifier-chip--active {
    border-color: color-mix(in srgb, var(--warm) 60%, var(--border));
    box-shadow: 0 0 0 3px rgba(200, 160, 96, 0.16);
}

.detail-screen--bar .volume-option:hover,
.detail-screen--bar .modifier-chip:hover,
.detail-screen--bar .volume-option:focus-within,
.detail-screen--bar .modifier-chip:focus-within,
.detail-screen--bar .volume-option--active,
.detail-screen--bar .modifier-chip--active {
    border-color: color-mix(in srgb, var(--cool) 60%, var(--border));
    box-shadow: 0 0 0 3px rgba(144, 184, 200, 0.18);
}

.volume-option__label {
    color: var(--dark);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    line-height: 1;
    text-transform: none;
}

.modifier-chip__label {
    color: var(--dark);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    line-height: 1.1;
    overflow-wrap: anywhere;
    text-transform: none;
}

.volume-option__price {
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1;
}

.modifier-chip__price {
    color: var(--muted);
    font-size: 0.76rem;
    line-height: 1.35;
}

.modifier-group--required-missing legend {
    color: color-mix(in srgb, var(--warm) 78%, var(--dark));
}

.detail-action-row {
    position: sticky;
    bottom: calc(12px + env(safe-area-inset-bottom));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.55rem 0.9rem;
    box-shadow: var(--shadow-up), var(--shadow-md);
}

.detail-action-row .btn-plus {
    flex: 0 0 auto;
}

.detail-action-row .btn-plus--count {
    width: 44px;
    padding: 0;
}

.detail-action-row .btn-plus__label {
    transform: translateY(1px);
}

.detail-action-row .eyebrow {
    line-height: 1;
}

.detail-total {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.08rem;
    min-width: 0;
}

.detail-total > p {
    margin: 0;
    padding: 0;
}

.detail-total__value {
    margin: 0;
    color: var(--dark);
    font-size: 1.45rem;
    line-height: 1;
    text-transform: none;
}

.btn-add-to-list {
    min-width: 150px;
    min-height: 44px;
    padding: 0 1.1rem;
    border: 0;
    border-radius: 999px;
    background: var(--accent);
    color: var(--dark);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: none;
}

.btn-add-to-list--count {
    background: var(--dark);
    color: #ffffff;
}

.btn-add-to-list:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

@media (min-width: 768px) {
    .item-card--beer .item-card__link {
        grid-template-columns: clamp(88px, 14vw, 104px) minmax(0, 1fr) auto;
    }

    .listing-header {
        padding: 0.8rem 1rem 0.55rem;
    }

    .listing-header__name {
        font-size: 1.125rem;
    }

    .listing-header__meta {
        font-size: 0.86rem;
    }

    .category-nav {
        padding: 0 1rem 0.7rem;
    }

    .category-pill {
        min-height: 34px;
        font-size: 0.88rem;
        padding-inline: 0.85rem;
    }

    .wishlist-fab {
        right: 24px;
        bottom: calc(24px + env(safe-area-inset-bottom));
    }

    .wishlist-screen__panel {
        padding:
            calc(1.5rem + env(safe-area-inset-top))
            max(24px, calc((100vw - 28rem) / 2))
            calc(1.5rem + env(safe-area-inset-bottom));
    }
}

@media (max-width: 399px) {


    .item-card__footer {
        grid-template-columns: minmax(0, 1fr);
    }

    .item-card__footer-actions {
        justify-content: space-between;
    }
}
