
/* =========================================================
   KOCO KITCHEN — GLOBAL STYLES
   Palette: Konkani Earth
   Coffee | Laterite | Turmeric | Jute | Olive
   ========================================================= */

/* ---------------------------------------------------------
   1. COLOUR VARIABLES
   --------------------------------------------------------- */

:root {
    --kokan-coffee: #1E3D2F;
    --kokan-coffee-dark: #142B21;
    --kokan-coffee-soft: #2C5541;
    --kokan-laterite: #1E4D36;
    --kokan-laterite-hover: #143726;
    --kokan-turmeric: #E0A93B;
    --kokan-turmeric-light: #F2C14E;
    --kokan-jute: #EADFC6;
    --kokan-jute-light: #F3EBD8;
    --kokan-ivory: #FAF4E6;
    --kokan-white: #FFFDF7;
    --kokan-olive: #4F6E5D;
    --kokan-olive-dark: #3B5A4A;
    --kokan-olive-light: #E3ECE4;
    --kokan-text: #2A2620;
    --kokan-muted: #5B5446;
    --kokan-border: #E7DCC4;
    --kokan-shadow: 0 8px 24px rgba(30, 61, 47, 0.08);
    --kokan-shadow-hover: 0 14px 32px rgba(30, 61, 47, 0.14);
    --kokan-radius: 12px;
    --kokan-radius-lg: 20px;
    --kokan-transition: 0.25s ease;
}


/* ---------------------------------------------------------
   2. GLOBAL RESET AND BASE
   --------------------------------------------------------- */

html {
    min-height: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    margin: 0;
    background-color: var(--kokan-ivory);
    color: var(--kokan-text);
    font-family: Inter, "Segoe UI", system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

main {
    flex: 1 0 auto;
    min-width: 0;
    min-height: 0;
}

img {
    max-width: 100%;
}

a {
    color: var(--kokan-laterite);
    text-decoration: none;
    transition: color var(--kokan-transition);
}

    a:hover {
        color: var(--kokan-olive-dark);
    }

p {
    margin-bottom: 1rem;
    color: var(--kokan-muted);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--kokan-coffee);
    font-family: "Bricolage Grotesque", "Segoe UI", sans-serif;
    font-weight: 700;
    line-height: 1.25;
}

h1 {
    font-size: clamp(2.2rem, 5vw, 3.7rem);
}

h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.7rem);
}

h3 {
    font-size: clamp(1.3rem, 2.5vw, 1.75rem);
}

::selection {
    background-color: var(--kokan-turmeric-light);
    color: var(--kokan-coffee-dark);
}

:focus-visible {
    outline: 3px solid var(--kokan-turmeric);
    outline-offset: 3px;
}


/* ---------------------------------------------------------
   3. NAVBAR
   --------------------------------------------------------- */

.kokan-navbar {
    position: relative;
    z-index: 100;
    padding: 10px 0;
    background-color: var(--kokan-jute);
    border-bottom: 1px solid rgba(30, 61, 47, 0.12);
    box-shadow: 0 3px 14px rgba(30, 61, 47, 0.05);
}

    .kokan-navbar .container {
        min-height: 72px;
    }

.kokan-brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    padding: 0;
    margin-right: 24px;
}

/* Preserve the original transparent logo unchanged. */
.kokan-logo {
    display: block;
    width: 170px;
    height: 70px;
    object-fit: contain;
    object-position: left center;
    background: transparent;
    mix-blend-mode: normal;
    opacity: 1;
}

.kokan-navbar .navbar-nav {
    gap: 4px;
}

.kokan-navbar .nav-link {
    position: relative;
    padding: 10px 11px;
    color: var(--kokan-coffee);
    font-size: 0.96rem;
    font-weight: 500;
    transition: color var(--kokan-transition), background-color var(--kokan-transition);
}

    .kokan-navbar .nav-link::after {
        position: absolute;
        right: 11px;
        bottom: 4px;
        left: 11px;
        height: 2px;
        background-color: var(--kokan-laterite);
        content: "";
        transform: scaleX(0);
        transform-origin: left;
        transition: transform var(--kokan-transition);
    }

    .kokan-navbar .nav-link:hover,
    .kokan-navbar .nav-link.active {
        color: var(--kokan-laterite);
    }

        .kokan-navbar .nav-link:hover::after,
        .kokan-navbar .nav-link.active::after {
            transform: scaleX(1);
        }

.kokan-navbar .navbar-toggler {
    padding: 7px 10px;
    border: 1px solid var(--kokan-coffee-soft);
    border-radius: 8px;
}

    .kokan-navbar .navbar-toggler:focus {
        box-shadow: 0 0 0 3px rgba(51, 106, 80, 0.15);
    }

.kokan-navbar .navbar-toggler-icon {
    filter: sepia(0.8) saturate(0.7);
}


/* ---------------------------------------------------------
   4. SHARED BUTTONS
   --------------------------------------------------------- */

.btn {
    border-radius: 9px;
    font-weight: 600;
    transition: background-color var(--kokan-transition), border-color var(--kokan-transition), color var(--kokan-transition), box-shadow var(--kokan-transition), transform var(--kokan-transition);
}

.btn-order {
    padding: 11px 20px;
    background-color: var(--kokan-coffee);
    border: 1px solid var(--kokan-coffee);
    color: var(--kokan-white);
    white-space: nowrap;
}

    .btn-order:hover,
    .btn-order:focus {
        background-color: var(--kokan-laterite);
        border-color: var(--kokan-laterite);
        color: #FFFFFF;
        box-shadow: 0 5px 14px rgba(30, 61, 47, 0.16);
        transform: translateY(-1px);
    }

.btn-primary {
    padding: 12px 24px;
    background-color: var(--kokan-laterite);
    border-color: var(--kokan-laterite);
    color: #FFFFFF;
}

    .btn-primary:hover,
    .btn-primary:focus {
        background-color: var(--kokan-laterite-hover);
        border-color: var(--kokan-laterite-hover);
        color: #FFFFFF;
    }

.btn-secondary {
    padding: 12px 24px;
    background-color: var(--kokan-olive);
    border-color: var(--kokan-olive);
    color: #FFFFFF;
}

    .btn-secondary:hover,
    .btn-secondary:focus {
        background-color: var(--kokan-olive-dark);
        border-color: var(--kokan-olive-dark);
        color: #FFFFFF;
    }

.btn-outline-primary {
    border-color: var(--kokan-laterite);
    color: var(--kokan-laterite);
}

    .btn-outline-primary:hover {
        background-color: var(--kokan-laterite);
        border-color: var(--kokan-laterite);
        color: #FFFFFF;
    }

.btn-outline-dark {
    border-color: var(--kokan-coffee);
    color: var(--kokan-coffee);
}

    .btn-outline-dark:hover {
        background-color: var(--kokan-coffee);
        border-color: var(--kokan-coffee);
        color: #FFFFFF;
    }


/* ---------------------------------------------------------
   5. SHARED SECTION HEADINGS
   --------------------------------------------------------- */

.section-heading {
    max-width: 760px;
    margin: 0 auto 44px;
    text-align: center;
}

    .section-heading .eyebrow {
        display: block;
        margin-bottom: 12px;
        color: var(--kokan-laterite);
        font-size: 0.78rem;
        font-weight: 700;
        letter-spacing: 2px;
        text-transform: uppercase;
    }

    .section-heading h2 {
        margin-bottom: 16px;
    }

    .section-heading p {
        max-width: 650px;
        margin: 0 auto;
        font-size: 1.02rem;
    }


/* ---------------------------------------------------------
   6. REUSABLE CONTENT SECTIONS
   --------------------------------------------------------- */

