:root {
    --bg: #f4eee6;
    --bg-soft: #faf6ef;
    --surface: #fffcf7;
    --text: #2a211c;
    --muted: #6d5f54;
    --line: #e6d9c8;
    --accent: #b55324;
    --accent-dark: #7a3514;
    --herb: #3d6b4f;
    --herb-soft: #e8f1eb;
    --danger: #b42318;
    --ok: #3d6b4f;
    --radius: 18px;
    --max: 1120px;
    --shadow: 0 10px 28px rgba(42, 33, 28, 0.07);
    --shadow-lg: 0 18px 48px rgba(42, 33, 28, 0.14);
    --font-display: "Fraunces", Georgia, serif;
    --font-body: "Figtree", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

.page-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(560px 280px at 8% -8%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 60%),
        radial-gradient(480px 260px at 100% 4%, color-mix(in srgb, var(--herb) 12%, transparent), transparent 58%),
        linear-gradient(180deg, #f8f3ea 0%, var(--bg) 38%, #ebe3d6 100%);
}

.app {
    width: min(760px, calc(100% - 32px));
    margin: 0 auto;
    padding: 20px 0 108px;
    padding-bottom: max(108px, calc(env(safe-area-inset-bottom) + 84px));
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 18;
    padding: 8px 16px;
    padding-top: max(8px, env(safe-area-inset-top));
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.topbar__inner {
    width: min(760px, 100%);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 52px;
}

.menu-toggle {
    grid-area: menu;
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: var(--text);
}

.topbar__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.topbar .hero__mark {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    margin: 0;
    border-radius: 10px;
}

.topbar__name {
    display: block;
    min-width: 0;
    font-family: var(--font-body);
    font-size: 0.98rem;
    font-weight: 750;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.topbar__hours {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 550;
    line-height: 1.3;
}

.topbar__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.topbar__nav {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-left: auto;
    margin-right: 18px;
}

.topbar__nav a,
.appnav a {
    position: relative;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 650;
}

.topbar__nav a.is-on,
.topbar__nav a:hover,
.appnav a.is-on,
.appnav a:hover {
    color: var(--text);
}

.topbar__nav a.is-on::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

.appnav {
    display: none;
}

.sidemenu {
    position: sticky;
    top: 88px;
    max-height: calc(100vh - 112px);
    overflow: auto;
    padding: 16px 12px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.sidemenu__title {
    margin: 0 8px 10px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
}

.sidemenu-scrim {
    display: none;
}

.shell-main {
    min-width: 0;
}

.intro {
    margin: 0 0 16px;
}

.intro h1 {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.45rem;
    font-weight: 750;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.intro__lead {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.orderbar {
    position: fixed;
    left: 50%;
    bottom: max(12px, env(safe-area-inset-bottom));
    z-index: 22;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: min(760px, calc(100% - 24px));
    height: 54px;
    padding: 0 18px;
    border: 0;
    border-radius: 16px;
    background: var(--text);
    color: #fff;
    font: inherit;
    font-weight: 650;
    transform: translateX(-50%);
    box-shadow: 0 12px 32px rgba(42, 33, 28, 0.22);
    cursor: pointer;
}

.orderbar:hover {
    background: #1c1613;
}

.orderbar.is-empty {
    background: color-mix(in srgb, var(--text) 82%, #fff);
}

.orderbar strong,
.orderbar em {
    font-style: normal;
    font-weight: 800;
}

.orderbar__right {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero {
    display: grid;
    gap: 16px;
    margin-bottom: 18px;
    padding: 22px;
    border-radius: 22px;
    background: var(--surface);
    border: 1px solid color-mix(in srgb, var(--line) 85%, transparent);
    box-shadow: var(--shadow);
}

.hero__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.hero__brand {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
}

.hero__mark {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    margin-top: 2px;
    border-radius: 16px;
    background:
        radial-gradient(circle at 35% 32%, #f3c9a4 0 18%, transparent 19%),
        linear-gradient(145deg, var(--accent) 0%, var(--accent-dark) 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.hero__side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
}

.hero__meta {
    display: grid;
    gap: 8px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.hero__info {
    display: grid;
    gap: 2px;
    text-decoration: none;
    color: inherit;
    margin: 0;
}

.hero__info:hover span:last-child {
    color: var(--accent-dark);
}

.hero__info-k {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
}

.hero__info span:last-child {
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.4;
}

.account-btn {
    border: 0;
    background: transparent;
    color: var(--text);
    border-radius: 0;
    min-height: 40px;
    padding: 6px 0;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 650;
    cursor: pointer;
}

body.view-account .orderbar {
    display: none;
}

.account-btn:hover {
    color: var(--accent-dark);
}

.hero__eyebrow {
    margin: 0 0 6px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
}

.hero__title {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.85rem, 5vw, 2.55rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.08;
}

.hero__tagline {
    margin: 8px 0 0;
    max-width: 48ch;
    color: var(--muted);
    font-weight: 500;
}

.hero__hours {
    margin: 8px 0 0;
    font-size: 0.86rem;
    font-weight: 650;
    color: var(--herb);
}

.hero__hours-today {
    margin: 0 0 6px;
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 700;
}

.hours-week {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 4px;
}

.hours-week li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 550;
}

.hours-week strong {
    font-weight: 700;
    color: var(--text);
}

.hours-week li.is-today {
    color: var(--herb);
}

.hours-week li.is-today strong {
    color: var(--herb);
}

.store-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--danger);
    font-size: 0.75rem;
    font-weight: 650;
}

.store-chip::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.store-chip.is-open {
    color: var(--ok);
}

.flash {
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--surface);
    font-weight: 600;
}

.flash.is-error {
    border-color: color-mix(in srgb, var(--danger) 35%, var(--line));
    color: var(--danger);
}

.flash.is-ok {
    border-color: color-mix(in srgb, var(--ok) 30%, var(--line));
    color: var(--ok);
}

.toolbar {
    display: grid;
    gap: 10px;
    padding: 0 0 4px;
}

.search-wrap {
    position: relative;
    display: block;
}

.search-wrap__icon {
    position: absolute;
    left: 14px;
    top: 50%;
    width: 14px;
    height: 14px;
    border: 2px solid var(--muted);
    border-radius: 50%;
    transform: translateY(-60%);
    opacity: 0.45;
}

.search-wrap__icon::after {
    content: "";
    position: absolute;
    right: -5px;
    bottom: -4px;
    width: 7px;
    height: 2px;
    background: var(--muted);
    transform: rotate(45deg);
}

.search {
    width: 100%;
    height: 44px;
    border: 0;
    border-radius: 12px;
    padding: 0 14px 0 40px;
    background: color-mix(in srgb, var(--surface) 70%, #fff);
    color: var(--text);
    font: inherit;
    font-weight: 500;
    outline: none;
    box-shadow: inset 0 0 0 1px var(--line);
}

.search:focus {
    border-color: color-mix(in srgb, var(--accent) 50%, var(--line));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent);
}

.cart-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 48px;
    border: 0;
    border-radius: 14px;
    padding: 0 16px;
    background: var(--accent);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.cart-btn:hover {
    background: var(--accent-dark);
}

.cart-btn strong {
    min-width: 1.5rem;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    text-align: center;
}

.catnav {
    position: sticky;
    top: 60px;
    z-index: 12;
    margin: 4px 0 8px;
    padding: 4px 0 0;
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: blur(14px);
}

.groups {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding: 0 0 10px;
    border-bottom: 1px solid var(--line);
    scrollbar-width: none;
}

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

.groups button {
    flex: 0 0 auto;
    border: 0;
    background: transparent;
    border-radius: 0;
    padding: 10px 12px;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 650;
    color: var(--muted);
    cursor: pointer;
    white-space: nowrap;
    box-shadow: inset 0 -2px 0 transparent;
}

.groups button:hover {
    color: var(--text);
}

.groups button.is-active {
    background: transparent;
    color: var(--text);
    box-shadow: inset 0 -2px 0 var(--accent);
}

.menu {
    display: grid;
    gap: 16px;
}

.menu-group {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 8px 0 18px;
    box-shadow: none;
}

.menu-group__title {
    margin: 18px 0 6px;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 92px;
    gap: 14px;
    align-items: start;
    padding: 16px 0;
    border-radius: 0;
}

.card__body {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.card__media {
    grid-column: 2;
    grid-row: 1;
    position: relative;
    width: 92px;
    height: 92px;
    overflow: visible;
}

.card__img {
    width: 92px;
    height: 92px;
    object-fit: cover;
    border-radius: 14px;
    background: var(--bg-soft);
    border: 1px solid var(--line);
}

.card__img--empty {
    background:
        radial-gradient(circle at 35% 32%, #f3c9a4 0 14%, transparent 15%),
        linear-gradient(145deg, color-mix(in srgb, var(--accent) 35%, #fff) 0%, var(--bg) 100%);
}

.card + .card {
    border-top: 1px solid var(--line);
}

.card h3 {
    margin: 0;
    font-size: 1.08rem;
    font-weight: 750;
    letter-spacing: -0.02em;
}

.card p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 500;
}

.card__desc {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 500;
    line-height: 1.45;
}

.card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 12px;
}

.card__price {
    margin: 10px 0 0 !important;
    font-size: 1.08rem;
    font-weight: 800;
    color: var(--accent-dark);
}

.card__add,
.card button {
    position: absolute;
    right: 4px;
    bottom: 4px;
    margin: 0;
    width: 32px;
    min-width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: var(--text);
    font: inherit;
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1;
    box-shadow: 0 4px 14px rgba(42, 33, 28, 0.16);
    cursor: pointer;
}

.card__add:hover,
.card button:hover {
    background: var(--text);
    border-color: var(--text);
    color: #fff;
}

.card__add:disabled,
.card button:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.muted {
    color: var(--muted);
    font-weight: 500;
}

.page-head {
    margin: 0 0 18px;
}

.page-head h1 {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 750;
    letter-spacing: -0.03em;
}

.profile-form {
    max-width: 520px;
}

.profile-form .btn-primary,
.profile-form .btn-ghost {
    width: 100%;
}

.profile-form .btn-ghost {
    margin-top: 8px;
}

.btn-ghost {
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.btn-ghost:hover {
    border-color: var(--text);
}

.orders-list {
    display: grid;
    gap: 12px;
}

.order-card {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
}

.order-card header {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: center;
}

.order-card p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 0.86rem;
}

.order-card__st {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--herb);
}

.order-card__st.is-pending {
    color: var(--accent-dark);
}

.order-card__st.is-error {
    color: var(--danger);
}

.order-card__items {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.order-card__addr {
    margin-top: 6px;
}

.order-card__st.is-out {
    color: var(--accent);
}

.order-card__st.is-done {
    color: var(--muted);
}

.order-card__st.is-cancel {
    color: var(--danger);
}

.order-card__foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}

.order-card__foot .btn-ghost {
    height: 36px;
    padding: 0 12px;
    font-size: 0.82rem;
}

.site-foot {
    margin-top: 48px;
    padding: 28px 0 8px;
    border-top: 1px solid var(--line);
    text-align: left;
}

.site-foot__grid {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr 0.9fr;
    gap: 28px 24px;
    margin-bottom: 22px;
}

.site-foot__k {
    margin: 0 0 10px !important;
    font-size: 0.68rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent) !important;
}

.site-foot .hours-week {
    max-width: none;
    margin: 8px 0 0;
}

.site-foot__name {
    margin: 0 0 6px;
    color: var(--text);
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
}

.site-foot p {
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1.55;
}

.site-foot a {
    color: var(--text);
    font-weight: 650;
    text-decoration: none;
}

.site-foot a:hover {
    color: var(--accent);
}

.site-foot strong {
    color: var(--text);
    font-weight: 700;
}

.socials {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
    margin: 12px 0 0;
}

.social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
}

.social:hover {
    border-color: var(--accent);
    color: var(--accent-dark);
}

.social--soon {
    opacity: 0.55;
    cursor: default;
}

.site-foot__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin: 0 0 18px;
}

.site-foot__nav a {
    font-size: 0.86rem;
}

.site-foot__dev {
    padding-top: 14px;
    border-top: 1px solid var(--line);
    text-align: center;
}

.drawer {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: 1fr minmax(0, 440px);
}

.drawer[hidden] {
    display: none !important;
}

.drawer__scrim,
.auth__scrim {
    background: rgba(42, 33, 28, 0.42);
}

.drawer__panel {
    height: 100%;
    overflow: auto;
    background: var(--surface);
    padding: 20px 16px 36px;
    box-shadow: var(--shadow-lg);
}

.drawer__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.drawer__head h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.42rem;
}

.icon-btn {
    border: 0;
    background: var(--bg);
    color: var(--muted);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.cart-list {
    list-style: none;
    margin: 0 0 8px;
    padding: 0;
}

.cart-list li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.cart-list small {
    display: block;
    margin-top: 2px;
    color: var(--muted);
}

.qty {
    display: inline-flex;
    gap: 6px;
    align-items: center;
}

.qty button {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    border: 1px solid var(--line);
    background: var(--bg-soft);
    cursor: pointer;
    font-weight: 700;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    margin: 10px 0 18px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
}

.cart-total strong {
    font-family: var(--font-display);
    font-size: 1.28rem;
}

.checkout {
    display: grid;
    gap: 12px;
}

.checkout-block {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--bg-soft);
}

.checkout h3 {
    margin: 0;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-dark);
}

.checkout label {
    display: grid;
    gap: 5px;
    font-size: 0.8rem;
    font-weight: 650;
    color: var(--muted);
}

.checkout input,
.checkout select,
.checkout textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 11px;
    padding: 11px 12px;
    font: inherit;
    background: #fff;
    outline: none;
}

.checkout input:focus,
.checkout select:focus,
.checkout textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent);
}

