/* ==========================================================================
   Tabipler Market — Ana stil dosyası
   Tasarım dili: hazır ana sayfa tasarımından birebir korunmuştur.
   Breakpoint mantığı: mobil < 760px, tablet 760–1024px, masaüstü ≥ 1024px
   Renk / tipografi tokenları :root altında tanımlıdır.
   ========================================================================== */

:root {
    --accent: #B86C48;
    --green: #315C45;
    --green-dark: #264A37;
    --green-soft: #2A5039;
    --bg: #F7F5EF;
    --card: #FCFBF7;
    --border: #E6E1D2;
    --border-soft: #EFEBDE;
    --ink: #202A24;
    --muted: #5B655C;
    --muted-2: #668267;
    --cream: #EDEAD9;
    --radius: 14px;
    --maxw: 1200px;
    --font-serif: 'Lora', Georgia, 'Times New Roman', serif;
    --font-sans: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-mono: 'IBM Plex Mono', ui-monospace, 'Courier New', monospace;
}

/* --- Reset / temel ------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    /* 'clip', 'hidden'in aksine kaydırma bağlamı OLUŞTURMAZ; böylece yatay
       taşma engellenirken sticky/fixed başlık düzgün çalışır. */
    overflow-x: clip;
}

body {
    font-family: var(--font-sans);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--accent); }

button { font-family: var(--font-sans); }

