* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


:root {
    --primary-color: #8d0000;
    --primary-dark: #9c1414;
    --secondary-color: #cf183d;
    --dark-bg: #1a1a1a;
    --light-bg: #f5f5f5;
    --text-primary: #333;
    --text-secondary: #666;
    --border-color: #eee;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

/* ===== HEADER ===== */
.header {
    background-color: var(--primary-color);
    padding: 15px 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}



/* ===== NAVBAR PREMIUM ===== */
.navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, #3b2d2d 100%);
    padding: 14px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    min-width: 0;
}

.logo-mark {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #ffffff;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
    overflow: hidden;
}

.logo-mark img,
.restaurant-logo-badge img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.navbar-logo span:last-child {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.navbar-logo:hover {
    transform: scale(1.05);
}

.navbar-menu {
    display: none;
    gap: 30px;
}

.nav-link {
    color: var(--dark-bg);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.navbar-icons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

.nav-notification-bell {
    position: relative;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    font-size: 22px;
    line-height: 1;
    transition: var(--transition);
}

.nav-notification-bell:hover {
    transform: translateY(-1px);
}

.nav-bell-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cf183d;
    border: 2px solid #ffffff;
}

.nav-bell-dot.hidden {
    display: none;
}

.nav-auth-link {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    border: 1px solid rgba(255,255,255,0.38);
    border-radius: 999px;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    transition: var(--transition);
}

.nav-auth-link:hover {
    background: rgba(255,255,255,0.12);
    transform: translateY(-1px);
}

.nav-auth-primary {
    background: #ffffff;
    color: var(--primary-color);
    border-color: #ffffff;
}

.nav-auth-primary:hover {
    background: #fef3c7;
    border-color: #fef3c7;
}

.restaurant-logo-badge {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #111827;
    color: #ffffff;
    border: 2px solid rgba(255,255,255,0.7);
    box-shadow: 0 10px 26px rgba(0,0,0,0.22);
    font-size: 18px;
    overflow: hidden;
}

.nav-profile-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    text-decoration: none;
}

.nav-profile-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #ffffff;
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 900;
    border: 2px solid rgba(255,255,255,0.7);
}

.nav-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-client-name {
    max-width: 180px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.14);
    color: #ffffff;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
}

.mobile-nav-menu {
    display: none;
    max-width: 1200px;
    margin: 12px auto 0;
    padding: 10px;
    border-radius: 14px;
    background: rgba(255,255,255,0.96);
    box-shadow: var(--shadow-md);
}

.mobile-nav-menu a {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 0 12px;
    border-radius: 10px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 800;
}

.mobile-nav-menu span {
    display: block;
    padding: 8px 12px 10px;
    color: #111827;
    font-size: 13px;
    font-weight: 900;
}

.mobile-nav-menu a:hover {
    background: #fef2f2;
}

.mobile-nav-menu.open {
    display: block;
}

.nav-icon {
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: var(--dark-bg);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--transition);
    position: relative;
}

.nav-icon:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}















/* Search Container */
.home-search-section {
    padding: 16px 14px 10px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.92), rgba(245,245,245,0.75));
}

.search-container {
    width: min(760px, 100%);
    background-color: #ffffff;
    border: 1px solid rgba(141, 0, 0, 0.12);
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 18px 44px rgba(34, 20, 20, 0.12);
    transition: var(--transition);
}

.search-container:focus-within {
    border-color: rgba(141, 0, 0, 0.38);
    box-shadow: 0 18px 46px rgba(141, 0, 0, 0.14), 0 0 0 4px rgba(141, 0, 0, 0.08);
}

.search-icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    background: #fff1f1;
    color: var(--primary-color);
}

.search-field {
    flex: 1;
    min-width: 0;
    display: grid;
    gap: 2px;
}

.search-label {
    color: #6b7280;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.search-input {
    border: none;
    outline: none;
    min-width: 0;
    width: 100%;
    padding: 0;
    border-radius: 0;
    color: #111827;
    font-size: 16px;
    font-weight: 800;
    background: transparent;
}

.search-input::placeholder {
    color: #9ca3af;
    font-weight: 600;
}

.search-btn {
    min-height: 44px;
    padding: 0 20px;
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
}

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


/* Banner Carousel */
.banner-carousel {
    position: relative;
    height: clamp(205px, 24vw, 260px);
    margin: 10px;
    border-radius: 15px;
    overflow: hidden;
    background-color: #000;
}

.banner {
    position: absolute;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(170px, 34%);
    align-items: center;
    gap: 18px;
    padding: clamp(16px, 3vw, 28px);
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    background: linear-gradient(135deg, #1a1a1a 0%, #414040 100%);
}

.banner.active {
    opacity: 1;
}

.banner-content {
    color: white;
    min-width: 0;
    display: grid;
    align-content: center;
    justify-items: start;
    max-width: 100%;
}

.banner-content h2 {
    font-size: clamp(12px, 1.7vw, 15px);
    font-weight: normal;
    margin-bottom: 5px;
    opacity: 0.9;
    overflow-wrap: anywhere;
}

.banner-content h1 {
    font-size: clamp(24px, 4vw, 38px);
    font-weight: bold;
    margin-bottom: 8px;
    line-height: 1.08;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.banner-content p {
    font-size: clamp(12px, 1.6vw, 14px);
    margin-bottom: 12px;
    opacity: 0.8;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.banner-btn {
    background-color: #FFC107;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 12px;
    cursor: pointer;
}

.banner-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 120px;
    max-height: 220px;
    min-width: 0;
}

.banner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.best-seller-banner {
    background: linear-gradient(135deg, #7f1d1d 0%, #111827 100%);
}

/* ===== RESTAURANT INFO ===== */
.restaurant-info {
    padding: 15px 10px;
    background-color: white;
    border-bottom: 1px solid #eee;
}

.restaurant-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: bold;
}

.back-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #333;
}

.rating {
    background-color: #90EE90;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    margin-left: auto;
}

.favorite-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #333;
}

/* ===== CATEGORIAS ===== */
.categories {
    padding: 20px 10px;
    background-color: #f5f5f5;
}

.categories h3 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 12px;
}

/* ===== CATEGORY CARDS ===== */
.category-card {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: scale(1.05);
}

.category-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 10px;
    position: relative;
}

