/* =====================================================================
   ENLORIEN HOME — stil (minimal, Zara Home benzeri düzen)
   Sayfalar: index.html (tam ekran görsel) · urun.html (ürün detay)
             hakkinda.html · iletisim.html
   ===================================================================== */

:root {
  --bg: #FFFFFF;
  --ink: #111111;
  --muted: #6B6B6B;
  --line: #E4E4E4;
  --line-strong: #111111;
  --surface: #F5F4F2;
  --wa: #128C7E;
  --wa-dark: #0E7368;
  --white: #FFFFFF;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-logo: "Cormorant Garamond", Georgia, "Times New Roman", serif;

  --header-h: 84px;
  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 1440px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 14px; line-height: 1.6; letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
}
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, p, figure, dl, dd, ul { margin: 0; }
ul { padding: 0; list-style: none; }
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }
:focus-visible { outline: 1.5px solid var(--ink); outline-offset: 3px; }
.ico { width: 1.1em; height: 1.1em; flex: none; }

.skip-link { position: absolute; left: 1rem; top: -3rem; z-index: 100; background: var(--ink); color: var(--white); padding: .6rem 1rem; transition: top .2s; }
.skip-link:focus { top: 1rem; }

/* Küçük büyük harfli etiket (Zara stili) */
.u, .section-label, .nav > a, .footer-nav a, .pdp-title, .pdp-meta, .acc summary, .btn, .specs dt, .home-hero__cta {
  text-transform: uppercase; letter-spacing: .08em;
}

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); }
.nav-wrap {
  display: flex; align-items: center; gap: 1rem;
  height: var(--header-h); padding-inline: var(--gutter);
  max-width: var(--max); margin-inline: auto;
}
.brand { display: inline-flex; align-items: center; margin-right: auto; }
.brand img { height: 60px; width: auto; }

.nav { display: flex; align-items: center; gap: clamp(1.2rem, 2.5vw, 2.4rem); }
.nav > a { font-size: .72rem; font-weight: 500; position: relative; padding: .35rem 0; }
.nav > a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav > a:hover::after, .nav > a[aria-current="page"]::after { transform: scaleX(1); }
.nav-wa { display: inline-flex; align-items: center; gap: .45rem; }
.nav-wa .ico { width: 1rem; height: 1rem; }

.nav-toggle { display: none; width: 40px; height: 40px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; margin-left: -8px; }
.nav-toggle span { display: block; width: 20px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease), opacity .2s; }

/* Ana sayfa: header görselin üstünde */
.site-header--overlay { position: absolute; left: 0; right: 0; top: 0; background: transparent; }

