@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css');

:root {
    --pub-bg: #f4f5fa;
    --pub-white: #ffffff;
    --pub-primary: #6366f1;
    --pub-primary-dark: #4f46e5;
    --pub-primary-light: #eef2ff;
    --pub-text: #1e1e2d;
    --pub-text-muted: #8e8ea9;
    --pub-border: #ececf2;
    --pub-success: #22c55e;
    --pub-success-bg: #ecfdf5;
    --pub-danger: #ef4444;
    --pub-danger-bg: #fef2f2;
    --pub-warning: #f59e0b;
    --pub-warning-bg: #fffbeb;
    --pub-radius: 24px;
    --pub-radius-sm: 16px;
    --pub-shadow: 0 4px 24px rgba(30, 30, 45, 0.06);
    --pub-shadow-lg: 0 12px 40px rgba(30, 30, 45, 0.1);
    --pub-focus-ring: color-mix(in srgb, var(--pub-primary) 18%, transparent);
    --pub-input-focus-border: #9ca3af;
    --pub-input-focus-ring: rgba(156, 163, 175, 0.28);
}

* { box-sizing: border-box; }

.fa-digits-input {
    direction: ltr;
    text-align: left;
}

body.pub-body {
    font-family: 'Vazirmatn', 'Vazir', 'Tahoma', sans-serif;
    background: var(--pub-bg);
    color: var(--pub-text);
    margin: 0;
    min-height: 100vh;
}

/* Navbar */
.pub-navbar {
    background: var(--pub-white);
    border-bottom: 1px solid var(--pub-border);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 200;
}

.pub-navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.pub-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--pub-text);
}

.pub-brand-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--pub-primary) 0%, #8b5cf6 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: white;
    flex-shrink: 0;
}

.pub-brand-text {
    font-weight: 700;
    font-size: 1.05rem;
}

.pub-brand-restaurant .pub-brand-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: min(48vw, 220px);
}

.pub-restaurant-brand-logo {
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--pub-primary-light);
    flex-shrink: 0;
}

.pub-restaurant-brand-icon {
    border-radius: 50%;
    font-size: 1rem;
}

.pub-nav-links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Buttons */
.btn-pub-primary {
    background: var(--pub-primary);
    color: white;
    border: none;
    padding: 10px 22px;
    border-radius: 50px;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.25;
    gap: 6px;
    transition: all 0.2s;
}

.btn-pub-primary:hover {
    background: var(--pub-primary-dark);
    color: white;
    transform: translateY(-1px);
}

.btn-pub-outline {
    background: transparent;
    color: var(--pub-text);
    border: 1px solid var(--pub-border);
    padding: 10px 22px;
    border-radius: 50px;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.25;
    gap: 6px;
    transition: all 0.2s;
}

.btn-pub-outline:hover {
    border-color: var(--pub-primary);
    color: var(--pub-primary);
}

.btn-pub-sm { padding: 7px 16px; font-size: 0.8rem; }
.btn-pub-lg { padding: 14px 28px; font-size: 1rem; }

.btn-pub-primary.w-100,
.btn-pub-outline.w-100 {
    display: flex;
    width: 100%;
}

.pub-body .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.25;
}

.pub-body .btn.w-100 {
    display: flex;
    width: 100%;
}

/* Layout */
.pub-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.pub-page {
    padding: 32px 0 48px;
}

.pub-page-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 32px 20px 48px;
}

.pub-page-header {
    text-align: center;
    margin-bottom: 36px;
}

.pub-page-header-has-fab {
    position: relative;
}

.pub-page-header h1 {
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0 0 8px;
}

.pub-page-header p {
    color: var(--pub-text-muted);
    margin: 0;
}

/* Cards */
.pub-card {
    background: var(--pub-white);
    border-radius: var(--pub-radius);
    box-shadow: var(--pub-shadow);
    margin-bottom: 24px;
    overflow: hidden;
}

.pub-card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--pub-border);
    font-weight: 700;
    font-size: 1rem;
}

.pub-card-body {
    padding: 24px;
}

.pub-card .card-header {
    background: transparent;
    border-bottom: 1px solid var(--pub-border);
    padding: 20px 24px;
    font-weight: 700;
}

.pub-card.card,
.card.pub-card {
    border: none;
    border-radius: var(--pub-radius);
    box-shadow: var(--pub-shadow);
}

/* Restaurant cards (index) */
.pub-restaurant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.pub-restaurant-card {
    background: var(--pub-white);
    border-radius: var(--pub-radius);
    overflow: hidden;
    box-shadow: var(--pub-shadow);
    transition: transform 0.25s, box-shadow 0.25s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pub-restaurant-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--pub-shadow-lg);
}

.pub-restaurant-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--pub-primary-light) 0%, #ede9fe 100%);
}

.pub-restaurant-img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.pub-restaurant-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pub-restaurant-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 8px;
}

.pub-restaurant-info p {
    color: var(--pub-text-muted);
    font-size: 0.875rem;
    flex: 1;
    margin-bottom: 16px;
}

.pub-restaurant-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

/* Landing page (index) — inspired by cartbecart.com layout */
.landing-page {
    background: #fafbfc;
    --landing-accent: #0f766e;
    --landing-accent-dark: #115e59;
    --landing-accent-light: #ecfdf5;
}

.landing-page .pub-navbar {
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.landing-hero {
    position: relative;
    overflow: hidden;
    padding: 56px 0 64px;
}

.landing-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 18%, rgba(15, 118, 110, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 88% 8%, rgba(99, 102, 241, 0.06) 0%, transparent 35%),
        linear-gradient(180deg, #ffffff 0%, #f8fafb 100%);
    pointer-events: none;
}

.landing-hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
    align-items: center;
}

.landing-hero-content {
    max-width: 620px;
}

.landing-hero-badge {
    display: inline-flex;
    align-items: center;
    background: var(--landing-accent-light);
    border: 1px solid rgba(15, 118, 110, 0.14);
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--landing-accent-dark);
    margin-bottom: 22px;
}

.landing-hero h1 {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 900;
    line-height: 1.32;
    margin: 0 0 18px;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.landing-hero-gradient {
    background: linear-gradient(135deg, var(--landing-accent) 0%, var(--landing-accent-dark) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.landing-hero-lead {
    font-size: 1.04rem;
    color: #64748b;
    line-height: 1.9;
    margin: 0 0 28px;
}

.landing-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}

.landing-btn-glow {
    box-shadow: 0 10px 28px rgba(15, 118, 110, 0.22);
}

.landing-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.landing-stat {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    padding: 16px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.landing-stat strong {
    display: block;
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--landing-accent-dark);
    margin-bottom: 4px;
}

.landing-stat span {
    font-size: 0.78rem;
    color: #64748b;
}

.landing-hero-visual {
    position: relative;
    min-height: 420px;
}

.landing-hero-stack {
    position: relative;
    display: grid;
    gap: 16px;
    max-width: 380px;
    margin: 0 auto;
}

.landing-demo-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 1.586;
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.18);
    transform: rotate(-2deg);
}

.landing-demo-card-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #124a52 0%, #186268 42%, #1f7a82 100%);
}

.landing-demo-card-body {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 18px 20px 16px;
    color: #fff;
}

.landing-demo-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.landing-demo-card-contactless .fa-wifi {
    font-size: 1.2rem;
    transform: rotate(90deg) scaleX(-1);
}

.landing-demo-card-label {
    font-size: 0.76rem;
    font-weight: 700;
}

.landing-demo-card-number {
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 0 12px;
}

.landing-demo-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.landing-demo-card-copy {
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 0.72rem;
    font-weight: 700;
}

.landing-demo-card-name {
    font-size: 0.86rem;
    font-weight: 700;
}

.landing-live-feed {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 20px;
    padding: 16px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
    transform: rotate(1deg);
}

.landing-live-feed-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #0f172a;
}

.landing-live-feed-badge {
    font-style: normal;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--landing-accent-dark);
    background: var(--landing-accent-light);
    border-radius: 999px;
    padding: 4px 10px;
}

.landing-live-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-top: 1px solid #f1f5f9;
    font-size: 0.82rem;
}

.landing-live-item strong {
    display: block;
    color: #0f172a;
    font-size: 0.84rem;
}

.landing-live-item small {
    color: #94a3b8;
    font-size: 0.74rem;
}

.landing-live-status {
    flex-shrink: 0;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.72rem;
    font-weight: 700;
}

.landing-live-status.is-pending {
    background: #fef3c7;
    color: #92400e;
}

.landing-live-status.is-ready {
    background: #dbeafe;
    color: #1d4ed8;
}

.landing-live-status.is-done {
    background: #dcfce7;
    color: #166534;
}

.landing-live-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--landing-accent-light);
    color: var(--landing-accent-dark);
    font-size: 0.78rem;
    font-weight: 600;
}

.landing-marquee {
    overflow: hidden;
    border-block: 1px solid rgba(15, 23, 42, 0.06);
    background: #fff;
    padding: 14px 0;
    direction: ltr;
}

.landing-marquee-track {
    display: flex;
    gap: 32px;
    width: max-content;
    animation: landing-marquee 28s linear infinite;
}

.landing-marquee-track span {
    flex-shrink: 0;
    font-size: 0.88rem;
    font-weight: 600;
    color: #64748b;
    white-space: nowrap;
}

.landing-marquee-track span::before {
    content: '•';
    margin-left: 32px;
    color: var(--landing-accent);
}

@keyframes landing-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(50%); }
}

.landing-mockup {
    background: var(--pub-white);
    border: 1px solid var(--pub-border);
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(30, 30, 45, 0.12);
    overflow: hidden;
    transform: perspective(1000px) rotateY(-4deg) rotateX(2deg);
}

.landing-mockup-chrome {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #f8f8fc;
    border-bottom: 1px solid var(--pub-border);
}

.landing-mockup-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e2e2ea;
}

.landing-mockup-dot:nth-child(1) { background: #ff5f57; }
.landing-mockup-dot:nth-child(2) { background: #febc2e; }
.landing-mockup-dot:nth-child(3) { background: #28c840; }

.landing-mockup-url {
    flex: 1;
    margin-right: 12px;
    background: #fff;
    border: 1px solid var(--pub-border);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 0.75rem;
    color: var(--pub-text-muted);
    direction: ltr;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.landing-mockup-body {
    padding: 18px;
}

.landing-mockup-hero {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.landing-mockup-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--pub-primary-light);
    color: var(--pub-primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}

.landing-mockup-hero strong {
    display: block;
    font-size: 0.95rem;
}

.landing-mockup-hero small {
    color: var(--pub-text-muted);
    font-size: 0.75rem;
}

.landing-mockup-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
    overflow-x: auto;
}

.landing-mockup-tabs span {
    padding: 6px 12px;
    border-radius: 999px;
    background: #f4f5fa;
    font-size: 0.75rem;
    white-space: nowrap;
}

.landing-mockup-tabs span.is-active {
    background: var(--pub-primary-light);
    color: var(--pub-primary-dark);
    font-weight: 700;
}

.landing-mockup-items {
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
}

.landing-mockup-item {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 10px;
    border: 1px solid var(--pub-border);
    border-radius: 14px;
}

.landing-mockup-thumb {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, #fde68a, #f59e0b);
}

.landing-mockup-thumb.is-alt {
    background: linear-gradient(135deg, #fca5a5, #ef4444);
}

.landing-mockup-item-info strong {
    display: block;
    font-size: 0.82rem;
}

.landing-mockup-item-info small {
    color: var(--pub-text-muted);
    font-size: 0.72rem;
}

.landing-mockup-add {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--pub-primary-light);
    color: var(--pub-primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.landing-mockup-cart {
    background: var(--pub-primary);
    color: #fff;
    border-radius: 14px;
    padding: 12px 16px;
    font-size: 0.82rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.landing-mockup-float {
    position: absolute;
    background: var(--pub-white);
    border: 1px solid var(--pub-border);
    border-radius: 16px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--pub-shadow-lg);
    font-size: 0.8rem;
    animation: landing-float 4s ease-in-out infinite;
}

.landing-mockup-float strong {
    display: block;
    font-size: 0.82rem;
}

.landing-mockup-float small {
    color: var(--pub-text-muted);
    font-size: 0.72rem;
}

.landing-mockup-float--order {
    top: 12%;
    left: -8%;
    animation-delay: 0s;
}

.landing-mockup-float--link {
    bottom: 8%;
    right: -6%;
    animation-delay: 1.5s;
}

@keyframes landing-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.landing-trust {
    padding: 20px 0;
    border-bottom: 1px solid var(--pub-border);
    background: var(--pub-white);
}

.landing-trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.landing-trust-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--pub-text-muted);
    font-weight: 600;
}

.landing-section {
    padding: 72px 0;
}

.landing-section-label {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--landing-accent-dark);
    background: var(--landing-accent-light);
    padding: 6px 12px;
    border-radius: 999px;
    margin-bottom: 12px;
}

.landing-section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 48px;
}

.landing-section-head h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    margin: 0 0 12px;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.landing-section-head p {
    color: #64748b;
    margin: 0;
    line-height: 1.75;
}

.landing-audience {
    background: #fff;
}

.landing-audience-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.landing-audience-card {
    background: #fafbfc;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 20px;
    padding: 24px 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.landing-audience-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
    border-color: rgba(15, 118, 110, 0.2);
}

.landing-audience-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--landing-accent-light);
    color: var(--landing-accent-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.landing-audience-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 8px;
    color: #0f172a;
}

.landing-audience-card p {
    margin: 0 0 14px;
    color: #64748b;
    font-size: 0.86rem;
    line-height: 1.75;
}

