/* Yammy Bistro — QR menü v3 (açık tema, broşür paleti) */
:root {
    --paper: #F5F2EC;
    --blush: #EEE6E4;
    --card: #FFFFFF;
    --green: #2C4E3E;
    --green-2: #3F6B56;
    --green-soft: #E3EDE7;
    --ink: #22302A;
    --muted: #6A7870;
    --mustard: #F2B33D;
    --tomato: #E2483A;
    --orange: #E8903A;
    --lettuce: #7DB572;
    --line: rgba(44, 78, 62, .12);
    --serif: "Young Serif", Georgia, "Times New Roman", serif;
    --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --app: 560px;
    --tabs: 58px;
    --ease: cubic-bezier(.2, .8, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--tabs) + 10px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--blush); color: var(--ink); font: 400 16px/1.5 var(--sans); -webkit-tap-highlight-color: transparent; }
body.sheet-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 3px solid var(--mustard); outline-offset: 2px; border-radius: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.small { font-size: 13px; }

/* Renk temaları (kategori kartları ve görselsiz ürünler) */
.t-green   { --c-bg: var(--green);   --c-fg: #F5F2EC; --c-soft: #DCE8E1; }
.t-mustard { --c-bg: var(--mustard); --c-fg: #2C4E3E; --c-soft: #FCEBC4; }
.t-tomato  { --c-bg: var(--tomato);  --c-fg: #FFF6F0; --c-soft: #FADAD5; }
.t-orange  { --c-bg: var(--orange);  --c-fg: #FFF8F0; --c-soft: #FBE2C8; }
.t-lettuce { --c-bg: var(--lettuce); --c-fg: #1C3326; --c-soft: #DDEED8; }
.t-blush   { --c-bg: #E6D9D5;        --c-fg: #2C4E3E; --c-soft: #F1E8E5; }

/* Uygulama gövdesi */
.app {
    position: relative; z-index: 1; max-width: var(--app); margin: 0 auto; min-height: 100vh;
    background: var(--paper); overflow-x: clip;
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 600px) { .app { box-shadow: 0 0 0 1px var(--line), 0 30px 80px rgba(44, 78, 62, .10); } }
.side-art { position: fixed; z-index: 0; pointer-events: none; display: none; }
.side-art-l { top: 0; left: 0; width: min(24vw, 360px); }
.side-art-r { bottom: 0; right: 0; height: min(70vh, 640px); width: auto; }
@media (min-width: 1100px) { .side-art { display: block; } }

/* ---------- Butonlar ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 52px; padding: 0 22px; border-radius: 16px;
    font: 700 15.5px/1 var(--sans); text-decoration: none; cursor: pointer; border: 0;
}
.btn-green { background: var(--green); color: #fff; }
.btn-green:active { background: var(--green-2); transform: scale(.98); }
.btn-ghost { background: var(--green-soft); color: var(--green); }

/* ---------- Karşılama ---------- */
.hero { position: relative; padding: 18px 20px 6px; }
.hero::after {
    content: ""; position: absolute; z-index: -1; right: -60px; top: -80px; width: 260px; height: 260px;
    border-radius: 50%; background: radial-gradient(closest-side, rgba(242, 179, 61, .28), transparent);
}
.hero-top { display: flex; align-items: center; justify-content: space-between; }
.hero-logo { width: 84px; height: 84px; margin-left: -6px; }
.table-chip {
    display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px 8px 11px; border-radius: 999px;
    background: var(--green); color: #fff; font-weight: 700; font-size: 14px;
}
.table-chip svg { width: 17px; height: 17px; }
.hello { margin: 10px 0 0; color: var(--muted); font-weight: 600; }
.headline { margin: 2px 0 0; font: 400 clamp(32px, 9vw, 40px)/1.08 var(--serif); color: var(--green); letter-spacing: -.01em; }
.tag { margin: 10px 0 0; font: 400 12px/1 var(--serif); letter-spacing: .16em; text-transform: uppercase; color: var(--orange); }
.fake-search {
    margin-top: 18px; width: 100%; display: flex; align-items: center; gap: 10px;
    height: 52px; padding: 0 16px; border-radius: 16px; border: 1px solid var(--line);
    background: var(--card); color: var(--muted); font: 500 15px var(--sans); text-align: left; cursor: pointer;
    box-shadow: 0 6px 20px rgba(44, 78, 62, .06);
}
.fake-search svg { color: var(--green); }
@media (prefers-reduced-motion: no-preference) {
    .hello, .headline, .tag, .fake-search { animation: rise .7s var(--ease) both; }
    .headline { animation-delay: .06s; } .tag { animation-delay: .12s; } .fake-search { animation-delay: .18s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* ---------- Bloklar ---------- */
.block { padding-top: 26px; }
.block-head { display: flex; align-items: center; justify-content: space-between; padding: 0 20px 12px; }
.block-head h2 { margin: 0; font: 700 18px/1.2 var(--sans); }
.dots { display: flex; gap: 5px; }
.dots i { width: 6px; height: 6px; border-radius: 999px; background: rgba(44, 78, 62, .2); transition: width .3s var(--ease), background-color .3s; }
.dots i.on { width: 18px; background: var(--green); }

/* ---------- Dönen kategori kartları ---------- */
.carousel {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
    padding: 4px 20px 14px; scroll-padding-left: 20px; scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }
.ccard {
    position: relative; flex: 0 0 72%; height: 176px; scroll-snap-align: start;
    border-radius: 28px; overflow: hidden; text-decoration: none;
    background: var(--c-bg); color: var(--c-fg);
    transition: transform .35s var(--ease);
}
.ccard:active { transform: scale(.97); }
.ccard::before {
    content: ""; position: absolute; width: 190px; height: 190px; right: -50px; bottom: -70px;
    border-radius: 50%; background: rgba(255, 255, 255, .16);
}
.ccard-txt { position: relative; z-index: 2; display: grid; gap: 4px; padding: 20px 20px 0; max-width: 62%; }
.ccard-txt b { font: 400 26px/1.08 var(--serif); }
.ccard-txt small { font-weight: 600; font-size: 13.5px; opacity: .8; }
.ccard-art {
    position: absolute; z-index: 1; right: -4%; bottom: -8%; width: 56%; max-height: 92%; object-fit: contain;
    transform: rotate(-8deg); filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .14));
    transition: transform .6s var(--ease);
}
.ccard.on .ccard-art { transform: rotate(0deg) scale(1.06); }
.ccard-go {
    position: absolute; z-index: 2; left: 20px; bottom: 18px; width: 40px; height: 40px; border-radius: 50%;
    display: grid; place-items: center; background: rgba(255, 255, 255, .22); color: currentColor;
}
.t-mustard .ccard-go, .t-lettuce .ccard-go, .t-blush .ccard-go { background: rgba(44, 78, 62, .12); }
.ccard.is-photo .ccard-art { inset: 0; width: 100%; height: 100%; max-height: none; object-fit: cover; transform: none; filter: none; }
.ccard.is-photo::before { inset: 0; width: auto; height: auto; border-radius: 0; background: linear-gradient(90deg, rgba(20, 30, 25, .72), rgba(20, 30, 25, .1)); z-index: 1; }
.ccard.is-photo { color: #fff; }
.ccard.is-photo .ccard-go { background: rgba(255, 255, 255, .25); }
@media (prefers-reduced-motion: no-preference) {
    .ccard.on .ccard-art { animation: bob 3.2s ease-in-out infinite; }
}
@keyframes bob { 50% { transform: rotate(-3deg) scale(1.06) translateY(-6px); } }

/* ---------- Şefin önerileri ---------- */
.feat-row { display: flex; gap: 12px; overflow-x: auto; padding: 4px 20px 6px; scroll-snap-type: x mandatory; scroll-padding-left: 20px; scrollbar-width: none; }
.feat-row::-webkit-scrollbar { display: none; }
.feat { flex: 0 0 46%; scroll-snap-align: start; text-decoration: none; border-radius: 22px; overflow: hidden; background: var(--card); box-shadow: 0 6px 20px rgba(44, 78, 62, .07); }
.feat img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.feat-info { display: grid; gap: 6px; padding: 10px 12px 12px; justify-items: start; }
.feat-info b { font-weight: 700; font-size: 15px; line-height: 1.25; }

.price-pill {
    display: inline-block; padding: 4px 10px; border-radius: 999px;
    background: var(--green-soft); color: var(--green); font-weight: 800; font-size: 14px;
    font-variant-numeric: tabular-nums;
}

/* ---------- Kategori sekmeleri ---------- */
.tabs {
    position: sticky; top: 0; z-index: 10; margin-top: 22px;
    display: grid; grid-template-columns: 1fr auto; align-items: center;
    height: var(--tabs); background: rgba(245, 242, 236, .9); backdrop-filter: saturate(1.4) blur(12px);
    border-bottom: 1px solid var(--line);
}
.tabs-in { display: flex; gap: 6px; overflow-x: auto; padding: 0 12px 0 16px; scrollbar-width: none; }
.tabs-in::-webkit-scrollbar { display: none; }
.tabs-in a {
    flex: none; padding: 9px 15px; border-radius: 999px; text-decoration: none; white-space: nowrap;
    font-weight: 700; font-size: 14px; color: var(--muted); transition: background-color .2s, color .2s;
}
.tabs-in a.on { background: var(--green); color: #fff; }
.search-btn { width: 52px; height: 100%; border: 0; background: transparent; color: var(--green); display: grid; place-items: center; cursor: pointer; }
.search-row { position: absolute; inset: 0; display: flex; gap: 8px; align-items: center; padding: 8px 10px 8px 14px; background: var(--paper); }
.search-row[hidden] { display: none; }
.search-row input { flex: 1; height: 42px; border: 1.5px solid var(--green); border-radius: 14px; padding: 0 14px; font: 500 16px var(--sans); background: #fff; color: var(--ink); outline: 0; }
.search-row button { border: 0; background: none; color: var(--green); font: 700 14px var(--sans); padding: 8px; cursor: pointer; }

/* ---------- Menü ---------- */
.menu { padding: 4px 14px 10px; }
.cat { padding-top: 24px; }
.cat[hidden], .item[hidden] { display: none; }
.cat-head { display: flex; align-items: center; gap: 12px; padding: 0 6px 12px; }
.cat-art { width: 52px; height: 52px; object-fit: contain; padding: 6px; border-radius: 16px; background: var(--c-soft); flex: none; }
.cat-art.is-photo { object-fit: cover; padding: 0; }
.cat-title { margin: 0; font: 400 24px/1.15 var(--serif); color: var(--green); }
.cat-note { margin: 2px 0 0; color: var(--muted); font-size: 13px; line-height: 1.35; }
.items { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.item a {
    display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 16px;
    background: var(--card); border-radius: 22px; text-decoration: none;
    box-shadow: 0 1px 0 var(--line), 0 6px 18px rgba(44, 78, 62, .05);
    transition: transform .15s var(--ease);
}
.item a:active { transform: scale(.985); }
.item-text { flex: 1; min-width: 0; display: grid; gap: 3px; justify-items: start; }
.item-name { font-weight: 700; font-size: 16.5px; line-height: 1.25; }
.item-note { color: var(--muted); font-size: 13.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item-price { margin-top: 6px; display: flex; align-items: center; gap: 6px; }
.item-price s, .sheet-price s { color: var(--muted); font-weight: 500; font-size: 13px; }
.item-media { position: relative; width: 96px; height: 96px; flex: none; }
.item-media img { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; background: var(--blush); }
.item-media.is-art img { object-fit: contain; padding: 14px; background: var(--c-soft); }
.plus {
    position: absolute; right: -4px; bottom: -4px; width: 32px; height: 32px; border-radius: 50%;
    display: grid; place-items: center; background: var(--green); color: #fff; border: 3px solid var(--card);
}
.plus svg { width: 16px; height: 16px; stroke-width: 2.6; }
.empty { text-align: center; color: var(--muted); padding: 40px 10px; }

/* ---------- Alt aksiyon çubuğu ---------- */
.dock {
    position: fixed; z-index: 20; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%); width: min(calc(100% - 24px), calc(var(--app) - 24px));
    display: flex; justify-content: space-around; align-items: center; padding: 8px 6px;
    background: rgba(255, 255, 255, .88); backdrop-filter: saturate(1.5) blur(16px);
    border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 12px 34px rgba(44, 78, 62, .16);
}
.dock a { flex: 1; display: grid; justify-items: center; gap: 2px; padding: 4px 2px; text-decoration: none; color: var(--muted); font-size: 11.5px; font-weight: 700; }
.dock a svg { width: 22px; height: 22px; color: var(--green); }
.dock .dock-main { color: var(--green); }
.dock .dock-main svg { width: 50px; height: 50px; padding: 13px; margin-top: -26px; border-radius: 50%; background: var(--green); color: #fff; box-shadow: 0 8px 18px rgba(44, 78, 62, .35); border: 4px solid var(--paper); }

/* ---------- Ürün detay paneli ---------- */
.sheet { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.sheet[hidden] { display: none; }
.sheet-bg { position: absolute; inset: 0; background: rgba(28, 40, 34, .5); backdrop-filter: blur(3px); }
.sheet-card {
    position: relative; width: 100%; max-width: var(--app); max-height: 92vh; overflow-y: auto;
    background: var(--paper); border-radius: 30px 30px 0 0; padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-reduced-motion: no-preference) {
    .sheet:not([hidden]) .sheet-card { animation: up .34s var(--ease); }
    .sheet:not([hidden]) .sheet-bg { animation: fade .3s ease; }
}
@keyframes up { from { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } }
.grab { position: absolute; z-index: 3; top: 8px; left: 50%; width: 42px; height: 5px; margin-left: -21px; border-radius: 9px; background: rgba(255, 255, 255, .8); box-shadow: 0 0 0 1px rgba(0, 0, 0, .06); }
.sheet-x {
    position: absolute; top: 14px; right: 14px; z-index: 3; width: 40px; height: 40px;
    border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: var(--ink);
    display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}
.sheet-media { aspect-ratio: 4 / 3; background: var(--c-soft, var(--blush)); display: grid; place-items: center; overflow: hidden; }
.sheet-media img { width: 100%; height: 100%; object-fit: cover; }
.sheet-media.is-art img { width: 58%; height: 78%; object-fit: contain; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .12)); }
.sheet-body { padding: 20px 22px 22px; }
.sheet-cat { margin: 0; color: var(--orange); font-weight: 700; font-size: 13px; letter-spacing: .02em; }
.sheet-name { margin: 4px 0 0; font: 400 30px/1.1 var(--serif); color: var(--green); }
.sheet-note { margin: 8px 0 0; color: var(--muted); }
.sheet-desc { margin: 12px 0 0; }
.sheet-note:empty, .sheet-desc:empty { display: none; }
.sheet-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.sheet-price { margin: 0; font: 400 28px/1 var(--serif); color: var(--ink); display: grid; gap: 4px; }
.sheet-price s { font-family: var(--sans); }
.sheet-act { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 20px; }

/* ---------- Ürün sayfası ---------- */
.backbar {
    position: sticky; top: 0; z-index: 10; height: 60px;
    display: flex; align-items: center; justify-content: space-between; padding: 0 12px 0 6px;
    background: rgba(245, 242, 236, .9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.back { display: inline-flex; align-items: center; gap: 2px; padding: 8px 10px; text-decoration: none; color: var(--green); font-weight: 700; }
.product-media { margin: 0; aspect-ratio: 4 / 3; background: var(--blush); overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-media.no-img { display: grid; place-items: center; }
.product-media.no-img img { width: 42%; height: auto; object-fit: contain; }
.product-info { padding: 20px 22px 8px; }
.product-info .sheet-price { margin-top: 16px; display: block; }
.product .others { padding: 18px 14px 0; }
.qr-product .app { padding-bottom: 20px; }
.notfound { padding: 80px 24px; text-align: center; display: grid; gap: 14px; justify-items: center; }

/* ---------- Alt bilgi ---------- */
.info { margin-top: 30px; padding: 30px 22px 34px; background: var(--blush); text-align: center; display: grid; justify-items: center; border-radius: 30px 30px 0 0; }
.info-tag { margin: 6px 0 18px; color: var(--green); font: 400 12px var(--serif); letter-spacing: .16em; text-transform: uppercase; }
.info dl { margin: 0 0 18px; width: 100%; text-align: left; display: grid; }
.info dl div { display: grid; grid-template-columns: 92px 1fr; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.info dt { font-weight: 700; color: var(--green); font-size: 14px; }
.info dd { margin: 0; font-size: 14.5px; }
.info a { color: var(--green); font-weight: 700; }
.info .small { color: var(--muted); margin: 0; }
