:root {
    --app-max-width: 480px;
    --app-page-gutter: 16px;
    --app-top-offset: 45px;
    --app-back-button-top: 100px;
    --telegram-control-clearance: 48px;
    --app-bottom-nav-height: 58px;
    --app-background: var(--theme-canvas);
    --app-surface: var(--theme-surface);
    --app-text: var(--theme-text);
    --app-muted: #746f6a;
    --app-muted: color-mix(in srgb, var(--theme-text) 58%, transparent);
    --app-border: var(--theme-neutral);
}

* {
    box-sizing: border-box;
}

html,
body {
    min-width: 320px;
    min-height: 100%;
    margin: 0;
    color: var(--app-text);
    background: var(--app-background);
    font-family: var(--theme-font-family);
    font-weight: var(--theme-font-weight-regular);
    -webkit-text-size-adjust: 100%;
    text-rendering: optimizeLegibility;
    overscroll-behavior-y: none;
}

body {
    min-height: 100dvh;
}

.telegram-mini-app body,
.telegram-mini-app .mobile-app {
    height: var(--tg-viewport-height, 100dvh);
    min-height: var(--tg-viewport-height, 100dvh);
}

.telegram-mini-app body {
    overflow-y: auto;
}

.mobile-app {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: var(--app-max-width);
    min-height: 100dvh;
    margin: 0 auto;
    overflow-x: hidden;
    background: var(--app-surface);
    padding-bottom: calc(var(--app-bottom-nav-height) + max(env(safe-area-inset-bottom), var(--tg-content-safe-area-inset-bottom, 0px)));
}

.app-header {
    position: sticky;
    z-index: 100;
    top: 0;
    padding:
        calc(var(--app-top-offset) + max(env(safe-area-inset-top), var(--tg-content-safe-area-inset-top, 0px)))
        var(--app-page-gutter)
        14px;
    border-bottom: 1px solid var(--app-border);
    background: var(--theme-surface);
    background: color-mix(in srgb, var(--theme-surface) 94%, transparent);
    backdrop-filter: blur(12px);
}

.app-brand {
    color: var(--app-text);
    font-size: 18px;
    font-weight: var(--theme-font-weight-bold);
    line-height: 24px;
    text-decoration: none;
}

.app-content {
    flex: 1 0 auto;
    width: 100%;
    padding: 20px var(--app-page-gutter) 32px;
}

.app-content--flush {
    padding-top: 0;
    padding-right: 0;
    padding-left: 0;
}

