/* ============================================================
   EatPal - Luxury layer
   Loads after palette.css and seal-tile.css and refines
   every visible surface: type scale, spacing, hairlines,
   cards, buttons, chips, badges, header, footers.
   Palette: pine #0E5C4B / deep #0A4438 / mist #E6F1ED
            saffron #C8871B / paper #FAF7F2 / line #E7E1D7
            ink #1E2422 / muted #5C635F
   ============================================================ */

:root {
    --ep-pine: #0E5C4B;
    --ep-deep: #0A4438;
    --ep-mist: #E6F1ED;
    --ep-saffron: #C8871B;
    --ep-paper: #FAF7F2;
    --ep-card: #FFFFFF;
    --ep-line: #E7E1D7;
    --ep-ink: #1E2422;
    --ep-muted: #5C635F;
    --ep-r-card: 14px;
    --ep-r-btn: 10px;
    --ep-r-chip: 999px;
    --ep-shadow-rest: 0 1px 2px rgba(28, 25, 23, .05);
    --ep-shadow-hover: 0 10px 28px rgba(14, 92, 75, .10);
    --ep-ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- ground ---------- */
body {
    background: var(--ep-paper) !important;
    color: var(--ep-ink);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
    color: var(--ep-ink);
    letter-spacing: 0;
}

a { transition: color .18s var(--ep-ease); }

::selection { background: var(--ep-mist); color: var(--ep-deep); }

/* ---------- header ---------- */
.header {
    background: rgba(250, 247, 242, .88);
    -webkit-backdrop-filter: saturate(1.2) blur(10px);
    backdrop-filter: saturate(1.2) blur(10px);
    border-bottom: 1px solid var(--ep-line);
    padding-top: 14px;
    padding-bottom: 14px;
}

.header .logo h2 {
    font-weight: 800;
    color: var(--ep-deep);
}

.header .logo small {
    color: var(--ep-muted);
    letter-spacing: 0;
}

.form-header-wrapper input[type="search"],
.form-search-wrapper input[type="search"],
input[type="search"] {
    background: var(--ep-card);
    border: 1px solid var(--ep-line) !important;
    border-radius: 12px;
    height: 48px;
    padding-inline: 18px;
    box-shadow: var(--ep-shadow-rest);
    transition: border-color .2s var(--ep-ease), box-shadow .2s var(--ep-ease);
}

input[type="search"]:focus {
    outline: none;
    border-color: var(--ep-pine) !important;
    box-shadow: 0 0 0 4px rgba(14, 92, 75, .10);
}

.log-in,
.restaurant-log-in {
    border-radius: var(--ep-r-btn);
    transition: transform .18s var(--ep-ease), box-shadow .18s var(--ep-ease);
}

.log-in:hover,
.restaurant-log-in:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(10, 68, 56, .18);
}

/* ---------- buttons ---------- */
.btn-primary,
button.btn-primary {
    background: var(--ep-pine) !important;
    border: 1px solid var(--ep-pine) !important;
    border-radius: var(--ep-r-btn);
    min-height: 46px;
    font-weight: 600;
    letter-spacing: 0;
    box-shadow: none;
    transition: background .18s var(--ep-ease), transform .18s var(--ep-ease), box-shadow .18s var(--ep-ease);
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--ep-deep) !important;
    border-color: var(--ep-deep) !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(10, 68, 56, .22);
}

.btn-primary:active { transform: translateY(0); }

/* ---------- cards: shared shell ---------- */
.business-card {
    background: var(--ep-card);
    border: 1px solid var(--ep-line);
    border-radius: var(--ep-r-card);
    box-shadow: var(--ep-shadow-rest);
    overflow: hidden;
    transition: transform .22s var(--ep-ease), box-shadow .22s var(--ep-ease), border-color .22s var(--ep-ease);
}

.business-card:hover {
    transform: translateY(-3px);
    border-color: #DCD4C6;
    box-shadow: var(--ep-shadow-hover);
}

