/**
 * Mendeva — herkese açık site (index.php, urun.php)
 * ------------------------------------------------------------------
 * Yön: botanik apotek / editorial. Koyu orman yeşili + krem kâğıt +
 * pirinç vurgu. Ürün fotoğrafı olmadığı için ürün kartları "apotek
 * etiketi" olarak tipografik kurgulandı.
 *
 * Üye paneli (dashboard.css / app.css) ayrı bir kimliktir; bu dosya
 * yalnızca vitrin sayfalarında yüklenir.
 */

/* ==================== TOKEN ==================== */
:root {
    --ink:       #14201A;
    --moss:      #1C2E24;
    --pine:      #2E4A3A;
    --sage:      #8AA391;
    --sage-dim:  rgba(138, 163, 145, 0.62);

    --brass:     #C9A24B;
    --brass-dk:  #A8843A;
    --clay:      #B5623C;

    --paper:     #FFFDF8;
    --bone:      #FAF7F0;
    --cream:     #F1EBDD;
    --rule:      rgba(20, 32, 26, 0.13);
    --rule-lt:   rgba(242, 237, 225, 0.16);

    --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
    --sans:  "Jost", "Segoe UI", system-ui, sans-serif;

    --wrap: 1240px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==================== TEMEL ==================== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bone);
    color: var(--ink);
    font-family: var(--sans);
    font-weight: 400;
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Kâğıt dokusu — tüm sayfanın üzerinde ince bir grain */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.4;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
}

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

a { color: inherit; }

h1, h2, h3, h4 {
    font-family: var(--serif);
    font-weight: 400;
    font-variation-settings: "SOFT" 30, "WONK" 1;
    line-height: 1.08;
    letter-spacing: -0.015em;
    margin: 0;
}

p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }

/* Bölüm etiketi: küçük, harf aralıklı, pirinç çizgili */
.eyebrow {
    font-size: 11px;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--brass-dk);
    display: inline-flex;
    align-items: center;
    gap: 12px;
}
.eyebrow::before {
    content: "";
    width: 28px;
    height: 1px;
    background: var(--brass);
}
.on-dark .eyebrow, .eyebrow.light { color: var(--brass); }

/* ==================== NAV ==================== */
.nav {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(20, 32, 26, 0.94);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--rule-lt);
    color: var(--cream);
}
.nav-in {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 32px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}
.logo { text-decoration: none; display: flex; flex-direction: column; line-height: 1; flex-shrink: 0; }
.logo b {
    font-family: var(--serif);
    font-size: 25px;
    font-weight: 500;
    letter-spacing: 0.18em;
    font-variation-settings: "WONK" 1;
}
.logo span {
    font-size: 8.5px;
    letter-spacing: 0.42em;
    color: var(--brass);
    margin-top: 5px;
    padding-left: 3px;
}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 0.04em;
    color: var(--sage);
    position: relative;
    padding: 4px 0;
    transition: color 0.3s var(--ease);
}
.nav-links a::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 100%; height: 1px;
    background: var(--brass);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s var(--ease);
}
.nav-links a:hover { color: var(--cream); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-cta {
    border: 1px solid var(--brass);
    color: var(--brass) !important;
    padding: 9px 20px !important;
    border-radius: 2px;
    font-size: 12.5px !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase;
    transition: background 0.35s var(--ease), color 0.35s var(--ease);
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--brass); color: var(--ink) !important; }

.nav-toggle { display: none; background: none; border: 0; color: var(--cream); font-size: 20px; cursor: pointer; padding: 8px; }

