/* =====================================================================
   Flora Atelier — Mobil öncelikli, minimalist tasarım sistemi
   Build adımı gerektirmez. Renkler ve ölçüler :root değişkenlerindedir.
   ===================================================================== */

:root {
    --cream: #FBF8F4;
    --paper: #FFFFFF;
    --blush: #F6E7E4;
    --blush-2: #FBEFEC;
    --rose: #C9677B;
    --rose-dark: #A9505F;
    --rose-soft: #F3D6DB;
    --sage: #8FA68A;
    --sage-soft: #E6EDE3;
    --lilac-soft: #ECE6F3;
    --butter-soft: #F7EFD9;
    --ink: #2A2425;
    --ink-2: #4A4243;
    --muted: #8C8183;
    --line: #EDE6E2;
    --danger: #C0463E;
    --success: #4E8A5B;
    --warning: #B7832F;

    --font-display: "Fraunces", Georgia, "Times New Roman", serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --radius-sm: 10px;
    --radius: 18px;
    --radius-lg: 28px;
    --shadow-sm: 0 1px 2px rgba(42, 36, 37, .04), 0 2px 8px rgba(42, 36, 37, .04);
    --shadow: 0 2px 6px rgba(42, 36, 37, .04), 0 12px 32px rgba(120, 72, 80, .08);
    --shadow-lg: 0 24px 60px rgba(120, 72, 80, .16);
    --ease: cubic-bezier(.22, .8, .28, 1);
    --header-h: 64px;
}

/* ---------- Temel ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--rose-soft); }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 16px; }
.narrow { max-width: 720px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.only-mobile { display: inline-flex; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* ---------- Tipografi ---------- */
.display, .h1, .h2, .h3, .logo, .order-code { font-family: var(--font-display); font-weight: 500; letter-spacing: -.01em; line-height: 1.15; margin: 0; }
.display { font-size: clamp(30px, 7vw, 56px); }
.h1 { font-size: clamp(26px, 5vw, 40px); }
.h2 { font-size: clamp(22px, 4vw, 30px); }
.h3 { font-size: 20px; }
.lead { font-size: 16px; color: var(--ink-2); margin: 10px 0 0; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--rose); margin-bottom: 8px; }
.prose { color: var(--ink-2); }

/* ---------- İkonlar ---------- */
.icon { width: 22px; height: 22px; flex: none; }
.icon-sm { width: 17px; height: 17px; }
.icon-lg { width: 34px; height: 34px; }
.icon-xl { width: 56px; height: 56px; }

/* ---------- Butonlar ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
    font-weight: 600; font-size: 15px; white-space: nowrap;
    transition: transform .2s var(--ease), background .2s, box-shadow .2s, border-color .2s, color .2s;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 6px 18px rgba(42, 36, 37, .18); }
.btn-primary:hover { background: var(--rose-dark); }
.btn-ghost { background: transparent; border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-soft { background: var(--blush); color: var(--rose-dark); }
.btn-soft:hover { background: var(--rose-soft); }
.btn-danger { background: #FBEAE8; color: var(--danger); }
.btn-danger:hover { background: #F6D5D1; }
.btn-sm { min-height: 34px; padding: 0 14px; font-size: 13px; }
.btn-lg { min-height: 54px; font-size: 16px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: .6; pointer-events: none; }

.icon-btn {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 50%; border: 0; background: transparent;
    transition: background .2s;
}
.icon-btn:hover { background: var(--blush); }
.icon-btn-solid { background: var(--ink); color: #fff; width: 38px; height: 38px; }
.icon-btn-solid:hover { background: var(--rose-dark); }
.icon-btn-solid .icon { width: 18px; height: 18px; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--rose-dark); }
.link-danger { display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; padding: 0; color: var(--muted); }
.link-danger:hover { color: var(--danger); }

/* ---------- Duyuru & Header ---------- */
.announce {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 8px 16px; font-size: 13px; text-align: center;
    background: var(--blush); color: var(--rose-dark);
}
.site-header {
    position: sticky; top: 0; z-index: 40;
    background: rgba(251, 248, 244, .86);
    backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
    border-bottom: 1px solid rgba(237, 230, 226, .7);
}
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo { font-size: 22px; font-weight: 600; }
.main-nav { display: none; }
.cart-badge {
    position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px;
    border-radius: 999px; background: var(--rose); color: #fff; font-size: 11px; font-weight: 600;
    display: grid; place-items: center; animation: pop .35s var(--ease);
}