.landing-audience-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--landing-accent-dark);
    background: #fff;
    border: 1px solid rgba(15, 118, 110, 0.16);
    border-radius: 999px;
    padding: 4px 10px;
}

.landing-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.landing-feature-grid--6 {
    grid-template-columns: repeat(3, 1fr);
}

.landing-feature-card {
    background: var(--pub-white);
    border: 1px solid var(--pub-border);
    border-radius: 20px;
    padding: 26px;
    box-shadow: var(--pub-shadow);
    height: 100%;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.landing-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--pub-shadow-lg);
    border-color: rgba(15, 118, 110, 0.22);
}

.landing-feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--landing-accent-light), #fff);
    color: var(--landing-accent-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 18px;
    border: 1px solid rgba(15, 118, 110, 0.12);
}

.landing-feature-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 8px;
}

.landing-feature-card p {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.75;
    margin: 0 0 14px;
}

.landing-feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.landing-feature-tags span {
    font-size: 0.72rem;
    font-weight: 600;
    color: #475569;
    background: #f1f5f9;
    border-radius: 999px;
    padding: 4px 10px;
}

.landing-showcase {
    background: var(--pub-white);
    border-top: 1px solid var(--pub-border);
    border-bottom: 1px solid var(--pub-border);
}

.landing-showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.landing-showcase-content h2 {
    font-size: clamp(1.4rem, 2.5vw, 1.85rem);
    font-weight: 800;
    line-height: 1.45;
    margin: 0 0 20px;
}

.landing-checklist {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: grid;
    gap: 12px;
}

.landing-checklist li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--pub-text);
    font-size: 0.95rem;
}

.landing-checklist .fa-check {
    color: var(--pub-success);
    background: var(--pub-success-bg);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

.landing-panel-preview {
    position: relative;
}

.landing-panel-card {
    background: #1e1e2d;
    color: #fff;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 24px 50px rgba(30, 30, 45, 0.2);
}

.landing-panel-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.landing-panel-pill {
    background: rgba(34, 197, 94, 0.18);
    color: #86efac;
    font-size: 0.72rem;
    padding: 4px 10px;
    border-radius: 999px;
}

.landing-panel-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 18px;
}

.landing-panel-metrics div {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 14px;
    text-align: center;
}

.landing-panel-metrics strong {
    display: block;
    font-size: 1.35rem;
    margin-bottom: 4px;
}

.landing-panel-metrics small {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.72rem;
}

.landing-panel-list {
    display: grid;
    gap: 8px;
}

.landing-panel-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 0.82rem;
}

.landing-panel-row span {
    color: rgba(255, 255, 255, 0.45);
}

.landing-panel-row em {
    font-style: normal;
    color: #a5b4fc;
    font-size: 0.75rem;
}

.landing-steps {
    background: var(--pub-bg);
}

.landing-steps-track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    position: relative;
}

.landing-step-card {
    background: var(--pub-white);
    border: 1px solid var(--pub-border);
    border-radius: 20px;
    padding: 24px 20px;
    text-align: center;
    box-shadow: var(--pub-shadow);
    position: relative;
}

.landing-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--landing-accent), var(--landing-accent-dark));
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 16px;
    box-shadow: 0 8px 20px rgba(15, 118, 110, 0.28);
}

.landing-step-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 8px;
}

.landing-step-card p {
    color: var(--pub-text-muted);
    font-size: 0.85rem;
    line-height: 1.7;
    margin: 0;
}

.landing-faq-list {
    max-width: 760px;
    margin: 0 auto;
    display: grid;
    gap: 12px;
}

.landing-faq-item {
    background: var(--pub-white);
    border: 1px solid var(--pub-border);
    border-radius: 16px;
    padding: 0 20px;
    box-shadow: var(--pub-shadow);
}

.landing-faq-item summary {
    padding: 18px 0;
    cursor: pointer;
    font-weight: 700;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.landing-faq-item summary::-webkit-details-marker {
    display: none;
}

.landing-faq-item summary::after {
    content: '+';
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--pub-primary-light);
    color: var(--pub-primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.landing-faq-item[open] summary::after {
    content: '−';
}

.landing-faq-item p {
    padding: 0 0 18px;
    margin: 0;
    color: var(--pub-text-muted);
    line-height: 1.8;
    font-size: 0.92rem;
}

.landing-cta-box {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--landing-accent) 0%, var(--landing-accent-dark) 100%);
    color: #fff;
    border-radius: 28px;
    padding: 56px 32px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(15, 118, 110, 0.28);
}

.landing-cta-eyebrow {
    position: relative;
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 700;
    opacity: 0.92;
    margin-bottom: 12px;
}

.landing-cta-glow {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    top: -120px;
    left: -80px;
    pointer-events: none;
}

.landing-cta-box h2 {
    position: relative;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    margin: 0 0 12px;
    color: #fff;
}

.landing-cta-box p {
    position: relative;
    margin: 0 0 28px;
    opacity: 0.92;
    font-size: 1.02rem;
}

.landing-cta-box .landing-hero-actions {
    justify-content: center;
}

.landing-cta-box .btn-pub-outline {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.45);
    color: #fff;
}

.landing-cta-box .btn-pub-outline:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.landing-restaurants {
    padding-bottom: 80px;
}

.landing-restaurant-grid {
    gap: 28px;
}

.landing-restaurant-card {
    transition: transform 0.25s, box-shadow 0.25s;
}

.landing-restaurant-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--pub-shadow-lg);
}

.landing-restaurant-media {
    position: relative;
    display: block;
    text-decoration: none;
}

.landing-restaurant-slug {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(6px);
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 0.72rem;
    color: var(--pub-primary-dark);
    font-weight: 600;
    direction: ltr;
}

.landing-empty {
    background: var(--pub-white);
    border-radius: 24px;
    padding: 48px 24px;
    box-shadow: var(--pub-shadow);
}

@media (max-width: 991px) {
    .landing-hero-grid,
    .landing-showcase-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .landing-hero-visual {
        min-height: auto;
        max-width: 420px;
        margin: 0 auto;
    }

    .landing-demo-card,
    .landing-live-feed {
        transform: none;
    }

    .landing-audience-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .landing-trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .landing-feature-grid--6,
    .landing-steps-track {
        grid-template-columns: repeat(2, 1fr);
    }

    .landing-mockup {
        transform: none;
    }
}

@media (max-width: 575px) {
    .landing-hero { padding: 32px 0 48px; }
    .landing-section { padding: 48px 0; }
    .landing-stats { grid-template-columns: 1fr; }
    .landing-trust-grid { grid-template-columns: 1fr; }
    .landing-audience-grid,
    .landing-feature-grid--6,
    .landing-steps-track { grid-template-columns: 1fr; }
    .landing-hero-actions .btn-pub-lg { width: 100%; justify-content: center; }
}

/* Hero (restaurant page) */
.pub-hero {
    background: var(--pub-white);
    border-bottom: 1px solid var(--pub-border);
    padding: 48px 0;
    margin-bottom: 32px;
    position: relative;
}

.pub-hero-inner {
    text-align: center;
    position: relative;
    z-index: 2;
}

.pub-hero-cover-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.pub-hero-cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.38) 0%, rgba(15, 23, 42, 0.72) 100%);
    z-index: 1;
    pointer-events: none;
}

.pub-hero-has-cover {
    position: relative;
    overflow: hidden;
    padding: 48px 0;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: none;
}

.pub-hero-has-theme-gradient {
    position: relative;
    overflow: hidden;
    padding: 48px 0;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: none;
    background:
        radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.16) 0%, transparent 42%),
        linear-gradient(135deg, var(--pub-primary-dark) 0%, var(--pub-primary) 52%, color-mix(in srgb, var(--pub-primary-dark) 82%, #000) 100%);
}

.pub-hero-has-theme-gradient::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.1) 0%, rgba(15, 23, 42, 0.24) 100%);
    z-index: 1;
    pointer-events: none;
}

.pub-hero-has-cover .pub-hero-logo {
    border-color: rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
}

.pub-hero-has-theme-gradient .pub-hero-logo {
    border-color: rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
}

.pub-hero-has-cover h1,
.pub-hero-has-theme-gradient h1 {
    color: #ffffff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.pub-hero .lead {
    color: var(--pub-text-muted);
    margin-bottom: 16px;
}

.pub-hero-has-cover .pub-hero-lead,
.pub-hero.pub-hero-has-cover .lead,
.pub-hero-has-theme-gradient .pub-hero-lead,
.pub-hero.pub-hero-has-theme-gradient .lead {
    color: #ffffff;
    margin-bottom: 16px;
    font-size: 1.08rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85), 0 0 24px rgba(0, 0, 0, 0.45);
    -webkit-font-smoothing: antialiased;
}

.pub-hero-logo {
    display: block;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--pub-primary-light);
    margin: 0 auto 20px;
    box-shadow: var(--pub-shadow);
}

.pub-hero-logo-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--pub-primary-light) 0%, #ede9fe 100%);
    color: var(--pub-text-muted);
    font-size: 2.5rem;
}

.pub-hero-logo-link {
    display: block;
    width: fit-content;
    margin: 0 auto 20px;
    text-decoration: none;
    border-radius: 50%;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.pub-hero-logo-link .pub-hero-logo {
    margin-bottom: 0;
}

.pub-hero-logo-link:hover {
    transform: scale(1.03);
    opacity: 0.92;
}

.pub-hero-title-link {
    display: inline-block;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

.pub-hero-title-link:hover {
    opacity: 0.85;
}

.pub-hero-title-link h1 {
    margin: 0 0 8px;
}

.pub-hero-info-link {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

.pub-hero-info-link:hover {
    opacity: 0.85;
}

.pub-hero h1 {
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 8px;
}

.pub-hero-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--pub-text-muted);
    font-size: 0.9rem;
    margin-top: 4px;
}

.pub-hero-meta-item {
    display: inline-flex;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    max-width: min(560px, 100%);
    line-height: 1.7;
    text-align: center;
}

.pub-hero-meta-icon {
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--pub-primary);
}

.pub-hero-meta-icon-phone {
    transform: scaleX(-1);
}

.pub-hero-meta-text {
    word-break: break-word;
}

.pub-hero-meta-link {
    color: inherit;
    text-decoration: none;
    direction: ltr;
    unicode-bidi: embed;
}

.pub-hero-meta-link:hover {
    color: var(--pub-primary);
}

.pub-hero-has-cover .pub-hero-meta,
.pub-hero-has-theme-gradient .pub-hero-meta {
    color: rgba(255, 255, 255, 0.92);
}

.pub-hero-has-cover .pub-hero-meta-icon,
.pub-hero-has-theme-gradient .pub-hero-meta-icon {
    color: rgba(255, 255, 255, 0.95);
}

.pub-hero-has-cover .pub-hero-meta-link,
.pub-hero-has-theme-gradient .pub-hero-meta-link {
    color: rgba(255, 255, 255, 0.95);
}

.pub-hero-has-cover .pub-hero-meta-link:hover,
.pub-hero-has-theme-gradient .pub-hero-meta-link:hover {
    color: #ffffff;
}

/* Menu items */
.pub-category-title {
    background: var(--pub-white);
    padding: 16px 24px;
    border-radius: var(--pub-radius-sm);
    margin: 32px 0 20px;
    box-shadow: var(--pub-shadow);
    font-weight: 700;
    font-size: 1.15rem;
}

.pub-category-tabs,
.snapp-tabs {
    background: var(--pub-white);
    border-bottom: 1px solid var(--pub-border);
    position: sticky;
    top: 0;
    z-index: 99;
    padding: 0 16px;
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    margin-bottom: 20px;
    border-radius: var(--pub-radius-sm);
    box-shadow: var(--pub-shadow);
}

@media (hover: hover) and (pointer: fine) {
    .pub-category-tabs,
    .snapp-tabs {
        cursor: grab;
    }

    .pub-category-tabs.is-dragging,
    .snapp-tabs.is-dragging {
        cursor: grabbing;
        user-select: none;
    }
}

.pub-category-tabs::-webkit-scrollbar,
.snapp-tabs::-webkit-scrollbar { display: none; }

.pub-category-tab,
.snapp-tab {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    padding: 14px 18px;
    color: var(--pub-text-muted);
    text-decoration: none;
    border: none;
    background: none;
    border-bottom: 2px solid transparent;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s;
    cursor: pointer;
    font-family: inherit;
}

.pub-category-tab.active,
.snapp-tab.active {
    color: var(--pub-primary);
    border-bottom-color: var(--pub-primary);
    font-weight: 700;
}

.pub-category-panel,
.category-section {
    display: none;
}

.pub-category-panel.active,
.category-section.active {
    display: block;
}

.pub-menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.pub-menu-item {
    background: var(--pub-white);
    border-radius: var(--pub-radius);
    overflow: hidden;
    box-shadow: var(--pub-shadow);
    transition: transform 0.2s;
}

.pub-menu-item-clickable {
    cursor: pointer;
}

.pub-menu-item-clickable:focus-visible {
    outline: 2px solid var(--pub-primary);
    outline-offset: 2px;
}

.pub-menu-item:hover {
    transform: translateY(-4px);
}

.pub-menu-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.pub-menu-img.is-placeholder,
.snapp-item-img.is-placeholder {
    object-fit: cover;
    background: #f3f4f6;
}