.business-card .details { padding: 14px 16px 16px; }

.business-card .name,
.business-card .name span {
    font-weight: 700;
    font-size: 16px;
    line-height: 1.6;
    color: var(--ep-ink);
}

.business-card .name:hover span { color: var(--ep-pine); }

.business-card .categories {
    color: var(--ep-muted);
    font-size: 13px;
    line-height: 1.7;
    margin-top: 2px;
}

.closed-business { opacity: .55; filter: saturate(.6); }

/* ---------- seal tile refinements ---------- */
.ep-seal {
    display: block;
    position: relative;
    transition: none;
}

.ep-seal--logo .ep-seal__disc {
    box-shadow:
        0 0 0 1px rgba(28, 25, 23, .05),
        0 0 0 8px rgba(255, 255, 255, .55),
        0 6px 18px rgba(28, 25, 23, .08);
}

.ep-seal--type { background: var(--ep-paper); }

.ep-seal__rule { background: var(--ep-saffron); height: 2px; }

.ep-badge {
    background: rgba(255, 255, 255, .92);
    border: 1px solid var(--ep-line);
    color: var(--ep-ink);
    border-radius: 8px;
    font-size: 11.5px;
    font-weight: 600;
    padding: 3px 9px;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.ep-badge--fresh {
    background: #FBF3E3;
    border-color: #EAD9B8;
    color: #8A5E12;
}

.discount-badge {
    background: var(--ep-saffron) !important;
    color: #fff !important;
    border-radius: 8px;
    font-weight: 700 !important;
    font-size: 13px;
    padding: 4px 10px;
    box-shadow: 0 2px 8px rgba(200, 135, 27, .35);
}

/* ---------- listing: chips + sort ---------- */
.categories-nav .nav-link,
.order-nav .nav-link,
.ep-chip {
    background: var(--ep-card);
    border: 1px solid var(--ep-line);
    color: var(--ep-ink);
    border-radius: var(--ep-r-chip);
    padding: 8px 18px;
    font-size: 13.5px;
    font-weight: 500;
    transition: border-color .18s var(--ep-ease), color .18s var(--ep-ease), background .18s var(--ep-ease);
}

.categories-nav .nav-link:hover,
.order-nav .nav-link:hover {
    border-color: var(--ep-pine);
    color: var(--ep-pine);
    background: var(--ep-card);
}

.categories-nav .nav-link.active {
    background: var(--ep-saffron) !important;
    border-color: var(--ep-saffron) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(200, 135, 27, .30);
}

.order-nav .nav-link.active {
    background: transparent !important;
    border-color: transparent !important;
    color: var(--ep-deep) !important;
    font-weight: 700;
    box-shadow: none;
}

.remove-filters { color: #B3261E; }

/* ---------- filter panel / lists ---------- */
.list-group {
    border: 1px solid var(--ep-line);
    border-radius: var(--ep-r-card);
    overflow: hidden;
    box-shadow: var(--ep-shadow-rest);
}

.list-group-item { border-color: var(--ep-line); }

.form-select {
    border: 1px solid var(--ep-line);
    border-radius: 10px;
    min-height: 44px;
    color: var(--ep-ink);
    background-color: var(--ep-card);
}

.form-select:focus {
    border-color: var(--ep-pine);
    box-shadow: 0 0 0 4px rgba(14, 92, 75, .10);
}

/* ---------- pagination ---------- */
.pagination .page-link {
    color: var(--ep-pine);
    border-color: var(--ep-line);
    border-radius: 8px;
    margin-inline: 3px;
    min-width: 40px;
    text-align: center;
}

.pagination .page-item.active .page-link {
    background: var(--ep-pine);
    border-color: var(--ep-pine);
    color: #fff;
}

/* ---------- mobile bottom nav ---------- */
.mobileFooter {
    background: rgba(255, 255, 255, .94);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--ep-line);
    box-shadow: 0 -6px 20px rgba(28, 25, 23, .05);
}

.mobileFooter a { color: var(--ep-muted); }

.mobileFooter .active a,
.mobileFooter a:active { color: var(--ep-deep); }

.mobileFooter span { font-size: 11.5px; font-weight: 600; }

/* ---------- desktop footer ---------- */
.footer-shell {
    background: #F3EEE5;
    border-top: 1px solid var(--ep-line);
    margin-top: 56px;
}

.ep-footer { padding-top: 44px; padding-bottom: 36px; }

.ep-footer-brand-text h3 { font-weight: 800; color: var(--ep-deep); }

.ep-footer-nav a { color: var(--ep-ink); transition: color .18s var(--ep-ease); }

.ep-footer-nav a:hover { color: var(--ep-pine); }

/* ---------- map page ---------- */
.leaflet-div-icon {
    background: #fff;
    border: 2px solid var(--ep-pine);
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(28, 25, 23, .25);
}

.leaflet-div-icon img { width: 100%; height: 100%; object-fit: contain; }

.leaflet-popup-content-wrapper {
    border-radius: var(--ep-r-card);
    border: 1px solid var(--ep-line);
    box-shadow: 0 14px 40px rgba(28, 25, 23, .18);
}

/* ---------- motion discipline ---------- */
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
}