.category-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.category-image h4 {
    color: white;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    z-index: 2;
    position: relative;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* ===== RESPONSIVO ===== */

@media (max-width: 767px) {
    .navbar {
        padding: 12px 14px;
    }

    .navbar-container {
        justify-content: space-between;
        gap: 10px;
    }

    .navbar-logo {
        max-width: 58%;
        font-size: 15px;
        line-height: 1.1;
    }

    .logo-mark {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    .navbar-actions {
        gap: 7px;
        flex: 0 1 auto;
        min-width: 0;
    }

    .nav-auth-link {
        min-height: 34px;
        padding: 0 9px;
        font-size: 12px;
    }

    .nav-auth-primary,
    .nav-client-name,
    .restaurant-logo-badge {
        display: none;
    }

    .nav-profile-avatar {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }

    .home-search-section {
        padding: 12px 12px 8px;
    }

    .search-container {
        align-items: stretch;
        gap: 8px;
        padding: 8px;
    }

    .search-icon {
        width: 40px;
        min-height: 48px;
    }

    .search-btn {
        min-height: 48px;
        padding: 0 14px;
    }

    .search-input {
        font-size: 15px;
    }

    .banner-carousel {
        height: 245px;
        margin: 8px 10px;
        border-radius: 12px;
    }

    .banner {
        grid-template-columns: minmax(0, 1fr) 140px;
        gap: 10px;
        padding: 14px;
    }

    .banner-content {
        align-content: center;
    }

    .banner-content h2 {
        font-size: 12px;
        line-height: 1.2;
    }

    .banner-content h1 {
        font-size: 22px;
        line-height: 1.08;
        margin-bottom: 6px;
    }

    .banner-content p {
        font-size: 12px;
        margin-bottom: 8px;
    }

    .banner-btn {
        min-height: 34px;
        padding: 7px 12px;
        font-size: 11px;
    }

    .banner-image {
        height: 195px;
        min-height: 0;
        max-height: 195px;
    }
}

@media (max-width: 390px) {
    .banner-carousel {
        height: 230px;
    }

    .banner {
        grid-template-columns: minmax(0, 1fr) 118px;
        gap: 8px;
        padding: 12px;
    }

    .banner-content h1 {
        font-size: 19px;
    }

    .banner-content p {
        font-size: 11px;
    }

    .banner-image {
        height: 172px;
        max-height: 172px;
    }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
    }

    .banner-carousel {
        height: 275px;
        margin: 12px 16px;
    }

    .banner {
        grid-template-columns: minmax(0, 1fr) minmax(270px, 40%);
        gap: 22px;
        padding: 24px;
    }

    .banner-content h1 {
        font-size: 34px;
    }

    .banner-image {
        max-height: 245px;
    }

    .search-container {
        max-width: 620px;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 20px;
    }

    .header {
        padding: 20px 10px;
    }

    .search-container {
        max-width: 760px;
    }

    .banner-carousel {
        max-width: 1120px;
        height: 245px;
        margin: 14px auto;
    }

    .banner {
        grid-template-columns: minmax(0, 1fr) 320px;
        padding: 24px 28px;
    }

    .banner-image {
        height: 205px;
        max-height: 205px;
    }
}

.restaurant-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: var(--light-bg);
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.badge:hover {
    background-color: var(--primary-color);
    color: var(--dark-bg);
    border-color: var(--primary-color);
}

.link-categoria{
    text-decoration: none;
    color: inherit;
    display: block;
}

.client-auth-page {
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 22px;
    place-items: center;
    padding: 24px;
    background: #f6f8fc;
    color: #101828;
}

.client-auth-brand {
    width: min(980px, 100%);
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: inherit;
    text-decoration: none;
}

.client-auth-brand-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 12px;
    background: #155eef;
    color: #ffffff;
}

.client-auth-brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.client-auth-brand span:last-child {
    display: grid;
    min-width: 0;
}

.client-auth-brand strong {
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
}

.client-auth-brand small {
    margin-top: 2px;
    color: #667085;
    font-size: 11px;
    font-weight: 700;
}

.client-auth-card {
    width: min(100%, 430px);
    align-self: start;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #e4e7ec;
    background: #ffffff;
    box-shadow: 0 16px 42px rgba(16,24,40,0.08);
}

.client-auth-card-wide {
    width: min(100%, 680px);
}

