:root {
    --color-bg: #fbf3ef;
    --color-text: #2b2320;
    --color-accent: #a9683f;
    --color-accent-dark: #7c4a2a;
    --color-card: #ffffff;
    --color-border: #e6d9cf;
    --radius: 14px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    direction: rtl;
}

body {
    padding-bottom: 84px; /* leave room for sticky cart bar */
}

a {
    color: var(--color-accent-dark);
}

/* ============================================================
   Header
   ============================================================ */

header.site-header {
    position: relative;
    padding: 20px 16px 8px;
    text-align: center;
}

.back-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--color-accent-dark);
    background: var(--color-card);
    border: 1px solid var(--color-border);
}

header.site-header h1 {
    margin: 0 0 4px;
    font-size: 1.6rem;
}

header.site-header p {
    margin: 0;
    color: #6b5c50;
    font-size: 0.95rem;
}

main {
    padding: 8px 12px 24px;
    max-width: 640px;
    margin: 0 auto;
}

.page--placeholder {
    text-align: center;
    padding: 60px 20px;
}

.section-intro {
    text-align: center;
    font-size: 0.95rem;
    color: #5b4d42;
    margin: 12px 0 18px;
}

.menu-intro {
    text-align: center;
    font-size: 0.9rem;
    color: #5b4d42;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 10px 14px;
    margin: 4px 0 16px;
    line-height: 1.5;
}

.date-picker-form .btn {
    margin-top: 16px;
}

.order-summary__title {
    margin: 0 0 10px;
    font-size: 1rem;
    text-align: center;
    color: var(--color-text);
}

.whatsapp-btn {
    display: inline-block;
    width: 100%;
    text-align: center;
    background: #25d366;
    color: #fff;
    padding: 12px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 20px;
}

/* ============================================================
   Consent Banner
   ============================================================ */

.consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--color-text);
    color: #fff;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.85rem;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}

.consent-banner p {
    margin: 0;
    flex: 1;
}

.consent-banner a {
    color: #e8c5a0;
    text-decoration: underline;
}

.consent-banner .btn {
    flex-shrink: 0;
    font-size: 0.85rem;
    padding: 6px 16px;
}

/* ============================================================
   Hero Section & Carousel
   ============================================================ */

.hero {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 400px;
    max-height: 600px;
    overflow: hidden;
}

.hero__carousel {
    position: absolute;
    inset: 0;
}

.hero__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.hero__slide--active {
    opacity: 1;
}

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

.hero__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom, rgba(0,0,0,0.35), rgba(0,0,0,0.55));
    color: #fff;
    text-align: center;
    padding: 20px;
}

.hero__title {
    font-size: 3rem;
    font-weight: 800;
    margin: 0 0 8px;
    letter-spacing: 2px;
}

.hero__subtitle {
    font-size: 1.1rem;
    margin: 0 0 6px;
    opacity: 0.9;
}

.hero__location {
    font-size: 0.9rem;
    margin: 0 0 28px;
    opacity: 0.75;
}

.hero__cta {
    display: inline-block;
    background: var(--color-accent);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 14px 36px;
    font-size: 1.15rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s, opacity 0.2s;
}

.hero__cta--disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* ============================================================
   Levona Hero
   ============================================================ */

.hero--levona {
    position: relative;
    width: 100%;
    height: 260px;
    overflow: hidden;
}

@media (min-width: 641px) {
    .hero--levona {
        max-width: 640px;
        margin: 0 auto;
    }
}

.hero--levona__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero--levona__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 32px 16px 16px;
    text-align: center;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.7) 45%, rgba(255, 255, 255, 0) 100%);
    color: var(--color-text);
}

.hero--levona__title {
    margin: 0 0 6px;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--color-accent-dark);
}

.hero--levona__subtitle {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #5b4d42;
}

/* ============================================================
   About Section
   ============================================================ */

.about {
    padding: 40px 16px 20px;
}

.about__inner {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.about__inner h2 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--color-accent-dark);
}

.about__inner p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #5b4d42;
    margin: 0 0 12px;
}

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
    background: var(--color-text);
    color: rgba(255,255,255,0.7);
    padding: 12px 16px;
    font-size: 0.8rem;
    text-align: center;
    margin-top: 20px;
}

.site-footer__inner {
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 16px;
}

.site-footer a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
}

.site-footer a:hover {
    color: #fff;
    text-decoration: underline;
}

.site-footer__copy {
    color: rgba(255,255,255,0.5);
}

/* ============================================================
   Menu
   ============================================================ */

.menu-category h2 {
    font-size: 1.2rem;
    margin: 20px 0 10px;
    border-right: 4px solid var(--color-accent);
    padding-right: 10px;
}

.menu-item {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 14px;
}

.menu-item__header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
}

.menu-item__name {
    font-weight: 600;
    font-size: 1.05rem;
}

.menu-item__price {
    color: var(--color-accent-dark);
    font-weight: 700;
    white-space: nowrap;
}

.menu-item__description {
    color: #5b4d42;
    font-size: 0.88rem;
    margin: 6px 0 10px;
    line-height: 1.4;
}

.option-group {
    margin-bottom: 8px;
}