.bottom-nav {
    position: fixed;
    z-index: 1000;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    max-width: var(--app-max-width);
    min-height: calc(var(--app-bottom-nav-height) + max(env(safe-area-inset-bottom), var(--tg-content-safe-area-inset-bottom, 0px)));
    margin: 0 auto;
    padding: 7px 8px max(7px, env(safe-area-inset-bottom), var(--tg-content-safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--theme-neutral);
    background: var(--theme-surface);
    background: color-mix(in srgb, var(--theme-surface) 96%, transparent);
    box-shadow: 0 -8px 26px rgba(0, 0, 0, .08);
    backdrop-filter: blur(14px);
}

.bottom-nav__item {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: var(--app-muted);
    text-decoration: none;
}

.bottom-nav__badge {
    position: absolute;
    top: 5px;
    left: calc(50% + 4px);
    display: grid;
    min-width: 25px;
    height: 25px;
    padding: 0 6px;
    border: 2px solid var(--theme-surface);
    border-radius: 999px;
    color: #ffffff;
    background: var(--theme-primary);
    font-size: 12px;
    font-weight: var(--theme-font-weight-bold);
    line-height: 1;
    place-items: center;
}

.bottom-nav__badge[hidden] {
    display: none;
}

.bottom-nav__item .app-icon {
    width: 25px;
    height: 25px;
}

.bottom-nav__item--active {
    color: var(--theme-primary);
    font-weight: var(--theme-font-weight-bold);
}

.bottom-nav__item:focus-visible {
    outline: 3px solid var(--theme-primary-soft);
    outline-offset: -2px;
}

img,
svg,
video {
    max-width: 100%;
    height: auto;
}

input,
select,
textarea,
button,
.btn {
    min-height: 44px;
    font-size: 16px;
}

.btn-primary {
    --bs-btn-color: #ffffff;
    --bs-btn-bg: var(--theme-primary);
    --bs-btn-border-color: var(--theme-primary);
    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-bg: var(--theme-primary);
    --bs-btn-hover-border-color: var(--theme-primary);
    --bs-btn-active-color: #ffffff;
    --bs-btn-active-bg: var(--theme-primary);
    --bs-btn-active-border-color: var(--theme-primary);
}

a {
    color: var(--theme-primary);
}

::selection {
    color: var(--theme-text);
    background: var(--theme-primary-soft);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    border-radius: 14px;
    font-weight: var(--theme-font-weight-bold);
    white-space: normal;
}

.app-icon {
    display: inline-block;
    flex: 0 0 auto;
    width: var(--theme-icon-size);
    height: var(--theme-icon-size);
    color: currentColor;
    fill: none;
    stroke: currentColor;
    stroke-width: var(--theme-icon-stroke-width);
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: middle;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: var(--theme-font-weight-bold);
}

.table-responsive {
    -webkit-overflow-scrolling: touch;
}

.breadcrumb {
    margin-bottom: 20px;
    font-size: 13px;
}

.home-logo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: calc(98px + max(env(safe-area-inset-top), var(--tg-safe-area-inset-top, 0px)));
    padding:
        calc(var(--app-top-offset) + max(env(safe-area-inset-top), var(--tg-content-safe-area-inset-top, 0px)))
        var(--app-page-gutter)
        8px;
    color: var(--theme-text);
    background: var(--theme-surface);
    font-size: 20px;
    font-weight: var(--theme-font-weight-bold);
    line-height: 1.2;
}

.telegram-mini-app .home-logo {
    min-height: calc(
        98px + max(
            env(safe-area-inset-top),
            var(--tg-content-safe-area-inset-top, 0px),
            var(--telegram-control-clearance)
        )
    );
    padding-top: calc(
        var(--app-top-offset) + max(
            env(safe-area-inset-top),
            var(--tg-content-safe-area-inset-top, 0px),
            var(--telegram-control-clearance)
        )
    );
}

.home-logo__brand {
    display: block;
    width: min(180px, calc(100% - 72px));
    height: 52px;
    object-fit: contain;
    object-position: left center;
}

.home-logo__notification {
    display: grid;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    border: 1px solid var(--theme-neutral);
    border-radius: 50%;
    color: var(--theme-text);
    background: var(--theme-surface);
    place-items: center;
}

.home-logo__notification .app-icon {
    width: 22px;
    height: 22px;
}

.home-carousel {
    position: relative;
    margin: 0 var(--app-page-gutter);
    overflow: hidden;
    border-radius: 22px;
    background: var(--theme-text);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .16);
}

.home-carousel__track {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.home-carousel__track::-webkit-scrollbar {
    display: none;
}

.home-carousel__slide {
    position: relative;
    flex: 0 0 100%;
    min-width: 100%;
    min-height: clamp(160px, 41vw, 185px);
    padding: 18px 22px 32px;
    color: #ffffff;
    background-position: center;
    background-size: cover;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.home-carousel__slide::before {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(90deg, rgba(12, 7, 3, .86) 0%, rgba(12, 7, 3, .58) 44%, transparent 72%);
}

.home-carousel__slide--burger {
    background-image: url("../images/carousel-burger.png");
}

.home-carousel__slide--pizza {
    background-image: url("../images/carousel-pizza.png");
}

.home-carousel__slide--healthy {
    background-image: url("../images/carousel-healthy.png");
}

.home-carousel__content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
}

.home-carousel__eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--theme-primary);
    font-size: 12px;
    font-weight: var(--theme-font-weight-bold);
    letter-spacing: .06em;
    text-transform: uppercase;
}