.client-auth-header {
    padding: 28px 26px;
    background: linear-gradient(135deg,#102a56,#155eef);
    color: #ffffff;
}

.client-auth-header span {
    display: block;
    margin-bottom: 8px;
    color: rgba(255,255,255,0.72);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.client-auth-header h1 {
    margin: 0 0 6px;
    font-size: clamp(27px, 4vw, 34px);
    line-height: 1.05;
}

.client-auth-header p {
    margin: 0;
    color: #dbe7ff;
    line-height: 1.45;
}

.client-auth-form {
    display: grid;
    gap: 14px;
    padding: 24px 26px;
}

.client-auth-field {
    display: grid;
    gap: 7px;
}

.client-auth-field.full {
    grid-column: 1 / -1;
}

.client-auth-form label {
    color: #344054;
    font-size: 12px;
    font-weight: 800;
}

.client-auth-form input,
.client-auth-form select,
.client-auth-form textarea {
    width: 100%;
    min-height: 46px;
    padding: 10px 13px;
    border: 1px solid #d0d5dd;
    border-radius: 11px;
    background: #ffffff;
    color: #101828;
    font: inherit;
    outline: none;
}

.client-auth-form input:focus,
.client-auth-form select:focus,
.client-auth-form textarea:focus {
    border-color: #155eef;
    box-shadow: 0 0 0 4px rgba(21,94,239,0.1);
}

.client-auth-form textarea {
    min-height: 120px;
    resize: vertical;
}

.client-auth-form button {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    border: 1px solid #155eef;
    border-radius: 12px;
    background: #155eef;
    color: #ffffff;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
    transition: .2s ease;
}

.client-auth-form button:hover {
    background: #0f45bd;
    border-color: #0f45bd;
    transform: translateY(-1px);
}

.client-auth-grid {
    grid-template-columns: 1fr 1fr;
    column-gap: 14px;
}

.client-auth-grid button {
    grid-column: 1 / -1;
}

.client-auth-error {
    margin: 18px 24px 0;
    padding: 13px 15px;
    border-radius: 12px;
    background: #fef3f2;
    color: #b42318;
    font-weight: 800;
    font-size: 13px;
}

.client-auth-success {
    margin: 18px 24px 0;
    padding: 13px 15px;
    border-radius: 12px;
    background: #ecfdf3;
    color: #027a48;
    font-weight: 800;
    font-size: 13px;
}

.client-auth-switch,
.client-auth-back {
    display: block;
    padding: 0 26px 18px;
    color: #667085;
    text-align: center;
    font-size: 14px;
}

.client-auth-switch a,
.client-auth-back {
    color: #155eef;
    font-weight: 900;
    text-decoration: none;
}

.client-auth-back {
    display: inline-flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding-bottom: 24px;
}

.profile-page {
    background: #f5f5f5;
}

.profile-screen {
    width: min(520px, calc(100% - 28px));
    margin: 26px auto 34px;
    padding-bottom: 0;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 28px 24px;
    border-radius: 0;
    background: #111827;
    color: #ffffff;
    box-shadow: none;
}

.profile-avatar {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    overflow: hidden;
    background: #ffffff;
    color: var(--primary-color);
    border: 3px solid rgba(255,255,255,0.72);
    font-size: 30px;
    font-weight: 900;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-header h1 {
    margin: 0 0 4px;
    color: #ffffff;
    font-size: 26px;
    line-height: 1.15;
    font-weight: 900;
}

.profile-header p {
    margin: 0 0 12px;
    color: rgba(255,255,255,0.8);
    font-size: 15px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.profile-edit-btn {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0 15px;
    border-radius: 999px;
    background: #ffffff;
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 10px 22px rgba(0,0,0,0.08);
}

.profile-menu {
    display: grid;
    gap: 12px;
    padding: 22px 24px 24px;
}

.profile-menu a {
    min-height: 58px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 12px;
    padding: 0 14px;
    border-radius: 8px;
    background: #ffffff;
    color: #111827;
    text-decoration: none;
    border: 1px solid #e5e7eb;
    box-shadow: var(--shadow-sm);
}

.profile-menu-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fef2f2;
    color: var(--primary-color);
    font-size: 15px;
}

.profile-menu strong {
    font-size: 15px;
    font-weight: 900;
    line-height: 1.1;
}

.profile-menu a > .fa-chevron-right {
    color: #9ca3af;
    font-size: 14px;
}

.profile-edit-panel {
    display: none;
    margin: 0 24px 24px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.profile-edit-panel:target,
.profile-edit-panel.is-open {
    display: block;
}

.profile-edit-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 20px 24px 0;
}

.profile-edit-title h2 {
    margin: 0;
    color: #111827;
    font-size: 22px;
}

.profile-edit-title a {
    color: var(--primary-color);
    font-weight: 900;
    text-decoration: none;
}

@media (max-width: 560px) {
    .profile-screen {
        width: min(520px, calc(100% - 20px));
        margin-top: 18px;
    }

    .profile-header {
        gap: 14px;
        padding: 24px 20px;
    }

    .profile-avatar {
        width: 74px;
        height: 74px;
        font-size: 28px;
    }

    .profile-header h1 {
        font-size: 22px;
    }

    .profile-header p {
        margin-bottom: 10px;
        font-size: 14px;
    }

    .profile-edit-btn {
        min-height: 36px;
        padding: 0 14px;
        font-size: 13px;
    }

    .profile-menu {
        gap: 10px;
        padding: 20px;
    }

    .profile-menu a {
        min-height: 56px;
        grid-template-columns: 40px minmax(0, 1fr) 18px;
        gap: 10px;
        padding: 0 12px;
    }

    .profile-menu-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .profile-menu strong {
        font-size: 14px;
    }
}

.profile-history {
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid #e5e7eb;
}

.profile-history-header,
.profile-history-top,
.profile-history-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.profile-history-header span {
    color: #111827;
    font-size: 18px;
    font-weight: 900;
}

.profile-history-header strong {
    min-width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: #ffffff;
}

.profile-history-empty {
    margin: 14px 0 0;
    color: #6b7280;
    font-weight: 700;
}

.profile-history-list {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}

.profile-history-item {
    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
}

.profile-history-top a {
    color: var(--primary-color);
    font-weight: 900;
    text-decoration: none;
}

.profile-history-top small {
    display: block;
    margin-top: 3px;
    color: #6b7280;
    font-weight: 700;
}

.profile-history-status {
    padding: 5px 9px;
    border-radius: 999px;
    background: #fef3c7;
    color: #92400e;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.profile-history-products {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 12px 0;
}

.profile-history-products span {
    padding: 5px 8px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #374151;
    font-size: 12px;
    font-weight: 800;
}

.profile-history-footer {
    color: #4b5563;
    font-weight: 800;
}

.profile-history-footer strong {
    color: #111827;
}

.client-history-shell {
    width: min(1120px, calc(100% - 28px));
    margin: 34px auto;
}

.client-history-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    padding: 30px;
    border-radius: 8px;
    background: #111827;
    color: #ffffff;
    box-shadow: var(--shadow-lg);
}

.client-history-hero span,
.history-panel-header span,
.history-summary-grid span,
.history-order-label {
    display: block;
    color: #6b7280;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.client-history-hero span {
    color: rgba(255,255,255,0.68);
}

.client-history-hero h1 {
    margin: 7px 0;
    font-size: clamp(28px, 5vw, 46px);
    line-height: 1;
}

.client-history-hero p {
    margin: 0;
    color: rgba(255,255,255,0.82);
    font-weight: 800;
}

.client-history-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.client-history-actions a,
.history-empty-state a,
.history-order-footer a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border-radius: 999px;
    background: #ffffff;
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
}

.history-message {
    margin: 16px 0 0;
}

.history-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 16px 0;
}

.history-summary-grid article {
    padding: 18px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.history-summary-grid strong {
    display: block;
    margin-top: 8px;
    color: #111827;
    font-size: 22px;
    line-height: 1.15;
}

.history-panel {
    padding: 22px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow-md);
}

.history-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e5e7eb;
}

.history-panel-header h2 {
    margin: 5px 0 0;
    color: #111827;
    font-size: 24px;
}

.history-danger-btn,
.history-order-footer button {
    min-height: 40px;
    border: 0;
    border-radius: 999px;
    background: #fee2e2;
    color: #b91c1c;
    font-weight: 900;
    cursor: pointer;
}

.history-danger-btn {
    padding: 0 14px;
}

.history-empty-state {
    padding: 44px 20px;
    text-align: center;
}

.history-empty-state strong {
    display: block;
    color: #111827;
    font-size: 22px;
}

.history-empty-state p {
    margin: 8px 0 18px;
    color: #6b7280;
    font-weight: 700;
}

.history-empty-state a {
    background: var(--primary-color);
    color: #ffffff;
}

.history-order-list {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.history-order-card {
    padding: 18px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
}

.history-order-group {
    padding: 0;
    overflow: hidden;
    position: relative;
}

.history-order-group.is-selected {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(141,0,0,0.08);
}

.history-order-summary {
    min-height: 64px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 14px;
    padding: 16px 96px 16px 18px;
    cursor: pointer;
    list-style: none;
    color: inherit;
    text-decoration: none;
}

.history-order-summary::-webkit-details-marker {
    display: none;
}

.history-order-summary strong {
    color: #111827;
    font-size: 18px;
    overflow-wrap: anywhere;
}

.history-order-summary > span {
    color: #6b7280;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
}

.history-pay-link {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--primary-color);
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

.history-delete-corner {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
}

.history-delete-corner button {
    min-height: 34px;
    padding: 0 11px;
    border: 0;
    border-radius: 999px;
    background: #fee2e2;
    color: #b91c1c;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
}

.history-order-group-body {
    padding: 0 18px 18px;
    border-top: 1px solid #e5e7eb;
    background: #ffffff;
}

.history-order-group-body.is-standalone {
    padding: 0;
    border-top: 0;
}

.history-details-panel {
    margin-top: 16px;
}

.history-details-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.history-details-actions a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--primary-color);
    color: #ffffff;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
}

.history-details-actions a + a {
    background: #e2e8f0;
    color: #334155;
}

.history-order-inner {
    padding: 16px 0;
    border-bottom: 1px solid #e5e7eb;
}

.history-order-inner:last-of-type {
    border-bottom: 0;
}

.history-order-main,
.history-order-footer,
.history-order-items div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.history-order-main h3 {
    margin: 5px 0 3px;
    color: #111827;
    font-size: 20px;
}

