:root {
    --bg: #edf4ff;
    --surface: #ffffff;
    --surface-2: #e7f0ff;
    --text: #14233c;
    --muted: #607494;
    --text-soft: #58708f;
    --primary: #2d6cdf;
    --primary-dark: #163f88;
    --accent: #8ccfff;
    --border: #c8dbf7;
    --success: #1c7a66;
    --shadow: 0 18px 40px rgba(22, 63, 136, 0.12);
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}


body.theme-client-3 {
    --bg: #eef8f0;
    --surface: #ffffff;
    --surface-2: #e8f6ec;
    --text: #163224;
    --muted: #5a7464;
    --text-soft: #5b7663;
    --primary: #2f8f4e;
    --primary-dark: #1d6334;
    --accent: #9bd8aa;
    --border: #c9e4cf;
    --success: #2f8f4e;
}

body.theme-client-3 .site-header {
    background:
        radial-gradient(circle at top right, rgba(155, 216, 170, 0.28), transparent 24%),
        linear-gradient(135deg, #1d6334 0%, #2f8f4e 48%, #68c27b 100%);
}

body.theme-client-3 .cart-button strong,
body.theme-client-3 .whatsapp-icon circle {
    color: var(--primary-dark);
}

body.theme-client-3 .hero-whatsapp-link,
body.theme-client-3 .brand-logo {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.18);
}

body.theme-client-3 .menu-card,
body.theme-client-3 .empty-state-card {
    border: 1px solid rgba(47, 143, 78, 0.18);
}

body.theme-client-3 .menu-image-wrap {
    background: linear-gradient(180deg, #f4fcf6 0%, #ddf4e3 100%);
}

body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(180deg, #f7fbff 0%, var(--bg) 34%, #ffffff 100%);
    color: var(--text);
}

img {
    max-width: 100%;
    display: block;
}

button,
select,
input,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    background:
        radial-gradient(circle at top right, rgba(140, 207, 255, 0.28), transparent 24%),
        linear-gradient(135deg, #0f2f68 0%, #2757b5 48%, #4ea1ff 100%);
    color: #f8fbff;
    padding-bottom: 28px;
}

.topbar {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 18px;
    padding: 22px 0 8px;
}

.brand-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-logo {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(6px);
    font-size: 1.6rem;
}

.eyebrow {
    margin: 0 0 4px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.9;
}

.brand-title,
.hero-copy h2,
.section-head h3,
.checkout-header h3,
.cart-header h3 {
    margin: 0;
}

.brand-title {
    font-size: clamp(1.25rem, 2vw, 1.9rem);
}

.cart-button,
.primary-button,
.secondary-button,
.add-to-cart,
.icon-button,
.secondary-link {
    border: 0;
    border-radius: 999px;
    transition: 0.2s ease;
}

.cart-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    padding: 12px 16px;
    font-weight: 700;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.cart-button:hover,
.primary-button:hover,
.secondary-button:hover,
.add-to-cart:hover,
.secondary-link:hover,
.icon-button:hover {
    transform: translateY(-1px);
}

.cart-button strong {
    min-width: 28px;
    height: 28px;
    display: inline-grid;
    place-items: center;
    background: #fff;
    color: var(--primary-dark);
    border-radius: 999px;
    padding: 0 8px;
}

.hero {
    padding: 20px 0 8px;
}

.hero-copy {
    max-width: 760px;
    background: rgba(248, 252, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 28px;
    padding: 28px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.1);
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 14px;
}

.hero-copy h2 {
    font-size: clamp(1.7rem, 4vw, 3rem);
    line-height: 1.08;
    margin-bottom: 10px;
}

.hero-copy p {
    margin: 0;
    max-width: 60ch;
    color: rgba(248, 252, 255, 0.92);
}

.hero-whatsapp-link {
    margin-top: 16px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 10px 14px;
    font-weight: 700;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}

.hero-whatsapp-link:hover {
    background: rgba(255, 255, 255, 0.2);
}

.categories-nav-wrap,
.category-block {
    margin-top: 28px;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 14px;
    margin-bottom: 16px;
}

.section-head p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.categories-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.categories-nav a,
.secondary-link {
    text-decoration: none;
    color: var(--primary-dark);
    background: var(--surface-2);
    border: 1px solid var(--border);
    padding: 11px 16px;
    font-weight: 600;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.menu-card,
.empty-state-card {
    background: var(--surface);
    border: 1px solid rgba(219, 184, 157, 0.45);
    border-radius: var(--radius-lg);
    padding: 14px;
    box-shadow: var(--shadow);
}

.menu-image-wrap {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 18px;
    background: linear-gradient(180deg, #f5faff 0%, #dcecff 100%);
    border: 1px solid var(--border);
}

.menu-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.menu-info {
    padding: 14px 4px 8px;
}

.menu-info h4 {
    margin: 0 0 8px;
    font-size: 1rem;
    min-height: 2.8em;
}

.product-description {
    margin: 0 0 10px;
    font-size: 0.88rem;
    line-height: 1.45;
    color: var(--text-soft);
    min-height: 2.55em;
}

.price {
    margin: 0;
    color: var(--primary-dark);
    font-size: 1.05rem;
    font-weight: 700;
}

.add-to-cart,
.primary-button,
.secondary-button {
    width: 100%;
    padding: 13px 18px;
    font-weight: 700;
}

.add-to-cart,
.primary-button {
    background: var(--primary);
    color: #fff;
}

.add-to-cart:hover,
.primary-button:hover {
    background: var(--primary-dark);
}

.secondary-button,
.secondary-link {
    background: var(--surface-2);
    color: var(--primary-dark);
    border: 1px solid var(--border);
}

.icon-button {
    background: var(--surface-2);
    color: var(--primary-dark);
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
}

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(9, 24, 52, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: 0.25s ease;
    z-index: 40;
}

.overlay.show {
    opacity: 1;
    visibility: visible;
}

.cart-drawer,
.checkout-modal {
    position: fixed;
    z-index: 50;
    background: var(--surface);
    box-shadow: 0 24px 70px rgba(11, 33, 74, 0.22);
    transition: 0.28s ease;
}

.cart-drawer {
    top: 0;
    right: 0;
    width: min(420px, 100%);
    height: 100vh;
    transform: translateX(102%);
    display: grid;
    grid-template-rows: auto 1fr auto;
}

.cart-drawer.show {
    transform: translateX(0);
}

.checkout-modal {
    left: 50%;
    top: 50%;
    width: min(820px, calc(100% - 24px));
    max-height: calc(100vh - 24px);
    overflow: auto;
    transform: translate(-50%, -48%) scale(0.98);
    opacity: 0;
    visibility: hidden;
    border-radius: 28px;
}

.checkout-modal.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    visibility: visible;
}

.cart-header,
.cart-footer,
.checkout-header,
.checkout-form {
    padding: 20px;
}

.cart-header,
.checkout-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid #dde8f9;
}

.cart-body {
    overflow: auto;
    padding: 16px 20px;
}

.cart-items {
    display: grid;
    gap: 12px;
}

.cart-item {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px;
    border: 1px solid #dde8f9;
    border-radius: 20px;
    padding: 10px;
    background: #fbfdff;
}

.cart-item img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 14px;
}

