/* ================================================================
   ZAF CANDLE — Ana Stil
   Tema değişkenleri (light/dark) · elegant, sıcak, performanslı
   Harici font YOK (hız): sistem gövde + serif başlık yığını.
   ================================================================ */

/* ---------- Tema Değişkenleri ---------- */
:root {
  --brand:        #b8763e;   /* bronz/amber */
  --brand-dark:   #96602f;
  --brand-soft:   #e9d9c6;
  --accent:       #c85c4a;   /* çilek/kiremit vurgu */

  --bg:           #faf7f2;
  --bg-alt:       #f2ece2;
  --surface:      #ffffff;
  --text:         #2c2620;
  --text-soft:    #6b6055;
  --border:       #e7ddce;
  --shadow:       0 8px 30px rgba(76, 56, 32, .10);
  --shadow-sm:    0 2px 10px rgba(76, 56, 32, .08);

  --radius:       14px;
  --radius-sm:    9px;
  --radius-lg:    22px;
  --container:    1180px;
  --gap:          clamp(16px, 3vw, 28px);

  --serif: Georgia, "Times New Roman", "Playfair Display", serif;
  --sans:  system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --header-h: 68px;
}

:root[data-theme="dark"] {
  --brand:        #d69457;
  --brand-dark:   #b8763e;
  --brand-soft:   #3a2f24;
  --accent:       #e0796a;

  --bg:           #17130f;
  --bg-alt:       #1e1813;
  --surface:      #221b15;
  --text:         #f2ebe1;
  --text-soft:    #b6a893;
  --border:       #352b21;
  --shadow:       0 10px 34px rgba(0, 0, 0, .45);
  --shadow-sm:    0 2px 12px rgba(0, 0, 0, .35);
}

/* ---------- Reset / Temel ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background .3s ease, color .3s ease;
}
img, picture, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.2; letter-spacing: .2px; }
ul { list-style: none; padding: 0; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }
.section { padding-block: clamp(48px, 7vw, 88px); }
.muted { color: var(--text-soft); }
.center { text-align: center; }
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Marka ---------- */
.brand { display: inline-flex; align-items: baseline; gap: 6px; font-family: var(--serif); }
.brand-mark { font-weight: 700; font-size: 1.35rem; letter-spacing: 2px; color: var(--brand); }
.brand-text { font-weight: 600; font-size: 1.05rem; letter-spacing: 4px; color: var(--text); }
.brand--footer .brand-mark { font-size: 1.5rem; }

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; letter-spacing: .3px;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  will-change: transform;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(184,118,62,.35); }
.btn--primary:hover { background: var(--brand-dark); }
.btn--outline { border: 1.5px solid var(--brand); color: var(--brand); }
.btn--outline:hover { background: var(--brand); color: #fff; }
.btn--ghost { background: var(--bg-alt); color: var(--text); }
.btn--ghost:hover { background: var(--border); }
.btn--lg { padding: 15px 30px; font-size: 1.02rem; }
.btn--sm { padding: 9px 16px; font-size: .9rem; }
.btn--block { display: flex; width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 20px; }
.primary-nav { display: flex; align-items: center; gap: 28px; }
.nav-list { display: flex; align-items: center; gap: 22px; }
.nav-list > li > a, .dropdown-toggle {
  position: relative; padding: 6px 0; font-weight: 500; color: var(--text);
}
.nav-list > li > a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--brand); transition: width .25s ease;
}
.nav-list > li > a:hover::after { width: 100%; }

.has-dropdown { position: relative; }
.dropdown-toggle { display: inline-flex; align-items: center; gap: 4px; }
.caret { font-size: .7em; }
.dropdown {
  position: absolute; top: 100%; left: 0; min-width: 200px; padding: 8px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: .2s ease;
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 9px 12px; border-radius: 7px; }
.dropdown a:hover { background: var(--bg-alt); color: var(--brand); }