.history-order-main p {
    margin: 0;
    color: #6b7280;
    font-weight: 700;
}

.history-status-pill {
    padding: 7px 10px;
    border-radius: 999px;
    background: #fef3c7;
    color: #92400e;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.history-order-items {
    display: grid;
    gap: 8px;
    margin: 16px 0;
}

.history-order-items div {
    padding: 10px 12px;
    border-radius: 8px;
    background: #ffffff;
    color: #374151;
    font-weight: 800;
}

.history-order-footer {
    padding-top: 14px;
    border-top: 1px solid #e5e7eb;
}

.history-order-footer > strong {
    color: #111827;
    font-size: 20px;
}

.history-order-footer > div {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.history-order-footer a {
    background: var(--primary-color);
    color: #ffffff;
}

.history-order-footer button {
    padding: 0 13px;
}

@media (max-width: 900px) {
    .client-history-shell {
        width: min(100% - 20px, 720px);
        margin: 20px auto 28px;
    }

    .client-history-hero {
        align-items: flex-start;
        flex-direction: column;
        padding: 24px;
    }

    .client-history-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .history-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .client-auth-page {
        display: grid;
        gap: 14px;
        padding: 14px 12px 24px;
    }

    .client-auth-brand {
        min-height: 48px;
    }

    .client-auth-brand strong {
        max-width: 210px;
    }

    .client-auth-card,
    .client-auth-card-wide {
        width: 100%;
        border-radius: 15px;
    }

    .client-auth-header {
        padding: 24px 20px;
    }

    .client-auth-form {
        padding: 20px;
    }

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

    .client-auth-field.full,
    .client-auth-grid button {
        grid-column: auto;
    }

    .client-auth-switch,
    .client-auth-back {
        padding-left: 20px;
        padding-right: 20px;
    }

    .client-history-shell {
        width: 100%;
        margin: 0 auto;
    }

    .client-history-hero {
        gap: 16px;
        padding: 22px 18px;
    }

    .client-history-hero h1 {
        font-size: 30px;
        line-height: 1.05;
    }

    .client-history-actions a {
        flex: 1 1 120px;
    }

    .history-summary-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .history-summary-grid article,
    .history-panel,
    .history-order-card {
        padding: 16px;
    }

    .history-order-group {
        padding: 0;
    }

    .history-order-summary {
        grid-template-columns: 1fr;
        align-items: stretch;
        gap: 10px;
        padding: 16px;
    }

    .history-order-summary > span {
        white-space: normal;
    }

    .history-pay-link {
        width: 100%;
    }

    .history-delete-corner {
        display: none;
    }

    .history-order-group-body {
        padding: 0 16px 16px;
    }

    .history-details-actions,
    .history-details-actions a {
        width: 100%;
    }

    .history-panel-header,
    .history-order-main,
    .history-order-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .history-panel-header form,
    .history-danger-btn,
    .history-order-footer > div,
    .history-order-footer a,
    .history-order-footer button {
        width: 100%;
    }

    .history-order-footer > div {
        justify-content: stretch;
    }

    .history-order-footer a,
    .history-order-footer button {
        min-height: 42px;
    }

    .history-order-footer form {
        flex: 1 1 120px;
    }

    .history-order-items div {
        align-items: flex-start;
    }

    .history-order-items span {
        overflow-wrap: anywhere;
    }

    .history-status-pill {
        align-self: flex-start;
    }
}
/* Novas funcionalidades do cliente */
.language-select,
.theme-toggle {
    height: 40px;
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 10px;
    background: rgba(255,255,255,0.12);
    color: inherit;
    padding: 0 10px;
    font-weight: 800;
}

.theme-toggle {
    width: 42px;
    cursor: pointer;
}

.featured-products {
    width: min(1120px, calc(100% - 28px));
    margin: 18px auto;
}

.section-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.section-title-row h3 {
    margin: 0;
}

.section-title-row span {
    color: #dc2626;
    font-weight: 900;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
}

.featured-card {
    display: grid;
    gap: 8px;
    text-decoration: none;
    color: inherit;
    background: rgba(255,255,255,0.94);
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.featured-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 7px;
}

.featured-card span {
    color: #dc2626;
    font-weight: 900;
}

.reservation-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0,0,0,0.55);
    padding: 20px;
}

.reservation-modal.open {
    display: grid;
    place-items: center;
}

.reservation-box {
    position: relative;
    display: grid;
    gap: 10px;
    width: min(440px, 100%);
    background: #fff;
    color: #111827;
    border-radius: 8px;
    padding: 22px;
}

.reservation-box input,
.reservation-box textarea {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 11px 12px;
}

.reservation-close {
    position: absolute;
    top: 8px;
    right: 10px;
    border: 0;
    background: transparent;
    font-size: 28px;
    cursor: pointer;
}