.home-carousel__title {
    margin: 0;
    color: #ffffff;
    font-size: clamp(27px, 7.4vw, 36px);
    font-weight: var(--theme-font-weight-bold);
    letter-spacing: -.02em;
    line-height: 1.06;
}

.home-carousel__subtitle {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, .82);
    font-size: 13px;
    font-weight: var(--theme-font-weight-regular);
    line-height: 18px;
}

.home-categories {
    margin-top: 26px;
}

.home-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 0 var(--app-page-gutter) 14px;
}

.home-section-heading h2 {
    margin: 0;
    color: var(--theme-text);
    font-size: 19px;
    line-height: 26px;
}

.home-section-heading__action {
    flex: 0 0 auto;
    color: var(--theme-primary);
    font-size: 14px;
    font-weight: var(--theme-font-weight-medium);
    text-decoration: none;
}

.home-categories__track {
    display: flex;
    gap: 12px;
    padding: 0 var(--app-page-gutter) 8px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    scroll-padding-inline: var(--app-page-gutter);
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
}

.home-categories__track::-webkit-scrollbar {
    display: none;
}

.home-category {
    display: flex;
    flex: 0 0 88px;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 88px;
    min-height: 92px;
    padding: 9px 7px;
    border: 1px solid color-mix(in srgb, var(--theme-neutral) 55%, transparent);
    border-radius: 13px;
    color: var(--theme-text-soft);
    background: var(--theme-surface);
    box-shadow: 0 7px 22px rgba(0, 0, 0, .06);
    text-decoration: none;
    scroll-snap-align: start;
}

.home-category__icon {
    flex: 0 0 28px;
    margin-bottom: 16px;
    font-size: 24px;
    line-height: 28px;
}

.home-category__label {
    max-width: 100%;
    font-size: 14px;
    font-weight: var(--theme-font-weight-medium);
    line-height: 17px;
    text-align: center;
}

.home-category--active {
    border-color: var(--theme-primary);
    color: #ffffff;
    background: var(--theme-primary);
    box-shadow: 0 8px 20px color-mix(in srgb, var(--theme-primary) 28%, transparent);
}

.home-category--active .home-category__label {
    font-weight: var(--theme-font-weight-bold);
}

.home-category:focus-visible,
.home-section-heading__action:focus-visible {
    outline: 3px solid var(--theme-primary-soft);
    outline-offset: 2px;
}

.home-foods {
    margin-top: 26px;
    padding-bottom: 24px;
}

.home-foods__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 14px;
    padding: 0 var(--app-page-gutter);
}

.food-card {
    min-width: 0;
    padding: 8px 8px 12px;
    overflow: hidden;
    border: 1px solid rgba(223, 221, 218, .48);
    border-radius: 18px;
    background: var(--theme-surface);
    box-shadow: 0 9px 26px rgba(0, 0, 0, .07);
}

.food-card__media {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 1.2 / 1;
    border-radius: 13px;
    background: var(--theme-accent-background);
    text-decoration: none;
}

.food-card__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.food-card__name {
    margin: 8px 1px 2px;
    overflow: hidden;
    color: var(--theme-text-soft);
    font-size: 15px;
    font-weight: var(--theme-font-weight-bold);
    line-height: 19px;
    text-overflow: clip;
    white-space: nowrap;
    -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 calc(100% - 22px), transparent 100%);
    mask-image: linear-gradient(90deg, #000 0%, #000 calc(100% - 22px), transparent 100%);
}

.food-card__link,
.offer-card__link {
    color: inherit;
    text-decoration: none;
}

.food-card__footer {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 34px;
}

.food-card__price {
    color: var(--theme-primary);
    font-size: 15px;
    font-weight: var(--theme-font-weight-bold);
    line-height: 22px;
}

