/* ============================================================
   sadesite — "boutique" teması
   Şık / kadın / özel gün (gelinlik-abiye-kostüm) butikleri için.
   Token tabanlı; marka rengi --brand olarak sayfadan beslenir.
   Bootstrap'e bağımlı DEĞİLDİR (standalone).
   ============================================================ */

:root {
  /* Marka (sayfa inline override eder: style="--brand:#xxxxxx") */
  --brand: #b0875a;          /* fallback: şampanya altın */
  --brand-deep: #8a6a44;

  /* Palet */
  --bg: #faf7f2;             /* sıcak fildişi */
  --surface: #ffffff;
  --soft: #f2ece2;           /* yumuşak kum dolgu */
  --ink: #2a2520;            /* derin sıcak antrasit */
  --muted: #948a7e;          /* taupe ikincil metin */
  --line: #e8ddcf;           /* saç teli çizgi */
  --gold: #b0875a;           /* lüks aksan */
  --sale: #b0392c;           /* indirim kırmızısı (zarif) */

  /* Tipografi */
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  /* Ölçü */
  --container: 1200px;
  --radius: 4px;
  --radius-lg: 10px;
  --shadow-sm: 0 1px 3px rgba(42, 37, 32, .06);
  --shadow: 0 10px 30px rgba(42, 37, 32, .10);
  --shadow-lg: 0 24px 60px rgba(42, 37, 32, .16);
  --header-h: 76px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  letter-spacing: .2px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .25s var(--ease); }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; color: var(--ink); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 22px;
}
.section { padding: 64px 0; }
.muted { color: var(--muted); }

/* Bölüm başlığı: serif, ortalı, ince altın çizgi */
.section-head { text-align: center; margin-bottom: 40px; }
.section-head .eyebrow {
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--brand);
  display: block;
  margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(26px, 4vw, 40px); }
.section-head .rule {
  width: 64px; height: 1px; background: var(--brand);
  margin: 18px auto 0; opacity: .7;
}