/* ============================================================
   Tier C typographic tile - stop it reading as a broken card
   ============================================================ */

.ep-seal--type {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 22px 18px 16px;
    background:
        radial-gradient(120% 90% at 50% 0%, #FFFDF9 0%, var(--ep-paper) 60%, #F4EFE6 100%);
    border-bottom: 1px solid var(--ep-line);
    position: relative;
}

.ep-seal--type::before {
    content: "";
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(200, 135, 27, .22);
    border-radius: 10px;
    pointer-events: none;
}

.ep-seal--type .ep-seal__name {
    font-weight: 800;
    color: var(--ep-deep);
    margin: 0 0 10px;
    line-height: 1.55;
    max-width: 88%;
}

.ep-seal--type[data-len="short"] .ep-seal__name { font-size: 21px; }
.ep-seal--type[data-len="long"] .ep-seal__name { font-size: 18px; }
.ep-seal--type[data-len="xlong"] .ep-seal__name { font-size: 15.5px; }

.ep-seal--type .ep-seal__rule {
    display: block;
    width: 34px;
    height: 2px;
    background: var(--ep-saffron);
    border-radius: 2px;
    margin: 0 0 10px;
}

.ep-seal--type .ep-seal__cat {
    font-size: 12.5px;
    color: var(--ep-muted);
    margin: 0;
}

.ep-seal--type .ep-seal__badges {
    margin-top: 14px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

/* equal heights so a row never looks ragged */
.ep-seal--logo,
.ep-seal--type {
    min-height: 208px;
    box-sizing: border-box;
}

.ep-seal--logo {
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: relative;
}

.ep-seal--logo .ep-seal__badges,
.ep-seal--type .ep-seal__badges { z-index: 2; }


/* ============================================================
   Menu item - final structure
   .item > .discount | .ep-item__link ( name + desc ) | .ep-item__foot ( price )
   Printed menu logic: name right, dotted leader, price left.
   No food imagery anywhere, by design.
   ============================================================ */

.menu .row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 0 0 34px !important;
}

.menu .row > [class*="col-"] {
    width: 100%;
    max-width: none;
    flex: none;
    margin: 0 !important;
    padding: 0 !important;
}

@media (max-width: 991px) {
    .menu .row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 575px) {
    .menu .row { grid-template-columns: 1fr; gap: 10px; }
}

.item {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--ep-card);
    border: 1px solid var(--ep-line);
    border-radius: 12px;
    padding: 15px 17px 14px;
    transition: border-color .18s var(--ep-ease), box-shadow .18s var(--ep-ease);
}