.food-card__add {
    display: grid;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    min-height: 34px;
    padding: 0;
    border: 2px solid var(--theme-primary);
    border-radius: 50%;
    color: var(--theme-primary);
    background: var(--theme-surface);
    place-items: center;
}

.food-card__add .app-icon {
    width: 18px;
    height: 18px;
    stroke-width: 2;
}

.food-card__add:active {
    color: #ffffff;
    background: var(--theme-primary);
    transform: scale(.94);
}

.home-promo {
    position: relative;
    min-height: 126px;
    margin: 2px var(--app-page-gutter) 28px;
    padding: 14px 18px;
    overflow: hidden;
    border-radius: 20px;
    color: #ffffff;
    background-color: var(--theme-text);
    background-image:
        linear-gradient(90deg, rgba(0, 0, 0, .92) 0%, rgba(0, 0, 0, .68) 48%, rgba(0, 0, 0, .08) 78%),
        url("../images/carousel-pizza.png");
    background-position: center;
    background-size: cover;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .13);
}

.home-promo__content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
}

.home-promo__eyebrow {
    display: block;
    margin-bottom: 4px;
    color: var(--theme-primary);
    font-size: 11px;
    font-weight: var(--theme-font-weight-bold);
    letter-spacing: .06em;
    text-transform: uppercase;
}

.home-promo h2 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: clamp(19px, 5.2vw, 24px);
    line-height: 1.08;
}

.home-promo__action {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 12px;
    border-radius: 10px;
    color: #ffffff;
    background: var(--theme-primary);
    font-size: 12px;
    font-weight: var(--theme-font-weight-bold);
    text-decoration: none;
}

.home-promo__action:focus-visible {
    outline: 3px solid var(--theme-primary-soft);
    outline-offset: 2px;
}

.home-offers {
    margin: 0 0 30px;
}

.home-offers__track {
    display: flex;
    gap: 14px;
    padding: 0 var(--app-page-gutter) 10px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    scroll-padding-inline: var(--app-page-gutter);
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
}

.home-offers__track::-webkit-scrollbar {
    display: none;
}

.offer-card {
    flex: 0 0 calc((100% - 14px) / 2);
    width: calc((100% - 14px) / 2);
    min-width: 0;
    padding: 8px 8px 12px;
    overflow: hidden;
    border: 1px solid rgba(223, 221, 218, .55);
    border-radius: 18px;
    background: var(--theme-surface);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .07);
    scroll-snap-align: start;
}

.offer-card__media {
    position: relative;
    display: block;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 1.2 / 1;
    border-radius: 13px;
    background: var(--theme-accent-background);
    text-decoration: none;
}

.offer-card__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.offer-card__name {
    margin: 8px 1px 2px;
    overflow: hidden;
    color: var(--theme-text-soft);
    font-size: 15px;
    font-weight: var(--theme-font-weight-bold);
    line-height: 19px;
    text-overflow: clip;
    white-space: nowrap;
    -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 calc(100% - 22px), transparent 100%);
    mask-image: linear-gradient(90deg, #000 0%, #000 calc(100% - 22px), transparent 100%);
}

.offer-card__footer {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 34px;
}

.offer-card__price {
    min-width: 0;
    color: var(--theme-primary);
    font-size: 15px;
    font-weight: var(--theme-font-weight-bold);
    line-height: 22px;
    white-space: nowrap;
}

.offer-card__add {
    display: grid;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    min-height: 34px;
    padding: 0;
    border: 2px solid var(--theme-primary);
    border-radius: 50%;
    color: var(--theme-primary);
    background: var(--theme-surface);
    place-items: center;
}

.offer-card__add .app-icon {
    width: 18px;
    height: 18px;
    stroke-width: 2;
}

.offer-card__add:active {
    color: #ffffff;
    background: var(--theme-primary);
    transform: scale(.94);
}

.cart-quantity {
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: 0;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-end;
    gap: 3px;
    min-height: 34px;
    max-width: 100%;
}