/* ==================== BUTON ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--sans);
    font-size: 13px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 500;
    text-decoration: none;
    padding: 16px 32px;
    border: 1px solid transparent;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.4s var(--ease);
}
.btn i { font-size: 11px; transition: transform 0.4s var(--ease); }
.btn:hover i { transform: translateX(4px); }

.btn-brass { background: var(--brass); color: var(--ink); }
.btn-brass:hover { background: var(--cream); }

.btn-ghost { border-color: var(--sage-dim); color: var(--cream); }
.btn-ghost:hover { border-color: var(--brass); color: var(--brass); }

.btn-ink { background: var(--ink); color: var(--cream); }
.btn-ink:hover { background: var(--pine); }

.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--cream); }

/* ==================== HERO ==================== */
.hero {
    background: var(--ink);
    color: var(--cream);
    position: relative;
    overflow: hidden;
    padding: 132px 0 118px;
}
/* Yumuşak ışık havuzu + botanik çizgi motifi */
.hero::before {
    content: "";
    position: absolute;
    top: -30%; right: -12%;
    width: 780px; height: 780px;
    background: radial-gradient(circle, rgba(201, 162, 75, 0.13) 0%, transparent 62%);
    pointer-events: none;
}
.hero-in {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 32px;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 72px;
    align-items: center;
    position: relative;
    z-index: 2;
}
.hero h1 {
    font-size: clamp(3.1rem, 7.4vw, 6.4rem);
    margin: 26px 0 0;
    color: var(--cream);
    font-variation-settings: "SOFT" 40, "WONK" 1;
}
.hero h1 em {
    font-style: italic;
    color: var(--brass);
    font-variation-settings: "SOFT" 60, "WONK" 1;
}
.hero-lead {
    margin-top: 30px;
    max-width: 46ch;
    color: var(--sage);
    font-size: 1.06rem;
    font-weight: 300;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 40px; }

/* Sağdaki botanik kart */
.hero-mark {
    border: 1px solid var(--rule-lt);
    border-radius: 3px;
    padding: 40px 36px;
    background: linear-gradient(150deg, rgba(46, 74, 58, 0.5), transparent);
    position: relative;
}
.hero-mark svg { width: 100%; height: auto; display: block; opacity: 0.9; }
.hero-mark figcaption {
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid var(--rule-lt);
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--sage-dim);
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

/* Sayaç şeridi */
.hero-stats {
    border-top: 1px solid var(--rule-lt);
    margin-top: 96px;
    padding-top: 34px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 2;
}
.hero-stats > div { display: flex; flex-direction: column; gap: 4px; }
.hero-stats b {
    font-family: var(--serif);
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--brass);
    line-height: 1;
    font-variation-settings: "WONK" 1;
}
.hero-stats span {
    font-size: 11.5px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--sage-dim);
}

/* ==================== BÖLÜM ==================== */
.section { padding: 118px 0; }
.section.tint { background: var(--cream); }
.section.on-dark { background: var(--moss); color: var(--cream); }
.section.on-dark h2 { color: var(--cream); }

.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 58px; }
.sec-head h2 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); max-width: 15ch; margin-top: 18px; }
.sec-head p { max-width: 42ch; color: rgba(20, 32, 26, 0.62); margin: 0; font-weight: 300; }
.on-dark .sec-head p { color: var(--sage); }

/* ==================== SERİLER ==================== */
.series { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.serie {
    background: var(--bone);
    padding: 38px 28px 34px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    transition: background 0.45s var(--ease);
}
.serie::before {
    content: "";
    position: absolute;
    left: 0; top: 0;
    width: 100%; height: 2px;
    background: var(--brass);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s var(--ease);
}
.serie:hover { background: var(--paper); }
.serie:hover::before { transform: scaleX(1); }
.serie .glyph { font-size: 26px; line-height: 1; }
.serie h3 { font-size: 1.32rem; }
.serie small { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass-dk); margin-top: auto; }

/* ==================== ÜRÜN KARTI (apotek etiketi) ==================== */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(238px, 1fr)); gap: 24px; }

.card {
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 2px;
    padding: 26px 24px 22px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    min-height: 268px;
    position: relative;
    transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s var(--ease);
}
/* Etiket hissi: iç çerçeve */
.card::before {
    content: "";
    position: absolute;
    inset: 7px;
    border: 1px solid var(--rule);
    border-radius: 1px;
    pointer-events: none;
    opacity: 0.55;
    transition: border-color 0.5s var(--ease), opacity 0.5s var(--ease);
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px -22px rgba(20, 32, 26, 0.5);
    border-color: rgba(20, 32, 26, 0.28);
}
.card:hover::before { border-color: var(--brass); opacity: 1; }

.card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; position: relative; }
.card-glyph { font-size: 19px; line-height: 1; }
.card-cat { font-size: 9.5px; letter-spacing: 0.19em; text-transform: uppercase; color: var(--brass-dk); text-align: right; }