.item:hover {
    border-color: #DCD4C6;
    box-shadow: 0 6px 18px rgba(28, 25, 23, .07);
}

.ep-item__link {
    display: block;
    text-decoration: none;
    color: inherit;
    flex: 1 1 auto;
}

.ep-item__name {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.7;
    color: #2A322F;
}

.ep-item__link:hover .ep-item__name { color: var(--ep-pine); }

.ep-item__desc {
    margin: 5px 0 0;
    font-size: 12.5px;
    line-height: 1.85;
    color: var(--ep-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ep-item__foot {
    position: relative;
    margin-top: 12px;
    padding-top: 12px;
}

.ep-item__foot::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    border-top: 1px dotted #D2C9B9;
}

.ep-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.ep-price .price,
.ep-price .disPrice {
    margin: 0;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.ep-price .price:not(.hasDis),
.ep-price .disPrice {
    font-size: 17px;
    font-weight: 800;
    color: var(--ep-deep);
    letter-spacing: -.1px;
}

.ep-price .price.hasDis {
    font-size: 13px;
    font-weight: 500;
    color: var(--ep-muted);
    text-decoration: line-through;
    text-decoration-thickness: 1px;
}

.item .discount {
    position: absolute;
    top: 13px;
    left: 15px;
    background: var(--ep-saffron);
    color: #fff;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 9px;
    box-shadow: 0 2px 8px rgba(200, 135, 27, .3);
}

/* the discount pill must not collide with a long name */
.item:has(.discount) .ep-item__name { padding-left: 54px; }

/* section heading reads like a printed menu chapter */
.menu .title {
    position: relative;
    margin: 34px 0 16px;
    padding-bottom: 10px;
    font-size: 19px;
    font-weight: 800;
    color: var(--ep-deep);
    border-bottom: 2px solid var(--ep-line);
}

.menu .title::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -2px;
    width: 56px;
    height: 2px;
    background: var(--ep-saffron);
}

.menu .title:first-of-type { margin-top: 12px; }

@media (max-width: 575px) {
    .item { padding: 13px 15px; }
    .ep-item__name { font-size: 15px; }
    .ep-item__desc { -webkit-line-clamp: 1; }
    .ep-price .price:not(.hasDis),
    .ep-price .disPrice { font-size: 16px; }
}

/* legacy nodes that must never reappear */
.item-image,
.item .image,
.menu .placeholder { display: none !important; }

/* ============================================================
   Restored: restaurant masthead, header, actions, tabs
   ============================================================ */

.shop .poster { position: relative; }

.ep-mast {
    position: relative;
    min-height: 210px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 0 0 20px 20px;
}

.ep-mast::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(120% 140% at 50% -20%, rgba(255, 255, 255, .16) 0%, transparent 58%),
        linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .22) 100%);
}

.ep-mast__inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 28px 20px;
}

.ep-mast__disc {
    width: 128px;
    height: 128px;
    flex: 0 0 128px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow:
        0 0 0 10px rgba(255, 255, 255, .14),
        0 14px 34px rgba(0, 0, 0, .28);
}

.ep-mast__logo {
    width: 74% !important;
    height: 74% !important;
    max-width: 74%;
    max-height: 74%;
    object-fit: contain;
}

.ep-mast__word { text-align: center; padding: 6px 18px; max-width: 720px; }

.ep-mast__wordname {
    color: #fff;
    font-weight: 800;
    font-size: 30px;
    line-height: 1.5;
    margin: 0 0 12px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .22);
}

.ep-mast__wordrule {
    display: block;
    width: 46px;
    height: 3px;
    border-radius: 3px;
    background: var(--ep-saffron);
    margin: 0 auto 12px;
}

.ep-mast__wordcat { color: rgba(255, 255, 255, .82); font-size: 14px; margin: 0; }

