:root {
    --bg: #f7f6f3;
    --surface: #ffffff;
    --text: #1f2328;
    --muted: #6b7280;
    --primary: #f97316;
    --primary-dark: #ea580c;
    --primary-soft: color-mix(in srgb, var(--primary) 12%, white);
    --brand-ocker: #f97316;
    --brand-ocker-soft: color-mix(in srgb, var(--brand-ocker) 12%, white);
    --border: #e5e7eb;
    --success: #10b981;
    --error: #ef4444;
    --info: #3b82f6;
    --success-soft: color-mix(in srgb, var(--success) 14%, white);
    --error-soft: color-mix(in srgb, var(--error) 14%, white);
    --info-soft: color-mix(in srgb, var(--info) 14%, white);
    --customer-header-height: 64px;
    --customer-category-nav-height: 56px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
}

.container {
    width: min(1100px, 92%);
    margin: 0 auto;
    padding: 24px 0 48px;
}

.app-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
}

body.section-admin {
    --primary: #f97316;
    --primary-dark: #ea580c;
}

body.section-staff {
    --primary: #f97316;
    --primary-dark: #ea580c;
}

body.section-customer {
    --primary: #f97316;
    --primary-dark: #ea580c;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
}

.brand {
    display: flex;
    align-items: center;
    font-weight: 700;
    gap: 8px;
}

.brand-dot {
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
}

.nav a {
    margin-left: 16px;
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
}

.hero {
    padding: 12px 0 24px;
}

.hero.hero-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.hero.hero-row > div {
    min-width: 0;
}

.hero.hero-row .btn {
    white-space: nowrap;
}

.hero h1 {
    margin-bottom: 4px;
    font-size: clamp(24px, 3vw, 34px);
}

