/* ==========================================================================================
   manueltekerleklisandalye.com — tema katmanı (style.css'ten SONRA yüklenir).
   Kimlik: sakin ve güven veren mağaza görünümü — sıcak kirli beyaz zemin, tek marka rengi (koyu yeşil), kehribar vurgu,
   düz renkler, ince çizgiler, küçük köşe yarıçapı, 500–700 yazı ağırlığı; büyük gölge, cam efekti, leke/blob, gradyan yok.
   Bölümler: T1 Tokens · T2 Genel bileşenler · T3 Header/nav · T4 Ana sayfa (x-*) · T5 3B görüntüleyici (v3d)
   T6 Kategori/ürün 3B blokları · T7 3B sergi · T8 Ölçü hesaplayıcı · T9 Sihirbaz · T10 Hareket azaltma
   ========================================================================================== */

/* ---------- T1. Tokens ---------- */
:root {
  --paper: #f6f5f1;
  --card: #ffffff;
  --ink: #17201c;
  --ink-2: #3b4742;
  --mut: #5f6b66;          /* beyazda 5.9, zeminde 5.4 kontrast */
  --line: #e4e6e1;
  --line-2: #d2d6cf;
  /* Marka rengi (değişken adları eski tasarımdan: "red" = ana marka rengi, burada koyu yeşil) */
  --red: #1d6a4b;          /* beyaz yazı 6.0 kontrast */
  --red-d: #15523a;
  --red-deep: #0d3626;
  --red-soft: #e6f1ec;
  --red-light: #9fcfb8;
  --coral: #c8781f;        /* kehribar vurgu (ikon, nokta, rozet zemini) */
  --coral-d: #8a4f0c;      /* beyazda 6.2 kontrast (metin) */
  --coral-soft: #faeedd;
  --sand: #efede6;
  --focus: #15523a;
  --r-xl: 16px;
  --r-lg: 12px;
  --r-md: 10px;
  --r-sm: 8px;
  --sh-soft: 0 1px 2px rgba(23, 32, 28, .05);
  --sh-lift: 0 2px 6px rgba(23, 32, 28, .06), 0 10px 24px -16px rgba(23, 32, 28, .22);
}
::selection { background: var(--red); color: #fff; }
body { background: var(--paper); }

/* ---------- T2. Genel bileşen ayarları ---------- */
.btn { border-radius: var(--r-md); font-weight: 700; letter-spacing: 0; }
.btn-primary { background: var(--red); color: #fff; border: 1px solid var(--red); box-shadow: none; }
.btn-primary:hover { background: var(--red-d); border-color: var(--red-d); box-shadow: none; transform: none; }
.btn-wa { background: var(--wa-d); border: 1px solid var(--wa-d); box-shadow: none; }
.btn-wa:hover { background: #0c6531; border-color: #0c6531; transform: none; box-shadow: none; }
.btn-ghost { background: #fff; border: 1px solid var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--red); color: var(--red-d); background: var(--red-soft); }
.btn-lg { min-height: 52px; padding: 14px 24px; font-size: 15.5px; }
.x-btn-ink { background: var(--ink); color: #fff; border-color: var(--ink); }
.x-btn-ink:hover { background: var(--red-d); border-color: var(--red-d); }
/* Bölüm üstü küçük etiketler (eyebrow) bu temada kullanılmaz */
.x-eyebrow { display: none; }
.x-sec { padding-block: clamp(26px, 4vw, 56px); }
.x-sec + .x-sec { padding-top: 0; }
.x-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-bottom: clamp(16px, 2.2vw, 26px); }
.x-head h2 { margin: 0; font-size: clamp(21px, 2.4vw, 30px); line-height: 1.2; font-weight: 700; letter-spacing: -.01em; text-wrap: balance; }
.sec-link { color: var(--red-d); font-weight: 700; }
.pcard, .card { border-radius: var(--r-lg); }
.badge { border-radius: 6px; letter-spacing: .02em; }
.badge-red, .badge-sale { background: var(--coral); color: #fff; }
.badge-ship { background: var(--red-soft); color: var(--red-d); border: 1px solid var(--red-light); }
.badge-dark { background: var(--ink); color: #fff; }
.chip, .fchip { border-radius: 8px; }
.chip.is-on, .fchip.is-on { background: var(--red); border-color: var(--red); color: #fff; }
.price, .prc { color: var(--ink); }
.pcard-price .price { color: var(--red-d); }
.pcard-add { border-radius: var(--r-sm); background: var(--red); color: #fff; border: 0; box-shadow: none; }
.pcard-add:hover:not(:disabled) { background: var(--red-d); transform: none; }
.pcard-add:disabled { background: var(--sand); color: var(--mut); }
.pcard-add.is-done { background: var(--red-deep); }
.pcard:hover { transform: none; box-shadow: var(--sh-lift); border-color: var(--line-2); }
.pcard-media { background: #fff; }
.pc-tool { background: #fff; border: 1px solid var(--line); }
.pc-tool[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.ptabs-nav button { border-radius: var(--r-sm); font-weight: 700; }
.ptabs-nav button[aria-selected="true"] { background: var(--red); color: #fff; border-color: var(--red); box-shadow: none; }
.price-box { background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-lg); }
.trust-i { border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
.trust-ic { background: var(--red-soft); color: var(--red-d); border-radius: var(--r-sm); }

/* ---------- T3. Header / nav ---------- */
.topbar { background: var(--red-deep); color: #fff; }
.ticker { position: relative; overflow: hidden; min-height: 34px; display: flex; align-items: center; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-track { display: flex; width: max-content; animation: ticker 44s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-list { display: flex; flex: none; margin: 0; padding: 0; list-style: none; }
.ticker-list li { display: inline-flex; align-items: center; gap: 8px; padding: 0 20px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.ticker-list .ic { width: 15px; height: 15px; color: var(--red-light); }
.ticker-heart { margin-left: 20px; color: var(--red-light); font-size: 9px; }
.ticker-heart::before { content: "•"; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.hdr { background: #fff; border-bottom: 1px solid var(--line); }
.logo img { width: auto; height: 42px; }
@media (min-width: 768px) { .logo img { height: 48px; } }
.hdr-search input { border-radius: var(--r-md); border: 1px solid var(--line-2); background: #fff; }
.hdr-search input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(29, 106, 75, .14); }
.hdr-search-btn { background: var(--red); border-radius: var(--r-sm); }
#basketCount { background: var(--coral); color: #fff; }
.nav { border-bottom: 1px solid var(--line); background: #fff; }
.nav-link { border-radius: var(--r-sm); font-weight: 600; }
.nav-link:hover, .nav-link.is-on { background: var(--red-soft); color: var(--red-d); }
.nav-link.nav-3d { color: var(--red-d); font-weight: 700; }
.nav-link.nav-3d .ic { color: var(--coral); }
.nav-link.nav-3d::after { content: "AR"; margin-left: 6px; padding: 2px 6px; border-radius: 4px; background: var(--coral-soft); color: var(--coral-d); font-size: 10.5px; font-weight: 700; letter-spacing: .04em; }

/* ---------- T4. Ana sayfa ---------- */
.x-hero { position: relative; padding: clamp(22px, 3.6vw, 48px) 0 clamp(22px, 3.2vw, 40px); background: #fff; border-bottom: 1px solid var(--line); }
.x-hero-bg, .x-blob, .x-grid { display: none; }
.x-hero-in { position: relative; display: grid; gap: 28px; align-items: center; }
@media (min-width: 1024px) { .x-hero-in { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 44px; } }
.x-chip { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 6px 12px 6px 10px; border-radius: 6px; background: var(--red-soft); border: 1px solid var(--red-light); font-size: 13px; font-weight: 600; color: var(--red-d); }
.x-chip b { color: var(--red-deep); }
.x-chip-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.x-hero h1 { margin: 0 0 14px; font-size: clamp(30px, 4.2vw, 48px); line-height: 1.1; font-weight: 700; letter-spacing: -.02em; text-wrap: balance; color: var(--ink); }
.x-hero-sub { margin: 0 0 20px; max-width: 56ch; font-size: clamp(15.5px, 1.25vw, 17px); line-height: 1.6; color: var(--ink-2); }
.x-hero-sub b { color: var(--ink); font-weight: 700; }
.x-hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.x-deals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 20px; padding: 0; list-style: none; max-width: 560px; }
.x-deal { display: grid; gap: 1px; padding: 10px 10px 9px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--paper); text-align: left; min-width: 0; }
.x-deal small { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--mut); }
.x-deal b { font-size: clamp(15px, 1.7vw, 19px); font-weight: 700; letter-spacing: -.01em; line-height: 1.15; color: var(--ink); overflow-wrap: anywhere; }
.x-deal span { font-size: 12px; color: var(--mut); }
.x-deal-price b { color: var(--red-d); }
.x-hero-facts { display: grid; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
@media (min-width: 560px) { .x-hero-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.x-hero-facts li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); }
.x-hero-facts .ic { width: 34px; height: 34px; padding: 8px; flex: none; border-radius: 8px; background: var(--red-soft); color: var(--red-d); }
.x-hero-facts span { display: grid; font-size: 12.5px; line-height: 1.35; color: var(--mut); font-weight: 500; }
.x-hero-facts b { font-size: 13.5px; color: var(--ink); font-weight: 700; }
.x-hero-facts a { color: var(--red-d); font-weight: 600; }
/* 3B sahne kartı */
.x-stage { position: relative; display: grid; gap: 10px; padding: 10px; border-radius: var(--r-xl); background: var(--paper); border: 1px solid var(--line); }
.x-stage-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.x-stage-tabs::-webkit-scrollbar { display: none; }
.x-stage-tabs button { flex: none; display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 8px; border: 1px solid var(--line-2); background: #fff; font-size: 13px; font-weight: 600; color: var(--ink-2); transition: border-color .2s, background .2s, color .2s; }
.x-stage-tabs button img { width: 32px; height: 32px; border-radius: 6px; background: var(--paper); object-fit: contain; }
.x-stage-tabs button[aria-selected="true"] { border-color: var(--red); background: var(--red); color: #fff; }
.x-stage-tabs button[aria-selected="true"] img { background: #fff; }
.x-stage-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 4px 4px 2px; }
.x-stage-foot > div { display: grid; gap: 2px; min-width: 0; flex: 1 1 260px; }
.x-stage-foot b { font-size: 15.5px; font-weight: 700; }
.x-stage-foot small { font-size: 13px; color: var(--mut); line-height: 1.45; }
.x-stage-note { margin: 0; text-align: center; font-size: 12px; color: var(--mut); }
/* Durum kartları */
.x-needs { display: grid; gap: 12px; }
@media (min-width: 640px) { .x-needs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .x-needs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.x-need { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; padding: 16px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); transition: border-color .2s, box-shadow .2s; }
.x-need::after { display: none; }
.x-need:hover { border-color: var(--red-light); box-shadow: var(--sh-lift); }
.x-need-ic { grid-row: span 2; width: 46px; height: 46px; display: grid; place-items: center; border-radius: var(--r-md); background: var(--red-soft); color: var(--red-d); }
.x-need-ic .ic { width: 22px; height: 22px; }
.x-need-t { display: grid; gap: 2px; }
.x-need-t b { font-size: 16px; font-weight: 700; color: var(--ink); }
.x-need-t small { font-size: 13.5px; color: var(--mut); line-height: 1.45; }
.x-need-m { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 13px; font-weight: 700; color: var(--red-d); }
.x-need-m .ic { width: 15px; height: 15px; }
/* Kategori kartları (3B posterli) */
.x-cats { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .x-cats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.x-cat { position: relative; display: grid; align-content: start; gap: 6px; padding: 10px 10px 14px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); transition: border-color .2s, box-shadow .2s; }
.x-cat:hover { border-color: var(--red-light); box-shadow: var(--sh-lift); }
@media (min-width: 768px) { .x-cat-lg { grid-column: span 2; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; } .x-cat-lg .x-cat-t b { font-size: 18px; } }
.x-cat-img { position: relative; display: block; aspect-ratio: 1; border-radius: var(--r-md); background: var(--paper); overflow: hidden; }
.x-cat-img img { width: 100%; height: 100%; object-fit: contain; }
.x-cat-3d { position: absolute; left: 8px; top: 8px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 7px; border-radius: 5px; background: #fff; border: 1px solid var(--line); font-style: normal; font-size: 11px; font-weight: 700; color: var(--red-d); }
.x-cat-3d .ic { width: 13px; height: 13px; color: var(--coral); }
.x-cat-t { display: grid; gap: 3px; padding: 0 4px; }
.x-cat-t b { font-size: 15px; font-weight: 700; line-height: 1.25; }
.x-cat-t small { font-size: 12.5px; color: var(--mut); font-weight: 500; }
.x-cat-go { position: absolute; right: 12px; bottom: 14px; width: 18px; height: 18px; color: var(--red); opacity: 0; transition: opacity .2s; }
.x-cat:hover .x-cat-go { opacity: 1; }
/* Karşılaştırma tablosu */
.x-cmp { display: grid; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.x-cmp-row { display: grid; grid-template-columns: 1fr; }
.x-cmp-row > * { padding: 12px 16px; font-size: 14px; line-height: 1.45; border-top: 1px solid var(--line); }
.x-cmp-lab { font-weight: 700; color: var(--ink); background: var(--paper); }
.x-cmp-hd .x-cmp-lab { display: none; }
.x-cmp-col { display: grid; justify-items: center; gap: 4px; text-align: center; border-top: 0 !important; padding: 16px; }
.x-cmp-col img { width: 120px; height: 120px; object-fit: contain; }
.x-cmp-col b { font-size: 15px; font-weight: 700; color: var(--ink); }
.x-cmp-col small { font-size: 12.5px; color: var(--red-d); font-weight: 600; }
.x-cmp-col:hover b { color: var(--red); }
.x-cmp-note { margin-top: 10px; }
@media (max-width: 767px) {
  .x-cmp-hd { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .x-cmp-col { padding: 12px 6px; } .x-cmp-col img { width: 72px; height: 72px; } .x-cmp-col b { font-size: 13px; }
  .x-cmp-row:not(.x-cmp-hd) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .x-cmp-row:not(.x-cmp-hd) .x-cmp-lab { grid-column: 1 / -1; padding: 8px 12px; font-size: 12.5px; }
  .x-cmp-row:not(.x-cmp-hd) > [role="cell"] { font-size: 12.5px; padding: 10px 8px; border-left: 1px solid var(--line); }
  .x-cmp-row:not(.x-cmp-hd) > [role="cell"]:nth-child(2) { border-left: 0; }
}
@media (min-width: 768px) {
  .x-cmp-row { grid-template-columns: 200px repeat(3, minmax(0, 1fr)); }
  .x-cmp-hd .x-cmp-lab { display: block; background: var(--card); }
  .x-cmp-row > [role="cell"], .x-cmp-col { border-left: 1px solid var(--line); }
}
/* Araç kartları */
.x-tools { display: grid; gap: 12px; }
@media (min-width: 900px) { .x-tools { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.x-tool { position: relative; display: grid; align-content: start; gap: 8px; padding: 22px; border-radius: var(--r-lg); color: #fff; overflow: hidden; min-height: 210px; transition: box-shadow .2s; }
.x-tool:hover { box-shadow: var(--sh-lift); transform: none; }
.x-tool::after { display: none; }
.x-tool-3d { background: var(--red-d); }
.x-tool-calc { background: #2a3a44; }
.x-tool-wiz { background: var(--coral-d); }
.x-tool-ic { width: 48px; height: 48px; display: grid; place-items: center; border-radius: var(--r-md); background: rgba(255, 255, 255, .14); }
.x-tool-ic .ic { width: 24px; height: 24px; }
.x-tool b { font-size: 19px; font-weight: 700; margin-top: 4px; }
.x-tool > span:not(.x-tool-ic) { font-size: 14.5px; line-height: 1.55; color: rgba(255, 255, 255, .9); max-width: 42ch; }
.x-tool i { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 8px; font-style: normal; font-weight: 700; font-size: 14px; }
.x-tool i .ic { width: 16px; height: 16px; }
.x-tool, .x-tool * { --focus: #fff; }
/* Rehber kartları */
.x-posts { display: grid; gap: 12px; }
@media (min-width: 768px) { .x-posts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.x-post { display: grid; align-content: start; gap: 8px; padding: 20px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); transition: border-color .2s, box-shadow .2s; }
.x-post:hover { border-color: var(--red-light); box-shadow: var(--sh-lift); }
.x-post b { font-size: 16.5px; line-height: 1.3; font-weight: 700; }
.x-post > span { font-size: 14px; line-height: 1.55; color: var(--mut); }
.x-post i { display: inline-flex; align-items: center; gap: 6px; font-style: normal; font-weight: 700; font-size: 13.5px; color: var(--red-d); }
.x-post i .ic { width: 15px; height: 15px; }
/* Yardım kutusu (SSS yanında) */
.x-help { display: flex; gap: 12px; align-items: flex-start; margin: 16px 0; padding: 14px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); color: var(--ink); }
.x-help > .ic { width: 40px; height: 40px; padding: 9px; border-radius: var(--r-sm); background: var(--wa-d); color: #fff; flex: none; }
.x-help span { display: grid; gap: 3px; }
.x-help b { font-weight: 700; }
.x-help small { font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }
.brand-grid a { border-radius: var(--r-sm); border: 1px solid var(--line); background: #fff; }

/* ---------- T5. 3B görüntüleyici ---------- */
.v3d { position: relative; display: grid; gap: 10px; }
.v3d-mv { --poster-color: transparent; --progress-bar-color: transparent; width: 100%; height: 340px; display: block; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); outline: none; }
.v3d-lg .v3d-mv { height: clamp(340px, 46vw, 500px); }
.v3d-sm .v3d-mv { height: 280px; }
model-viewer:not(:defined) > * { display: none; }
.v3d-mv:not(:defined) { background: var(--poster, none) center / contain no-repeat, #fff; }
.v3d-badge { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 6px; background: #fff; border: 1px solid var(--line); font-size: 12px; font-weight: 700; color: var(--ink-2); pointer-events: none; }
.v3d-badge .ic { width: 15px; height: 15px; color: var(--coral); }
.v3d-progress { position: absolute; left: 22%; right: 22%; bottom: 16px; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; transition: opacity .4s; }
.v3d-progress span { display: block; height: 100%; width: 0; border-radius: 3px; background: var(--red); transition: width .2s; }
.v3d.is-loaded .v3d-progress { opacity: 0; }
.v3d-ar { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: var(--r-sm); background: var(--ink); color: #fff; font-weight: 700; font-size: 13.5px; }
.v3d-ar .ic { width: 17px; height: 17px; color: var(--red-light); }
/* Özellik noktaları */
.v3d-hs { position: relative; width: 30px; height: 30px; padding: 0; border: 0; background: none; cursor: pointer; --min-hotspot-opacity: 0; }
.v3d-hs:not([data-visible]) { opacity: .25; }
.v3d-hs-dot { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--coral); color: #fff; font-size: 12px; font-weight: 700; box-shadow: 0 0 0 4px rgba(200, 120, 31, .22), 0 4px 10px -4px rgba(0, 0, 0, .3); transition: transform .2s; }
.v3d-hs:hover .v3d-hs-dot, .v3d-hs.is-open .v3d-hs-dot { transform: scale(1.1); background: var(--red); box-shadow: 0 0 0 4px rgba(29, 106, 75, .22), 0 4px 10px -4px rgba(0, 0, 0, .3); }
.v3d-hs-tip { position: absolute; left: 36px; top: 50%; transform: translateY(-50%); width: max-content; max-width: 220px; padding: 10px 12px; border-radius: var(--r-sm); background: #fff; border: 1px solid var(--line-2); box-shadow: var(--sh-lift); text-align: left; font-size: 12.5px; line-height: 1.45; color: var(--ink-2); font-weight: 500; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 2; }
.v3d-hs-tip b { display: block; margin-bottom: 2px; font-size: 13px; color: var(--ink); }
.v3d-hs:hover .v3d-hs-tip, .v3d-hs.is-open .v3d-hs-tip, .v3d-hs:focus-visible .v3d-hs-tip { opacity: 1; }
.v3d.hs-off .v3d-hs { display: none; }
.v3d-dim { padding: 4px 9px; border: 0; border-radius: 5px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; pointer-events: none; }
.v3d-dim[hidden] { display: none; }
/* Araç çubuğu */
.v3d-tools { display: flex; flex-wrap: wrap; gap: 6px; }
.v3d-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 7px 12px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: #fff; font-size: 13px; font-weight: 600; color: var(--ink-2); transition: border-color .15s, color .15s, background .15s; }
.v3d-btn .ic { width: 15px; height: 15px; }
.v3d-btn:hover { border-color: var(--red); color: var(--red-d); }
.v3d-btn[aria-pressed="true"] { background: var(--red-soft); border-color: var(--red-light); color: var(--red-d); }
.v3d-btn-icon { padding-inline: 10px; margin-left: auto; }
.v3d-colors { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.v3d-swatches { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--mut); }
.v3d-swatches span { margin-right: 2px; }
.v3d-swatches button { width: 24px; height: 24px; border-radius: 50%; background: var(--sw); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line-2); transition: box-shadow .15s; }
.v3d-swatches button[aria-checked="true"] { box-shadow: 0 0 0 2px var(--red); }
.v3d-note { margin: 0; font-size: 12.5px; color: var(--mut); line-height: 1.5; }
.v3d:fullscreen { background: #fff; padding: 16px; align-content: center; }
.v3d:fullscreen .v3d-mv { height: calc(100vh - 140px); }

/* ---------- T6. Kategori ve ürün sayfasındaki 3B bloklar ---------- */
.cat-3d { display: grid; gap: 18px; align-items: center; margin: 4px 0 22px; padding: 14px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); }
@media (min-width: 900px) { .cat-3d { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); padding: 16px 24px 16px 16px; } }
.cat-3d-copy { display: grid; gap: 10px; }
.cat-3d-copy h2 { margin: 0; font-size: clamp(18px, 1.9vw, 22px); font-weight: 700; }
.cat-3d-copy p { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.6; }
.cat-3d-copy ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.cat-3d-copy li { display: flex; gap: 8px; font-size: 14px; color: var(--ink-2); }
.cat-3d-copy li .ic { width: 18px; height: 18px; flex: none; color: var(--red); margin-top: 1px; }
.cat-3d-acts { display: flex; flex-wrap: wrap; gap: 8px; }
/* Ürün galerisi: Fotoğraf / 3B sekmesi */
.gal-mode { display: inline-flex; gap: 4px; padding: 3px; margin-bottom: 10px; border-radius: var(--r-sm); background: var(--paper); border: 1px solid var(--line); }
.gal-mode button { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 6px 12px; border-radius: 6px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.gal-mode button .ic { width: 15px; height: 15px; }
.gal-mode button[aria-selected="true"] { background: #fff; color: var(--red-d); box-shadow: var(--sh-soft); }
.gal-mode button[data-gal-mode="3d"] .ic { color: var(--coral); }
.gal-3d[hidden] { display: none; }
.p3d-teaser { display: flex; align-items: center; gap: 12px; margin: 12px 0; padding: 12px 14px; border-radius: var(--r-md); background: var(--red-soft); border: 1px solid var(--red-light); font-size: 13.5px; color: var(--ink-2); cursor: pointer; text-align: left; width: 100%; }
.p3d-teaser img { width: 54px; height: 54px; object-fit: contain; border-radius: 8px; background: #fff; flex: none; }
.p3d-teaser b { display: block; color: var(--ink); font-size: 14px; }
.p3d-teaser .ic { width: 18px; height: 18px; margin-left: auto; color: var(--red); flex: none; }

/* ---------- T7. 3B sergi ---------- */
.sergi-hero { padding: clamp(22px, 3.2vw, 40px) 0 12px; background: #fff; border-bottom: 1px solid var(--line); }
.sergi-hero h1 { margin: 6px 0 10px; font-size: clamp(26px, 3.4vw, 40px); font-weight: 700; letter-spacing: -.015em; line-height: 1.12; }
.sergi-hero p { margin: 0; max-width: 66ch; color: var(--ink-2); font-size: 15.5px; line-height: 1.6; }
.sergi { display: grid; gap: 18px; padding-block: 18px 48px; }
@media (min-width: 1024px) { .sergi { grid-template-columns: 300px minmax(0, 1fr); align-items: start; } }
.sergi-list { display: grid; gap: 8px; }
@media (max-width: 1023px) { .sergi-list { grid-auto-flow: column; grid-auto-columns: 210px; overflow-x: auto; scrollbar-width: none; } }
@media (min-width: 1024px) { .sergi-list { position: sticky; top: calc(var(--hdr-h) + 16px); } }
.sergi-item { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 10px; align-items: center; padding: 8px; border-radius: var(--r-md); border: 1px solid var(--line); background: #fff; text-align: left; transition: border-color .15s, box-shadow .15s; }
.sergi-item img { width: 56px; height: 56px; object-fit: contain; border-radius: 8px; background: var(--paper); }
.sergi-ic, .x-stage-tabs button > .ic { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 8px; background: var(--paper); color: var(--red-d); }
.x-stage-tabs button > .ic { width: 32px; height: 32px; padding: 6px; border-radius: 6px; }
.sergi-item b { display: block; font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.25; }
.sergi-item small { font-size: 12px; color: var(--mut); }
.sergi-item[aria-selected="true"] { border-color: var(--red); box-shadow: 0 0 0 2px rgba(29, 106, 75, .14); }
.sergi-stage { display: grid; gap: 14px; padding: 14px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); }
.sergi-info { display: grid; gap: 14px; }
@media (min-width: 768px) { .sergi-info { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } }
.sergi-info h2 { margin: 0 0 4px; font-size: 21px; font-weight: 700; }
.sergi-info p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.sergi-dims { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.sergi-dims span { padding: 5px 11px; border-radius: 6px; background: var(--paper); border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.sergi-dims b { color: var(--ink); }
.ar-steps { display: grid; gap: 12px; margin: 8px 0 0; padding: 0; list-style: none; counter-reset: s; }
@media (min-width: 768px) { .ar-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ar-steps li { position: relative; padding: 16px 16px 16px 56px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); font-size: 14px; line-height: 1.5; color: var(--ink-2); counter-increment: s; }
.ar-steps li::before { content: counter(s); position: absolute; left: 14px; top: 14px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--red); color: #fff; font-weight: 700; }
.ar-steps b { display: block; color: var(--ink); margin-bottom: 2px; }

/* ---------- T8. Ölçü hesaplayıcı ---------- */
.calc { display: grid; gap: 18px; padding-block: 18px 48px; }
@media (min-width: 1024px) { .calc { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.calc-card { padding: 22px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); }
.calc-card h2 { margin: 0 0 14px; font-size: 18px; font-weight: 700; }
.calc-grid { display: grid; gap: 14px; }
@media (min-width: 560px) { .calc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.calc-field { display: grid; gap: 6px; }
.calc-field label { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.calc-field small { font-size: 12px; color: var(--mut); }
.calc-in { display: flex; align-items: center; border: 1px solid var(--line-2); border-radius: var(--r-md); background: #fff; overflow: hidden; }
.calc-in:focus-within { border-color: var(--red); box-shadow: 0 0 0 3px rgba(29, 106, 75, .14); }
.calc-in input, .calc-in select { flex: 1; min-width: 0; border: 0; padding: 12px 14px; font-size: 17px; font-weight: 700; background: none; outline: none; }
.calc-in span { padding: 0 14px; font-size: 13px; font-weight: 600; color: var(--mut); }
.calc-out { display: grid; gap: 12px; }
.calc-res { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; align-items: center; padding: 14px 16px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); }
.calc-res .ic { grid-row: span 2; width: 42px; height: 42px; padding: 10px; border-radius: var(--r-sm); background: var(--red-soft); color: var(--red-d); }
.calc-res b { font-size: 20px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.calc-res small { font-size: 13px; color: var(--mut); line-height: 1.45; }
.calc-res.is-warn { background: var(--coral-soft); border-color: #ecc89a; }
.calc-res.is-warn .ic { background: #fff; color: var(--coral-d); }
.calc-res.is-ok { background: var(--red-soft); border-color: var(--red-light); }
.calc-viz { position: relative; height: 230px; border-radius: var(--r-md); background: var(--paper); border: 1px solid var(--line); overflow: hidden; }
.calc-viz svg { width: 100%; height: 100%; }
.calc-recs { display: grid; gap: 10px; }
.calc-recs h3 { margin: 4px 0 0; font-size: 16px; font-weight: 700; }

/* ---------- T9. Sihirbaz ---------- */
.wiz-opt input:checked + span, .wiz-opt.is-on { border-color: var(--red); background: var(--red-soft); }
@media (min-width: 900px) { .wiz-rec:has(.wiz-3d) { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; } .wiz-rec:has(.wiz-3d) .wiz-rec-cta { grid-column: 1 / -1; } }
.wiz-3d .v3d-mv { height: 260px; }
.wiz-extra { margin: 12px 0 0; font-size: 14px; color: var(--ink-2); }
.wiz-extra a { color: var(--red-d); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.cat-3d-wrap { margin: 0 0 18px; }
.cat-3d-wrap > summary { list-style: none; }
.cat-3d-wrap > summary::-webkit-details-marker { display: none; }
.cat-3d-wrap > summary span { display: block; }
.cat-3d-wrap[open] > summary { margin-bottom: 12px; }
.cat-3d-wrap[open] > summary .ic { transform: rotate(45deg); }
.cat-3d-copy li span b { color: var(--ink); }
/* hidden özniteliği bileşen display kurallarına yenilmesin (sekmeli 3B paneller) */
[data-v3d-pane][hidden], [data-gal-pane][hidden], .x-stage-pane[hidden], .sergi-stage[hidden] { display: none !important; }
/* Ürün galerisindeki 3B görünüm fotoğraf sahnesiyle aynı oranda */
.gal-3d .v3d-mv { height: auto; aspect-ratio: 1; max-height: 640px; }

/* ---------- T10. Hareket azaltma ---------- */
@media (prefers-reduced-motion: reduce) {
  .x-need, .x-cat, .x-tool, .x-post, .x-cat-img img, .pcard { transition: none !important; transform: none !important; }
  .ticker-track { animation: none; }
  .ticker { overflow-x: auto; }
  .ticker-list[aria-hidden="true"] { display: none; }
}