.nav-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.lang-item { padding: 5px 11px; font-size: .82rem; font-weight: 600; color: var(--text-soft); }
.lang-item.is-active { background: var(--brand); color: #fff; }

.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; color: var(--text); transition: background .2s; }
.icon-btn:hover { background: var(--bg-alt); }
.cart-count {
  position: absolute; top: 2px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700; line-height: 18px;
  text-align: center; border-radius: 999px;
}
.theme-toggle .i-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: block; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 42px; height: 42px; align-items: center; justify-content: center; }
.nav-toggle span { width: 22px; height: 2px; background: var(--text); transition: .25s; border-radius: 2px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 500px at 80% -10%, color-mix(in srgb, var(--brand) 22%, transparent), transparent),
    linear-gradient(180deg, var(--bg-alt), var(--bg));
  padding-block: clamp(60px, 9vw, 130px);
}
.hero-content { max-width: 620px; }
.hero-badge {
  display: inline-block; padding: 7px 16px; margin-bottom: 22px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); font-size: .82rem; letter-spacing: 1px;
  text-transform: uppercase; color: var(--brand-dark);
}
.hero-title { font-size: clamp(2.3rem, 6vw, 4.1rem); margin-bottom: 20px; }
.hero-subtitle { font-size: clamp(1.02rem, 2vw, 1.2rem); color: var(--text-soft); max-width: 520px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Slayt (Carousel) ---------- */
.slider { padding-top: clamp(24px, 4vw, 44px); }
.slider__frame {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--bg-alt); box-shadow: var(--shadow); border: 1px solid var(--border);
}
.slider__track { position: relative; height: clamp(340px, 46vw, 520px); }
.slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity .6s ease; display: grid; grid-template-columns: 1fr;
}
.slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.slide__media { position: absolute; inset: 0; display: block; }
.slide__media img { width: 100%; height: 100%; object-fit: cover; }
/* Okunabilirlik için yumuşak gradyan katman */
.slide::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(20,14,8,.72) 0%, rgba(20,14,8,.38) 42%, rgba(20,14,8,0) 72%);
}
.slide__caption {
  position: relative; z-index: 2; align-self: center; justify-self: start;
  max-width: min(500px, 82%); margin: 0 clamp(20px, 5vw, 60px); color: #fff;
  animation: slideIn .6s ease both;
}
@keyframes slideIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.slide__tag {
  display: inline-block; padding: 5px 14px; border-radius: 999px; margin-bottom: 14px;
  background: var(--brand); color: #fff; font-size: .74rem; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
}
.slide__title { font-size: clamp(1.7rem, 4.2vw, 3rem); color: #fff; margin-bottom: 12px; line-height: 1.1; }
.slide__desc { font-size: clamp(.95rem, 1.6vw, 1.1rem); color: rgba(255,255,255,.9); margin-bottom: 22px; }
.slide__foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.slide__price { font-family: var(--serif); font-size: 1.6rem; font-weight: 700; color: #fff; }

.slider__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: color-mix(in srgb, var(--surface) 88%, transparent); color: var(--text);
  font-size: 1.7rem; line-height: 1; box-shadow: var(--shadow-sm);
  backdrop-filter: blur(6px); transition: background .2s, transform .2s; opacity: 0;
}
.slider__frame:hover .slider__arrow, .slider__arrow:focus-visible { opacity: 1; }
.slider__arrow:hover { background: var(--brand); color: #fff; }
.slider__arrow--prev { left: 14px; }
.slider__arrow--next { right: 14px; }

.slider__dots { position: absolute; z-index: 3; left: 0; right: 0; bottom: 16px; display: flex; justify-content: center; gap: 8px; }
.slider__dot { width: 9px; height: 9px; border-radius: 999px; background: rgba(255,255,255,.55); transition: width .25s, background .25s; }
.slider__dot.is-active { width: 26px; background: #fff; }

@media (max-width: 640px) {
  .slide::after { background: linear-gradient(0deg, rgba(20,14,8,.82) 0%, rgba(20,14,8,.28) 55%, rgba(20,14,8,0) 100%); }
  .slide__caption { align-self: end; justify-self: stretch; max-width: none; margin: 0 20px 46px; }
  .slider__arrow { opacity: 1; width: 40px; height: 40px; }
}

/* ---------- Özellik şeridi ---------- */
.features { background: var(--surface); border-block: 1px solid var(--border); }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); padding-block: 34px; }
.feature { display: flex; gap: 14px; align-items: flex-start; }
.feature-icon { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--brand-soft); color: var(--brand-dark); font-size: 1.2rem; }
.feature h3 { font-size: 1rem; font-family: var(--sans); font-weight: 700; }
.feature p { font-size: .9rem; color: var(--text-soft); }

/* ---------- Bölüm başlıkları ---------- */
.section-head { text-align: center; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
.section-head p { color: var(--text-soft); margin-top: 8px; }
.section-cta { text-align: center; margin-top: 40px; }

/* ---------- Kategori ---------- */
.category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--gap); }
.category-card {
  display: grid; place-items: center; min-height: 130px; padding: 24px; text-align: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  font-family: var(--serif); font-size: 1.2rem; font-weight: 600;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand); color: var(--brand-dark); }