.content-section {
    padding: 84px 0;
    background-color: var(--kokan-ivory);
}

    .content-section.section-white {
        background-color: var(--kokan-white);
    }

    .content-section.section-jute {
        background-color: var(--kokan-jute-light);
    }

    .content-section.section-olive {
        background-color: var(--kokan-olive-light);
    }

    .content-section.section-coffee {
        background-color: var(--kokan-coffee);
        color: var(--kokan-white);
    }

.section-coffee h1,
.section-coffee h2,
.section-coffee h3,
.section-coffee h4 {
    color: var(--kokan-jute-light);
}

.section-coffee p {
    color: #E8DCCB;
}


/* ---------------------------------------------------------
   7. REUSABLE CARDS
   --------------------------------------------------------- */

.kokan-card,
.dish-card,
.food-culture-card,
.feature-card {
    height: 100%;
    overflow: hidden;
    background-color: var(--kokan-white);
    border: 1px solid var(--kokan-border);
    border-radius: var(--kokan-radius);
    box-shadow: var(--kokan-shadow);
    transition: transform var(--kokan-transition), box-shadow var(--kokan-transition), border-color var(--kokan-transition);
}

    .kokan-card:hover,
    .dish-card:hover,
    .food-culture-card:hover,
    .feature-card:hover {
        border-color: var(--kokan-turmeric);
        box-shadow: var(--kokan-shadow-hover);
        transform: translateY(-5px);
    }

    .kokan-card img,
    .dish-card img,
    .food-culture-card img {
        display: block;
        width: 100%;
        aspect-ratio: 4 / 3;
        object-fit: cover;
    }

.kokan-card-body,
.dish-card-body,
.food-culture-card-body,
.feature-card-body {
    padding: 24px;
}

.kokan-card h3,
.dish-card h3,
.food-culture-card h3,
.feature-card h3 {
    margin-bottom: 12px;
    font-size: 1.35rem;
}

.kokan-card p,
.dish-card p,
.food-culture-card p,
.feature-card p {
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--kokan-laterite);
    font-weight: 700;
}

    .card-link:hover {
        color: var(--kokan-olive-dark);
    }


/* ---------------------------------------------------------
   8. SHARED BADGES
   --------------------------------------------------------- */

.dish-category,
.food-label {
    display: inline-block;
    padding: 5px 11px;
    background-color: var(--kokan-olive-light);
    border-radius: 50px;
    color: var(--kokan-olive-dark);
    font-size: 0.78rem;
    font-weight: 700;
}

    .dish-category.spicy,
    .food-label.spicy {
        background-color: #DEEBE2;
        color: var(--kokan-laterite);
    }

    .dish-category.traditional,
    .food-label.traditional {
        background-color: var(--kokan-jute-light);
        color: var(--kokan-coffee);
    }

.dish-price {
    color: var(--kokan-laterite);
    font-size: 1.15rem;
    font-weight: 700;
}


/* ---------------------------------------------------------
   9. FOOD DETAIL INFORMATION PANELS
   --------------------------------------------------------- */

.info-panel {
    padding: 24px;
    background-color: var(--kokan-white);
    border: 1px solid var(--kokan-border);
    border-left: 4px solid var(--kokan-olive);
    border-radius: var(--kokan-radius);
}

    .info-panel h3,
    .info-panel h4 {
        margin-bottom: 12px;
    }

    .info-panel p:last-child {
        margin-bottom: 0;
    }

.tradition-panel {
    padding: 24px;
    background-color: var(--kokan-jute-light);
    border-radius: var(--kokan-radius);
}

.nutrition-panel {
    padding: 24px;
    background-color: var(--kokan-olive-light);
    border-radius: var(--kokan-radius);
}

.caution-panel {
    padding: 20px 24px;
    background-color: #F7E8DD;
    border-left: 4px solid var(--kokan-laterite);
    border-radius: var(--kokan-radius);
}

    .caution-panel h3,
    .caution-panel h4 {
        color: var(--kokan-laterite);
    }

.allergen-note {
    color: var(--kokan-coffee-soft);
    font-size: 0.9rem;
}


/* ---------------------------------------------------------
   10. SHARED DECORATIVE PANELS
   --------------------------------------------------------- */

.heritage-panel {
    padding: 36px;
    background-color: var(--kokan-coffee);
    border-radius: var(--kokan-radius-lg);
    color: var(--kokan-jute-light);
}

    .heritage-panel h2,
    .heritage-panel h3 {
        color: var(--kokan-jute-light);
    }

    .heritage-panel p {
        color: #E8DCCB;
    }

    .heritage-panel .accent {
        color: var(--kokan-turmeric-light);
    }

.quote-panel {
    padding: 32px;
    background-color: var(--kokan-olive-light);
    border-left: 4px solid var(--kokan-olive);
    border-radius: var(--kokan-radius);
}

    .quote-panel blockquote {
        margin: 0;
        color: var(--kokan-coffee);
        font-family: "Bricolage Grotesque", "Segoe UI", sans-serif;
        font-size: 1.3rem;
        font-style: italic;
    }

    .quote-panel cite {
        display: block;
        margin-top: 14px;
        color: var(--kokan-olive-dark);
        font-size: 0.9rem;
        font-style: normal;
        font-weight: 600;
    }


/* ---------------------------------------------------------
   11. SHARED CONTACT CARDS
   --------------------------------------------------------- */

.contact-card {
    height: 100%;
    padding: 28px;
    background-color: var(--kokan-white);
    border: 1px solid var(--kokan-border);
    border-radius: var(--kokan-radius);
    box-shadow: var(--kokan-shadow);
}

    .contact-card h3 {
        margin-bottom: 14px;
    }

    .contact-card a {
        color: var(--kokan-laterite);
        font-weight: 600;
    }

        .contact-card a:hover {
            color: var(--kokan-olive-dark);
        }


/* ---------------------------------------------------------
   12. FORMS
   --------------------------------------------------------- */

.form-label {
    color: var(--kokan-coffee);
    font-weight: 600;
}

.form-control,
.form-select {
    min-height: 46px;
    background-color: var(--kokan-white);
    border: 1px solid var(--kokan-border);
    border-radius: 8px;
    color: var(--kokan-text);
}

textarea.form-control {
    min-height: 130px;
}

.form-control:focus,
.form-select:focus {
    background-color: var(--kokan-white);
    border-color: var(--kokan-olive);
    box-shadow: 0 0 0 3px rgba(115, 116, 75, 0.14);
    color: var(--kokan-text);
}

.form-control::placeholder {
    color: #9A8B7C;
}


/* ---------------------------------------------------------
   13. ALERTS
   --------------------------------------------------------- */

.alert-success {
    background-color: var(--kokan-olive-light);
    border-color: #D0D4B8;
    color: var(--kokan-olive-dark);
}

.alert-warning {
    background-color: #F7EBD3;
    border-color: var(--kokan-turmeric-light);
    color: var(--kokan-coffee);
}

.alert-danger {
    background-color: #F7E8DD;
    border-color: #E4B6A4;
    color: var(--kokan-laterite-hover);
}


/* ---------------------------------------------------------
   14. FOOTER (layout "FB · Info tiles", 2026-11-21)
   At the end of the page (not pinned to the screen). A green card with the hours, pickup and
   delivery as tiles (from the Contact settings) and Order on WhatsApp; then one row with the
   brand, page links and contact icons; then copyright, Privacy and Terms.
   Nothing is pinned to the bottom of the screen now, so --koco-footer-h is unset (0).
   --------------------------------------------------------- */

.kokan-footer {
    padding: 26px 0 18px;
    border-top: 1px solid #E7DCC4;
    background: #F3EBD8;
    color: #5B5446;
    font-size: 0.9rem;
    line-height: 1.5;
}

