:root {
  --paper: #f5f6f3; --card: #fff; --ink: #16211b; --muted: #5c675f; --line: #e5e8e2;
  --green: #14543a; --green-2: #1f7350; --green-soft: #e6f1ea; --shadow: 0 1px 2px rgba(22, 33, 27, .05), 0 6px 18px -12px rgba(22, 33, 27, .22); --tomato: #c63f25; --tomato-soft: #fbe6df;
  --crate: #efb23c; --crate-soft: #fbf0d4; --blue-soft: #e2ecf2; --blue: #24566f;
  --radius: 14px; --top: env(safe-area-inset-top, 0px); --bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0100-0130, U+0132-02BA, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.45 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; letter-spacing: -.006em; font-variant-numeric: tabular-nums; overscroll-behavior-y: none; }
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: var(--green); }
:focus-visible { outline: 3px solid var(--crate); outline-offset: 2px; }
.boot { padding: 80px 20px; text-align: center; color: var(--muted); }

.shell { min-height: 100dvh; display: flex; flex-direction: column; }
.i { width: 1em; height: 1em; display: block; flex: none; }
.topbar { position: sticky; top: 0; z-index: 20; background: var(--card); color: var(--ink); border-bottom: 1px solid var(--line); padding: calc(var(--top) + 10px) 16px 10px; display: flex; align-items: center; gap: 10px; min-height: calc(var(--top) + 58px); }
.topbar h1 { font-size: 19px; font-weight: 800; letter-spacing: -.01em; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar .sub { display: block; font-size: 12.5px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.icon-btn { position: relative; min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; font-size: 20px; color: inherit; }
.topbar .icon-btn { background: var(--paper); font-size: 21px; }
.dot { position: absolute; top: 3px; right: 3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--tomato); color: #fff; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; }
main { flex: 1; width: 100%; max-width: 780px; margin: 0 auto; padding: 16px 16px calc(var(--bottom) + 96px); }

.tabbar { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; display: flex; background: var(--card); border-top: 1px solid var(--line); padding: 4px 4px calc(var(--bottom) + 4px); }
.tab { flex: 1; min-width: 0; min-height: 54px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; color: var(--muted); font-size: 11.5px; font-weight: 600; border-radius: 10px; position: relative; }
.tab .ic { font-size: 22px; margin-bottom: 2px; }
.tab.active { color: var(--green); }
.tab.active .i { stroke-width: 2.4; }
.tab .dot { top: 2px; right: calc(50% - 26px); background: var(--tomato); color: #fff; }

@media (min-width: 900px) {
  .tab.active { background: var(--green-soft); }
  .tabbar { top: 0; right: auto; bottom: 0; width: 196px; flex-direction: column; justify-content: flex-start; gap: 4px; padding: calc(var(--top) + 76px) 10px 10px; border-top: 0; border-right: 1px solid var(--line); }
  .tab { flex: none; flex-direction: row; justify-content: flex-start; gap: 10px; padding: 0 12px; font-size: 14.5px; }
  .tab .dot { position: static; margin-left: auto; }
  .shell { padding-left: 196px; }
  .shell.no-nav { padding-left: 0; }
  .topbar { z-index: 40; margin-left: -196px; padding-left: 20px; }
  main { padding-bottom: 40px; }
}

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.stack { display: flex; flex-direction: column; gap: 12px; }
.section { margin-top: 22px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; min-height: 28px; }
.section-head h2 { font-size: 17px; font-weight: 800; }
.link { color: var(--green); font-weight: 700; font-size: 14px; min-height: 44px; padding: 0 2px; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.empty { text-align: center; padding: 30px 16px; color: var(--muted); }
.empty .big { font-size: 40px; display: flex; justify-content: center; margin-bottom: 10px; color: var(--green-2); }

.btn { min-height: 48px; padding: 10px 18px; border-radius: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-align: center; text-decoration: none; }
.btn.primary { background: var(--green); color: #fff; }
.btn.primary:hover { background: var(--green-2); }
.btn.ghost { background: var(--card); color: var(--green); border: 1.5px solid var(--green); }
.btn.danger { background: var(--tomato-soft); color: #8f2710; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: default; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-row .btn { flex: 1 1 140px; }

.deadline { background: var(--green) center / cover no-repeat; color: #fff; border-radius: 18px; padding: 18px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-height: 186px; justify-content: flex-end; }
.deadline b { font-size: 23px; line-height: 1.2; font-weight: 800; letter-spacing: -.02em; }
.deadline p { max-width: 36ch; opacity: .92; }
.deadline .tick { font-size: 13.5px; background: var(--crate); color: #2b1d00; padding: 5px 11px; border-radius: 99px; font-weight: 700; margin-top: 8px; }
.quick { display: flex; align-items: center; gap: 12px; }
.quick .ico { font-size: 22px; width: 44px; height: 44px; flex: none; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--green-soft); color: var(--green); }
.quick > div { flex: 1; min-width: 0; }
.quick b { display: block; }
.campaign { background: var(--crate-soft); border-color: #eedca9; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.code { font-family: ui-monospace, Menlo, monospace; font-weight: 800; background: #fff; border: 1.5px dashed #b58a1f; padding: 8px 10px; border-radius: 8px; color: #5c4300; min-height: 40px; }

.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.cat { position: relative; overflow: hidden; border-radius: var(--radius); height: 112px; background: var(--green-soft); display: block; box-shadow: var(--shadow); }
.cat:first-child { grid-column: span 2; height: 136px; }
.cat .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9, 38, 25, 0) 40%, rgba(9, 38, 25, .78)); }
.cat-name { position: absolute; z-index: 1; left: 12px; right: 12px; bottom: 10px; color: #fff; font-size: 15.5px; font-weight: 700; text-align: left; }
@media (min-width: 620px) { .cat-grid { grid-template-columns: repeat(5, 1fr); } .cat:first-child { grid-column: auto; height: 112px; } }

.search { position: relative; }
.search input { width: 100%; min-height: 48px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); padding: 10px 14px; font-size: 16px; }
.tools { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.chips { display: flex; gap: 6px; overflow-x: auto; flex: 1; min-width: 0; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 40px; padding: 0 13px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); font-size: 14px; font-weight: 600; white-space: nowrap; }
.chip.active { background: var(--green); border-color: var(--green); color: #fff; }

.list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.row { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow); }
.row.off { opacity: .68; }
.thumb { flex: none; width: 76px; height: 76px; border-radius: 12px; background: #fff; overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 34px; }
.ph { display: block; width: 100%; height: 100%; object-fit: cover; }
.ph-none { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; background: var(--green-soft); }
.row-body { flex: 1; min-width: 0; text-align: left; display: block; min-height: 44px; }
.row-body .name { font-weight: 700; display: block; overflow-wrap: anywhere; }
.price { font-size: 14px; color: var(--muted); display: block; }
.price b { color: var(--ink); font-size: 15.5px; }
.price .tier { color: var(--green-2); font-weight: 700; }
.price .down { color: var(--green-2); font-weight: 800; }
.price .up { color: var(--tomato); font-weight: 800; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); gap: 10px; margin-top: 12px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 10px 10px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; box-shadow: var(--shadow); }
.tile .thumb { width: calc(100% + 20px); margin: 0 -10px; height: auto; aspect-ratio: 4 / 3; border-radius: 0; font-size: 48px; }
.tile .row-body { flex: 1; }
.scroller { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
.scroller::-webkit-scrollbar { display: none; }
.scroller .tile { flex: 0 0 158px; }

.stepper { display: inline-flex; align-items: center; background: var(--green-soft); border-radius: 12px; flex: none; }
.stepper button { width: 42px; height: 44px; font-size: 22px; font-weight: 700; color: var(--green); }
.stepper input { width: 52px; height: 44px; border: 0; background: transparent; text-align: center; font-weight: 800; font-size: 16px; padding: 0; }
.add { min-height: 44px; min-width: 76px; padding: 0 14px; border-radius: 12px; background: var(--green); color: #fff; font-weight: 700; flex: none; }
.tile .add, .tile .stepper { width: 100%; justify-content: space-between; }
.tile .stepper input { flex: 1; min-width: 0; }
.none { flex: none; font-size: 13px; font-weight: 700; color: #8f2710; background: var(--tomato-soft); border-radius: 10px; padding: 8px 10px; }

.cartbar { position: fixed; z-index: 25; left: 12px; right: 12px; bottom: calc(var(--bottom) + 72px); max-width: 756px; margin: 0 auto; background: var(--ink); color: #fff; border-radius: 14px; min-height: 52px; padding: 8px 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 700; width: auto; box-shadow: 0 10px 26px -12px rgba(0, 0, 0, .5); }
.has-cartbar main { padding-bottom: calc(var(--bottom) + 150px); }
@media (min-width: 900px) { .cartbar { left: 216px; bottom: 16px; } .has-cartbar main { padding-bottom: 90px; } }

.summary { display: flex; flex-direction: column; gap: 6px; }
.summary div { display: flex; justify-content: space-between; gap: 12px; }
.summary .total { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 2px; font-size: 19px; font-weight: 800; }
.summary .disc { color: var(--green-2); font-weight: 700; }
.notice { padding: 10px 12px; border-radius: 10px; font-size: 14px; }
.notice.warn { background: var(--crate-soft); color: #5c4300; }
.notice.bad { background: var(--tomato-soft); color: #8f2710; }
.notice.good { background: var(--green-soft); color: var(--green); }
.notice.info { background: var(--blue-soft); color: var(--blue); }
.meter { height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; margin-top: 6px; }
.meter i { display: block; height: 100%; background: var(--green-2); border-radius: 4px; }

label.field { display: block; }
.field > span { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 4px; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; border: 1.5px solid var(--line); border-radius: 11px; padding: 10px 12px; background: #fff; font-size: 16px; }
/* Older iOS ignores the height of a native select; draw it ourselves with a chevron. */
.field select { -webkit-appearance: none; appearance: none; padding-right: 38px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235c675f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 18px; }
.field textarea { min-height: 76px; resize: vertical; }
/* iOS draws date fields with its own height and centred text; make them look like the other fields. */
.field input[type=date] { -webkit-appearance: none; appearance: none; display: block; }
.field input[type=date]::-webkit-date-and-time-value { text-align: left; }
.field .hint { display: block; font-weight: 400; font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; min-height: 44px; }
.check a { display: inline-block; padding: 11px 0; margin: -11px 0; }
.check input { width: 22px; height: 22px; flex: none; margin: 1px 0 0; accent-color: var(--green); }
.options { display: flex; flex-direction: column; gap: 6px; }
.options.inline { flex-direction: row; flex-wrap: wrap; }
.option { display: block; flex: 1 1 auto; text-align: left; min-height: 48px; padding: 10px 12px; border-radius: 11px; border: 1.5px solid var(--line); background: #fff; }
.option.active { border-color: var(--green); background: var(--green-soft); }
.option b { display: block; }
.option[disabled] { opacity: .55; cursor: default; }

.badge { display: inline-block; padding: 3px 9px; border-radius: 99px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.st-alindi { background: var(--blue-soft); color: var(--blue); }
.st-hazirlaniyor, .st-acik { background: var(--crate-soft); color: #5c4300; }
.st-yolda { background: #e7e3f4; color: #443a7a; }
.st-teslim, .st-cozuldu { background: var(--green-soft); color: var(--green); }
.st-iptal, .st-reddedildi { background: var(--tomato-soft); color: #8f2710; }
.order-card { width: 100%; text-align: left; display: block; }
.order-card .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.order-card .bottom { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; }
.timeline { display: flex; gap: 2px; }
.timeline div { flex: 1; min-width: 0; font-size: 12px; text-align: center; color: var(--muted); }
.timeline i { display: block; height: 6px; border-radius: 3px; background: var(--line); margin-bottom: 5px; }
.timeline .done { color: var(--green); font-weight: 700; }
.timeline .done i { background: var(--green-2); }
.item { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.item:last-child { border-bottom: 0; }
.item > .em { font-size: 24px; flex: none; width: 48px; height: 48px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.item > .bd { flex: 1; min-width: 0; }
.item .x { text-decoration: line-through; color: var(--muted); }
.item .amt { font-weight: 700; flex: none; text-align: right; }

.menu { padding: 2px 14px; }
.menu-item { width: 100%; min-height: 54px; display: flex; align-items: center; gap: 12px; text-align: left; border-bottom: 1px solid var(--line); font-weight: 600; color: inherit; text-decoration: none; }
.menu-item:last-child { border-bottom: 0; }
.menu-item .ic { font-size: 20px; color: var(--green-2); }
.menu-item .txt { flex: 1; min-width: 0; }
.menu-item .val { color: var(--muted); font-weight: 500; font-size: 14px; }
.stat { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stat .card b { display: block; font-size: 20px; }
.chart { display: flex; align-items: flex-end; gap: 8px; height: 150px; }
.chart button { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); }
.chart i { display: block; width: 100%; max-width: 44px; background: var(--green-2); border-radius: 4px 4px 0 0; min-height: 2px; }
.chart .sel { color: var(--ink); font-weight: 800; }
.hbar { display: flex; flex-direction: column; gap: 3px; padding: 7px 0; }
.hbar .lab { display: flex; justify-content: space-between; gap: 10px; font-size: 14.5px; }
.hbar .bar { height: 8px; border-radius: 4px; background: var(--green-2); min-width: 3px; }

.sheet-back { position: fixed; inset: 0; z-index: 50; background: rgba(20, 30, 22, .5); display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: var(--paper); width: 100%; max-width: 560px; max-height: 88dvh; overflow-y: auto; border-radius: 20px 20px 0 0; padding: 16px 16px calc(var(--bottom) + 20px); }
@media (min-width: 620px) { .sheet-back { align-items: center; padding: 20px; } .sheet { border-radius: 20px; padding-bottom: 20px; } }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.sheet-head h2 { font-size: 19px; font-weight: 800; min-width: 0; }
.hero .thumb { width: 100%; height: auto; aspect-ratio: 16 / 10; border-radius: 14px; font-size: 72px; }
.hero-info { margin-top: 12px; }
#toast { position: fixed; z-index: 70; left: 16px; right: 16px; top: calc(var(--top) + 14px); max-width: 460px; margin: auto; background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 12px; font-weight: 600; text-align: center; opacity: 0; transform: translateY(-8px); transition: opacity .2s, transform .2s; pointer-events: none; }
#toast.on { opacity: 1; transform: none; }
#toast.bad { background: #8f2710; }

.auth { max-width: 460px; margin: -22px auto 0; position: relative; }
.auth-cover { background: var(--green) center / cover no-repeat; color: #fff; min-height: calc(var(--top) + 250px); padding: calc(var(--top) + 20px) 20px 42px; display: flex; align-items: flex-end; justify-content: center; text-align: center; }
.auth-cover img { width: 60px; height: 60px; border-radius: 15px; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); }
.auth-cover h1 { font-size: 30px; font-weight: 800; letter-spacing: -.025em; margin-top: 6px; }
.auth-hero { text-align: center; margin: 8px 0 18px; }
.auth-hero img { width: 76px; height: 76px; border-radius: 18px; }
.auth-hero h1 { font-size: 26px; font-weight: 900; }
.cell-photo { display: flex; align-items: center; gap: 10px; }
.cell-photo .ph, .cell-photo .ph-none { width: 38px; height: 38px; flex: none; border-radius: 8px; }
.tabs { display: flex; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 3px; border-radius: 12px; margin-bottom: 14px; }
.tabs button { flex: 1; min-height: 42px; border-radius: 10px; font-weight: 700; color: var(--muted); }
.tabs .active { background: var(--green); color: #fff; }
/* Quiet studio credit: small grey text, no badge. */
.credit-row { margin: 22px 0 0; text-align: center; }
.credit { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 12px; color: var(--muted); font-size: 12.5px; text-decoration: none; }
.credit b { font-weight: 600; color: var(--ink); }
/* Login screens have no tab bar: no room kept for it, and the credit sits at the foot of the screen. */
.no-nav main { padding-bottom: calc(var(--bottom) + 12px); }
.auth { display: flex; flex-direction: column; }
.auth > .credit-row { margin-top: auto; padding-top: 22px; }
/* Hareketler: sayfa girişi, sayfa (sheet) açılışı, üzerine gelince ve basınca */
:root { --ease: cubic-bezier(.2, .8, .2, 1); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes sheet-up { from { transform: translateY(40px); opacity: .4; } }
@keyframes pop { from { transform: scale(.96); opacity: 0; } }
.page-in main, .page-in .admin-main { animation: rise .32s var(--ease) backwards; }
.page-in :is(.grid, .scroller) > .tile, .page-in .cat-grid > .cat, .page-in .list > .row { animation: rise .38s var(--ease) backwards; }
.page-in :is(.grid, .scroller, .cat-grid, .list) > :nth-child(2) { animation-delay: .03s; }
.page-in :is(.grid, .scroller, .cat-grid, .list) > :nth-child(3) { animation-delay: .06s; }
.page-in :is(.grid, .scroller, .cat-grid, .list) > :nth-child(4) { animation-delay: .09s; }
.page-in :is(.grid, .scroller, .cat-grid, .list) > :nth-child(5) { animation-delay: .12s; }
.page-in :is(.grid, .scroller, .cat-grid, .list) > :nth-child(6) { animation-delay: .15s; }
.page-in :is(.grid, .scroller, .cat-grid, .list) > :nth-child(n+7) { animation-delay: .18s; }
.sheet-back { animation: fade .2s ease-out both; }
.sheet { animation: sheet-up .3s var(--ease) both; }
@media (min-width: 620px) { .sheet { animation-name: pop; } }
#toast { transition: opacity .25s var(--ease), transform .25s var(--ease); }

.tile, .row, .cat, .card, .chip, .option, .tab, .btn, .add, .mini, .link, .icon-btn, .menu-item, .stepper button, .admin-nav button, .admin-nav a, .tabs button, .order-card {
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), background-color .18s ease, border-color .18s ease, color .18s ease;
}
.thumb .ph, .cat .ph { transition: transform .5s var(--ease); }
.cat::after { transition: opacity .3s ease; }
@media (hover: hover) {
  .tile:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(22, 33, 27, .05), 0 16px 30px -16px rgba(22, 33, 27, .38); border-color: #d6dcd3; }
  .tile:hover .thumb .ph { transform: scale(1.06); }
  .row:hover { border-color: #d6dcd3; box-shadow: 0 2px 4px rgba(22, 33, 27, .05), 0 12px 24px -16px rgba(22, 33, 27, .32); }
  .row:hover .thumb .ph { transform: scale(1.07); }
  .cat:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -16px rgba(22, 33, 27, .45); }
  .cat:hover .ph { transform: scale(1.07); }
  .cat:hover::after { opacity: .85; }
  .cat:hover .ph-none { transform: scale(1.1); }
  .cat .ph-none { transition: transform .4s var(--ease); }
  button.card:hover, a.card:hover, .order-card:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -16px rgba(22, 33, 27, .36); }
  .chip:not(.active):hover { border-color: var(--green-2); color: var(--green); }
  .option:not(.active):not([disabled]):hover { border-color: #b9c8bd; background: #fbfcfa; }
  .btn.ghost:hover { background: var(--green-soft); }
  .btn.danger:hover { background: #f8d6cb; }
  .add:hover { background: var(--green-2); }
  .mini:hover { background: #d5eadd; }
  .mini.bad:hover { background: #f8d6cb; }
  .tab:not(.active):hover { color: var(--green); background: var(--paper); }
  .icon-btn:hover { background: var(--green-soft); }
  .menu-item:hover { color: var(--green); }
  .stepper button:hover { background: rgba(20, 84, 58, .08); border-radius: 12px; }
  .admin-nav button:not(.active):hover, .admin-nav a:hover { background: rgba(255, 255, 255, .09); }
  .tabs button:not(.active):hover { color: var(--green); }
  .cartbar:hover { transform: translateY(-2px); }
}
.btn:not([disabled]):active, .add:active, .chip:active, .mini:active, .icon-btn:active, .tab:active, .option:not([disabled]):active, .stepper button:active { transform: scale(.96); transition-duration: .08s; }
.tile:active, .cat:active, .row:active, button.card:active, .order-card:active { transform: scale(.985); transition-duration: .1s; }
.cartbar { transition: transform .22s var(--ease); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* Çiftçi paneli */
.admin-shell { display: flex; min-height: 100dvh; }
.admin-nav { width: 216px; flex: none; background: #0f3f2c; color: #fff; padding: calc(var(--top) + 14px) 10px 14px; display: flex; flex-direction: column; gap: 3px; position: sticky; top: 0; height: 100dvh; overflow-y: auto; }
.admin-nav .brand { font-size: 20px; font-weight: 900; padding: 4px 10px 12px; }
.admin-nav button, .admin-nav a { min-height: 44px; padding: 0 12px; border-radius: 10px; text-align: left; font-weight: 600; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 6px; text-decoration: none; font-size: 15px; flex: none; }
.admin-nav .active { background: rgba(255, 255, 255, .18); }
.nav-dot { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--tomato); color: #fff; font-size: 12px; font-weight: 800; line-height: 20px; text-align: center; }
.admin-main { flex: 1; min-width: 0; padding: calc(var(--top) + 20px) 22px 40px; }
.admin-main h1 { font-size: 24px; font-weight: 800; margin-bottom: 14px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; margin-bottom: 12px; }
.toolbar .field input, .toolbar .field select { min-height: 44px; }
.toolbar .btn { min-height: 44px; }
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
th { text-align: left; font-size: 12.5px; color: var(--muted); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
td.n, th.n { text-align: right; white-space: nowrap; }
.mini { min-height: 40px; padding: 6px 12px; border-radius: 10px; font-weight: 700; font-size: 13.5px; background: var(--green-soft); color: var(--green); white-space: nowrap; }
.mini.bad { background: var(--tomato-soft); color: #8f2710; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin-bottom: 18px; }
.kpis .card b { display: block; font-size: 24px; font-weight: 800; }
.price-input { width: 96px; min-height: 40px; border: 1.5px solid var(--line); border-radius: 9px; padding: 6px 8px; text-align: right; background: #fff; font-size: 16px; }
.toggle { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; }
.toggle input { width: 20px; height: 20px; accent-color: var(--green); }
.district-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 2px 8px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
@media (max-width: 760px) {
  .admin-shell { flex-direction: column; }
  .admin-nav { width: 100%; height: auto; flex-direction: row; overflow-x: auto; padding: calc(var(--top) + 8px) 8px 8px; z-index: 20; align-items: center; }
  .admin-nav .brand { padding: 0 8px; flex: none; font-size: 18px; }
  .admin-nav button, .admin-nav a { flex: none; white-space: nowrap; font-size: 14px; }
  .admin-main { padding: 16px 16px 40px; }
}
@media print {
  .admin-nav, .toolbar, .no-print { display: none !important; }
  .admin-main { padding: 0; }
  body { background: #fff; }
}
@media (max-width: 480px) {
  .row .thumb { width: 64px; height: 64px; }
  .row { gap: 10px; }
  .row .stepper button { width: 34px; }
  .row .stepper input { width: 40px; }
  .price .tier { white-space: nowrap; }
}

/* Kategori fotoğrafı olmayan kategoriler ve çiftçinin hazır listesi */
.cat .ph-none { position: absolute; inset: 0; font-size: 44px; padding-bottom: 28px; }
.sheet input[type=search] { width: 100%; min-height: 44px; border: 1.5px solid var(--line); border-radius: 12px; padding: 8px 12px; background: #fff; font-size: 16px; }
.pick-list { max-height: none; }
.pick-row > .em { display: flex; align-items: center; justify-content: center; }
.pick-price { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex: none; }
.pick-price .price-input { width: 92px; }
.pick-on { flex: none; text-align: right; font-size: 13px; color: var(--green); }
.sheet .pick-save { position: sticky; bottom: 0; box-shadow: 0 -8px 16px var(--paper); }
/* Disabled, it stays solid so the list does not show through it. */
.sheet .pick-save[disabled] { opacity: 1; background: #a9b8ae; }
.cartbar.in { animation: rise .3s var(--ease) backwards; }

/* Gizlilik metni (alt pencerede) ve giriş formundaki bağlantı */
.prose h2 { font-size: 16.5px; font-weight: 800; margin: 18px 0 4px; }
.prose p, .prose ul { margin: 0 0 8px; font-size: 15px; }
.prose ul { padding-left: 20px; }
.prose .muted { font-size: 13.5px; }
.auth form .link { align-self: center; }