.cart-item h4 {
    margin: 0 0 6px;
    font-size: 0.96rem;
}

.cart-item .mini-price {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.qty-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.qty-controls button {
    min-width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--primary-dark);
    font-weight: 700;
}

.remove-link {
    color: #1c4f9c;
    background: none;
    border: 0;
    padding: 0;
    font-weight: 700;
}

.cart-summary-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.cart-summary-line:last-child {
    margin-bottom: 0;
}

.grand-total {
    padding-top: 12px;
    border-top: 1px dashed #bdd2f3;
    font-size: 1.08rem;
}

.empty-cart {
    background: #f5f9ff;
    border: 1px dashed #b9d0f3;
    padding: 18px;
    border-radius: 18px;
    color: var(--muted);
}

.checkout-form {
    display: grid;
    gap: 18px;
}

.form-grid,
.coords-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.form-group {
    display: grid;
    gap: 8px;
}

.form-group-full {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea,
.readonly-box {
    width: 100%;
    border: 1px solid #d4e2f8;
    background: #fcfdff;
    border-radius: 16px;
    padding: 14px 16px;
    color: var(--text);
}

.readonly-box {
    font-weight: 700;
    color: var(--primary-dark);
}

.helper-text,
.map-notice {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.cash-change-wrap {
    margin-top: 12px;
}

.readonly-box-error {
    color: #a11f1f;
    border-color: #efb3b3;
    background: #fff1f1;
}

.invoice-section {
    display: grid;
    gap: 14px;
    border: 1px solid #dde8f9;
    border-radius: 22px;
    padding: 18px;
    background: #f7fbff;
}

.section-head-mini {
    margin-bottom: 0;
}

.section-head-mini h4 {
    margin: 0 0 6px;
}

.location-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.map-box {
    width: 100%;
    min-height: 320px;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: #eef5ff;
    margin-bottom: 14px;
}

.hidden {
    display: none !important;
}

.site-footer {
    margin-top: 28px;
    padding: 28px 0 36px;
}

.footer-content {
    color: var(--muted);
    font-size: 0.95rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 22px;
    text-align: center;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.footer-content p {
    margin: 0;
}

.footer-content a {
    color: var(--primary-dark);
    font-weight: 700;
    text-decoration: none;
}

.footer-content a:hover {
    text-decoration: underline;
}

.empty-message {
    color: var(--muted);
}


.schedule-overlay {
    position: fixed;
    inset: 0;
    background: rgba(9, 24, 52, 0.58);
    opacity: 0;
    visibility: hidden;
    transition: 0.25s ease;
    z-index: 90;
}

.schedule-overlay.show {
    opacity: 1;
    visibility: visible;
}

.schedule-modal {
    position: fixed;
    left: 50%;
    top: 50%;
    width: min(760px, calc(100% - 24px));
    max-height: calc(100vh - 24px);
    overflow: auto;
    transform: translate(-50%, -48%) scale(0.98);
    opacity: 0;
    visibility: hidden;
    z-index: 100;
    background: var(--surface);
    border-radius: 28px;
    box-shadow: 0 28px 70px rgba(11, 33, 74, 0.26);
}

.schedule-modal.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    visibility: visible;
}

.schedule-modal-header,
.schedule-modal-body {
    padding: 20px;
}

.schedule-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid #dde8f9;
}

.schedule-modal-copy,
.schedule-current-status,
.schedule-modal-note {
    margin: 0 0 12px;
}

.schedule-current-status {
    color: var(--primary-dark);
}

.schedule-modal-note {
    color: var(--muted);
    font-size: 0.93rem;
}

.schedule-table-wrap {
    margin: 16px 0;
    border: 1px solid #dde8f9;
    border-radius: 20px;
    overflow: hidden;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
}

.schedule-table th,
.schedule-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid #dde8f9;
}