@media (max-width: 720px) {
    .hero.hero-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

.dashboard-stack {
    display: grid;
    gap: 14px;
}

.dashboard-card-intro {
    background: linear-gradient(180deg, color-mix(in srgb, var(--primary-soft) 62%, #fff), #fff);
}

.dashboard-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.dashboard-tiles--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-tiles--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-tile {
    min-height: 104px;
    display: grid;
    align-content: start;
    justify-items: start;
    text-align: left;
    gap: 6px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid color-mix(in srgb, var(--primary) 28%, var(--border));
    background: color-mix(in srgb, var(--primary-soft) 42%, #fff);
}

.dashboard-tile:hover {
    border-color: color-mix(in srgb, var(--primary) 50%, var(--border));
    background: color-mix(in srgb, var(--primary-soft) 56%, #fff);
}

.dashboard-tile.is-disabled {
    background: #f8f9fb;
    border-color: var(--border);
}

.dashboard-tile-tone-1 {
    background: color-mix(in srgb, #f4a261 14%, #fff);
    border-color: color-mix(in srgb, #f4a261 42%, var(--border));
}

.dashboard-tile-tone-1:hover {
    background: color-mix(in srgb, #f4a261 20%, #fff);
    border-color: color-mix(in srgb, #f4a261 52%, var(--border));
}

.dashboard-tile-tone-2 {
    background: color-mix(in srgb, #f4a261 22%, #fff);
    border-color: color-mix(in srgb, #f4a261 50%, var(--border));
}

.dashboard-tile-tone-2:hover {
    background: color-mix(in srgb, #f4a261 28%, #fff);
    border-color: color-mix(in srgb, #f4a261 58%, var(--border));
}

.dashboard-tile-tone-3 {
    background: color-mix(in srgb, #f4a261 30%, #fff);
    border-color: color-mix(in srgb, #f4a261 58%, var(--border));
}

.dashboard-tile-tone-3:hover {
    background: color-mix(in srgb, #f4a261 36%, #fff);
    border-color: color-mix(in srgb, #f4a261 66%, var(--border));
}

.dashboard-tile-title {
    font-weight: 750;
    line-height: 1.2;
}

.dashboard-tile-text {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.25;
}

.dashboard-inline-form {
    margin: 0;
}

.dashboard-inline-form .dashboard-tile {
    width: 100%;
}

.dashboard-section-note {
    margin-top: 8px;
    color: var(--muted);
}

.dashboard-store-form {
    margin-bottom: 6px;
    align-items: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.dashboard-store-label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 260px;
}

@media (max-width: 980px) {
    .dashboard-tiles--three,
    .dashboard-tiles--two {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.card-head .js-toggle-all-store-totals {
    white-space: nowrap;
}

.card-head h2 {
    margin: 0;
}

.grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.grid.two-col {
    grid-template-columns: 1fr 1fr;
}

.menu-list .product {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.menu-products {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.menu-item {
    padding: 10px;
}

.menu-item-grid {
    display: grid;
    grid-template-columns: 92px 1fr auto;
    gap: 12px;
    align-items: start;
}

.menu-thumb-wrap {
    display: grid;
    gap: 8px;
    align-self: start;
}

.menu-info-btn {
    justify-self: start;
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    color: var(--text);
    margin: 0;
}

.mobile-cart-indicator {
    display: none;
    white-space: nowrap;
}

body.view-customer-menu .mobile-cart-indicator {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

body.view-customer-menu .mobile-cart-indicator:hover {
    background: var(--primary-dark);
}

body.view-customer-menu .menu-header-tools {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

body.view-customer-menu .menu-header-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 12px;
    display: inline-grid;
    place-items: center;
    font-size: 1.1rem;
}

.menu-main {
    min-width: 0;
}

.menu-top {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.menu-price {
    font-weight: 800;
    white-space: nowrap;
}

.menu-price-right {
    justify-self: end;
}

.menu-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.menu-thumb {
    width: 92px;
    height: 92px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255, 251, 224, 0.55);
    overflow: hidden;
}

.menu-thumb.is-empty {
    background: rgba(255, 251, 224, 0.18);
    border-color: var(--border);
}

.menu-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.menu-title {
    margin: 0 0 4px;
}

.menu-desc {
    margin: 0;
}

.menu-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    align-self: stretch;
}

.menu-stepper {
    justify-self: end;
    margin-top: auto;
}

.qty-stepper.menu-stepper {
    gap: 4px;
}

.qty-stepper.menu-stepper .qty {
    width: 37px;
}

.qty-stepper.menu-stepper .qty-display {
    font-size: 1.05rem;
}

.qty-display {
    display: inline-grid;
    place-items: center;
    height: 44px;
    min-width: 34px;
}

.menu-form {
    display: grid;
    gap: 10px;
    justify-items: end;
}

.menu-btns {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.qty-stepper {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.qty-stepper .qty {
    width: 74px;
    text-align: center;
    font-weight: 700;
}

.qty-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #fff;
    cursor: pointer;
    font-weight: 900;
    font-size: 1.3rem;
    line-height: 1;
    display: inline-grid;
    place-items: center;
}

.cart-fixed {
    position: sticky;
    top: 84px;
    align-self: start;
}

.cart-card {
    padding: 0;
    overflow: hidden;
}

.cart-card-head {
    background: rgba(255, 251, 224, 0.55);
    border-bottom: 1px solid var(--border);
    padding: 14px 16px;
    font-weight: 800;
}

.cart-card-body {
    padding: 14px 16px;
}

.cart-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.cart-grid li {
    display: grid;
    grid-template-columns: 1fr 60px 90px;
    gap: 10px;
    align-items: center;
    border: none;
    border-radius: 0;
    padding: 10px 12px;
    background: #fff;
}

.cart-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 650;
}

.cart-name.has-offer {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
}

.cart-offer-tag {
    color: var(--brand-ocker);
    font-weight: 800;
}

.cart-qty {
    text-align: right;
    font-weight: 800;
    min-width: 0;
}

.cart-qty-btn {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 6px 6px;
    text-align: center;
    font-weight: 800;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #fff;
    cursor: pointer;
}

.cart-qty-btn:disabled {
    opacity: .6;
    cursor: default;
}

.cart-sum {
    text-align: right;
    font-weight: 800;
}

.cart-total {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--border);
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-end;
}

.cart-total-right {
    font-weight: 900;
    font-size: 1.15rem;
}

.cart-go-btn {
    width: 100%;
    margin-top: 12px;
}

.menu-info {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 14px;
    align-items: start;
}

.menu-info-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #fff;
    object-fit: cover;
}

.store-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}

.store-tile {
    margin: 0;
}

.store-tile-btn {
    width: 100%;
    text-align: left;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 12px;
    padding: clamp(10px, 2.2vw, 14px);
    cursor: pointer;
    position: relative;
}

.store-tile input[type="radio"]:checked + .store-tile-btn {
    border-color: color-mix(in srgb, var(--brand-ocker) 55%, var(--border));
    background: var(--brand-ocker-soft);
}

.store-tile.is-current .store-tile-btn::after,
.store-tile input[type="radio"]:checked + .store-tile-btn::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: var(--success);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 14px;
    box-shadow: 0 0 0 3px #fff;
}

.store-tile-img {
    height: clamp(78px, 16vw, 132px);
    padding: clamp(8px, 2vw, 12px);
    border-radius: 10px;
    border: 1px dashed var(--border);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 251, 224, 0.18);
}

.store-tile-img img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    display: block;
    background: #fff;
}

.store-tile-name {
    margin-top: 10px;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.qr-scan {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 10px;
    background: var(--surface);
}

.qr-scan-video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    background: #000;
}

.product-action {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.price {
    font-weight: 700;
    font-size: 1.1rem;
}

.form-grid {
    display: grid;
    gap: 14px;
}

.form-inline {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 16px;
}

.form-inline.orders-filters {
    align-items: flex-end;
}

.form-inline.orders-filters .btn {
    font-size: 1.05rem;
    padding: 12px 18px;
    border-radius: 14px;
}

.form-inline.orders-filters .btn-ico {
    font-size: 1.15em;
    margin-right: 10px;
}

label {
    display: grid;
    gap: 8px;
    font-weight: 600;
}

.label-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.icon-btn {
    width: 34px;
    height: 34px;
    padding: 0;
    display: inline-grid;
    place-items: center;
    border-radius: 10px;
    background: var(--primary-soft);
    border: 1px solid var(--border);
    color: var(--text);
    font-weight: 900;
}

.icon-btn .ico {
    width: 16px;
    height: 16px;
    display: block;
}

.icon-btn--sm {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    font-size: 0.95em;
}

.th-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

body.section-staff .js-open-status-filter.icon-btn {
    background: var(--brand-ocker-soft);
    border-color: color-mix(in srgb, var(--brand-ocker) 35%, var(--border));
    color: var(--brand-ocker);
}

body.section-staff .js-open-status-filter.icon-btn:hover {
    border-color: color-mix(in srgb, var(--brand-ocker) 55%, var(--border));
}

.status-checks {
    display: grid;
    gap: 10px;
    margin-bottom: 10px;
}

.status-check {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.js-status-filter-modal .js-status-all {
    background: var(--info-soft);
    border-color: color-mix(in srgb, var(--info) 35%, var(--border));
    color: var(--info);
}

.js-status-filter-modal .js-status-all:hover {
    border-color: color-mix(in srgb, var(--info) 55%, var(--border));
}

input, select {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    font-size: 1rem;
}

.qty {
    width: 70px;
}

.btn {
    padding: 10px 16px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #fff;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    color: var(--text);
}

.btn.is-disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

.pickup-payment-input {
    display: none;
}

.pickup-action-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.pickup-action-tile {
    width: 100%;
    min-height: 56px;
    font-weight: 800;
    text-align: center;
    border-color: color-mix(in srgb, var(--primary) 45%, var(--border));
    background: color-mix(in srgb, var(--primary) 14%, #fff);
    color: var(--primary-dark);
}

.pickup-action-tile:hover {
    border-color: color-mix(in srgb, var(--primary) 60%, var(--border));
    background: color-mix(in srgb, var(--primary) 20%, #fff);
}

.pickup-action-tile.pickup-action-tile--active,
.pickup-action-tile:active {
    border-color: var(--primary-dark);
    background: var(--primary);
    color: #fff;
}

.pickup-action-tile.is-disabled,
.pickup-action-tile:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.permissions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 8px 14px;
}

.checkbox-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.company-qr-wrap {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 14px;
    margin-top: 10px;
    align-items: start;
}

.company-qr-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 14px;
    align-items: stretch;
}

.company-qr-info {
    border: 1px solid color-mix(in srgb, var(--primary) 35%, var(--border));
    background: color-mix(in srgb, var(--primary-soft) 60%, #fff);
    border-radius: 12px;
    padding: 14px;
}

.company-qr-info h3 {
    margin: 0 0 8px;
}

.company-qr-info p {
    margin: 0;
    color: var(--text);
}

.company-qr-panel {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    padding: 12px;
}

.company-qr-meta input {
    width: 100%;
}

.company-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.company-hero-col {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.company-hero-copy {
    min-width: 0;
}

.company-hero-logo {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface);
    object-fit: cover;
}

.company-hero-title {
    font-size: 1.2rem;
    font-weight: 800;
}

.company-hero-slogan {
    margin-top: 6px;
    color: var(--muted);
    font-weight: 650;
    font-size: clamp(0.92rem, 1.8vw, 1.02rem);
    line-height: 1.35;
    overflow-wrap: anywhere;
    max-width: 100%;
}

.company-stores-grid {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
}

.store-card {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    padding: 12px;
}

.store-card-logo {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #fff;
    object-fit: cover;
}

.store-card-name {
    margin: 8px 0 6px;
    font-weight: 800;
}

.inline-price-input {
    width: 120px;
    max-width: 100%;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid var(--border);
    font-weight: 650;
}

.inline-price-input.is-saving {
    opacity: 0.7;
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    background: rgba(20, 20, 20, 0.92);
    color: #fff;
    padding: 10px 12px;
    border-radius: 12px;
    font-weight: 650;
    z-index: 9999;
    max-width: min(92vw, 520px);
    text-align: center;
}

.toast.is-error {
    background: rgba(185, 28, 28, 0.95);
}

/* Public B2B landing page */
.view-public-business-landing .container {
    padding-top: 18px;
}

.lp-hero {
    margin: 8px 0 18px;
}

.lp-hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 18px;
    align-items: center;
}

.lp-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.lp-logo {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid var(--border);
    background: var(--surface);
}

.lp-brand-name {
    font-weight: 800;
    font-size: 1.1rem;
}

.lp-brand-tag {
    color: var(--muted);
    font-weight: 650;
    font-size: 0.95rem;
}

.lp-title {
    margin: 6px 0 8px;
    font-size: clamp(28px, 3.5vw, 42px);
    letter-spacing: -0.02em;
}

.lp-lead {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.55;
}

.lp-cta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 12px 0;
}

.lp-trust {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.lp-trust-item {
    background: var(--primary-soft);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 8px 10px;
    font-weight: 650;
    color: var(--text);
}

.lp-hero-media {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

.lp-img {
    display: block;
    width: 100%;
    height: auto;
}

.lp-img--hero {
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.lp-section {
    margin-top: 16px;
}

.lp-section-head h2 {
    margin: 0;
}

.lp-section-head p {
    margin: 6px 0 0;
}

.lp-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 14px;
}

.lp-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 14px;
}

.lp-box {
    background: var(--primary-soft);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px;
}

.lp-box h3 {
    margin: 0 0 10px;
}

.lp-list {
    margin: 0;
    padding-left: 18px;
    color: var(--text);
}

.lp-list li {
    margin: 6px 0;
}

.lp-prose {
    max-width: 980px;
    line-height: 1.55;
}

.lp-prose h3 {
    margin: 18px 0 8px;
}

.lp-prose p {
    margin: 10px 0;
}

.lp-prose ul {
    margin: 10px 0;
    padding-left: 18px;
}

.lp-table-wrap {
    overflow: auto;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
}

.lp-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

.lp-table th,
.lp-table td {
    padding: 10px 12px;
    vertical-align: top;
    border-bottom: 1px solid var(--border);
}

.lp-table th {
    text-align: left;
    font-weight: 800;
    background: var(--primary-soft);
}

.lp-steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 14px;
}

.lp-step {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px;
}

.lp-step-no {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: var(--primary-soft);
    border: 1px solid var(--border);
    display: grid;
    place-items: center;
    font-weight: 800;
}

.lp-step-title {
    font-weight: 750;
}

.lp-media-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 14px;
}

.lp-media {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}

.lp-media .lp-img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.lp-caption {
    padding: 10px 12px 12px;
}

.lp-cta-card {
    border-color: color-mix(in srgb, var(--primary) 35%, var(--border));
}

.lp-cta-wide {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

@media (max-width: 920px) {
    .company-hero-grid {
        grid-template-columns: 1fr;
    }

    .company-qr-layout {
        grid-template-columns: 1fr;
    }

    .company-qr-wrap {
        grid-template-columns: 1fr;
    }

    .lp-hero-grid {
        grid-template-columns: 1fr;
    }
    .lp-3col {
        grid-template-columns: 1fr;
    }
    .lp-2col,
    .lp-steps,
    .lp-media-row {
        grid-template-columns: 1fr;
    }
}

.btn.primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.btn-ico {
    margin-right: 8px;
    line-height: 1;
    font-size: 1.05em;
}

.btn.primary:hover {
    background: var(--primary-dark);
}

/* Icon buttons need to override base .btn rules (padding/background/display). */
.btn.icon-btn {
    width: 34px;
    height: 34px;
    padding: 0;
    display: inline-grid;
    place-items: center;
    border-radius: 10px;
    background: var(--primary-soft);
    border: 1px solid var(--border);
    color: var(--text);
    font-weight: 900;
}

.btn.icon-btn--sm {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    font-size: 0.95em;
}

.btn.icon-btn .ico {
    width: 16px;
    height: 16px;
    display: block;
}

.btn.link {
    background: transparent;
    border: none;
    color: var(--muted);
}

.btn.link.menu-info-btn {
    background: #fff;
    border: 1px solid var(--border);
    color: var(--text);
    padding: 6px 10px;
    border-radius: 10px;
}

body.section-staff .btn.icon-btn.js-open-status-filter {
    background: color-mix(in srgb, var(--muted) 10%, white);
    border-color: color-mix(in srgb, var(--muted) 25%, var(--border));
    color: var(--muted);
}

body.section-staff .btn.icon-btn.js-open-status-filter:hover {
    border-color: color-mix(in srgb, var(--muted) 40%, var(--border));
}

body.section-staff .btn.icon-btn.js-open-status-filter.is-active {
    background: var(--brand-ocker-soft);
    border-color: color-mix(in srgb, var(--brand-ocker) 35%, var(--border));
    color: var(--brand-ocker);
}

body.section-staff .btn.icon-btn.js-open-status-filter.is-active:hover {
    border-color: color-mix(in srgb, var(--brand-ocker) 55%, var(--border));
}

.notice {
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 16px;
}

.notice.success {
    background: rgba(16, 185, 129, 0.12);
    color: var(--success);
}

.notice.error {
    background: rgba(239, 68, 68, 0.12);
    color: var(--error);
}

.order-mismatch-alert {
    border-color: color-mix(in srgb, var(--error) 70%, var(--border));
    background: color-mix(in srgb, var(--error-soft) 55%, #fff);
    animation: order-mismatch-border-pulse 2.2s ease-in-out infinite;
}

@keyframes order-mismatch-border-pulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.08);
        border-color: color-mix(in srgb, var(--error) 62%, var(--border));
    }

    50% {
        box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.16);
        border-color: color-mix(in srgb, var(--error) 88%, var(--border));
    }
}

.list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.pack-order {
    border-width: 5px;
    border-color: #fff;
}

.pack-order.is-ready {
    border-color: color-mix(in srgb, var(--success) 55%, var(--border));
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th, .table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.table th .th-sort {
    color: inherit;
    text-decoration: none;
    font-weight: inherit;
}

.table th .th-sort:hover {
    text-decoration: underline;
}

.total {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    font-size: 1.1rem;
}

.actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.status {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.pack-root {
    display: grid;
    gap: 16px;
}

.pack-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 12px;
}

.pack-sub {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    color: var(--muted);
    font-weight: 600;
}

.pack-divider {
    opacity: 0.6;
}

.pack-items {
    display: grid;
    gap: 10px;
}

.pack-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
}

.pack-item input[type="checkbox"]:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.pack-item-main {
    display: flex;
    gap: 10px;
    align-items: baseline;
}

.pack-qty {
    min-width: 38px;
    color: var(--muted);
    font-weight: 800;
}

.badge {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(217, 119, 6, 0.12);
    color: var(--primary);
    font-weight: 600;
    border: 1px solid transparent;
}

.badge.secondary {
    background: rgba(15, 23, 42, 0.08);
    color: var(--muted);
}

.badge-ico {
    margin-right: 6px;
    font-weight: 900;
}

.badge.payment-paid {
    background: var(--success-soft);
    color: var(--success);
    border-color: color-mix(in srgb, var(--success) 55%, white);
}

.badge.payment-pickup {
    background: var(--error-soft);
    color: var(--error);
    border-color: color-mix(in srgb, var(--error) 55%, white);
}

.pickup-code {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.2rem;
    margin: 12px 0;
}

.order-confirm-qr-wrap {
    margin-top: 12px;
    text-align: center;
}

.order-confirm-qr {
    width: 100%;
    max-width: 220px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    padding: 8px;
}

.order-confirm-mail-note {
    margin-top: 6px;
    font-weight: 700;
}

.order-confirm-help {
    margin-top: 4px;
}

.order-confirm-actions {
    justify-content: flex-start;
    margin-top: 10px;
}

.order-confirm-hero {
    padding-bottom: 10px;
}

.order-confirm-hero p {
    margin-top: 2px;
    margin-bottom: 0;
}

.order-confirm-code {
    text-align: center;
}

.muted {
    color: var(--muted);
}

.logout {
    margin-top: 12px;
}

.section-title {
    margin-top: 28px;
    margin-bottom: 8px;
}

body.view-customer-menu .menu-filter-panel {
    display: none;
}

body.view-customer-menu .menu-filter-panel.is-open {
    display: block;
    position: sticky;
    top: var(--customer-header-height);
    z-index: 15;
    margin-bottom: 12px;
}

body.view-customer-menu .menu-filter-card {
    margin-bottom: 0;
}

body.view-customer-menu .menu-filter-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

body.view-customer-menu .category-picker-modal-panel {
    width: min(560px, calc(100% - 24px));
}

body.view-customer-menu .category-tiles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

body.view-customer-menu .category-tile {
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    border-radius: 12px;
    min-height: 52px;
    padding: 10px 12px;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
}

body.view-customer-menu .category-tile.is-active {
    border-color: var(--primary);
    background: var(--primary-soft);
}

body.view-customer-menu .category-tile:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

body.view-customer-menu .category-section {
    scroll-margin-top: calc(var(--customer-header-height) + var(--customer-search-panel-height, 0px) + 16px);
}

body.view-customer-menu .category-section .section-title {
    margin-top: 20px;
}

@media (max-width: 900px) {
    body.view-customer-menu .menu-header-tools {
        gap: 6px;
    }

    body.view-customer-menu .mobile-cart-indicator {
        max-width: 46vw;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    body.view-customer-menu .category-tiles {
        grid-template-columns: 1fr;
    }
}

.drag-list {
    list-style: none;
    padding: 0;
    margin: 12px 0 20px;
    display: grid;
    gap: 8px;
}

.category-heading {
    list-style: none;
    padding: 10px 12px;
    margin-top: 10px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--primary-soft);
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.drag-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 12px;
}

.drag-item.dragging {
    background: #fff7b2;
    border-color: #f5d565;
    opacity: 1;
}

.drag-list.drag-active .drag-item {
    background: #fffbe0;
    border-color: #efe6a8;
}

.drag-list.drag-active .drag-item.dragging {
    background: #fff7b2;
    border-color: #f5d565;
}

.drag-preview {
    background: #fff7b2;
    border: 1px solid #f5d565;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.drag-list.is-saving {
    opacity: 0.75;
}

.drag-handle {
    cursor: grab;
    color: var(--muted);
    user-select: none;
    -webkit-user-drag: element;
}

.dropzone {
    border: 2px dashed var(--border);
    border-radius: 12px;
    padding: 14px;
    text-align: center;
}

.dropzone input[type="file"] {
    display: none;
}

.dropzone .dropzone-preview {
    max-width: 150px;
    max-height: 150px;
    width: auto;
    height: auto;
    display: block;
    margin: 10px auto 0;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #fff;
    object-fit: contain;
}

.dropzone.dragover {
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.02);
}

.dropzone.has-file {
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.015);
}

.company-image-upload {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: stretch;
}

.company-image-upload.has-current {
    grid-template-columns: minmax(0, 1fr) 130px;
}

.company-image-upload .dropzone {
    min-height: 130px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
}

.company-image-current {
    display: none;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.company-image-upload.has-current .company-image-current,
.company-image-current.is-visible {
    display: block;
}

.company-image-current img {
    display: block;
    width: 100%;
    height: 130px;
    object-fit: cover;
}

.image-upload-wrap {
    display: grid;
    gap: 8px;
}

.image-upload-grid {
    display: block;
}

.image-upload-grid.has-current {
    display: grid;
    grid-template-columns: 20% 75%;
    gap: 12px;
    align-items: start;
}

.current-image {
    display: grid;
    align-content: start;
    position: relative;
}

.current-image .product-thumb {
    max-width: 150px;
    max-height: 150px;
}

.image-delete-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(239, 68, 68, 0.95);
    color: #fff;
    font-weight: 900;
    line-height: 1;
    display: grid;
    place-items: center;
    cursor: pointer;
}

.image-delete-btn:hover {
    background: rgba(239, 68, 68, 1);
}

.image-delete-btn[hidden] {
    display: none !important;
}

@media (max-width: 720px) {
    .image-upload-grid.has-current {
        grid-template-columns: 1fr;
    }
}

.product-row {
    justify-content: space-between;
    flex-wrap: wrap;
}

.order-store-details {
    flex-basis: 100%;
    width: 100%;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed var(--border);
}

.order-store-row {
    background: rgba(255, 251, 224, 0.55);
    border-color: var(--border);
}

/* Betrieb lists: use the same pale ochre background for existing list items */
.js-stores-list .drag-item,
#category-sort-list .drag-item,
#product-sort-list .drag-item {
    background: rgba(255, 251, 224, 0.55);
    border-color: var(--border);
}

.order-store-details h3 {
    margin: 10px 0 8px;
}

.table.compact th,
.table.compact td {
    padding: 8px 10px;
}

.order-store-details .table {
    width: 100%;
    table-layout: fixed;
}

.order-store-details .col-qty {
    width: 110px;
}

.order-store-details th:last-child,
.order-store-details td:last-child {
    text-align: right;
}

.product-cells.order-store-cells {
    grid-template-columns: minmax(380px, 1fr) 110px 70px;
}

.product-cells {
    flex: 1;
    display: grid;
    grid-template-columns: 140px 1fr 140px 120px;
    gap: 12px;
    align-items: center;
}

/* Betrieb → Filialen: Name breiter, Adresse beginnt weiter rechts */
.js-stores-list .product-cells {
    grid-template-columns: 1fr 200px 140px 120px;
}

.product-cells .cell {
    min-width: 0;
}

.product-cells .cell-label {
    font-size: 0.75rem;
    color: var(--muted);
}

.product-cells .cell-value {
    font-weight: 650;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cell-wrap {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    font-weight: 500;
}

.toggle-btn {
    border: 1px solid var(--border);
    background: var(--success-soft);
    padding: 6px 10px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 650;
}

.toggle-btn.is-off {
    background: var(--error-soft);
    color: var(--error);
}

.toggle-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.product-details {
    display: none;
    flex-basis: 100%;
    width: 100%;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed var(--border);
}

.details-grid {
    display: grid;
    grid-template-columns: 2fr 2fr 1.5fr 170px;
    gap: 12px;
    align-items: start;
}

.details-grid-head {
    margin-bottom: 6px;
}

.details-head {
    font-size: 0.75rem;
    color: var(--muted);
    font-weight: 650;
    padding: 2px 0;
}

.details-cell {
    height: 150px;
    overflow: auto;
}

.details-text {
    white-space: normal;
    overflow: auto;
    text-overflow: clip;
}

.details-lines {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 4px;
}

.details-image {
    display: flex;
    justify-content: flex-start;
}

.product-thumb {
    max-width: 150px;
    max-height: 150px;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #fff;
}

.no-image {
    width: 150px;
    height: 150px;
    display: grid;
    place-items: center;
    border: 1px dashed var(--border);
    border-radius: 10px;
    color: var(--muted);
    font-weight: 650;
    text-align: center;
    padding: 8px;
}

.drag-list.show-details .product-details {
    display: block;
}

.kv.compact {
    grid-template-columns: 160px 1fr;
}

.modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 50;
}

.modal.is-open {
    display: block;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
}

.modal-panel {
    position: relative;
    max-width: 820px;
    margin: 6vh auto;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

/* Landing (geschlossen) modal: vertically centered with comfortable edge spacing */
.js-landing-closed-modal.is-open {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
}

.js-landing-closed-modal .modal-panel {
    margin: 0;
    width: min(520px, 100%);
}

@media (max-width: 720px) {
    .js-landing-closed-modal.is-open {
        padding: 16px;
    }
}

.store-modal-panel {
    max-height: 88vh;
    display: flex;
    flex-direction: column;
}

/* Admin: Product modal (Artikel ansehen/bearbeiten) should be scrollable */
.product-modal .modal-panel {
    max-height: 88vh;
    display: flex;
    flex-direction: column;
}

.product-modal .modal-body {
    flex: 1;
    min-height: 0;
    overflow: auto;
}

.modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
}

.modal-close-btn {
    width: 34px;
    height: 34px;
    padding: 0;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    background: var(--error-soft);
    border: 1px solid color-mix(in srgb, var(--error) 45%, white);
    text-decoration: none;
}

.modal-close-x {
    color: color-mix(in srgb, var(--error) 78%, white);
    font-weight: 900;
    font-size: 1.05em;
    line-height: 1;
}

.modal-close-btn:hover {
    filter: brightness(0.95);
}

.cart-qty-modal .modal-panel {
    width: 50%;
    max-width: 520px;
}

.cart-qty-modal .modal-head {
    background: rgba(255, 251, 224, 0.55);
}

/* Pickup-day modal (customer menu): ocker header + colored calendar days */
.js-pickup-day-modal .modal-head {
    background: var(--brand-ocker);
    border-bottom-color: color-mix(in srgb, var(--brand-ocker) 55%, var(--border));
    color: #fff;
}

.js-pickup-day-modal .modal-head strong {
    color: #fff;
}

.js-pickup-day-modal .modal-head .btn.link {
    color: #fff;
}

.js-pickup-day-modal .landing-cal-intro {
    color: var(--brand-ocker);
    font-weight: 800;
}

.js-pickup-day-modal .cal-head .landing-cal-nav {
    background: var(--brand-ocker-soft);
    border-color: var(--brand-ocker);
    color: var(--text);
}

.js-pickup-day-modal .cal-cell.is-open {
    background: var(--success-soft);
    border-color: var(--success);
    color: var(--text);
}

.js-pickup-day-modal .cal-cell.is-closed {
    background: var(--error-soft);
    border-color: var(--error);
    color: var(--error);
}

.cart-qty-modal .qty-btn {
    background: var(--primary-soft);
    border-color: color-mix(in srgb, var(--primary) 35%, var(--border));
}

.cart-qty-modal .qty-btn:hover {
    filter: brightness(0.98);
}

body.section-customer .qty-btn {
    background: var(--primary-soft);
    border-color: color-mix(in srgb, var(--primary) 35%, var(--border));
}

body.section-customer .qty-btn:hover {
    filter: brightness(0.98);
}

.cart-qty-modal-label {
    font-weight: 650;
    margin-bottom: 10px;
}

.cart-qty-modal-input {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    -moz-appearance: textfield;
}

.cart-qty-modal-input::-webkit-outer-spin-button,
.cart-qty-modal-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}


.upload-parse-list {
    margin: 10px 0 0;
    padding-left: 18px;
    color: var(--muted);
    font-size: 0.95rem;
}

.upload-parse-list li {
    margin: 4px 0;
}
@media (max-width: 720px) {
    .cart-qty-modal .modal-panel {
        width: calc(100% - 24px);
        max-width: 520px;
    }
}

.modal-body {
    padding: 14px;
}

.store-modal-body {
    flex: 1;
    overflow: hidden;
}

.store-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.store-modal-scroll {
    grid-column: 1 / -1;
    overflow: auto;
    max-height: 56vh;
    padding-right: 4px;
}

.store-pane-head {
    margin-bottom: 8px;
}

.kv {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 8px 12px;
}

.kv .k {
    color: var(--muted);
    font-weight: 650;
}

.kv .v {
    word-break: break-word;
}

.modal .actions {
    margin-top: 14px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.pickup-wrap {
    grid-column: 1 / -1;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px;
    background: #fff;
}

.pickup-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.pickup-days {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.pickup-loading {
    color: var(--muted);
    font-weight: 650;
}

.pickup-day {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px;
    background: rgba(255, 251, 224, 0.55);
}

.pickup-day-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.pickup-day-name {
    font-weight: 750;
}

.pickup-enable {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-weight: 650;
}

.pickup-sliders {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-items: center;
}

.pickup-slider {
    display: grid;
    grid-template-columns: 44px 1fr 54px;
    gap: 10px;
    align-items: center;
}

.pickup-label {
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 650;
}

.pickup-time {
    font-weight: 750;
    text-align: right;
}

.pickup-actions {
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.pickup-calendar {
    margin-top: 14px;
    border-top: 1px dashed var(--border);
    padding-top: 12px;
}

/* Landingpage: intro text sits above the divider line inside the calendar */
.landing .pickup-calendar {
    border-top: none;
    padding-top: 0;
}

.landing-cal-intro {
    text-align: center;
    color: var(--muted);
    font-weight: 650;
    margin: 0 0 10px;
}

.landing-cal-divider {
    border-top: 1px dashed var(--border);
    margin: 0 0 12px;
}

.cal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    margin-bottom: 6px;
    color: var(--muted);
    font-weight: 750;
    font-size: 0.85rem;
}

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.cal-cell {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 8px 0;
    font-weight: 750;
    background: rgba(255, 251, 224, 0.55);
    position: relative;
}

.cal-expired-icon {
    position: absolute;
    top: 4px;
    right: 6px;
    font-size: 0.9em;
    line-height: 1;
}

.cal-cell.is-open.is-today {
    box-shadow: 0 0 0 2px var(--success);
}

.cal-cell.is-closed.is-today {
    box-shadow: 0 0 0 2px var(--error);
}

.cal-cell.is-empty {
    border: 1px solid color-mix(in srgb, var(--border) 55%, white);
    background: color-mix(in srgb, var(--border) 22%, white);
}

.cal-cell.is-open {
    background: rgba(255, 251, 224, 0.55);
    border-color: var(--success);
}

.cal-cell.is-closed {
    background: rgba(255, 251, 224, 0.55);
    color: var(--error);
    border-color: var(--error);
}

.cal-cell.is-past {
    opacity: 0.55;
    cursor: not-allowed;
    background: color-mix(in srgb, var(--border) 16%, white);
    color: var(--muted);
    border-color: color-mix(in srgb, var(--border) 70%, white);
}

.cal-cell.is-expired {
    cursor: not-allowed;
    background: color-mix(in srgb, var(--error) 10%, white);
    color: var(--error);
    border-color: color-mix(in srgb, var(--error) 55%, white);
}

/* Betrieb: Filial-Artikelbilder Upload */
.store-img-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

.store-img-tile {
    display: grid;
    gap: 8px;
    align-content: start;
}

.store-img-drop {
    position: relative;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255, 251, 224, 0.18);
    overflow: hidden;
    cursor: pointer;
    outline: none;
}

.store-img-drop:focus {
    box-shadow: 0 0 0 2px var(--primary);
}

.store-img-preview {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.store-img-overlay {
    position: absolute;
    inset: auto 0 0 0;
    padding: 8px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0));
    color: #fff;
    display: grid;
    gap: 2px;
}

.store-img-overlay-title {
    font-weight: 800;
    font-size: 0.92rem;
}

.store-img-overlay-hint {
    font-size: 0.85rem;
    opacity: 0.9;
}

.store-img-drop.is-dragover {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary);
}

.store-img-tile.is-dirty .store-img-overlay-title {
    color: #fff;
}

.store-img-name {
    font-weight: 800;
    line-height: 1.15;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


.copy-times-help {
    color: var(--muted);
    font-weight: 650;
    margin-bottom: 10px;
}

.copy-times-list {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
}

.copy-item {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px;
    background: #fff;
    font-weight: 650;
}

.copy-empty {
    color: var(--muted);
    font-weight: 650;
}

.landing-hero {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 16px 0 14px;
}

.landing-hero-logo {
    max-height: 180px;
    max-width: 100%;
    object-fit: contain;
}

.landing-hero-fallback {
    color: var(--muted);
    font-weight: 750;
    border: 1px dashed var(--border);
    border-radius: 12px;
    padding: 18px 18px;
    min-width: 160px;
    text-align: center;
}

.landing-headline h1 {
    margin: 8px 0 0;
}

.landing-headline {
    text-align: center;
}

.landing-sub {
    color: var(--muted);
    font-weight: 650;
    margin-top: 22px;
}

.landing-slogan {
    margin-top: 10px;
    margin-bottom: 14px;
    color: var(--muted);
    font-weight: 650;
}

.landing-benefits {
    margin: 10px 0 14px;
    padding-left: 18px;
    color: var(--muted);
    font-weight: 650;
    display: inline-block;
    text-align: left;
}

/* Mobile landing layout: logo higher, content stacks with more vertical rhythm */
@media (max-width: 720px) {
    .landing-hero {
        margin: 6px 0 10px;
    }

    .landing-hero-logo {
        max-height: 160px;
    }

    .landing-headline h1 {
        margin-top: 0;
    }

    .landing-slogan {
        margin-top: 12px;
        margin-bottom: 14px;
    }
}

.landing .cal-head .landing-cal-nav {
    background: var(--brand-ocker-soft);
    border-color: var(--brand-ocker);
    color: var(--text);
}

.landing-footer {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px dashed var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.landing-footer-logo {
    max-height: 36px;
    max-width: 180px;
    object-fit: contain;
}

.landing-footer-text {
    color: var(--muted);
    font-weight: 750;
}

.landing-closed-head {
    background: var(--brand-ocker-soft);
    border-bottom: 1px solid var(--border);
}

.landing-closed-actions {
    justify-content: center;
}

.cell-hint {
    margin-top: 4px;
    font-size: 0.75rem;
    color: var(--muted);
    font-weight: 650;
}

.store-logo-preview {
    margin-top: 8px;
}

.store-logo-img {
    max-height: 70px;
    max-width: 100%;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 6px;
    background: #fff;
}

.fid-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fid-input {
    max-width: 140px;
}

.qr-link {
    display: flex;
    justify-content: center;
    margin-bottom: 14px;
}

.qr-img {
    width: 260px;
    height: 260px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fff;
    padding: 10px;
}

@media (max-width: 720px) {
    .product-cells {
        grid-template-columns: 1fr 1fr;
        row-gap: 8px;
    }

    .js-stores-list .product-cells {
        grid-template-columns: 1fr 1fr;
    }

    .details-grid {
        grid-template-columns: 1fr;
    }

    .details-cell {
        min-height: 0;
    }

    .kv {
        grid-template-columns: 1fr;
    }

    .pickup-sliders {
        grid-template-columns: 1fr;
    }

    .pickup-slider {
        grid-template-columns: 44px 1fr 54px;
    }
}

.history-block {
    border-top: 1px solid var(--border);
    padding-top: 12px;
    margin-top: 12px;
}

.history-head {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 8px;
}

.kanban-board {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.kanban-column {
    background: #fafafa;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px;
}

.kanban-column h3 {
    margin: 4px 0 10px;
    font-size: 1rem;
}

.kanban-dropzone {
    min-height: 80px;
    display: grid;
    gap: 8px;
}

.kanban-dropzone.dragover {
    outline: 2px dashed var(--primary);
    border-radius: 8px;
}

.kanban-item {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 10px;
    background: #fff;
}

@media (max-width: 900px) {
    .container {
        width: min(1100px, 96%);
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .grid.two-col {
        grid-template-columns: 1fr;
    }

    .nav a {
        margin-left: 8px;
    }

    body.view-customer-menu .nav {
        display: none;
    }

    body.view-customer-menu .mobile-cart-indicator {
        display: inline-flex;
    }

    body.view-customer-menu .cart-summary {
        display: none;
    }

    .product {
        flex-direction: column;
        align-items: flex-start;
    }

    .product-action {
        align-items: flex-start;
    }

    .menu-item-grid {
        grid-template-columns: 72px 1fr auto;
        gap: 10px;
    }

    .menu-thumb {
        width: 72px;
        height: 72px;
    }

    .menu-actions {
        align-items: flex-end;
        gap: 4px;
    }

    .qty-stepper.menu-stepper {
        gap: 2px;
    }

    .menu-form {
        justify-items: start;
    }

    .menu-btns {
        justify-content: flex-start;
    }

    .cart-fixed {
        position: static;
    }

    .menu-info {
        grid-template-columns: 1fr;
    }
}