input::placeholder { color: #8A937F; }

/* Erişilebilir odak halkası */
a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Ekran okuyucu için gizli metin */
.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* Body scroll kilidi (mobil menü açıkken) */
body.no-scroll { overflow: hidden; }

.container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* Görsel yer tutucu (fallback) — desenli kutu */
.ph {
    display: flex;
    align-items: center;
    justify-content: center;
    background: repeating-linear-gradient(45deg, #ECE7D8, #ECE7D8 10px, #F2EEE1 10px, #F2EEE1 20px);
    color: #8A937F;
    text-align: center;
    overflow: hidden;
}
.ph--sm { background-size: auto; }
.ph__label {
    font-family: var(--font-mono);
    font-size: 11px;
    color: #8A937F;
    padding: 0 8px;
}
.ph__label--boxed {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 13px;
}
/* Görsel dolduğunda yer tutucu deseni gizlensin */
.media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* --- Duyuru çubuğu ------------------------------------------------------- */
.announcement {
    background: var(--green);
    color: var(--cream);
    text-align: center;
    font-size: 13px;
    letter-spacing: 0.3px;
    padding: 9px 16px;
}
.announcement a { color: var(--cream); text-decoration: underline; }

/* --- Header -------------------------------------------------------------- */
.site-header {
    background: var(--card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
    transition: box-shadow 0.2s ease;
}
.site-header.is-stuck { box-shadow: 0 6px 20px -12px rgba(32, 42, 36, 0.35); }

.header-bar {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-top: 14px;
    padding-bottom: 14px;
}

.icon-btn {
    background: none;
    border: none;
    padding: 9px;
    border-radius: 10px;
    cursor: pointer;
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
}
.icon-btn:hover { background: #F0EDE1; color: var(--ink); }

.hamburger {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 8px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand__mark {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--green);
    color: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--font-serif); font-weight: 600; font-size: 20px; color: var(--ink); }
.brand__sub { font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted-2); }

.search {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 10px 18px;
    max-width: 520px;
    margin: 0 auto;
}
.search input {
    border: none;
    background: none;
    font-size: 14px;
    flex: 1;
    color: var(--ink);
    font-family: var(--font-sans);
    outline: none;
}
.live-search {
    position: relative;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.live-search:focus-within {
    border-color: #9DB3A1;
    box-shadow: 0 0 0 3px rgba(49, 92, 69, 0.09);
}
.live-search__panel {
    position: absolute;
    top: calc(100% + 9px);
    left: 0;
    right: 0;
    z-index: 85;
    overflow: hidden;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 18px 42px rgba(32, 42, 36, 0.16);
}
.live-search__panel[hidden],
.live-search__all[hidden] { display: none; }
.live-search__status {
    min-height: 44px;
    margin: 0;
    padding: 13px 16px;
    color: var(--muted);
    font-size: 13px;
    line-height: 18px;
}
.live-search__status:empty { display: none; }
.live-search__status[data-state="loading"]::before {
    content: '';
    display: inline-block;
    width: 13px;
    height: 13px;
    margin-right: 9px;
    vertical-align: -2px;
    border: 2px solid var(--border);
    border-top-color: var(--green);
    border-radius: 50%;
    animation: live-search-spin 0.7s linear infinite;
}
@keyframes live-search-spin { to { transform: rotate(360deg); } }
.live-search__list {
    list-style: none;
    margin: 0;
    padding: 6px;
    max-height: min(430px, calc(100vh - 190px));
    overflow-y: auto;
    overscroll-behavior: contain;
}
.live-search__list:empty { display: none; }
.live-search__option {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    min-height: 60px;
    padding: 6px 9px;
    color: var(--ink);
    border-radius: 11px;
}
.live-search__option:hover,
.live-search__option[aria-selected="true"] {
    color: var(--ink);
    background: #F0EDE1;
}
.live-search__thumb {
    width: 48px;
    height: 48px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #F2EFE4, #E8E3D2);
    border: 1px solid var(--border-soft);
    border-radius: 9px;
    color: var(--muted-2);
    font-family: var(--font-serif);
    font-size: 18px;
}
.live-search__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.live-search__copy { min-width: 0; }
.live-search__name {
    display: block;
    overflow: hidden;
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.live-search__meta {
    display: flex;
    gap: 7px;
    margin-top: 3px;
    overflow: hidden;
    color: var(--muted-2);
    font-size: 11.5px;
    white-space: nowrap;
}
.live-search__meta span + span::before { content: '•'; margin-right: 7px; }
.live-search__stock.is-unavailable { color: var(--accent); }
.live-search__price {
    color: var(--green);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}
.live-search__all {
    display: block;
    padding: 11px 16px 12px;
    color: var(--green);
    border-top: 1px solid var(--border-soft);
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}
.live-search__all:hover { background: #F7F4EA; color: var(--green-dark); }

.header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}
.cart-btn { position: relative; }
.cart-badge {
    position: absolute;
    top: 2px; right: 0;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    min-width: 18px; height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}
.cart-badge[hidden] { display: none; }

/* Kategori nav çubuğu */
.cat-nav { border-top: 1px solid var(--border-soft); }
.cat-nav__list {
    display: flex;
    gap: 26px;
    overflow-x: auto;
    scrollbar-width: thin;
}
.cat-nav__link {
    font-size: 14px;
    font-weight: 500;
    color: #3D473F;
    padding: 11px 0;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
}
.cat-nav__link:hover,
.cat-nav__link.is-active { color: var(--green); border-bottom-color: var(--green); }

/* Mobil arama alanı (açılır) */
.mobile-search {
    display: none;
    padding-bottom: 14px;
}
.mobile-search.is-open { display: block; }
.mobile-search .search { max-width: none; margin: 0; }

/* --- Mobil menü (drawer) ------------------------------------------------- */
.drawer-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(32, 42, 36, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.drawer {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 290px;
    max-width: 85vw;
    z-index: 101;
    background: var(--card);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.28s ease;
}
.drawer.is-open { transform: translateX(0); }
.drawer-overlay.is-open { opacity: 1; visibility: visible; }

.drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.drawer__title { font-family: var(--font-serif); font-weight: 600; font-size: 19px; }
.drawer__link {
    font-size: 16px;
    font-weight: 500;
    color: var(--ink);
    padding: 11px 8px;
    border-bottom: 1px solid var(--border-soft);
    display: block;
}
.drawer__footer {
    display: flex;
    gap: 18px;
    margin-top: 20px;
    font-size: 14px;
    color: var(--green);
    font-weight: 600;
}

/* --- Genel bölüm başlıkları --------------------------------------------- */
.section { padding-top: 72px; }
.section--lg { padding-top: 88px; }
.section__eyebrow {
    margin: 0 0 8px;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted-2);
    font-weight: 600;
}
.section__title {
    margin: 0;
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: 32px;
    color: var(--ink);
}
.section__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 32px;
}
.section__head--center { text-align: center; display: block; margin-bottom: 40px; }
.link-more { font-size: 14px; font-weight: 600; white-space: nowrap; }

/* --- Hero ---------------------------------------------------------------- */
.hero {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 48px;
    align-items: center;
    padding-top: 56px;
    padding-bottom: 64px;
}
.hero__content { display: flex; flex-direction: column; gap: 22px; max-width: 560px; }
.hero__eyebrow {
    margin: 0;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted-2);
    font-weight: 600;
}
.hero__title {
    margin: 0;
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: 48px;
    line-height: 1.15;
    color: var(--ink);
    text-wrap: pretty;
}
.hero__lead {
    margin: 0;
    font-size: 17px;
    line-height: 1.65;
    color: #4A554C;
    text-wrap: pretty;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.hero__media {
    aspect-ratio: 5 / 4;
    border-radius: calc(var(--radius) + 6px);
    border: 1px solid var(--border);
}

/* Butonlar */
.btn {
    font-weight: 600;
    font-size: 15px;
    padding: 14px 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    border: none;
    line-height: 1;
}
.btn--primary { background: var(--green); color: var(--bg); }
.btn--primary:hover { background: var(--green-dark); color: var(--bg); }
.btn--outline {
    background: none;
    color: var(--green);
    padding: 13px 28px;
    border: 1.5px solid var(--green);
}
.btn--outline:hover { background: var(--cream); color: var(--green); }

/* --- Güven avantajları --------------------------------------------------- */
.trust {
    border-top: 1px solid #E9E4D5;
    border-bottom: 1px solid #E9E4D5;
    background: var(--card);
}
.trust__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    padding-top: 36px;
    padding-bottom: 36px;
}
.trust__item { display: flex; align-items: flex-start; gap: 14px; }
.trust__icon {
    width: 42px; height: 42px;
    border-radius: 12px;
    background: var(--cream);
    color: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.trust__title { margin: 0 0 4px; font-size: 15px; font-weight: 700; color: var(--ink); }
.trust__text { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); }

/* --- Kategoriler --------------------------------------------------------- */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.cat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    color: var(--ink);
}
.cat-card:hover { border-color: var(--green); color: var(--ink); }
.cat-card__media {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: calc(var(--radius) - 4px);
}
/* Kategori kartı görseli her zaman kutuyu tam doldurur (portre/kare fark etmez) */
.cat-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cat-card__name { font-weight: 600; font-size: 15px; }
.cat-card__count { font-size: 12.5px; color: var(--muted-2); }

/* --- Ürün kartları ------------------------------------------------------- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.product-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
}
.product-card__media-wrap { position: relative; }
.product-card__media {
    aspect-ratio: 1 / 1;
    border-radius: calc(var(--radius) - 4px);
}
.fav-btn {
    position: absolute;
    top: 10px; right: 10px;
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--muted);
    padding: 0;
}
.fav-btn:hover { border-color: var(--accent); }
.fav-btn.is-active { color: var(--accent); }
.fav-btn.is-active svg { fill: var(--accent); }

.product-card__body { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.product-card__cat {
    font-size: 11.5px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--muted-2);
    font-weight: 600;
}
.product-card__name { margin: 0; font-size: 15.5px; font-weight: 600; color: var(--ink); line-height: 1.35; }
.product-card__weight { font-size: 13px; color: #7A836F; }
.product-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-top: 1px solid var(--border-soft);
    padding-top: 12px;
}
.product-card__price { display: flex; flex-direction: column; }
.product-card__price b { font-size: 17px; font-weight: 700; color: var(--ink); }
.product-card__oldprice { font-size: 13px; color: #9AA292; text-decoration: line-through; }
.btn--add {
    background: var(--green);
    color: var(--bg);
    border-radius: 999px;
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 600;
}
.btn--add:hover { background: var(--green-dark); }
.badge-stock {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 999px;
}
.badge-stock--low { background: #F5E4D8; color: var(--accent); }

/* --- Kooperatif hikâyesi ------------------------------------------------- */
.story {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) + 8px);
    padding: 48px;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 48px;
    align-items: center;
}
.story__media { aspect-ratio: 4 / 3; border-radius: var(--radius); }
.story__body { display: flex; flex-direction: column; gap: 18px; }
.story__title {
    margin: 0;
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: 32px;
    line-height: 1.2;
    color: var(--ink);
    text-wrap: pretty;
}
.story__text { margin: 0; font-size: 15.5px; line-height: 1.7; color: #4A554C; text-wrap: pretty; }
.story__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 8px;
}
.stat__num { margin: 0; font-family: var(--font-serif); font-size: 28px; color: var(--green); }
.stat__label { margin: 2px 0 0; font-size: 13px; color: var(--muted); }