@media (max-width: 899px) {
  :root { --header-h: 66px; }
  .nav-toggle { display: inline-flex; }
  .brand img { height: 44px; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 40;
    flex-direction: column; align-items: flex-start; gap: 0;
    padding: 1rem var(--gutter) 2rem; background: var(--bg); overflow-y: auto;
    opacity: 0; transform: translateY(-8px); pointer-events: none;
    transition: opacity .25s var(--ease), transform .3s var(--ease);
  }
  .nav > a { font-size: .95rem; padding: 1rem 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav > a::after { display: none; }
  body.nav-open .nav { opacity: 1; transform: none; pointer-events: auto; }
  body.nav-open { overflow: hidden; }
  body.nav-open .site-header--overlay { background: var(--bg); }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
}

/* ---------- Ana sayfa: tam ekran görsel ---------- */
body.is-home { overflow: hidden; }
.home { height: 100vh; height: 100dvh; }
.home-hero { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; background: #d9c5ad; }
.home-hero picture, .home-hero img { width: 100%; height: 100%; }
.home-hero img { object-fit: cover; object-position: 50% 50%; transform: scale(1); transition: transform 1.2s var(--ease); }
.home-hero:hover img { transform: scale(1.02); }
.home-hero__caption {
  position: absolute; left: 0; right: 0; bottom: clamp(2rem, 7vh, 4.5rem);
  display: flex; flex-direction: column; align-items: center; gap: .6rem; text-align: center;
  color: var(--ink); padding-inline: var(--gutter);
}
.home-hero__title { font-family: var(--font); font-size: clamp(1.35rem, 2.4vw, 1.9rem); font-weight: 400; line-height: 1.3; letter-spacing: .02em; }
.home-hero__cta { font-size: .8rem; font-weight: 500; padding-bottom: .2rem; border-bottom: 1px solid currentColor; }
.home-hero:hover .home-hero__cta { border-bottom-color: transparent; }
.home .home-hero:focus-visible { outline-offset: -4px; }

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  width: 100%; min-height: 48px; padding: .8rem 1.25rem;
  font-size: .74rem; font-weight: 500; line-height: 1;
  border: 1px solid var(--ink); background: transparent; color: var(--ink);
  transition: background .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: #2a2a2a; }
.btn-secondary:hover { background: var(--ink); color: var(--white); }
.btn-icon {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 48px; height: 48px; border: 1px solid var(--ink); transition: background .2s, color .2s;
}
.btn-icon:hover { background: var(--ink); color: var(--white); }
.btn-icon .ico { width: 1.15rem; height: 1.15rem; }

/* ---------- Ürün sayfası ---------- */
.pdp { max-width: var(--max); margin-inline: auto; padding: 0 var(--gutter) 4rem; }
.pdp-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }

.pdp-media { position: relative; background: var(--surface); }
.pdp-main { display: block; width: 100%; cursor: zoom-in; }
.pdp-main img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.pdp-counter { position: absolute; right: .75rem; bottom: .75rem; font-size: .7rem; letter-spacing: .08em; color: var(--ink); background: rgba(255,255,255,.75); padding: .2rem .5rem; }
.pdp-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink); background: rgba(255,255,255,.7);
}
.pdp-arrow--prev { left: .5rem; } .pdp-arrow--next { right: .5rem; }