.pub-menu-img-placeholder {
    height: 180px;
    background: var(--pub-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.pub-menu-info {
    padding: 18px;
}

.pub-menu-info h5 {
    font-weight: 700;
    margin: 0 0 14px;
    font-size: 1rem;
}

.pub-menu-info .desc {
    color: var(--pub-text-muted);
    font-size: 0.8rem;
    margin-bottom: 14px;
}

.pub-menu-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pub-body .modal {
    --app-modal-padding: 1rem;
}

.pub-body .modal.show,
.pub-body .modal.showing {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: var(--app-modal-padding);
}

.pub-body .modal .modal-dialog {
    margin: 0 auto;
    width: 100%;
    max-height: calc(100dvh - (var(--app-modal-padding) * 2));
}

.pub-body .modal .modal-dialog.modal-dialog-centered {
    min-height: 0;
    display: block;
}

.pub-body .modal .modal-content {
    max-height: calc(100dvh - (var(--app-modal-padding) * 2));
}

body.telegram-webapp.pub-body .modal.show,
body.telegram-webapp.pub-body .modal.showing,
html.telegram-webapp .pub-body .modal.show,
html.telegram-webapp .pub-body .modal.showing {
    padding:
        max(1rem, env(safe-area-inset-top, 0px))
        max(1rem, env(safe-area-inset-right, 0px))
        max(1rem, env(safe-area-inset-bottom, 0px))
        max(1rem, env(safe-area-inset-left, 0px));
}

.pub-product-modal-dialog {
    max-width: 420px;
}

.pub-product-modal {
    border: none;
    border-radius: var(--pub-radius);
    overflow: hidden;
}

.pub-product-modal .modal-header {
    border-bottom: 1px solid var(--pub-border);
    padding: 16px 20px;
}

.pub-product-modal .modal-body {
    padding: 0;
}

.pub-product-modal-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    background: var(--pub-bg);
}

.pub-product-modal-content {
    padding: 20px;
}

.pub-product-modal-desc {
    color: var(--pub-text-muted);
    font-size: 0.9rem;
    line-height: 1.8;
    margin: 0 0 18px;
    white-space: pre-line;
}

.pub-product-modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.pub-product-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 18px;
}

.pub-product-option-group-title {
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.pub-product-option-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pub-product-option-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--pub-border, #e9ecef);
    border-radius: 12px;
    cursor: pointer;
}

.pub-product-option-item:has(input:checked) {
    border-color: var(--pub-primary);
    background: var(--pub-primary-light);
}

.pub-product-option-label {
    flex: 1;
}

.pub-product-option-price {
    font-size: 0.85rem;
    color: var(--pub-muted, #6c757d);
    white-space: nowrap;
}

.pub-menu-cart-slot--options {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.pub-menu-options-qty {
    font-size: 0.75rem;
}

.pub-menu-item--variants {
    grid-column: 1 / -1;
    display: block;
    padding: 16px;
    border: 1px solid var(--pub-border, #e9ecef);
    border-radius: 16px;
    background: #fff;
}

.pub-menu-variant-head {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 12px;
}

.pub-menu-variant-img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
}

.pub-menu-variant-info h5 {
    margin: 0 0 6px;
}

.pub-menu-variant-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--pub-border, #eee);
}

.pub-menu-variant-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--pub-border, #f0f0f0);
}

.pub-menu-variant-row:last-child {
    border-bottom: none;
}

.pub-menu-variant-name {
    font-weight: 600;
}

.pub-menu-variant-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pub-menu-variant-cart-slot .pub-menu-add-btn {
    min-width: 88px;
}

.pub-price-tag {
    background: var(--pub-primary-light);
    color: var(--pub-primary);
    padding: 6px 14px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
}

/* Floating cart */
.pub-cart-float {
    position: fixed;
    bottom: 24px;
    left: 24px;
    background: var(--pub-primary);
    color: white;
    width: 56px;
    height: 56px;
    padding: 0;
    border-radius: 50%;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--pub-primary) 18%, transparent);
    cursor: pointer;
    z-index: 1000;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.pub-cart-float:hover {
    transform: scale(1.05);
}

.pub-cart-float .icon-inline-sm {
    margin: 0;
    font-size: 1.15rem;
}

.pub-cart-float-label {
    display: none;
}

.pub-cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--pub-danger);
    border-radius: 50%;
    min-width: 22px;
    height: 22px;
    padding: 0 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    border: 2px solid var(--pub-white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

@media (min-width: 768px) {
    .restaurant-page .pub-cart-float {
        bottom: 24px;
        left: 24px;
        right: auto;
        width: 56px;
        height: 56px;
        border-radius: 50%;
        padding: 0;
        gap: 0;
        justify-content: center;
        box-shadow: 0 4px 12px color-mix(in srgb, var(--pub-primary) 18%, transparent);
    }

    .restaurant-page .pub-cart-float-label {
        display: none !important;
    }

    .restaurant-page .pub-cart-float .pub-cart-badge {
        display: flex !important;
        top: -4px;
        right: -4px;
        min-width: 22px;
        height: 22px;
        padding: 0 5px;
        font-size: 0.72rem;
        font-weight: 700;
        border: 2px solid var(--pub-white);
        background: var(--pub-danger);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }
}

@media (max-width: 767.98px) {
    .restaurant-page .pub-cart-float {
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: auto;
        border-radius: 0;
        justify-content: center;
        gap: 10px;
        padding: 14px 20px;
        padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
        box-shadow: 0 -2px 10px color-mix(in srgb, var(--pub-primary) 12%, transparent);
    }

    .restaurant-page .pub-cart-float-label {
        display: inline;
    }

    .restaurant-page .pub-cart-float .pub-cart-badge {
        display: none;
    }

    .restaurant-page .pub-cart-float:hover {
        transform: none;
    }

    .restaurant-page.has-cart-bar .restaurant-content {
        padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
    }
}

/* Restaurant FAB menu */
.pub-fab-menu {
    position: static;
}

.pub-fab-menu-trigger {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: var(--pub-white);
    color: var(--pub-text);
    border: 1px solid var(--pub-border);
    box-shadow: 0 1px 4px rgba(30, 30, 45, 0.05);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 6;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

@media (min-width: 992px) {
    .pub-fab-menu-trigger {
        position: fixed;
        top: calc(12px + env(safe-area-inset-top, 0px));
        right: calc(12px + env(safe-area-inset-right, 0px));
        z-index: 1200;
        transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, opacity 0.2s ease, visibility 0.2s ease;
    }

    body.pub-fab-menu-open .pub-fab-menu-trigger {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
}

.pub-hero-has-cover .pub-fab-menu-trigger,
.pub-hero-has-theme-gradient .pub-fab-menu-trigger {
    background: rgba(255, 255, 255, 0.92);
}

.pub-hero-back-btn {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 48px;
    height: 48px;
    border: 1px solid var(--pub-border);
    border-radius: 50%;
    background: var(--pub-white);
    color: var(--pub-text);
    box-shadow: 0 1px 4px rgba(30, 30, 45, 0.05);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 6;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.pub-hero-back-btn .fa-solid {
    font-size: 1rem;
    line-height: 1;
}

.pub-hero-back-btn:hover {
    transform: scale(1.05);
    background: #f9fafb;
    color: var(--pub-text);
}

.pub-hero-has-cover .pub-hero-back-btn,
.pub-hero-has-theme-gradient .pub-hero-back-btn {
    background: rgba(255, 255, 255, 0.92);
}

@media (min-width: 992px) {
    .pub-hero-back-btn {
        position: fixed;
        top: calc(12px + env(safe-area-inset-top, 0px));
        left: calc(12px + env(safe-area-inset-left, 0px));
        z-index: 1200;
    }
}

.pub-fab-menu-trigger:hover {
    transform: scale(1.05);
    background: #f9fafb;
}

.pub-fab-menu-trigger .icon-inline {
    font-size: 1.15rem;
}

.pub-fab-menu-trigger .icon-inline,
.pub-fab-menu-close .icon-inline-sm,
.restaurant-page .pub-store-info-btn-icon .icon-inline-sm {
    margin: 0;
    line-height: 1;
    display: block;
}

.pub-fab-menu-trigger .pub-fab-menu-icon-close {
    display: none;
}

.pub-fab-menu-trigger.is-open .pub-fab-menu-icon-open {
    display: none;
}

.pub-fab-menu-trigger.is-open .pub-fab-menu-icon-close {
    display: block;
}

.pub-fab-menu-panel {
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    width: min(320px, 88vw);
    height: 100%;
    background: var(--pub-white);
    box-shadow: -8px 0 32px rgba(15, 23, 42, 0.12);
    z-index: 1060;
    display: flex;
    flex-direction: column;
    transform: translate3d(100%, 0, 0);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.pub-fab-menu.is-open .pub-fab-menu-panel {
    transform: translate3d(0, 0, 0);
}

.pub-fab-menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 1055;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.32s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

.pub-fab-menu.is-open .pub-fab-menu-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

body.pub-fab-menu-open {
    overflow: hidden;
}

.pub-fab-menu-panel-head {
    padding: 18px 16px;
    border-bottom: 1px solid var(--pub-border);
}

.pub-fab-menu-panel-head-main {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.pub-fab-menu-panel-head strong {
    font-size: 0.95rem;
    line-height: 1.5;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pub-fab-menu-head-btn {
    width: 48px;
    height: 48px;
    border: 1px solid var(--pub-border);
    border-radius: 50%;
    background: var(--pub-white);
    color: var(--pub-text-muted);
    box-shadow: 0 1px 4px rgba(30, 30, 45, 0.05);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.pub-fab-menu-head-btn:hover {
    transform: scale(1.05);
    background: #f9fafb;
    color: var(--pub-text);
}

.pub-fab-menu-head-btn .icon-inline {
    font-size: 1.15rem;
    margin: 0;
    line-height: 1;
    display: block;
}

.pub-fab-menu-close {
    padding: 0;
}

.pub-fab-menu-list {
    list-style: none;
    margin: 0;
    padding: 12px 0;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.pub-fab-menu-footer {
    flex-shrink: 0;
    padding: 12px 16px 16px;
    border-top: 1px solid var(--pub-border);
    background: var(--pub-white);
}

.pub-fab-menu-info-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--pub-border);
    border-radius: 12px;
    background: #f8f9fc;
    color: var(--pub-text);
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
}

.pub-fab-menu-info-btn:hover {
    background: #f1f3f8;
    border-color: #d0d4de;
    color: var(--pub-text);
}

.pub-fab-menu-info-btn .icon-inline-sm {
    margin: 0;
    line-height: 1;
    display: block;
    color: var(--pub-primary);
}

.pub-fab-menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    color: var(--pub-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    transition: background 0.15s;
}

.pub-fab-menu-link:hover {
    background: #f8f9fc;
    color: var(--pub-text);
}

.pub-fab-menu-link-muted {
    color: var(--pub-text-muted);
}

.pub-fab-menu-link-icon {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--pub-primary);
    flex-shrink: 0;
}

.pub-fab-menu-link-icon i[class*="fa-"] {
    margin: 0;
    line-height: 1;
    display: block;
}

.pub-fab-menu-link-text {
    flex: 1;
}

.pub-fab-menu-cart-badge {
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    border-radius: 999px;
    background: var(--pub-primary-light);
    color: var(--pub-primary);
    font-size: 0.78rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Restaurant menu page (restaurant-page.php only) */
.restaurant-page .restaurant-wrap {
    width: 100%;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

@media (min-width: 992px) {
    .restaurant-page .restaurant-wrap {
        max-width: 60%;
    }
}

.restaurant-page .pub-hero {
    padding: 40px 0 32px;
    margin-bottom: 0;
}

.restaurant-page .pub-hero-has-cover,
.restaurant-page .pub-hero-has-theme-gradient {
    padding: 44px 0 36px;
    min-height: 300px;
}

.restaurant-page .pub-hero-has-cover .pub-hero-lead,
.restaurant-page .pub-hero.pub-hero-has-cover .lead,
.restaurant-page .pub-hero-has-theme-gradient .pub-hero-lead,
.restaurant-page .pub-hero.pub-hero-has-theme-gradient .lead {
    color: #ffffff;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9), 0 0 30px rgba(0, 0, 0, 0.35);
}

@media (max-width: 767.98px) {
    .pub-hero-has-cover,
    .pub-hero-has-theme-gradient {
        align-items: flex-start;
        min-height: 0;
        padding: 36px 0 28px;
    }

    .restaurant-page .pub-hero-has-cover,
    .restaurant-page .pub-hero-has-theme-gradient {
        min-height: 0;
        padding: 40px 0 32px;
    }

    .pub-hero-inner {
        width: 100%;
    }

    .pub-hero-logo {
        width: 96px;
        height: 96px;
        margin-bottom: 12px;
    }

    .pub-hero-logo-link {
        margin-bottom: 12px;
    }

    .pub-hero h1,
    .pub-hero-title-link h1 {
        font-size: 1.35rem;
        line-height: 1.35;
        word-break: break-word;
        padding: 0 16px;
    }
}

body.telegram-webapp.restaurant-page .pub-hero-has-cover,
body.telegram-webapp.restaurant-page .pub-hero-has-theme-gradient,
body.telegram-webapp.restaurant-info-page .pub-hero-has-cover,
body.telegram-webapp.restaurant-info-page .pub-hero-has-theme-gradient {
    padding-top: calc(28px + env(safe-area-inset-top, 0px));
}

.restaurant-page .pub-store-info-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 8px 16px;
    border: 1px solid var(--pub-border);
    border-radius: 999px;
    background: var(--pub-white);
    color: var(--pub-text);
    font-family: inherit;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s;
}

.restaurant-page .pub-store-info-btn:hover {
    border-color: #d0d4de;
    background: #f9fafb;
}

.restaurant-page .pub-hero-title-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
    margin-bottom: 8px;
}

.restaurant-page .pub-hero-title-row h1 {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
}

.restaurant-page .pub-hero-title-row .pub-store-info-btn-icon {
    grid-column: 3;
    grid-row: 1;
    justify-self: start;
    align-self: center;
}

.restaurant-page .pub-store-info-btn-icon {
    margin-top: 0;
    padding: 0;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 50%;
}

.restaurant-info-page {
    background: #f5f6f8;
}

.restaurant-info-page .snapp-info-content {
    padding-top: 24px;
    padding-bottom: 32px;
}

.restaurant-info-page .snapp-info-block:first-child {
    margin-top: 0;
}

.pub-store-info-modal-dialog {
    max-width: 480px;
}

.pub-store-info-modal {
    border: none;
    border-radius: 16px;
    overflow: hidden;
}

.pub-store-info-modal .modal-header {
    border-bottom: 1px solid var(--pub-border);
    padding: 14px 18px;
}

.pub-store-info-modal .modal-title {
    font-size: 1rem;
    font-weight: 700;
}

.pub-store-info-body {
    padding: 8px 18px 18px;
    max-height: min(70vh, 560px);
    overflow-y: auto;
}

.pub-store-info-section {
    padding: 14px 0;
    border-bottom: 1px solid var(--pub-border);
}

.pub-store-info-section:last-child {
    border-bottom: none;
    padding-bottom: 4px;
}

.pub-store-info-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--pub-text);
}

.pub-store-info-text {
    font-size: 0.86rem;
    line-height: 1.8;
    color: var(--pub-text-muted);
}

.pub-store-info-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.pub-store-info-list li {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.86rem;
    line-height: 1.6;
}

.pub-store-info-list li span {
    flex-shrink: 0;
    color: var(--pub-text-muted);
}

.pub-store-info-list li strong {
    text-align: left;
    font-weight: 600;
    color: var(--pub-text);
}

.pub-store-info-link {
    color: inherit;
    text-decoration: none;
}

.pub-store-info-link:hover {
    color: var(--pub-primary);
}

/* Store info page (restaurant-info.php) — Snapp-style */
.snapp-info-page {
    background: #f5f6f8;
}

.snapp-info-shell {
    width: 100%;
    margin: 0 auto;
    min-height: 100vh;
    background: #f5f6f8;
}

@media (min-width: 992px) {
    .snapp-info-shell {
        max-width: 60%;
    }
}

.snapp-info-topbar {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--pub-white);
    border-bottom: 1px solid var(--pub-border);
    position: sticky;
    top: 0;
    z-index: 120;
}

.snapp-info-back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--pub-text);
    text-decoration: none;
    transition: background 0.2s;
}

.snapp-info-back-btn:hover {
    background: #f3f4f6;
    color: var(--pub-text);
}

.snapp-info-topbar-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.snapp-info-topbar-actions {
    width: 36px;
    height: 36px;
}

.snapp-info-tabs {
    display: flex;
    gap: 0;
    padding: 0 16px;
    background: var(--pub-white);
    border-bottom: 1px solid var(--pub-border);
    position: sticky;
    top: 61px;
    z-index: 119;
}

.snapp-info-tab {
    display: inline-block;
    padding: 14px 4px;
    margin-inline-end: 20px;
    color: var(--pub-text-muted);
    font-size: 0.88rem;
    font-weight: 600;
    border-bottom: 2px solid transparent;
}

.snapp-info-tab.active {
    color: var(--pub-primary);
    border-bottom-color: var(--pub-primary);
}

.snapp-info-content {
    padding-bottom: 32px;
}

.snapp-info-identity {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 16px;
    background: var(--pub-white);
    border-bottom: 8px solid #f5f6f8;
}

.snapp-info-identity-text {
    min-width: 0;
    flex: 1;
}

.snapp-info-identity-text h2 {
    margin: 0 0 6px;
    font-size: 1rem;
    font-weight: 800;
}

.snapp-info-identity-text p {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.7;
    color: var(--pub-text-muted);
}

.snapp-info-logo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #eef0f4;
}