.cart-quantity--active {
    padding: 3px;
    border: 1px solid var(--theme-primary-soft);
    border-radius: 999px;
    background: var(--theme-primary-soft);
}

.cart-quantity__button {
    display: grid;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: var(--theme-primary);
    background: var(--theme-surface);
    font-family: inherit;
    font-size: 25px;
    font-weight: var(--theme-font-weight-medium);
    line-height: 1;
    place-items: center;
}

.cart-quantity__button:active {
    color: #ffffff;
    background: var(--theme-primary);
    transform: scale(.94);
}

.cart-quantity__value {
    min-width: 26px;
    color: var(--theme-text);
    font-size: 16px;
    font-weight: var(--theme-font-weight-bold);
    line-height: 40px;
    text-align: center;
}

.product-detail {
    min-height: var(--tg-viewport-height, 100dvh);
    background: var(--theme-surface);
}

.product-detail__media {
    position: relative;
    height: clamp(350px, 104vw, 500px);
    padding-top: max(
        env(safe-area-inset-top),
        var(--tg-content-safe-area-inset-top, 0px)
    );
    overflow: hidden;
    background: var(--theme-text);
}

.product-detail__gallery-track {
    display: flex;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.product-detail__gallery-track::-webkit-scrollbar {
    display: none;
}

.product-detail__gallery-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.telegram-mini-app .product-detail__media {
    padding-top: max(
        env(safe-area-inset-top),
        var(--tg-content-safe-area-inset-top, 0px),
        var(--telegram-control-clearance)
    );
}

.product-detail__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail__gallery-dots {
    position: absolute;
    z-index: 4;
    right: 0;
    bottom: 44px;
    left: 0;
    display: flex;
    justify-content: center;
    gap: 7px;
    pointer-events: none;
}

.product-detail__gallery-dots button {
    flex: 0 0 9px;
    width: 9px;
    min-width: 9px;
    height: 9px;
    min-height: 9px;
    max-height: 9px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    appearance: none;
    background: rgba(255, 255, 255, .72);
    box-shadow: 0 1px 5px rgba(0, 0, 0, .25);
    transition: background-color .2s ease, transform .2s ease;
    pointer-events: auto;
}

.product-detail__gallery-dots button.active {
    background: #ffffff;
    transform: scale(1.25);
}

.app-back-button {
    position: fixed;
    z-index: 1100;
    top: var(--app-back-button-top);
    left: max(
        var(--app-page-gutter),
        calc((100vw - var(--app-max-width)) / 2 + var(--app-page-gutter))
    );
    display: grid;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, .65);
    border-radius: 50%;
    color: #ffffff;
    background: rgba(0, 0, 0, .36);
    text-decoration: none;
    backdrop-filter: blur(10px);
    place-items: center;
}

.app-back-button .app-icon {
    width: 23px;
    height: 23px;
}

.product-detail__sheet {
    position: relative;
    z-index: 3;
    min-height: 360px;
    margin-top: -30px;
    padding: 28px var(--app-page-gutter) 24px;
    border-radius: 30px 30px 0 0;
    background: var(--theme-surface);
}

.product-detail__category {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--theme-text-soft);
    font-size: 13px;
    font-weight: var(--theme-font-weight-medium);
}

.product-detail__heading {
    position: relative;
    display: block;
    min-height: 76px;
}

.product-detail__heading > div:first-child {
    min-width: 0;
}

.product-detail__heading h1 {
    margin: 0;
    color: var(--theme-text);
    font-size: clamp(25px, 7vw, 32px);
    letter-spacing: -.025em;
    line-height: 1.1;
}

.product-detail__price {
    margin-top: 9px;
    color: var(--theme-primary);
    font-size: 20px;
    font-weight: var(--theme-font-weight-bold);
}

.product-detail__quantity.cart-quantity {
    position: absolute;
    z-index: 2;
    top: 0;
    right: 0;
    bottom: auto;
    min-height: 46px;
}