/* ---------- Ürün Izgara & Kart ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--gap); }
.product-card {
  display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product-card__media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--bg-alt); }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card:hover .product-card__media img { transform: scale(1.06); }
.badge { position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .5px; z-index: 2; }
.badge--sale { background: var(--accent); color: #fff; }
.product-card__body { display: flex; flex-direction: column; gap: 10px; padding: 16px; }
.product-card__title { font-size: 1.08rem; }
.product-card__title a:hover { color: var(--brand); }
.product-card__price { display: flex; align-items: baseline; gap: 10px; }
.price { font-weight: 700; color: var(--text); }
.price--old { color: var(--text-soft); text-decoration: line-through; font-weight: 500; font-size: .9em; }
.price--lg { font-size: 1.7rem; color: var(--brand-dark); }
.product-card .add-to-cart { margin-top: auto; }

/* ---------- Mağaza filtre ---------- */
.page-head { margin-bottom: 26px; }
.page-head h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.page-head.center { text-align: center; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.chip { padding: 8px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: .9rem; font-weight: 500; transition: .2s; }
.chip:hover { border-color: var(--brand); color: var(--brand-dark); }
.chip.is-active { background: var(--brand); color: #fff; border-color: var(--brand); }
.empty-state { text-align: center; padding: 60px 20px; display: grid; gap: 18px; place-items: center; }

/* ---------- Ürün Detay ---------- */
.breadcrumbs { display: flex; gap: 8px; align-items: center; padding-top: 22px; font-size: .88rem; color: var(--text-soft); }
.breadcrumbs a:hover { color: var(--brand); }
.product-detail__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 60px); align-items: start; }
.gallery__main { border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-alt); aspect-ratio: 1/1; }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs { display: flex; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.thumb { width: 72px; height: 72px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.is-active { border-color: var(--brand); }

.product-info__title { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 14px; }
.product-info__price { display: flex; align-items: baseline; gap: 14px; margin-bottom: 16px; }
.product-info__short { color: var(--text-soft); margin-bottom: 20px; }
.stock-line { display: flex; align-items: center; gap: 8px; font-weight: 600; margin-bottom: 24px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot--ok { background: #3fae6a; } .dot--no { background: #c0453b; }

.buy-box { display: flex; gap: 14px; align-items: stretch; margin-bottom: 24px; flex-wrap: wrap; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); overflow: hidden; }
.qty__btn { width: 42px; height: 46px; font-size: 1.2rem; color: var(--text-soft); }
.qty__btn:hover { color: var(--brand); background: var(--bg-alt); }
.qty__input { width: 48px; height: 46px; text-align: center; border: 0; background: transparent; -moz-appearance: textfield; }
.qty__input::-webkit-outer-spin-button, .qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.assurances { display: grid; gap: 8px; margin-bottom: 20px; color: var(--text-soft); font-size: .92rem; }
.meta-line { font-size: .9rem; color: var(--text-soft); }
.meta-line span { font-weight: 600; color: var(--text); }
.product-description { margin-top: clamp(40px, 6vw, 70px); max-width: 820px; }
.product-description h2 { font-size: 1.5rem; margin-bottom: 14px; }
.rich-text { color: var(--text-soft); }

/* ---------- Sepet ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: var(--gap); align-items: start; }
.cart-layout > * { min-width: 0; } /* grid öğeleri içerikten dolayı taşmasın */
.cart-items { display: grid; gap: 14px; }
.cart-row {
  display: grid; grid-template-columns: 90px 1fr auto auto auto; gap: 16px; align-items: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px;
}
.cart-row__img img { border-radius: 10px; object-fit: cover; }
.cart-row__info { display: grid; gap: 4px; }
.cart-row__name { font-weight: 600; }
.cart-row__name:hover { color: var(--brand); }
.cart-row__unit { font-size: .88rem; color: var(--text-soft); }
.cart-row__total { font-weight: 700; }
.cart-row__remove { width: 34px; height: 34px; border-radius: 50%; color: var(--text-soft); }
.cart-row__remove:hover { background: var(--bg-alt); color: var(--accent); }
.cart-summary { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 14px; }
.cart-summary h2 { font-size: 1.3rem; }
.summary-line { display: flex; justify-content: space-between; align-items: center; }
.summary-line strong { font-size: 1.2rem; color: var(--brand-dark); }

/* ---------- Formlar ---------- */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-weight: 600; font-size: .92rem; }
.field input, .field textarea, .field select {
  width: 100%; min-width: 0; box-sizing: border-box;
  padding: 12px 14px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
.field .error { color: var(--accent); font-size: .84rem; }
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; background: var(--bg-alt); border: 1px solid var(--border); }
.alert--success { background: color-mix(in srgb, #3fae6a 18%, var(--surface)); border: 1px solid #3fae6a; color: var(--text); }
.alert--err { background: color-mix(in srgb, var(--accent) 15%, var(--surface)); border: 1px solid var(--accent); color: var(--text); }
.checkout-items { display: grid; gap: 8px; margin-bottom: 6px; }
.checkout-items .summary-line span:first-child { color: var(--text-soft); font-size: .92rem; }

/* ---------- İçerik sayfaları ---------- */
.page-narrow { }
.page-narrow .prose { max-width: 760px; margin-inline: auto; display: grid; gap: 18px; color: var(--text-soft); font-size: 1.05rem; }
.lead { font-size: 1.15rem; color: var(--text-soft); max-width: 640px; margin-inline: auto; }
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--gap); margin-top: 48px; }
.value-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; text-align: center; }
.value-card h3 { color: var(--brand-dark); margin-bottom: 8px; }
.value-card p { color: var(--text-soft); }

.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(30px, 5vw, 60px); align-items: start; }
.contact-info { margin-top: 28px; display: grid; gap: 8px; }
.contact-info h2 { font-size: 1.2rem; margin-bottom: 6px; }
.contact-info a:hover { color: var(--brand); }
.contact-form-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(22px, 4vw, 38px); }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border); margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: var(--gap); padding-block: clamp(40px, 6vw, 64px); }
.footer-tagline { color: var(--text-soft); margin-top: 12px; max-width: 260px; }
.footer-col h3 { font-family: var(--sans); font-size: .95rem; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; margin-bottom: 14px; color: var(--text); }
.footer-col ul { display: grid; gap: 9px; }
.footer-col a { color: var(--text-soft); }
.footer-col a:hover { color: var(--brand); }
.footer-bottom { border-top: 1px solid var(--border); padding-block: 18px; color: var(--text-soft); font-size: .88rem; }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.footer-bottom-inner p { margin: 0 auto; }
.btn-install { background: var(--brand); color: #fff; border-radius: 999px; padding: 8px 18px; font-weight: 600; font-size: .85rem; }
.btn-install:hover { background: var(--brand-dark); }

/* ---------- Hata sayfaları ---------- */
.error-page { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 60px 20px; }
.error-page .container { display: grid; gap: 14px; place-items: center; }
.error-code { font-family: var(--serif); font-size: clamp(4rem, 14vw, 8rem); color: var(--brand); line-height: 1; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--text); color: var(--bg); padding: 13px 22px; border-radius: 999px;
  box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: .3s ease; z-index: 300; font-weight: 600;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Varyantlar ---------- */
.variant-box { margin-bottom: 22px; }
.variant-label { display: block; font-weight: 600; margin-bottom: 9px; }
.variant-options { display: flex; flex-wrap: wrap; gap: 9px; }
.variant-chip input { position: absolute; opacity: 0; pointer-events: none; }
.variant-chip span {
  display: inline-block; padding: 9px 17px; border: 1.5px solid var(--border);
  border-radius: 999px; cursor: pointer; font-size: .92rem; transition: .18s;
  background: var(--surface);
}
.variant-chip input:checked + span {
  border-color: var(--brand); color: var(--brand-dark); font-weight: 700;
  background: color-mix(in srgb, var(--brand) 12%, var(--surface));
}
.variant-chip.is-out span { opacity: .45; text-decoration: line-through; cursor: not-allowed; }

/* ---------- Hediye ---------- */
.gift-check { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: .92rem; }
.gift-check input { width: 18px; height: 18px; accent-color: var(--brand); }

/* ---------- Kargo takip ---------- */
.track-shipping { margin-bottom: 14px; padding: 10px 14px; background: var(--bg-alt); border-radius: 10px; font-size: .92rem; }
.track-code { letter-spacing: 1.5px; font-weight: 800; color: var(--brand-dark); }

/* ---------- Yıldızlar & Yorumlar ---------- */
.stars { display: inline-flex; align-items: center; gap: 1px; font-size: 1rem; line-height: 1; }
.star { color: var(--border); }
.star.is-on { color: #eab308; }
.stars-count { margin-left: 6px; font-size: .82rem; color: var(--text-soft); }
.rating-link { display: inline-block; margin-bottom: 10px; }
.low-stock-note { margin-left: 10px; color: var(--accent); font-size: .85rem; font-weight: 700; }
.badge--stock { background: var(--accent); color: #fff; top: 12px; right: 12px; left: auto; }

.reviews-section { margin-top: clamp(40px, 6vw, 70px); }
.reviews-section .section-head { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.reviews-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--gap); align-items: start; }
.reviews-list { display: grid; gap: 14px; }
.review-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }
.review-card__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.review-card__text { color: var(--text-soft); margin-bottom: 8px; }
.review-card__date { font-size: .8rem; }
.review-form-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.review-form-wrap h3 { margin-bottom: 14px; }

/* Yıldız seçici (5→1 ters sırada, hover ile dolar) */
.rating-input { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.rating-input input { position: absolute; opacity: 0; pointer-events: none; }
.rating-input label { font-size: 1.7rem; color: var(--border); cursor: pointer; transition: color .15s; }
.rating-input label:hover, .rating-input label:hover ~ label,
.rating-input input:checked ~ label { color: #eab308; }

/* ---------- Header arama ---------- */
.nav-search { display: flex; align-items: center; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 999px; padding: 2px 4px 2px 14px; }
.nav-search input { border: 0; background: transparent; width: 140px; font-size: .9rem; padding: 7px 0; color: var(--text); }
.nav-search input:focus { outline: none; }
.nav-search button { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: var(--text-soft); }
.nav-search button:hover { color: var(--brand); background: var(--surface); }

/* ---------- Bülten ---------- */
.newsletter-bar { background: var(--surface); border-bottom: 1px solid var(--border); }
.newsletter-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 28px; flex-wrap: wrap; }
.newsletter-inner h3 { font-size: 1.25rem; margin-bottom: 4px; }
.newsletter-form { display: flex; gap: 10px; }
.newsletter-form input { min-width: 240px; padding: 12px 16px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg); color: var(--text); }
.newsletter-form input:focus { outline: none; border-color: var(--brand); }
.newsletter-msg { font-size: .88rem; font-weight: 600; margin-bottom: 8px; }
.newsletter-msg.is-ok { color: #2f9e5b; }
.newsletter-msg.is-err { color: var(--accent); }

/* ---------- AI Sohbet Asistanı ---------- */
.chat-widget { position: fixed; right: 20px; bottom: 86px; z-index: 95; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.chat-fab {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand); color: #fff; box-shadow: 0 8px 24px rgba(184,118,62,.45); transition: transform .2s;
}
.chat-fab:hover { transform: scale(1.08); }
.chat-panel {
  width: min(370px, calc(100vw - 40px)); height: min(520px, calc(100vh - 180px));
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden;
}
.chat-panel[hidden] { display: none; }
.chat-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; background: var(--brand); color: #fff; }
.chat-head strong { display: block; font-size: .98rem; }
.chat-head span { font-size: .78rem; opacity: .9; }
.chat-close { color: #fff; font-size: 1.05rem; width: 28px; height: 28px; border-radius: 50%; }
.chat-close:hover { background: rgba(255,255,255,.2); }
.chat-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.chat-msg { max-width: 85%; padding: 10px 14px; border-radius: 14px; font-size: .9rem; line-height: 1.55; white-space: pre-wrap; }
.chat-msg.is-bot { background: var(--bg-alt); color: var(--text); align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-msg.is-user { background: var(--brand); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-msg.is-pending { opacity: .6; font-style: italic; }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); }
.chat-form input { flex: 1; min-width: 0; padding: 10px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg); color: var(--text); }
.chat-form input:focus { outline: none; border-color: var(--brand); }
.chat-form button { width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: #fff; flex: none; }
.chat-form button:hover { background: var(--brand-dark); }
.price-eur { font-size: .88rem; color: var(--text-soft); }

@media (max-width: 480px) {
  .chat-widget { right: 14px; bottom: 80px; }
  .chat-panel { height: min(70vh, 460px); }
}

/* ---------- WhatsApp ---------- */
.whatsapp-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: 0 8px 24px rgba(37, 211, 102, .45);
  transition: transform .2s;
}
.whatsapp-fab:hover { transform: scale(1.08); }

/* ---------- Güven şeridi ---------- */
.trust-strip { display: grid; gap: 7px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border); }
.trust-strip li { font-size: .84rem; color: var(--text-soft); }

/* ---------- Duyarlı yardımcı ızgaralar ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-2-1 { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
@media (max-width: 560px) {
  .grid-2, .grid-2-1 { grid-template-columns: 1fr; }
}

/* ---------- Blog ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--gap); }
.post-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.post-card__media { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--bg-alt); display: block; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.post-card:hover .post-card__media img { transform: scale(1.05); }
.post-card__body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card__date { font-size: .8rem; color: var(--text-soft); }
.post-card__title { font-size: 1.2rem; }
.post-card__title a:hover { color: var(--brand); }
.post-card__excerpt { color: var(--text-soft); font-size: .93rem; }
.post-card__more { margin-top: auto; color: var(--brand-dark); font-weight: 600; font-size: .9rem; }
.post-cover { width: 100%; border-radius: var(--radius-lg); object-fit: cover; }

/* ---------- Hesabım ---------- */
.account-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: var(--gap); align-items: start; }
.account-h2 { font-size: 1.3rem; margin-bottom: 16px; }
.order-list { display: grid; gap: 12px; }
.order-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 18px; }
.order-row__total { font-weight: 700; }
.status-pill { padding: 4px 12px; border-radius: 999px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.status--pending { background: color-mix(in srgb, #d98a2b 18%, var(--surface)); color: #9a6410; }
.status--paid { background: color-mix(in srgb, #3a7bd5 16%, var(--surface)); color: #1f5f9a; }
.status--shipped { background: color-mix(in srgb, #7a5fd0 16%, var(--surface)); color: #5a3f9a; }
.status--delivered { background: color-mix(in srgb, #3fae6a 18%, var(--surface)); color: #1f7a45; }
.status--cancelled, .status--failed { background: color-mix(in srgb, var(--accent) 16%, var(--surface)); color: var(--accent); }

.points-card { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff; border-radius: var(--radius); padding: 26px; text-align: center; }
.points-card__num { font-family: var(--serif); font-size: 3rem; font-weight: 700; line-height: 1; margin-bottom: 6px; }
.points-card .muted { color: rgba(255,255,255,.85); }
.loyalty-history { display: grid; gap: 8px; }
.loyalty-history li { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 9px 13px; font-size: .88rem; }
.lh-points { font-weight: 800; min-width: 44px; }
.lh-points.is-plus { color: #2f9e5b; }
.lh-points.is-minus { color: var(--accent); }
.lh-note { flex: 1; }
.lh-date { font-size: .8rem; }

/* ---------- Kupon / Puan kutuları ---------- */
.promo-box { border: 1px dashed var(--border); border-radius: var(--radius-sm); padding: 12px; }
.promo-form { display: flex; gap: 8px; }
.promo-form input { flex: 1; min-width: 0; padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); }
.promo-form input:focus { outline: none; border-color: var(--brand); }
.promo-applied { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: .88rem; }
.promo-remove { color: var(--accent); font-size: .82rem; font-weight: 600; text-decoration: underline; }

/* ---------- Sipariş takip ---------- */
.track-result { margin-top: 26px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.track-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.track-table { width: 100%; border-collapse: collapse; }
.track-table td { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: .94rem; }
.track-table tr:last-child td { border-bottom: 0; }
.track-total td { font-size: 1.05rem; padding-top: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .product-detail__grid { grid-template-columns: 1fr; }
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .account-grid { grid-template-columns: 1fr; }
  .reviews-layout { grid-template-columns: 1fr; }
  .newsletter-inner { flex-direction: column; align-items: stretch; text-align: center; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form input { min-width: 0; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
    padding: 12px 20px 22px; transform: translateY(-120%); transition: transform .3s ease; max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .primary-nav.is-open { transform: translateY(0); }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-list > li > a, .dropdown-toggle { display: block; padding: 12px 4px; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 6px 14px; }
  .has-dropdown .dropdown { display: none; }
  .has-dropdown.open .dropdown { display: block; }
  .nav-actions { justify-content: space-between; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
  .nav-search { margin-top: 12px; }
  .nav-search input { width: 100%; flex: 1; }
}

@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cart-row { grid-template-columns: 70px 1fr auto; grid-template-areas: "img info remove" "img qty total"; row-gap: 10px; }
  .cart-row__img { grid-area: img; } .cart-row__info { grid-area: info; }
  .cart-row .qty { grid-area: qty; } .cart-row__total { grid-area: total; text-align: right; }
  .cart-row__remove { grid-area: remove; justify-self: end; }
}

/* ---------- Erişilebilirlik: azaltılmış hareket ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