.reservation-message {
    min-height: 20px;
    font-weight: 700;
}
/* Contexto automatico do atendimento: QR de mesa ou delivery. */
.service-mode-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    padding: 11px 18px;
    background: #eff6ff;
    border-bottom: 1px solid #bfdbfe;
    color: #1e3a8a;
    font-size: 13px;
}
.service-mode-bar strong { font-size: 14px; }
.service-mode-bar span { color: #475569; }
.service-mode-bar--restaurante { background: #dbeafe; }
.service-mode-actions { display: flex; gap: 8px; }
.service-mode-actions button {
    border: 0;
    border-radius: 999px;
    padding: 8px 12px;
    background: #2563eb;
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}
.service-mode-actions button:last-child { background: #fff; color: #1e40af; border: 1px solid #93c5fd; }
.service-mode-actions button:disabled { opacity: .6; cursor: wait; }

/* ===== MENU DIGITAL ORGANIZADO ===== */
.menu-home {
    --menu-blue: #155eef;
    --menu-blue-dark: #0b3ca8;
    --menu-blue-soft: #eaf2ff;
    --menu-ink: #101828;
    --menu-muted: #667085;
    --menu-line: #e4e7ec;
    --menu-surface: #ffffff;
    background: #f6f8fc;
    color: var(--menu-ink);
    padding-bottom: 92px;
}

.menu-home .navbar {
    position: sticky;
    top: 0;
    padding: 12px 20px;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--menu-line);
    box-shadow: 0 4px 20px rgba(16, 24, 40, .05);
    backdrop-filter: blur(14px);
}

.menu-home .navbar-logo { color: var(--menu-ink); }
.menu-home .logo-mark {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--menu-blue);
    color: white;
    box-shadow: none;
}
.menu-home .brand-copy { display: grid; min-width: 0; }
.menu-home .brand-copy strong {
    max-width: 230px;
    overflow: hidden;
    color: var(--menu-ink);
    font-size: 15px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.menu-home .brand-copy small {
    margin-top: 2px;
    color: var(--menu-muted);
    font-size: 11px;
    font-weight: 700;
}
.menu-home .nav-auth-link {
    min-height: 38px;
    border-color: #cfd8e8;
    color: var(--menu-blue);
}
.menu-home .nav-notification-bell {
    color: var(--menu-ink);
}
.menu-home .nav-bell-dot {
    background: #c91d21;
    border-color: var(--menu-surface);
}
.menu-home .nav-profile-link,
.menu-home .nav-client-name { color: var(--menu-ink); }
.menu-home .nav-profile-avatar { background: var(--menu-blue); color: white; border: 0; }
.menu-main {
    width: min(1080px, calc(100% - 32px));
    margin: 0 auto;
    padding: 24px 0 48px;
}

.service-context {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px;
    border: 1px solid #cfe0ff;
    border-radius: 18px;
    background: linear-gradient(135deg, #f7faff, #eaf2ff);
}
.service-context-copy { display: flex; align-items: center; gap: 14px; min-width: 0; }
.service-context-icon {
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 14px;
    background: var(--menu-blue);
    color: white;
    font-size: 19px;
}
.service-context-copy div { display: grid; gap: 2px; }
.service-context-label {
    color: var(--menu-blue);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.service-context-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
}
.service-context-copy strong { font-size: 20px; }
.service-context-switch {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 0 10px;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #fff;
    color: var(--menu-blue);
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
}
.service-context-switch:hover {
    border-color: var(--menu-blue);
    background: var(--menu-blue-soft);
}
.service-context-copy small { color: var(--menu-muted); line-height: 1.4; }
.service-context-actions { display: flex; gap: 9px; flex: 0 0 auto; }
.context-action {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 15px;
    border: 1px solid var(--menu-blue);
    border-radius: 11px;
    background: var(--menu-blue);
    color: white;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}
.context-action--light { background: white; color: var(--menu-blue); }
.context-action:disabled { opacity: .6; cursor: wait; }

.service-context--delivery {
    position: relative;
    display: block;
    min-height: 292px;
    overflow: hidden;
    padding: 0;
    border: 10px solid #ffffff;
    border-radius: 24px;
    background: #080808;
    color: #ffffff;
    box-shadow: 0 16px 34px rgba(15, 23, 42, .16);
}
.service-context--delivery::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, .34) 0%, rgba(0, 0, 0, .12) 14%, rgba(0, 0, 0, 0) 29%, rgba(0, 0, 0, .32) 45%, rgba(0, 0, 0, .58) 62%, rgba(0, 0, 0, .68) 100%),
        radial-gradient(circle at 8% 50%, rgba(0, 0, 0, .28), transparent 32%),
        linear-gradient(180deg, rgba(0, 0, 0, .10), rgba(0, 0, 0, .04) 42%, rgba(0, 0, 0, .24) 100%);
}
.service-context--delivery::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    box-shadow:
        inset 34px 0 34px rgba(0, 0, 0, .28),
        inset -54px 0 64px rgba(0, 0, 0, .38),
        inset 0 -34px 44px rgba(0, 0, 0, .28);
}
.service-context-media {
    position: absolute;
    inset: 0;
    z-index: 1;
    min-height: 292px;
    overflow: hidden;
}
.service-context-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: 42% center;
}
.service-context--delivery .service-context-copy {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    display: grid;
    grid-template-columns: 1fr;
    align-content: center;
    gap: 0;
    width: 53%;
    padding: 28px 34px 88px 30px;
}
.service-context--delivery .service-context-icon { display: none; }
.service-context--delivery .service-context-copy > div { gap: 9px; }
.service-context--delivery .service-context-label {
    width: max-content;
    max-width: 100%;
    min-height: 31px;
    display: inline-flex;
    align-items: center;
    padding: 0 15px;
    border-radius: 999px;
    background: #c91d21;
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0;
    box-shadow: 0 10px 22px rgba(201, 29, 33, .26);
}
.service-context--delivery .service-context-copy strong {
    color: #ffffff;
    font-size: clamp(30px, 4.1vw, 42px);
    line-height: 1;
    letter-spacing: 0;
    text-shadow: 0 10px 22px rgba(0, 0, 0, .38);
}
.service-context--delivery .service-context-copy small {
    max-width: 430px;
    color: rgba(255, 255, 255, .92);
    font-size: clamp(16px, 1.8vw, 20px);
    font-weight: 800;
    line-height: 1.38;
    text-shadow: 0 8px 18px rgba(0, 0, 0, .42);
}
.service-context--delivery .service-context-actions {
    position: absolute;
    z-index: 4;
    right: 28px;
    bottom: 24px;
    width: min(312px, calc(53% - 62px));
}
.service-context--delivery .context-action {
    width: 100%;
    min-height: 56px;
    min-width: 0;
    justify-content: center;
    gap: 13px;
    padding: 0 24px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #d81f24, #b80d12);
    color: #ffffff;
    font-size: 18px;
    font-weight: 900;
    box-shadow: 0 16px 30px rgba(184, 13, 18, .38);
}
.service-context--delivery .context-action i {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
}
.service-context--delivery .context-action::after {
    content: "\f105";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 21px;
}

.menu-intro {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    padding: 34px 2px 18px;
}
.menu-eyebrow,
.menu-section-heading span,
.main-offer-copy > span {
    color: var(--menu-blue);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .09em;
    text-transform: uppercase;
}
.menu-intro h1 { margin: 4px 0 5px; font-size: clamp(27px, 5vw, 40px); line-height: 1.1; }
.menu-intro p { color: var(--menu-muted); }
.desktop-status-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--menu-blue);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.menu-home .home-search-section { padding: 0; background: transparent; }
.menu-home .search-container {
    width: 100%;
    margin: 0;
    padding: 7px;
    border: 1px solid #d0d5dd;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(16, 24, 40, .06);
}
.menu-home .search-container:focus-within {
    border-color: var(--menu-blue);
    box-shadow: 0 0 0 4px rgba(21, 94, 239, .1);
}
.menu-home .search-icon { background: var(--menu-blue-soft); color: var(--menu-blue); border-radius: 10px; }
.menu-home .search-label { color: var(--menu-muted); }
.menu-home .search-btn {
    width: 46px;
    min-width: 46px;
    padding: 0;
    border-radius: 10px;
    background: var(--menu-blue);
}
.search-feedback { margin: 10px 4px 0; color: var(--menu-muted); font-size: 13px; font-weight: 700; }

.menu-section { padding-top: 34px; }
.menu-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 15px;
}
.menu-section-heading h2 { margin-top: 3px; font-size: 23px; }
.menu-section-heading > small { color: var(--menu-muted); font-weight: 700; }