.ep-mast__off {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--ep-saffron);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    border-radius: 9px;
    padding: 5px 12px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .25);
    z-index: 3;
}

@media (max-width: 767px) {
    .ep-mast { min-height: 168px; border-radius: 0 0 16px 16px; }
    .ep-mast__disc { width: 100px; height: 100px; flex-basis: 100px; }
    .ep-mast__wordname { font-size: 22px; }
}

/* ---------- header row ---------- */
.ep-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    padding: 22px 20px 4px;
    max-width: 1200px;
    margin: 0 auto;
}

.ep-head__main { min-width: 0; flex: 1 1 auto; }

.ep-head__title {
    font-size: 22px;
    font-weight: 800;
    color: var(--ep-ink);
    line-height: 1.6;
    margin: 0 0 8px;
}

.ep-head__title--dup {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    margin: 0;
}

.ep-head__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 16px;
    color: var(--ep-muted);
    font-size: 13.5px;
}

.ep-head__place { display: inline-flex; align-items: center; gap: 5px; }

.ep-head__cat {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.ep-head__cat::before {
    content: "";
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #C9C0B0;
    flex: 0 0 4px;
}

.ep-head__actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }

/* ---------- call button ---------- */
.ep-call {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--ep-saffron);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    font-size: 14.5px;
    font-weight: 700;
    white-space: nowrap;
    flex: 0 0 auto;
    box-shadow: 0 4px 14px rgba(200, 135, 27, .32);
    transition: transform .18s var(--ep-ease), box-shadow .18s var(--ep-ease), background .18s var(--ep-ease);
}

.ep-call:hover {
    background: #B07614;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(200, 135, 27, .42);
}

.ep-call__short { display: none; }

@media (max-width: 575px) {
    .ep-head {
        padding: 18px 16px 4px;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .ep-head__actions { width: 100%; }
    .ep-call { width: 100%; justify-content: center; padding: 12px 20px; font-size: 15px; }
    .ep-call__long { display: none; }
    .ep-call__short { display: inline; }
}

/* ---------- owner line ---------- */
.ep-owner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 40px auto 8px;
    padding: 16px;
    border-top: 1px solid var(--ep-line);
    max-width: 640px;
}

.ep-owner__link {
    color: var(--ep-pine);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1.5px solid rgba(14, 92, 75, .3);
    padding-bottom: 2px;
}

.ep-owner__link:hover { border-bottom-color: var(--ep-pine); }

.ep-owner__note { color: var(--ep-muted); font-size: 12.5px; }

/* ---------- menu section tab strip ---------- */
.dedicated-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(250, 247, 242, .94);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--ep-line);
    margin-bottom: 8px;
}

#navbar-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 14px 12px;
}

#navbar-scroll::-webkit-scrollbar { display: none; }

#navbar-scroll .linkTag {
    display: inline-flex;
    align-items: center;
    background: var(--ep-card);
    border: 1px solid var(--ep-line);
    border-radius: 999px;
    color: var(--ep-ink);
    font-size: 13.5px;
    font-weight: 600;
    padding: 9px 20px;
    min-height: 40px;
    text-decoration: none;
    white-space: nowrap;
}

#navbar-scroll .linkTag:hover { border-color: var(--ep-pine); color: var(--ep-pine); }
#navbar-scroll .linkTag.active { background: var(--ep-pine); border-color: var(--ep-pine); color: #fff; }

/* ---------- info tab ---------- */
.shop .changeContentBtn .nav-item {
    border-radius: 10px;
    font-weight: 700;
}

/* ---------- one footer only ---------- */
.footer-shell ~ .footer-shell,
.mobileFooter ~ .mobileFooter { display: none !important; }

/* the masthead image must obey the disc no matter what inline
   sizing the old markup carries */
.ep-mast img,
.ep-mast__disc img {
    width: 74% !important;
    height: 74% !important;
    max-width: 74% !important;
    max-height: 74% !important;
    object-fit: contain !important;
    border-radius: 0 !important;
}