.snapp-info-logo-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    color: var(--pub-text-muted);
    font-size: 1.2rem;
}

.snapp-info-block {
    background: var(--pub-white);
    border-bottom: 8px solid #f5f6f8;
    padding: 16px;
}

.snapp-info-block-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--pub-text);
}

.snapp-info-hours-toggle {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 0;
    border: none;
    background: none;
    text-align: inherit;
    font-family: inherit;
    cursor: pointer;
}

.snapp-info-hours-toggle.is-open .snapp-info-chevron {
    transform: rotate(180deg);
}

.snapp-info-row-main {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
    flex: 1;
}

.snapp-info-row-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    color: #9ca3af;
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.snapp-info-row-body {
    min-width: 0;
    flex: 1;
}

.snapp-info-row-label {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--pub-text);
    margin-bottom: 4px;
}

.snapp-info-open-status {
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.snapp-info-open-status.is-open {
    color: #16a34a;
}

.snapp-info-open-status.is-closed {
    color: #dc2626;
}

.snapp-info-row-value {
    font-size: 0.82rem;
    line-height: 1.7;
    color: var(--pub-text-muted);
}

.snapp-info-row-note {
    display: block;
    margin-top: 2px;
    font-size: 0.78rem;
}

.snapp-info-chevron {
    color: #9ca3af;
    font-size: 0.85rem;
    transition: transform 0.2s;
    margin-top: 4px;
}

.snapp-info-hours-panel {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--pub-border);
}

.snapp-info-hours-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.snapp-info-hours-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.84rem;
}

.snapp-info-hours-list li span {
    color: var(--pub-text-muted);
}

.snapp-info-hours-list li strong {
    font-weight: 600;
    color: var(--pub-text);
}

.snapp-info-address-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.snapp-info-address-head .snapp-info-block-title {
    margin-bottom: 0;
    flex-shrink: 0;
    white-space: nowrap;
}

.snapp-info-address-text {
    margin: 0;
    flex: 1;
    min-width: 0;
    font-size: 0.84rem;
    line-height: 1.75;
    color: var(--pub-text);
    padding-top: 1px;
}

.snapp-info-phone-link {
    color: var(--pub-primary);
    text-decoration: none;
    font-weight: 600;
}

.snapp-info-phone-link:hover {
    color: var(--pub-primary-dark);
}

.snapp-info-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    background: #eff6ff;
    color: var(--pub-primary);
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s;
}

.snapp-info-nav-btn:hover {
    background: #dbeafe;
    color: var(--pub-primary);
}

.snapp-info-block-rows {
    padding: 0;
}

.snapp-info-block-rows .snapp-info-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid var(--pub-border);
}

.snapp-info-block-rows .snapp-info-row:last-child {
    border-bottom: none;
}

.snapp-info-about-text {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.9;
    color: var(--pub-text-muted);
}

.restaurant-page .restaurant-content {
    padding-top: 24px;
    padding-bottom: 48px;
}

.restaurant-page .pub-category-tabs-shell {
    position: sticky;
    top: 0;
    z-index: 99;
    display: flex;
    align-items: stretch;
    margin-bottom: 20px;
    background: var(--pub-white);
    border: 1px solid var(--pub-border);
    border-radius: var(--pub-radius-sm);
    box-shadow: var(--pub-shadow);
    overflow: hidden;
}

.restaurant-page .pub-category-tabs-track {
    position: relative;
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: stretch;
    direction: ltr;
}

.restaurant-page .pub-category-tabs-viewport {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.restaurant-page .pub-category-tabs-viewport .pub-category-tabs {
    position: static;
    top: auto;
    margin-bottom: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0 12px;
    scroll-behavior: smooth;
    direction: rtl;
}

.restaurant-page .pub-category-tabs-nav {
    flex: 0 0 40px;
    width: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    padding: 0;
    color: var(--pub-primary);
    background: var(--pub-white);
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
}

.restaurant-page .pub-category-tabs-nav:hover {
    color: var(--pub-primary-dark);
    background: var(--pub-primary-light);
}

.restaurant-page .pub-category-tabs-nav--next {
    border-right: 1px solid var(--pub-border);
}

.restaurant-page .pub-category-tabs-nav--prev {
    border-left: 1px solid var(--pub-border);
}

.restaurant-page .pub-category-tabs-nav[hidden] {
    display: none !important;
}

.restaurant-page .pub-category-tabs-actions {
    display: flex;
    flex: 0 0 auto;
    order: -1;
    align-self: stretch;
}

.restaurant-page .pub-category-tabs-actions .pub-fab-menu-trigger {
    position: static;
    top: auto;
    right: auto;
    width: 52px;
    height: auto;
    min-height: 100%;
    margin: 0;
    border: none;
    border-inline-start: 1px solid var(--pub-border);
    border-radius: 0;
    box-shadow: none;
    transform: none;
    z-index: auto;
}

.restaurant-page .pub-category-tabs-actions .pub-fab-menu-trigger:hover {
    transform: none;
}

body.pub-fab-menu-open .restaurant-page .pub-category-tabs-actions .pub-fab-menu-trigger {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.restaurant-page .pub-category-tabs-menu-btn,
.restaurant-page .pub-category-tabs-search-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    border: none;
    border-inline-start: 1px solid var(--pub-border);
    background: var(--pub-white);
    color: var(--pub-text);
    font-size: 1.05rem;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    align-self: stretch;
}

.restaurant-page .pub-category-tabs-menu-btn:hover,
.restaurant-page .pub-category-tabs-menu-btn[aria-expanded="true"],
.restaurant-page .pub-category-tabs-search-btn:hover,
.restaurant-page .pub-category-tabs-search-btn[aria-expanded="true"] {
    background: var(--pub-primary-light);
    color: var(--pub-primary);
}

.restaurant-page .pub-category-sheet {
    position: fixed;
    inset: 0;
    z-index: 1200;
    pointer-events: none;
}

.restaurant-page .pub-category-sheet.is-open {
    pointer-events: auto;
}

.restaurant-page .pub-category-sheet-backdrop {
    position: absolute;
    inset: 0;
    border: none;
    padding: 0;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    transition: opacity 0.28s ease;
}

.restaurant-page .pub-category-sheet.is-open .pub-category-sheet-backdrop {
    opacity: 1;
}

.restaurant-page .pub-category-sheet-panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: min(72vh, 560px);
    padding: 12px 16px calc(20px + env(safe-area-inset-bottom, 0px));
    background: var(--pub-white);
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -18px 40px rgba(15, 23, 42, 0.18);
    transform: translateY(calc(100% + 12px));
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.restaurant-page .pub-category-sheet-panel::-webkit-scrollbar {
    display: none;
}

.restaurant-page .pub-category-sheet.is-open .pub-category-sheet-panel {
    transform: translateY(0);
}

.restaurant-page .pub-category-sheet-handle {
    width: 44px;
    height: 4px;
    margin: 0 auto 16px;
    border-radius: 999px;
    background: var(--pub-border);
}

.restaurant-page .pub-category-sheet-title {
    margin: 0 0 14px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--pub-text);
    text-align: center;
}

.restaurant-page .pub-category-sheet-search {
    margin-bottom: 12px;
}

.restaurant-page .pub-category-sheet-search-input {
    width: 100%;
    border: 1px solid var(--pub-border);
    border-radius: 14px;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 0.92rem;
    color: var(--pub-text);
    background: var(--pub-bg);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.restaurant-page .pub-category-sheet-search-input:focus {
    outline: none;
    border-color: var(--pub-input-focus-border);
    box-shadow: 0 0 0 3px var(--pub-input-focus-ring);
}

.restaurant-page .pub-category-sheet-empty {
    margin: 0 0 12px;
    padding: 12px;
    border-radius: 12px;
    background: var(--pub-bg);
    color: var(--pub-text-muted);
    font-size: 0.88rem;
    text-align: center;
}

.restaurant-page .pub-category-sheet-item[hidden] {
    display: none !important;
}

.restaurant-page .pub-category-sheet-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.restaurant-page .pub-category-sheet-item {
    width: 100%;
    border: 1px solid var(--pub-border);
    border-radius: 14px;
    background: var(--pub-white);
    padding: 14px 16px;
    text-align: right;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--pub-text);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.restaurant-page .pub-category-sheet-item:hover {
    border-color: var(--pub-primary);
    background: var(--pub-primary-light);
    color: var(--pub-primary-dark);
}

.restaurant-page .pub-category-sheet-item.active {
    border-color: var(--pub-primary);
    background: var(--pub-primary-light);
    color: var(--pub-primary-dark);
}

body.restaurant-page.pub-category-sheet-open {
    overflow: hidden;
}

.restaurant-page .pub-category-tabs {
    top: auto;
}

@media (max-width: 767.98px) {
    .restaurant-page .pub-category-tabs-sentinel {
        height: 1px;
        margin: 0;
        pointer-events: none;
        visibility: hidden;
    }

    .restaurant-page .pub-category-tabs-shell {
        top: 0;
    }

    .restaurant-page .pub-category-tabs-shell.is-stuck {
        z-index: 150;
        width: 100vw;
        max-width: 100vw;
        margin-inline: calc(50% - 50vw);
        margin-bottom: 16px;
        border-radius: 0;
        border-inline: none;
        box-shadow: 0 4px 16px rgba(30, 30, 45, 0.08);
    }
}

.restaurant-page .pub-menu-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.restaurant-page .pub-menu-item {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--pub-border);
    border-radius: 14px;
    box-shadow: none;
    overflow: hidden;
}

.restaurant-page .pub-menu-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 14px;
}

.restaurant-page .pub-menu-main h5 {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.restaurant-page .pub-menu-main .desc {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.55;
    color: var(--pub-text-muted);
}

.restaurant-page .pub-menu-main .pub-snapp-price,
.restaurant-page .pub-menu-main .pub-price-tag {
    margin-top: auto;
    align-self: flex-start;
}

.restaurant-page .pub-snapp-price {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--pub-text);
    line-height: 1.4;
}