.category-navigation {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.category-tile {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 84px;
    padding: 13px;
    border: 1px solid var(--menu-line);
    border-radius: 16px;
    background: white;
    color: var(--menu-ink);
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(16, 24, 40, .04);
    transition: .2s ease;
}
.category-tile:hover { border-color: #a9c5ff; box-shadow: 0 12px 28px rgba(21, 94, 239, .1); transform: translateY(-2px); }
.category-tile-image {
    display: inline-flex;
    width: 56px;
    height: 56px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 14px;
    background: linear-gradient(135deg, #eaf2ff, #f7faff);
    color: var(--menu-blue);
    border: 1px solid #cfe0ff;
}
.category-tile-image img { width: 100%; height: 100%; object-fit: cover; }
.category-tile strong { overflow: hidden; font-size: 15px; line-height: 1.2; text-overflow: ellipsis; }
.category-tile > i {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #f2f4f7;
    color: #98a2b3;
    font-size: 10px;
}

.main-offer {
    position: relative;
    width: min(1160px, calc(100vw - 30px));
    min-height: 340px;
    margin-top: 34px;
    margin-left: 50%;
    transform: translateX(-50%);
    overflow: hidden;
    border: 1px solid rgba(207, 224, 255, .16);
    border-radius: 20px;
    background:
        radial-gradient(circle at 90% 12%, rgba(21, 94, 239, .28), transparent 28%),
        linear-gradient(135deg, #102a56, #071b35);
    color: white;
    box-shadow: 0 22px 48px rgba(16, 42, 86, .18);
}
.main-offer-slide {
    position: absolute;
    inset: 0;
    display: block;
    opacity: 0;
    pointer-events: none;
    transition: opacity .55s ease;
}
.main-offer-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(3, 12, 28, .88) 0%, rgba(8, 25, 52, .66) 44%, rgba(8, 25, 52, .2) 100%),
        linear-gradient(0deg, rgba(0, 0, 0, .2), rgba(0, 0, 0, .05));
}
.main-offer-slide.active {
    opacity: 1;
    pointer-events: auto;
}
.main-offer-copy {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 340px;
    padding: clamp(28px, 5vw, 52px);
}
.main-offer-copy > span { color: #9cc0ff; }
.main-offer-copy h2 { max-width: 620px; min-height: 82px; margin: 8px 0; font-size: clamp(25px, 4vw, 40px); line-height: 1.08; text-shadow: 0 12px 28px rgba(0, 0, 0, .42); }
.main-offer-copy p { max-width: 560px; min-height: 44px; color: #edf4ff; line-height: 1.5; text-shadow: 0 10px 24px rgba(0, 0, 0, .38); }
.banner-typewriter.is-writing::after {
    content: "";
    display: inline-block;
    width: 2px;
    height: .9em;
    margin-left: 3px;
    border-radius: 999px;
    background: currentColor;
    animation: bannerCaretBlink .8s steps(2, start) infinite;
    vertical-align: -0.08em;
}
@keyframes bannerCaretBlink {
    50% { opacity: 0; }
}
.main-offer-copy a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    width: fit-content;
    margin-top: 18px;
    padding: 11px 15px;
    border-radius: 10px;
    background: white;
    color: #102a56;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}
.main-offer-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #071b35;
}
.main-offer-media img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    object-position: center;
    filter: none;
}

.product-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.menu-product-card {
    overflow: hidden;
    border: 1px solid var(--menu-line);
    border-radius: 16px;
    background: white;
    color: var(--menu-ink);
    text-decoration: none;
}
.menu-product-card > img { width: 100%; aspect-ratio: 1.35; object-fit: cover; }
.menu-product-copy { display: grid; gap: 5px; padding: 13px; }
.menu-product-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-product-copy small { color: var(--menu-muted); }
.menu-product-copy b { margin-top: 3px; color: var(--menu-blue); }

.popular-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.popular-item {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border: 1px solid var(--menu-line);
    border-radius: 14px;
    background: white;
    color: var(--menu-ink);
    text-decoration: none;
}
.popular-item img { width: 58px; height: 58px; border-radius: 11px; object-fit: cover; }
.popular-item span { display: grid; gap: 4px; min-width: 0; }
.popular-item strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.popular-item small { color: var(--menu-muted); }
.popular-item b { color: var(--menu-blue); white-space: nowrap; }
.popular-item > i { color: #98a2b3; font-size: 11px; }

.menu-help-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    margin-top: 34px;
    padding: 18px;
    border: 1px solid var(--menu-line);
    border-radius: 16px;
    background: white;
}

.public-review-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.home-review-card {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--menu-line);
    border-radius: 16px;
    background: white;
    box-shadow: 0 6px 18px rgba(16, 24, 40, .04);
}
.home-review-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
}
.home-review-avatar {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--menu-blue);
    color: white;
    font-weight: 900;
}
.home-review-head span:last-child {
    display: grid;
    gap: 2px;
    min-width: 0;
}
.home-review-head strong,
.home-review-head small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.home-review-head small { color: var(--menu-muted); }
.home-review-stars { color: #f59e0b; letter-spacing: 1px; }
.home-review-stars span { color: #d0d5dd; }
.home-review-breakdown {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.home-review-breakdown span {
    padding: 4px 7px;
    border-radius: 999px;
    background: #f2f4f7;
    color: #475467;
    font-size: 11px;
    font-weight: 800;
}
.home-review-photo {
    width: 100%;
    height: 120px;
    border-radius: 12px;
    object-fit: cover;
}
.home-review-card p {
    margin: 0;
    color: #475467;
    font-size: 13px;
    line-height: 1.55;
}
.home-review-text {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}
.home-review-card.expanded .home-review-text {
    display: block;
    overflow: visible;
}
.review-text-toggle,
.reviews-more-button {
    justify-self: start;
    border: 0;
    background: transparent;
    color: var(--menu-blue);
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
}
.reviews-more-button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    margin-top: 14px;
    padding: 0 16px;
    border: 1px solid var(--menu-blue);
    border-radius: 11px;
    background: white;
}
.menu-help-card > i { color: var(--menu-blue); font-size: 23px; }
.menu-help-card div { display: grid; gap: 4px; }
.menu-help-card span { color: var(--menu-muted); font-size: 13px; }
.menu-help-card a { color: var(--menu-blue); font-weight: 900; text-decoration: none; }

.mobile-bottom-nav {
    display: none;
    position: fixed;
    right: 12px;
    bottom: 10px;
    left: 12px;
    z-index: 1100;
    grid-template-columns: repeat(4, 1fr);
    padding: 7px;
    border: 1px solid rgba(208, 213, 221, .9);
    border-radius: 18px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 16px 44px rgba(16, 24, 40, .18);
    backdrop-filter: blur(16px);
}
.mobile-bottom-nav a {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 4px;
    padding: 7px 3px;
    border-radius: 12px;
    color: var(--menu-muted);
    font-size: 10px;
    font-weight: 800;
    text-decoration: none;
}
.mobile-bottom-nav a i { font-size: 17px; }
.mobile-bottom-nav a.active { background: var(--menu-blue-soft); color: var(--menu-blue); }
.mobile-bottom-nav a.category-nav-link.active { background: transparent; color: var(--menu-muted); }
.mobile-cart-count {
    position: absolute;
    top: 2px;
    right: 22%;
    min-width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    border: 2px solid #ffffff;
    border-radius: 999px;
    background: #ef4444;
    color: #ffffff;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 4px 10px rgba(239, 68, 68, .28);
}
.mobile-cart-count[hidden] { display: none; }
.menu-toast {
    position: fixed;
    top: 78px;
    left: 50%;
    z-index: 1300;
    max-width: calc(100% - 32px);
    padding: 12px 16px;
    border-radius: 11px;
    background: #101828;
    color: white;
    font-size: 13px;
    font-weight: 800;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -10px);
    transition: .2s ease;
}
.menu-toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 850px) {
    .category-navigation { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .product-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .main-offer { min-height: 330px; }
    .main-offer-copy { min-height: 330px; }
}

@media (max-width: 620px) {
    .menu-home { padding-bottom: 96px; }
    .menu-home .navbar { padding: 10px 14px; }
    .menu-home .navbar-container { gap: 10px; }
    .menu-home .logo-mark { width: 40px; height: 40px; }
    .menu-home .brand-copy strong { max-width: 190px; font-size: 14px; }
    .menu-home .nav-client-name { display: none; }
    .menu-main { width: min(100% - 24px, 1080px); padding-top: 14px; }
    .service-context { display: grid; gap: 14px; padding: 14px; }
    .service-context-copy { align-items: flex-start; }
    .service-context-icon { width: 42px; height: 42px; }
    .service-context-copy strong { font-size: 18px; }
    .service-context-copy small { font-size: 12px; }
    .service-context-actions { display: grid; grid-template-columns: 1fr 1fr; }
    .service-context-actions .context-action:only-child { grid-column: 1 / -1; }
    .context-action { min-height: 42px; padding: 0 10px; }
    .service-context--delivery {
        height: 205px;
        min-height: 205px;
        padding: 0;
        border-width: 6px;
        border-radius: 20px;
    }
    .service-context--delivery::after {
        background:
            linear-gradient(90deg, rgba(0, 0, 0, .34) 0%, rgba(0, 0, 0, .12) 14%, rgba(0, 0, 0, 0) 29%, rgba(0, 0, 0, .34) 46%, rgba(0, 0, 0, .60) 64%, rgba(0, 0, 0, .70) 100%),
            radial-gradient(circle at 8% 50%, rgba(0, 0, 0, .28), transparent 34%),
            linear-gradient(180deg, rgba(0, 0, 0, .10), rgba(0, 0, 0, .04) 42%, rgba(0, 0, 0, .24) 100%);
    }
    .service-context--delivery::before {
        box-shadow:
            inset 22px 0 24px rgba(0, 0, 0, .30),
            inset -36px 0 46px rgba(0, 0, 0, .36),
            inset 0 -26px 34px rgba(0, 0, 0, .28);
    }
    .service-context--delivery .service-context-media {
        height: 100%;
        min-height: 205px;
    }
    .service-context--delivery .service-context-media img {
        object-position: 34% center;
    }
    .service-context--delivery .service-context-copy {
        width: 50%;
        padding: 26px 9px 62px 20px;
        gap: 7px;
    }
    .service-context--delivery .service-context-label {
        min-height: 23px;
        padding: 0 8px;
        font-size: 8.5px;
        white-space: nowrap;
    }
    .service-context--delivery .service-context-copy strong {
        font-size: clamp(22px, 7vw, 28px);
    }
    .service-context--delivery .service-context-copy small {
        max-width: 96%;
        font-size: 10.5px;
        line-height: 1.25;
    }
    .service-context--delivery .service-context-actions {
        right: 11px;
        bottom: 12px;
        display: flex;
        width: calc(50% - 20px);
    }
    .service-context--delivery .context-action {
        width: 100%;
        min-width: 0;
        min-height: 42px;
        gap: 7px;
        padding: 0 10px;
        font-size: 11px;
    }
    .service-context--delivery .context-action i {
        width: 19px;
        height: 19px;
        font-size: 14px;
    }
    .service-context--delivery .context-action::after {
        font-size: 14px;
    }
    .menu-intro { padding: 25px 2px 14px; }
    .menu-intro h1 { font-size: 28px; }
    .menu-intro p { font-size: 13px; }
    .desktop-status-link { display: none; }
    .menu-home .search-label { display: none; }
    .menu-home .search-input { font-size: 14px; }
    .menu-section { padding-top: 28px; }
    .menu-section-heading h2 { font-size: 21px; }
    .category-navigation {
        display: flex;
        gap: 10px;
        margin-right: -12px;
        padding-right: 12px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }
    body.show-categories-only .category-navigation {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        margin-right: 0;
        padding-right: 0;
        overflow: visible;
        scroll-snap-type: none;
        scrollbar-width: auto;
    }
    .category-navigation::-webkit-scrollbar,
    .product-row::-webkit-scrollbar { display: none; }
    .category-tile {
        grid-template-columns: 52px 1fr;
        flex: 0 0 150px;
        min-height: 98px;
        align-content: center;
        scroll-snap-align: start;
    }
    body.show-categories-only .category-tile {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 8px;
        flex: 0 1 auto;
        min-height: 116px;
        padding: 10px 7px;
        text-align: center;
        scroll-snap-align: none;
    }
    body.show-categories-only .category-tile-image { width: 52px; height: 52px; border-radius: 13px; }
    body.show-categories-only .category-tile strong { max-width: 100%; font-size: 12px; line-height: 1.2; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
    .category-tile > i { display: none; }
    .main-offer { height: 176px; min-height: 176px; margin-top: 16px; border-radius: 14px; background: #071b35; border-color: rgba(207, 224, 255, .22); box-shadow: 0 14px 28px rgba(16, 42, 86, .14); }
    .main-offer-slide { display: grid; grid-template-columns: 47% 53%; padding: 0; background: linear-gradient(135deg, #102a56, #071b35); }
    .main-offer-slide::after { display: none; }
    .main-offer-copy { grid-column: 1; grid-row: 1; width: auto; height: 176px; min-height: 176px; justify-content: flex-start; padding: 14px 10px 10px 12px; overflow: hidden; }
    .main-offer-copy > span { font-size: 8px; color: #9cc0ff; letter-spacing: .05em; }
    .main-offer-copy h2 { max-width: 100%; min-height: 36px; margin: 10px 0 3px; font-size: 16px; line-height: 1.08; text-shadow: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .main-offer-copy p { max-width: 100%; min-height: 26px; margin: 0; font-size: 10px; line-height: 1.25; color: #dbe7ff; text-shadow: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .main-offer-copy h2.banner-typewriter.is-writing { display: block; height: 36px; overflow: hidden; -webkit-line-clamp: unset; -webkit-box-orient: initial; }
    .main-offer-copy p.banner-typewriter.is-writing { display: block; height: 26px; margin: 0; overflow: hidden; -webkit-line-clamp: unset; -webkit-box-orient: initial; }
    .main-offer-copy a { max-width: 100%; margin-top: 8px; padding: 7px 9px; border-radius: 8px; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .main-offer-media {
        position: relative;
        inset: auto;
        grid-column: 2;
        grid-row: 1;
        z-index: 1;
        height: 176px;
        min-height: 176px;
        padding: 0;
        overflow: hidden;
        background: #f8fafc;
        border-left: 1px solid rgba(255, 255, 255, .12);
    }
    .main-offer-media img {
        width: 100%;
        height: 100%;
        max-height: none;
        object-fit: cover;
        object-position: center center;
    }
    .product-row {
        display: flex;
        gap: 11px;
        margin-right: -12px;
        padding-right: 12px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }
    .menu-product-card { flex: 0 0 210px; scroll-snap-align: start; }
    .popular-list { grid-template-columns: 1fr; }
    .public-review-row {
        display: flex;
        gap: 11px;
        margin-right: -12px;
        padding-right: 12px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }
    .public-review-row::-webkit-scrollbar { display: none; }
    .home-review-card {
        flex: 0 0 190px;
        gap: 7px;
        padding: 12px;
        border-radius: 13px;
        scroll-snap-align: start;
    }
    .home-review-avatar {
        width: 32px;
        height: 32px;
        border-radius: 9px;
        font-size: 12px;
    }
    .home-review-head { gap: 8px; }
    .home-review-head strong { font-size: 13px; }
    .home-review-head small { font-size: 11px; }
    .home-review-stars { font-size: 12px; }
    .home-review-breakdown { display: none; }
    .home-review-card p {
        font-size: 12px;
        line-height: 1.4;
    }
    .home-review-text {
        -webkit-line-clamp: 2;
    }
    .home-review-photo {
        height: 62px;
        border-radius: 9px;
    }
    .review-text-toggle {
        font-size: 11px;
    }
    .public-reviews-section:not(.show-all) .home-review-card:nth-child(n+4) {
        display: none;
    }
    .public-reviews-section.show-all .public-review-row {
        display: grid;
        grid-template-columns: 1fr;
        margin-right: 0;
        padding-right: 0;
        overflow: visible;
    }
    .public-reviews-section.show-all .home-review-card {
        flex: auto;
    }
    .popular-item { grid-template-columns: 54px minmax(0, 1fr) auto; }
    .popular-item img { width: 54px; height: 54px; }
    .popular-item > i { display: none; }
    .popular-item b { font-size: 13px; }
    .menu-help-card { grid-template-columns: auto minmax(0, 1fr); }
    .menu-help-card > a { grid-column: 2; }
    .mobile-bottom-nav { display: grid; }
}

@media (max-width: 380px) {
    .menu-home .brand-copy strong { max-width: 135px; }
    .service-context-actions { grid-template-columns: 1fr; }
    .context-action { width: 100%; }
    .service-context--delivery {
        height: 198px;
        min-height: 198px;
    }
    .service-context--delivery .service-context-media { min-height: 198px; }
    .service-context--delivery .service-context-copy {
        width: 51%;
        padding-top: 28px;
        padding-left: 18px;
        padding-bottom: 64px;
    }
    .service-context--delivery .service-context-label {
        min-height: 22px;
        padding: 0 7px;
        font-size: 7.5px;
    }
    .service-context--delivery .service-context-copy strong {
        font-size: 22px;
    }
    .service-context--delivery .service-context-copy small {
        font-size: 9.5px;
    }
    .service-context--delivery .service-context-actions {
        width: calc(51% - 22px);
    }
    .service-context--delivery .context-action {
        min-height: 40px;
        gap: 5px;
        font-size: 9.5px;
        padding: 0 7px;
    }
}

/* ===== CHAT FLUTUANTE DO CLIENTE ===== */
.client-chat-widget {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1200;
    font-family: inherit;
}

.client-chat-fab {
    position: relative;
    width: 62px;
    height: 62px;
    display: inline-grid;
    place-items: center;
    border: 0;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--menu-accent, #2563eb), #111827);
    color: #fff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, .28);
    cursor: pointer;
}

.client-chat-fab i {
    font-size: 22px;
}

.client-chat-fab [data-chat-badge] {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 24px;
    height: 24px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
}

.client-chat-panel {
    position: absolute;
    right: 0;
    bottom: 78px;
    width: min(380px, calc(100vw - 28px));
    height: min(560px, calc(100vh - 120px));
    display: grid;
    grid-template-rows: auto 1fr auto;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, .95);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .25);
}

.client-chat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(135deg, var(--menu-accent, #2563eb), #111827);
    color: #fff;
}

.client-chat-head strong {
    display: block;
    font-size: 16px;
}

.client-chat-head small {
    display: block;
    margin-top: 3px;
    color: rgba(255, 255, 255, .78);
    font-size: 12px;
    font-weight: 700;
}

.client-chat-close {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 11px;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    cursor: pointer;
}

.client-chat-body {
    min-height: 0;
    overflow-y: auto;
    padding: 16px;
    background: #f8fafc;
}

.client-chat-empty {
    min-height: 190px;
    display: grid;
    place-content: center;
    gap: 6px;
    color: #64748b;
    text-align: center;
}

.client-chat-empty strong {
    color: #0f172a;
    font-size: 17px;
}

.client-chat-row {
    display: flex;
    margin-bottom: 10px;
}

.client-chat-row.mine {
    justify-content: flex-end;
}

.client-chat-message {
    max-width: 82%;
    padding: 10px 12px;
    border-radius: 15px;
    background: #fff;
    color: #111827;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .07);
}

.client-chat-row.mine .client-chat-message {
    background: var(--menu-accent, #2563eb);
    color: #fff;
}

.client-chat-message p {
    margin: 0;
    line-height: 1.42;
    overflow-wrap: anywhere;
}

.client-chat-message small {
    display: block;
    margin-top: 5px;
    color: #64748b;
    font-size: 10px;
    font-weight: 900;
}

.client-chat-row.mine small {
    color: rgba(255, 255, 255, .78);
}

.client-chat-form {
    display: grid;
    grid-template-columns: 1fr 44px;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid #e2e8f0;
    background: #fff;
}

.client-chat-form input {
    min-width: 0;
    height: 44px;
    border: 1px solid #e2e8f0;
    border-radius: 13px;
    padding: 0 13px;
    color: #111827;
    font-weight: 800;
}

.client-chat-form button {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 13px;
    background: var(--menu-accent, #2563eb);
    color: #fff;
    cursor: pointer;
}

@media (max-width: 720px) {
    .client-chat-widget {
        right: 14px;
        bottom: 86px;
    }

    .client-chat-panel {
        bottom: 74px;
        height: min(520px, calc(100vh - 174px));
    }
}
/* Delivery GPS capture */
.delivery-location-box {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid #bfdbfe;
    border-radius: 14px;
    background: #eff6ff;
}

.delivery-location-box strong {
    display: block;
    color: #0f172a;
    font-size: 14px;
    margin-bottom: 4px;
}

.delivery-location-box span {
    display: block;
    color: #075985;
    font-size: 12px;
    line-height: 1.4;
}

.delivery-location-box span.is-ok {
    color: #047857;
}

.delivery-location-box span.is-error {
    color: #b42318;
}

.delivery-location-box button {
    min-height: 42px;
    border: 0;
    border-radius: 11px;
    background: #155eef;
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.delivery-location-box button:disabled {
    opacity: .65;
    cursor: not-allowed;
}