.pdp-thumbs { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.pdp-thumbs::-webkit-scrollbar { display: none; }
.pdp-thumb { flex: none; width: 56px; height: 56px; border: 1px solid transparent; transition: border-color .2s; background: var(--surface); }
.pdp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pdp-thumb.is-active { border-color: var(--ink); }
.pdp-thumb:hover { border-color: var(--line-strong); }

.pdp-info { padding-top: .5rem; }
.pdp-title { font-size: 1rem; font-weight: 500; line-height: 1.35; }
.pdp-price { font-size: 1.05rem; font-weight: 600; margin-top: .6rem; }
.pdp-meta { font-size: .7rem; color: var(--muted); margin-top: .5rem; }
.pdp-code::before { content: " | "; }
.pdp-code:empty { display: none; }

.pdp-desc { margin-top: 1.5rem; font-size: .9rem; line-height: 1.7; }
.pdp-desc p + p { margin-top: .75rem; }

.pdp-actions { display: flex; gap: .5rem; margin-top: 1.75rem; }
.pdp-info .btn-secondary { margin-top: .5rem; }
.pdp-info .btn[hidden] { display: none; }

.pdp-rating { display: flex; align-items: center; gap: .35rem; margin-top: 1rem; font-size: .78rem; color: var(--muted); }
.pdp-rating .ico { width: .9rem; height: .9rem; color: var(--ink); }
.pdp-rating strong { color: var(--ink); font-weight: 600; }

/* Akordeon */
.acc { margin-top: 1.75rem; border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-item summary {
  display: flex; align-items: center; justify-content: space-between;
  padding: .95rem 0; font-size: .72rem; font-weight: 500; cursor: pointer;
}
.acc-item summary::after {
  content: ""; width: 8px; height: 8px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor;
  transform: rotate(45deg); margin-right: 4px; transition: transform .25s var(--ease);
}
.acc-item[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.acc-body { padding: 0 0 1.1rem; font-size: .86rem; line-height: 1.7; color: #333; }
.acc-body p + p { margin-top: .6rem; }

.specs { display: grid; gap: .55rem; }
.specs > div { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; align-items: baseline; }
.specs dt { font-size: .66rem; color: var(--muted); }
.specs dd { font-size: .86rem; }
@media (max-width: 480px) { .specs > div { grid-template-columns: 1fr; gap: .1rem; } }

.dim { display: grid; }
.dim img { width: min(100%, 460px); height: auto; margin-inline: auto; }

/* Mekânda */
.pdp-look { margin-top: 4rem; }
.section-label { font-size: .72rem; font-weight: 500; margin-bottom: 1rem; }
.look-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.look-item { position: relative; display: block; width: 100%; text-align: left; cursor: zoom-in; background: var(--surface); }
.look-item img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: opacity .3s; }
.look-item:hover img { opacity: .92; }
.look-caption { display: block; padding: .6rem 0 0; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
@media (min-width: 700px) { .look-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; } }

/* Masaüstü ürün düzeni: küçükler | büyük | bilgi */
@media (min-width: 1000px) {
  .pdp { padding-top: 1rem; }
  .pdp-grid { grid-template-columns: 64px minmax(0, 1fr) minmax(320px, 380px); column-gap: clamp(1.5rem, 3vw, 3rem); align-items: start; }
  .pdp-thumbs { flex-direction: column; overflow: visible; order: 1; position: sticky; top: calc(var(--header-h) + 1rem); }
  .pdp-thumb { width: 64px; height: 64px; }
  .pdp-media { order: 2; }
  .pdp-main img { max-height: calc(100vh - var(--header-h) - 2rem); width: 100%; object-fit: contain; aspect-ratio: auto; }
  .pdp-arrow { opacity: 0; transition: opacity .2s; }
  .pdp-media:hover .pdp-arrow, .pdp-arrow:focus-visible { opacity: 1; }
  .pdp-info { order: 3; position: sticky; top: calc(var(--header-h) + 1rem); padding-top: 0; }
}
@media (min-width: 1280px) {
  .pdp-grid { grid-template-columns: 72px minmax(0, 1fr) 460px; }
  .pdp-thumb { width: 72px; height: 72px; }
}

/* ---------- Yorumlar (yatay kaydırma) ---------- */
.reviews { margin-top: 4rem; }
.reviews-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .75rem 1rem; margin-bottom: 1rem; }
.reviews-head .section-label { margin-bottom: .35rem; }
.reviews-summary { display: flex; align-items: center; gap: .35rem; font-size: .8rem; color: var(--muted); }
.reviews-summary .ico { width: .9rem; height: .9rem; color: var(--ink); }
.reviews-summary strong { color: var(--ink); font-weight: 600; }
.reviews-controls { display: flex; align-items: center; gap: .5rem; flex: none; }
.reviews-link { font-size: .68rem; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; border-bottom: 1px solid currentColor; padding-bottom: .15rem; margin-right: .5rem; white-space: nowrap; }
.reviews-arrow { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border: 1px solid var(--line); transition: border-color .2s, background .2s; }
.reviews-arrow:hover { border-color: var(--ink); }
.reviews-arrow .ico { width: 1rem; height: 1rem; }

.reviews-track {
  display: flex; gap: .75rem;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
  margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter) .5rem;
  scroll-padding-inline: var(--gutter);
}
.reviews-track::-webkit-scrollbar { display: none; }
.review-card {
  flex: 0 0 min(78vw, 320px); scroll-snap-align: start;
  display: flex; flex-direction: column; gap: .6rem;
  padding: 1.25rem; border: 1px solid var(--line); background: var(--bg);
}
.review-stars { display: flex; gap: 2px; color: var(--ink); }
.review-stars .ico { width: .8rem; height: .8rem; }
.review-stars .is-off { opacity: .2; }
.review-text { font-size: .86rem; line-height: 1.65; flex: 1; }
.review-meta { display: flex; justify-content: space-between; gap: .75rem; font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
@media (min-width: 900px) { .reviews-track { gap: 1rem; } .review-card { flex-basis: 340px; padding: 1.5rem; } }
@media (prefers-reduced-motion: reduce) { .reviews-track { scroll-behavior: auto; } }

/* ---------- İç sayfalar (Hakkında / İletişim) ---------- */
.page { max-width: var(--max); margin-inline: auto; padding: clamp(2rem, 6vw, 4rem) var(--gutter) 4rem; }
.page-inner { max-width: 720px; margin-inline: auto; }
.page-inner--narrow { max-width: 560px; }
.page-title { font-size: .85rem; font-weight: 500; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 1.5rem; }
.page-body { font-size: .95rem; line-height: 1.8; }
.page-body p + p { margin-top: 1rem; }
.page-figure { margin-top: 2.5rem; background: var(--surface); }
.page-figure img { width: 100%; height: auto; }
.page-link { margin-top: 2rem; font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; }
.page-link a { border-bottom: 1px solid currentColor; padding-bottom: .15rem; }

.contact-block { display: grid; gap: 1rem; margin-top: 2rem; justify-items: start; }
.contact-block .btn { width: auto; min-width: 260px; }
.contact-number { font-size: 1.15rem; font-weight: 500; letter-spacing: .04em; border-bottom: 1px solid var(--line); padding-bottom: .15rem; }
.contact-number:hover { border-color: var(--ink); }
.contact-list { margin-top: 2.5rem; border-top: 1px solid var(--line); }
.contact-list > div { display: grid; grid-template-columns: 8rem 1fr; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: .86rem; }
.contact-list dt { font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); align-self: center; }
.contact-list a { border-bottom: 1px solid var(--line); }
.contact-list a:hover { border-color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); }
.footer-inner {
  max-width: var(--max); margin-inline: auto; padding: 1.5rem var(--gutter) 5.5rem;
  display: flex; flex-direction: column; gap: .9rem;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.footer-nav a { font-size: .68rem; font-weight: 500; }
.footer-nav a:hover { text-decoration: underline; text-underline-offset: 3px; }
.copyright { font-size: .72rem; color: var(--muted); }
@media (min-width: 760px) {
  .footer-inner { flex-direction: row; align-items: center; justify-content: space-between; padding-bottom: 1.5rem; }
}

/* ---------- Sabit WhatsApp butonu ---------- */
.wa-float {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 60;
  width: 52px; height: 52px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--wa); color: var(--white);
  box-shadow: 0 10px 24px -10px rgba(0,0,0,.45);
  transition: transform .25s var(--ease), background .25s;
}
.wa-float .ico { width: 1.55rem; height: 1.55rem; }
.wa-float:hover { transform: translateY(-2px); background: var(--wa-dark); }
@media (min-width: 900px) { .wa-float { right: 1.5rem; bottom: 1.5rem; } }
body.is-home .wa-float { display: none; } /* ana sayfada görsel tek başına */

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.98); opacity: 0; transition: opacity .2s; padding: 1rem;
}
.lightbox.is-open { opacity: 1; }
.lightbox[hidden] { display: none; }
body.lb-open { overflow: hidden; }
.lb-figure { max-width: min(96vw, 1200px); max-height: 92vh; display: flex; flex-direction: column; align-items: center; gap: .6rem; }
.lb-img { max-width: 100%; max-height: 84vh; width: auto; height: auto; object-fit: contain; background: var(--surface); }
.lb-caption { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); text-align: center; }
.lb-close, .lb-nav {
  position: absolute; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink); background: rgba(255,255,255,.8); transition: background .2s;
}
.lb-close:hover, .lb-nav:hover { background: var(--surface); }
.lb-close { top: .75rem; right: .75rem; }
.lb-prev { left: .5rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: .5rem; top: 50%; transform: translateY(-50%); }
.lb-counter { position: absolute; bottom: .9rem; left: 50%; transform: translateX(-50%); font-size: .7rem; letter-spacing: .1em; color: var(--muted); }
.lb-close .ico, .lb-nav .ico { width: 1.3rem; height: 1.3rem; }
@media (min-width: 900px) { .lb-prev { left: 1.5rem; } .lb-next { right: 1.5rem; } .lb-close { top: 1.25rem; right: 1.5rem; } }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 5.5rem; transform: translateX(-50%); z-index: 300;
  background: var(--ink); color: var(--white); font-size: .74rem; letter-spacing: .06em;
  padding: .6rem 1rem; opacity: 0; transition: opacity .25s;
}
.toast.is-visible { opacity: 1; }
.toast[hidden] { display: none; }

/* ---------- Hareket tercihi ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}
/* Site tek (açık) temalıdır */
@media (prefers-color-scheme: dark) { :root { color-scheme: light; } }