.product-detail__add {
    display: grid;
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    border: 2px solid var(--theme-primary);
    border-radius: 50%;
    color: var(--theme-primary);
    background: var(--theme-surface);
    font-family: inherit;
    font-size: 26px;
    line-height: 1;
    place-items: center;
}

.product-detail__facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 24px;
    padding: 13px 14px;
    border-radius: 14px;
    color: var(--theme-text-soft);
    background: var(--theme-accent-background);
    font-size: 13px;
}

.product-detail__facts span {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 7px;
}

.product-detail__facts .app-icon {
    width: 18px;
    height: 18px;
    color: var(--theme-primary);
}

.product-detail__description {
    margin-top: 28px;
}

.product-detail__description h2 {
    margin: 0 0 9px;
    color: var(--theme-text);
    font-size: 17px;
}

.product-detail__description p {
    margin: 0;
    color: var(--theme-text-soft);
    font-size: 14px;
    line-height: 1.55;
}

.product-detail__order {
    width: 100%;
    min-height: 56px;
    margin-top: 28px;
    padding: 12px 20px;
    border: 0;
    border-radius: 17px;
    color: #ffffff;
    background: var(--theme-primary);
    font-family: inherit;
    font-size: 16px;
    font-weight: var(--theme-font-weight-bold);
}

.product-detail__order:active {
    transform: scale(.985);
}

.product-detail__order:disabled {
    cursor: not-allowed;
    opacity: .45;
}

.category-view {
    min-height: var(--tg-viewport-height, 100dvh);
    padding: calc(var(--app-back-button-top) + 64px) 0 30px;
    background: var(--theme-surface);
}

.category-view__header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 var(--app-page-gutter) 24px;
}

.category-view__icon {
    display: grid;
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
    border: 1px solid color-mix(in srgb, var(--theme-neutral) 65%, transparent);
    border-radius: 17px;
    background: var(--theme-accent-background);
    font-size: 28px;
    place-items: center;
}

.category-view__header > div {
    min-width: 0;
}

.category-view__eyebrow {
    display: block;
    margin-bottom: 3px;
    color: var(--theme-text-soft);
    font-size: 12px;
    font-weight: var(--theme-font-weight-medium);
}

.category-view__header h1 {
    margin: 0;
    overflow: hidden;
    color: var(--theme-text);
    font-size: clamp(25px, 7vw, 32px);
    letter-spacing: -.025em;
    line-height: 1.1;
    text-overflow: ellipsis;
}

.category-view__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 14px;
    padding: 0 var(--app-page-gutter);
}

.category-view__empty {
    display: grid;
    margin: 44px var(--app-page-gutter) 0;
    padding: 34px 20px;
    border: 1px solid color-mix(in srgb, var(--theme-neutral) 60%, transparent);
    border-radius: 20px;
    color: var(--theme-text-soft);
    background: var(--theme-accent-background);
    text-align: center;
    place-items: center;
}

.category-view__empty span {
    display: grid;
    width: 48px;
    height: 48px;
    margin-bottom: 10px;
    border: 2px solid var(--theme-neutral);
    border-radius: 50%;
    color: var(--theme-text-soft);
    place-items: center;
}

.category-view__empty .app-icon {
    width: 24px;
    height: 24px;
}

.category-view__empty p {
    margin: 0;
    font-size: 14px;
}

@media (min-width: 481px) {
    .mobile-app {
        box-shadow: 0 0 32px rgba(15, 23, 42, .12);
    }
}

.not-set {
    color: #c55;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    content: '';
    left: 3px;
    display: inline-block;
    width: 0;
    height: 0;
    border: solid 5px transparent;
    margin: 4px 4px 2px 4px;
    background: transparent;
}

a.asc:after {
    border-bottom: solid 7px #212529;
    border-top-width: 0;
}

a.desc:after {
    border-top: solid 7px #212529;
    border-bottom-width: 0;
}

.grid-view th {
    white-space: nowrap;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

.form-group {
    margin-bottom: 1rem;
}