.restaurant-page .pub-snapp-price--discount {
    color: var(--pub-danger);
}

.restaurant-page .pub-snapp-price-original-row {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 2px;
    align-self: flex-start;
}

.restaurant-page .pub-snapp-price-original {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--pub-text-muted);
    text-decoration: line-through;
}

.restaurant-page .pub-snapp-discount-percent {
    display: inline-flex;
    align-items: center;
    padding: 1px 6px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--pub-danger);
    background: color-mix(in srgb, var(--pub-danger) 12%, transparent);
}

.restaurant-page .pub-category-discount-banner {
    margin: 0 0 14px;
    padding: 10px 14px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--pub-danger) 10%, #ffffff);
    border: 1px solid color-mix(in srgb, var(--pub-danger) 24%, transparent);
    color: var(--pub-danger);
    font-size: 0.88rem;
    font-weight: 700;
    text-align: center;
}

.restaurant-page .pub-menu-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    width: 104px;
    flex-shrink: 0;
    padding: 10px;
    border-inline-end: none;
    background: transparent;
}

.restaurant-page .pub-menu-side .pub-menu-cart-slot {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: auto;
}

.restaurant-page .pub-menu-side .pub-menu-add-btn {
    width: 100%;
    padding-inline: 8px;
}

.restaurant-page .pub-menu-add-btn {
    background: var(--pub-primary);
    color: #ffffff;
    border-color: var(--pub-primary);
    border-radius: 8px;
    font-weight: 600;
}

.restaurant-page .pub-menu-add-btn:hover {
    background: var(--pub-primary-dark);
    border-color: var(--pub-primary-dark);
    color: #ffffff;
}

.restaurant-page .pub-menu-item:hover {
    transform: none;
    border-color: #d8dbe6;
    box-shadow: 0 2px 10px rgba(30, 30, 45, 0.05);
}

.restaurant-page .pub-menu-item.pub-menu-item--variants {
    display: block;
    padding: 0;
    overflow: hidden;
}

.restaurant-page .pub-menu-item--variants .pub-variant-head,
.restaurant-page .pub-menu-item--variants .pub-variant-row {
    display: flex;
    align-items: stretch;
}

.restaurant-page .pub-menu-item--variants .pub-variant-head .pub-menu-main,
.restaurant-page .pub-menu-item--variants .pub-variant-row .pub-menu-main {
    border-bottom: none;
}

.restaurant-page .pub-menu-item--variants .pub-variant-head,
.restaurant-page .pub-menu-item--variants .pub-variant-row:not(:last-child) {
    position: relative;
}

.restaurant-page .pub-menu-item--variants .pub-variant-head::after,
.restaurant-page .pub-menu-item--variants .pub-variant-row:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0;
    inset-inline-start: 14px;
    inset-inline-end: 14px;
    height: 1px;
    background: var(--pub-border);
}

.restaurant-page .pub-menu-item--variants .pub-variant-row:last-child .pub-menu-main {
    border-bottom: none;
}

.restaurant-page .pub-menu-item--variants .pub-variant-head .pub-menu-main {
    justify-content: flex-start;
    gap: 6px;
}

.restaurant-page .pub-menu-item--variants .pub-variant-head .desc {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.55;
    color: var(--pub-text-muted);
}

.restaurant-page .pub-menu-item--variants .pub-variant-head-side {
    justify-content: flex-start;
    padding-top: 10px;
    padding-bottom: 10px;
    border-inline-end: none;
    background: transparent;
}

.restaurant-page .pub-menu-item--variants .pub-variant-row .pub-menu-main {
    gap: 4px;
}

.restaurant-page .pub-menu-item--variants .pub-variant-option-name {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.5;
}

.restaurant-page .pub-menu-item--variants .pub-variant-row .desc {
    margin: 0;
}

.restaurant-page .pub-menu-item--variants .pub-snapp-price {
    display: block;
    margin-top: auto;
    padding-top: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--pub-text);
    line-height: 1.4;
}

.restaurant-page .pub-menu-item--variants .pub-variant-row .pub-menu-side {
    justify-content: flex-end;
    border-inline-end: none;
    background: transparent;
}

.restaurant-page .pub-menu-add-btn--snapp {
    background: color-mix(in srgb, var(--pub-primary) 10%, #ffffff);
    color: var(--pub-primary);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    white-space: nowrap;
}

.restaurant-page .pub-menu-add-btn--snapp:hover {
    background: color-mix(in srgb, var(--pub-primary) 16%, #ffffff);
    color: var(--pub-primary-dark);
    border: none;
}

.restaurant-page .pub-menu-img,
.restaurant-page .pub-menu-img-placeholder {
    width: 84px;
    min-width: 84px;
    height: 84px;
    min-height: 84px;
    object-fit: cover;
    border-radius: 12px;
    align-self: center;
}

.restaurant-page .pub-menu-img.is-placeholder {
    object-fit: cover;
    padding: 0;
    background: #f8f9fb;
}

.restaurant-page .pub-menu-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 12px 14px;
}

.restaurant-page .pub-menu-info h5 {
    margin: 0 0 6px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.restaurant-page .pub-menu-info .desc {
    margin: 0 0 10px;
    font-size: 0.82rem;
    line-height: 1.55;
    color: var(--pub-text-muted);
}

.restaurant-page .pub-menu-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
}

.restaurant-page .pub-menu-footer .pub-price-tag,
.restaurant-page .pub-menu-footer .btn-pub-outline {
    white-space: nowrap;
    flex-shrink: 0;
}

.restaurant-page .pub-menu-cart-slot {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.restaurant-page .pub-menu-qty-control {
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 3px;
    gap: 2px;
}

.restaurant-page .pub-menu-qty-control .pub-qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: none;
    background: #f3f4f6;
    color: #374151;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    line-height: 1;
    padding: 0;
    transition: background 0.15s;
}

.restaurant-page .pub-menu-qty-control .pub-qty-btn:hover {
    background: #e5e7eb;
    color: #111827;
}

.restaurant-page .pub-menu-qty-control .pub-qty-btn.is-trash {
    font-size: 0.78rem;
}

.restaurant-page .pub-menu-qty-value {
    min-width: 26px;
    padding: 0 4px;
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--pub-text);
}

.restaurant-page .pub-product-modal-footer .pub-menu-cart-slot {
    margin-right: auto;
}

/* Checkout (checkout.php only — scoped via .checkout-page body class) */
.checkout-page .checkout-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 24px calc(88px + env(safe-area-inset-bottom, 0px));
}

.checkout-page .checkout-toolbar,
.my-orders-page .checkout-toolbar,
.addresses-page .checkout-toolbar,
.order-tracking-page .checkout-toolbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    width: 100%;
    background: var(--pub-white);
    border-bottom: 1px solid var(--pub-border);
    box-shadow: 0 4px 16px rgba(30, 30, 45, 0.04);
    margin: 0;
}

.checkout-page .checkout-toolbar-inner,
.my-orders-page .checkout-toolbar-inner,
.addresses-page .checkout-toolbar-inner,
.order-tracking-page .checkout-toolbar-inner {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    direction: ltr;
}

.checkout-page .checkout-toolbar-back,
.my-orders-page .checkout-toolbar-back,
.addresses-page .checkout-toolbar-back,
.order-tracking-page .checkout-toolbar-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    background: transparent;
    color: var(--pub-text);
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 8px 4px;
    flex-shrink: 0;
    cursor: pointer;
    white-space: nowrap;
}

.checkout-page .checkout-toolbar-back:hover,
.my-orders-page .checkout-toolbar-back:hover,
.addresses-page .checkout-toolbar-back:hover,
.order-tracking-page .checkout-toolbar-back:hover {
    color: var(--pub-primary);
}

.checkout-page .checkout-toolbar-back .fa-solid,
.my-orders-page .checkout-toolbar-back .fa-solid,
.addresses-page .checkout-toolbar-back .fa-solid,
.order-tracking-page .checkout-toolbar-back .fa-solid {
    font-size: 0.9rem;
}

a.checkout-toolbar-back {
    text-decoration: none;
}

.checkout-page .checkout-toolbar-menu,
.my-orders-page .checkout-toolbar-menu,
.addresses-page .checkout-toolbar-menu,
.order-tracking-page .checkout-toolbar-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.checkout-page .checkout-toolbar-brand,
.my-orders-page .checkout-toolbar-brand,
.addresses-page .checkout-toolbar-brand,
.order-tracking-page .checkout-toolbar-brand {
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--pub-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: min(46vw, 240px);
    direction: rtl;
    text-align: right;
}

.checkout-page .checkout-toolbar .pub-fab-menu-trigger,
.my-orders-page .checkout-toolbar .pub-fab-menu-trigger,
.addresses-page .checkout-toolbar .pub-fab-menu-trigger,
.order-tracking-page .checkout-toolbar .pub-fab-menu-trigger {
    position: static;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    box-shadow: none;
}

@media (min-width: 992px) {
    .checkout-page .checkout-toolbar .pub-fab-menu-trigger,
    .my-orders-page .checkout-toolbar .pub-fab-menu-trigger,
    .addresses-page .checkout-toolbar .pub-fab-menu-trigger,
.order-tracking-page .checkout-toolbar .pub-fab-menu-trigger {
        position: static;
        top: auto;
        right: auto;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    body.checkout-page.pub-fab-menu-open .checkout-toolbar .pub-fab-menu-trigger,
    body.my-orders-page.pub-fab-menu-open .checkout-toolbar .pub-fab-menu-trigger,
    body.addresses-page.pub-fab-menu-open .checkout-toolbar .pub-fab-menu-trigger,
    body.order-tracking-page.pub-fab-menu-open .checkout-toolbar .pub-fab-menu-trigger {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
}

.checkout-page .pub-fab-menu-panel,
.my-orders-page .pub-fab-menu-panel,
.addresses-page .pub-fab-menu-panel,
.order-tracking-page .pub-fab-menu-panel {
    top: var(--checkout-toolbar-height, 66px);
    height: calc(100dvh - var(--checkout-toolbar-height, 66px));
    max-height: calc(100dvh - var(--checkout-toolbar-height, 66px));
    z-index: 1050;
}

.checkout-page .pub-fab-menu-backdrop,
.my-orders-page .pub-fab-menu-backdrop,
.addresses-page .pub-fab-menu-backdrop,
.order-tracking-page .pub-fab-menu-backdrop {
    top: var(--checkout-toolbar-height, 66px);
    z-index: 1045;
}

.checkout-page .pub-fab-menu-panel-head,
.my-orders-page .pub-fab-menu-panel-head,
.addresses-page .pub-fab-menu-panel-head,
.order-tracking-page .pub-fab-menu-panel-head {
    display: none;
}

.checkout-page .checkout-wrap .row {
    min-width: 0;
}

.checkout-page .checkout-main-col {
    min-width: 0;
}

.checkout-page .checkout-step-stack,
.checkout-page .checkout-steps {
    width: 100%;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 992px) {
    .checkout-page .checkout-step-stack,
    .checkout-page .checkout-steps {
        max-width: 60%;
    }
}

.checkout-page .checkout-step-stack .pub-card-header {
    padding: 10px 14px;
    font-size: 0.92rem;
}

.checkout-page .checkout-step-stack .pub-card-body {
    padding: 12px 14px;
}

.checkout-page .checkout-summary-body {
    max-width: 100%;
    padding: 12px 14px;
    font-size: 0.88rem;
}

.checkout-page .checkout-summary-body h5 {
    font-size: 0.95rem;
    margin-bottom: 10px !important;
}

.checkout-page .checkout-summary-body > * {
    max-width: 100%;
}

.checkout-page .checkout-wrap .pub-page-header {
    margin-bottom: 28px;
}

.checkout-page .checkout-steps {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px auto 24px;
    padding: 0 24px;
    background: transparent;
    border: none;
    border-radius: 0;
}

.checkout-page .checkout-step-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--pub-text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    background: transparent;
    padding: 0;
    font-family: inherit;
    text-align: inherit;
}

.checkout-page .checkout-step-item.is-clickable {
    cursor: pointer;
}

.checkout-page .checkout-step-item.is-clickable:hover {
    color: var(--pub-text);
}

.checkout-page .checkout-step-item:disabled {
    cursor: default;
}

.checkout-page .checkout-step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--pub-bg);
    border: 1px solid var(--pub-border);
    font-size: 0.85rem;
}

.checkout-page .checkout-step-item.active {
    color: var(--pub-primary);
}

.checkout-page .checkout-step-item.active .checkout-step-number,
.checkout-page .checkout-step-item.completed .checkout-step-number {
    background: var(--pub-primary);
    border-color: var(--pub-primary);
    color: #fff;
}

.checkout-page .checkout-step-item.completed {
    color: var(--pub-text);
}

.checkout-page .checkout-step-divider {
    flex: 1;
    height: 2px;
    background: var(--pub-border);
    min-width: 24px;
}

.checkout-page .checkout-step-panel[hidden] {
    display: none !important;
}

.checkout-page .checkout-step-panel:not([hidden]) {
    display: block;
}

.checkout-page .checkout-delivery-summary {
    display: grid;
    gap: 10px;
    font-size: 0.92rem;
    line-height: 1.7;
}

.checkout-page .checkout-delivery-summary span {
    color: var(--pub-text-muted);
}

.checkout-page .checkout-step-stack {
    display: block;
}

.checkout-page .checkout-step-actions {
    display: flex;
    gap: 0;
    flex-wrap: nowrap;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 900;
    margin-top: 0;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    box-sizing: border-box;
}

