/* Mağaza ön yüzü: ürün sayfası ve müşterinin sipariş sayfası. Yönetim paneli style.css kullanır. */
:root {
  color-scheme: light;
  --brand: #1f6f4a; --brand-dark: #165338; --brand-soft: #e7f3ec;
  --amber: #f59e0b; --amber-soft: #fff4dc; --amber-text: #8a5300;
  --bg: #f5f6f4; --card: #ffffff; --text: #18211c; --muted: #6a756f; --line: #e4e8e5;
  --danger: #b3261e; --danger-soft: #fdeceb;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(16, 32, 24, .05), 0 8px 24px rgba(16, 32, 24, .07);
  --shadow-lg: 0 12px 40px rgba(16, 32, 24, .18);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased;
       font: 15px/1.5 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif; }
body.locked { overflow: hidden; }
a { color: var(--brand); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
svg.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2;
           stroke-linecap: round; stroke-linejoin: round; }

/* --- düğmeler --- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px;
       padding: 11px 18px; font-weight: 600; background: var(--brand); color: #fff; text-decoration: none;
       transition: background .15s, transform .05s; }
.btn:hover { background: var(--brand-dark); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.block { width: 100%; padding: 14px 18px; font-size: 16px; }
.btn.ghost { background: transparent; color: var(--brand); border: 1.5px solid var(--line); }
.btn.ghost:hover { background: var(--brand-soft); border-color: var(--brand-soft); }
.icon-btn { border: 0; background: transparent; width: 40px; height: 40px; border-radius: 50%;
            display: inline-flex; align-items: center; justify-content: center; color: var(--muted); }
.icon-btn:hover { background: var(--bg); color: var(--text); }

/* --- üst şerit ve başlık --- */
.announce { background: var(--brand-dark); color: #fff; text-align: center; font-size: 13px; padding: 7px 16px; }
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px);
       border-bottom: 1px solid var(--line); }
.top-inner { display: flex; align-items: center; gap: 20px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; letter-spacing: -.02em;
        color: var(--text); text-decoration: none; white-space: nowrap; }
.logo-mark { width: 38px; height: 38px; border-radius: 12px; background: var(--brand); color: #fff;
             display: flex; align-items: center; justify-content: center; }
.search { flex: 1; max-width: 560px; margin: 0 auto; position: relative; display: block; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input { width: 100%; height: 44px; padding: 0 16px 0 44px; border: 1.5px solid transparent; border-radius: 999px;
                background: var(--bg); outline: none; transition: border-color .15s, background .15s; }
.search input:focus { border-color: var(--brand); background: #fff; }
.cart-btn { position: relative; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px;
            border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font-weight: 600; white-space: nowrap; }
.cart-btn:hover { border-color: var(--brand); color: var(--brand); }
.count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--amber); color: #3b2500;
         font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }

/* --- karşılama --- */
.hero { margin: 24px 0 16px; border-radius: 24px; padding: 44px 40px; color: #fff; position: relative; overflow: hidden;
        background: radial-gradient(900px 400px at 85% -10%, #3fa775 0%, transparent 60%),
                    linear-gradient(120deg, #154b34 0%, #1f6f4a 55%, #2c8a5e 100%); }
.hero h1 { margin: 0 0 10px; font-size: clamp(26px, 4vw, 40px); line-height: 1.12; letter-spacing: -.025em; max-width: 16em; }
.hero p { margin: 0 0 22px; font-size: 17px; opacity: .92; max-width: 34em; }
.hero .btn { background: #fff; color: var(--brand-dark); }
.hero .btn:hover { background: var(--amber-soft); }
.hero-art { position: absolute; right: 36px; bottom: -18px; font-size: 150px; line-height: 1; opacity: .9;
            filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .25)); user-select: none; }
.perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 28px; }
.perk { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px;
        display: flex; gap: 12px; align-items: center; }
.perk .dot { width: 40px; height: 40px; border-radius: 12px; background: var(--brand-soft); color: var(--brand);
             display: flex; align-items: center; justify-content: center; flex: none; }
.perk strong { display: block; font-size: 14px; }
.perk span { font-size: 13px; color: var(--muted); }

/* --- katalog --- */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.toolbar h2 { margin: 0; font-size: 22px; letter-spacing: -.02em; }
.sort { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; white-space: nowrap; }
.sort select { height: 38px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; }
.pills { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 18px; scrollbar-width: none; }
.pills::-webkit-scrollbar { display: none; }
.pill { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 16px; font-weight: 600;
        font-size: 14px; white-space: nowrap; color: var(--muted); transition: all .15s; }
.pill:hover { border-color: var(--brand); color: var(--brand); }
.pill.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
        display: flex; flex-direction: column; transition: transform .18s, box-shadow .18s, border-color .18s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.media { position: relative; aspect-ratio: 1 / 1; width: 100%; display: block; border: 0; padding: 0; background: var(--bg); overflow: hidden; }
.media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.card:hover .media img, .card:hover .ph span { transform: scale(1.06); }
.ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.ph span { font-size: 76px; line-height: 1; transition: transform .3s; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .12)); }
.tag { position: absolute; left: 10px; top: 10px; background: rgba(255, 255, 255, .92); border-radius: 999px;
       padding: 3px 10px; font-size: 12px; font-weight: 600; color: var(--brand-dark); }