.pw-wrap {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.pw-wrap input {
    flex: 1;
}

.pw-toggle {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 12px;
    padding: 0 12px;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.pw-meter {
    height: 8px;
    border-radius: 99px;
    background: var(--line);
    overflow: hidden;
}

.pw-meter span {
    display: block;
    height: 100%;
    width: 0;
    background: var(--danger);
    transition: width 0.2s ease, background 0.2s ease;
}

.pw-hint {
    margin: 0;
    font-size: 0.78rem;
    color: var(--muted);
}

.fiscal {
    border: 0;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.checkout .fiscal__opt {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--text);
    font-weight: 650;
    cursor: pointer;
}

.checkout .fiscal__opt:has(:checked) {
    border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
    background: color-mix(in srgb, var(--accent) 8%, #fff);
}

.checkout .fiscal__opt input {
    width: auto;
    flex: 0 0 auto;
    margin: 0;
    accent-color: var(--accent);
}

.cash-box {
    display: grid;
    gap: 8px;
    padding: 12px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--accent) 8%, #fff);
    border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
}

.auth {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: 1fr min(440px, 100%);
}

.auth[hidden] {
    display: none;
}

.auth__panel {
    background: var(--surface);
    padding: 16px 16px 28px;
    overflow: auto;
    box-shadow: var(--shadow-lg);
}

.auth__tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

.auth__tab {
    border: 1px solid var(--line);
    background: var(--bg-soft);
    border-radius: 12px;
    padding: 10px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.auth__tab.is-on {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.cart-total-block {
    margin: 10px 0 16px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--bg-soft);
}

.cart-total-block .cart-total {
    margin: 0;
    padding: 5px 0;
    border: 0;
}

.cart-total-block .cart-total:last-child {
    margin-top: 6px;
    padding-top: 10px;
    border-top: 1px dashed var(--line);
}

.cart-total--fee {
    color: var(--muted);
    font-size: 0.92rem;
}

.cart-total--fee strong {
    font-size: 1rem;
    font-family: var(--font-body);
}

.row2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.btn-primary {
    height: 50px;
    margin-top: 2px;
    border: 0;
    border-radius: 14px;
    background: var(--accent);
    color: #fff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--accent-dark);
}

.btn-primary:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.order-ok {
    margin-top: 16px;
    padding: 16px;
    border-radius: var(--radius);
    background: var(--herb-soft);
    border: 1px solid color-mix(in srgb, var(--ok) 25%, var(--line));
    color: var(--ok);
    font-weight: 600;
}

@media (max-width: 720px) {
    .app,
    .topbar__inner,
    .orderbar {
        width: min(760px, calc(100% - 20px));
    }

    .app {
        padding-bottom: calc(168px + env(safe-area-inset-bottom));
    }

    body.view-account .app {
        padding-bottom: calc(88px + env(safe-area-inset-bottom));
    }

    .topbar__nav {
        display: none;
    }

    .catnav {
        top: 56px;
        margin-left: -10px;
        margin-right: -10px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .groups button {
        padding: 10px 10px;
        font-size: 0.86rem;
    }

    .orderbar {
        bottom: calc(64px + env(safe-area-inset-bottom));
        height: 50px;
        border-radius: 14px;
    }

    .appnav {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 24;
        height: calc(56px + env(safe-area-inset-bottom));
        padding-bottom: env(safe-area-inset-bottom);
        background: color-mix(in srgb, var(--surface) 94%, transparent);
        border-top: 1px solid var(--line);
        backdrop-filter: blur(16px);
    }

    .appnav a {
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.78rem;
        font-weight: 700;
    }

    .appnav a.is-on {
        color: var(--accent-dark);
        box-shadow: inset 0 2px 0 var(--accent);
    }

    .site-foot {
        margin-top: 36px;
        padding-top: 22px;
    }

    .site-foot__grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .store-chip {
        display: none;
    }
}

@media (max-width: 520px) {
    .card {
        grid-template-columns: minmax(0, 1fr) 76px;
        gap: 10px;
        padding: 14px 0;
    }

    .card__media,
    .card__img {
        width: 76px;
        height: 76px;
        border-radius: 12px;
    }

    .drawer,
    .auth {
        grid-template-columns: 1fr;
    }

    .drawer__scrim,
    .auth__scrim {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}