@media (min-width: 992px) {
    .checkout-page .checkout-wrap {
        padding-bottom: 48px;
    }

    .checkout-page .checkout-step-actions {
        position: static;
        left: auto;
        right: auto;
        bottom: auto;
        transform: none;
        width: auto;
        z-index: auto;
        margin-top: 16px;
        padding: 0;
        background: transparent;
        border-top: none;
        box-shadow: none;
        gap: 12px;
        flex-wrap: wrap;
    }

    .checkout-page .checkout-step-actions .btn-pub-outline,
    .checkout-page .checkout-step-actions .btn-pub-primary {
        flex: 1 1 180px;
        width: auto;
        min-height: 48px;
        padding: 10px 22px;
        border-radius: 14px;
        font-size: 0.92rem;
        font-weight: 700;
        box-shadow: none;
        transform: none;
    }

    .checkout-page .checkout-step-actions .btn-pub-outline {
        border: 1px solid var(--pub-border);
    }

    body.pub-theme-noir.checkout-page .checkout-step-actions .btn-pub-primary,
    body.pub-theme-noir.checkout-page .checkout-step-actions .btn-pub-primary:hover {
        border-radius: 14px;
        box-shadow: 0 8px 20px rgba(249, 115, 22, 0.25);
    }
}

@media (max-width: 991.98px) {
    .checkout-page .checkout-step-actions .btn-pub-outline,
    .checkout-page .checkout-step-actions .btn-pub-primary {
        flex: 1 1 auto;
        width: 100%;
        min-height: auto;
        padding: 14px 20px;
        padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
        border-radius: 0;
        border: none;
        font-size: 0.92rem;
        font-weight: 600;
        box-shadow: 0 -2px 10px color-mix(in srgb, var(--pub-primary) 12%, transparent);
        transform: none;
    }

    .checkout-page .checkout-step-actions .btn-pub-primary:hover,
    .checkout-page .checkout-step-actions .btn-pub-primary:focus,
    .checkout-page .checkout-step-actions .btn-pub-primary:active {
        transform: none;
    }

    body.pub-theme-noir.checkout-page .checkout-step-actions .btn-pub-primary,
    body.pub-theme-noir.checkout-page .checkout-step-actions .btn-pub-primary:hover {
        border-radius: 0;
        box-shadow: 0 -2px 10px color-mix(in srgb, var(--pub-primary) 12%, transparent);
    }
}

.checkout-page .checkout-cart-card .pub-card-body {
    padding: 0 !important;
}

/* Card-to-card payment panel */
.pub-payment-panel {
    background: transparent;
    border-radius: 0;
    padding: 0;
}

.pub-payment-unified-box {
    background: #ffffff;
    border: 1px solid #dfe3ea;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(30, 30, 45, 0.07);
    margin: 0 0 12px;
    width: 100%;
    max-width: none;
    overflow: hidden;
}

.pub-payment-unified-header {
    background: #f3f4f6;
    border-bottom: 1px solid #e5e7eb;
    padding: 14px 16px;
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--pub-text);
    line-height: 1.75;
    text-align: center;
}

.pub-payment-unified-body {
    padding: 0;
}

.checkout-page #checkoutPaymentInfo .pub-payment-unified-box {
    margin-bottom: 0;
}

.pub-payment-detail-item {
    padding: 12px 16px;
    border-bottom: 1px solid #eef0f3;
}

.pub-payment-detail-item:last-child {
    border-bottom: none;
}

.pub-payment-detail-item-amount {
    text-align: center;
    padding: 16px;
    background: linear-gradient(180deg, #f9fafb 0%, #ffffff 100%);
    border-bottom: 1px solid #eef0f3;
}

.pub-payment-detail-label {
    display: block;
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--pub-text-muted);
    margin-bottom: 6px;
}

.pub-payment-detail-value {
    display: block;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--pub-text);
    line-height: 1.45;
}

.pub-payment-detail-value-amount {
    font-size: 1.4rem;
    letter-spacing: -0.02em;
}

.pub-bank-card-carousel-wrap {
    padding: 8px 0 2px;
}

.pub-bank-card-carousel-wrap.is-multi {
    position: relative;
    padding: 12px 44px 20px;
    overflow: visible;
}

.pub-bank-card-carousel-wrap.is-single {
    display: flex;
    justify-content: center;
    padding: 8px 16px 20px;
}

.pub-bank-card-carousel-wrap.is-single .pub-bank-card-carousel {
    width: auto;
}

.pub-bank-card-carousel-wrap.is-single .item {
    display: flex;
    justify-content: center;
}

.pub-bank-card-carousel .item {
    display: flex;
    justify-content: center;
}

.pub-bank-card-carousel.owl-carousel {
    position: relative;
    direction: ltr;
}

.pub-bank-card-carousel.owl-carousel .owl-stage-outer {
    overflow: hidden;
}

.pub-bank-card-carousel.owl-carousel .owl-item {
    z-index: 1;
    direction: rtl;
}

.pub-bank-card-carousel.owl-carousel .owl-item.center {
    z-index: 3;
}

.pub-bank-card-carousel.owl-carousel .owl-item .pub-bank-card {
    transition: transform 0.35s ease, opacity 0.35s ease, box-shadow 0.35s ease, filter 0.35s ease;
    transform: scale(0.9);
    opacity: 0.5;
    filter: saturate(0.82) brightness(0.94);
    box-shadow: none;
}

.pub-bank-card-carousel.owl-carousel .owl-item.center .pub-bank-card {
    transform: scale(1);
    opacity: 1;
    filter: none;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1);
}

.pub-bank-card-carousel.owl-carousel .owl-nav {
    position: absolute;
    inset: 0;
    margin: 0;
    pointer-events: none;
}

.pub-bank-card-carousel.owl-carousel .owl-nav button.owl-prev,
.pub-bank-card-carousel.owl-carousel .owl-nav button.owl-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--pub-white) !important;
    border: 1px solid var(--pub-border) !important;
    color: var(--pub-text) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    pointer-events: auto;
    z-index: 5;
}

.pub-bank-card-carousel.owl-carousel .owl-nav button.owl-prev {
    right: -38px;
    left: auto;
}

.pub-bank-card-carousel.owl-carousel .owl-nav button.owl-next {
    left: -38px;
    right: auto;
}

.pub-bank-card-carousel.owl-carousel .owl-nav button.owl-prev:hover,
.pub-bank-card-carousel.owl-carousel .owl-nav button.owl-next:hover {
    background: var(--pub-primary-light) !important;
    border-color: var(--pub-primary) !important;
    color: var(--pub-primary-dark) !important;
}

.pub-bank-card-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.pub-bank-card-carousel.owl-carousel .owl-dots {
    display: none !important;
}

.pub-bank-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 1.586;
    width: clamp(210px, 68vw, 320px);
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

.pub-bank-card-bg {
    position: absolute;
    inset: 0;
}

.pub-bank-card-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, 0.08) 50%, transparent 58%);
    opacity: 0.55;
}

.pub-bank-card--theme .pub-bank-card-bg {
    background:
        radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.12) 0%, transparent 38%),
        linear-gradient(
            90deg,
            var(--pub-primary-dark) 0%,
            var(--pub-primary) 48%,
            color-mix(in srgb, var(--pub-primary) 72%, #000) 100%
        );
}

.pub-bank-card--palette-0 .pub-bank-card-bg {
    background:
        radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.1) 0%, transparent 38%),
        linear-gradient(90deg, #124a52 0%, #186268 42%, #1f7a82 100%);
}

.pub-bank-card--palette-1 .pub-bank-card-bg {
    background:
        radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.1) 0%, transparent 38%),
        linear-gradient(90deg, #312e81 0%, #4338ca 42%, #6366f1 100%);
}

.pub-bank-card--palette-2 .pub-bank-card-bg {
    background:
        radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.1) 0%, transparent 38%),
        linear-gradient(90deg, #6b1d3a 0%, #9f1239 42%, #be123c 100%);
}

.pub-bank-card--palette-3 .pub-bank-card-bg {
    background:
        radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.1) 0%, transparent 38%),
        linear-gradient(90deg, #1e3a5f 0%, #1d4ed8 42%, #2563eb 100%);
}

.pub-bank-card--palette-4 .pub-bank-card-bg {
    background:
        radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.1) 0%, transparent 38%),
        linear-gradient(90deg, #064e3b 0%, #047857 42%, #059669 100%);
}

.pub-bank-card--palette-5 .pub-bank-card-bg {
    background:
        radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.1) 0%, transparent 38%),
        linear-gradient(90deg, #4c1d95 0%, #6d28d9 42%, #7c3aed 100%);
}

.pub-bank-card-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 18px 20px 16px;
    color: #ffffff;
}

.pub-bank-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.pub-bank-card-contactless {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    opacity: 0.95;
}

.pub-bank-card-contactless-icon {
    font-size: 1.35rem;
    transform: rotate(90deg) scaleX(-1);
    line-height: 1;
}

.pub-bank-card-bank {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
    text-align: right;
    max-width: 58%;
    line-height: 1.35;
}

.pub-bank-card-middle {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    padding: 8px 0 4px;
}

.pub-bank-card-chip {
    position: absolute;
    top: 0;
    right: 0;
    width: 38px;
    height: 28px;
    border-radius: 6px;
    background: linear-gradient(135deg, #f3e7c7 0%, #d4af37 45%, #b8860b 100%);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.pub-bank-card-chip::before {
    content: '';
    position: absolute;
    inset: 8px 9px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 3px;
}

.pub-bank-card-number {
    font-size: clamp(0.88rem, 2.4vw, 1.08rem);
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.35;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
    white-space: nowrap;
    text-align: center;
    padding: 0 44px;
}

.pub-bank-card-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.pub-bank-card-bottom-spacer {
    flex-shrink: 0;
    width: 1px;
}

.pub-bank-card-copy {
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-radius: 999px;
    padding: 5px 14px;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
    font-family: inherit;
}

.pub-bank-card-copy:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.75);
    color: #ffffff;
}

.pub-bank-card-copy.is-copied {
    background: rgba(255, 255, 255, 0.92);
    border-color: transparent;
}

.pub-bank-card--theme .pub-bank-card-copy.is-copied {
    color: var(--pub-primary-dark);
}

.pub-bank-card--palette-0 .pub-bank-card-copy.is-copied {
    color: #124a52;
}

.pub-bank-card--palette-1 .pub-bank-card-copy.is-copied {
    color: #312e81;
}

.pub-bank-card--palette-2 .pub-bank-card-copy.is-copied {
    color: #6b1d3a;
}

.pub-bank-card--palette-3 .pub-bank-card-copy.is-copied {
    color: #1e3a5f;
}

.pub-bank-card--palette-4 .pub-bank-card-copy.is-copied {
    color: #064e3b;
}

.pub-bank-card--palette-5 .pub-bank-card-copy.is-copied {
    color: #4c1d95;
}

.pub-bank-card-holder-name {
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.4;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.22);
    text-align: right;
    max-width: 62%;
}

.pub-payment-account-block {
    margin: 12px 14px;
    background: #f8f9fb;
    border: 1px solid #e8eaef;
    border-radius: 12px;
    overflow: hidden;
}

.pub-payment-account-separator {
    height: 1px;
    margin: 4px 14px;
    background: #eef0f3;
}

.pub-payment-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
    border-bottom: 1px solid #e8eaef;
}

.pub-payment-field:last-of-type {
    border-bottom: none;
}

.pub-payment-field-label {
    flex-shrink: 0;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--pub-text-muted);
}

.pub-payment-field-value {
    flex: 1;
    min-width: 0;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--pub-text);
    text-align: left;
    line-height: 1.5;
}

.pub-payment-card-box {
    padding: 12px 14px 14px;
    background: #ffffff;
    border-top: 1px solid #e8eaef;
}

.pub-payment-card-box .pub-payment-field-label {
    display: block;
    margin-bottom: 8px;
}

.pub-payment-card-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 12px;
    background: #1e1e2d;
    border-radius: 10px;
}

.pub-payment-card-number {
    flex: 1;
    min-width: 0;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: #ffffff;
    text-align: left;
    word-break: break-all;
    line-height: 1.45;
}

.pub-payment-detail-item-receipt {
    padding: 14px 16px 16px;
    border-top: 1px solid #eef0f3;
    background: #fafbfc;
}

.pub-payment-detail-item-receipt .pub-payment-detail-label {
    margin-bottom: 8px;
}

.pub-payment-detail-item-receipt .pub-receipt-upload {
    margin-top: 0;
}

.pub-receipt-picker {
    border: 2px dashed #cfd3dc;
    border-radius: 12px;
    padding: 18px 14px;
    min-height: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    background: linear-gradient(180deg, #fafbfc 0%, #ffffff 100%);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.pub-receipt-picker:hover {
    border-color: var(--pub-primary);
    background: color-mix(in srgb, var(--pub-primary-light) 40%, #ffffff);
}

.pub-receipt-picker-icon {
    font-size: 1.2rem;
    color: var(--pub-text-muted);
    line-height: 1;
}

.pub-receipt-picker-icon i[class*="fa-"] {
    display: block;
}

.pub-payment-detail-item-receipt .pub-receipt-pick-btn {
    width: auto;
    min-width: 150px;
    font-size: 0.82rem;
    padding: 8px 16px;
    border-style: solid;
    pointer-events: none;
}

.pub-payment-order-hint {
    display: block;
    margin-top: 4px;
    font-size: 0.72rem;
    color: var(--pub-text-muted);
    font-weight: 500;
}


.pub-payment-amount-box {
    background: #ffffff;
    border: 2px solid #d5d9e2;
    border-radius: 16px;
    padding: 22px 18px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 6px 18px rgba(30, 30, 45, 0.08);
}

.pub-payment-amount-label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--pub-text-muted);
    margin-bottom: 8px;
}