.card h3 {
    font-size: 1.28rem;
    margin: 24px 0 0;
    position: relative;
    flex: 1;
    display: flex;
    align-items: flex-start;
}

.card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid var(--rule);
    position: relative;
}
.cp {
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink);
    border: 1px solid var(--rule);
    padding: 4px 10px;
    border-radius: 999px;
}
.card-more {
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--brass-dk);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: gap 0.4s var(--ease);
}
.card:hover .card-more { gap: 12px; }

/* Kategori filtresi */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 40px; }
.filter {
    background: none;
    border: 1px solid var(--rule);
    border-radius: 999px;
    padding: 9px 20px;
    font-family: var(--sans);
    font-size: 12.5px;
    letter-spacing: 0.1em;
    color: rgba(20, 32, 26, 0.66);
    cursor: pointer;
    transition: all 0.35s var(--ease);
}
.filter:hover { border-color: var(--ink); color: var(--ink); }
.filter.on { background: var(--ink); border-color: var(--ink); color: var(--cream); }

/* ==================== EDITORIAL / NEDEN ==================== */
.notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1px; background: var(--rule-lt); border-top: 1px solid var(--rule-lt); }
.note { background: var(--moss); padding: 40px 32px 44px; display: flex; flex-direction: column; gap: 14px; }
.note b {
    font-family: var(--serif);
    font-size: 2.6rem;
    font-weight: 300;
    color: var(--brass);
    line-height: 1;
    font-variation-settings: "WONK" 1;
}
.note h3 { font-size: 1.24rem; color: var(--cream); }
.note p { color: var(--sage); font-size: 0.95rem; font-weight: 300; margin: 0; }

/* Alıntı bandı */
.quote { background: var(--ink); color: var(--cream); text-align: center; padding: 92px 0; position: relative; }
.quote blockquote {
    margin: 0 auto;
    max-width: 22ch;
    font-family: var(--serif);
    font-size: clamp(1.9rem, 4.4vw, 3.1rem);
    line-height: 1.18;
    font-style: italic;
    font-variation-settings: "SOFT" 60, "WONK" 1;
}
.quote cite {
    display: block;
    margin-top: 30px;
    font-family: var(--sans);
    font-style: normal;
    font-size: 11.5px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--brass);
}

/* Bayilik bandı */
.invite { background: var(--cream); }
.invite-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 68px; align-items: center; }
.invite h2 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); margin: 18px 0 22px; }
.invite p { color: rgba(20, 32, 26, 0.66); max-width: 46ch; font-weight: 300; }
.invite-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.invite-list li {
    padding: 18px 0;
    border-bottom: 1px solid var(--rule);
    display: flex;
    align-items: baseline;
    gap: 18px;
    font-size: 0.97rem;
}
.invite-list b { font-family: var(--serif); color: var(--brass-dk); font-size: 1.05rem; min-width: 2ch; }

/* ==================== ÜRÜN DETAY ==================== */
.crumb { font-size: 12px; letter-spacing: 0.13em; text-transform: uppercase; color: rgba(242, 237, 225, 0.55); padding: 26px 0 0; }
.crumb a { text-decoration: none; transition: color 0.3s var(--ease); }
.crumb a:hover { color: var(--brass); }
.crumb span { margin: 0 10px; opacity: 0.45; }

.detail-hero { background: var(--ink); color: var(--cream); padding-bottom: 92px; }
.detail-in { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 72px; align-items: center; margin-top: 60px; }
.detail-in h1 { font-size: clamp(2.5rem, 5.6vw, 4.4rem); color: var(--cream); margin: 22px 0 0; }
.detail-meta { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--rule-lt); }
.detail-meta div { display: flex; flex-direction: column; gap: 5px; }
.detail-meta dt { font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--sage-dim); }
.detail-meta dd { margin: 0; font-family: var(--serif); font-size: 1.35rem; color: var(--brass); }
.detail-btns { display: flex; gap: 13px; flex-wrap: wrap; margin-top: 38px; }
.detail-note { margin-top: 20px; font-size: 12.5px; color: var(--sage-dim); }

