/*------------------------------------------------------------------
    Monokro – Ortak Tasarım Sistemi (Nayla çizgisi)
    Tüm sayfalarda aynı header, sepet butonu, footer, form ve tipografi.
    Marka renkleri yalnızca bu dosyadaki :root değişkenlerinden yönetilir.
    Yükleme sırası: fonts.css → plugins.css → style.css → monokro-base.css → monokro.css
-------------------------------------------------------------------*/

/* ─── Tasarım Değişkenleri ────────────────────────────────────── */

:root {
    /* Marka: logodaki kıvrımın rengi (#9cb19b) vurgu, siyah/antrasit metin, kırık beyaz zemin */
    --mk-bg:          #ffffff;
    --mk-surface:     #ffffff;
    --mk-warm:        #f1f4f0;          /* ikincil yüzey: kurumsal yeşilin çok açık tonu */
    --mk-warm-2:      #d9e2d8;
    --mk-ink:         #111111;
    --mk-ink-2:       #2a2a28;          /* koyu hover */
    --mk-ink-soft:    rgba(17, 17, 17, 0.64);
    --mk-ink-mute:    rgba(17, 17, 17, 0.46);
    --mk-border:      rgba(17, 17, 17, 0.10);
    --mk-accent:      #9cb19b;          /* logo kıvrımı */
    --mk-accent-ink:  #4d6a4c;          /* vurgu rengi metinde (okunurluk için koyulaştırılmış ton) */
    --mk-accent-soft: rgba(156, 177, 155, 0.18);
    --mk-ok:          #3f6b4a;
    --mk-warn:        #9a6a12;
    --mk-err:         #a3372e;
    --mk-radius:      8px;
    --mk-shadow:      0 20px 50px rgba(17, 17, 17, 0.07);
}

/* ─── Tipografi: tek dil (DM Sans) ────────────────────────────── */

.mk-page h1,
.mk-page h2,
.mk-page h3,
.mk-page h4,
.mk-page .page-display {
    font-family: 'DM Sans', system-ui, sans-serif !important;
    font-style: normal !important;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.mk-page em,
.mk-page i.accent {
    font-style: normal;
    color: var(--mk-accent);
}

.mk-page .page-kicker {
    display: block;
    margin-bottom: 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--mk-ink-mute);
}

.mk-page .page-display {
    font-size: clamp(30px, 4.1vw, 57px);
    line-height: 1.05;
    margin: 0 0 14px;
}

.mk-page .page-lead {
    max-width: 620px;
    font-size: clamp(15px, 1.5vw, 18px);
    line-height: 1.6;
    color: var(--mk-ink-soft);
}

/* ─── Header ──────────────────────────────────────────────────── */

#header.mk-header {
    padding: 0 !important;
    background: var(--mk-bg);
    border-bottom: 1px solid var(--mk-border);
}

#header.mk-header .header-wrapper {
    align-items: center;
    min-height: 78px;
    flex-wrap: nowrap;
    gap: 18px;
}

#header.mk-header nav.classic ul.menu {
    display: flex;
    align-items: center;
    gap: 26px;
    margin: 0;
    padding: 0;
    list-style: none;
    flex-wrap: nowrap;
}

#header.mk-header nav.classic ul.menu li {
    display: block;
    margin: 0 !important;
    padding: 0 !important;
    white-space: nowrap;
}

#header.mk-header nav.classic ul.menu li a {
    font-size: 14px;
    color: var(--mk-ink-soft);
    text-decoration: none;
    transition: color 0.25s ease;
}

#header.mk-header nav.classic ul.menu li a:hover,
#header.mk-header nav.classic ul.menu li.current a {
    color: var(--mk-ink);
}

#header.mk-header .site-logo img,
#header.mk-header .sticky-logo img {
    height: 32px;
    width: auto;
    display: block;
}

#header.mk-header .nayla-button a {
    font-size: 14px;
    color: var(--mk-ink-soft);
}

#header.mk-header .nayla-button a:hover { color: var(--mk-ink); }

/* ─── Sepet Butonu (tek bileşen) ──────────────────────────────── */

