/* plderma — özgün dermakozmetik tema (build gerektirmez, saf CSS).
   Palet: Porselen / Mürekkep / Adaçayı / Blush / Çizgi. */

:root {
    /* Renkler */
    --porcelain: #FBFAF8;
    --ink:       #1F2421;
    --sage:      #6B7F6E;
    --sage-dark: #55684F;
    --blush:     #E8D5CF;
    --blush-soft:#F3E7E2;
    --line:      #E5E2DC;
    --muted:     #8A8B84;
    --ok:        #2f7a4d;
    --warn:      #b0483a;

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

    /* Ölçek */
    --space-1: .25rem; --space-2: .5rem; --space-3: .75rem; --space-4: 1rem;
    --space-5: 1.5rem; --space-6: 2rem; --space-7: 3rem; --space-8: 4.5rem;
    --radius: 14px; --radius-sm: 9px; --radius-pill: 999px;
    --shadow: 0 6px 24px rgba(31,36,33,.06);
    --shadow-lg: 0 14px 44px rgba(31,36,33,.10);
    --container: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--porcelain);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0 0 var(--space-4); letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 var(--space-4); }
a { color: var(--sage-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* Erişilebilirlik: net focus */
:focus-visible { outline: 3px solid var(--sage); outline-offset: 2px; border-radius: 4px; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { left: 0; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--space-5); }

/* --- Butonlar --- */
.btn { display: inline-flex; align-items: center; gap: .5rem; justify-content: center;
    font-weight: 600; font-size: .95rem; padding: .75rem 1.6rem; border-radius: var(--radius-pill);
    border: 1px solid transparent; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s;
    text-decoration: none; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--sage); color: #fff; }
.btn-primary:hover { background: var(--sage-dark); box-shadow: var(--shadow); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-block { width: 100%; }
.btn-sm { padding: .5rem 1.1rem; font-size: .85rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

/* --- Header --- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(251,250,248,.92);
    backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: var(--space-5); padding: var(--space-4) var(--space-5); max-width: var(--container); margin: 0 auto; }
.logo { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; letter-spacing: -.02em; color: var(--ink); }
.logo:hover { text-decoration: none; }
.logo span { color: var(--sage); }
.main-nav { display: flex; gap: var(--space-5); margin-left: var(--space-2); flex: 1; }
.main-nav a { color: var(--ink); font-size: .95rem; font-weight: 500; padding: .35rem 0; border-bottom: 2px solid transparent; }
.main-nav a:hover { color: var(--sage-dark); border-color: var(--blush); text-decoration: none; }
.header-actions { display: flex; align-items: center; gap: var(--space-4); margin-left: auto; }
.header-actions a { color: var(--ink); font-size: .9rem; display: inline-flex; align-items: center; gap: .3rem; }
.header-search { display: flex; align-items: center; background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius-pill); padding: .35rem .35rem .35rem .9rem; }
.header-search input { border: 0; background: transparent; font-size: .9rem; outline: none; width: 160px; font-family: inherit; }
.cart-badge { background: var(--sage); color: #fff; border-radius: var(--radius-pill); font-size: .7rem;
    padding: .05rem .4rem; min-width: 1.1rem; text-align: center; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.5rem; cursor: pointer; }

/* --- Footer --- */
.site-footer { background: var(--ink); color: #cfd3cd; margin-top: var(--space-8); padding: var(--space-7) 0 var(--space-5); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: var(--space-6); }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: var(--space-4); }
.site-footer a { color: #cfd3cd; font-size: .9rem; display: block; margin-bottom: .5rem; }
.site-footer a:hover { color: #fff; }
.footer-brand .logo { color: #fff; }
.footer-brand p { font-size: .9rem; max-width: 32ch; }
.newsletter input { width: 100%; padding: .7rem .9rem; border-radius: var(--radius-sm); border: 1px solid #3a3f3a; background: #2a2f2a; color: #fff; font-family: inherit; margin-bottom: .6rem; }
.footer-bottom { border-top: 1px solid #333833; margin-top: var(--space-6); padding-top: var(--space-4); display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-3); font-size: .8rem; color: var(--muted); }

/* --- Kartlar --- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--space-5); }
.product-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
    display: flex; flex-direction: column; transition: transform .18s, box-shadow .18s; }
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.product-card .media { aspect-ratio: 1/1; background: var(--blush-soft); overflow: hidden; }
.product-card .media img { width: 100%; height: 100%; object-fit: cover; }
.product-card .body { padding: var(--space-4); display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.product-card .brand { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.product-card .name { font-weight: 600; font-size: .98rem; color: var(--ink); }
.product-card .name a:hover { text-decoration: none; color: var(--sage-dark); }
.product-card .price { font-family: var(--font-display); font-size: 1.15rem; margin-top: auto; }
.product-card .tag-row { display: flex; gap: .3rem; flex-wrap: wrap; }
.chip { font-size: .68rem; padding: .12rem .55rem; border-radius: var(--radius-pill); background: var(--blush-soft); color: var(--sage-dark); border: 1px solid var(--blush); }

/* --- Bölümler --- */
.section { padding: var(--space-7) 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: var(--space-5); gap: var(--space-4); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; color: var(--sage); font-weight: 600; margin-bottom: .5rem; }

/* --- Flash / uyarı --- */
.flash { padding: .8rem 1.1rem; border-radius: var(--radius-sm); margin: var(--space-4) 0; font-size: .92rem; }
.flash-ok { background: #e7f2ec; color: var(--ok); border: 1px solid var(--ok); }
.flash-warn { background: #fbeae7; color: var(--warn); border: 1px solid var(--warn); }
.disclaimer { background: var(--blush-soft); border: 1px solid var(--blush); border-radius: var(--radius-sm); padding: .8rem 1rem; font-size: .85rem; color: var(--sage-dark); }

/* --- Form --- */
.field { margin-bottom: var(--space-4); }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .3rem; }
.field input, .field select, .field textarea { width: 100%; padding: .7rem .85rem; border: 1px solid var(--line);
    border-radius: var(--radius-sm); font-family: inherit; font-size: .95rem; background: #fff; }
.field-error { color: var(--warn); font-size: .8rem; margin-top: .25rem; }

/* --- Ürün detay --- */
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-7); align-items: start; }
.gallery .main-img { aspect-ratio: 1/1; background: var(--blush-soft); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.gallery .main-img img { width: 100%; height: 100%; object-fit: cover; }
.gallery .thumbs { display: flex; gap: .5rem; margin-top: .6rem; flex-wrap: wrap; }
.gallery .thumbs img { width: 68px; height: 68px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--line); cursor: pointer; background: var(--blush-soft); }
.gallery .thumbs img.active { border-color: var(--sage); outline: 2px solid var(--sage); }
.pdp .brand-line { text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-size: .8rem; }
.pdp .price-lg { font-family: var(--font-display); font-size: 2rem; margin: var(--space-3) 0; }
.pdp .stock-ok { color: var(--ok); font-size: .85rem; }
.pdp .stock-no { color: var(--warn); font-size: .85rem; }
.buy-row { display: flex; gap: .6rem; align-items: center; margin: var(--space-4) 0; flex-wrap: wrap; }
.qty { width: 72px; padding: .6rem; border: 1px solid var(--line); border-radius: var(--radius-sm); font-family: inherit; }
.spec-list { list-style: none; padding: 0; margin: 0; }
.spec-list li { display: flex; gap: .5rem; padding: .5rem 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.spec-list li strong { min-width: 130px; color: var(--sage-dark); font-weight: 600; }
.pdp-tabs { margin-top: var(--space-6); }
.pill-list { display: flex; gap: .4rem; flex-wrap: wrap; }
@media (max-width: 820px) { .pdp { grid-template-columns: 1fr; gap: var(--space-5); } }

/* --- Sayfalama --- */
.pager { display: flex; gap: .35rem; justify-content: center; margin-top: var(--space-6); flex-wrap: wrap; }
.pager a, .pager span { min-width: 2.2rem; text-align: center; padding: .45rem .7rem; border: 1px solid var(--line);
    border-radius: var(--radius-sm); background: #fff; color: var(--ink); font-size: .9rem; text-decoration: none; }
.pager a:hover { border-color: var(--sage); text-decoration: none; }
.pager span[aria-current] { background: var(--sage); color: #fff; border-color: var(--sage); }
.pager span[aria-disabled] { opacity: .4; }

/* --- Mağaza düzeni --- */
.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: var(--space-6); align-items: start; }
.filters { position: sticky; top: 90px; }
.filters .filter-group { border-bottom: 1px solid var(--line); padding: var(--space-4) 0; }
.filters h3 { font-family: var(--font-body); font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: var(--space-3); }
.filters label { display: flex; align-items: center; gap: .5rem; font-size: .9rem; margin-bottom: .4rem; cursor: pointer; }
.filters a.opt { display: block; font-size: .9rem; margin-bottom: .35rem; color: var(--ink); }
.filters a.opt.active { color: var(--sage-dark); font-weight: 600; }
.shop-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-5); gap: var(--space-4); flex-wrap: wrap; }
.shop-head select { padding: .5rem .8rem; border: 1px solid var(--line); border-radius: var(--radius-sm); font-family: inherit; background: #fff; }
@media (max-width: 820px) { .shop-layout { grid-template-columns: 1fr; } .filters { position: static; } }

/* --- Responsive --- */
@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .main-nav, .header-search { display: none; }
    .nav-toggle { display: block; }
    .main-nav.open { display: flex; position: absolute; top: 100%; left: 0; right: 0; background: var(--porcelain);
        flex-direction: column; padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--line); gap: var(--space-3); }
}
@media (max-width: 560px) {
    .footer-grid { grid-template-columns: 1fr; }
    .header-actions .label { display: none; }
}