/* --- Tarladan sofraya süreci --------------------------------------------- */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.step-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.step-card__num {
    font-family: var(--font-serif);
    font-size: 15px;
    color: var(--card);
    background: var(--accent);
    width: 34px; height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.step-card__title { margin: 0; font-size: 16px; font-weight: 700; color: var(--ink); }
.step-card__text { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); }

/* --- Mevsimlik ürünler --------------------------------------------------- */
.seasonal {
    background: var(--green);
    border-radius: calc(var(--radius) + 8px);
    padding: 48px;
    color: var(--cream);
}
.seasonal__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}
.seasonal__intro { max-width: 520px; }
.seasonal__eyebrow { margin: 0 0 8px; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: #A9C0AA; font-weight: 600; }
.seasonal__title { margin: 0 0 10px; font-family: var(--font-serif); font-weight: 500; font-size: 30px; color: var(--bg); }
.seasonal__text { margin: 0; font-size: 15px; line-height: 1.6; color: #CFDACB; }
.seasonal__btn {
    color: var(--bg);
    border: 1.5px solid #6B8A74;
    border-radius: 999px;
    padding: 11px 22px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}
.seasonal__btn:hover { background: var(--green-dark); color: var(--bg); }
.seasonal__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.season-card {
    background: var(--green-soft);
    border: 1px solid #48705A;
    border-radius: var(--radius);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.season-card__media {
    width: 64px; height: 64px;
    flex-shrink: 0;
    border-radius: 12px;
    background: repeating-linear-gradient(45deg, #3B6349, #3B6349 6px, #456E53 6px, #456E53 12px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.season-card__media .ph__label { color: #A9C0AA; font-size: 10px; }
.season-card__media img { width: 100%; height: 100%; object-fit: cover; }
.season-card__name { margin: 0 0 3px; font-size: 15px; font-weight: 600; color: var(--bg); }
.season-card__text { margin: 0; font-size: 13px; color: #A9C0AA; }

/* --- Üretici hikâyesi ---------------------------------------------------- */
.producer {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 48px;
    align-items: center;
    max-width: 960px;
    margin: 0 auto;
}
.producer__media {
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    max-width: 280px;
    width: 100%;
    margin: 0 auto;
    border: 1px solid var(--border);
    overflow: hidden;
}
.producer__figure { margin: 0; }
.producer__quote {
    margin: 0;
    font-family: var(--font-serif);
    font-size: 25px;
    line-height: 1.45;
    font-style: italic;
    color: var(--ink);
    text-wrap: pretty;
}
.producer__caption { margin-top: 16px; font-size: 14px; color: var(--muted); }
.producer__caption strong { color: var(--ink); }

/* --- Tarifler ve rehberler ----------------------------------------------- */
.articles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.article-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    color: var(--ink);
}
.article-card:hover { border-color: var(--green); color: var(--ink); }
.article-card__media { aspect-ratio: 16 / 9; }
.article-card__body { padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.article-card__tag { font-size: 11.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.article-card__title { font-family: var(--font-serif); font-size: 19px; font-weight: 500; line-height: 1.3; }
.article-card__excerpt { font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.article-card__meta { font-size: 12.5px; color: var(--muted-2); }

/* --- SSS ----------------------------------------------------------------- */
.faq { max-width: 760px; }
.faq__list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.faq-item__q {
    width: 100%;
    background: none;
    border: none;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
    text-align: left;
    font-size: 15.5px;
    font-weight: 600;
    color: var(--ink);
}
.faq-item__q svg { flex-shrink: 0; transition: transform 0.2s ease; }
.faq-item.is-open .faq-item__q svg { transform: rotate(180deg); }
.faq-item__a {
    margin: 0;
    padding: 0 20px;
    font-size: 14.5px;
    line-height: 1.65;
    color: #4A554C;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.28s ease, padding 0.28s ease;
}
.faq-item.is-open .faq-item__a { padding: 0 20px 18px; max-height: 600px; }

/* --- Bülten -------------------------------------------------------------- */
.newsletter-section { padding-top: 88px; padding-bottom: 88px; }
.newsletter {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) + 8px);
    padding: 48px;
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
}
.newsletter__title { margin: 0 0 12px; font-family: var(--font-serif); font-weight: 500; font-size: 28px; color: var(--ink); }
.newsletter__text { margin: 0 0 24px; font-size: 15px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.newsletter__form {
    display: flex;
    gap: 10px;
    max-width: 440px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}
.newsletter__input {
    flex: 1;
    min-width: 220px;
    border: 1px solid #D8D2BF;
    background: var(--bg);
    border-radius: 999px;
    padding: 13px 20px;
    font-size: 14px;
    font-family: var(--font-sans);
    color: var(--ink);
    outline: none;
}
.newsletter__form .btn--primary { padding: 13px 26px; font-size: 14px; }
.newsletter__success { margin: 0; font-size: 15px; font-weight: 600; color: var(--green); }
.newsletter__error {
    display: none;
    margin: 10px 0 0;
    font-size: 13.5px;
    color: #B4442E;
}
.newsletter__error.is-visible { display: block; }

/* --- Footer -------------------------------------------------------------- */
.site-footer { background: #24352B; color: #C4CFC2; margin-top: 0; }
.footer-inner { padding-top: 56px; padding-bottom: 32px; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #3A4E40;
}
.footer-brand { max-width: 300px; }
.footer-brand__row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand__mark {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--bg);
    color: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
}
.footer-brand__name { font-family: var(--font-serif); font-size: 19px; color: var(--bg); }
.footer-brand__text { margin: 0; font-size: 13.5px; line-height: 1.65; }
.footer-col__title { margin: 0 0 14px; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: #8FA491; }
.footer-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; font-size: 14px; }
.footer-list a { color: #C4CFC2; }
.footer-list a:hover { color: var(--bg); }
.footer-list li { color: #C4CFC2; }
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a {
    width: 38px; height: 38px;
    border: 1px solid #3A4E40;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #C4CFC2;
}
.footer-social a:hover { color: var(--bg); border-color: #6B8A74; }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 24px;
    font-size: 12.5px;
    color: #8FA491;
}
.footer-bottom a { color: #8FA491; }
.footer-bottom a:hover { color: var(--bg); }
.footer-bottom__links { display: flex; gap: 18px; flex-wrap: wrap; }

/* --- Mobil alt navigasyon ------------------------------------------------ */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 90;
    background: var(--card);
    border-top: 1px solid var(--border);
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
    justify-content: space-around;
}
.mobile-bottom-nav__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 6px 4px;
    min-height: 44px;
    font-size: 10.5px;
    font-weight: 500;
    color: var(--muted);
    position: relative;
}
.mobile-bottom-nav__item.is-active { color: var(--green); }
.mobile-bottom-nav__badge {
    position: absolute;
    top: 2px;
    right: 50%;
    transform: translateX(16px);
    background: var(--accent);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px; height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}
.mobile-bottom-nav__badge[hidden] { display: none; }

/* --- Toast bildirimi ----------------------------------------------------- */
.toast-wrap {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    pointer-events: none;
    width: max-content;
    max-width: 90vw;
}
.toast {
    background: var(--ink);
    color: var(--bg);
    padding: 12px 20px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 10px 30px -10px rgba(32, 42, 36, 0.5);
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.toast.is-visible { opacity: 1; transform: translateY(0); }
.toast svg { color: #8FC2A0; }
.toast--error { background: #7E3A28; }
.toast__link {
    color: #FFF;
    font-weight: 700;
    text-decoration: underline;
    pointer-events: auto;
    margin-left: 4px;
    white-space: nowrap;
}
.toast__link:hover { color: #F0E4D8; }
.toast-wrap { pointer-events: none; }
.toast { pointer-events: auto; }

/* ==========================================================================
   ÜRÜN KARTI EK ÖĞELERİ (ortak component — ana sayfa + mağaza)
   ========================================================================== */
.product-card__media {
    display: block;
    overflow: hidden;
}

/* Etiketler (indirim / stok) */
.product-card__badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    z-index: 2;
}
.badge {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2px;
    padding: 4px 9px;
    border-radius: 999px;
    line-height: 1.2;
    white-space: nowrap;
}
.badge--discount { background: var(--accent); color: #fff; }
.badge--out      { background: #E7E3D6; color: #5B655C; }
.badge--low      { background: #F5E4D8; color: var(--accent); }
.badge--xs       { padding: 2px 6px; font-size: 9.5px; vertical-align: middle; }

/* Ürün adı — en fazla 2 satır, tam ad title ile erişilebilir */
.product-card__name a {
    color: var(--ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(2 * 1.35em);
}
.product-card__name a:hover { color: var(--green); }

.product-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 10px;
    margin-top: 2px;
}
.product-card__loc {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 12.5px;
    color: var(--muted-2);
}
.product-card__unit {
    font-size: 11.5px;
    color: #8A937F;
}

/* Stokta olmayan ürünün butonu — görsel soluklaştırılmaz, buton pasifleşir */
.btn--add.is-disabled,
.btn--add:disabled {
    background: #E7E3D6;
    color: #6E786C;
    cursor: not-allowed;
}
.btn--add.is-disabled:hover,
.btn--add:disabled:hover { background: #E7E3D6; }

.btn--sm { padding: 9px 16px; font-size: 13px; }

/* ==========================================================================
   PROFİL (HESAP) DROPDOWN — masaüstü
   ========================================================================== */
.profile-wrap { position: relative; display: flex; }

.profile-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 300px;
    max-width: calc(100vw - 32px);
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 18px 40px -16px rgba(32, 42, 36, 0.38);
    padding: 14px;
    z-index: 120;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
}
.profile-menu[hidden] { display: none; }
.profile-menu.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Giriş yapılmamış: karşılama */
.profile-menu__welcome { padding: 4px 6px 12px; }
.profile-menu__welcome-title {
    margin: 0 0 6px;
    font-family: var(--font-serif);
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
}
.profile-menu__welcome-text {
    margin: 0 0 12px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--muted);
}
.profile-menu__auth { display: flex; gap: 8px; }
.profile-menu__auth .btn { flex: 1; justify-content: center; }

/* Giriş yapılmış: kullanıcı özeti */
.profile-menu__user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 6px 12px;
}
.profile-menu__avatar {
    width: 40px; height: 40px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--green);
    color: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}
.profile-menu__user-info { display: flex; flex-direction: column; min-width: 0; }
.profile-menu__user-name { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.profile-menu__user-mail {
    font-size: 12.5px;
    color: var(--muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.profile-menu__view-account {
    display: block;
    text-align: center;
    font-size: 13.5px;
    font-weight: 600;
    padding: 9px;
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 6px;
}
.profile-menu__view-account:hover { background: #F0EDE1; color: var(--green); }

/* Menü bağlantıları */
.profile-menu__list {
    list-style: none;
    margin: 6px 0 0;
    padding: 6px 0 0;
    border-top: 1px solid var(--border-soft);
}
.profile-menu__list--footer { margin-top: 6px; }
.profile-menu__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 10px;
    font-size: 14px;
    color: var(--ink);
    min-height: 40px;
}
.profile-menu__item:hover { background: #F0EDE1; color: var(--ink); }
.profile-menu__item-icon { display: flex; color: var(--muted-2); }
/* Çıkış öğesi <button> olarak render edilir (POST formu); <a> gibi görünsün */
.profile-menu__logout { margin: 0; }
button.profile-menu__item {
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
    text-align: left;
}
.profile-menu__item--danger { color: #A2432F; }
.profile-menu__item--danger .profile-menu__item-icon { color: #A2432F; }
.profile-menu__item--danger:hover { background: #F6E7E2; color: #A2432F; }

/* ==========================================================================
   MOBİL HESAP DRAWER (sağdan açılır)
   ========================================================================== */
.account-drawer,
.filter-drawer,
.cart-drawer {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 330px;
    max-width: 88vw;
    z-index: 101;
    background: var(--card);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.28s ease;
}
.account-drawer.is-open,
.filter-drawer.is-open,
.cart-drawer.is-open { transform: translateX(0); }
.account-drawer[hidden],
.filter-drawer[hidden],
.cart-drawer[hidden] { display: none; }

.account-drawer__head,
.filter-drawer__head,
.cart-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.account-drawer__title,
.filter-drawer__title,
.cart-drawer__title {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 18px;
    color: var(--ink);
}
.account-drawer__body,
.filter-drawer__body,
.cart-drawer__body {
    padding: 18px;
    overflow-y: auto;
    flex: 1;
    /* Mobil alt navigasyonun arkasında kalmasın */
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
}

.account-drawer__user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}
.account-drawer__welcome { margin-bottom: 16px; }
.account-drawer__auth { display: flex; flex-direction: column; gap: 10px; }
.account-drawer__auth .btn { justify-content: center; }
.account-drawer__cta { width: 100%; justify-content: center; margin-bottom: 8px; }

.account-drawer__list {
    list-style: none;
    margin: 8px 0 0;
    padding: 8px 0 0;
    border-top: 1px solid var(--border-soft);
}
.account-drawer__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 8px;
    border-radius: 10px;
    font-size: 15px;
    color: var(--ink);
    min-height: 44px; /* dokunma alanı */
}
.account-drawer__item > span:nth-child(2) { flex: 1; }
.account-drawer__item:hover { background: #F0EDE1; color: var(--ink); }
.account-drawer__item--danger { color: #A2432F; }
.account-drawer__item--danger .profile-menu__item-icon { color: #A2432F; }

/* ==========================================================================
   MİNİ SEPET (masaüstü dropdown + mobil drawer içeriği)
   ========================================================================== */
.cart-wrap { position: relative; display: flex; }

.mini-cart {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 340px;
    max-width: calc(100vw - 32px);
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 18px 40px -16px rgba(32, 42, 36, 0.38);
    z-index: 120;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
}
.mini-cart[hidden] { display: none; }
.mini-cart.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }

.mini-cart__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-soft);
}
.mini-cart__title { font-family: var(--font-serif); font-size: 16px; font-weight: 600; color: var(--ink); }
.mini-cart__count { font-size: 12.5px; color: var(--muted); }

.mini-cart__list {
    list-style: none;
    margin: 0;
    padding: 8px;
    max-height: 320px;
    overflow-y: auto;
}
.mini-cart__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 10px;
}
.mini-cart__item + .mini-cart__item { border-top: 1px solid var(--border-soft); }
.mini-cart__media {
    width: 56px; height: 56px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
    display: block;
}
.mini-cart__media img { width: 100%; height: 100%; object-fit: cover; }
.mini-cart__info { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.mini-cart__name {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.mini-cart__name:hover { color: var(--green); }
.mini-cart__meta { font-size: 12px; color: var(--muted); }
.mini-cart__oldprice,
.mini-cart__oldtotal { color: var(--muted-2); text-decoration: line-through; }
.mini-cart__line { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.mini-cart__remove {
    width: 32px; height: 32px;
    flex-shrink: 0;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--card);
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.mini-cart__remove:hover { border-color: var(--accent); color: var(--accent); }

.mini-cart__more { margin: 0; padding: 0 16px 10px; font-size: 12.5px; color: var(--muted-2); }

.mini-cart__footer {
    padding: 14px 16px;
    border-top: 1px solid var(--border-soft);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.mini-cart__row {
    margin: 0;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    font-size: 12.5px;
    color: var(--muted);
}
.mini-cart__row > :last-child { flex-shrink: 0; }
.mini-cart__row--discount,
.mini-cart__row--discount strong { color: var(--green); }
.mini-cart__savings {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 7px 9px;
    border-radius: 8px;
    background: #EAF3EC;
    font-size: 12px;
    font-weight: 700;
    color: var(--green);
}
.mini-cart__subtotal {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    color: var(--muted);
}
.mini-cart__subtotal strong { font-size: 17px; color: var(--ink); }
.mini-cart__go,
.mini-cart__continue { justify-content: center; width: 100%; }

.mini-cart__empty {
    padding: 28px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.mini-cart__empty p { margin: 0; font-size: 14px; color: var(--muted); }

/* Mobil sepet drawer — alt navigasyonun üstünde kalır */
.cart-drawer { z-index: 105; }
.cart-drawer__count { display: block; font-size: 12.5px; font-weight: 400; color: var(--muted); }
.cart-drawer__body { padding: 0; }
.cart-drawer__body .mini-cart__list { max-height: none; }
.cart-drawer__body .mini-cart__footer {
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
}

/* Ürün kartı içindeki sepet formu, buton gibi hizalansın */
.product-card__form { display: contents; }

/* Kartın mevcut kompakt yapısını bozmadan ikincil satın alma aksiyonu */
.product-card__buy-form {
    display: block;
    margin-top: -4px;
}
.product-card__buy {
    width: 100%;
    min-height: 36px;
    padding: 7px 14px;
    border: 1px solid var(--green);
    border-radius: 999px;
    background: transparent;
    color: var(--green);
    font: inherit;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
}
.product-card__buy:hover {
    background: var(--cream);
    color: var(--green-dark);
}
.product-card__buy-form.is-loading,
.product-card__form.is-loading { opacity: 0.65; pointer-events: none; }

/* ==========================================================================
   FLASH BİLDİRİMLERİ (JavaScript kapalıyken görünür geri bildirim)
   ========================================================================== */
.flash-wrap { padding-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.flash {
    margin: 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 14px;
    line-height: 1.5;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--ink);
}
.flash__icon { display: flex; flex-shrink: 0; margin-top: 1px; }
.flash__label { font-weight: 700; }
.flash--success { background: #EAF2EA; border-color: #C3D9C6; color: #24512F; }
.flash--error   { background: #F8E9E4; border-color: #E4C4B8; color: #8A3320; }
.flash--info    { background: var(--cream); border-color: var(--border); color: #4A554C; }

/* --- Hareket azaltma tercihi --------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}