/* ---------- Header / Navbar ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(250, 247, 242, .92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
  min-height: var(--header-h);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 18px; }
.nav-logo img { max-height: 52px; width: auto; }
.nav-logo .nav-logo-text { font-family: var(--serif); font-size: 22px; letter-spacing: .5px; }

.nav-menu { display: flex; align-items: center; gap: 28px; }
.nav-menu a.nav-link {
  font-size: 14px; font-weight: 400; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--ink); position: relative; padding: 6px 0;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 0;
  background: var(--brand); transition: width .3s var(--ease);
}
.nav-link:hover { color: var(--brand-deep); }
.nav-link:hover::after { width: 100%; }

/* Kategori açılır menü */
.nav-dd { position: relative; }
.nav-dd-panel {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(8px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); min-width: 230px; padding: 10px; opacity: 0; visibility: hidden;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.nav-dd:hover .nav-dd-panel { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
/* Trigger ile panel arasındaki boşluğu kapatan görünmez köprü — mouse boşlukta hover kaybetmesin */
.nav-dd-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.nav-dd-panel a {
  display: block; padding: 9px 14px; border-radius: var(--radius); font-size: 14px;
  letter-spacing: .5px; color: var(--ink);
}
.nav-dd-panel a:hover { background: var(--soft); color: var(--brand-deep); }
.nav-dd-panel .dd-sep { height: 1px; background: var(--line); margin: 6px 8px; }

.nav-icons { display: flex; align-items: center; gap: 16px; }
.nav-icons a { font-size: 19px; color: var(--ink); transition: color .25s, transform .25s; }
.nav-icons a:hover { color: var(--brand); transform: translateY(-2px); }

.nav-toggle { display: none; background: none; border: 0; font-size: 22px; color: var(--ink); padding: 6px; }

/* ---------- Hero ---------- */
.hero { position: relative; margin-top: var(--header-h); }
.hero-slider { position: relative; height: clamp(380px, 64vh, 640px); overflow: hidden; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s var(--ease); }
.hero-slide.active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(42,37,32,.10) 0%, rgba(42,37,32,.46) 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  color: #fff; padding: 24px;
}
.hero-overlay .eyebrow {
  letter-spacing: 5px; text-transform: uppercase; font-size: 13px; font-weight: 500;
  margin-bottom: 14px; opacity: .92;
}
.hero-overlay h1 {
  color: #fff; font-size: clamp(34px, 6vw, 68px); text-shadow: 0 2px 24px rgba(0,0,0,.3);
}
.hero-overlay p { max-width: 560px; margin: 16px auto 0; font-weight: 300; opacity: .95; }
.hero-cta { margin-top: 28px; }
.hero-dots { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; gap: 9px; z-index: 2; }
.hero-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; background: rgba(255,255,255,.5); }
.hero-dots button.active { background: #fff; width: 24px; border-radius: 5px; }
/* Görselsiz (plain) slide — yumuşak gradient zemin + koyu metin */
.hero-slide.plain { background: linear-gradient(135deg, var(--soft), #fff); }
.hero-overlay.plain { background: none; color: var(--ink); }
.hero-overlay.plain .eyebrow { color: var(--brand); }
.hero-overlay.plain h1 { color: var(--ink); text-shadow: none; }
.hero-overlay.plain p { color: var(--muted); }

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--sans); font-size: 13px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase;
  padding: 15px 32px; border: 1px solid transparent; border-radius: var(--radius); transition: all .3s var(--ease);
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--brand-deep); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--soft); }
.btn-wa { background: #25d366; color: #fff; }
.btn-wa:hover { background: #1ebe5a; color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-block { width: 100%; }

/* ---------- Koleksiyon (kategori) şeridi ---------- */
.collections { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; }
.collection-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 3/4;
  background: var(--soft); box-shadow: var(--shadow-sm);
}
.collection-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.collection-card:hover img { transform: scale(1.06); }
.collection-card .col-label {
  position: absolute; inset: auto 0 0 0; padding: 22px 16px 16px;
  background: linear-gradient(180deg, transparent, rgba(42,37,32,.7));
  color: #fff; font-family: var(--serif); font-size: 18px; text-align: center;
}
.collection-card.placeholder { display: flex; align-items: center; justify-content: center; }
.collection-card.placeholder .col-label {
  position: static; background: none; color: var(--ink); padding: 0;
}

/* ---------- Ürün grid + kart ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 28px 22px;
}
.product-card { position: relative; }
.pc-media {
  position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--soft); aspect-ratio: 3/4; box-shadow: var(--shadow-sm);
}
.pc-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: opacity .5s var(--ease), transform .8s var(--ease);
}
.pc-media .pc-img--alt { opacity: 0; }
.product-card:hover .pc-media .pc-img--main { opacity: 0; }
.product-card:hover .pc-media .pc-img--alt { opacity: 1; }
.product-card:hover .pc-media img { transform: scale(1.04); }
.pc-media.single:hover img { transform: scale(1.06); }

.pc-badges { position: absolute; top: 12px; left: 12px; z-index: 2; display: flex; flex-direction: column; gap: 6px; }
.badge {
  font-family: var(--sans); font-size: 10px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 5px 10px; border-radius: 2px; color: #fff; backdrop-filter: blur(2px);
}
.badge-new { background: var(--brand); }
.badge-sale { background: var(--sale); }
.pc-star { position: absolute; top: 12px; right: 12px; z-index: 2; color: var(--gold); font-size: 16px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.25)); }

.pc-body { padding: 16px 4px 0; text-align: center; }
.pc-name { font-family: var(--serif); font-size: 17px; font-weight: 500; color: var(--ink); margin: 0 0 6px; }
.pc-price { font-size: 15px; font-weight: 500; letter-spacing: .5px; }
.pc-price .now { color: var(--ink); }
.pc-price .was { color: var(--muted); text-decoration: line-through; font-size: 13px; margin-left: 8px; }
.pc-price .now.sale { color: var(--sale); }

.empty-note { text-align: center; color: var(--muted); padding: 60px 0; font-size: 16px; grid-column: 1 / -1; }

/* ---------- Sayfa başlığı (urunler) ---------- */
.page-head { margin-top: var(--header-h); padding: 56px 0 8px; text-align: center; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; font-size: 13px; color: var(--muted); letter-spacing: .5px; margin-bottom: 10px; }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb .sep { color: var(--line); }

/* Kategori detay banner (urunler ?id=) */
.cat-hero { position: relative; margin-top: var(--header-h); height: clamp(220px, 34vh, 360px); overflow: hidden; }
.cat-hero img { width: 100%; height: 100%; object-fit: cover; }
.cat-hero-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; color: #fff; padding: 20px;
  background: linear-gradient(180deg, rgba(42, 37, 32, .15), rgba(42, 37, 32, .55));
}
.cat-hero-overlay h1 { color: #fff; font-size: clamp(28px, 5vw, 48px); text-shadow: 0 2px 20px rgba(0, 0, 0, .35); }
.cat-hero-overlay .breadcrumb { margin-bottom: 10px; }

/* ---------- Ürün detay ---------- */
.detail { margin-top: var(--header-h); padding-top: 40px; }
.detail-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: start; }
.gallery-main {
  border-radius: var(--radius-lg); overflow: hidden; background: var(--soft);
  aspect-ratio: 3/4; box-shadow: var(--shadow-sm);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.gallery-thumbs button {
  width: 72px; height: 92px; padding: 0; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--soft); opacity: .65; transition: opacity .25s, border-color .25s;
}
.gallery-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs button.active, .gallery-thumbs button:hover { opacity: 1; border-color: var(--brand); }

