@import url('https://fonts.googleapis.com/css2?family=Cormorant:ital,wght@0,500;0,600;0,700;1,500&family=Montserrat:wght@400;500;600;700&display=swap');

:root {
    --ym-primary: #c9a04a;
    --ym-primary-dark: #a8843c;
    --ym-ink: #f3ecd9;
    --ym-muted: #a89a78;
    --ym-bg: #0d2b26;
    --ym-card: #123832;
    --ym-border: #2c4d46;
    --ym-radius: 12px;
    --ym-radius-sm: 8px;
    --ym-shadow: 0 8px 24px rgba(0,0,0,0.3);
    --ym-shadow-lg: 0 -10px 36px rgba(0,0,0,0.45);
    font-size: 16px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--ym-bg); color: var(--ym-ink); font-family: 'Montserrat', sans-serif; -webkit-text-size-adjust: 100%; }
body { padding-bottom: 90px; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; touch-action: manipulation; background: none; border: none; }
img { max-width: 100%; display: block; }

.ym-announcement { background: var(--ym-primary); color: #1a1408; text-align: center; padding: 10px 36px; font-size: 13px; font-weight: 700; position: relative; }
.ym-announcement-close { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: #1a1408; font-size: 16px; }

.ym-hero { position: relative; background-color: #06140f; background-size: cover; background-position: center; }
.ym-hero-overlay {
    position: relative; text-align: center;
    background: linear-gradient(180deg, rgba(6,20,15, 0.10), rgba(6,20,15, 0.60) 75%);
    padding: 60px 24px 36px;
    border-bottom: 1px solid var(--ym-border);
}
.ym-hero-logo { width: 68px; height: 68px; border-radius: 50%; object-fit: cover; margin: 0 auto 16px; border: 2px solid var(--ym-primary); padding: 2px; }
.ym-hero-name { font-family: 'Cormorant', serif; font-weight: 700; font-size: 32px; margin: 0 0 6px; letter-spacing: 0.02em; }
.ym-hero-tagline { font-style: italic; color: var(--ym-muted); font-size: 14px; margin: 0 auto; max-width: 360px; }
.ym-hero-motif { color: var(--ym-primary); font-size: 16px; margin-top: 16px; opacity: 0.85; }
.ym-hero-lang { margin-top: 14px; position: relative; display: inline-block; }
.ym-icon-btn.ym-lang-toggle { color: var(--ym-muted); font-size: 12px; display: flex; align-items: center; gap: 6px; padding: 6px 14px; border: 1px solid var(--ym-border); border-radius: 999px; }
/* z-index MUST stay above .ym-sticky-head (30): the dropdown sits in the
   hero, which precedes the sticky header in the DOM, so an equal value
   makes the search bar paint over the open language list. */
.ym-lang-menu { display: none; position: absolute; top: 110%; left: 50%; transform: translateX(-50%); background: var(--ym-card); border: 1px solid var(--ym-border); border-radius: 8px; padding: 6px; min-width: 140px; z-index: 50; box-shadow: var(--ym-shadow); }
.ym-lang-menu.show { display: block; }
.ym-lang-menu a { display: block; padding: 8px 12px; font-size: 13px; border-radius: 4px; color: var(--ym-ink); }
.ym-lang-menu a.active, .ym-lang-menu a:hover { background: rgba(201,160,74,0.15); color: var(--ym-primary); }

.ym-search-wrap { padding: 22px 18px 0; }
.ym-search { display: flex; align-items: center; gap: 10px; background: var(--ym-card); border: 1px solid var(--ym-border); border-radius: var(--ym-radius-sm); padding: 11px 16px; }
.ym-search .bx { color: var(--ym-primary); font-size: 16px; }
.ym-search input { flex: 1; background: none; border: none; outline: none; color: var(--ym-ink); font-size: 15px; }
.ym-search input::placeholder { color: var(--ym-muted); }

.ym-cat-nav { display: flex; gap: 8px; overflow-x: auto; padding: 18px; -ms-overflow-style: none; scrollbar-width: none; }
.ym-cat-nav::-webkit-scrollbar { display: none; }
.ym-cat-pill { flex-shrink: 0; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--ym-border); font-size: 12.5px; letter-spacing: 0.04em; color: var(--ym-muted); white-space: nowrap; font-weight: 600; }
.ym-cat-pill.active { background: var(--ym-primary); color: #1a1408; border-color: var(--ym-primary); }

.ym-empty { text-align: center; color: var(--ym-muted); padding: 60px 20px; }
.ym-empty .bx { font-size: 40px; display: block; margin-bottom: 8px; color: var(--ym-primary); }

.ym-section { padding: 0 18px 10px; }
.ym-section-title {
    text-align: center; margin: 30px 0 18px; font-family: 'Cormorant', serif;
    font-size: 22px; font-weight: 600; color: var(--ym-ink);
    display: flex; align-items: center; gap: 14px;
}
.ym-section-title::before, .ym-section-title::after { content: ''; flex: 1; height: 1px; background: var(--ym-border); }

.ym-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.ym-card { text-align: left; background: var(--ym-card); border: 1px solid var(--ym-border); border-radius: var(--ym-radius); overflow: hidden; }
.ym-card.is-sold-out { opacity: 0.5; }
.ym-card-img-wrap { position: relative; aspect-ratio: 4/3; }
.ym-card-img { width: 100%; height: 100%; object-fit: cover; }
.ym-card-img.placeholder { display: flex; align-items: center; justify-content: center; background: var(--ym-bg); color: var(--ym-muted); font-size: 24px; }
.ym-badges { position: absolute; top: 8px; left: 8px; display: flex; flex-direction: column; gap: 4px; }
.ym-badge { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; padding: 3px 8px; border-radius: 4px; background: rgba(10,20,16,0.8); color: var(--ym-primary); border: 1px solid var(--ym-primary); }
.ym-badge.sold-out { color: #e6a0a0; border-color: #6b4040; }
.ym-card-body { padding: 12px 12px 14px; }
.ym-card-name { font-family: 'Cormorant', serif; font-size: 16px; font-weight: 600; margin: 0 0 4px; }
.ym-card-desc { font-size: 11.5px; color: var(--ym-muted); margin: 0 0 8px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ym-card-price { font-family: 'Cormorant', serif; font-weight: 700; font-size: 15px; color: var(--ym-primary); }
.ym-strike { text-decoration: line-through; color: var(--ym-muted); margin-right: 6px; font-size: 12px; font-family: 'Montserrat', sans-serif; }

.ym-social-row { display: flex; justify-content: center; gap: 18px; padding: 16px 18px; font-size: 18px; color: var(--ym-muted); }
.ym-contact-row { text-align: center; padding: 0 18px 14px; color: var(--ym-muted); font-size: 13px; }
.ym-contact-line { margin: 4px 0; }
.ym-footer { text-align: center; padding: 24px; color: var(--ym-muted); font-size: 11px; letter-spacing: 0.04em; }
.ym-footer a { color: var(--ym-primary); }

.ym-sheet-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.65); z-index: 90; display: none; }
.ym-sheet-backdrop.show { display: block; }
.ym-sheet { position: fixed; left: 0; right: 0; bottom: 0; background: var(--ym-card); border-top: 1px solid var(--ym-border); border-radius: 12px 12px 0 0; box-shadow: var(--ym-shadow-lg); z-index: 91; max-height: 88vh; overflow-y: auto; transform: translateY(100%); transition: transform 0.28s ease; }
.ym-sheet.show { transform: translateY(0); }
.ym-sheet-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.ym-sheet-close { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; background: rgba(0,0,0,0.5); color: var(--ym-ink); display: flex; align-items: center; justify-content: center; font-size: 18px; z-index: 2; }
.ym-sheet-body { padding: 20px; }
.ym-sheet-title { font-family: 'Cormorant', serif; font-size: 22px; font-weight: 700; margin: 0 0 6px; }
.ym-sheet-price { font-family: 'Cormorant', serif; font-size: 17px; color: var(--ym-primary); font-weight: 700; margin-bottom: 10px; }
.ym-sheet-desc { color: var(--ym-muted); font-size: 14px; line-height: 1.6; margin-bottom: 12px; }
.ym-sheet-meta { display: flex; gap: 16px; font-size: 13px; color: var(--ym-muted); margin-bottom: 12px; flex-wrap: wrap; }
.ym-sheet-meta span { display: flex; align-items: center; gap: 4px; }
.ym-sheet-section-label { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ym-primary); margin: 14px 0 6px; }
.ym-allergen-list { display: flex; flex-wrap: wrap; gap: 6px; }
.ym-allergen-chip { font-size: 11px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--ym-border); color: var(--ym-muted); }

.ym-fab-stack { position: fixed; right: 14px; bottom: 14px; display: flex; flex-direction: column; gap: 10px; z-index: 60; }
.ym-fab { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: 999px; background: var(--ym-card); border: 1px solid var(--ym-primary); color: var(--ym-ink); font-weight: 600; font-size: 12px; box-shadow: var(--ym-shadow-lg); }
.ym-fab.ym-fab-primary { background: var(--ym-primary); color: #1a1408; border-color: var(--ym-primary); }
.ym-fab .bx { font-size: 16px; }

.ym-toast { position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--ym-card); border: 1px solid var(--ym-border); color: var(--ym-ink); padding: 10px 18px; border-radius: 999px; font-size: 13px; z-index: 100; opacity: 0; transition: opacity 0.2s, transform 0.2s; pointer-events: none; white-space: nowrap; }
.ym-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (prefers-reduced-motion: reduce) { .ym-sheet, .ym-toast { transition: none; } }
@media (min-width: 480px) { .ym-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 720px) {
    .ym-grid { grid-template-columns: repeat(4, 1fr); }
    .ym-section, .ym-search-wrap, .ym-cat-nav { max-width: 760px; margin-left: auto; margin-right: auto; }
}

/* ===== Nutrition tiles + spicy + dietary badges (shared appended block) ===== */
.ym-sheet-meta { display: block; margin-bottom: 14px; }
.ym-nutri-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.ym-nutri { flex: 1 1 72px; min-width: 72px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 10px 8px; border-radius: 16px; background: rgba(140,140,140,.08); border: 1px solid rgba(140,140,140,.16); }
.ym-nutri i { font-size: 19px; line-height: 1; }
.ym-nutri b { font-size: 16px; font-weight: 800; color: var(--ym-ink); line-height: 1; letter-spacing: -.01em; display: flex; align-items: baseline; white-space: nowrap; }
.ym-nutri b .u { font-size: 10.5px; font-weight: 600; color: var(--ym-muted); margin-left: 2px; }
.ym-nutri-l { font-size: 9.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--ym-muted); font-weight: 700; }
.ym-nutri.is-cal { background: rgba(239,91,59,.12); border-color: rgba(239,91,59,.30); }
.ym-nutri.is-cal i { color: #ef5b3b; }
.ym-nutri.is-pro { background: rgba(108,92,231,.12); border-color: rgba(108,92,231,.30); }
.ym-nutri.is-pro i { color: #6c5ce7; }
.ym-nutri.is-carb { background: rgba(224,163,62,.14); border-color: rgba(224,163,62,.32); }
.ym-nutri.is-carb i { color: #e0a33e; }
.ym-nutri.is-fat { background: rgba(234,179,8,.14); border-color: rgba(234,179,8,.34); }
.ym-nutri.is-fat i { color: #eab308; }
.ym-nutri.is-spicy { background: rgba(232,70,43,.12); border-color: rgba(232,70,43,.30); }
.ym-nutri.is-time i { color: var(--ym-muted); }
.ym-chilis { font-size: 17px; line-height: 1; letter-spacing: 2px; }
.ym-chilis .off { opacity: .25; filter: grayscale(1); }
.ym-badge { display: inline-flex; align-items: center; gap: 3px; }
.ym-badge i { font-size: 13px; line-height: 1; }
.ym-badge.veg { background: #e8f7ee; color: #1b8a4f; }
.ym-badge.vegan { background: #def3e6; color: #157a43; }
.ym-badge.halal { background: #e3f6f2; color: #0f8a78; }

/* ===== Turkish Luxury card fixes ===== */
/* The card is a <button>, which defaults to black text and doesn't inherit the
   cream body colour - set it explicitly so titles read on the dark card. */
.ym-card { color: var(--ym-ink); }
.ym-card-name { color: var(--ym-ink); font-size: 20px; font-weight: 600; line-height: 1.16; letter-spacing: .005em; margin: 0 0 6px; }

/* Badges now sit in the card body (below the image) as an elegant inline row,
   not stacked over the photo. */
.ym-badges { position: static; top: auto; left: auto; flex-direction: row; flex-wrap: wrap; gap: 5px; margin: 0 0 9px; }
.ym-badge {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.15);
    color: var(--ym-ink);
    padding: 4px 9px; font-size: 10px; letter-spacing: .4px;
}
.ym-badge i { font-size: 13px; color: var(--ym-primary); }
.ym-badge.veg i, .ym-badge.vegan i { color: #84c9a0; }
.ym-badge.halal i { color: #5fc7b5; }
.ym-badge.sold-out { background: rgba(201,42,42,.22); border-color: rgba(201,42,42,.4); color: #ffc2c2; }
.ym-badge.sold-out i { color: #ffc2c2; }

/* ===== Turkish Luxury: refined badge overlay on image bottom ===== */
.ym-card-img-wrap { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.ym-card-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ym-badges {
    position: absolute; left: 0; right: 0; bottom: 0; top: auto;
    display: flex; flex-direction: row; flex-wrap: wrap; gap: 5px; margin: 0;
    padding: 26px 10px 9px;
    background: linear-gradient(to top, rgba(6,16,12,.82), rgba(6,16,12,.30) 55%, transparent);
}
.ym-badge {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 9px; font-weight: 700; letter-spacing: .5px; line-height: 1.5;
    padding: 3px 9px; border-radius: 999px;
    background: rgba(18,28,23,.66); border: 1px solid rgba(255,255,255,.18); color: #f3ecd9;
    -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
.ym-badge i { font-size: 11px; color: var(--ym-primary); }
.ym-badge.veg i, .ym-badge.vegan i { color: #8fd6ab; }
.ym-badge.halal i { color: #6fd3c1; }
.ym-badge.sold-out { background: rgba(150,30,30,.7); border-color: rgba(255,140,140,.4); color: #ffd9d9; }
.ym-badge.sold-out i { color: #ffd9d9; }

/* tidy card body */
.ym-card-body { padding: 13px 14px 15px; }
.ym-card-name { font-size: 19px; line-height: 1.15; margin: 0 0 5px; }

/* Sticky menu header (2026-08-06): the search box + category pills stay
   pinned while the dish list scrolls under them. Uses each template's own
   --ym-bg so nothing shows through, and a small shadow once it detaches
   (added by menu.js via .is-stuck). z-index sits under the cart/sheet
   overlays (which are 100+) but above the list. */
.ym-sticky-head {
    position: sticky;
    top: 0;
    z-index: 30;
    background: var(--ym-bg);
    transition: box-shadow .2s ease;
}
.ym-sticky-head.is-stuck {
    box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
}
/* The pill row already scrolls horizontally; keep its bottom padding so the
   shadow doesn't clip the pills. */
.ym-sticky-head .ym-cat-nav { margin-bottom: 0; padding-bottom: 10px; }

/* The add-to-cart button is absolutely positioned bottom-right of the card.
   On rows with NO description the card is short and the button landed on top
   of the price - reserve the space instead of overlapping it. */
[data-product-id] .ym-card-price,
[data-product-id] .ym-card-leader { padding-right: 42px; }