.mk-cart {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 9px 9px 16px;
    border: 1px solid var(--mk-border);
    border-radius: 999px;
    background: var(--mk-surface);
    color: var(--mk-ink);
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.mk-cart:hover {
    border-color: var(--mk-ink-2);
    background: var(--mk-ink-2);
    color: #ffffff;
}

.mk-cart .material-icons {
    font-size: 17px;
    line-height: 1;
}

/* Sayaç: site.js yalnızca data-count'u günceller, rozet ::after ile çizilir.
   (attr() sadece kendi elemanının niteliğini okuduğu için rozet .mk-cart üzerinde.) */
.mk-cart .mk-cart-count { display: none; }

.mk-cart::after {
    content: attr(data-count);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 21px;
    height: 21px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--mk-ink);
    color: var(--mk-bg);
    font-size: 11px;
    font-weight: 700;
    transition: background 0.25s ease, color 0.25s ease;
}

.mk-cart:hover::after {
    background: var(--mk-accent);
    color: var(--mk-ink-2);
}

.mk-cart:not([data-count])::after { display: none; }
.mk-cart[data-count="0"]::after  { opacity: 0.4; }

/* Eski tema butonunu her yerde bastır */
.nayla-cart-button {
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    font-size: 13px !important;
}
.nayla-cart-button::before,
.nayla-cart-button::after { display: none !important; }

/* ─── Formlar ─────────────────────────────────────────────────── */

.form-group { display: flex; flex-direction: column; gap: 8px; }

.form-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--mk-ink-mute);
}

.form-input {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 16px;
    border: 1px solid var(--mk-border);
    border-radius: var(--mk-radius);
    background: var(--mk-surface);
    color: var(--mk-ink);
    font-family: inherit;
    font-size: 15px;
    line-height: 1.4;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    -webkit-appearance: none;
    appearance: none;
}

select.form-input {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23191919' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    padding-right: 42px;
    cursor: pointer;
}

textarea.form-input { min-height: 132px; resize: vertical; }

.form-input::placeholder { color: var(--mk-ink-mute); }

.form-input:focus {
    border-color: var(--mk-accent);
    box-shadow: 0 0 0 3px var(--mk-accent-soft);
}

.form-input:disabled { opacity: 0.55; cursor: not-allowed; }

/* ─── Butonlar ────────────────────────────────────────────────── */

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 30px;
    border: 1px solid var(--mk-ink);
    border-radius: var(--mk-radius);
    background: var(--mk-ink);
    color: #ffffff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
}

.btn-primary:hover { background: var(--mk-ink-2); border-color: var(--mk-ink-2); }
.btn-primary:disabled { opacity: 0.55; cursor: default; }

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    border: 1px solid var(--mk-border);
    border-radius: var(--mk-radius);
    background: transparent;
    color: var(--mk-ink);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.25s ease;
}

.btn-ghost:hover { border-color: var(--mk-ink); }

/* ─── Form durum mesajı ───────────────────────────────────────── */

.form-status {
    display: none;
    padding: 13px 16px;
    border-radius: var(--mk-radius);
    font-size: 14px;
    line-height: 1.5;
}

.form-status.show { display: block; }
.form-status.ok   { background: rgba(47, 111, 78, 0.10); color: var(--mk-ok); }
.form-status.err  { background: rgba(190, 60, 50, 0.09);  color: #a3372e; }

/* ─── Sayfa başlığı bloğu ─────────────────────────────────────── */

.mk-page-head {
    padding: 128px 0 22px;
    background: var(--mk-bg);
    border-bottom: 1px solid var(--mk-border);
}

.mk-page-head .page-lead { margin-bottom: 0; }

/* ─── Bilgi kartı ─────────────────────────────────────────────── */

.mk-info-card {
    padding: 26px;
    border: 1px solid var(--mk-border);
    border-radius: var(--mk-radius);
    background: var(--mk-surface);
}

.mk-info-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: var(--mk-accent-soft);
    color: var(--mk-accent);
}

.mk-info-ico .material-icons { font-size: 20px; }

.mk-info-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--mk-ink-mute);
    margin-bottom: 6px;
}

.mk-info-value { font-size: 16px; color: var(--mk-ink); line-height: 1.65; }

/* ─── Footer ──────────────────────────────────────────────────── */