.ep-mast__disc {
    aspect-ratio: 1 / 1;
    flex: 0 0 auto;
}

/* separator between meta items when the comma is missing */
.ep-head__meta > * + *::before { content: none; }

/* ============================================================
   Menu cards: a quieter, warmer separation
   A hairline rule on the right edge acts like the fold of a
   printed menu column. Depth comes from a soft lift on hover,
   never from a heavy resting shadow.
   ============================================================ */

.item {
    background:
        linear-gradient(180deg, #FFFFFF 0%, #FDFCFA 100%);
    box-shadow: 0 1px 2px rgba(28, 25, 23, .04);
}

/* saffron edge on the leading side, the way a menu chapter is ruled */
.item::before {
    content: "";
    position: absolute;
    top: 14px;
    bottom: 14px;
    right: -1px;
    width: 3px;
    border-radius: 3px 0 0 3px;
    background: linear-gradient(180deg,
        rgba(200, 135, 27, 0) 0%,
        rgba(200, 135, 27, .38) 22%,
        rgba(200, 135, 27, .38) 78%,
        rgba(200, 135, 27, 0) 100%);
    opacity: .65;
    transition: opacity .2s var(--ep-ease), background .2s var(--ep-ease);
}

.item:hover::before {
    opacity: 1;
    background: linear-gradient(180deg,
        rgba(14, 92, 75, 0) 0%,
        rgba(14, 92, 75, .55) 20%,
        rgba(14, 92, 75, .55) 80%,
        rgba(14, 92, 75, 0) 100%);
}

.item:hover {
    box-shadow: 0 8px 22px rgba(28, 25, 23, .09);
    transform: translateY(-2px);
}

.item { transition: transform .2s var(--ep-ease), box-shadow .2s var(--ep-ease), border-color .2s var(--ep-ease); }

/* discounted items earn a warmer field so the eye finds them */
.item:has(.discount) {
    background: linear-gradient(180deg, #FFFDF8 0%, #FDF8EE 100%);
    border-color: #EBDFC7;
}

.item:has(.discount)::before { opacity: 1; }

@media (max-width: 575px) {
    .item::before { top: 11px; bottom: 11px; width: 2.5px; }
    .item:hover { transform: none; }
}

/* ============================================================
   Mobile menu: one continuous sheet, ruled between dishes
   A vertical edge rule is invisible in a single column, so on
   narrow screens the cards merge into a page and the boundary
   becomes a horizontal rule, the way a printed menu reads.
   ============================================================ */

@media (max-width: 575px) {

    .menu .row {
        display: block;
        background: var(--ep-card);
        border: 1px solid var(--ep-line);
        border-radius: 14px;
        overflow: hidden;
        box-shadow: 0 1px 2px rgba(28, 25, 23, .04);
        margin: 0 0 30px !important;
    }

    .menu .row > [class*="col-"] { margin: 0 !important; }

    .item {
        border: none;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        padding: 15px 16px;
        position: relative;
    }

    /* the vertical edge rule is meaningless in one column */
    .item::before {
        top: auto;
        bottom: 0;
        right: 16px;
        left: 16px;
        width: auto;
        height: 1px;
        border-radius: 0;
        opacity: 1;
        background: linear-gradient(90deg,
            rgba(231, 225, 215, 0) 0%,
            #E7E1D7 12%,
            #E7E1D7 88%,
            rgba(231, 225, 215, 0) 100%);
    }

    /* last dish in a section closes the sheet cleanly */
    .menu .row > [class*="col-"]:last-child .item::before { display: none; }

    .item:hover,
    .item:active {
        transform: none;
        box-shadow: none;
        background: #FCFAF6;
    }

    .item:hover::before { background: linear-gradient(90deg,
            rgba(231, 225, 215, 0) 0%,
            #E7E1D7 12%,
            #E7E1D7 88%,
            rgba(231, 225, 215, 0) 100%); }

    /* a discounted dish keeps its warm field and gains a saffron marker */
    .item:has(.discount) {
        background: #FFFCF5;
        border-right: 3px solid var(--ep-saffron);
        padding-right: 13px;
    }

    /* the dotted leader inside the card would collide with the new
       divider, so it steps back to a lighter tint */
    .ep-item__foot { margin-top: 10px; padding-top: 10px; }

    .ep-item__foot::before { border-top-color: #E4DCCC; }
}

/* ============================================================
   Round 8 - discount presentation
   A struck-through Persian numeral renders badly, so the old
   price loses the line and steps back with size and colour
   instead. The badge returns to saffron and leaves the name
   alone.
   ============================================================ */

.ep-price {
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
}

.ep-price .price.hasDis {
    text-decoration: none !important;
    font-size: 12.5px;
    font-weight: 500;
    color: #9A938A;
    position: relative;
    padding-top: 1px;
}

/* a clean horizontal rule drawn over the old figure, at the
   right optical height, instead of the font's own strike */
.ep-price .price.hasDis::after {
    content: "";
    position: absolute;
    top: 52%;
    right: -2px;
    left: -2px;
    height: 1px;
    background: #B9B1A6;
    transform: rotate(0deg);
}

/* badge: saffron, never orange, and out of the title's way */
.item .discount {
    top: 12px;
    left: 12px;
    right: auto;
    background: var(--ep-saffron) !important;
    color: #fff !important;
    border-radius: 8px !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    padding: 3px 9px !important;
    line-height: 1.6 !important;
    box-shadow: none !important;
    min-width: 0 !important;
    width: auto !important;
    height: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* the name keeps clear of the badge without a big indent */
.item:has(.discount) .ep-item__name { padding-left: 46px; }

@media (max-width: 991px) {
    .item .discount { top: 13px; left: 13px; }
    .item:has(.discount) .ep-item__name { padding-left: 44px; }
    .ep-price .price:not(.hasDis),
    .ep-price .disPrice { font-size: 16px; }
}

/* ============================================================
   Round 9 - final menu geometry
   Cards must never overlap; price sits left, currency is
   declared once per section instead of on every line.
   ============================================================ */

/* --- kill the conflicting mobile rules from earlier rounds --- */
@media (max-width: 991px) {
    .menu .row {
        display: block !important;
        background: var(--ep-card) !important;
        border: 1px solid var(--ep-line) !important;
        border-radius: 14px !important;
        overflow: hidden !important;
        margin: 0 0 30px !important;
        padding: 0 !important;
    }

    .menu .row > [class*="col-"] {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
        margin: 0 !important;
        padding: 0 !important;
        float: none !important;
    }

    .item {
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        transform: none !important;
        padding: 15px 16px 14px !important;
        background: var(--ep-card) !important;
    }

    .menu .row > [class*="col-"]:nth-child(even) .item {
        background: #FBF8F3 !important;
    }

    .item::before {
        content: "" !important;
        position: absolute !important;
        inset: auto 0 0 0 !important;
        width: auto !important;
        height: 1px !important;
        border-radius: 0 !important;
        opacity: 1 !important;
        background: #E4DCCC !important;
        transform: none !important;
    }

    .menu .row > [class*="col-"]:last-child .item::before { display: none !important; }

    .item:has(.discount) {
        background: #FFFBF2 !important;
        box-shadow: inset -3px 0 0 var(--ep-saffron) !important;
    }
}

/* --- price block: left aligned, no strike glyph --- */
.ep-item__foot {
    display: flex;
    justify-content: flex-start;
    direction: ltr;
}

.ep-price {
    display: flex;
    align-items: baseline;
    gap: 9px;
    direction: ltr;
}

.ep-price .price,
.ep-price .disPrice {
    direction: ltr;
    unicode-bidi: isolate;
}

.ep-price .price.hasDis {
    text-decoration: none !important;
    font-size: 12.5px;
    font-weight: 500;
    color: #A39B90;
    position: relative;
    order: 2;
}

.ep-price .price.hasDis::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -1px;
    left: -1px;
    height: 1px;
    background: #B9B1A6;
}

.ep-price .disPrice { order: 1; }

/* the currency is stated once, in the section heading */
.menu .title::before {
    content: "\062A\0648\0645\0627\0646";
    position: absolute;
    left: 0;
    bottom: 10px;
    font-size: 11.5px;
    font-weight: 500;
    color: var(--ep-muted);
    letter-spacing: 0;
}

@media (max-width: 991px) {
    .ep-item__foot { margin-top: 10px; padding-top: 10px; }
}

/* ============================================================
   Round 10 - mobile returns to separated cards
   The continuous sheet was a mistake: cards read better with
   their own edges and breathing room on every screen size.
   ============================================================ */

@media (max-width: 991px) {

    .menu .row {
        display: block !important;
        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;
        overflow: visible !important;
        box-shadow: none !important;
        margin: 0 0 28px !important;
        padding: 0 !important;
    }

    .menu .row > [class*="col-"] {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
        float: none !important;
        margin: 0 0 10px !important;
        padding: 0 !important;
    }

    .menu .row > [class*="col-"]:last-child { margin-bottom: 0 !important; }

    .item,
    .menu .row > [class*="col-"]:nth-child(even) .item {
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
        min-height: 0 !important;
        background: var(--ep-card) !important;
        border: 1px solid var(--ep-line) !important;
        border-radius: 12px !important;
        box-shadow: 0 1px 2px rgba(28, 25, 23, .04) !important;
        padding: 15px 16px 14px !important;
        transform: none !important;
        overflow: hidden;
    }

    /* the divider line belongs to the sheet layout, not to cards */
    .item::before { display: none !important; }

    .item:has(.discount) {
        background: linear-gradient(180deg, #FFFDF8 0%, #FDF8EE 100%) !important;
        border-color: #EBDFC7 !important;
        box-shadow: inset -3px 0 0 var(--ep-saffron), 0 1px 2px rgba(28, 25, 23, .04) !important;
    }
}

/* ============================================================
   The struck price: draw the rule ourselves, perfectly level
   ============================================================ */

.ep-price .price.hasDis {
    text-decoration: none !important;
    -webkit-text-decoration: none !important;
    font-size: 12.5px;
    font-weight: 500;
    color: #A79F94;
    position: relative;
    display: inline-block;
    line-height: 1.9;
    order: 2;
}

.ep-price .price.hasDis::after {
    content: "" !important;
    position: absolute !important;
    top: 50% !important;
    right: -2px !important;
    left: -2px !important;
    width: auto !important;
    height: 1px !important;
    background: #BCB4A8 !important;
    transform: none !important;
    border: none !important;
    box-shadow: none !important;
}

.ep-price .disPrice {
    order: 1;
    font-size: 17px;
    font-weight: 800;
    color: var(--ep-deep);
}

/* ============================================================
   Round 11 - one price, no strike
   The discount badge already states the saving, so the old
   figure adds noise rather than information.
   ============================================================ */

.ep-price .price.hasDis { display: none !important; }

.ep-price {
    display: flex;
    align-items: baseline;
    gap: 0;
}

.ep-price .price,
.ep-price .disPrice {
    font-size: 17px;
    font-weight: 800;
    color: var(--ep-deep);
    direction: ltr;
    unicode-bidi: isolate;
    text-decoration: none !important;
}

.ep-item__foot {
    display: flex;
    justify-content: flex-start;
    direction: ltr;
}

@media (max-width: 991px) {
    .ep-price .price,
    .ep-price .disPrice { font-size: 16.5px; }
}