.schedule-table thead th {
    background: #eef5ff;
    color: var(--primary-dark);
}

.schedule-table tbody tr:last-child td {
    border-bottom: 0;
}

.schedule-table tbody tr.is-today td {
    background: #f5f9ff;
    font-weight: 700;
}


@media (max-width: 860px) {
    .checkout-modal,
    .schedule-modal {
        width: calc(100% - 16px);
        max-height: calc(100vh - 16px);
        border-radius: 22px;
    }
}

@media (max-width: 700px) {
    .container {
        width: min(100% - 20px, 1180px);
    }

    .topbar,
    .section-head {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-copy {
        padding: 22px;
    }

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

    .form-grid,
    .coords-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .menu-grid {
        grid-template-columns: 1fr;
    }

    .cart-drawer {
        width: 100%;
    }

    .hero-copy h2 {
        font-size: 1.7rem;
    }
}


.cart-toast {
    position: fixed;
    left: 50%;
    bottom: 96px;
    transform: translate(-50%, 16px);
    background: rgba(22, 63, 136, 0.96);
    color: #fff;
    padding: 14px 18px;
    border-radius: 999px;
    box-shadow: 0 16px 35px rgba(22, 63, 136, 0.22);
    font-weight: 700;
    z-index: 75;
    opacity: 0;
    visibility: hidden;
    transition: 0.22s ease;
    max-width: min(calc(100% - 24px), 560px);
    text-align: center;
}

.cart-toast.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.floating-cart-button {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 70;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 0;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    padding: 14px 18px;
    font-weight: 700;
    box-shadow: 0 18px 36px rgba(22, 63, 136, 0.24);
}

.floating-cart-button:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.floating-cart-button strong {
    min-width: 30px;
    height: 30px;
    display: inline-grid;
    place-items: center;
    background: #fff;
    color: var(--primary-dark);
    border-radius: 999px;
    padding: 0 8px;
}

.floating-cart-button.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(12px);
}


@media (max-width: 700px) {
    .cart-toast {
        bottom: 150px;
        font-size: 0.92rem;
        border-radius: 18px;
    }

    .floating-cart-button {
        top: calc(env(safe-area-inset-top, 0px) + 10px);
        right: 12px;
        left: 12px;
        bottom: auto;
        justify-content: center;
        padding-top: 12px;
        padding-bottom: 12px;
    }
}


.whatsapp-icon {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 22px;
}

.whatsapp-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.restaurant-hours {
    margin-top: 12px !important;
    font-size: 0.95rem;
    color: rgba(248, 252, 255, 0.92);
}


.brand-title-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.title-whatsapp-link {
    margin-top: 0;
    padding: 9px 14px;
    font-size: 0.95rem;
}

.desktop-only {
    display: inline-flex;
}

.mobile-only {
    display: none;
}

.vivero-hero-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.vivero-hero-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 100%;
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.vivero-hero-card h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.vivero-hero-card p {
    margin: 0;
    max-width: none;
    font-size: 0.88rem;
    line-height: 1.55;
}

.vivero-hero-card-last {
    position: relative;
}

.vivero-more-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    text-decoration: none;
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    padding: 10px 14px;
    font-weight: 700;
}

.vivero-more-link:hover {
    background: rgba(255, 255, 255, 0.22);
}

body.theme-client-3 .hero-copy {
    max-width: none;
}

@media (max-width: 700px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: inline-flex;
    }

    .brand-title-row-vivero {
        display: block;
    }
}