body.mk-page.light {
    --mainBackground: var(--mk-bg);
    background: var(--mk-bg);
}

body.mk-page #page,
body.mk-page .site-main { background: transparent; }

#footer.site-footer,
#footer.mk-footer {
    background: var(--mk-bg) !important;
    border-top: 1px solid var(--mk-border);
}

.mk-footer .footer-top-wrapper {
    padding-top: 30px;
    padding-bottom: 10px;
    margin-bottom: 0;          /* tema 100px veriyordu */
    align-items: flex-start;
}

.mk-footer .footer-top-wrapper > div { margin-bottom: 18px; }

.mk-footer .footer-col-title {
    margin-bottom: 16px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--mk-ink-mute);
}

.mk-footer .menu { margin: 0; padding: 0; list-style: none; }

.mk-footer .footer-bottom-wrapper {
    border-top: 1px solid var(--mk-border);
    padding-top: 16px;
    padding-bottom: 16px;
    margin-bottom: 0 !important;
    align-items: center;
}

.mk-footer .footer-bottom-wrapper > div { margin-bottom: 0; }

/* Telif + marka satırı */
.footer-copy {
    font-size: 12px;
    color: rgba(25, 25, 25, 0.42);
    margin: 0 0 3px;
}

.footer-brand {
    font-size: 12px;
    color: rgba(25, 25, 25, 0.42);
    margin: 0;
}

.footer-brand a {
    color: rgba(25, 25, 25, 0.62);
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
    border-bottom: 1px solid rgba(25, 25, 25, 0.22);
    transition: color 0.25s ease, border-color 0.25s ease;
}

.footer-brand a:hover {
    color: var(--mk-accent);
    border-bottom-color: var(--mk-accent);
}

/* Footer üstü boşluğu kıs: tema 100px padding + son bölümün 100px margin'i üst üste biniyordu */
#footer.mk-footer { padding-top: 40px !important; }

/* Son bölümün iç .wrapper'ı 150px alt margin taşıyor ve margin-collapse ile
   dışarı sızıyordu; footer'dan önceki boşluğun asıl sebebi buydu. */
.mk-page #content > .section:last-child { margin-bottom: 40px; }
.mk-page #content > .section:last-child > .wrapper,
.mk-page #content > .section:last-child > .wrapper-full { margin-bottom: 0; }

@media (max-width: 768px) {
    #footer.mk-footer { padding-top: 26px !important; }
    .mk-footer .footer-top-wrapper { padding-top: 20px; padding-bottom: 4px; margin-bottom: 0; }
    .mk-footer .footer-bottom-wrapper { padding-top: 14px; padding-bottom: 14px; }
    .mk-footer .footer-bottom-wrapper .align-right { display: none; }
    .mk-page #content > .section:last-child { margin-bottom: 24px; }
}

#footer.site-footer .menu li { margin: 0 0 10px; }

#footer.site-footer .menu a {
    font-size: 14px;
    color: var(--mk-ink-soft);
    text-decoration: none;
    transition: color 0.25s ease;
}

#footer.site-footer .menu a:hover { color: var(--mk-ink); }

/* ─── Responsive ──────────────────────────────────────────────── */

@media (max-width: 768px) {
    #header.mk-header .header-wrapper {
        padding: 0 18px;
        min-height: 66px;
        gap: 14px;
    }
    #header.mk-header .c-col-1,
    #header.mk-header .c-col-2,
    #header.mk-header .c-col-3,
    #header.mk-header .c-col-4,
    #header.mk-header .c-col-5,
    #header.mk-header .sm-6 {
        width: auto !important;
        max-width: none !important;
        flex: 0 0 auto !important;
    }
    #header.mk-header .c-col-5 { order: 3; margin-left: 0; }
    #header.mk-header .align-right { order: 2; margin-left: auto; }
    #header.mk-header .site-logo img,
    #header.mk-header .sticky-logo img { height: 26px; }
    #header.mk-header .menu-toggle {
        width: 34px !important;
        height: 34px !important;
        margin: 0 !important;
        flex: 0 0 34px !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    #header.mk-header .toggle-lines { width: 28px !important; }

    .mk-cart { padding: 8px 8px 8px 12px; font-size: 12px; }
    .mk-cart .mk-cart-label { display: none; }

    .mk-page-head { padding: 100px 0 14px; }
}