.option-group__label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #6b5c50;
    margin-bottom: 4px;
}

.option-group label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-inline-end: 12px;
    font-size: 0.9rem;
}

.menu-item__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
}

.qty-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-control button {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: #fff;
    font-size: 1rem;
    line-height: 1;
}

button.btn,
.menu-item__footer button.add-btn {
    background: var(--color-accent);
    color: #fff;
    border: 1px solid var(--color-accent);
    border-radius: 999px;
    padding: 8px 18px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

button.btn:disabled {
    opacity: 0.5;
}

.menu-item__footer button.add-btn--added {
    background: #fff;
    color: var(--color-accent);
}

.cart-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: var(--color-accent-dark);
    color: #fff;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.15);
}

.cart-bar a, .cart-bar button {
    color: #fff;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: 999px;
    padding: 8px 16px;
    text-decoration: none;
    font-size: 0.9rem;
}

/* ============================================================
   Checkout Form
   ============================================================ */

.checkout-form label {
    display: block;
    margin: 12px 0 4px;
    font-weight: 600;
    font-size: 0.9rem;
}

.checkout-form input,
.checkout-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 1rem;
}

/* Marketing consent checkbox label */
.checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 8px;
    font-weight: 400 !important;
    font-size: 0.88rem !important;
    margin: 14px 0 8px !important;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    flex-shrink: 0;
    accent-color: var(--color-accent);
}

/* Privacy notice next to the order form */
.privacy-notice {
    background: #f5f0eb;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 10px 12px;
    margin: 14px 0 8px;
    font-size: 0.82rem;
    line-height: 1.5;
    color: #6b5c50;
}

.privacy-notice p {
    margin: 0;
}

.privacy-notice a {
    color: var(--color-accent-dark);
    font-weight: 600;
}

/* Payment success link */
.notice__payment-link {
    margin-top: 10px;
}

.notice__payment-link a {
    font-weight: 600;
    color: var(--color-accent-dark);
}

/* ============================================================
   Order Summary
   ============================================================ */

.order-summary {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin: 16px 0;
}

.order-summary__row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 0.92rem;
}

.order-summary__row--total {
    font-weight: 700;
    border-top: 1px solid var(--color-border);
    margin-top: 6px;
    padding-top: 8px;
}

.cart-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--color-border);
}

.cart-line:last-of-type {
    border-bottom: none;
}

.cart-line__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cart-line__name {
    font-weight: 600;
    font-size: 0.95rem;
}

.cart-line__options {
    font-size: 0.8rem;
    color: #6b5c50;
}

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

.cart-line__price {
    font-weight: 600;
    white-space: nowrap;
    min-width: 48px;
    text-align: left;
}

.remove-btn {
    background: none;
    border: none;
    color: #b03030;
    font-size: 1rem;
    cursor: pointer;
    padding: 4px;
}

.notice {
    background: #fff4e5;
    border: 1px solid #f0c987;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.88rem;
    margin: 14px 0;
}

.notice--success {
    background: #eef7ee;
    border-color: #a8d3a8;
}

.notice--error {
    background: #fbecec;
    border-color: #e3a9a9;
}

/* ============================================================
   Payment Form
   ============================================================ */

.payment-form fieldset {
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 16px;
    margin: 0;
    opacity: 0.65;
}

.payment-form legend {
    font-weight: 700;
    font-size: 1.05rem;
    padding: 0 8px;
    color: var(--color-accent-dark);
}

.payment-form__row {
    display: flex;
    gap: 12px;
}

.payment-form__row > div {
    flex: 1;
}

.payment-form input:disabled {
    background: #f9f6f3;
    color: #999;
}

.payment-secure-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.82rem;
    color: #6b5c50;
    margin-top: 12px;
}

.btn--block {
    display: block;
    width: 100%;
    margin-top: 16px;
    text-align: center;
}

/* Nayax Hosted Payment Page iframe */
.payment-iframe-wrap {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 8px;
    margin: 16px 0;
}

.payment-iframe {
    display: block;
    width: 100%;
    height: 680px;
    border: 0;
    border-radius: 10px;
    background: #fff;
}

/* ============================================================
   Legal Pages (Terms & Privacy)
   ============================================================ */

.legal-page {
    line-height: 1.7;
    font-size: 0.92rem;
    padding-bottom: 40px;
}

.legal-page h2 {
    font-size: 1.4rem;
    color: var(--color-accent-dark);
    margin: 32px 0 12px;
    border-right: 4px solid var(--color-accent);
    padding-right: 10px;
}

.legal-page h3 {
    font-size: 1.1rem;
    margin: 20px 0 8px;
    color: var(--color-text);
}

.legal-page ol {
    padding-right: 20px;
}

.legal-page ol li {
    margin-bottom: 6px;
}

.legal-page p {
    margin: 8px 0;
}

.legal-intro {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 12px 16px;
    margin-bottom: 16px;
}

.legal-nav {
    display: flex;
    gap: 12px;
    margin: 16px 0;
}

.legal-nav a {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    padding: 8px 18px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-accent-dark);
}

/* ============================================================
   Utility
   ============================================================ */

[x-cloak] { display: none !important; }