.pub-payment-amount-value {
    display: block;
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--pub-text);
    line-height: 1.35;
    letter-spacing: -0.02em;
}

.pub-payment-instruction {
    text-align: center;
    font-size: 0.85rem;
    color: var(--pub-text-muted);
    margin: 0 0 10px;
    line-height: 1.6;
}

.pub-bank-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.pub-bank-tab {
    flex: 1;
    border: none;
    border-radius: 10px;
    padding: 11px 10px;
    font-size: 0.82rem;
    font-weight: 700;
    background: #e5e7eb;
    color: var(--pub-text);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.pub-bank-tab.active {
    background: #1e293b;
    color: #fff;
}

.pub-bank-tab-static {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: default;
    pointer-events: none;
}

.pub-bank-tabs-single {
    justify-content: center;
}

.pub-bank-tabs-single .pub-bank-tab-static {
    flex: 1;
    max-width: 100%;
}

.pub-bank-accounts-list {
    display: grid;
    gap: 12px;
    margin-bottom: 14px;
}

.pub-bank-account-card {
    background: #fff;
    border: 1px solid var(--pub-border);
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 0;
    box-shadow: 0 6px 20px rgba(30, 30, 45, 0.06);
}

.pub-bank-info-list {
    display: grid;
    gap: 12px;
    margin-bottom: 14px;
}

.pub-bank-info-item {
    background: #f8f9fb;
    border: 1px solid #e8ebf0;
    border-radius: 12px;
    padding: 12px 14px;
    text-align: right;
}

.pub-bank-info-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--pub-text-muted);
    margin-bottom: 6px;
}

.pub-bank-info-value {
    display: block;
    font-size: 1rem;
    font-weight: 800;
    color: var(--pub-text);
    line-height: 1.5;
}

.pub-bank-account-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-weight: 700;
    font-size: 0.95rem;
}

.pub-bank-account-bank {
    color: var(--pub-text-muted);
    font-size: 0.88rem;
}

.pub-copy-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid #eef0f3;
}

.pub-copy-row:first-of-type {
    border-top: none;
    padding-top: 0;
}

.pub-copy-row-sheba {
    background: #ecfdf3;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    padding: 12px 14px;
    margin-top: 4px;
    border-top: 1px solid #bbf7d0;
}

.pub-copy-value {
    flex: 1;
    text-align: left;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    word-break: break-all;
}

.pub-copy-row-card {
    background: #ffffff;
    border: 2px solid #d5d9e2;
    border-radius: 14px;
    padding: 14px 16px;
    margin-top: 6px;
    border-top: 2px solid #d5d9e2;
    box-shadow: 0 6px 16px rgba(30, 30, 45, 0.07);
}

.pub-card-number-wrap {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.pub-card-number-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--pub-text-muted);
    margin-bottom: 6px;
}

.pub-copy-value-card {
    display: block;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--pub-text);
    letter-spacing: 0.08em;
    line-height: 1.5;
    word-break: break-all;
}

.pub-copy-btn-card {
    align-self: center;
    border-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    font-weight: 700;
    padding: 5px 10px;
    font-size: 0.75rem;
}

.pub-copy-btn-card:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.35);
    color: #ffffff;
}

.pub-copy-btn {
    flex-shrink: 0;
    border: 1px solid #d1d5db;
    background: #fff;
    color: var(--pub-text);
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.pub-copy-btn:hover {
    background: #f9fafb;
}

.pub-copy-btn.is-copied,
.pub-copy-row-sheba .pub-copy-btn.is-copied {
    background: #16a34a;
    border-color: #16a34a;
    color: #fff;
}

.pub-copy-btn-outline {
    background: transparent;
}

.pub-payment-order-note {
    font-size: 0.88rem;
    color: var(--pub-text-muted);
    background: #fff;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 14px;
    line-height: 1.7;
}

.pub-receipt-upload {
    display: grid;
    gap: 12px;
}

.pub-receipt-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.pub-receipt-pick-btn {
    width: 100%;
}

.pub-receipt-preview-wrap {
    min-height: 110px;
}

.pub-receipt-preview-card {
    background: #f9fafb;
    border: 2px dashed #cfd3dc;
    border-radius: 12px;
    padding: 12px;
    min-height: 110px;
    display: grid;
    gap: 12px;
    align-content: start;
}

.pub-receipt-preview-img {
    width: 100%;
    max-height: 220px;
    min-height: 90px;
    object-fit: contain;
    border-radius: 10px;
    background: #fff;
}

.pub-receipt-remove-btn {
    border: 1px solid #fecaca;
    background: #fff;
    color: #dc2626;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
}

.pub-receipt-remove-btn:hover {
    background: #fef2f2;
}

.checkout-page .pub-card.checkout-payment-card .pub-card-body,
.pub-payment-page-card .pub-card-body {
    overflow: hidden;
}

.checkout-page .checkout-payment-card {
    border: none;
    box-shadow: none;
    background: transparent;
}

.checkout-page .checkout-payment-card .pub-card-body {
    padding: 0 !important;
}

.checkout-page .pub-cart-list {
    padding: 0 !important;
}

.checkout-page .pub-cart-item {
    padding: 10px 12px;
    border-bottom: 1px solid var(--pub-border);
}

.checkout-page .pub-cart-item:last-child { border-bottom: none; }

.checkout-page .pub-cart-row {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto auto auto;
    gap: 10px;
    align-items: center;
}

.checkout-page .pub-cart-item-thumb {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
    background: #f3f4f6;
    border: 1px solid var(--pub-border);
}

.checkout-page .pub-cart-item-thumb.is-placeholder {
    object-fit: contain;
    padding: 6px;
    background: #f8f9fb;
}

.checkout-page .pub-cart-row-info {
    min-width: 0;
}

.checkout-page .pub-cart-row-info h6 {
    margin: 0 0 2px;
    font-size: 0.88rem;
    font-weight: 700;
}

.checkout-page .pub-cart-row-info small {
    color: var(--pub-text-muted);
    font-size: 0.76rem;
}

.checkout-page .pub-cart-row-total {
    min-width: 64px;
    text-align: left;
    white-space: nowrap;
    font-size: 0.88rem;
}

.checkout-page .pub-qty-control {
    gap: 4px;
}

.checkout-page .pub-qty-btn {
    width: 26px;
    height: 26px;
    font-size: 0.85rem;
}

.checkout-page .pub-summary-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, max-content);
    gap: 6px 10px;
    align-items: start;
    width: 100%;
    max-width: 100%;
    font-size: 0.88rem;
}

.checkout-page .pub-summary-row span,
.checkout-page .pub-summary-row strong {
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.45;
}

.checkout-page .pub-summary-row strong {
    justify-self: end;
    text-align: left;
    font-size: 0.9rem;
}

.checkout-page .pub-summary-total {
    padding-top: 10px;
    margin-top: 2px;
    border-top: 1px solid var(--pub-border);
}

.checkout-page .pub-summary-delivery {
    padding-top: 10px;
    margin-top: 2px;
    border-top: 1px solid var(--pub-border);
}

.checkout-page .pub-summary-total strong {
    font-size: 1rem;
    color: var(--pub-primary);
    font-weight: 800;
}

.checkout-page .checkout-discount-box {
    background: var(--pub-bg);
    border: 1px solid var(--pub-border);
    border-radius: 12px;
    padding: 10px 12px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    font-size: 0.85rem;
}

.checkout-page .checkout-discount-box .form-label {
    color: var(--pub-text);
    font-weight: 600;
    font-size: 0.82rem;
    margin-bottom: 6px;
}

.checkout-page .checkout-discount-field {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border-color: var(--pub-border);
    background: var(--pub-white);
    font-size: 0.85rem;
    padding: 8px 12px;
}

.checkout-page .checkout-discount-field:focus {
    border-color: var(--pub-input-focus-border);
    box-shadow: 0 0 0 3px var(--pub-input-focus-ring);
    outline: 0;
}

.checkout-page .checkout-discount-box .btn-outline-primary {
    border-color: #d1d5db;
    color: var(--pub-text);
    background: var(--pub-white);
    font-size: 0.85rem;
    padding: 8px 12px;
}

.checkout-page .checkout-discount-box .btn-outline-primary:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
    color: var(--pub-text);
}

.checkout-page .checkout-discount-box .btn-outline-primary:focus,
.checkout-page .checkout-discount-box .btn-outline-primary:active {
    background: #f3f4f6;
    border-color: #9ca3af;
    color: var(--pub-text);
    box-shadow: 0 0 0 3px var(--pub-input-focus-ring);
}

.checkout-page .checkout-discount-message {
    color: var(--pub-text-muted);
    word-break: break-word;
    font-size: 0.8rem;
}

.checkout-page .checkout-discount-message.text-success {
    color: #15803d !important;
    font-weight: 600;
}

.checkout-page .checkout-discount-message.text-danger {
    color: #b91c1c !important;
}

.checkout-page .checkout-discount-remove {
    color: var(--pub-danger) !important;
    text-decoration: none;
    font-size: 0.8rem;
}

.checkout-page .checkout-discount-remove:hover {
    color: #b91c1c !important;
}

.checkout-page .checkout-total-box {
    background: var(--pub-bg);
    border: 1px solid var(--pub-border);
    color: var(--pub-text);
    padding: 12px;
    border-radius: 12px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    font-size: 0.88rem;
}

.checkout-page .checkout-total-box .pub-summary-discount {
    background: var(--pub-success-bg);
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    padding: 8px 10px;
    margin-bottom: 8px !important;
    color: #15803d;
}

.checkout-page .checkout-total-box .pub-summary-discount .pub-summary-discount-label,
.checkout-page .checkout-total-box .pub-summary-discount strong,
.checkout-page .checkout-total-box .pub-summary-discount #discountPrice {
    color: #15803d !important;
    font-weight: 700;
}

.checkout-page .pub-qty-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkout-page .pub-qty-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--pub-border);
    background: var(--pub-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.2s;
}

.checkout-page .pub-qty-btn:hover {
    background: var(--pub-primary-light);
    border-color: var(--pub-primary);
    color: var(--pub-primary);
}

.pub-total-box {
    background: linear-gradient(135deg, var(--pub-primary) 0%, #8b5cf6 100%);
    color: white;
    padding: 20px 24px;
    border-radius: var(--pub-radius-sm);
}

/* Payment card number */
.pub-card-number {
    background: linear-gradient(135deg, #1e1e2d 0%, #374151 100%);
    color: white;
    padding: 28px;
    border-radius: var(--pub-radius-sm);
    font-size: 1.4rem;
    letter-spacing: 3px;
    text-align: center;
    font-family: 'Courier New', monospace;
}

/* Order tracking */
.pub-tracking-wrap {
    min-height: 100vh;
    padding: 40px 20px;
}

.pub-tracking-card {
    background: var(--pub-white);
    border-radius: var(--pub-radius);
    padding: 32px;
    box-shadow: var(--pub-shadow-lg);
    max-width: 800px;
    margin: 0 auto;
}

.pub-status-step {
    padding: 16px 20px;
    margin-bottom: 10px;
    border-radius: var(--pub-radius-sm);
    background: var(--pub-bg);
    transition: all 0.2s;
}

.pub-status-step.active {
    background: var(--pub-primary);
    color: white;
}

.pub-status-step.completed {
    background: var(--pub-success-bg);
    border-right: 4px solid var(--pub-success);
}

.pub-timeline {
    position: relative;
    padding-right: 30px;
}

.pub-timeline::before {
    content: '';
    position: absolute;
    right: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--pub-border);
}

.pub-timeline-item {
    position: relative;
    margin-bottom: 20px;
}

.pub-timeline-item::before {
    content: '';
    position: absolute;
    right: -25px;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--pub-primary);
}

/* Status pills (reuse from panel) */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
}