.detail-info .cat { font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--brand); margin-bottom: 12px; }
.detail-info h1 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 16px; }
.detail-info .desc { color: #5a534b; font-weight: 300; margin-bottom: 26px; }
.detail-price { font-family: var(--serif); font-size: 30px; margin-bottom: 26px; }
.detail-price .was { font-family: var(--sans); color: var(--muted); text-decoration: line-through; font-size: 19px; margin-left: 12px; }
.detail-price .now.sale { color: var(--sale); }

.variant-block { margin-bottom: 26px; }
.variant-label { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.variant-options { display: flex; flex-wrap: wrap; gap: 10px; }
.variant-pill { position: relative; }
.variant-pill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.variant-pill span {
  display: inline-flex; min-width: 46px; justify-content: center; padding: 11px 16px;
  border: 1px solid var(--line); border-radius: var(--radius); font-size: 14px; transition: all .2s var(--ease); background: var(--surface);
}
.variant-pill input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; }
.variant-pill input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }

.detail-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.detail-note { font-size: 13px; color: var(--muted); margin-top: 16px; }
.trust-row { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.trust-row .ti { display: flex; align-items: center; gap: 9px; font-size: 13px; color: #5a534b; }
.trust-row .ti i { color: var(--brand); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #d9cfc2; margin-top: 80px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding: 64px 0 48px; }
.site-footer h4 { color: #fff; font-size: 22px; margin-bottom: 14px; }
.site-footer .f-about { font-weight: 300; max-width: 340px; color: #b7ab9c; }
.f-col h5 { font-family: var(--sans); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: #fff; margin: 0 0 16px; }
.f-col a, .f-col .f-line { display: flex; align-items: center; gap: 11px; padding: 7px 0; color: #c9bdae; font-weight: 300; }
.f-col a:hover { color: #fff; }
.f-col i { width: 18px; text-align: center; color: var(--brand); }
.f-social { display: flex; gap: 12px; margin-top: 12px; }
.f-social a {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18);
  display: inline-flex; align-items: center; justify-content: center; color: #fff; padding: 0;
}
.f-social a:hover { background: var(--brand); border-color: var(--brand); transform: translateY(-3px); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding: 22px 0; text-align: center;
  font-size: 13px; color: #9b8f80;
}
.footer-bottom a { color: var(--brand); }

/* WhatsApp yüzen buton */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 28px;
  box-shadow: 0 8px 24px rgba(37,211,102,.45); transition: transform .25s;
}
.wa-float:hover { transform: scale(1.08); color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .detail-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .site-footer .f-about { max-width: none; }
}
@media (max-width: 768px) {
  :root { --header-h: 64px; }
  .nav-toggle { display: inline-flex; }
  .nav-icons { margin-left: auto; }
  .nav-menu {
    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(--line); box-shadow: var(--shadow);
    padding: 8px 0; max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); visibility: hidden;
  }
  .nav-menu.open { max-height: 80vh; overflow: auto; visibility: visible; }
  .nav-menu a.nav-link { padding: 14px 24px; border-bottom: 1px solid var(--line); letter-spacing: 1px; }
  .nav-link::after { display: none; }
  .nav-dd-panel {
    position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none;
    border: 0; border-radius: 0; min-width: 0; padding: 0 0 6px 12px;
  }
  .nav-dd-panel::before { display: none; }
  .nav-dd-panel a { padding: 11px 24px; }
  .section { padding: 44px 0; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 14px; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; padding: 44px 0 32px; }
  .detail-actions .btn { flex: 1; }
  /* Yatay banner mobilde oranıyla (8:3) görünsün, taşmasın; metin sığacak kadar küçülür */
  .hero-slider { height: auto; aspect-ratio: 8 / 3; }
  .hero-overlay { padding: 10px 16px; overflow: hidden; }
  .hero-overlay .eyebrow { font-size: 10px; letter-spacing: 3px; margin-bottom: 4px; }
  .hero-overlay h1 { font-size: clamp(17px, 5.2vw, 26px); }
  .hero-overlay p { font-size: 12px; line-height: 1.4; margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .hero-cta { margin-top: 10px; padding: 9px 18px; font-size: 11px; }
}
@media (max-width: 380px) {
  .product-grid { gap: 16px 12px; }
  .btn { padding: 13px 22px; }
}