/* ─── İç sayfa marquee başlığı ────────────────────────────────── */

.mk-page-marquee { padding-top: 150px; padding-bottom: 40px; }
.mk-page-marquee .nayla-marquee { opacity: 0.14; }

@media (max-width: 768px) {
    .mk-page-marquee { padding-top: 108px; padding-bottom: 22px; }
}

/* ─── İç sayfa metin blokları ─────────────────────────────────── */

.mk-page .mk-prose p { color: #696969; margin-bottom: 14px; line-height: 1.85; }
.mk-page .mk-prose ul { padding-left: 20px; margin: 0 0 20px; }
.mk-page .mk-prose li { color: #696969; line-height: 1.85; margin-bottom: 8px; }
.mk-page .mk-prose strong { color: var(--mk-ink); font-weight: 600; }
.mk-page .mk-prose a { color: var(--mk-accent); }
.mk-page .mk-prose .text-h5 { margin-top: 46px; margin-bottom: .5em; }
.mk-page .mk-prose .text-h5:first-child { margin-top: 0; }

.mk-callout {
    padding: 22px 24px;
    margin: 26px 0;
    background: var(--secondaryBackground, #ebe9e4);
    border-left: 2px solid var(--mk-accent);
}
.mk-callout p:last-child { margin-bottom: 0; }

/* ─── Temada eksik kalan grid kolonları ───────────────────────── */
/* Nayla .c-col-7 ve .c-col-11 için genişlik tanımlamamış; kolon çöküyordu. */

.c-col-7  { width: 58.333333%; }
.c-col-11 { width: 91.666666%; }

@media only screen and (max-width: 767px) {
    .sm-7  { width: 58.333333%; }
    .sm-11 { width: 91.666666%; }
}

/* ─── nayla-button içinde <button> desteği ────────────────────── */
/* Tema yalnızca .nayla-button a'yı biçimlendiriyor; form gönder butonu
   biçimsiz düz metin olarak kalıyordu. Aynı kuralları button'a da veriyoruz. */

.nayla-button button {
    text-decoration: none;
    color: var(--color);
    display: inline-block;
    position: relative;
    font: inherit;
    line-height: inherit;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

.nayla-button.fill button,
.nayla-button.outline button {
    padding: 1em 1.5em;
    border: 1px solid;
    border-color: var(--color);
    border-radius: 2em;
}

.nayla-button.fill button {
    border: none;
    background: var(--color);
    color: var(--mainBackground);
    padding: 1em 1.75em;
}

.nayla-button.fill.icon-right button,
.nayla-button.outline.icon-right button { padding-right: 2.5em; }

.nayla-button.fill.icon-left button,
.nayla-button.outline.icon-left button { padding-left: 2.5em; }

.nayla-button button:disabled { opacity: .55; cursor: default; }

/* Alt şerit: telif solda, güvenli ödeme sağda; telefonda alt alta ortalı */
.footer-bottom-wrapper.mk-fbar {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 24px;
    padding-top: 18px !important;
    padding-bottom: 18px !important;
    padding-left: 40px !important;   /* üstteki sütunlarla aynı hizada */
    padding-right: 110px !important; /* sağ alttaki WhatsApp düğmesinin altında kalmasın */
}
.mk-fbar > p { margin: 0 !important; width: auto !important; max-width: none; flex: 0 1 auto; float: none !important; }
.mk-fbar > .mk-fbar__pay { margin-left: auto !important; }
.mk-fbar__copy {
    font-size: 12px;
    line-height: 1.5;
    color: rgba(25, 25, 25, 0.5);
}
.mk-fbar__copy a {
    color: var(--mk-accent-ink);
    font-weight: 700;
    text-decoration: none;
}
.mk-fbar__copy a:hover { text-decoration: underline; }
.mk-fbar__sep { margin: 0 8px; opacity: 0.6; }
.mk-fbar__pay {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    line-height: 1;
    color: rgba(25, 25, 25, 0.5);
    white-space: nowrap;
}
.mk-fbar__pay img { height: 13px; width: auto; display: block; }
@media (max-width: 768px) {
    .footer-bottom-wrapper.mk-fbar {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 10px;
        padding-right: 20px !important;
        padding-left: 20px !important;
        padding-bottom: 92px !important; /* WhatsApp düğmesine yer */
    }
    .mk-fbar__sep { display: none; }
    .mk-fbar > .mk-fbar__pay { margin-left: 0 !important; }
    .mk-fbar__copy { max-width: 300px; }
    .mk-fbar__brand { display: block; }
}

/* Çerez bildirimi telefonda ekrandan taşmasın */
#cookie-banner { box-sizing: border-box; flex-wrap: wrap; gap: 10px 16px !important; line-height: 1.4; }
#cookie-banner #cookie-accept { flex: none; }

/* ─── Footer düzeni (grid) ─────────────────────────────────────────
   Tema sütunları yerine ızgara: masaüstünde 5 sütun, tablette marka üstte + 4 sütun,
   telefonda marka üstte + 2×2. Bağlantı aralıkları sıkılaştırıldı. */
.mk-footer .footer-top-wrapper {
    display: grid !important;
    grid-template-columns: minmax(220px, 1.5fr) 1fr 1.25fr 1.2fr 1.3fr;
    column-gap: 40px;
    row-gap: 28px;
    max-width: 1240px;
    margin: 0 auto !important;
    padding: 48px 40px 34px !important;
    box-sizing: border-box;
}
.mk-footer .footer-top-wrapper > div {
    width: auto !important;
    max-width: none !important;
    flex: none !important;
    float: none !important;
    padding: 0 !important;
    margin: 0 !important;
    min-width: 0;
}
.mk-footer .footer-top-wrapper > div:first-child img { margin-bottom: 14px !important; }
.mk-footer .footer-top-wrapper > div:first-child p { margin: 0 !important; max-width: 280px !important; }
.mk-footer .footer-col-title { margin: 4px 0 16px !important; line-height: 1.2; }
#footer.site-footer.mk-footer .menu li,
.mk-footer .menu li {
    margin: 0 0 11px !important;
    padding: 0 !important;
    line-height: 1.4 !important;
    font-size: 14px;
}
.mk-footer .menu li:last-child { margin-bottom: 0 !important; }
.mk-footer .menu li a { line-height: 1.4 !important; display: inline-block; }
.mk-footer .menu li.mk-footer-addr { margin-top: 4px !important; }
.mk-footer .btn-ghost { white-space: nowrap; }

.footer-bottom-wrapper.mk-fbar {
    max-width: 1240px;
    margin: 0 auto !important;
    box-sizing: border-box;
    border-top: 1px solid var(--mk-border);
}
#footer.mk-footer { border-top: 1px solid var(--mk-border); }
.mk-footer .footer-bottom-wrapper.mk-fbar { border-top: 1px solid var(--mk-border); }

@media (max-width: 1100px) {
    .mk-footer .footer-top-wrapper {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        column-gap: 28px;
    }
    .mk-footer .footer-top-wrapper > div:first-child {
        grid-column: 1 / -1;
        display: flex !important;
        align-items: center;
        gap: 24px;
        padding-bottom: 22px !important;
        border-bottom: 1px solid var(--mk-border);
    }
    .mk-footer .footer-top-wrapper > div:first-child img { margin-bottom: 0 !important; }
}
@media (max-width: 640px) {
    .mk-footer .footer-top-wrapper {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 20px;
        row-gap: 30px;
        padding: 30px 22px 26px !important;
    }
    .mk-footer .footer-top-wrapper > div:first-child {
        display: block !important;
        padding-bottom: 20px !important;
    }
    .mk-footer .footer-top-wrapper > div:first-child img { margin-bottom: 12px !important; }
    .mk-footer .btn-ghost { padding-left: 14px !important; padding-right: 14px !important; }
}
#footer.mk-footer { padding-top: 0 !important; }

@media (max-width: 760px) {
    #cookie-banner { font-size: 12px !important; padding: 9px 14px !important; gap: 8px 12px !important; flex-wrap: nowrap !important; text-align: left !important; }
    #cookie-banner #cookie-accept { padding: 7px 12px !important; font-size: 12px !important; white-space: nowrap; }
}
