/* Tüm demo temaların ortak katmanı: reset, smooth scroll, scroll-reveal, WhatsApp float. */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; max-width: 100%; }   /* blob/absolute taşma guard; 'clip' sticky nav'ı bozmaz ('hidden' bozar) */
body { -webkit-font-smoothing: antialiased; line-height: 1.65; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* scroll-reveal: base.html'deki IntersectionObserver .in ekler */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

.wa-float {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 50;
  width: 54px; height: 54px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #25d366; box-shadow: 0 6px 20px rgba(37,211,102,.45);
  transition: transform .15s ease;
}
.wa-float:hover { transform: scale(1.08); }

/* ─── canlı tema/renk/mod seçici dock — sol altta sabit (nav CTA + sağ WhatsApp ile çakışmaz) ─── */
.demo-dock { position: fixed; left: 1.2rem; bottom: 1.2rem; z-index: 60; display: flex; gap: .5rem; align-items: flex-end; }
.dock-item { position: relative; }
.dock-btn {
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: #fff;
  background: color-mix(in srgb, var(--primary, #1f2937) 82%, #000);
  border: 1px solid rgba(255,255,255,.18); box-shadow: 0 4px 16px rgba(0,0,0,.28);
  transition: transform .15s ease;
}
.dock-btn:hover { transform: translateY(-2px) scale(1.06); }
.mode-toggle:hover { transform: rotate(18deg) scale(1.08); }
.pal-btn { border-color: rgba(255,255,255,.5); }
/* açık modda ay göster (karanlığa geç), karanlık modda güneş göster (açığa geç) */
.mode-toggle .ic-sun { display: none; }
.mode-toggle .ic-moon { display: block; }
html[data-mode="dark"] .mode-toggle .ic-sun { display: block; }
html[data-mode="dark"] .mode-toggle .ic-moon { display: none; }

/* yukarı açılan menü (dropdown) — koyu popover, her temada tutarlı */
.dock-menu {
  position: absolute; left: 0; bottom: calc(100% + .55rem); min-width: 152px;
  background: #14161c; border: 1px solid rgba(255,255,255,.14); border-radius: 12px;
  padding: .35rem; box-shadow: 0 12px 32px rgba(0,0,0,.4);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .16s ease, transform .16s ease; max-height: 62vh; overflow-y: auto;
}
.dock-item.open .dock-menu { opacity: 1; visibility: visible; transform: none; }
.dock-opt {
  display: block; padding: .5rem .8rem; border-radius: 8px; color: #cfd3da;
  font: 600 .88rem/1.2 system-ui, sans-serif; white-space: nowrap;
}
.dock-opt:hover { background: rgba(255,255,255,.08); color: #fff; }
.dock-opt.on { background: rgba(255,255,255,.12); color: #fff; }
.dock-opt.on::after { content: " ✓"; }
/* <button> olarak da kullanılıyor (paket seçici) — native buton stilini sıfırla */
button.dock-opt { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; }
/* renk paleti swatch grid — her hücre: renk yuvarlağı + altında adı */
.dock-swatches { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; min-width: 232px; padding: .6rem; }
.swatch-cell { display: flex; flex-direction: column; align-items: center; gap: .3rem; text-decoration: none; }
.swatch { width: 30px; height: 30px; border-radius: 50%; border: 2px solid transparent; box-shadow: 0 0 0 1px rgba(255,255,255,.15) inset; transition: transform .12s ease; }
.swatch-cell:hover .swatch { transform: scale(1.14); }
.swatch-cell.on .swatch { border-color: #fff; }
.swatch-name { font: 600 .6rem/1.15 system-ui, sans-serif; color: #b9bec7; text-align: center; }
.swatch-cell:hover .swatch-name, .swatch-cell.on .swatch-name { color: #fff; }

/* ─── paket görünümü: Starter en az, Premium en çok. Bölümler client-side gizlenir (data-pkg). ─── */
/* Starter: sadece hero + hizmetler + çalışma saatleri(iletişim içinde) + iletişim. Gerisi gizli. */
html[data-pkg="starter"] #menu,
html[data-pkg="starter"] #gallery,
html[data-pkg="starter"] [data-sec="reviews"],
html[data-pkg="starter"] [data-sec="about"],
/* Randevu bölümü yalnız Premium'da */
html[data-pkg="starter"] [data-sec="booking"],
html[data-pkg="business"] [data-sec="booking"] { display: none !important; }
/* Randevu bölümü — tema-bağımsız bant (--primary/--accent ile skinlenir, her temada tutarlı) */
.sec-booking { text-align: center; background: color-mix(in srgb, var(--primary) 6%, transparent); }
.sec-booking .wrap { padding-top: 3.2rem; padding-bottom: 3.2rem; }
.sec-booking .book-sub { opacity: .8; margin: .4rem 0 1.4rem; }
.sec-booking .cta { display: flex; justify-content: center; }
.sec-booking .btn { background: var(--accent); color: #fff; padding: .85rem 2rem; border-radius: 8px; text-decoration: none; font-weight: 700; }
.sec-booking .btn:hover { filter: brightness(1.08); }
@media (max-width: 600px) {
  .demo-dock { left: .8rem; bottom: .8rem; gap: .4rem; }
  .dock-btn { width: 42px; height: 42px; }
}

/* ─── dükkan logosu/iconu (nav marka) — tüm temalar ─── */
.brand-logo { height: 30px; width: auto; max-width: 130px; object-fit: contain; vertical-align: middle; margin-right: .55rem; border-radius: 6px; }
.brand-emoji { margin-right: .45rem; }

/* ═══ paylaşılan yapı varyantları ═══
   currentColor tabanlı → her temanın metin/accent rengine uyar; compound selector (0,2,0)
   tema base kurallarını (0,1,0) yener çünkü common.css tema CSS'inden ÖNCE yüklenir. */

/* — hizmet düzenleri (varsayılan grid tema CSS'inde; şunlar reorder eder) — */
.cards.cards-list { display: flex; flex-direction: column; gap: 1rem; }
.cards.cards-list .card { display: flex; align-items: center; gap: 1.3rem; text-align: left; }
.cards.cards-list .card .ico { margin-bottom: 0; flex-shrink: 0; }
.cards.cards-list .card .no { position: static; }
.cards.cards-list .card > div, .cards.cards-list .card h3 { margin-bottom: .1rem; }
.cards.cards-bento { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.4rem; }
.cards.cards-bento .card:first-child { grid-column: span 2; }
@media (max-width: 640px) { .cards.cards-bento .card:first-child { grid-column: auto; } }

/* — galeri mozaik (bazı figürler 2 satır kaplar) — */
.gallery.gallery-mosaic { grid-auto-rows: 200px; }
.gallery.gallery-mosaic figure { height: 100%; }
.gallery.gallery-mosaic figure img { height: 100%; }
.gallery.gallery-mosaic figure:nth-child(6n+1) { grid-row: span 2; }

/* ═══ fiyat listesi yapıları (.pl-*) — rows dışı; renkler var(--accent)/currentColor ═══ */
.pl-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.pl-cards .pl-card { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: .35rem 1rem; padding: 1.1rem 1.3rem; border: 1px solid color-mix(in srgb, currentColor 14%, transparent); border-radius: 14px; }
.pl-cards .pl-name { font-weight: 700; }
.pl-cards .pl-price { color: var(--accent); font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pl-cards .pl-desc { grid-column: 1 / -1; font-size: .86rem; opacity: .68; }

.pl-table { width: 100%; border-collapse: collapse; }
.pl-table td { padding: .95rem .4rem; border-bottom: 1px solid color-mix(in srgb, currentColor 15%, transparent); vertical-align: baseline; }
.pl-table tr:last-child td { border-bottom: 0; }
.pl-table .pl-name { font-weight: 600; }
.pl-table .pl-name small { display: block; font-weight: 400; opacity: .62; font-size: .85rem; }
.pl-table .pl-price { text-align: right; color: var(--accent); font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }

.pl-pill { display: flex; flex-direction: column; gap: .65rem; }
.pl-pill .pl-chip { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 1.3rem; border: 1px solid color-mix(in srgb, currentColor 16%, transparent); border-radius: 999px; }
.pl-pill .pl-name { font-weight: 600; }
.pl-pill .pl-name small { font-weight: 400; opacity: .62; margin-left: .5rem; }
.pl-pill .pl-price { color: var(--accent); font-weight: 700; white-space: nowrap; }

.pl-feature { display: flex; flex-direction: column; gap: 1.3rem; }
.pl-feature .pl-line { border-bottom: 1px solid color-mix(in srgb, currentColor 12%, transparent); padding-bottom: 1.1rem; }
.pl-feature .pl-line:last-child { border-bottom: 0; }
.pl-feature .pl-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.pl-feature .pl-name { font-weight: 600; font-size: 1.12rem; }
.pl-feature .pl-price { color: var(--accent); font-weight: 700; font-size: 1.15rem; white-space: nowrap; }
.pl-feature .pl-desc { margin-top: .3rem; opacity: .7; font-size: .92rem; }

/* ---- Lightbox (galeri fotoğrafları; base.html JS kurar, 10 temada ortak) ---- */
#gallery img { cursor: zoom-in; }
.lb {
  position: fixed; inset: 0; z-index: 100; display: none;
  align-items: center; justify-content: center;
  background: rgba(8, 8, 10, .92);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.lb.on { display: flex; }
.lb img {
  max-width: min(92vw, 1100px); max-height: 86vh;
  border-radius: 10px; box-shadow: 0 24px 80px rgba(0, 0, 0, .55);
  animation: lbin .18s ease;
}
@keyframes lbin { from { opacity: 0; transform: scale(.97); } }
.lb button {
  position: absolute; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%; padding: 0;
  border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08);
  color: #fff; font-size: 1.7rem; line-height: 1; cursor: pointer; font-family: inherit;
}
.lb button:hover { background: rgba(255, 255, 255, .2); }
.lb .lb-x { top: 1rem; right: 1rem; font-size: 1.15rem; }
.lb .lb-p { left: .9rem; } .lb .lb-n { right: .9rem; }
.lb .lb-c {
  position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%);
  color: rgba(255, 255, 255, .75); font-size: .85rem; letter-spacing: 1px;
}
.lb.solo .lb-p, .lb.solo .lb-n, .lb.solo .lb-c { display: none; }  /* tek foto: gezinme gizli */
@media (max-width: 560px) {
  .lb button { width: 38px; height: 38px; }
  .lb .lb-p { left: .4rem; } .lb .lb-n { right: .4rem; }
}
@media (prefers-reduced-motion: reduce) { .lb img { animation: none; } }
