/* ==========================================================================================
   hastatuvaletsandalyesi.com — tema katmanı (style.css'ten SONRA yüklenir).
   Kimlik: klinik ferahlık (deniz yeşili) + sıcak bakım (mercan). Bölümler:
   T1 Tokens · T2 Genel bileşen ayarları · 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: #f3f7f6;
  --card: #ffffff;
  --ink: #0f1d1c;
  --ink-2: #364644;
  --mut: #5a6967;
  --line: #e1e9e8;
  --line-2: #d0dcda;
  /* Marka rengi (değişken adları eski tasarımdan: "red" = ana marka rengi, burada deniz yeşili) */
  --red: #0b6e72;          /* beyaz yazı 5.9 kontrast */
  --red-d: #08585b;
  --red-deep: #053a3c;
  --red-soft: #e4f3f1;
  --red-light: #93d5cf;
  --coral: #ff7a45;
  --coral-d: #c4481a;      /* beyazda 4.6 kontrast (metin/rozet) */
  --coral-soft: #fff0e8;
  --sand: #fbf7f1;
  --focus: #08585b;
  --r-xl: 30px;
  --r-lg: 22px;
  --r-md: 16px;
  --sh-soft: 0 1px 2px rgba(10, 40, 40, .04), 0 10px 28px -14px rgba(10, 40, 40, .16);
  --sh-lift: 0 2px 6px rgba(10, 40, 40, .05), 0 26px 50px -20px rgba(5, 58, 60, .32);
}
::selection { background: var(--red); color: #fff; }

/* ---------- T2. Genel bileşen ayarları ---------- */
.btn-primary { background: linear-gradient(135deg, #0d7f83, var(--red-d)); box-shadow: 0 12px 26px -12px rgba(8, 88, 91, .6); }
.btn-primary:hover { box-shadow: 0 18px 34px -12px rgba(8, 88, 91, .6); }
.btn-ghost:hover { border-color: var(--red); color: var(--red-d); }
.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); transform: translateY(-2px); }
.x-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 12.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.x-eyebrow::before { content: ""; width: 18px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--red), var(--coral)); }
.x-sec { padding-block: clamp(28px, 4.5vw, 64px); }
.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(18px, 2.6vw, 30px); }
.x-head h2 { margin: 0; font-size: clamp(23px, 2.8vw, 36px); line-height: 1.12; font-weight: 800; letter-spacing: -.025em; text-wrap: balance; }
.pcard { border-radius: var(--r-lg); }
.chip.is-on, .fchip.is-on { background: var(--red); border-color: var(--red); color: #fff; }

/* ---------- T3. Header / nav ---------- */
.topbar { background: var(--red-deep); }
.topbar-note .dot { background: var(--coral); }
.logo img { width: auto; height: 44px; }
@media (min-width: 768px) { .logo img { height: 50px; } }
.hdr-search input { border-radius: 99px; }
.hdr-search-btn { background: var(--red); }
.nav-link.nav-3d { color: var(--red-d); font-weight: 800; }
.nav-link.nav-3d .ic { color: var(--coral); }
.nav-link.nav-3d::after { content: "AR"; margin-left: 6px; padding: 2px 6px; border-radius: 99px; background: var(--coral-soft); color: var(--coral-d); font-size: 10.5px; font-weight: 800; letter-spacing: .04em; }

/* ---------- T4. Ana sayfa ---------- */
.x-hero { position: relative; overflow: hidden; padding: clamp(22px, 4vw, 56px) 0 clamp(26px, 4vw, 48px); background: linear-gradient(180deg, #eaf6f4 0%, var(--paper) 100%); }
.x-hero-bg { position: absolute; inset: 0; pointer-events: none; }
.x-blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; }
.x-blob-1 { width: 520px; height: 520px; right: -120px; top: -160px; background: radial-gradient(circle, #9be0d8 0%, transparent 70%); }
.x-blob-2 { width: 420px; height: 420px; left: -140px; bottom: -200px; background: radial-gradient(circle, #ffd0b8 0%, transparent 70%); }
.x-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(11, 110, 114, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(11, 110, 114, .07) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(70% 70% at 70% 40%, #000 0%, transparent 75%); }
.x-hero-in { position: relative; display: grid; gap: 28px; align-items: center; }
@media (min-width: 1024px) { .x-hero-in { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 40px; } }
.x-chip { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px; padding: 7px 14px 7px 10px; border-radius: 99px; background: rgba(255, 255, 255, .8); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink-2); backdrop-filter: blur(6px); }
.x-chip b { color: var(--red-d); }
.x-chip-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 4px rgba(255, 122, 69, .18); }
.x-hero h1 { margin: 0 0 14px; font-size: clamp(32px, 5vw, 60px); line-height: 1.03; font-weight: 800; letter-spacing: -.035em; text-wrap: balance; color: var(--ink); }
.x-hero h1 em { font-style: normal; color: var(--red); background: linear-gradient(transparent 62%, rgba(255, 122, 69, .28) 62%); padding: 0 .06em; }
.x-hero-sub { margin: 0 0 22px; max-width: 54ch; font-size: clamp(15.5px, 1.3vw, 17.5px); line-height: 1.6; color: var(--ink-2); }
.x-hero-sub b { color: var(--ink); }
.x-hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.x-hero-facts { display: grid; gap: 10px; margin: 26px 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: rgba(255, 255, 255, .72); border: 1px solid var(--line); backdrop-filter: blur(6px); }
.x-hero-facts .ic { width: 34px; height: 34px; padding: 8px; flex: none; border-radius: 10px; 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: 600; }
.x-hero-facts b { font-size: 13.5px; color: var(--ink); font-weight: 800; }
.x-hero-facts a { color: var(--red-d); }
/* 3B sahne kartı */
.x-stage { position: relative; display: grid; gap: 12px; padding: 12px; border-radius: var(--r-xl); background: rgba(255, 255, 255, .72); border: 1px solid rgba(255, 255, 255, .9); box-shadow: var(--sh-lift); backdrop-filter: blur(10px); }
.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: 5px 12px 5px 5px; border-radius: 99px; border: 1.5px solid var(--line); background: #fff; font-size: 13px; font-weight: 700; color: var(--ink-2); transition: border-color .2s, background .2s, color .2s; }
.x-stage-tabs button img { width: 34px; height: 34px; border-radius: 50%; 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 6px 2px; }
.x-stage-foot > div { display: grid; gap: 2px; min-width: 0; flex: 1 1 260px; }
.x-stage-foot b { font-size: 16px; font-weight: 800; }
.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: 18px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); box-shadow: var(--sh-soft); transition: transform .3s var(--ease), box-shadow .3s, border-color .2s; overflow: hidden; }
.x-need::after { content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, rgba(147, 213, 207, .35), transparent 70%); transition: transform .4s var(--ease); }
.x-need:hover { transform: translateY(-3px); box-shadow: var(--sh-lift); border-color: var(--red-light); }
.x-need:hover::after { transform: scale(1.6); }
.x-need-ic { grid-row: span 2; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(135deg, var(--red-soft), #fff); border: 1px solid var(--line); color: var(--red-d); }
.x-need:nth-child(3n+2) .x-need-ic { background: linear-gradient(135deg, var(--coral-soft), #fff); color: var(--coral-d); }
.x-need-ic .ic { width: 24px; height: 24px; }
.x-need-t { display: grid; gap: 2px; }
.x-need-t b { font-size: 16.5px; font-weight: 800; letter-spacing: -.01em; 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: 8px; font-size: 13px; font-weight: 800; color: var(--red-d); }
.x-need-m .ic { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.x-need:hover .x-need-m .ic { transform: translateX(4px); }
/* 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: 12px 12px 16px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s, border-color .2s; }
.x-cat:hover { transform: translateY(-3px); box-shadow: var(--sh-lift); border-color: var(--red-light); }
@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: 20px; } }
.x-cat-img { position: relative; display: block; aspect-ratio: 1; border-radius: calc(var(--r-lg) - 6px); background: radial-gradient(75% 75% at 50% 42%, #fff 0%, #eef5f4 70%, #e3eeec 100%); overflow: hidden; }
.x-cat-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .6s var(--ease); }
.x-cat:hover .x-cat-img img { transform: scale(1.06) rotate(-1.5deg); }
.x-cat-3d { position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 99px; background: rgba(255, 255, 255, .92); font-style: normal; font-size: 11px; font-weight: 800; color: var(--red-d); box-shadow: var(--sh-soft); }
.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: 15.5px; font-weight: 800; line-height: 1.25; letter-spacing: -.01em; }
.x-cat-t small { font-size: 12.5px; color: var(--mut); font-weight: 600; }
.x-cat-go { position: absolute; right: 14px; bottom: 16px; width: 18px; height: 18px; color: var(--red); opacity: 0; transform: translateX(-6px); transition: opacity .25s, transform .25s var(--ease); }
.x-cat:hover .x-cat-go { opacity: 1; transform: none; }
/* Karşılaştırma tablosu */
.x-cmp { display: grid; border-radius: var(--r-xl); background: var(--card); border: 1px solid var(--line); box-shadow: var(--sh-soft); 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: 800; 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: 15.5px; font-weight: 800; color: var(--ink); }
.x-cmp-col small { font-size: 12.5px; color: var(--red-d); font-weight: 700; }
.x-cmp-col:hover b { color: var(--red); }
@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: 14px; }
@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: 24px; border-radius: var(--r-xl); color: #fff; overflow: hidden; min-height: 230px; transition: transform .3s var(--ease), box-shadow .3s; }
.x-tool:hover { transform: translateY(-4px); box-shadow: var(--sh-lift); }
.x-tool-3d { background: linear-gradient(140deg, #0b6e72, #053a3c); }
.x-tool-calc { background: linear-gradient(140deg, #2d3a52, #141c2b); }
.x-tool-wiz { background: linear-gradient(140deg, #ff8a5c, #c4481a); }
.x-tool::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 200px; height: 200px; border-radius: 50%; border: 26px solid rgba(255, 255, 255, .08); }
.x-tool-ic { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; background: rgba(255, 255, 255, .14); }
.x-tool-ic .ic { width: 26px; height: 26px; }
.x-tool b { font-size: 21px; font-weight: 800; letter-spacing: -.015em; margin-top: 6px; }
.x-tool > span:not(.x-tool-ic) { font-size: 14.5px; line-height: 1.55; color: rgba(255, 255, 255, .86); max-width: 40ch; }
.x-tool i { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 8px; font-style: normal; font-weight: 800; font-size: 14px; }
.x-tool i .ic { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.x-tool:hover i .ic { transform: translateX(4px); }
.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: 22px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s, border-color .2s; }
.x-post:hover { transform: translateY(-3px); box-shadow: var(--sh-lift); border-color: var(--red-light); }
.x-post-n { font-size: 13px; font-weight: 800; color: var(--coral-d); letter-spacing: .06em; }
.x-post b { font-size: 17px; line-height: 1.3; font-weight: 800; letter-spacing: -.01em; }
.x-post > span:not(.x-post-n) { 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: 800; 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: 16px; border-radius: var(--r-lg); background: #e9f8ef; border: 1px solid #c4ead3; color: var(--ink); }
.x-help > .ic { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--wa-d); color: #fff; flex: none; }
.x-help span { display: grid; gap: 3px; }
.x-help b { font-weight: 800; }
.x-help small { font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }

/* ---------- 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: calc(var(--r-xl) - 8px); background: radial-gradient(70% 70% at 50% 45%, #ffffff 0%, #eef6f5 60%, #e0ecea 100%); 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, radial-gradient(70% 70% at 50% 45%, #fff 0%, #eef6f5 60%, #e0ecea 100%); }
.v3d-badge { position: absolute; left: 14px; top: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 99px; background: rgba(255, 255, 255, .9); box-shadow: var(--sh-soft); font-size: 12px; font-weight: 800; 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: 18px; height: 4px; border-radius: 4px; background: rgba(11, 110, 114, .12); overflow: hidden; transition: opacity .4s; }
.v3d-progress span { display: block; height: 100%; width: 0; border-radius: 4px; background: linear-gradient(90deg, var(--red), var(--coral)); 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: 10px 16px; border-radius: 99px; background: var(--ink); color: #fff; font-weight: 800; font-size: 13.5px; box-shadow: var(--sh-lift); }
.v3d-ar .ic { width: 17px; height: 17px; color: var(--coral); }
/* Ö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: 28px; height: 28px; border-radius: 50%; background: var(--coral); color: #fff; font-size: 12.5px; font-weight: 800; box-shadow: 0 0 0 5px rgba(255, 122, 69, .25), 0 6px 14px -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.12); background: var(--red); box-shadow: 0 0 0 5px rgba(11, 110, 114, .25), 0 6px 14px -4px rgba(0, 0, 0, .3); }
.v3d-hs-tip { position: absolute; left: 36px; top: 50%; transform: translateY(-50%) scale(.96); width: max-content; max-width: 220px; padding: 10px 12px; border-radius: 12px; background: #fff; 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, transform .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; transform: translateY(-50%) scale(1); }
.v3d.hs-off .v3d-hs { display: none; }
.v3d-dim { padding: 5px 10px; border: 0; border-radius: 99px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 800; white-space: nowrap; box-shadow: var(--sh-soft); 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 13px; border-radius: 99px; border: 1.5px solid var(--line); background: #fff; font-size: 13px; font-weight: 700; 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: 700; color: var(--mut); }
.v3d-swatches span { margin-right: 2px; }
.v3d-swatches button { width: 26px; height: 26px; border-radius: 50%; background: var(--sw); border: 3px solid #fff; box-shadow: 0 0 0 1.5px var(--line-2); transition: box-shadow .15s, transform .15s; }
.v3d-swatches button[aria-checked="true"] { box-shadow: 0 0 0 2.5px var(--red); transform: scale(1.06); }
.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-xl); background: linear-gradient(135deg, #ffffff 0%, #eef7f5 100%); 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(19px, 2vw, 24px); font-weight: 800; letter-spacing: -.015em; }
.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: 4px; margin-bottom: 10px; border-radius: 99px; background: var(--paper); border: 1px solid var(--line); }
.gal-mode button { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 14px; border-radius: 99px; font-size: 13px; font-weight: 800; 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: linear-gradient(135deg, var(--red-soft), #fff); 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: 12px; 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.5vw, 44px) 0 12px; background: linear-gradient(180deg, #e9f5f3, var(--paper)); }
.sergi-hero h1 { margin: 6px 0 10px; font-size: clamp(28px, 4vw, 48px); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; }
.sergi-hero p { margin: 0; max-width: 64ch; color: var(--ink-2); font-size: 16px; 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: 1.5px 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: 12px; background: var(--paper); }
.sergi-item b { display: block; font-size: 14px; font-weight: 800; 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 3px rgba(11, 110, 114, .12); }
.sergi-stage { display: grid; gap: 14px; padding: 14px; border-radius: var(--r-xl); background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-soft); }
.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: 22px; font-weight: 800; letter-spacing: -.015em; }
.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: 6px 12px; border-radius: 99px; background: var(--paper); border: 1px solid var(--line); font-size: 12.5px; font-weight: 700; 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(--coral); color: #fff; font-weight: 800; }
.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-xl); background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-soft); }
.calc-card h2 { margin: 0 0 14px; font-size: 19px; font-weight: 800; }
.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: 800; color: var(--ink); }
.calc-field small { font-size: 12px; color: var(--mut); }
.calc-in { display: flex; align-items: center; border: 1.5px solid var(--line-2); border-radius: 14px; background: #fff; overflow: hidden; }
.calc-in:focus-within { border-color: var(--red); box-shadow: 0 0 0 3px rgba(11, 110, 114, .14); }
.calc-in input { flex: 1; min-width: 0; border: 0; padding: 12px 14px; font-size: 17px; font-weight: 800; background: none; outline: none; }
.calc-in span { padding: 0 14px; font-size: 13px; font-weight: 700; color: var(--mut); }
.calc-check { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--paper); font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.calc-check input { margin-top: 3px; accent-color: var(--red); width: 18px; height: 18px; }
.calc-out { display: grid; gap: 12px; }
.calc-res { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; align-items: center; padding: 16px; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); }
.calc-res .ic { grid-row: span 2; width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: #fff; color: var(--red-d); }
.calc-res b { font-size: 22px; font-weight: 800; letter-spacing: -.02em; 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: #ffc9b0; }
.calc-res.is-warn .ic { color: var(--coral-d); }
.calc-res.is-ok { background: #ebf7f0; border-color: #c4ead3; }
.calc-viz { position: relative; height: 230px; border-radius: var(--r-lg); background: linear-gradient(180deg, #f8fbfb, #edf4f3); 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: 800; }

/* ---------- T9. Sihirbaz ---------- */
.wiz-opt input:checked + span, .wiz-opt.is-on { border-color: var(--red); background: var(--red-soft); }

/* ---------- T10. Hareket azaltma ---------- */
@media (prefers-reduced-motion: reduce) {
  .x-need, .x-cat, .x-tool, .x-post, .x-cat-img img { transition: none !important; transform: none !important; }
}

/* ---------- T11. Ek: sihirbaz sonucu 3B, kategori 3B açılır bloğu ---------- */
@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; }
