/* timka OS — restaurant website theme. Brand colors and heading font come from Restaurant settings (CSS variables in layout). */
:root { --cream: #f7f2ea; --ink: #1f1a16; --muted: #7b7268; --line: #e6ddd0; --card: #fff; --ok: #1f8a55; --err: #b3261e; --r: 14px; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 130px; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 16px/1.55 Inter, system-ui, -apple-system, sans-serif; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); font-weight: 600; letter-spacing: -.01em; line-height: 1.1; margin: 0 0 .5em; }
h1 { font-size: clamp(36px, 6vw, 64px); } h2 { font-size: clamp(28px, 4vw, 42px); } h3 { font-size: 20px; }
.wrap { width: min(100% - 32px, 1180px); margin-inline: auto; }
.muted { color: var(--muted); } .small { font-size: 13px; } .neg { color: var(--err); } .pos { color: var(--ok); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 600; color: var(--accent); margin: 0 0 12px; }
.lead { font-size: 18px; color: #4b443d; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 999px; border: 1.5px solid transparent; font: 600 15px/1 Inter, sans-serif; text-decoration: none; cursor: pointer; transition: .15s; }
.btn--accent { background: var(--accent); color: #fff; } .btn--accent:hover { filter: brightness(.92); }
.btn--light { background: #fff; color: var(--ink); } .btn--line { border-color: var(--ink); background: transparent; color: var(--ink); }
.btn--block { width: 100%; } .btn:disabled { opacity: .6; cursor: wait; }
.card { background: var(--card); border-radius: var(--r); padding: 22px; box-shadow: 0 1px 0 var(--line); }
label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; margin-bottom: 14px; }
input, select, textarea { font: inherit; width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
label.check { display: flex; gap: 10px; align-items: center; font-weight: 400; } label.check input { width: auto; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; } .grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 14px; }
.row-b { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; } .row-b.total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; font-size: 18px; }
.err { background: #fdecea; color: var(--err); padding: 10px 12px; border-radius: 10px; font-size: 14px; }
.hp { position: absolute; left: -9999px; }
.rflash { width: min(100% - 32px, 1180px); margin: 14px auto 0; padding: 12px 16px; border-radius: 10px; background: #e7f4ec; color: var(--ok); }
.rflash--error { background: #fdecea; color: var(--err); }

/* header */
.rh { position: sticky; top: 0; z-index: 20; background: rgba(247,242,234,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.rh__in { display: flex; align-items: center; gap: 20px; height: 72px; }
.rh__logo { text-decoration: none; font-family: var(--head); font-size: 24px; font-weight: 700; } .rh__logo img { height: 42px; display: block; }
.rh__nav { display: flex; gap: 22px; margin-left: auto; font-size: 15px; } .rh__nav a { text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; } .rh__nav a.on, .rh__nav a:hover { border-color: var(--accent); }
.pill { font-size: 12px; padding: 5px 10px; border-radius: 99px; background: #eee5d8; color: var(--muted); white-space: nowrap; } .pill--open { background: #e2f2e8; color: var(--ok); }
.cartbtn { position: relative; background: var(--dark); color: #fff; border: 0; border-radius: 999px; padding: 11px 18px; font: 600 14px Inter, sans-serif; cursor: pointer; }
.cartbtn b { position: absolute; top: -6px; right: -6px; background: var(--accent); color: #fff; border-radius: 99px; min-width: 22px; height: 22px; font-size: 12px; display: grid; place-items: center; padding: 0 6px; }
.rh__burger { display: none; background: none; border: 0; font-size: 24px; cursor: pointer; }

/* hero & sections */
.hero { --hero: linear-gradient(135deg, #3a2a20, #1f1a16); background: linear-gradient(90deg, rgba(20,15,12,.82), rgba(20,15,12,.35)), var(--hero) center / cover; color: #fff; }
.hero__in { padding: clamp(80px, 14vw, 170px) 0 clamp(70px, 10vw, 130px); max-width: 760px; }
.hero h1 { font-size: clamp(42px, 7vw, 80px); } .hero__text { font-size: 19px; color: #eadfd2; max-width: 560px; } .hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.sec { padding: clamp(56px, 8vw, 96px) 0; } .sec--cream { background: #efe6d8; } .sec--dark { background: var(--dark); color: #f4ece2; } .sec--dark .lead { color: #d8ccbd; }
.sec__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 26px; } .sec__head a { color: var(--accent); font-weight: 600; text-decoration: none; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.cats { display: grid; gap: 10px; } .cats a { display: flex; justify-content: space-between; gap: 12px; background: #fff; padding: 16px 18px; border-radius: 12px; text-decoration: none; } .cats a span { color: var(--muted); font-size: 14px; text-align: right; }
.rewards { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; } .rewards li { display: flex; justify-content: space-between; background: rgba(255,255,255,.07); padding: 14px 18px; border-radius: 12px; } .rewards b { color: var(--accent); }
.rewards--light li { background: var(--cream); }
.map { width: 100%; height: 340px; border: 0; border-radius: var(--r); }
.pagehead { padding: 46px 0 18px; }

/* menu */
.catnav { position: sticky; top: 72px; z-index: 10; background: var(--cream); border-bottom: 1px solid var(--line); overflow-x: auto; } .catnav .wrap { display: flex; gap: 8px; padding: 10px 0; }
.catnav a { white-space: nowrap; text-decoration: none; padding: 8px 14px; border-radius: 99px; background: #fff; font-size: 14px; }
.menu__cat { padding: 34px 0 10px; }
.dishes { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.dish { background: #fff; border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 1px 0 var(--line); }
.dish__img { position: relative; aspect-ratio: 4 / 3; background: linear-gradient(135deg, #efe3d2, #e2cdb3); }
.dish__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dish__ph { position: absolute; inset: 0; display: grid; place-items: center; font: 600 64px var(--head); color: rgba(31,26,22,.18); }
.dish__tags { position: absolute; left: 10px; top: 10px; display: flex; gap: 6px; } .dish__tags em { font-style: normal; font-size: 11px; background: rgba(255,255,255,.92); padding: 3px 8px; border-radius: 99px; font-weight: 600; }
.dish__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; } .dish__body h3 { font-size: 19px; margin: 0; } .dish__body p { margin: 0; color: var(--muted); font-size: 14px; }
.dish__foot { margin-top: auto; padding-top: 10px; display: flex; justify-content: space-between; align-items: center; } .dish__price { font-weight: 600; } .dish__price s { color: var(--muted); font-weight: 400; font-size: 13px; }
.addbtn { background: var(--accent); color: #fff; border: 0; border-radius: 99px; padding: 8px 14px; font: 600 14px Inter, sans-serif; cursor: pointer; }
.dish--out { opacity: .6; }

/* drawer & item dialog */
.drawer { position: fixed; inset: 0; z-index: 50; pointer-events: none; } .drawer__bg { position: absolute; inset: 0; background: rgba(0,0,0,.4); opacity: 0; transition: .2s; }
.drawer__panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(420px, 100%); background: #fff; display: flex; flex-direction: column; transform: translateX(100%); transition: .25s; }
.drawer.open { pointer-events: auto; } .drawer.open .drawer__bg { opacity: 1; } .drawer.open .drawer__panel { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); } .drawer__head h3 { margin: 0; } .drawer__head button { background: none; border: 0; font-size: 20px; cursor: pointer; }
.drawer__body { flex: 1; overflow: auto; padding: 10px 20px; } .drawer__foot { padding: 16px 20px; border-top: 1px solid var(--line); }
.cline { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); } .cline small { color: var(--muted); grid-column: 1; }
.qty { display: inline-flex; align-items: center; gap: 10px; } .qty button { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 16px; }
.itemdlg { border: 0; border-radius: 18px; padding: 0; width: min(520px, calc(100% - 24px)); max-height: 90vh; } .itemdlg::backdrop { background: rgba(0,0,0,.45); }
.itemdlg__in { padding: 22px; } .itemdlg fieldset { border: 0; padding: 0; margin: 0 0 16px; } .itemdlg legend { font-weight: 600; margin-bottom: 8px; } .itemdlg legend small { color: var(--muted); font-weight: 400; }
.opt { display: flex !important; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 6px !important; font-weight: 400 !important; }
.opt input { width: auto; } .opt span { flex: 1; }
.itemdlg__foot { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-top: 10px; }

/* checkout, track, book, account */
.checkout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; padding-bottom: 70px; }
.co__sum { position: sticky; top: 90px; }
.seg { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; } .seg label { flex: 1; display: flex; flex-direction: row; justify-content: center; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin: 0; cursor: pointer; }
.seg label:has(input:checked) { border-color: var(--accent); background: #fff6ef; } .seg input { width: auto; }
.lines { list-style: none; padding: 0; margin: 0 0 10px; } .lines li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); } .lines small { display: block; color: var(--muted); font-size: 12px; }
.points { background: var(--cream); padding: 12px; border-radius: 10px; margin-bottom: 14px; }
.track, .book { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; padding-bottom: 70px; }
.steps { list-style: none; margin: 0; padding: 0; } .steps li { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 12px; padding: 10px 0; color: var(--muted); }
.steps li span { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); } .steps li.done { color: var(--ink); } .steps li.done span { background: var(--accent); border-color: var(--accent); }
.steps li.now b { color: var(--accent); }
.tmap { height: 300px; border-radius: 12px; margin-top: 14px; } .driver { background: var(--cream); border-radius: 12px; padding: 12px 14px; margin-top: 12px; }
.rate { margin-top: 16px; } .stars button { font-size: 30px; background: none; border: 0; color: #d6cbbd; cursor: pointer; } .stars button.on { color: #e3a008; }
.slots { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; } .slots button { border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 10px 14px; cursor: pointer; font: 500 14px Inter; }
.slots button.on { background: var(--accent); color: #fff; border-color: var(--accent); } .slots button:disabled { opacity: .35; cursor: not-allowed; text-decoration: line-through; }
.narrow { max-width: 620px; } .facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0 0 16px; } .facts dt { color: var(--muted); } .facts dd { margin: 0; font-weight: 600; }
.club, .account { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; padding-bottom: 70px; align-items: start; }
.tiers { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; } .tiers li { display: grid; background: var(--cream); padding: 12px 14px; border-radius: 10px; } .tiers span, .tiers small { color: var(--muted); font-size: 13px; }
.membercard { background: var(--dark); color: #fff; } .membercard small { color: #cbbfae; display: block; } .membercard b { font-size: 26px; letter-spacing: .08em; } .membercard__pts { margin: 14px 0; } .membercard__pts span { font: 600 40px var(--head); color: var(--accent); }

/* footer */
.rf { background: var(--dark); color: #d8ccbd; padding: 56px 0 26px; margin-top: 30px; } .rf a { color: #fff; }
.rf__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; } .rf__name { font: 600 26px var(--head); color: #fff; display: block; margin-bottom: 8px; } .rf b { color: #fff; }
.rf__by { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 40px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; } .rf__by a { color: #cbbfae; text-decoration: none; }

@media (max-width: 860px) {
  .rh__nav { position: fixed; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--cream); padding: 8px 16px 16px; border-bottom: 1px solid var(--line); display: none; }
  .nav-open .rh__nav { display: flex; } .rh__nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .rh__burger { display: block; } .pill { display: none; } .cartbtn { margin-left: auto; }
  .split, .checkout, .track, .book, .rf__grid, .grid2, .grid3 { grid-template-columns: 1fr; } .co__sum { position: static; }
}

.cartbtn b[hidden], [hidden] { display: none !important; }

@media (max-width: 860px) { .rh__logo { font-size: 19px; white-space: nowrap; } .rh__logo img { height: 34px; } }

.demo-bar { background: #101010; color: #f3f1ed; text-align: center; font-size: 13px; padding: 8px 14px; } .demo-bar a { color: #ffb38a; }