.status-pill.pending { background: var(--pub-warning-bg); color: #b45309; }
.status-pill.payment_uploaded { background: #e0f2fe; color: #0369a1; }
.status-pill.confirmed { background: var(--pub-primary-light); color: var(--pub-primary); }
.status-pill.preparing { background: #f3f4f6; color: #4b5563; }
.status-pill.ready { background: var(--pub-success-bg); color: #15803d; }
.status-pill.delivering { background: #ede9fe; color: #7c3aed; }
.status-pill.completed { background: var(--pub-success-bg); color: #15803d; }
.status-pill.cancelled { background: var(--pub-danger-bg); color: #b91c1c; }

/* Forms */
.pub-body {
    --bs-border-color-focus: var(--pub-input-focus-border);
    --bs-focus-ring-color: var(--pub-input-focus-ring);
}

.pub-body .form-control,
.pub-body .form-select {
    border-radius: 12px;
    border: 1px solid var(--pub-border);
    padding: 10px 16px;
    font-family: inherit;
}

.pub-body .form-control:focus,
.pub-body .form-select:focus {
    border-color: var(--pub-input-focus-border);
    box-shadow: 0 0 0 3px var(--pub-input-focus-ring);
    outline: 0;
}

.pub-body .form-check-input:focus {
    border-color: var(--pub-input-focus-border);
    box-shadow: 0 0 0 3px var(--pub-input-focus-ring);
    outline: 0;
}

.pub-body .form-label {
    font-weight: 600;
    font-size: 0.875rem;
}

.pub-body .btn-primary {
    background: var(--pub-primary);
    border-color: var(--pub-primary);
    border-radius: 50px;
    font-weight: 600;
}

.pub-body .btn-primary:hover {
    background: var(--pub-primary-dark);
    border-color: var(--pub-primary-dark);
}

/* Snapp-style menu */
.snapp-header {
    background: var(--pub-white);
    padding: 14px 20px;
    box-shadow: var(--pub-shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.snapp-restaurant-info {
    position: relative;
    text-align: center;
    padding: 24px 20px;
    background: var(--pub-white);
    margin-bottom: 8px;
}

.snapp-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 12px;
    border: 3px solid var(--pub-primary-light);
}

.snapp-tabs {
    background: var(--pub-white);
    border-bottom: 1px solid var(--pub-border);
    position: sticky;
    top: 56px;
    z-index: 99;
    padding: 0 16px;
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 0;
}

.snapp-tabs::-webkit-scrollbar { display: none; }

.snapp-tab {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    padding: 14px 18px;
    color: var(--pub-text-muted);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.snapp-tab.active {
    color: var(--pub-primary);
    border-bottom-color: var(--pub-primary);
    font-weight: 700;
}

.snapp-menu-wrap {
    padding: 16px;
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 100px;
}

.snapp-item {
    background: var(--pub-white);
    border-radius: var(--pub-radius-sm);
    padding: 18px;
    margin-bottom: 12px;
    box-shadow: var(--pub-shadow);
    display: flex;
    gap: 14px;
}

.snapp-item-img {
    width: 90px;
    height: 90px;
    border-radius: 14px;
    object-fit: cover;
    flex-shrink: 0;
}

.snapp-item-img-ph {
    width: 90px;
    height: 90px;
    border-radius: 14px;
    background: var(--pub-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.8rem;
}

.snapp-item-content { flex: 1; min-width: 0; }

.snapp-item-title {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 6px;
}

.snapp-item-desc {
    color: var(--pub-text-muted);
    font-size: 0.8rem;
    line-height: 1.5;
    margin-bottom: 12px;
}

.snapp-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.snapp-add-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--pub-primary);
    color: white;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.snapp-add-btn:hover { transform: scale(1.1); }

/* Footer */
.pub-footer {
    text-align: center;
    padding: 32px 20px;
    color: var(--pub-text-muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--pub-border);
    margin-top: 48px;
}

/* Empty state */
.pub-empty {
    text-align: center;
    padding: 48px 24px;
    background: var(--pub-white);
    border-radius: var(--pub-radius);
    box-shadow: var(--pub-shadow);
}

.pub-empty-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    color: var(--pub-text-muted);
}

.pub-success-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    color: var(--pub-success);
}

.icon-inline {
    margin-left: 8px;
}

.icon-inline-sm {
    margin-left: 6px;
    font-size: 0.9em;
}

.placeholder-icon {
    font-size: 2rem;
    color: var(--pub-text-muted);
}

.placeholder-icon-sm {
    font-size: 1.25rem;
    color: var(--pub-text-muted);
}

.placeholder-icon-lg {
    font-size: 2.5rem;
    color: var(--pub-text-muted);
}

.card-title-with-icon {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pub-nav-user {
    font-size: 0.82rem;
    color: var(--pub-text-muted);
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.auth-page {
    background: var(--pub-bg);
}

.auth-login-page {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: var(--pub-bg);
}

.auth-login-card {
    background: var(--pub-white);
    border-radius: var(--pub-radius);
    padding: 48px 40px;
    box-shadow: var(--pub-shadow);
    width: 100%;
    max-width: 440px;
    text-align: center;
}

.auth-login-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 28px;
}

.auth-login-logo .pub-brand-icon,
.auth-login-logo .pub-brand-logo {
    width: 56px;
    height: 56px;
    font-size: 1.35rem;
    border-radius: 14px;
}

.auth-login-title {
    font-size: 1.45rem;
    font-weight: 700;
    margin: 0 0 10px;
    color: var(--pub-text);
}

.auth-login-subtitle {
    font-size: 0.92rem;
    color: var(--pub-text-muted);
    line-height: 1.8;
    margin: 0 0 28px;
}

.auth-login-phone {
    color: var(--pub-text);
    font-weight: 600;
    direction: ltr;
    unicode-bidi: embed;
}

.auth-login-error {
    background: var(--pub-danger-bg);
    color: var(--pub-danger);
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 0.88rem;
    margin-bottom: 16px;
}

.auth-login-form {
    margin-bottom: 0;
}

.auth-login-hint {
    margin: 12px 0 0;
    font-size: 0.85rem;
    color: var(--pub-text-muted);
    line-height: 1.7;
}

.auth-inline-field {
    display: flex;
    align-items: stretch;
    border: 1px solid #d8dbe7;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-inline-field:focus-within {
    border-color: var(--pub-input-focus-border);
    box-shadow: 0 0 0 3px var(--pub-input-focus-ring);
}

.auth-inline-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    padding: 15px 16px;
    font-size: 0.95rem;
    color: var(--pub-text);
    min-width: 0;
}

.auth-inline-input::placeholder {
    color: #b0b3c7;
}

.auth-inline-submit {
    width: 54px;
    border: none;
    background: var(--pub-primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.auth-inline-submit:hover {
    background: var(--pub-primary-dark);
}

.auth-login-submit {
    width: 100%;
    margin-top: 16px;
    border: none;
    border-radius: 50px;
    padding: 13px 20px;
    background: var(--pub-primary);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.auth-login-submit:hover {
    background: var(--pub-primary-dark);
}

.auth-login-footer {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 18px;
}

.auth-login-link {
    color: var(--pub-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.auth-login-link:hover {
    color: var(--pub-primary-dark);
}

.auth-login-card-footer {
    padding: 0;
    box-shadow: none;
    background: transparent;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 440px;
    width: 100%;
}

.auth-register-card {
    max-width: 560px;
    text-align: right;
}

.auth-register-card .auth-login-logo,
.auth-register-card .auth-login-title,
.auth-register-card .auth-login-subtitle,
.auth-register-card .auth-login-error {
    text-align: center;
}

.auth-register-card .auth-login-form {
    text-align: right;
}

.auth-register-card .form-label {
    display: block;
    text-align: right;
}

.auth-register-card .form-control {
    text-align: right;
}

.auth-register-card .slug-preview {
    direction: ltr;
    text-align: left;
}

.auth-register-card .slug-field {
    background: var(--pub-bg);
    border: 1px solid var(--pub-border);
    border-radius: 12px;
    padding: 12px 14px;
}

.auth-register-card .city-search-field {
    text-align: right;
}

.auth-page .auth-login-page + .auth-login-page {
    min-height: auto;
    padding-top: 0;
    margin-top: -8px;
}

@media (max-width: 576px) {
    .auth-page .auth-login-page {
        min-height: auto;
        align-items: flex-start;
        padding: 12px 10px;
    }

    .auth-page .auth-login-page:has(> .auth-login-card:not(.auth-register-card):not(.auth-login-card-footer)) {
        min-height: 100vh;
        min-height: 100dvh;
        align-items: center;
        justify-content: center;
        padding: 24px 16px;
    }

    .auth-page .auth-login-card {
        padding: 22px 14px;
        border-radius: 14px;
    }

    .auth-page .auth-register-card {
        max-width: none;
    }

    .auth-page .auth-login-logo {
        margin-bottom: 14px;
    }

    .auth-page .auth-login-logo .pub-brand-icon,
    .auth-page .auth-login-logo .pub-brand-logo {
        width: 48px;
        height: 48px;
        font-size: 1.15rem;
    }

    .auth-page .auth-login-title {
        font-size: 1.22rem;
        margin-bottom: 6px;
    }

    .auth-page .auth-login-subtitle {
        margin-bottom: 16px;
        font-size: 0.88rem;
        line-height: 1.65;
    }

    .auth-page .auth-register-card .slug-field {
        padding: 10px 12px;
    }

    .auth-page .auth-register-card .mb-3 {
        margin-bottom: 0.75rem;
    }

    .auth-page .auth-login-page + .auth-login-page {
        padding: 0 10px 10px;
        margin-top: -2px;
    }
}

.pub-delivery-type-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.pub-delivery-type-option {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border: 1px solid var(--pub-border);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    font-weight: 600;
}

.pub-delivery-type-option:has(input:checked) {
    border-color: #9ca3af;
    background: #f3f4f6;
    color: var(--pub-text);
}

.pub-delivery-type-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.checkout-page .checkout-address-select {
    width: 100%;
}

.pub-address-list {
    display: grid;
    gap: 10px;
}

.pub-address-select-item,
.pub-address-item {
    display: block;
    border: 1px solid var(--pub-border);
    border-radius: 12px;
    padding: 12px 14px;
    background: #fff;
}

.pub-address-select-item {
    cursor: pointer;
}

.pub-address-select-item:has(input:checked) {
    border-color: var(--pub-primary);
    background: var(--pub-primary-light);
}

.pub-address-select-item input {
    margin-left: 8px;
}

.pub-address-select-content {
    display: grid;
    gap: 4px;
}

.pub-address-select-content small,
.pub-address-item-text {
    color: var(--pub-text-muted);
    line-height: 1.7;
    margin: 0;
}

.pub-address-select-contact,
.pub-address-item-contact {
    color: var(--pub-text);
    font-size: 0.88rem;
    line-height: 1.6;
    margin: 0;
}

.pub-address-item-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.pub-address-default-badge {
    display: inline-block;
    font-size: 0.72rem;
    background: var(--pub-primary-light);
    color: var(--pub-primary-dark);
    border-radius: 999px;
    padding: 2px 8px;
}

.pub-address-item-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.pub-address-modal-dialog {
    max-width: 480px;
}

.pub-address-modal-dialog--with-map {
    max-width: 560px;
}

.pub-address-modal-dialog.modal-dialog-scrollable .modal-body {
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.pub-address-modal .pub-map-picker {
    height: 260px;
}

.pub-address-modal {
    border: none;
    border-radius: var(--pub-radius);
    overflow: hidden;
}

.pub-address-modal .modal-header {
    border-bottom: 1px solid var(--pub-border);
    padding: 16px 20px;
    flex-shrink: 0;
}

.pub-address-modal .modal-body {
    padding: 20px;
}

.pub-delivery-badge {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: 999px;
    padding: 4px 10px;
}

.pub-badge-delivery {
    background: #eef2ff;
    color: #4338ca;
}

.pub-badge-pickup {
    background: #fff7ed;
    color: #c2410c;
}

.my-orders-page .pub-order-history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.my-orders-page .pub-order-history-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    background: var(--pub-white);
    border: 1px solid var(--pub-border);
    border-radius: var(--pub-radius-sm);
    box-shadow: var(--pub-shadow);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.my-orders-page .pub-order-history-item:hover {
    border-color: #d0d4de;
    box-shadow: var(--pub-shadow-lg);
    color: inherit;
}

.my-orders-page .pub-order-history-main {
    min-width: 0;
    flex: 1;
}

.my-orders-page .pub-order-history-title {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.my-orders-page .pub-order-history-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: var(--pub-text-muted);
    font-size: 0.84rem;
    line-height: 1.5;
}

.my-orders-page .pub-order-history-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    flex-shrink: 0;
}

.my-orders-page .pub-order-history-side strong {
    color: var(--pub-primary);
    font-size: 0.95rem;
}

@media (max-width: 575px) {
    .my-orders-page .pub-order-history-item {
        flex-direction: column;
    }

    .my-orders-page .pub-order-history-side {
        width: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.checkout-no-address-box {
    background: #f9fafb;
    border: 1px solid var(--pub-border);
    border-radius: 12px;
    padding: 14px;
}

@media (max-width: 768px) {
    .pub-nav-links { gap: 6px; }
    .btn-pub-outline, .btn-pub-primary { padding: 8px 16px; font-size: 0.8rem; }
    .pub-hero h1,
    .pub-hero-title-link h1 {
        font-size: 1.35rem;
        line-height: 1.35;
        word-break: break-word;
    }
    .pub-menu-grid { grid-template-columns: 1fr; }
    .checkout-page .checkout-wrap { padding: 24px 20px calc(88px + env(safe-area-inset-bottom, 0px)); }
    .checkout-page .checkout-toolbar,
    .my-orders-page .checkout-toolbar,
    .addresses-page .checkout-toolbar,
.order-tracking-page .checkout-toolbar {
        margin-bottom: 0;
    }
    .checkout-page .checkout-toolbar-inner,
    .my-orders-page .checkout-toolbar-inner,
    .addresses-page .checkout-toolbar-inner,
.order-tracking-page .checkout-toolbar-inner {
        padding: 10px 20px;
        gap: 8px;
    }
    .checkout-page .checkout-steps {
        padding: 0 20px;
        flex-direction: row;
        align-items: center;
        gap: 8px;
        margin-bottom: 16px;
    }
    .checkout-page .checkout-step-item:not(.active) .checkout-step-label {
        display: none;
    }
    .checkout-page .checkout-step-divider {
        width: auto;
        flex: 1;
        height: 2px;
        min-width: 8px;
    }
    .checkout-page .checkout-step-actions {
        flex-direction: row;
        gap: 0;
    }
    .restaurant-page .restaurant-wrap { padding-left: 20px; padding-right: 20px; }
    .restaurant-page .restaurant-content { padding-top: 16px; padding-bottom: 40px; }
    .checkout-page .pub-cart-row {
        grid-template-columns: 44px minmax(0, 1fr) auto;
        grid-template-areas:
            "thumb info total"
            "thumb qty delete";
        gap: 8px 10px;
    }
    .checkout-page .pub-cart-item-thumb {
        grid-area: thumb;
        width: 44px;
        height: 44px;
    }
    .checkout-page .pub-cart-row-info { grid-area: info; }
    .checkout-page .pub-cart-row-total { grid-area: total; justify-self: end; }
    .checkout-page .pub-cart-row .pub-qty-control { grid-area: qty; }
    .checkout-page .pub-cart-row .btn-outline-danger { grid-area: delete; justify-self: end; }
}