/* Etiket görseli (fotoğraf yerine) */
.label-art {
    border: 1px solid var(--rule-lt);
    background: linear-gradient(160deg, rgba(46, 74, 58, 0.55), transparent);
    padding: 54px 44px;
    text-align: center;
    position: relative;
}
.label-art::before { content: ""; position: absolute; inset: 11px; border: 1px solid var(--rule-lt); pointer-events: none; }
.label-art .glyph { font-size: 54px; line-height: 1; }
.label-art .nm { font-family: var(--serif); font-size: 1.75rem; margin-top: 24px; font-variation-settings: "WONK" 1; }
.label-art .rule { width: 46px; height: 1px; background: var(--brass); margin: 22px auto; }
.label-art .ct { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--sage); }

/* İçerik gövdesi */
.prose { max-width: 68ch; }
.prose h2 { font-size: 1.75rem; margin: 44px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: rgba(20, 32, 26, 0.76); }
.prose ul { padding-left: 0; list-style: none; margin: 0 0 1.2em; }
.prose li { padding: 9px 0 9px 26px; position: relative; color: rgba(20, 32, 26, 0.76); border-bottom: 1px solid var(--rule); }
.prose li::before { content: ""; position: absolute; left: 4px; top: 20px; width: 8px; height: 1px; background: var(--brass); }

.callout {
    border-left: 2px solid var(--brass);
    background: var(--cream);
    padding: 22px 26px;
    margin: 38px 0 0;
    font-size: 0.93rem;
    color: rgba(20, 32, 26, 0.72);
}
.callout b { font-family: var(--serif); display: block; margin-bottom: 5px; color: var(--ink); font-size: 1.02rem; }

/* Güven rozetleri */
.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.trust div { background: var(--bone); padding: 30px 26px; display: flex; flex-direction: column; gap: 8px; }
.trust i { color: var(--brass-dk); font-size: 17px; }
.trust b { font-family: var(--serif); font-size: 1.1rem; font-weight: 400; }
.trust span { font-size: 0.87rem; color: rgba(20, 32, 26, 0.6); }

/* ==================== FOOTER ==================== */
.foot { background: var(--ink); color: var(--sage); padding: 78px 0 34px; font-size: 0.9rem; }
.foot-in { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(140px, 1fr)); gap: 48px; }
.foot h4 { font-family: var(--sans); font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--brass); margin: 0 0 18px; font-weight: 500; }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.foot a { text-decoration: none; transition: color 0.3s var(--ease); }
.foot a:hover { color: var(--cream); }
.foot .logo { margin-bottom: 18px; color: var(--cream); }
.foot-bar {
    margin-top: 58px;
    padding-top: 26px;
    border-top: 1px solid var(--rule-lt);
    display: flex;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--sage-dim);
}

/* ==================== GİRİŞ ANİMASYONU ==================== */
@media (prefers-reduced-motion: no-preference) {
    .rise { opacity: 0; transform: translateY(22px); animation: rise 0.95s var(--ease) forwards; }
    .rise:nth-child(2) { animation-delay: 0.07s; }
    .rise:nth-child(3) { animation-delay: 0.14s; }
    .rise:nth-child(4) { animation-delay: 0.21s; }
    @keyframes rise { to { opacity: 1; transform: none; } }

    .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
    .reveal.in { opacity: 1; transform: none; }
}

/* ==================== DUYARLI ==================== */
@media (max-width: 980px) {
    .hero-in, .detail-in, .invite-in { grid-template-columns: 1fr; gap: 46px; }
    .hero { padding: 90px 0 78px; }
    .hero-mark, .label-art { order: -1; }
    .section { padding: 78px 0; }
    .hero-stats { margin-top: 60px; }
}
@media (max-width: 760px) {
    body { font-size: 16px; }
    .wrap, .nav-in, .hero-in { padding-left: 22px; padding-right: 22px; }
    .nav-links { display: none; }
    .nav-links.open {
        display: flex;
        position: absolute;
        top: 72px; left: 0; right: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        background: var(--ink);
        padding: 22px;
        border-bottom: 1px solid var(--rule-lt);
    }
    .nav-links.open a { padding: 10px 0; font-size: 15px; }
    .nav-toggle { display: block; }
    .sec-head { margin-bottom: 40px; }
    .foot-in { grid-template-columns: 1fr 1fr; gap: 34px; }
}