.card-body { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.name { border: 0; background: none; padding: 0; text-align: left; font-weight: 700; font-size: 16px; line-height: 1.3;
        display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.name:hover { color: var(--brand); }
.unit { font-size: 13px; color: var(--muted); }
.price-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 10px; }
.price { font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.add { width: 42px; height: 42px; border-radius: 12px; padding: 0; font-size: 18px; }
.add .add-label { display: none; font-size: 14px; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--brand); border-radius: 12px; overflow: hidden; height: 42px; }
.stepper button { width: 36px; height: 100%; border: 0; background: var(--brand-soft); color: var(--brand-dark); font-size: 18px; font-weight: 700; }
.stepper button:hover { background: var(--brand); color: #fff; }
.stepper span { min-width: 32px; text-align: center; font-weight: 700; }
.stepper.small { height: 34px; border-radius: 10px; }
.stepper.small button { width: 30px; font-size: 16px; }
.empty { grid-column: 1 / -1; text-align: center; padding: 64px 16px; color: var(--muted); }
.empty .big { font-size: 48px; display: block; margin-bottom: 8px; }
footer.site { margin-top: 56px; border-top: 1px solid var(--line); background: var(--card); padding: 28px 0; color: var(--muted); font-size: 14px; }
footer.site .container { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
.contact { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.btn.small { padding: 8px 14px; font-size: 14px; border-radius: 10px; }
.low { color: var(--amber-text); font-size: 12px; font-weight: 700; }

/* --- sepet çekmecesi --- */
.overlay { position: fixed; inset: 0; background: rgba(12, 22, 17, .45); z-index: 30; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); z-index: 40; background: var(--card);
          display: flex; flex-direction: column; box-shadow: var(--shadow-lg); transform: translateX(105%);
          transition: transform .28s cubic-bezier(.2, .8, .2, 1); visibility: hidden; }
.drawer.open { transform: none; visibility: visible; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 16px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-size: 18px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.drawer-foot { border-top: 1px solid var(--line); padding: 16px 20px 20px; background: var(--card); }
.ship { background: var(--amber-soft); color: var(--amber-text); border-radius: 12px; padding: 10px 12px; font-size: 13px; margin-bottom: 14px; }
.ship.done { background: var(--brand-soft); color: var(--brand-dark); }
.bar { height: 6px; border-radius: 3px; background: rgba(0, 0, 0, .08); margin-top: 8px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 3px; background: var(--amber); transition: width .3s; }
.ship.done .bar i { background: var(--brand); }
.line { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: center; }
.line .thumb { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; flex: none; background: var(--bg); }
.line .thumb img { width: 100%; height: 100%; object-fit: cover; }
.line .thumb .ph span { font-size: 32px; }
.line .info { flex: 1; min-width: 0; }
.line .info b { display: block; overflow-wrap: anywhere; line-height: 1.3; }
.line .right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.sum { display: flex; justify-content: space-between; padding: 3px 0; color: var(--muted); }
.sum.total { color: var(--text); font-size: 19px; font-weight: 800; margin: 6px 0 14px; padding-top: 10px; border-top: 1px dashed var(--line); }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea { width: 100%; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; outline: none; }
.field input:focus, .field textarea:focus { border-color: var(--brand); }
.note { background: var(--brand-soft); color: var(--brand-dark); border-radius: 12px; padding: 12px 14px; font-size: 13px; display: flex; gap: 10px; }
.back { border: 0; background: none; padding: 0; color: var(--brand); font-weight: 600; margin-bottom: 14px; display: inline-flex; gap: 6px; align-items: center; }

/* --- ürün penceresi --- */
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(12, 22, 17, .45); animation: fade .2s; display: flex; align-items: center; justify-content: center; padding: 20px; }
.sheet { position: relative; background: var(--card); border-radius: 24px; width: min(820px, 100%); max-height: 100%; overflow: auto;
         display: grid; grid-template-columns: 1fr 1fr; box-shadow: var(--shadow-lg); animation: pop .22s cubic-bezier(.2, .8, .2, 1); }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.sheet .media { aspect-ratio: auto; min-height: 320px; cursor: default; }
.sheet .ph span { font-size: 130px; }
.sheet-body { padding: 32px 28px 28px; display: flex; flex-direction: column; gap: 10px; }
.sheet-body h2 { margin: 0; font-size: 26px; letter-spacing: -.02em; line-height: 1.2; overflow-wrap: anywhere; }
.sheet-body .price { font-size: 28px; margin: 6px 0; }
.sheet-body p { margin: 0; color: var(--muted); overflow-wrap: anywhere; }
.sheet .close { position: absolute; right: 12px; top: 12px; background: rgba(255, 255, 255, .9); z-index: 1; }

/* --- mobil alt çubuk ve bildirim --- */
.mobile-bar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 15; display: none; align-items: center;
              justify-content: space-between; gap: 12px; background: var(--text); color: #fff; border-radius: 16px;
              padding: 10px 10px 10px 16px; box-shadow: var(--shadow-lg); }
.mobile-bar b { display: block; font-size: 16px; }
.mobile-bar small { opacity: .75; }
#message { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; max-width: calc(100% - 32px);
           background: var(--text); color: #fff; padding: 12px 18px; border-radius: 12px; display: none; box-shadow: var(--shadow-lg);
           font-weight: 500; }

/* --- sipariş sayfası --- */
.order { max-width: 720px; margin: 28px auto 64px; padding: 0 20px; }
.box { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 24px; margin-bottom: 16px; }
.box h2 { margin: 0 0 14px; font-size: 18px; }
.status-head { display: flex; gap: 16px; align-items: center; }
.status-icon { width: 60px; height: 60px; border-radius: 18px; background: var(--brand-soft); font-size: 30px;
               display: flex; align-items: center; justify-content: center; flex: none; }
.status-icon.bad { background: var(--danger-soft); }
.status-head h1 { margin: 0; font-size: 24px; letter-spacing: -.02em; }
.status-text { margin: 16px 0 0; font-size: 16px; }
.track { display: flex; margin: 26px 0 4px; }
.track div { flex: 1; text-align: center; font-size: 12px; color: var(--muted); position: relative; padding-top: 30px; }
.track div::before { content: ""; position: absolute; top: 9px; left: -50%; right: 50%; height: 3px; background: var(--line); }
.track div:first-child::before { display: none; }
.track div::after { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 20px; height: 20px; z-index: 1;
                    border-radius: 50%; background: var(--card); border: 3px solid var(--line); }
.track div.done { color: var(--text); font-weight: 600; }
.track div.done::before { background: var(--brand); }
.track div.done::after { background: var(--brand); border-color: var(--brand); }
.track div.now::after { box-shadow: 0 0 0 5px var(--brand-soft); }
.pay { border: 2px solid var(--brand); background: linear-gradient(180deg, var(--brand-soft), #fff 70%); }
.pay-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.pay-row:last-of-type { border-bottom: 0; }
.pay-row small { display: block; color: var(--muted); font-size: 12px; }
.pay-row b { font-size: 16px; overflow-wrap: anywhere; }
.copy { border: 1.5px solid var(--line); background: #fff; border-radius: 10px; padding: 6px 12px; font-weight: 600; font-size: 13px; color: var(--brand); flex: none; }
.copy:hover { border-color: var(--brand); }
.item { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; }
.item.total { border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 12px; font-size: 18px; font-weight: 800; }

@media (max-width: 760px) {
  .container { padding: 0 14px; }
  .top-inner { height: auto; padding: 10px 14px; flex-wrap: wrap; gap: 10px; }
  #message { bottom: 92px; }
  footer.site { padding-bottom: 96px; }
  .add .add-label { display: inline; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .logo { font-size: 18px; margin-right: auto; }
  .cart-btn span.label { display: none; }
  .hero { padding: 28px 22px; border-radius: 20px; margin-top: 14px; }
  .hero-art { font-size: 84px; right: 12px; bottom: -8px; opacity: .5; }
  .perks { grid-template-columns: 1fr; gap: 8px; }
  .toolbar { flex-direction: column; align-items: stretch; gap: 10px; }
  .sort { justify-content: space-between; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card-body { padding: 10px 10px 12px; }
  .name { font-size: 14px; }
  .price { font-size: 16px; }
  .ph span { font-size: 54px; }
  .price-row { flex-direction: column; align-items: stretch; }
  .add { width: 100%; }
  .stepper { width: 100%; justify-content: space-between; }
  .mobile-bar.show { display: flex; }
  .sheet { grid-template-columns: 1fr; }
  .sheet .media { min-height: 220px; }
  .sheet-body { padding: 20px; }
  .box { padding: 18px; border-radius: 16px; }
  .track div { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
