:root {
  --marble: #f8f3ef;
  --paper: #ffffff;
  --ink: #2a2421;
  --ink-2: #5d5550;
  --ink-3: #8f8781;
  --line: #e6e2dd;
  --line-2: #d8d3cd;
  --cocoa: #4a2f25;
  --cocoa-2: #6b4537;
  --berry: #b8395a;
  --berry-2: #9c2c4a;
  --pistachio: #5f8a44;
  --pistachio-bg: #edf4e6;
  --honey: #b7791f;
  --honey-bg: #fbf1de;
  --danger: #b23a3a;
  --danger-bg: #fbeaea;
  --info-bg: #eaf1f8;
  --info: #2f5f8a;
  --radius: 4px;
  --shadow: 0 1px 2px rgba(42, 36, 33, .06), 0 6px 18px rgba(42, 36, 33, .07);
  --shadow-lg: 0 2px 4px rgba(42, 36, 33, .06), 0 14px 40px rgba(42, 36, 33, .12);
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--sans); color: var(--ink); font-size: 15px; line-height: 1.5;
  background-color: #f8f3ef;
  background-image:
    radial-gradient(1100px 620px at 8% -8%, rgba(236, 178, 172, .38), transparent 62%),
    radial-gradient(900px 560px at 100% 4%, rgba(222, 194, 150, .34), transparent 60%),
    radial-gradient(1000px 700px at 55% 112%, rgba(186, 210, 176, .30), transparent 62%),
    linear-gradient(180deg, #fbf7f3 0%, #f4ede7 100%);
  background-attachment: fixed;
  min-height: 100vh; display: flex; flex-direction: column;
}
a { color: var(--cocoa-2); }
img { max-width: 100%; display: block; }
.ic { width: 1.1em; height: 1.1em; vertical-align: -0.17em; flex: none; }
.nav-toggle .ic, .panel-top button .ic { width: 22px; height: 22px; display: block; }
.brand-mark .ic { width: 60%; height: 60%; }
.ph .ic, .thumb-ph .ic { width: 100%; height: 100%; display: block; }
.product-img:has(.ph) { background: linear-gradient(145deg, #fdf3f1 0%, #f8efe6 55%, #f1f5ec 100%); }
.product-img .ph { color: #dcc4b8 !important; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: 1.9rem; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.1rem; }
.muted { color: var(--ink-3); }
.small { font-size: .85rem; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.center { text-align: center; }
.num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.pos { color: var(--pistachio); }
.neg { color: var(--danger); }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Butonlar & formlar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45em; padding: .62em 1.1em;
  border: 1px solid var(--line-2); background: var(--paper); color: var(--ink); border-radius: var(--radius);
  font: 600 .92rem var(--sans); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, transform .05s; white-space: nowrap;
}
.btn:hover { border-color: var(--ink-3); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--cocoa); color: #fff; border-color: var(--cocoa); }
.btn-primary:hover { background: var(--cocoa-2); border-color: var(--cocoa-2); }
.btn-accent { background: var(--berry); color: #fff; border-color: var(--berry); }
.btn-accent:hover { background: var(--berry-2); border-color: var(--berry-2); }
.btn-danger { color: var(--danger); }
.btn-danger:hover { background: var(--danger-bg); border-color: var(--danger); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: rgba(0,0,0,.04); border-color: transparent; }
.btn-sm { padding: .35em .7em; font-size: .82rem; }
.btn-lg { padding: .85em 1.6em; font-size: 1rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

label { display: block; font-weight: 600; font-size: .85rem; margin-bottom: .3em; color: var(--ink-2); }
input[type=text], input[type=password], input[type=number], input[type=email], input[type=tel], input[type=date], input[type=month], input[type=time], input[type=url], select, textarea {
  width: 100%; padding: .6em .75em; border: 1px solid var(--line-2); border-radius: var(--radius); background: #fff;
  font: inherit; color: inherit; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--cocoa-2); box-shadow: 0 0 0 3px rgba(107, 69, 55, .14); }
textarea { min-height: 80px; resize: vertical; }
.field { margin-bottom: 1rem; }
.field .hint { font-size: .8rem; color: var(--ink-3); margin-top: .25em; }
.check { display: flex; align-items: center; gap: .5em; font-weight: 500; color: var(--ink); cursor: pointer; }
.check input { width: 1.1em; height: 1.1em; accent-color: var(--cocoa); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 1rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 1rem; }
.row { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.row-between { display: flex; gap: .6rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.stack > * + * { margin-top: 1rem; }
form.inline { display: inline; }
@media (max-width: 720px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Kartlar / paneller ---------- */
.card { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.25rem; }
.card + .card { margin-top: 1.25rem; }
.cards > .card + .card, .stack > .card + .card { margin-top: 0; }
.stack > * + * { margin-top: 1.25rem !important; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin-bottom: 1rem; flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin: 0; }
.cards { display: grid; gap: 1.25rem; align-items: start; }
.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .cards-2, .cards-3 { grid-template-columns: 1fr; } }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.stat { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1rem 1.15rem; border-top: 3px solid var(--line-2); }
.stat .k { font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.stat .v { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; margin-top: .15rem; font-variant-numeric: tabular-nums; }
.stat .s { font-size: .82rem; color: var(--ink-3); }
.stat.c1 { border-top-color: var(--cocoa); }
.stat.c2 { border-top-color: var(--berry); }
.stat.c3 { border-top-color: var(--pistachio); }
.stat.c4 { border-top-color: var(--honey); }
a.stat { text-decoration: none; color: inherit; }
a.stat:hover { box-shadow: var(--shadow-lg); }

/* ---------- Tablolar ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { padding: .6em .7em; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); font-weight: 700; background: #faf9f7; white-space: nowrap; }
tbody tr:hover { background: #fbfaf8; }
tfoot td { font-weight: 700; background: #faf9f7; border-top: 2px solid var(--line-2); }
td.actions { white-space: nowrap; text-align: right; }
tr.dim td { opacity: .55; }
.clickable { cursor: pointer; }

/* ---------- Rozetler ---------- */
.badge { display: inline-block; padding: .18em .6em; border-radius: 999px; font-size: .75rem; font-weight: 700; background: #f0ece8; color: var(--ink-2); white-space: nowrap; }
.st-alindi { background: var(--info-bg); color: var(--info); }
.st-hazir { background: var(--honey-bg); color: var(--honey); }
.st-yolda { background: #efe8f6; color: #6a4796; }
.st-teslim { background: var(--pistachio-bg); color: var(--pistachio); }
.st-iptal { background: #eee; color: #888; text-decoration: line-through; }
.b-ok { background: var(--pistachio-bg); color: var(--pistachio); }
.b-warn { background: var(--honey-bg); color: var(--honey); }
.b-danger { background: var(--danger-bg); color: var(--danger); }
.b-info { background: var(--info-bg); color: var(--info); }

/* ---------- Uyarılar ---------- */
.flash { padding: .8rem 1rem; border-radius: var(--radius); margin-bottom: 1.25rem; font-weight: 500; border-left: 4px solid; background: #fff; box-shadow: var(--shadow); }
.flash-ok { border-color: var(--pistachio); }
.flash-error { border-color: var(--danger); color: var(--danger); }
.flash-warn { border-color: var(--honey); }
.flash-info { border-color: var(--info); }
.note { background: #faf8f5; border: 1px dashed var(--line-2); border-radius: var(--radius); padding: .75rem 1rem; font-size: .88rem; color: var(--ink-2); }
.note-ai { background: #f6f1fb; border-color: #cdb8e6; }
.empty { text-align: center; padding: 2.5rem 1rem; color: var(--ink-3); }

/* ---------- Site alt bilgisi (her sayfada web sitesi butonu) ---------- */
.site-footer { margin-top: auto; padding: 2rem 1rem 2.2rem; text-align: center; }
.site-footer .web-btn {
  display: inline-flex; align-items: center; gap: .55em; padding: .7em 1.4em; background: var(--paper); color: var(--cocoa);
  border: 1px solid var(--line-2); border-radius: 999px; font-weight: 700; text-decoration: none; box-shadow: var(--shadow);
}
.site-footer .web-btn:hover { background: var(--cocoa); color: #fff; border-color: var(--cocoa); }
.site-footer .web-btn svg { width: 1.15em; height: 1.15em; }
.site-footer .copy { margin-top: .8rem; font-size: .8rem; color: var(--ink-3); }

/* =========================================================
   FİRMA (MÜŞTERİ) ARAYÜZÜ
   ========================================================= */
.topbar { background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.topbar-inner { max-width: 1200px; margin: 0 auto; padding: .7rem 1rem; display: flex; align-items: center; gap: 1rem; }
.brand { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; color: var(--cocoa); text-decoration: none; display: flex; align-items: center; gap: .5rem; }
.brand-mark { width: 34px; height: 34px; border-radius: 50%; background: var(--cocoa); color: #fff; display: grid; place-items: center; font-size: 1rem; }
.topnav { display: flex; gap: .25rem; margin-left: auto; align-items: center; }
.topnav a, .topnav button { padding: .5em .8em; border-radius: var(--radius); color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .92rem; background: none; border: 0; cursor: pointer; font-family: inherit; }
.topnav a:hover, .topnav button:hover { background: rgba(0, 0, 0, .04); color: var(--ink); }
.topnav a.active { color: var(--cocoa); background: #f4eeea; }
.firm-chip { font-size: .8rem; color: var(--ink-3); border-left: 1px solid var(--line); padding-left: .8rem; margin-left: .3rem; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line-2); border-radius: var(--radius); padding: .4rem .55rem; cursor: pointer; }
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .topnav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: .5rem; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .topnav.open { display: flex; }
  .firm-chip { border: 0; padding: .5em .8em; margin: 0; max-width: none; }
}

.page { max-width: 1200px; width: 100%; margin: 0 auto; padding: 1.5rem 1rem; }
.page-narrow { max-width: 860px; }
.page-head { margin-bottom: 1.25rem; }
.page-head h1 { margin-bottom: .15rem; }

/* Teslimat bilgisi şeridi */
.delivery {
  display: flex; align-items: center; gap: .9rem; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: .85rem 1.1rem; margin-bottom: 1.5rem; border-left: 4px solid var(--pistachio);
}
.delivery-icon { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--pistachio-bg); color: var(--pistachio); display: grid; place-items: center; }
.delivery-icon svg { width: 26px; height: 26px; }
.delivery-main { font-size: 1.02rem; }
.delivery-main strong { font-family: var(--serif); font-size: 1.15rem; color: var(--cocoa); }
.delivery-sub { font-size: .84rem; color: var(--ink-3); }
.delivery .countdown { margin-left: auto; text-align: right; font-size: .8rem; color: var(--ink-3); white-space: nowrap; }
.delivery .countdown b { display: block; font-size: 1.15rem; color: var(--ink); font-variant-numeric: tabular-nums; font-family: var(--serif); }
.delivery-pill { display: inline-flex; align-items: center; gap: .35em; font-size: .82rem; font-weight: 700; color: var(--pistachio); background: var(--pistachio-bg); padding: .3em .7em; border-radius: 999px; white-space: nowrap; }
.delivery-pill svg { width: 1.1em; height: 1.1em; }
@media (max-width: 600px) { .delivery { flex-wrap: wrap; } .delivery .countdown { margin-left: 62px; text-align: left; } }

/* Kategori sekmeleri */
.cat-tabs { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .4rem; margin-bottom: 1rem; position: sticky; top: 61px; z-index: 20; scrollbar-width: none; }
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tabs a { flex: none; padding: .45em 1em; background: rgba(255, 255, 255, .9); border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .88rem; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.cat-tabs a:hover { border-color: var(--cocoa-2); color: var(--cocoa); }
.cat-section { scroll-margin-top: 120px; margin-bottom: 2.2rem; }
.cat-title { font-family: var(--serif); font-size: 1.45rem; margin: 0 0 1rem; display: flex; align-items: center; gap: .8rem; color: var(--cocoa); }
.cat-title::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(74, 47, 37, .25), transparent); }

/* Ürün kartları — mermer üzerinde düz beyaz kareler */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.4rem; }
@media (max-width: 520px) { .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; } }
.product { background: var(--paper); box-shadow: var(--shadow); display: flex; flex-direction: column; position: relative; transition: box-shadow .2s, transform .2s; }
.product:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.product-img { aspect-ratio: 1 / 1; background: #fff; display: grid; place-items: center; overflow: hidden; position: relative; }
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-img .ph { width: 58%; height: 58%; color: #d9cfc8; }
.product-body { padding: .85rem .95rem 1rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; border-top: 1px solid #f1eeea; }
.product-name { font-family: var(--serif); font-size: 1.07rem; font-weight: 600; line-height: 1.25; }
.product-desc { font-size: .8rem; color: var(--ink-3); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-price { font-weight: 800; color: var(--cocoa); font-variant-numeric: tabular-nums; }
.product-price .u { font-weight: 500; color: var(--ink-3); font-size: .82rem; }
.product-price s { color: var(--ink-3); font-weight: 500; font-size: .8rem; margin-right: .3em; }
.product-foot { margin-top: auto; padding-top: .45rem; }
.product.in-cart { box-shadow: 0 0 0 2px var(--cocoa), var(--shadow-lg); }
.product.soldout .product-img img, .product.soldout .product-img .ph { filter: grayscale(1); opacity: .45; }
.product.soldout .product-body { opacity: .6; }
.soldout-ribbon {
  position: absolute; top: 14px; left: -4px; background: var(--danger); color: #fff; font-weight: 800; font-size: .78rem;
  letter-spacing: .12em; text-transform: uppercase; padding: .35em .9em; box-shadow: 0 2px 6px rgba(0,0,0,.2); z-index: 2;
}

.stepper { display: flex; align-items: stretch; border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; background: #fff; }
.stepper button { flex: none; width: 38px; border: 0; background: #f7f5f2; font-size: 1.2rem; font-weight: 700; cursor: pointer; color: var(--cocoa); }
.stepper button:hover { background: #efe9e4; }
.stepper input { border: 0 !important; box-shadow: none !important; text-align: center; font-weight: 700; padding: .45em 0; min-width: 0; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper .unit { display: grid; place-items: center; padding: 0 .5em 0 0; font-size: .78rem; color: var(--ink-3); background: #fff; }

/* Sepet çubuğu */
.cartbar {
  position: sticky; bottom: 0; z-index: 25; margin-top: 1.5rem; background: var(--cocoa); color: #fff;
  box-shadow: 0 -6px 24px rgba(42, 36, 33, .2); border-radius: var(--radius) var(--radius) 0 0;
}
.cartbar-inner { display: flex; align-items: center; gap: 1rem; padding: .85rem 1.1rem; }
.cartbar .sum { font-size: .9rem; opacity: .85; }
.cartbar .total { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.cartbar .btn { margin-left: auto; background: #fff; color: var(--cocoa); border-color: #fff; }
.cartbar .btn:hover { background: #f4eeea; }
.cartbar.empty-cart { background: #8a7a72; }

/* Sipariş özeti */
.order-lines td:first-child { width: 64px; }
.thumb { width: 52px; height: 52px; object-fit: cover; background: #fff; border: 1px solid var(--line); }
.thumb-ph { width: 52px; height: 52px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); color: #d9cfc8; }
.thumb-ph svg { width: 30px; height: 30px; }
.date-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .5rem; }
.date-opt { position: relative; }
.date-opt input { position: absolute; opacity: 0; }
.date-opt span { display: block; padding: .6em .7em; border: 1px solid var(--line-2); border-radius: var(--radius); background: #fff; cursor: pointer; text-align: center; font-size: .85rem; line-height: 1.3; }
.date-opt span b { display: block; font-size: .95rem; }
.date-opt input:checked + span { border-color: var(--cocoa); background: #f7f1ed; box-shadow: 0 0 0 1px var(--cocoa); }
.date-opt input:focus-visible + span { box-shadow: 0 0 0 3px rgba(107, 69, 55, .3); }

.order-list .order-row { display: flex; align-items: center; gap: 1rem; padding: .95rem 1.1rem; background: var(--paper); box-shadow: var(--shadow); text-decoration: none; color: inherit; margin-bottom: .7rem; border-radius: var(--radius); }
.order-list .order-row:hover { box-shadow: var(--shadow-lg); }
.order-row .date-box { flex: none; width: 58px; text-align: center; border-right: 1px solid var(--line); padding-right: .9rem; }
.order-row .date-box .d { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; line-height: 1; color: var(--cocoa); }
.order-row .date-box .m { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.order-row .info { flex: 1; min-width: 0; }
.order-row .info .preview { font-size: .85rem; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* İstatistik çubukları (fiyatsız) */
.qty-bars .bar-row { display: grid; grid-template-columns: minmax(120px, 2fr) 3fr auto; gap: .8rem; align-items: center; padding: .45rem 0; border-bottom: 1px solid var(--line); }
.qty-bars .bar { height: 12px; background: #f1ece8; border-radius: 99px; overflow: hidden; }
.qty-bars .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--cocoa-2), var(--berry)); border-radius: 99px; }
.qty-bars .q { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 560px) { .qty-bars .bar-row { grid-template-columns: 1fr auto; } .qty-bars .bar { grid-column: 1 / -1; order: 3; } }

/* Giriş sayfası */
.login-wrap { flex: 1; display: grid; place-items: center; align-content: center; gap: 1.1rem; padding: 2rem 1rem; }
.login-page { min-height: 100vh; min-height: 100dvh; }
.login-foot { text-align: center; font-size: .8rem; color: var(--ink-3); line-height: 1.5; }
.login-foot p { margin: 0; }
.login-foot .copy { margin-top: .15rem; font-size: .76rem; }
.dev-credit { font-size: .82rem; }
.dev-credit a { font-weight: 800; letter-spacing: .04em; text-decoration: none; background: linear-gradient(135deg, #0e8bb4, #3fca90); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.dev-credit a:hover { opacity: .8; }
.login-card { width: 100%; max-width: 400px; background: var(--paper); box-shadow: var(--shadow-lg); padding: 2.2rem 2rem; border-radius: var(--radius); }
.login-card .brand { justify-content: center; font-size: 1.7rem; margin-bottom: .3rem; }
.login-card .brand-mark { width: 44px; height: 44px; font-size: 1.3rem; }
.login-card .tag { text-align: center; color: var(--ink-3); font-size: .9rem; margin-bottom: 1.6rem; }
@media (max-width: 520px) {
  .login-wrap { padding: 1rem .9rem; gap: .9rem; }
  .login-card { padding: 1.6rem 1.3rem 1.4rem; }
  .login-card .tag { margin-bottom: 1.1rem; }
  .login-card .field { margin-bottom: .8rem; }
}

/* =========================================================
   YÖNETİM PANELİ
   ========================================================= */
.panel-shell { display: flex; min-height: 100vh; }
.sidebar { width: 248px; flex: none; background: #2f211c; color: #e9e1dc; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; z-index: 40; }
.sidebar .brand { color: #fff; padding: 1.1rem 1.2rem .9rem; font-size: 1.2rem; }
.sidebar .brand-mark { background: var(--berry); }
.sidebar .role { margin: 0 1.2rem 1rem; font-size: .75rem; color: #b8aaa2; }
.sidebar .role b { color: #fff; }
.side-group { padding: .3rem .6rem; }
.side-group .gt { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: #8f7f77; padding: .7rem .6rem .3rem; font-weight: 700; }
.side-link { display: flex; align-items: center; gap: .65rem; padding: .5rem .65rem; color: #e0d6d0; text-decoration: none; border-radius: var(--radius); font-size: .9rem; font-weight: 500; }
.side-link svg { width: 18px; height: 18px; opacity: .75; flex: none; }
.side-link:hover { background: rgba(255,255,255,.06); color: #fff; }
.side-link.active { background: rgba(255,255,255,.1); color: #fff; box-shadow: inset 3px 0 0 var(--berry); }
.side-link .cnt { margin-left: auto; background: var(--berry); color: #fff; border-radius: 99px; font-size: .7rem; padding: .05em .55em; font-weight: 700; }
.sidebar .side-foot { margin-top: auto; padding: .8rem; border-top: 1px solid rgba(255,255,255,.08); }
.sidebar .side-foot button { width: 100%; }
.panel-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.panel-top { display: none; }
.panel-content { padding: 1.6rem 1.8rem; width: 100%; max-width: 1400px; }
.panel-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.3rem; }
.panel-head h1 { margin: 0; }
.panel-head .sub { color: var(--ink-3); font-size: .9rem; margin-top: .2rem; }
.filters { display: flex; flex-wrap: wrap; gap: .6rem; align-items: flex-end; margin-bottom: 1rem; }
.filters .f { min-width: 140px; }
.filters label { font-size: .75rem; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; background: #fff; }
.seg a { padding: .5em .95em; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .88rem; border-right: 1px solid var(--line-2); }
.seg a:last-child { border-right: 0; }
.seg a.on { background: var(--cocoa); color: #fff; }
.chart-box { position: relative; height: 300px; }
.chart-box.sm { height: 220px; }
.ro-note { font-size: .8rem; color: var(--ink-3); display: inline-flex; gap: .35em; align-items: center; }
@media (max-width: 900px) {
  .sidebar { position: fixed; left: 0; top: 0; transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow-lg); }
  .sidebar.open { transform: none; }
  .panel-top { display: flex; align-items: center; gap: .8rem; padding: .7rem 1rem; background: #2f211c; color: #fff; position: sticky; top: 0; z-index: 30; }
  .panel-top .brand { color: #fff; font-size: 1.1rem; }
  .panel-top button { background: none; border: 1px solid rgba(255,255,255,.25); color: #fff; border-radius: var(--radius); padding: .35rem .55rem; cursor: pointer; }
  .panel-content { padding: 1.1rem 1rem; }
}

/* Yardım kutusu: sayfa başlığının hemen altında görünür */
.panel-content { display: flex; flex-direction: column; }
.panel-content > .panel-head { order: -3; }
.panel-content > .flash, .panel-content > .pw-box { order: -2; }
.panel-content > .help-box { order: -1; }
.help-q { display: inline-grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: 50%; background: var(--honey); color: #fff; font-weight: 800; font-size: .85rem; font-family: var(--sans); }
.help-box { background: #fffaf0; border: 1px solid #efd9a8; border-left: 4px solid var(--honey); border-radius: var(--radius); margin-bottom: 1.3rem; box-shadow: var(--shadow); }
.help-box summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .7rem; padding: .75rem 1rem; font-weight: 700; color: var(--cocoa); user-select: none; }
.help-box summary::-webkit-details-marker { display: none; }
.help-sum-title { flex: 1; }
.help-toggle { font-size: .8rem; font-weight: 700; color: var(--honey); border: 1px solid #efd9a8; background: #fff; border-radius: 999px; padding: .2em .8em; }
.help-box[open] .when-closed, .help-box:not([open]) .when-open { display: none; }
.help-body { padding: 0 1.2rem 1rem 3.1rem; font-size: .92rem; }
.help-purpose { margin: 0 0 .6rem; font-size: .98rem; color: var(--ink); }
.help-steps { margin: 0 0 .7rem; padding-left: 1.2rem; color: var(--ink-2); }
.help-steps li { margin-bottom: .35rem; padding-left: .2rem; }
.help-steps li::marker { color: var(--honey); font-weight: 800; }
.help-locked { color: var(--ink-3); }
.help-tips { background: #fff; border: 1px dashed #efd9a8; border-radius: var(--radius); padding: .55rem .8rem; color: var(--ink-2); font-size: .87rem; }
.help-more { margin-top: .6rem; font-size: .85rem; }
@media (max-width: 700px) { .help-body { padding-left: 1rem; } }
.side-help { display: flex; align-items: center; gap: .6rem; margin: 0 .9rem .6rem; padding: .55rem .7rem; border-radius: var(--radius); background: rgba(183, 121, 31, .18); color: #fbe3b8; font-weight: 700; font-size: .9rem; text-decoration: none; border: 1px solid rgba(183, 121, 31, .45); }
.side-help:hover, .side-help.active { background: var(--honey); color: #fff; }
.side-help:hover .help-q, .side-help.active .help-q { background: #fff; color: var(--honey); }

/* Kullanım kılavuzu sayfası */
.guide-toc { display: flex; flex-wrap: wrap; gap: .5rem; }
.guide-toc a { padding: .4em .9em; background: #fff; border: 1px solid var(--line-2); border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .88rem; color: var(--ink-2); }
.guide-toc a:hover { border-color: var(--cocoa-2); color: var(--cocoa); }
.guide-section { scroll-margin-top: 1rem; }
.guide-section h2 { display: flex; align-items: center; gap: .6rem; }
.routine { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.routine .card h3 { color: var(--cocoa); }
.routine ul, .task ol { margin: 0; padding-left: 1.2rem; color: var(--ink-2); }
.routine li, .task li { margin-bottom: .35rem; }
.task { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-bottom: .6rem; }
.task summary { cursor: pointer; padding: .75rem 1rem; font-weight: 700; color: var(--ink); list-style: none; display: flex; gap: .6rem; align-items: center; }
.task summary::-webkit-details-marker { display: none; }
.task summary::before { content: '+'; display: inline-grid; place-items: center; width: 22px; height: 22px; flex: none; border-radius: 50%; background: #f4eeea; color: var(--cocoa); font-weight: 800; }
.task[open] summary::before { content: '−'; }
.task[open] summary { border-bottom: 1px solid var(--line); }
.task ol { padding: .8rem 1rem .9rem 2.4rem; }
.page-guide { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.page-guide:last-child { border-bottom: 0; }
.page-guide h3 a { text-decoration: none; color: var(--cocoa); }
.page-guide ol { color: var(--ink-2); padding-left: 1.2rem; margin: .4rem 0; }
.page-guide li { margin-bottom: .3rem; }
dl.glossary { display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1.2rem; margin: 0; }
dl.glossary dt { font-weight: 700; color: var(--cocoa); }
dl.glossary dd { margin: 0; color: var(--ink-2); }
@media (max-width: 600px) { dl.glossary { grid-template-columns: 1fr; } dl.glossary dd { margin-bottom: .5rem; } }

/* Takvim */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal .dow { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); font-weight: 700; padding: .3rem; text-align: center; }
.cal .day { background: #fff; min-height: 104px; padding: .45rem .55rem; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: .15rem; font-size: .8rem; }
.cal .day:hover { border-color: var(--cocoa-2); }
.cal .day .dn { font-weight: 800; font-size: .95rem; }
.cal .day.today { border-color: var(--berry); box-shadow: inset 0 0 0 1px var(--berry); }
.cal .day.has { background: #fcf8f5; }
.cal .day .amt { font-weight: 700; color: var(--cocoa); font-variant-numeric: tabular-nums; }
.cal .day .fl { color: var(--ink-3); font-size: .72rem; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cal .blank { background: transparent; border: 0; }
@media (max-width: 700px) { .cal .day { min-height: 64px; padding: .3rem; } .cal .day .fl, .cal .day .amt { display: none; } }

/* Ürün listesi küçük resim */
.p-cell { display: flex; align-items: center; gap: .7rem; }
.p-cell img, .p-cell .thumb-ph { width: 44px; height: 44px; }

.img-preview { position: relative; width: 100%; max-width: 280px; aspect-ratio: 1; margin: 0 auto; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; overflow: hidden; }
.img-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.img-preview .ph { width: 50%; color: #d9cfc8; }

.recipe-row { display: grid; grid-template-columns: 1fr 130px 110px 40px; gap: .5rem; align-items: center; margin-bottom: .5rem; }
@media (max-width: 600px) { .recipe-row { grid-template-columns: 1fr 100px 40px; } .recipe-row .rc { display: none; } }

.pw-box { background: var(--pistachio-bg); border: 1px solid #cfe0bf; padding: 1rem 1.2rem; border-radius: var(--radius); margin-bottom: 1.25rem; }
.pw-box code { font-size: 1.25rem; font-weight: 800; background: #fff; padding: .2em .5em; border-radius: 3px; letter-spacing: .05em; user-select: all; }

.spin { display: inline-block; width: 1em; height: 1em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: sp .7s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }

/* Yazdırma (üretim listesi) */
@media print {
  body { background: #fff; }
  .sidebar, .panel-top, .no-print, .site-footer, .flash { display: none !important; }
  .panel-content { padding: 0; }
  .card { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
}
.upper { text-transform: uppercase; }
