@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,opsz,wght@0,6..96,500;0,6..96,600;0,6..96,700;1,6..96,500&family=Crimson+Pro:ital,wght@0,400;0,500;0,600;1,400&display=swap');

/* ============================================================
   PARISIAN BISTRO — carte de brasserie
   Ivory menu paper, noir ink, bordeaux wine, hairline double
   rules, dotted price leaders. Light, printed, unhurried.
   ============================================================ */

:root {
    --ym-primary: #7b2231;
    --ym-primary-dark: #5e1a25;
    --ym-ink: #262019;
    --ym-muted: #8a7d6a;
    --ym-bg: #f6f1e7;
    --ym-card: #fffcf5;
    --ym-border: #ddd2bc;
    --ym-rule: #b9ab8f;
    --ym-radius: 4px;
    --ym-shadow: 0 10px 30px rgba(60, 44, 22, 0.10);
    --ym-shadow-lg: 0 -12px 40px rgba(60, 44, 22, 0.22);
    font-size: 16px;
}

* { box-sizing: border-box; }
html, body {
    margin: 0; padding: 0;
    background: var(--ym-bg);
    /* faint laid-paper texture */
    background-image:
        repeating-linear-gradient(0deg, rgba(120, 100, 60, 0.025) 0 1px, transparent 1px 3px),
        radial-gradient(circle at 50% -10%, #fbf7ee 0%, var(--ym-bg) 60%);
    color: var(--ym-ink);
    font-family: 'Crimson Pro', Georgia, 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: #f7ecdf; text-align: center; padding: 10px 36px; font-size: 14px; font-weight: 600; letter-spacing: 0.02em; position: relative; }
.ym-announcement-close { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: #f7ecdf; font-size: 16px; }

/* --- Hero: an engraved menu-card head --- */
.ym-hero { position: relative; background-color: #ece4d3; background-size: cover; background-position: center; }
/* Cover photo was invisible behind an 86-97% wash. Now 10% at the top so the
   photo reads, deepening to 60% behind the text for contrast (2026-08-06). */
.ym-hero-overlay { background: linear-gradient(180deg, rgba(246,241,231,0.10), rgba(246,241,231,0.60) 70%); padding: 26px 18px 30px; }
.ym-hero-frame {
    max-width: 560px; margin: 0 auto; text-align: center;
    border: 1px solid var(--ym-rule); outline: 1px solid var(--ym-rule); outline-offset: 3px;
    padding: 26px 20px 22px; background: rgba(255, 252, 245, 0.55);
}
.ym-hero-logo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px; border: 1px solid var(--ym-rule); padding: 3px; background: var(--ym-card); }
.ym-hero-kicker { font-size: 11px; letter-spacing: 0.34em; text-transform: uppercase; color: var(--ym-primary); font-family: 'Crimson Pro', serif; font-weight: 600; margin-bottom: 10px; }
.ym-hero-name { font-family: 'Bodoni Moda', serif; font-weight: 600; font-size: 34px; line-height: 1.08; margin: 0 0 8px; letter-spacing: 0.01em; }
.ym-hero-tagline { font-style: italic; color: var(--ym-muted); font-size: 15.5px; line-height: 1.45; margin: 0 auto; max-width: 380px; }
.ym-hero-rule { display: flex; align-items: center; gap: 12px; margin: 16px auto 0; max-width: 220px; color: var(--ym-primary); font-size: 14px; }
.ym-hero-rule::before, .ym-hero-rule::after { content: ''; flex: 1; height: 1px; background: var(--ym-rule); }
.ym-hero-lang { margin-top: 14px; position: relative; display: inline-block; }
.ym-icon-btn.ym-lang-toggle { color: var(--ym-muted); font-size: 12px; letter-spacing: 0.12em; display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border: 1px solid var(--ym-rule); border-radius: 999px; background: var(--ym-card); }
/* 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: 115%; left: 50%; transform: translateX(-50%); background: var(--ym-card); border: 1px solid var(--ym-border); border-radius: 6px; padding: 6px; min-width: 150px; 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: 14px; border-radius: 4px; color: var(--ym-ink); }
.ym-lang-menu a.active, .ym-lang-menu a:hover { background: rgba(123, 34, 49, 0.08); color: var(--ym-primary); }

/* --- Search --- */
.ym-search-wrap { padding: 22px 18px 0; max-width: 640px; margin: 0 auto; }
.ym-search { display: flex; align-items: center; gap: 10px; background: var(--ym-card); border: 1px solid var(--ym-border); border-radius: 999px; padding: 11px 18px; box-shadow: var(--ym-shadow); }
.ym-search .bx { color: var(--ym-primary); font-size: 17px; }
.ym-search input { flex: 1; background: none; border: none; outline: none; color: var(--ym-ink); font-size: 16px; font-family: inherit; }
.ym-search input::placeholder { color: var(--ym-muted); font-style: italic; }

/* --- Category nav --- */
.ym-cat-nav { display: flex; gap: 8px; overflow-x: auto; padding: 18px; max-width: 640px; margin: 0 auto; -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); background: var(--ym-card); font-size: 13.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ym-muted); white-space: nowrap; font-weight: 600; transition: color 0.15s, background-color 0.15s, border-color 0.15s; }
.ym-cat-pill.active { background: var(--ym-primary); color: #f7ecdf; border-color: var(--ym-primary); }

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

/* --- Sections: engraved title with fleuron --- */
.ym-section { padding: 0 18px 6px; max-width: 640px; margin: 0 auto; }
.ym-section-title {
    text-align: center; margin: 34px 0 6px; font-family: 'Bodoni Moda', serif;
    font-size: 23px; font-weight: 600; color: var(--ym-ink); letter-spacing: 0.02em;
    display: flex; align-items: center; gap: 14px;
}
.ym-section-title::before, .ym-section-title::after { content: ''; flex: 1; height: 3px; border-top: 1px solid var(--ym-rule); border-bottom: 1px solid var(--ym-rule); }

/* --- Dish rows: name … price with dotted leader --- */
.ym-list { display: flex; flex-direction: column; }
.ym-card {
    display: flex; gap: 14px; align-items: flex-start; text-align: left; width: 100%;
    padding: 16px 2px; border-bottom: 1px dashed var(--ym-border); color: var(--ym-ink);
}
.ym-list .ym-card:last-child { border-bottom: none; }
.ym-card.is-sold-out { opacity: 0.45; }
.ym-card-thumb { flex-shrink: 0; width: 58px; height: 58px; border-radius: 50%; overflow: hidden; border: 1px solid var(--ym-rule); padding: 2px; background: var(--ym-card); }
.ym-card-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.ym-card-main { flex: 1; min-width: 0; display: block; }
.ym-card-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.ym-card-name { font-family: 'Bodoni Moda', serif; font-size: 17.5px; font-weight: 600; line-height: 1.25; }
.ym-card-leader { flex: 1; border-bottom: 2px dotted var(--ym-rule); transform: translateY(-4px); min-width: 16px; }
/* margin-left:auto keeps the price on the right edge when .ym-card-row wraps it
   onto its own line, so the leader dots still point at it instead of leaving it
   orphaned under the name. */
.ym-card-price { font-family: 'Bodoni Moda', serif; font-weight: 700; font-size: 16px; color: var(--ym-primary); white-space: nowrap; margin-left: auto; }
.ym-strike { text-decoration: line-through; color: var(--ym-muted); margin-right: 6px; font-size: 13px; font-weight: 500; }
.ym-card-desc { display: block; font-size: 14.5px; font-style: italic; color: var(--ym-muted); margin: 3px 0 0; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Badges: discreet inline row under the description */
.ym-badges { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.ym-badge {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em;
    padding: 3px 9px; border-radius: 999px;
    background: rgba(123, 34, 49, 0.07); color: var(--ym-primary); border: 1px solid rgba(123, 34, 49, 0.22);
}
.ym-badge i { font-size: 12px; }
.ym-badge.veg, .ym-badge.vegan { background: rgba(48, 106, 62, 0.08); color: #35683f; border-color: rgba(48, 106, 62, 0.28); }
.ym-badge.halal { background: rgba(15, 112, 96, 0.08); color: #0f7060; border-color: rgba(15, 112, 96, 0.28); }
.ym-badge.sold-out { background: rgba(140, 40, 40, 0.10); color: #8c2828; border-color: rgba(140, 40, 40, 0.3); }

/* --- Footer strip --- */
.ym-social-row { display: flex; justify-content: center; gap: 18px; padding: 26px 18px 12px; font-size: 19px; color: var(--ym-muted); }
.ym-contact-row { text-align: center; padding: 0 18px 12px; color: var(--ym-muted); font-size: 14px; }
.ym-contact-line { margin: 4px 0; }
.ym-footer { text-align: center; padding: 22px; color: var(--ym-muted); font-size: 12px; letter-spacing: 0.06em; }
.ym-footer a { color: var(--ym-primary); font-weight: 600; }

/* --- Detail sheet --- */
.ym-sheet-backdrop { position: fixed; inset: 0; background: rgba(38, 32, 25, 0.5); 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: 3px double var(--ym-rule); border-radius: 14px 14px 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(38, 32, 25, 0.55); color: #f7ecdf; display: flex; align-items: center; justify-content: center; font-size: 18px; z-index: 2; }
.ym-sheet-body { padding: 20px; }
.ym-sheet-title { font-family: 'Bodoni Moda', serif; font-size: 24px; font-weight: 600; margin: 0 0 6px; }
.ym-sheet-price { font-family: 'Bodoni Moda', serif; font-size: 18px; color: var(--ym-primary); font-weight: 700; margin-bottom: 10px; }
.ym-sheet-desc { color: #5d5340; font-size: 15.5px; 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.16em; text-transform: uppercase; color: var(--ym-primary); margin: 14px 0 6px; }
.ym-sheet-ingredients { color: #5d5340; font-size: 14.5px; line-height: 1.55; margin: 0; font-style: italic; }
.ym-allergen-list { display: flex; flex-wrap: wrap; gap: 6px; }
.ym-allergen-chip { font-size: 12px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--ym-border); color: var(--ym-muted); background: var(--ym-bg); }

.ym-toast { position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--ym-ink); color: #f7ecdf; padding: 10px 18px; border-radius: 999px; font-size: 14px; 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 (hover: hover) and (pointer: fine) {
    .ym-card { transition: background-color 0.15s; }
    .ym-card:hover { background: rgba(123, 34, 49, 0.035); }
    .ym-cat-pill:hover { border-color: var(--ym-primary); color: var(--ym-primary); }
}
@media (prefers-reduced-motion: reduce) { .ym-sheet, .ym-toast, .ym-card, .ym-cat-pill { transition: none; } }
@media (min-width: 720px) { .ym-hero-name { font-size: 40px; } }

/* ===== 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: 12px; background: rgba(120, 100, 60, 0.06); border: 1px solid rgba(120, 100, 60, 0.14); }
.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: -0.01em; white-space: nowrap; display: flex; align-items: baseline; }
.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: 0.05em; text-transform: uppercase; color: var(--ym-muted); font-weight: 700; }
.ym-nutri.is-cal { background: rgba(239, 91, 59, 0.10); border-color: rgba(239, 91, 59, 0.26); }
.ym-nutri.is-cal i { color: #d1502f; }
.ym-nutri.is-pro { background: rgba(108, 92, 231, 0.09); border-color: rgba(108, 92, 231, 0.24); }
.ym-nutri.is-pro i { color: #6c5ce7; }
.ym-nutri.is-carb { background: rgba(196, 138, 40, 0.11); border-color: rgba(196, 138, 40, 0.28); }
.ym-nutri.is-carb i { color: #b07f22; }
.ym-nutri.is-fat { background: rgba(38, 142, 185, 0.10); border-color: rgba(38, 142, 185, 0.26); }
.ym-nutri.is-fat i { color: #2683ab; }
.ym-nutri.is-spicy { background: rgba(200, 60, 38, 0.10); border-color: rgba(200, 60, 38, 0.26); }
.ym-nutri.is-time i { color: var(--ym-muted); }
.ym-chilis { font-size: 17px; line-height: 1; letter-spacing: 2px; }
.ym-chilis .off { opacity: 0.25; filter: grayscale(1); }

/* 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; }