body { padding-bottom: var(--koco-footer-h, 0px); }

@media (min-width: 1200px) {
    .kokan-footer .footer-inner { max-width: 1320px; }
}

.footer-card {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px 20px;
    align-items: center;
    padding: 20px 24px;
    border-radius: 22px;
    background: #1E3D2F;
}

.footer-fact {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #E4ECE4;
    font-size: 0.92rem;
    line-height: 1.45;
}

    .footer-fact b {
        display: block;
        margin-bottom: 2px;
        color: #F2C14E;
        font-size: 0.74rem;
        letter-spacing: 0.1em;
        text-transform: uppercase;
    }

/* One row per line (the hours: "11 AM – 2 PM", "4 PM – 8 PM", "Closed Monday"). */
.footer-fact-row {
    display: block;
    white-space: nowrap;
}

.footer-fact-icon {
    display: grid;
    flex: 0 0 40px;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(242, 193, 78, 0.15);
    color: #F2C14E;
}

.footer-whatsapp {
    justify-self: end;
    padding: 13px 20px;
    border-radius: 12px;
    background: #F2C14E;
    color: #1E3D2F;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
}

    .footer-whatsapp:hover { background: #FFD36A; color: #1E3D2F; }
    .footer-whatsapp:focus-visible { outline: 3px solid #FAF4E6; outline-offset: 2px; }

.footer-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 24px;
    margin-top: 18px;
}

.footer-brand {
    flex: 0 0 auto;
    color: #1E3D2F;
    font-family: "Bricolage Grotesque", "Segoe UI", sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

    .footer-brand:hover { color: #142B21; }

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 18px;
}

    .footer-nav a { color: #1E3D2F; font-weight: 600; text-decoration: none; }
    .footer-nav a:hover { color: #1E3D2F; text-decoration: underline; text-underline-offset: 4px; }

.footer-links {
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
    margin-left: auto;
}

.footer-icon-link {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #1E3D2F;
    color: #F2C14E;
    transition: background-color .18s ease, color .18s ease;
}

    .footer-icon-link:hover,
    .footer-icon-link:focus-visible {
        background: #F2C14E;
        color: #1E3D2F;
    }

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 4px 16px;
    margin: 12px 0 0;
    color: #5B5446;
    font-size: 0.8rem;
}

    .footer-legal a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
    .footer-legal a:hover { color: #1E3D2F; }

/* Leave room for the back-to-top button, which sits over the bottom-right corner. */
@media (min-width: 992px) {
    .footer-legal { padding-right: 60px; }
}

@media (max-width: 991.98px) {
    .footer-card { grid-template-columns: 1fr; padding: 16px; border-radius: 18px; }
    .footer-whatsapp { justify-self: stretch; }
    .footer-row { flex-direction: column; align-items: flex-start; gap: 10px; }
    .footer-links { margin-left: 0; }
    .footer-legal { justify-content: flex-start; padding-right: 60px; }
}

@media print {
    body { padding-bottom: 0; }
}


/* ---------------------------------------------------------
   15. UTILITY CLASSES
   --------------------------------------------------------- */

.text-kokan-coffee {
    color: var(--kokan-coffee) !important;
}

.text-kokan-laterite {
    color: var(--kokan-laterite) !important;
}

.text-kokan-olive {
    color: var(--kokan-olive-dark) !important;
}

.text-kokan-muted {
    color: var(--kokan-muted) !important;
}

.bg-kokan-ivory {
    background-color: var(--kokan-ivory) !important;
}

.bg-kokan-jute {
    background-color: var(--kokan-jute-light) !important;
}

.bg-kokan-olive {
    background-color: var(--kokan-olive-light) !important;
}

.bg-kokan-coffee {
    background-color: var(--kokan-coffee) !important;
}

.border-kokan {
    border-color: var(--kokan-border) !important;
}

.rounded-kokan {
    border-radius: var(--kokan-radius) !important;
}


/* ---------------------------------------------------------
   16. TABLET RESPONSIVE STYLES
   --------------------------------------------------------- */

@media (max-width: 991.98px) {
    .kokan-navbar .navbar-collapse {
        padding: 16px 0 8px;
    }

    .kokan-navbar .navbar-nav {
        align-items: stretch !important;
        gap: 2px;
    }

    .kokan-navbar .nav-link {
        padding: 10px 12px;
    }

        .kokan-navbar .nav-link::after {
            right: auto;
            bottom: 4px;
            left: 12px;
            width: 34px;
        }

    .kokan-navbar .nav-item .btn-order {
        display: inline-block;
        margin-top: 8px;
    }

    .kokan-logo {
        width: 150px;
        height: 64px;
    }

    .content-section {
        padding: 68px 0;
    }

    .section-heading {
        margin-bottom: 34px;
    }
}


/* ---------------------------------------------------------
   17. MOBILE RESPONSIVE STYLES
   --------------------------------------------------------- */

@media (max-width: 575.98px) {
    body {
        font-size: 15px;
    }

    .kokan-navbar {
        padding: 7px 0;
    }

        .kokan-navbar .container {
            min-height: 62px;
        }

    .kokan-logo {
        width: 125px;
        height: 56px;
    }

    .content-section {
        padding: 54px 0;
    }

    .section-heading {
        margin-bottom: 28px;
    }

        .section-heading h2 {
            font-size: 1.9rem;
        }

    .kokan-card-body,
    .dish-card-body,
    .food-culture-card-body,
    .feature-card-body {
        padding: 20px;
    }

    .heritage-panel,
    .quote-panel {
        padding: 24px;
    }

    .contact-card {
        padding: 22px;
    }
}


/* ---------------------------------------------------------
   18. REDUCED MOTION
   --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


/* Back-to-top button */
.back-to-top {
    position: fixed;
    right: max(20px, env(safe-area-inset-right));
    bottom: calc(var(--koco-footer-h, 0px) + max(16px, env(safe-area-inset-bottom)));
    z-index: 1030;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 1px solid var(--kokan-turmeric-light);
    border-radius: 50%;
    background: var(--kokan-coffee);
    color: var(--kokan-white);
    box-shadow: 0 4px 14px rgb(0 0 0 / 18%);
    font-size: 1.55rem;
    line-height: 1;
    cursor: pointer;
    opacity: 1;
    transition: background-color .2s ease, transform .2s ease;
}

    .back-to-top:hover {
        background: var(--kokan-laterite);
        transform: translateY(-2px);
    }

    .back-to-top:focus-visible {
        outline: 3px solid var(--kokan-turmeric);
        outline-offset: 3px;
    }

    .back-to-top[hidden] {
        display: none !important;
    }

@media (max-width: 575.98px) {
    .back-to-top {
        right: 14px;
        bottom: calc(var(--koco-footer-h, 0px) + 12px);
        width: 44px;
        height: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .back-to-top {
        transition: none;
    }
}


/* Message and confirmation pop-ups: styles in the "POP-UPS (layout W4)" block at the end of this file. */

.btn-koco-primary {
    min-width: 90px;
    border: 1px solid var(--message-accent, var(--kokan-laterite));
    border-radius: 24px;
    padding: 9px 22px;
    background: var(--message-accent, var(--kokan-laterite));
    color: #fff;
    font-weight: 600;
    transition: filter .2s ease, transform .2s ease;
}

.btn-koco-primary:hover {
    filter: brightness(.92);
    color: #fff;
    transform: translateY(-1px);
}

.btn-koco-secondary {
    border: 1px solid var(--kokan-coffee);
    border-radius: 24px;
    padding: 9px 18px;
    background: transparent;
    color: var(--kokan-coffee);
}

.btn-koco-secondary:hover {
    background: var(--kokan-jute-light);
    color: var(--kokan-coffee-dark);
}



/* ---------------------------------------------------------
   KOCO NAVBAR REFINEMENT — balanced desktop navigation
   --------------------------------------------------------- */
.kokan-navbar {
    padding: 8px 0;
}

.kokan-navbar > .container,
.kokan-navbar > .container-fluid {
    min-height: 72px;
}

.kokan-navbar .kokan-brand {
    margin-right: 18px;
}

.kokan-navbar .kokan-logo {
    width: 142px;
    height: 66px;
}

.kokan-navbar .navbar-nav {
    gap: 2px;
}

.kokan-navbar .nav-item {
    flex: 0 0 auto;
}

.kokan-navbar .nav-link {
    padding: 9px 9px;
    font-size: .91rem;
    line-height: 1.25;
    white-space: nowrap;
}

.kokan-navbar .nav-link::after {
    right: 9px;
    left: 9px;
    bottom: 3px;
}

.kokan-navbar .koco-nav-action {
    margin-left: 8px;
}

.kokan-navbar .btn-order {
    min-height: 42px;
    padding: 10px 15px;
    font-size: .9rem;
}

.kokan-navbar .koco-header-cart {
    min-height: 42px;
    padding: 8px 13px;
    font-size: .9rem;
}

@media (min-width: 1200px) {
    .kokan-navbar .navbar-collapse {
        min-width: 0;
    }

    .kokan-navbar .navbar-nav {
        flex-wrap: nowrap;
    }
}

@media (max-width: 1199.98px) {
    .kokan-navbar .container-fluid {
        padding-right: 22px !important;
        padding-left: 22px !important;
    }

    .kokan-navbar .navbar-collapse {
        padding: 12px 0 8px;
    }

    .kokan-navbar .navbar-nav {
        align-items: stretch !important;
        gap: 2px;
    }

    .kokan-navbar .nav-link {
        padding: 10px 12px;
        white-space: normal;
    }

    .kokan-navbar .koco-nav-action {
        margin: 6px 0 0 !important;
    }

    .kokan-navbar .koco-header-cart,
    .kokan-navbar .btn-order {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 575.98px) {
    .kokan-navbar .kokan-logo {
        width: 126px;
        height: 60px;
    }

    .kokan-navbar .container-fluid {
        padding-right: 16px !important;
        padding-left: 16px !important;
    }
}

/* Keep the complete site header visible while the document scrolls.
   Sticky is applied to the header wrapper (not the nav inside it), so
   the sticky element is not constrained to the navbar's own height. */
.koco-site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    width: 100%;
    isolation: isolate;
    flex: 0 0 auto;
}

.koco-site-header .kokan-navbar {
    position: relative;
    top: auto;
    z-index: auto;
    width: 100%;
}

/* Legal and status pages: "INFO PAGES (layout I2)" block at the end of this file. */

/* Menu price and chilli heat indicator (dish cards, dish details popup, thali builder) */
.dish-price-row { flex-wrap: wrap; }
.dish-price {
    color: var(--kokan-laterite);
    font-family: "Bricolage Grotesque", "Segoe UI", sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.2;
}
.dish-price.is-tbc { font-family: inherit; font-size: .85rem; }
.dish-price[hidden] { display: none; }
.dish-portion {
    margin-left: .15rem;
    color: var(--kokan-muted);
    font-family: Inter, "Segoe UI", system-ui, sans-serif;
    font-size: .78rem;
    font-weight: 600;
}
.spice-level {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    color: #C0392B;
    white-space: nowrap;
}
.spice-chilli { color: #E6D6C4; flex: 0 0 auto; }
.spice-chilli.is-on { color: #C0392B; }
.spice-level-text {
    margin-left: .35rem;
    color: var(--kokan-muted);
    font-size: .74rem;
    font-weight: 650;
}
/* Shared pagination (Views/Shared/_Pagination.cshtml): dishes and ladoo pages */
.dish-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 32px 0;
}

.dish-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    padding: 8px 13px;
    border: 1px solid var(--kokan-border);
    border-radius: 8px;
    background: var(--kokan-white);
    color: var(--kokan-coffee);
    text-decoration: none;
}

    .dish-page-link.active {
        border-color: var(--kokan-laterite);
        background: var(--kokan-laterite);
        color: var(--kokan-white);
    }

    .dish-page-link.disabled {
        opacity: 0.45;
        cursor: not-allowed;
        pointer-events: none;
    }

/* =========================================================
   Dish details popup (Views/Shared/_DishDetailsModal.cshtml)
   Photo left, details right, quantity + "Add to cart · total" footer.
   Used on the Dishes page and the custom thali builder, so it lives here.
   ========================================================= */
.kd-modal {
    --kd-line: #EADCC6;
    --kd-card: #FFFDF7;
}
.kd-modal .kd-dialog {
    width: min(1040px, calc(100vw - 2rem));
    max-width: none;
    margin-inline: auto;
}
.kd-modal .kd-content {
    position: relative;
    /* Fixed height on desktop so opening a fold-out never resizes the popup or the photo. */
    height: min(680px, calc(100vh - 3.5rem));
    overflow: hidden;
    border: 1px solid rgba(51, 106, 80, .16);
    border-radius: 22px;
    background: var(--kd-card);
    box-shadow: 0 24px 70px rgba(23, 38, 31, .28);
}
.kd-modal .kd-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    display: inline-grid;
    width: 38px;
    height: 38px;
    place-items: center;
    padding: 0;
    border: 1px solid var(--kd-line);
    border-radius: 50%;
    background: rgba(255, 252, 247, .94);
    color: var(--kokan-coffee);
    transition: background-color .15s ease, color .15s ease;
}
.kd-modal .kd-close:hover,
.kd-modal .kd-close:focus-visible { background: var(--kokan-coffee); color: #fff; outline: 0; }

/* Two columns. The photo fills the full height of the left column; only the
   details column scrolls, so there is never empty space under the photo. */
.kd-modal .kd-body {
    display: grid;
    grid-template-columns: minmax(0, 45%) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    min-height: 0;
    padding: 0;
    overflow: hidden;
}
.kd-modal .kd-media { min-height: 0; background: var(--kokan-jute-light); }
.kd-modal .kd-media-inner { position: relative; height: 100%; }
.kd-modal .kd-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: var(--kokan-jute-light);
}
.kd-modal .kd-image[hidden] { display: none; }
/* Placeholder artwork (SVG) is shown whole rather than cropped like a photo. */
.kd-modal .kd-image[src$=".svg"] { object-fit: contain; padding: 12%; }
.kd-modal .kd-gallery {
    position: absolute;
    bottom: 12px;
    left: 12px;
    display: flex;
    gap: 6px;
}
.kd-modal .kd-gallery[hidden] { display: none; }
.kd-modal .kd-gallery .dish-gallery-thumbnail {
    width: 46px;
    height: 46px;
    padding: 0;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, .7);
    border-radius: 10px;
    background: #fff;
    opacity: .85;
}
.kd-modal .kd-gallery .dish-gallery-thumbnail.is-active { border-color: #fff; opacity: 1; box-shadow: 0 0 0 2px var(--kokan-laterite); }
.kd-modal .kd-gallery img { width: 100%; height: 100%; object-fit: cover; }

.kd-modal .kd-details {
    min-width: 0;
    min-height: 0;
    padding: 28px 32px 24px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #D7C4A8 transparent;
}

/* Tags */
.kd-modal .kd-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 44px 12px 0; }
.kd-modal .kd-tag {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin: 0;
    padding: .22rem .65rem;
    border-radius: 999px;
    background: #F3EBDD;
    color: var(--kokan-muted);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .02em;
}
.kd-modal .kd-tag[hidden] { display: none; }
.kd-modal .kd-tag-veg { background: #E6F0E3; color: #2E6B31; }
.kd-modal .kd-tag-nonveg { background: #F8E3DF; color: #9B2C21; }
.kd-modal .kd-tag-veg::before,
.kd-modal .kd-tag-nonveg::before { width: .45rem; height: .45rem; border-radius: 50%; background: currentColor; content: ""; }
.kd-modal .kd-tag-available { background: #E6F0E3; color: #2E6B31; }
.kd-modal .kd-tag-unavailable { background: #F3E1DC; color: #8E3B2B; }

/* Title, price, description */
.kd-modal .kd-title {
    margin: 0 0 6px;
    color: var(--kokan-coffee);
    font-family: "Bricolage Grotesque", "Segoe UI", sans-serif;
    font-size: clamp(1.55rem, 3vw, 2rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.01em;
}
.kd-modal .kd-price-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-bottom: 12px; }
.kd-modal .kd-price-row[hidden] { display: none; }
.kd-modal .kd-price {
    color: var(--kokan-laterite);
    font-family: "Bricolage Grotesque", "Segoe UI", sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
}
.kd-modal .kd-price[hidden] { display: none; }
.kd-modal .kd-description { margin: 0 0 16px; color: var(--kokan-text); font-size: .98rem; line-height: 1.6; }

/* Key facts */
.kd-modal .kd-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.kd-modal .kd-fact { padding: 10px 12px; border: 1px solid var(--kd-line); border-radius: 12px; background: #FBF6EE; }
.kd-modal .kd-fact[hidden] { display: none; }
.kd-modal .kd-fact:only-child { grid-column: 1 / -1; }
.kd-modal .kd-fact-label {
    display: flex;
    align-items: center;
    gap: .3rem;
    margin-bottom: 3px;
    color: var(--kokan-muted);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.kd-modal .kd-fact p { margin: 0; color: var(--kokan-text); font-size: .86rem; line-height: 1.45; }
.kd-modal .kd-fact-allergens { border-color: #EBCF97; background: #FCF3E0; }
.kd-modal .kd-fact-allergens .kd-fact-label,
.kd-modal .kd-fact-allergens p { color: #75470C; }

/* Ingredients / story fold-outs */
.kd-modal .kd-more { border-top: 1px solid var(--kd-line); }
.kd-modal .kd-disclosure { border-bottom: 1px solid var(--kd-line); }
.kd-modal .kd-disclosure summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 2px;
    color: var(--kokan-coffee);
    font-size: .92rem;
    font-weight: 700;
    list-style: none;
    cursor: pointer;
}
.kd-modal .kd-disclosure summary::-webkit-details-marker { display: none; }
.kd-modal .kd-disclosure summary::after {
    width: .55rem;
    height: .55rem;
    margin-right: 4px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    content: "";
    transform: rotate(45deg) translateY(-2px);
    transition: transform .15s ease;
}
.kd-modal .kd-disclosure[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.kd-modal .kd-disclosure p { margin: 0 2px 12px; color: var(--kokan-text); font-size: .88rem; line-height: 1.55; }
.kd-modal .kd-disclosure p:empty { display: none; }

/* Footer: stepper + add button */
.kd-modal .kd-footer {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    border-top: 1px solid var(--kd-line);
    background: var(--kd-card);
}
.kd-modal .kd-footer > * { margin: 0; }
.kd-modal .kd-stepper {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--kokan-border);
    border-radius: 999px;
    background: #fff;
}
.kd-modal .kd-step {
    width: 42px;
    height: 48px;
    border: 0;
    background: #F5EBDD;
    color: var(--kokan-coffee);
    font-size: 1.2rem;
    line-height: 1;
}
.kd-modal .kd-step:hover:not(:disabled) { background: #EADBC3; }
.kd-modal .kd-step:disabled { opacity: .4; }
.kd-modal .kd-qty {
    width: 46px;
    height: 48px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--kokan-coffee);
    font-weight: 700;
    text-align: center;
    -moz-appearance: textfield;
}
.kd-modal .kd-qty::-webkit-outer-spin-button,
.kd-modal .kd-qty::-webkit-inner-spin-button { margin: 0; -webkit-appearance: none; }
.kd-modal .kd-qty:focus { outline: 0; box-shadow: inset 0 0 0 2px rgba(214, 164, 93, .5); }
.kd-modal .kd-add {
    flex: 1 1 auto;
    min-height: 50px;
    padding: .6rem 1.4rem;
    border: 0;
    border-radius: 999px;
    background: var(--kokan-laterite);
    color: #fff;
    font-size: 1rem;
    font-weight: 750;
    box-shadow: 0 8px 18px rgba(51, 106, 80, .2);
    transition: background-color .15s ease, transform .15s ease;
}
.kd-modal .kd-add:hover:not(:disabled),
.kd-modal .kd-add:focus-visible { background: var(--kokan-laterite-hover); transform: translateY(-1px); outline: 0; }
.kd-modal .kd-add:disabled { background: #A2B1A7; box-shadow: none; }

/* Phones: stacked, photo on top, footer stays pinned */
@media (max-width: 767.98px) {
    .kd-modal .kd-dialog { width: calc(100vw - 1rem); margin: .5rem auto; }
    /* Stacked: natural height, and the whole body scrolls as one. */
    .kd-modal .kd-content { height: auto; border-radius: 18px; }
    .kd-modal .kd-body { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; overflow-y: auto; }
    .kd-modal .kd-media-inner { height: auto; }
    .kd-modal .kd-image { height: auto; aspect-ratio: 16 / 10; }
    .kd-modal .kd-details { padding: 18px 18px 16px; overflow: visible; }
    .kd-modal .kd-tags { margin-right: 0; }
    .kd-modal .kd-facts { grid-template-columns: minmax(0, 1fr); }
    .kd-modal .kd-footer { padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); }
    .kd-modal .kd-add { padding-inline: 1rem; font-size: .95rem; }
}

/* "Email address copied" note from footer email links (site.js) */
.koco-copy-note {
    position: fixed;
    left: 50%;
    bottom: calc(var(--koco-footer-h, 0px) + 14px);
    z-index: 1040;
    max-width: min(440px, calc(100vw - 32px));
    padding: 10px 16px;
    border-radius: 12px;
    background: var(--kokan-olive-dark, #3B5A4A);
    box-shadow: 0 8px 24px rgb(0 0 0 / 18%);
    color: #FFFFFF;
    font-size: 0.88rem;
    line-height: 1.4;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 8px);
    transition: opacity .2s ease, transform .2s ease;
}

    .koco-copy-note.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------------------------------------------------------
   KONKAN BOLD THEME (2026-11-21, ui-redesign branch)
   Leaf green + turmeric on cream; Bricolage Grotesque headings, Inter text.
   The header stays light so the multi-colour logo reads clearly.
   --------------------------------------------------------- */
.kokan-navbar {
    background-color: var(--kokan-white);
    border-bottom: 3px solid var(--kokan-turmeric-light);
    box-shadow: 0 2px 12px rgba(30, 61, 47, 0.06);
}

.kokan-navbar .nav-link {
    color: var(--kokan-coffee);
    font-weight: 600;
}

.kokan-navbar .nav-link::after {
    height: 3px;
    border-radius: 2px;
    background-color: var(--kokan-turmeric);
}

.kokan-navbar .nav-link:hover,
.kokan-navbar .nav-link.active {
    color: var(--kokan-coffee-dark);
}

h1, h2, h3 {
    letter-spacing: -0.01em;
}

/* Green page band (Konkan Bold): the title strip at the top of menu pages. */
.koco-page-band {
    background: var(--kokan-coffee);
    color: var(--kokan-ivory);
    padding: 34px 0 30px;
}

.koco-page-band-kicker {
    display: block;
    margin-bottom: 4px;
    color: #CFDCCF;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.koco-page-band h1 {
    margin: 0;
    color: var(--kokan-turmeric-light);
    font-size: clamp(2.1rem, 4.5vw, 3.2rem);
    font-weight: 800;
}

.koco-page-band p {
    margin: 6px 0 0;
    color: #E4ECE4;
    font-size: 1.05rem;
}

.koco-page-band + .section-padding {
    padding-top: 28px;
}

@media (max-width: 575.98px) {
    .koco-page-band { padding: 22px 0 20px; }
    .koco-page-band p { font-size: .95rem; }
}

/* Dish pop-up: story box and nutrition tiles + full panel (UI redesign 2026-11-21, layout N2). */
.kd-modal .kd-story {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #FFFDF7;
    border: 1px solid var(--kd-line);
}
.kd-modal .kd-story[hidden] { display: none; }
.kd-modal .kd-story-icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: var(--kokan-turmeric-light);
    color: var(--kokan-coffee-dark);
}
.kd-modal .kd-story h3,
.kd-modal .kd-nutrition h3 {
    margin: 0 0 3px;
    color: var(--kokan-coffee);
    font-size: 1rem;
    font-weight: 700;
}
.kd-modal .kd-story p { margin: 0; color: var(--kokan-text); font-size: .9rem; line-height: 1.55; }

.kd-modal .kd-nutrition { margin-top: 14px; }
.kd-modal .kd-nutrition-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}
.kd-modal #dishModalNutritionServe { color: var(--kokan-muted); font-size: .8rem; }
.kd-modal #dishModalNutrition { margin: 0; color: var(--kokan-text); font-size: .88rem; line-height: 1.55; }
.kd-modal #dishModalNutrition[hidden] { display: none; }

.kd-modal .kd-nutri-tiles {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}
.kd-modal .kd-nutri-tiles[hidden] { display: none; }
.kd-modal .kd-nutri-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 6px 10px;
    border: 1px solid var(--kd-line);
    border-radius: 14px;
    background: #FFFDF7;
    text-align: center;
}
.kd-modal .kd-nutri-tile b {
    color: var(--kokan-coffee);
    font-family: "Bricolage Grotesque", "Segoe UI", sans-serif;
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1.05;
}
.kd-modal .kd-nutri-tile b i { margin-left: 1px; font-size: .8rem; font-style: normal; font-weight: 600; }
.kd-modal .kd-nutri-tile span { margin-top: 3px; color: var(--kokan-text); font-size: .78rem; font-weight: 600; }
.kd-modal .kd-nutri-tile small { color: var(--kokan-muted); font-size: .7rem; line-height: 1.3; }
.kd-modal .kd-nutri-tile small:empty { display: none; }
.kd-modal .kd-nutri-tile.is-energy { border-color: var(--kokan-coffee); background: var(--kokan-coffee); }
.kd-modal .kd-nutri-tile.is-energy b { color: var(--kokan-turmeric-light); }
.kd-modal .kd-nutri-tile.is-energy span { color: var(--kokan-ivory); }
.kd-modal .kd-nutri-tile.is-energy small { color: #CFDCCF; }

.kd-modal .kd-nutri-panel {
    margin-top: 10px;
    padding: 0 14px;
    border: 1px solid var(--kd-line);
    border-radius: 14px;
    background: #FFFDF7;
}
.kd-modal .kd-nutri-panel[hidden] { display: none; }
.kd-modal .kd-nutri-panel summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    color: var(--kokan-laterite);
    font-size: .9rem;
    font-weight: 700;
    list-style: none;
    cursor: pointer;
}
.kd-modal .kd-nutri-panel summary::-webkit-details-marker { display: none; }
.kd-modal .kd-nutri-panel summary::after {
    width: .5rem;
    height: .5rem;
    margin-right: 4px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    content: "";
    transform: rotate(45deg) translateY(-2px);
}
.kd-modal .kd-nutri-panel[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.kd-modal .kd-nutri-panel table { width: 100%; margin-bottom: 8px; border-collapse: collapse; font-size: .86rem; }
.kd-modal .kd-nutri-panel thead th { padding: 0 0 6px; color: var(--kokan-muted); font-size: .74rem; font-weight: 600; text-align: right; }
.kd-modal .kd-nutri-panel tbody th,
.kd-modal .kd-nutri-panel tbody td { padding: 7px 0; border-top: 1px dashed var(--kd-line); }
.kd-modal .kd-nutri-panel tbody th { color: var(--kokan-text); font-weight: 600; text-align: left; }
.kd-modal .kd-nutri-panel tbody td { padding-left: 14px; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kd-modal .kd-nutri-panel tbody td:nth-child(2) { color: var(--kokan-text); font-weight: 600; }
.kd-modal .kd-nutri-panel tbody td:nth-child(3) { color: var(--kokan-muted); }
.kd-modal .kd-nutri-panel tr.is-sub th { padding-left: 16px; color: var(--kokan-muted); font-weight: 400; }
.kd-modal #dishModalNutritionSource { margin: 0 0 12px; color: var(--kokan-muted); font-size: .78rem; }

@media (max-width: 420px) {
    .kd-modal .kd-nutri-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


/* ---------------------------------------------------------
   HEADER (layout "M1 · Clean bar", 2026-11-21)
   Light bar with a turmeric underline. The current page is underlined (_Layout.cshtml sets
   .active and aria-current from the route); Cart (turmeric count) and Order now on the right.
   Below 1200 px the cart stays in the bar next to a green Menu button, and the menu opens as a
   green panel with large links, Order now and the opening hours.
   --------------------------------------------------------- */
.koco-site-header .kokan-navbar { border-bottom: 3px solid #E0A93B; }

.koco-site-header .kokan-navbar .nav-link.active { color: #1E3D2F; font-weight: 700; }
.koco-site-header .kokan-navbar .nav-link.active::after { transform: scaleX(1); background-color: #E0A93B; height: 3px; }

/* Cart: green outline, turmeric count */
.koco-site-header .koco-header-cart { border: 1.5px solid #1E3D2F; background: #FFFDF7; color: #1E3D2F; }
.koco-site-header .koco-header-cart:hover,
.koco-site-header .koco-header-cart:focus-visible { background: #1E3D2F; color: #FAF4E6; }
.koco-site-header .koco-header-cart .koco-header-cart-count,
.koco-site-header .koco-header-cart:hover .koco-header-cart-count,
.koco-site-header .koco-header-cart:focus-visible .koco-header-cart-count { background: #E0A93B; color: #1E3D2F; }

/* Order now */
.koco-site-header .btn-order { border: 0; border-radius: 12px; background: #1E3D2F; color: #FAF4E6; font-weight: 700; }
.koco-site-header .btn-order:hover,
.koco-site-header .btn-order:focus { background: #142B21; color: #FAF4E6; }

/* Below 1200 px: cart and Menu button in the bar */
.koco-bar-actions { display: none; }
.koco-menu-hours { display: none; }

@media (max-width: 1199.98px) {
    .koco-bar-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

    .koco-bar-cart {
        position: relative;
        display: grid;
        place-items: center;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 1.5px solid #1E3D2F;
        border-radius: 12px;
        background: #FFFDF7;
        color: #1E3D2F;
    }

    .koco-bar-cart:focus-visible { outline: 3px solid #E0A93B; outline-offset: 2px; }

    .koco-bar-cart-count {
        position: absolute;
        top: -7px;
        right: -7px;
        display: grid;
        place-items: center;
        min-width: 21px;
        height: 21px;
        padding: 0 5px;
        border-radius: 999px;
        background: #E0A93B;
        color: #1E3D2F;
        font-size: .72rem;
        font-weight: 700;
    }

    .koco-site-header .kokan-navbar .koco-menu-toggle {
        display: grid;
        place-items: center;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 0;
        border-radius: 12px;
        background: #1E3D2F;
    }

    .koco-site-header .kokan-navbar .koco-menu-toggle:focus { box-shadow: 0 0 0 3px rgba(224, 169, 59, .5); }

    /* Three lines, turning into a cross while the menu is open */
    .koco-menu-icon,
    .koco-menu-icon::before,
    .koco-menu-icon::after {
        display: block;
        width: 20px;
        height: 2px;
        border-radius: 2px;
        background: #FAF4E6;
        transition: transform .2s ease, background-color .2s ease;
    }

    .koco-menu-icon { position: relative; }
    .koco-menu-icon::before, .koco-menu-icon::after { position: absolute; left: 0; content: ""; }
    .koco-menu-icon::before { top: -6px; }
    .koco-menu-icon::after { top: 6px; }
    .koco-menu-toggle[aria-expanded="true"] .koco-menu-icon { background: transparent; }
    .koco-menu-toggle[aria-expanded="true"] .koco-menu-icon::before { transform: translateY(6px) rotate(45deg); }
    .koco-menu-toggle[aria-expanded="true"] .koco-menu-icon::after { transform: translateY(-6px) rotate(-45deg); }

    /* The cart is in the bar, so not in the menu */
    .koco-site-header .koco-nav-cart { display: none; }

    /* Green menu panel */
    .koco-site-header .kokan-navbar .navbar-collapse {
        margin: 10px -22px -8px;
        padding: 10px 22px 18px;
        background: #1E3D2F;
    }

    .koco-site-header .kokan-navbar .navbar-collapse .nav-link {
        padding: 12px 4px;
        border-bottom: 1px solid rgba(250, 244, 230, .14);
        color: #FAF4E6;
        font-family: "Bricolage Grotesque", "Segoe UI", sans-serif;
        font-size: 1.25rem;
        font-weight: 700;
    }

    .koco-site-header .kokan-navbar .navbar-collapse .nav-link::after { display: none; }
    .koco-site-header .kokan-navbar .navbar-collapse .nav-link:hover,
    .koco-site-header .kokan-navbar .navbar-collapse .nav-link.active { color: #F2C14E; }

    .koco-site-header .kokan-navbar .navbar-collapse .btn-order {
        min-height: 48px;
        margin-top: 10px;
        background: #F2C14E;
        color: #1E3D2F;
    }

    .koco-menu-hours { display: block; margin-top: 12px; color: #C9D6CC; font-size: .85rem; list-style: none; }
    .koco-menu-hours span { display: block; }
}

@media (max-width: 575.98px) {
    .koco-site-header .kokan-navbar .navbar-collapse { margin-right: -16px; margin-left: -16px; padding-right: 16px; padding-left: 16px; }
}

/* =========================================================
   POP-UPS (layout W4 · UI redesign 2026-11-22)
   1. "Enquiry received": a kitchen ticket (_SharedCartModal.cshtml #cart-success-modal).
   2. Messages and questions: white card, coloured top stripe, drawn icon (_Layout #kocoMessageModal, site.js).
   3. "Added to cart": short green bar at the bottom (site.js kocoShowAddedBar).
   ========================================================= */

/* ---- 1. Ticket ---- */
.kt-modal .modal-dialog {
    max-width: 420px;
}

/* The two halves are separate so the notches sit on the tear line whatever the text length;
   the shadow is a drop-shadow, so the notches stay see-through. */
.kt-modal .kt-ticket {
    border: 0;
    border-radius: 0;
    background: transparent;
    filter: drop-shadow(0 18px 30px rgba(20, 43, 33, .28));
    text-align: center;
}

.kt-top,
.kt-bottom {
    --kt-paper: #FFFDF7;
    padding: 26px 26px 18px;
}

.kt-top {
    border-radius: 18px 18px 0 0;
    background:
        radial-gradient(circle 12px at 0 100%, transparent 98%, var(--kt-paper)) left / 51% 100% no-repeat,
        radial-gradient(circle 12px at 100% 100%, transparent 98%, var(--kt-paper)) right / 51% 100% no-repeat;
}

.kt-bottom {
    position: relative;
    padding: 18px 26px 24px;
    border-radius: 0 0 18px 18px;
    background:
        radial-gradient(circle 12px at 0 0, transparent 98%, var(--kt-paper)) left / 51% 100% no-repeat,
        radial-gradient(circle 12px at 100% 0, transparent 98%, var(--kt-paper)) right / 51% 100% no-repeat;
}

.kt-cut {
    height: 0;
    margin: 0 22px;
    border-top: 2px dashed #D9CCAE;
    position: relative;
    z-index: 1;
}

.kt-badge {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin: 0 auto 10px;
    border-radius: 50%;
    background: #1E3D2F;
    color: #F2C14E;
}

.kt-kicker {
    display: block;
    color: #1E4D36;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.kt-title {
    margin: 4px 0 2px;
    color: #1E3D2F;
    font-family: "Bricolage Grotesque", "Segoe UI", sans-serif;
    font-size: 1.65rem;
    font-weight: 800;
}

.kt-number {
    margin-top: 6px;
}

.kt-number[hidden] {
    display: none;
}

.kt-number span {
    display: block;
    color: #5B5446;
    font-size: .85rem;
}

.kt-number strong {
    display: block;
    color: #1E3D2F;
    font-family: "Bricolage Grotesque", "Segoe UI", sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: .02em;
    line-height: 1.1;
}

.kt-bottom p {
    margin: 0 0 8px;
    color: #3E3A31;
    font-size: .9rem;
    line-height: 1.55;
}

.kt-bottom p:empty {
    display: none;
}

.kt-status strong {
    color: #1E3D2F;
}

/* Two equal buttons; each one centres its own text, on one line or two. */
.kt-actions,
.km-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.kt-actions .kt-btn {
    flex: 1 1 0;
}

.kt-btn,
.km-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: .92rem;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
}

.kt-btn-outline,
.km-btn-outline {
    border: 1.5px solid #1E3D2F;
    background: #FFFDF7;
    color: #1E3D2F;
}

.kt-btn-outline:hover,
.kt-btn-outline:focus-visible,
.km-btn-outline:hover,
.km-btn-outline:focus-visible {
    border-color: #1E3D2F;
    background: #F3EBD8;
    color: #1E3D2F;
}

.kt-btn-turmeric {
    border: 0;
    background: #F2C14E;
    color: #1E3D2F;
}

.kt-btn-turmeric:hover,
.kt-btn-turmeric:focus-visible {
    background: #E0A93B;
    color: #142B21;
}

/* ---- 2. Message and question cards ---- */
/* Shown over the cart (e.g. Clear cart?): sit above it, with its own backdrop dimming the cart. */
.km-modal {
    z-index: 1065;
}

.modal-backdrop ~ .modal-backdrop {
    z-index: 1060;
}

.km-modal .modal-dialog {
    max-width: 440px;
}

.km-modal .koco-message-modal {
    --km-stripe: #1E3D2F;
    --km-icon-bg: #E3F0E6;
    --km-icon: #1E3D2F;
    padding: 22px;
    border: 0;
    border-top: 5px solid var(--km-stripe);
    border-radius: 18px;
    background: #FFFDF7;
    color: #2A2620;
    box-shadow: 0 18px 40px rgba(20, 43, 33, .22);
}

.km-modal .koco-message-modal.status-warning {
    --km-stripe: #E0A93B;
    --km-icon-bg: #FFF3CF;
    --km-icon: #8A6D1F;
}

.km-modal .koco-message-modal.status-error {
    --km-stripe: #B3261E;
    --km-icon-bg: #FBE9E7;
    --km-icon: #B3261E;
}

.km-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.km-icon {
    display: grid;
    flex: 0 0 46px;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--km-icon-bg);
    color: var(--km-icon);
}

.km-text {
    flex: 1;
    min-width: 0;
}

.km-title {
    margin: 2px 0 6px;
    color: #1E3D2F;
    font-family: "Bricolage Grotesque", "Segoe UI", sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
}

.km-body {
    margin: 0;
    color: #3E3A31;
    font-size: .92rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.km-actions {
    justify-content: flex-end;
    margin-top: 18px;
}

.km-btn {
    min-width: 96px;
    min-height: 44px;
}

.km-btn-green {
    border: 0;
    background: #1E3D2F;
    color: #FAF4E6;
}

.km-btn-green:hover,
.km-btn-green:focus-visible {
    background: #142B21;
    color: #F2C14E;
}

@media (max-width: 575.98px) {
    .km-modal .modal-dialog,
    .kt-modal .modal-dialog {
        margin: 12px;
    }

    .km-actions .km-btn {
        flex: 1 1 0;
    }
}

/* ---- 3. "Added to cart" bar ---- */
.koco-added-bar {
    position: fixed;
    z-index: 1085;
    left: 50%;
    bottom: calc(var(--koco-footer-h, 0px) + 18px);
    display: flex;
    align-items: center;
    gap: 12px;
    width: min(440px, calc(100vw - 24px));
    padding: 10px 12px 10px 12px;
    border-radius: 14px;
    background: #1E3D2F;
    color: #FAF4E6;
    box-shadow: 0 12px 30px rgba(20, 43, 33, .3);
    font-size: .92rem;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 16px);
    transition: opacity .2s ease, transform .2s ease;
}

.koco-added-bar.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.koco-added-icon {
    display: grid;
    flex: 0 0 32px;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #F2C14E;
    color: #1E3D2F;
}

.koco-added-icon svg {
    width: 18px;
    height: 18px;
}

.koco-added-text {
    flex: 1;
    min-width: 0;
}

.koco-added-view {
    flex: 0 0 auto;
    padding: 8px 10px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #F2C14E;
    font-weight: 700;
    text-decoration: underline;
}

.koco-added-view:hover,
.koco-added-view:focus-visible {
    background: rgba(250, 244, 230, .1);
}

/* The thali builder's own bar is pinned to the bottom on phones: sit just above it. */
@media (max-width: 800px) {
    body:has(.thali-sticky-bar) .koco-added-bar {
        bottom: calc(var(--thali-bar-h, 92px) + 12px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .koco-added-bar {
        transition: none;
    }
}

/* =========================================================
   INFO PAGES (layout I2 · UI redesign 2026-11-22)
   Privacy and Terms: green title band, "On this page" beside the text (_LegalContents.cshtml, legal.js).
   404, Too many attempts, error: an empty plate, a small turmeric label, two buttons (_StatusPlate.cshtml).
   Buttons reuse .kt-btn from the POP-UPS block.
   ========================================================= */

.legal-page {
    background: var(--kokan-ivory);
    color: var(--kokan-text);
    padding: 30px 0 56px;
}

.lg-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    max-width: 1120px;
}

@media (min-width: 992px) {
    .lg-layout {
        grid-template-columns: 260px minmax(0, 1fr);
        gap: 44px;
        align-items: start;
    }

    .lg-toc {
        position: sticky;
        top: 108px;
    }
}

.lg-toc ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.lg-toc a {
    display: block;
    padding: 7px 10px;
    border-radius: 8px;
    color: #1E3D2F;
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
}

.lg-toc a:hover,
.lg-toc a:focus-visible {
    background: #F3EBD8;
}

.lg-toc-list {
    background: #FFFDF7;
    border: 1px solid #E7DCC4;
    border-radius: 16px;
    padding: 18px;
}

.lg-toc-kicker {
    display: block;
    margin: 0 0 8px 10px;
    color: #1E4D36;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.lg-toc-list a.is-current {
    background: #1E3D2F;
    color: #F2C14E;
}

.lg-toc-also {
    margin: 12px 0 0;
    padding: 12px 10px 0;
    border-top: 1px solid #EFE6D2;
    color: #5B5446;
    font-size: .85rem;
}

.lg-toc-also a {
    display: inline;
    padding: 0;
    text-decoration: underline;
}

.lg-toc-also a:hover {
    background: none;
}

.lg-toc-fold {
    background: #FFFDF7;
    border: 1px solid #E7DCC4;
    border-radius: 12px;
}

.lg-toc-fold summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    color: #1E3D2F;
    cursor: pointer;
    font-weight: 700;
    list-style: none;
}

.lg-toc-fold summary::-webkit-details-marker {
    display: none;
}

.lg-toc-fold summary::after {
    content: "▾";
    transition: transform .15s ease;
}

.lg-toc-fold[open] summary::after {
    transform: rotate(180deg);
}

.lg-toc-fold ul {
    padding: 0 6px 8px;
}

.lg-text {
    max-width: 760px;
    color: #3E3A31;
    font-size: 1rem;
    line-height: 1.7;
}

.lg-text .lg-lead {
    color: #2A2620;
    font-size: 1.05rem;
}

.lg-text h2 {
    margin: 30px 0 8px;
    color: #1E3D2F;
    font-family: "Bricolage Grotesque", "Segoe UI", sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    scroll-margin-top: 110px;
}

.lg-text ul {
    padding-left: 1.2rem;
}

.lg-text li {
    margin-bottom: 4px;
}

.lg-text a {
    color: #1E3D2F;
    font-weight: 600;
}

/* ---- Status pages ---- */
.status-page {
    background: var(--kokan-ivory);
    color: var(--kokan-text);
    padding: 56px 0 72px;
}

.st-box {
    max-width: 620px;
}

.st-plate {
    display: grid;
    place-items: center;
    width: 128px;
    height: 128px;
    margin-bottom: 20px;
    border: 10px solid #E7DCC4;
    border-radius: 50%;
    background: #FFFDF7;
    box-shadow: inset 0 0 0 10px #F3EBD8;
}

.st-plate span {
    color: #C9BB98;
    font-family: "Bricolage Grotesque", "Segoe UI", sans-serif;
    font-size: 2rem;
    font-weight: 800;
}

.st-kicker {
    margin: 0;
    color: #E0A93B;
    font-family: "Bricolage Grotesque", "Segoe UI", sans-serif;
    font-size: .95rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.status-page h1 {
    margin: 6px 0 10px;
    color: #1E3D2F;
    font-size: clamp(1.7rem, 4vw, 2.3rem);
    font-weight: 800;
}

.status-page p {
    color: #5B5446;
    font-size: 1.02rem;
    line-height: 1.6;
}

.st-ref {
    font-size: .85rem !important;
}

.st-ref code {
    background: #F3EBD8;
    border-radius: 6px;
    color: #3E3A31;
    padding: 2px 6px;
}

.st-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.st-actions .kt-btn {
    min-width: 170px;
    text-decoration: none;
}

@media (max-width: 575.98px) {
    .status-page {
        padding: 40px 0 56px;
    }

    .st-actions .kt-btn {
        flex: 1 1 0;
        min-width: 0;
    }
}