/* ---------- Drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 60; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(42, 36, 37, .35); opacity: 0; transition: opacity .3s; }
.drawer-panel {
    position: absolute; inset: 0 auto 0 0; width: min(86vw, 340px); background: var(--cream);
    padding: 16px 20px 24px; display: flex; flex-direction: column; gap: 16px;
    transform: translateX(-100%); transition: transform .35s var(--ease); box-shadow: var(--shadow-lg); overflow-y: auto;
}
.drawer.is-open .drawer-backdrop { opacity: 1; }
.drawer.is-open .drawer-panel { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; }
.drawer-nav { display: flex; flex-direction: column; }
.drawer-nav a { display: flex; align-items: center; gap: 12px; padding: 13px 4px; border-bottom: 1px solid var(--line); font-weight: 500; }
.drawer-nav .dot { width: 22px; display: grid; place-items: center; }
.drawer-nav .dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--rose-soft); }
.drawer-contact { margin-top: auto; display: flex; gap: 10px; align-items: center; color: var(--rose-dark); font-weight: 500; }

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; left: 0; right: 0; top: calc(var(--header-h) + 12px); z-index: 70; display: flex; justify-content: center; padding: 0 16px; pointer-events: none; }
.toast {
    pointer-events: auto; display: flex; align-items: center; gap: 10px; max-width: 520px;
    padding: 12px 18px; border-radius: 16px; background: var(--ink); color: #fff; box-shadow: var(--shadow-lg);
    animation: slideDown .45s var(--ease); font-size: 14px;
}
.toast-success .icon { color: #A8D5B0; }
.toast-error { background: #4A2224; }
.toast-error .icon { color: #F2A7A0; }
.toast.is-hiding { opacity: 0; transform: translateY(-10px); transition: all .35s var(--ease); }

/* ---------- Kartlar ---------- */
.card { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid rgba(237, 230, 226, .7); }
.section { padding-block: 28px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.page-head { padding-block: 20px 10px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.crumbs a:hover { color: var(--rose-dark); }

/* ---------- Hero / Slider ---------- */
.hero { padding-top: 14px; }
.slider { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.slider-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.slider-track::-webkit-scrollbar { display: none; }
.slide {
    position: relative; flex: 0 0 100%; scroll-snap-align: start; min-height: 420px;
    display: flex; align-items: flex-end; padding: 28px 22px 48px; overflow: hidden;
}
.slide-tone-0 { background: radial-gradient(120% 90% at 85% 10%, #F8D9DE 0%, transparent 55%), linear-gradient(160deg, #FBEFEC, #F2E3EA); }
.slide-tone-1 { background: radial-gradient(120% 90% at 85% 10%, #DCE7D6 0%, transparent 55%), linear-gradient(160deg, #F3F5EE, #E9EFE4); }
.slide-tone-2 { background: radial-gradient(120% 90% at 85% 10%, #E5DBF0 0%, transparent 55%), linear-gradient(160deg, #F6F1F8, #ECE4F1); }
.slide-art { position: absolute; right: -40px; top: -30px; color: rgba(201, 103, 123, .18); }
.slide-art .icon { width: 280px; height: 280px; stroke-width: .8; }
.slide-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide.has-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(30, 20, 22, .55) 100%); }
.slide.has-image .slide-content { color: #fff; }
.slide.has-image .eyebrow, .slide.has-image .lead { color: rgba(255, 255, 255, .9); }
.slide.has-image .btn-primary { background: #fff; color: var(--ink); }
.slide-content { position: relative; z-index: 1; max-width: 560px; }
.slide-content .btn { margin-top: 20px; }
.slider-dots { position: absolute; left: 0; right: 0; bottom: 16px; display: flex; justify-content: center; gap: 8px; z-index: 2; }
.slider-dots button { width: 8px; height: 8px; border-radius: 999px; border: 0; padding: 0; background: rgba(42, 36, 37, .25); transition: width .3s var(--ease), background .3s; }
.slider-dots button.is-active { width: 26px; background: var(--ink); }

/* ---------- Perks ---------- */
.perks { display: grid; gap: 10px; padding-block: 18px 0; }
.perk { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.perk > .icon { color: var(--rose); }
.perk strong { display: block; font-size: 14px; }
.perk span { font-size: 13px; color: var(--muted); }

/* ---------- Kategoriler ---------- */
.cat-scroller { display: grid; grid-auto-flow: column; grid-auto-columns: 132px; gap: 12px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
.cat-scroller::-webkit-scrollbar { display: none; }
.cat-card { scroll-snap-align: start; display: flex; flex-direction: column; gap: 10px; align-items: center; text-align: center; transition: transform .3s var(--ease); }
.cat-card:hover { transform: translateY(-3px); }
.cat-media { width: 100%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; overflow: hidden; color: var(--rose); }
.cat-media img { width: 100%; height: 100%; object-fit: cover; }
.tone-0 .cat-media { background: var(--blush); }
.tone-1 .cat-media { background: var(--sage-soft); color: var(--sage); }
.tone-2 .cat-media { background: var(--lilac-soft); color: #8C78A8; }
.tone-3 .cat-media { background: var(--butter-soft); color: var(--warning); }
.cat-name { font-weight: 500; font-size: 14px; }

/* ---------- Ürün kartları ---------- */
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.product-card { overflow: hidden; display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-media { position: relative; display: block; aspect-ratio: 4 / 5; background: var(--blush-2); overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.product-card:hover .product-media img { transform: scale(1.05); }
.img-placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(201, 103, 123, .45); background: linear-gradient(160deg, var(--blush-2), var(--rose-soft)); }
.badge { position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge-rose { background: var(--rose); color: #fff; }
.badge-muted { background: rgba(255, 255, 255, .9); color: var(--ink-2); }
.product-body { padding: 12px 12px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.product-name { font-size: 14px; font-weight: 600; margin: 0; line-height: 1.35; }
.product-desc { font-size: 12.5px; color: var(--muted); margin: 0; display: none; }
.product-foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.price-now { font-weight: 600; }
.price-old { color: var(--muted); font-size: 13px; }
.price-lg .price-now { font-family: var(--font-display); font-size: 30px; font-weight: 500; }
.price-lg .price-old { font-size: 16px; }

/* ---------- Hızlı sipariş ---------- */
.quick-order { display: grid; gap: 18px; padding: 24px 20px; border-radius: var(--radius-lg); background: linear-gradient(150deg, var(--sage-soft), #F4F1EA); }
.quick-form { display: grid; gap: 12px; }

/* ---------- Kategori sayfası ---------- */
.chip-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
.chip-row::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font-size: 14px; transition: all .2s; }
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.toolbar { display: flex; gap: 10px; margin: 16px 0 18px; }
.toolbar select { width: auto; flex: none; }
.search-field { flex: 1; position: relative; display: flex; align-items: center; }
.search-field .icon { position: absolute; left: 14px; color: var(--muted); }
.search-field input { padding-left: 40px; }
.pagination { display: flex; justify-content: center; gap: 6px; margin: 28px 0 8px; }
.pagination a { min-width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); }
.pagination a.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Ürün detay ---------- */
.product-detail { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; padding-bottom: 20px; }
.gallery-main { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; background: var(--blush-2); }
.gallery-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; }
.gallery-main .badge { top: 14px; left: 14px; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.gallery-thumbs button { flex: none; width: 64px; height: 64px; padding: 0; border-radius: 14px; overflow: hidden; border: 2px solid transparent; background: none; opacity: .65; transition: all .2s; }
.gallery-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs button.is-active { border-color: var(--ink); opacity: 1; }
.product-info { display: flex; flex-direction: column; gap: 12px; }
.product-info .price { margin-top: 4px; }
.stock { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; font-size: 13px; font-weight: 500; padding: 5px 12px; border-radius: 999px; }
.stock-in { background: var(--sage-soft); color: var(--success); }
.stock-low { background: var(--butter-soft); color: var(--warning); }
.stock-out { background: #F3EEEC; color: var(--muted); }
.buy-box { display: grid; grid-template-columns: auto 1fr; gap: 10px; margin-top: 6px; }
.buy-box .btn-block { grid-column: 1 / -1; }
.mini-perks { list-style: none; padding: 16px 0; margin: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 10px; font-size: 14px; color: var(--ink-2); }
.mini-perks li { display: flex; gap: 10px; align-items: center; }
.mini-perks .icon { color: var(--rose); }
.accordion { border-bottom: 1px solid var(--line); padding: 4px 0 14px; }
.accordion summary { cursor: pointer; list-style: none; font-weight: 600; padding: 10px 0; display: flex; justify-content: space-between; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-weight: 400; font-size: 20px; line-height: 1; transition: transform .3s; }
.accordion[open] summary::after { transform: rotate(45deg); }

/* ---------- Adet seçici ---------- */
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); height: 46px; }
.qty button { width: 42px; height: 100%; border: 0; background: none; display: grid; place-items: center; border-radius: 999px; }
.qty button:hover:not([disabled]) { background: var(--blush); }
.qty button[disabled] { opacity: .3; cursor: not-allowed; }
.qty input { width: 40px; text-align: center; border: 0; background: none; padding: 0; height: 100%; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty-sm { height: 34px; margin-top: 6px; align-self: flex-start; }
.qty-sm button { width: 32px; }
.qty-val { min-width: 26px; text-align: center; font-weight: 600; font-size: 14px; }

/* ---------- Formlar ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.label { font-size: 13px; font-weight: 600; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; }
input:not([type=checkbox]):not([type=radio]):not([type=file]), select, textarea {
    width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 14px;
    border: 1px solid var(--line); background: var(--paper); font-size: 16px; /* iOS zoom önler */
    transition: border-color .2s, box-shadow .2s; appearance: none; -webkit-appearance: none;
}
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%238C8183' stroke-width='1.6'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
textarea { resize: vertical; min-height: 96px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 4px rgba(201, 103, 123, .14); }
[aria-invalid="true"] { border-color: var(--danger) !important; background: #FFF8F7 !important; }
.field-error { color: var(--danger); font-size: 13px; display: block; margin-top: 2px; }
.hint { font-size: 12px; color: var(--muted); align-self: flex-end; }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.fieldset { border: 0; padding: 0; margin: 20px 0 0; min-width: 0; }
.fieldset legend { margin-bottom: 10px; padding: 0; }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--ink); flex: none; margin-top: 1px; }

.switch { display: flex; align-items: center; gap: 12px; margin: 14px 0; cursor: pointer; font-weight: 500; font-size: 14px; }
.switch > span:last-child { display: inline-flex; align-items: center; gap: 6px; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-ui { position: relative; width: 46px; height: 28px; border-radius: 999px; background: var(--line); transition: background .25s; flex: none; }
.switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease); }
.switch input:checked + .switch-ui { background: var(--rose); }
.switch input:checked + .switch-ui::after { transform: translateX(18px); }
.switch input:focus-visible + .switch-ui { outline: 2px solid var(--rose); outline-offset: 2px; }

.notice { padding: 12px 16px; border-radius: 14px; background: var(--butter-soft); color: #6E5320; font-size: 14px; margin: 0 0 14px; }
.notice-success { background: var(--sage-soft); color: #2F5D3A; display: flex; gap: 8px; align-items: flex-start; }

/* ---------- Checkout ---------- */
.stepper { display: flex; gap: 6px; list-style: none; padding: 0; margin: 14px 0 0; counter-reset: s; font-size: 12px; color: var(--muted); overflow-x: auto; }
.stepper li { flex: 1; min-width: 70px; padding-top: 8px; border-top: 3px solid var(--line); }
.stepper li.is-active { border-color: var(--rose); color: var(--ink); font-weight: 500; }

.checkout-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding-bottom: 110px; }
.checkout-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; min-width: 0; }
.step-card, .summary-card, .panel { min-width: 0; }
.step-card { padding: 20px 18px; }
.step-title { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 500; font-size: 20px; margin: 0 0 16px; }
.step-no { width: 32px; height: 32px; border-radius: 50%; background: var(--blush); color: var(--rose-dark); display: grid; place-items: center; font-family: var(--font-body); font-size: 14px; font-weight: 600; flex: none; }

.cart-list { list-style: none; padding: 0; margin: 0; display: grid; }
.cart-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: start; }
.cart-item:last-child { border-bottom: 0; padding-bottom: 0; }
.cart-thumb { width: 72px; height: 88px; border-radius: 14px; overflow: hidden; background: var(--blush-2); display: grid; place-items: center; color: var(--rose); }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-info { display: flex; flex-direction: column; min-width: 0; }
.cart-name { font-weight: 600; font-size: 14px; line-height: 1.35; }
.cart-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }

.date-chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: none; margin-inline: -18px; padding-inline: 18px; scroll-snap-type: x proximity; }
.date-chips::-webkit-scrollbar { display: none; }
.date-chip { flex: none; scroll-snap-align: start; cursor: pointer; }
.date-chip input, .slot input { position: absolute; opacity: 0; pointer-events: none; }
.date-chip span { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 74px; height: 74px; border-radius: 18px; border: 1px solid var(--line); background: var(--paper); transition: all .25s var(--ease); }
.date-chip small { font-size: 12px; color: var(--muted); }
.date-chip strong { font-size: 15px; }
.date-chip input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(42, 36, 37, .18); }
.date-chip input:checked + span small { color: rgba(255, 255, 255, .7); }
.date-chip input:focus-visible + span, .slot input:focus-visible + span { outline: 2px solid var(--rose); outline-offset: 2px; }

.slot-grid { display: grid; gap: 8px; }
.slot { cursor: pointer; }
.slot > span { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--paper); transition: all .25s var(--ease); }
.slot small { color: var(--muted); font-size: 12px; }
.slot-closed { display: none; font-style: normal; font-size: 12px; color: var(--danger); }
.slot input:checked + span { border-color: var(--rose); background: var(--blush-2); box-shadow: inset 0 0 0 1px var(--rose); }
.slot input:disabled + span { opacity: .55; cursor: not-allowed; background: #F7F4F2; }
.slot input:disabled + span small { display: none; }
.slot input:disabled + span .slot-closed { display: inline; }

.bank-list { display: grid; gap: 10px; }
.bank-card { padding: 16px; border-radius: 16px; background: linear-gradient(150deg, var(--blush-2), #FFFFFF); border: 1px solid var(--line); }
.bank-top { display: flex; gap: 12px; align-items: center; }
.bank-icon { width: 40px; height: 40px; border-radius: 12px; background: #fff; display: grid; place-items: center; color: var(--rose); box-shadow: var(--shadow-sm); flex: none; }
.iban-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.iban { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 14px; letter-spacing: .02em; background: #fff; padding: 8px 12px; border-radius: 10px; border: 1px dashed var(--rose-soft); word-break: break-all; }
.ref-box { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; padding: 12px 16px; border-radius: 14px; background: var(--ink); color: #fff; }
.ref-box strong { font-family: var(--font-display); font-size: 22px; font-weight: 500; }
.ref-box .btn-soft { margin-left: auto; background: rgba(255, 255, 255, .12); color: #fff; }
.payment-note { margin: 10px 0 0; }
[data-copy].is-copied { background: var(--sage-soft); color: var(--success); }

.dropzone { position: relative; display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 18px; border-radius: 18px; border: 1.5px dashed #DCCBC6; background: var(--cream); cursor: pointer; transition: all .25s; }
.dropzone:hover, .dropzone.is-drag { border-color: var(--rose); background: var(--blush-2); }
.dropzone.has-file { border-style: solid; border-color: var(--sage); background: var(--sage-soft); }
.dropzone.has-error { border-color: var(--danger); }
.dropzone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.dz-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: #fff; color: var(--rose); box-shadow: var(--shadow-sm); flex: none; }
.dz-text { font-size: 14px; line-height: 1.45; }
.dz-file { display: none; }
.dropzone.has-file .dz-text { display: none; }
.dropzone.has-file .dz-file { display: block; font-weight: 600; color: #2F5D3A; word-break: break-all; }

.summary-card { padding: 20px 18px; display: grid; gap: 14px; }
.totals { margin: 0; display: grid; gap: 8px; }
.totals div { display: flex; justify-content: space-between; font-size: 14px; }
.totals dt { color: var(--muted); }
.totals dd { margin: 0; font-weight: 500; }
.total-row { padding-top: 10px; border-top: 1px solid var(--line); font-size: 17px !important; }
.total-row dt, .total-row span { color: var(--ink) !important; font-weight: 600; }
.total-row dd, .total-row strong { font-family: var(--font-display); font-size: 22px; font-weight: 500; }

.mobile-paybar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(42, 36, 37, .06);
}
.mobile-paybar small { display: block; font-size: 12px; }
.mobile-paybar strong { font-family: var(--font-display); font-size: 20px; font-weight: 500; }

/* ---------- Sipariş sayfası ---------- */
.success-hero { text-align: center; padding: 32px 22px; margin: 16px 0; background: radial-gradient(120% 80% at 50% 0%, var(--blush) 0%, #fff 70%); }
.success-icon { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; animation: pop .5s var(--ease); }
.success-icon .icon { width: 30px; height: 30px; }
.order-code { font-size: clamp(40px, 10vw, 56px); margin: 2px 0 10px; }
.timeline { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); padding: 0; margin: 0 0 16px; font-size: 11px; text-align: center; color: var(--muted); }
.timeline li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.timeline li::before { content: ""; position: absolute; top: 6px; left: -50%; width: 100%; height: 2px; background: var(--line); z-index: 0; }
.timeline li:first-child::before { display: none; }
.timeline li.is-done::before { background: var(--rose); }
.tl-dot { position: relative; z-index: 1; width: 14px; height: 14px; border-radius: 50%; background: var(--line); border: 3px solid var(--cream); box-sizing: content-box; }
.timeline li.is-done .tl-dot { background: var(--rose); }
.timeline li.is-current { color: var(--ink); font-weight: 600; }
.timeline li.is-current .tl-dot { box-shadow: 0 0 0 4px var(--rose-soft); }
.narrow .step-card { margin-bottom: 16px; }
.amount-box { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; margin-bottom: 12px; border-radius: 14px; background: var(--sage-soft); }
.amount-box strong { font-family: var(--font-display); font-size: 24px; font-weight: 500; }
.line-list { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; font-size: 14px; }
.line-list li { display: flex; justify-content: space-between; gap: 12px; }
.detail-grid { display: grid; gap: 14px; padding-top: 16px; border-top: 1px solid var(--line); }
.detail-grid p { margin: 4px 0 0; font-size: 14px; }
.card-note { margin: 6px 0 0; padding: 16px 18px; border-radius: 16px; background: var(--blush-2); font-family: var(--font-display); font-size: 18px; font-style: italic; }
.card-note footer { margin-top: 8px; font-family: var(--font-body); font-size: 13px; font-style: normal; color: var(--muted); }

/* ---------- Boş durum ---------- */
.empty-state { text-align: center; padding: 56px 16px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.empty-icon { width: 84px; height: 84px; border-radius: 50%; background: var(--blush); color: var(--rose); display: grid; place-items: center; }
.empty-icon .icon { width: 38px; height: 38px; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 48px; padding: 36px 0 24px; background: #F4EEE9; }
.footer-grid { display: grid; gap: 24px; }
.footer-title { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; margin: 0 0 10px; color: var(--ink-2); }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 14px; }
.footer-list a:hover { color: var(--rose-dark); }
.footer-bottom { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; }

/* ---------- Animasyonlar ---------- */
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes slideDown { from { transform: translateY(-16px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fadeUp { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
main > section { animation: fadeUp .6s var(--ease) both; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* =====================================================================
   Tablet / Masaüstü
   ===================================================================== */
@media (min-width: 640px) {
    .container { padding-inline: 24px; }
    .perks { grid-template-columns: repeat(3, 1fr); }
    .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
    .product-desc { display: block; }
    .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .field-full { grid-column: 1 / -1; }
    .slot-grid { grid-template-columns: repeat(3, 1fr); }
    .slot > span { flex-direction: column; align-items: flex-start; gap: 2px; }
    .detail-grid { grid-template-columns: 1fr 1fr; }
    .detail-grid .span-2 { grid-column: 1 / -1; }
    .footer-grid { grid-template-columns: 2fr 1fr 1.4fr; }
    .quick-form { grid-template-columns: 1.4fr 1fr auto; align-items: end; }
    .quick-form .btn { width: auto; }
    .timeline { font-size: 12px; }
    .cat-scroller { grid-auto-columns: 150px; }
}

@media (min-width: 960px) {
    :root { --header-h: 76px; }
    body { font-size: 16px; }
    .only-mobile { display: none; }
    .main-nav { display: flex; gap: 28px; font-size: 14px; font-weight: 500; }
    .main-nav a { position: relative; padding: 6px 0; color: var(--ink-2); }
    .main-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--rose); transform: scaleX(0); transition: transform .3s var(--ease); transform-origin: left; }
    .main-nav a:hover::after { transform: scaleX(1); }
    .header-inner { display: grid; grid-template-columns: 1fr auto 1fr; }
    .logo { font-size: 26px; }
    .header-inner .logo { grid-column: 1; }
    .main-nav { grid-column: 2; }
    .cart-btn { grid-column: 3; justify-self: end; }

    .slide { min-height: 520px; padding: 56px; align-items: center; }
    .slide-art .icon { width: 460px; height: 460px; }
    .section { padding-block: 44px; }
    .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
    .cat-scroller { grid-auto-flow: row; grid-template-columns: repeat(6, 1fr); overflow: visible; margin: 0; padding: 0; }
    .quick-order { grid-template-columns: 1fr 1.6fr; align-items: center; padding: 36px 40px; }

    .product-detail { grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
    .gallery { position: sticky; top: calc(var(--header-h) + 20px); }

    .checkout-grid { grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; padding-bottom: 40px; }
    .checkout-summary { position: sticky; top: calc(var(--header-h) + 20px); }
    .step-card { padding: 26px 28px; }
    .date-chips { margin-inline: 0; padding-inline: 2px; flex-wrap: wrap; }
    .mobile-paybar { display: none; }
}

/* =====================================================================
   YÖNETİM PANELİ
   ===================================================================== */
.admin-body { background: #F7F4F1; }
.admin-shell { min-height: 100vh; }
.admin-top {
    position: sticky; top: 0; z-index: 40; height: 60px; display: flex; align-items: center; justify-content: space-between;
    padding: 0 12px; background: rgba(255, 255, 255, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.admin-top .logo { font-size: 19px; }
.admin-side {
    position: fixed; inset: 0 auto 0 0; z-index: 55; width: 260px; padding: 20px 14px; background: #fff; border-right: 1px solid var(--line);
    display: flex; flex-direction: column; gap: 4px; transform: translateX(-100%); transition: transform .35s var(--ease); overflow-y: auto;
}
.admin-side.is-open { transform: none; box-shadow: var(--shadow-lg); }
.admin-side .logo { padding: 4px 10px 18px; font-size: 21px; }
.admin-side a, .admin-side button.nav-btn { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; color: var(--ink-2); font-weight: 500; font-size: 14px; border: 0; background: none; width: 100%; text-align: left; }
.admin-side a:hover, .admin-side button.nav-btn:hover { background: var(--cream); }
.admin-side a.is-active { background: var(--ink); color: #fff; }
.admin-side .side-sep { height: 1px; background: var(--line); margin: 10px 4px; }
.admin-side .side-foot { margin-top: auto; }
.side-user { padding: 0 12px 6px; }
.side-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(42, 36, 37, .3); }
.admin-main { padding: 18px 14px 60px; max-width: 1280px; margin: 0 auto; }
.admin-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.admin-head .h1 { font-size: 26px; }

.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 18px; }
.stat { padding: 16px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.stat span { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.stat strong { display: block; font-family: var(--font-display); font-size: 28px; font-weight: 500; margin-top: 4px; }
.stat.tone-rose { background: var(--blush-2); }
.stat.tone-sage { background: var(--sage-soft); }
.stat.tone-butter { background: var(--butter-soft); }
.stat.tone-lilac { background: var(--lilac-soft); }

.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; }
.panel-title { font-family: var(--font-display); font-weight: 500; font-size: 19px; margin: 0 0 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }

.table-wrap { overflow-x: auto; margin: 0 -18px; padding: 0 18px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #FCFAF8; }
.table .thumb { width: 48px; height: 56px; border-radius: 10px; object-fit: cover; background: var(--blush-2); display: grid; place-items: center; color: var(--rose); }
.table .actions { display: flex; gap: 6px; justify-content: flex-end; white-space: nowrap; }
.table .actions form { display: inline; }

/* Mobilde tablo → kart */
@media (max-width: 719px) {
    .table-cards thead { display: none; }
    .table-cards, .table-cards tbody, .table-cards tr, .table-cards td { display: block; width: 100%; }
    .table-cards tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
    .table-cards td { border: 0; padding: 3px 0; display: flex; justify-content: space-between; gap: 12px; }
    .table-cards td[data-label]::before { content: attr(data-label); color: var(--muted); font-size: 12px; font-weight: 500; }
    .table-cards .actions { justify-content: flex-start; padding-top: 8px; }
}

.status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-pending_payment { background: var(--butter-soft); color: #946A1F; }
.status-confirmed { background: #E3EEF7; color: #2E6690; }
.status-preparing { background: var(--lilac-soft); color: #6E5A92; }
.status-on_the_way { background: #FDEBDD; color: #B2622A; }
.status-delivered { background: var(--sage-soft); color: var(--success); }
.status-cancelled { background: #F1ECEA; color: var(--muted); }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: var(--cream); color: var(--ink-2); }
.pill-ok { background: var(--sage-soft); color: var(--success); }
.pill-warn { background: #FBEAE8; color: var(--danger); }

.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.filter-bar .search-field { min-width: 220px; }
.filter-bar select, .filter-bar input[type=date] { width: auto; }
.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-bottom: 14px; }
.tabs a { flex: none; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 500; background: #fff; border: 1px solid var(--line); }
.tabs a.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.tabs a .count { opacity: .65; margin-left: 4px; }

.admin-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 8px 12px; font-size: 14px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-word; }
.history { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; font-size: 13.5px; }
.history li { display: grid; grid-template-columns: 10px 1fr; gap: 12px; }
.history li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--rose-soft); margin-top: 5px; }
.receipt-preview { display: block; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--cream); }
.receipt-preview img { width: 100%; max-height: 520px; object-fit: contain; }
.img-manager { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.img-manager .img-item { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--blush-2); }
.img-manager .img-item img { width: 100%; height: 100%; object-fit: cover; }
.img-manager .img-item .cover-tag { position: absolute; left: 6px; top: 6px; }
.img-manager .img-item form { position: absolute; right: 6px; top: 6px; }
.img-manager .img-item .icon-btn { background: rgba(255, 255, 255, .92); width: 32px; height: 32px; }
.preview-strip { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.preview-strip img { width: 70px; height: 84px; object-fit: cover; border-radius: 10px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-top: 18px; }
.inline-checks { display: flex; flex-wrap: wrap; gap: 18px; }
.secret-input { font-family: ui-monospace, Menlo, Consolas, monospace; }

.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(90% 60% at 50% 0%, var(--blush) 0%, var(--cream) 70%); }
.login-card { width: 100%; max-width: 400px; padding: 32px 26px; display: grid; gap: 16px; }
.login-card .logo { text-align: center; font-size: 28px; }

@media (min-width: 720px) {
    .stat-grid { grid-template-columns: repeat(4, 1fr); }
    .admin-main { padding: 26px 24px 60px; }
    .panel { padding: 22px 24px; }
    .table-wrap { margin: 0 -24px; padding: 0 24px; }
}
@media (min-width: 1024px) {
    .admin-top { display: none; }
    .admin-side { transform: none; }
    .side-backdrop { display: none; }
    .admin-content { margin-left: 260px; }
    .admin-main { padding: 32px 36px 60px; }
    .admin-grid-2 { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }
}

/* ---------- Kurulum sihirbazı ---------- */
.install { padding-block: 32px 60px; }
.install-head { text-align: center; margin-bottom: 20px; }
.install .panel-title { margin-top: 22px; }
.install .panel-title:first-child, .install form > .panel-title:first-of-type { margin-top: 0; }
.install-db { grid-template-columns: 1fr !important; margin-bottom: 14px; }
.install-db .slot > span { flex-direction: column; align-items: flex-start; gap: 2px; }
.install-actions { justify-content: center; }
.install .success-icon { margin-bottom: 14px; }
@supports selector(:has(*)) {
    .install-mysql { display: none; }
    form:has(input[name=driver][value=mysql]:checked) .install-mysql { display: grid; }
}
.notice-danger { background: #FBEAE8; color: #8A2C25; }
