/*!
 * Hızlı Market — tema stilleri
 * Yoğun katalog, sol kategori kenar çubuğu, grid içi hızlı adet ekleme, teslimat saati seçimi.
 */

:root {
  --brand: #157a45;
  --brand-dark: #106136;
  --brand-soft: #e9f5ee;
  --accent: #f0740c;
  --ink: #15201a;
  --ink-2: #3d4a43;
  --ink-3: #6f7c74;
  --line: #e2e8e4;
  --line-2: #f1f5f2;
  --bg: #f6f8f6;
  --surface: #ffffff;
  --ok: #157a45;
  --danger: #c02626;
  --danger-soft: #fdeeee;
  --star: #eaa000;
  --r: 10px;
  --shadow: 0 1px 2px rgba(21, 32, 26, .05), 0 8px 22px -10px rgba(21, 32, 26, .16);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body { font-family: var(--font); background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.5; overflow-x: clip; }
.container { width: min(1340px, 100% - 2rem); margin-inline: auto; }
.muted { color: var(--ink-3); }
.tiny { font-size: 12px; }
.sm { font-size: 13.5px; }
.bold { font-weight: 600; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .6rem 1rem; border-radius: var(--r); font-weight: 600; font-size: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); transition: background .14s, border-color .14s; white-space: nowrap; }
.btn:hover { background: var(--line-2); }
.btn--brand { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn--brand:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn--block { width: 100%; }
.btn--lg { padding: .8rem 1.3rem; font-size: 15px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.linkbtn { font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.linkbtn:hover { color: var(--danger); }

.chip { display: inline-flex; align-items: center; gap: .22rem; padding: .18rem .45rem; border-radius: 5px; font-size: 11px; font-weight: 700; background: var(--line-2); color: var(--ink-2); }
.chip--sale { background: var(--danger); color: #fff; }
.chip--deal { background: var(--accent); color: #fff; }
.chip--ok { background: var(--brand-soft); color: var(--brand); }

/* ---------------- Başlık ---------------- */
.hdr { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 60; }
.hdr__top { display: flex; align-items: center; gap: .9rem; padding: .7rem 0; }
.hdr__logo { display: flex; align-items: center; gap: .45rem; font-size: 19px; font-weight: 800; letter-spacing: -.03em; flex: none; }
.hdr__logo svg { width: 25px; height: 25px; color: var(--brand); }
.hdr__logo b { color: var(--brand); }

.addrbtn { display: flex; align-items: center; gap: .45rem; padding: .4rem .7rem; border-radius: var(--r); background: var(--brand-soft); color: var(--brand-dark); font-size: 12.5px; font-weight: 600; flex: none; max-width: 230px; }
.addrbtn svg { width: 16px; height: 16px; flex: none; }
.addrbtn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.search { flex: 1 1 auto; position: relative; min-width: 0; }
.search input { width: 100%; height: 42px; padding: 0 2.5rem 0 .9rem; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--bg); }
.search input:focus { outline: none; border-color: var(--brand); background: var(--surface); }
.search__go { position: absolute; right: 4px; top: 4px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 7px; color: var(--ink-3); }
.search__go:hover { background: var(--brand-soft); color: var(--brand); }
.sugg { position: absolute; inset-inline: 0; top: calc(100% + 6px); z-index: 80; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; max-height: 380px; overflow-y: auto; }
.sugg a { display: flex; align-items: center; gap: .65rem; padding: .5rem .8rem; }
.sugg a:hover { background: var(--line-2); }
.sugg img { width: 34px; height: 34px; border-radius: 6px; object-fit: cover; flex: none; }
.sugg__n { font-size: 13.5px; line-height: 1.25; }
.sugg__c { font-size: 11.5px; color: var(--ink-3); }
.sugg__empty { padding: .9rem .8rem; font-size: 13.5px; color: var(--ink-3); }

.hdr__acts { display: flex; align-items: center; gap: .4rem; flex: none; }
.cartbtn { display: flex; align-items: center; gap: .5rem; padding: .5rem .85rem; border-radius: var(--r); background: var(--brand); color: #fff; font-size: 13.5px; font-weight: 700; }
.cartbtn:hover { background: var(--brand-dark); }
.cartbtn svg { width: 19px; height: 19px; }
.cartbtn__n { padding: .05rem .38rem; border-radius: 20px; background: rgba(255, 255, 255, .22); font-size: 12px; }

/* ---------------- Düzen: sol kategori + içerik ---------------- */
.shell { display: grid; grid-template-columns: 236px 1fr; gap: 1.2rem; align-items: start; padding-block: 1.1rem; }
.shell > * { min-width: 0; }

.side { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; position: sticky; top: 74px; }
.side h3 { padding: .75rem .9rem; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); border-bottom: 1px solid var(--line-2); }
.side a { display: flex; align-items: center; gap: .6rem; padding: .6rem .9rem; font-size: 13.5px; font-weight: 500; border-left: 3px solid transparent; }
.side a:hover { background: var(--line-2); }
.side a.on { background: var(--brand-soft); border-left-color: var(--brand); color: var(--brand-dark); font-weight: 700; }
.side svg { width: 19px; height: 19px; color: var(--brand); flex: none; }
.side-toggle { display: none; }

/* ---------------- Teslimat şeridi ---------------- */
.delivbar { display: flex; align-items: center; gap: .8rem; padding: .75rem 1rem; background: linear-gradient(100deg, var(--brand) 0%, #1a8f52 100%); color: #fff; border-radius: var(--r); flex-wrap: wrap; }
.delivbar__ic { width: 38px; height: 38px; border-radius: 10px; background: rgba(255, 255, 255, .18); display: grid; place-items: center; flex: none; }
.delivbar__ic svg { width: 21px; height: 21px; }
.delivbar strong { display: block; font-size: 14.5px; }
.delivbar span { font-size: 12.5px; opacity: .9; }
.delivbar select { margin-left: auto; height: 36px; padding: 0 2rem 0 .7rem; border: 0; border-radius: 8px; background: rgba(255, 255, 255, .95); color: var(--ink); font-size: 13px; font-weight: 600; }

/* ---------------- Bölüm ---------------- */
.sec { padding: 1.2rem 0; }
.sec__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .75rem; }
.sec__head h2 { font-size: clamp(17px, 2.2vw, 20px); letter-spacing: -.02em; }
.sec__head a { font-size: 13px; font-weight: 600; color: var(--brand); }

/* ---------------- Ürün kartı ---------------- */
.grid { display: grid; gap: .7rem; }
.grid--p { grid-template-columns: repeat(auto-fill, minmax(172px, 1fr)); }
.grid--p > * { min-width: 0; }

.card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: border-color .14s, box-shadow .14s; }
.card:hover { border-color: #cfdcd4; box-shadow: var(--shadow); }
.card__media { position: relative; aspect-ratio: 1/1; background: #fff; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__flags { position: absolute; left: .4rem; top: .4rem; display: flex; flex-direction: column; gap: .22rem; align-items: flex-start; }
.card__body { display: flex; flex-direction: column; gap: .2rem; padding: .55rem .6rem .65rem; flex: 1 1 auto; }
.card__brand { font-size: 10.5px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.card__name { font-size: 13px; line-height: 1.35; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__unit { font-size: 11px; color: var(--ink-3); }
.card__price { margin-top: auto; padding-top: .3rem; display: flex; align-items: baseline; gap: .4rem; flex-wrap: wrap; }
.card__old { font-size: 11.5px; color: var(--ink-3); text-decoration: line-through; }
.card__now { font-size: 16.5px; font-weight: 800; letter-spacing: -.025em; }
.card__now.sale { color: var(--danger); }
.card__link { position: absolute; inset: 0; z-index: 1; }

/* Grid içi hızlı adet ekleme */
.qadd { position: relative; z-index: 2; margin-top: .5rem; }
.qadd__btn { width: 100%; height: 36px; border-radius: 8px; background: var(--brand); color: #fff; font-size: 13.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: .35rem; }
.qadd__btn:hover { background: var(--brand-dark); }
.qadd__step { display: flex; align-items: center; height: 36px; border-radius: 8px; background: var(--brand); color: #fff; overflow: hidden; }
.qadd__step button { width: 36px; height: 36px; color: #fff; font-size: 18px; line-height: 1; display: grid; place-items: center; }
.qadd__step button:hover { background: rgba(0, 0, 0, .12); }
.qadd__step span { flex: 1; text-align: center; font-size: 14px; font-weight: 800; }

/* ---------------- Liste başlığı & filtre ---------------- */
.listing__head { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; margin-bottom: .8rem; }
.listing__head h1 { font-size: clamp(19px, 2.5vw, 24px); letter-spacing: -.025em; }
.sortbar { display: flex; align-items: center; gap: .5rem; }
.sortbar select { height: 36px; padding: 0 2rem 0 .7rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font-size: 13px; font-weight: 600; }
.quickfilters { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .8rem; }
.qf { padding: .35rem .7rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 12.5px; font-weight: 600; }
.qf.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.empty { padding: 3rem 1rem; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.empty h3 { font-size: 17px; margin-bottom: .4rem; }

/* ---------------- Ürün detay ---------------- */
.crumb { display: flex; flex-wrap: wrap; gap: .3rem; padding: .5rem 0 .8rem; font-size: 13px; color: var(--ink-3); }
.crumb a:hover { color: var(--brand); }
.pdp { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 1.6rem; align-items: start; }
.pdp > * { min-width: 0; }
.gal__main { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; aspect-ratio: 1/1; }
.gal__main img { width: 100%; height: 100%; object-fit: cover; }
.gal__thumbs { display: flex; gap: .4rem; margin-top: .4rem; }
.gal__thumbs button { width: 56px; height: 56px; border-radius: 8px; overflow: hidden; border: 2px solid var(--line); background: var(--surface); }
.gal__thumbs button.on { border-color: var(--brand); }
.gal__thumbs img { width: 100%; height: 100%; object-fit: cover; }

.pdp h1 { font-size: clamp(20px, 2.8vw, 27px); letter-spacing: -.028em; line-height: 1.22; margin: .2rem 0 .4rem; }
.pdp__brand { font-size: 12px; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .06em; }
.pdp__meta { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; font-size: 13px; color: var(--ink-3); }
.pdp__meta .mz-stars { color: var(--star); }
.pdp__price { display: flex; align-items: baseline; gap: .6rem; margin: .9rem 0; flex-wrap: wrap; }
.pdp__price .now { font-size: 30px; font-weight: 800; letter-spacing: -.035em; }
.pdp__price .now.sale { color: var(--danger); }
.pdp__price .old { font-size: 15px; color: var(--ink-3); text-decoration: line-through; }
.pdp__buy { display: flex; gap: .6rem; align-items: center; margin: 1rem 0; flex-wrap: wrap; }
.pdp__buy .qadd { margin: 0; width: 170px; }
.infogrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .5rem; margin-top: 1rem; }
.infogrid > * { min-width: 0; }
.infogrid div { padding: .6rem .75rem; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; font-size: 13px; }
.infogrid dt { font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; }
.infogrid dd { margin: .12rem 0 0; font-weight: 600; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1rem; margin-bottom: .9rem; }
.panel h2 { font-size: 15.5px; margin-bottom: .8rem; }
.rev { display: flex; gap: .7rem; padding: .75rem 0; border-bottom: 1px solid var(--line-2); }
.rev__av { width: 34px; height: 34px; border-radius: 50%; background: var(--brand-soft); display: grid; place-items: center; font-weight: 700; color: var(--brand); flex: none; }
.rev__head { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; font-size: 13px; }
.rev__head .mz-stars { color: var(--star); }
.rev p { margin-top: .2rem; font-size: 13.5px; color: var(--ink-2); }

/* ---------------- Sepet & ödeme ---------------- */
.cartpage { display: grid; grid-template-columns: 1fr 336px; gap: 1.2rem; align-items: start; padding-block: 1.1rem; }
.cartpage > * { min-width: 0; }
.cartlist { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.cartrow { display: grid; grid-template-columns: 64px 1fr auto; gap: .8rem; padding: .7rem .85rem; border-bottom: 1px solid var(--line-2); align-items: center; }
.cartrow > * { min-width: 0; }
.cartrow:last-child { border-bottom: 0; }
.cartrow img { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; }
.cartrow__name { font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.cartrow__unit { font-size: 11.5px; color: var(--ink-3); }
.cartrow__right { display: flex; align-items: center; gap: .7rem; }
.cartrow__price { font-weight: 700; font-size: 15px; white-space: nowrap; min-width: 76px; text-align: right; }
.cartrow .qadd { width: 116px; margin: 0; }
.cartrow .qadd__step { height: 32px; } .cartrow .qadd__step button { width: 32px; height: 32px; }

.summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1rem; position: sticky; top: 74px; }
.summary h3 { font-size: 15.5px; margin-bottom: .7rem; }
.sumrow { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; font-size: 14px; }
.sumrow.total { border-top: 1px solid var(--line); margin-top: .5rem; padding-top: .65rem; font-size: 18px; font-weight: 800; letter-spacing: -.025em; }
.sumrow .free { color: var(--ok); font-weight: 700; }
.minwarn { padding: .6rem .75rem; border-radius: 8px; background: var(--danger-soft); color: var(--danger); font-size: 13px; font-weight: 600; margin-bottom: .6rem; }
.couponbox { display: flex; gap: .4rem; margin: .6rem 0; }
.couponbox input { flex: 1 1 auto; min-width: 0; height: 40px; padding: 0 .7rem; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); text-transform: uppercase; }
.couponbox input:focus { outline: none; border-color: var(--brand); }
.shipbar { margin: .5rem 0; }
.shipbar__track { height: 6px; border-radius: 3px; background: var(--line-2); overflow: hidden; }
.shipbar__fill { height: 100%; background: var(--ok); border-radius: 3px; transition: width .3s; }

.slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .5rem; }
.slots > * { min-width: 0; }
.slot { display: flex; flex-direction: column; gap: .1rem; padding: .7rem .8rem; border: 1.5px solid var(--line); border-radius: 8px; text-align: left; background: var(--surface); }
.slot.on { border-color: var(--brand); background: var(--brand-soft); }
.slot b { font-size: 13.5px; }
.slot span { font-size: 11.5px; color: var(--ink-3); }
.slot em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--brand); margin-top: .2rem; }

.steps { display: flex; align-items: center; gap: .5rem; padding: 1rem 0; flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: .45rem; font-size: 13.5px; font-weight: 600; color: var(--ink-3); }
.step i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--line-2); font-style: normal; font-size: 12.5px; }
.step.on { color: var(--ink); } .step.on i { background: var(--brand); color: #fff; }
.step.done i { background: var(--ok); color: #fff; }
.step__sep { flex: 1 1 20px; height: 1px; background: var(--line); min-width: 12px; }

.formgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .7rem; }
.formgrid > * { min-width: 0; }
.field label { display: block; font-size: 12.5px; font-weight: 600; margin-bottom: .25rem; color: var(--ink-2); }
.field input, .field select, .field textarea { width: 100%; height: 42px; padding: 0 .75rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.field textarea { height: auto; padding: .6rem .75rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(21, 122, 69, .12); }
.field.err input, .field.err textarea { border-color: var(--danger); }
.field__err { font-size: 12px; color: var(--danger); margin-top: .2rem; }
.field--full { grid-column: 1 / -1; }
.pick { display: flex; flex-direction: column; gap: .45rem; }
.pick label { display: flex; align-items: center; gap: .65rem; padding: .7rem .85rem; border: 1.5px solid var(--line); border-radius: 8px; cursor: pointer; font-size: 14px; }
.pick label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.pick input { accent-color: var(--brand); width: 17px; height: 17px; flex: none; }
.pick .r { margin-left: auto; font-weight: 700; white-space: nowrap; }
.fopt { display: flex; align-items: center; gap: .5rem; font-size: 13.5px; cursor: pointer; }
.fopt input { accent-color: var(--brand); width: 15px; height: 15px; flex: none; }

.okbox { text-align: center; padding: 2.2rem 1.2rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.okbox__ic { width: 60px; height: 60px; margin: 0 auto .8rem; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.okbox__ic svg { width: 29px; height: 29px; }
.okbox h1 { font-size: 22px; letter-spacing: -.02em; }
.okno { display: inline-block; margin-top: .5rem; padding: .3rem .8rem; border-radius: 8px; background: var(--bg); font: 700 15px/1 ui-monospace, Menlo, monospace; letter-spacing: .06em; }
.track { display: flex; align-items: center; gap: 0; margin: 1.4rem 0 .4rem; }
.track div { flex: 1; text-align: center; font-size: 11.5px; color: var(--ink-3); position: relative; }
.track div::before { content: ''; display: block; width: 14px; height: 14px; border-radius: 50%; background: var(--line); margin: 0 auto .35rem; position: relative; z-index: 1; }
.track div::after { content: ''; position: absolute; top: 7px; left: 50%; right: -50%; height: 2px; background: var(--line); }
.track div:last-child::after { display: none; }
.track div.on { color: var(--brand); font-weight: 700; }
.track div.on::before { background: var(--brand); }

.ftr { background: var(--surface); border-top: 1px solid var(--line); margin-top: 2rem; padding: 1.8rem 0 1.2rem; }
.ftr__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1.4rem; }
.ftr__grid > * { min-width: 0; }
.ftr h4 { font-size: 13px; margin-bottom: .5rem; }
.ftr li { padding: .16rem 0; font-size: 13.5px; color: var(--ink-3); }
.ftr__bot { margin-top: 1.4rem; padding-top: .9rem; border-top: 1px solid var(--line-2); font-size: 12.5px; color: var(--ink-3); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* ---------------- Duyarlı ---------------- */
@media (max-width: 1000px) {
  .shell { grid-template-columns: 1fr !important; }
  .side { position: static; display: none; }
  .side.open { display: block; }
  .side-toggle { display: inline-flex; }
  .cartpage { grid-template-columns: 1fr !important; }
  .summary { position: static; }
}
@media (max-width: 820px) {
  .pdp { grid-template-columns: 1fr !important; }
  .hdr__top { flex-wrap: wrap; }
  .search { order: 3; flex-basis: 100%; }
  .addrbtn { max-width: 45%; }
}
@media (max-width: 560px) {
  .grid--p { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cartrow { grid-template-columns: 52px 1fr; row-gap: .5rem; }
  .cartrow img { width: 52px; height: 52px; }
  .cartrow__right { grid-column: 2; justify-content: space-between; }
  .delivbar select { margin-left: 0; width: 100%; }
}
