/* ---------- ürün detay sayfası (pages/product.php) — kategori.css'teki .cathero / .subcard / .catalogcard ile aynı aile */

/* hero */
.phero__in { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: clamp(28px, 4vw, 56px); padding-block: 28px clamp(48px, 5vw, 72px); }
.phero h1 { font-size: clamp(28px, 3.3vw, 44px); max-width: 22ch; overflow-wrap: anywhere; }
.phero__top { position: relative; padding-top: 26px; }
.phero__top .cathero__crumbs ol { margin-bottom: 0; }
.phero .phero__in { padding-top: 22px; }
.phero .cathero__lead { margin-bottom: 26px; }
.phero__brand { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 20px; padding: 6px 6px 6px 14px; border: 1px solid rgba(255,255,255,.16); border-radius: 12px; background: rgba(255,255,255,.06); }
.phero__brandlabel { font: 600 11.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #9fb2cf; }
.phero__brand strong { color: #fff; padding-right: 8px; }
.phero__logo { display: grid; place-items: center; height: 46px; min-width: 110px; padding: 4px 10px; background: #fff; border-radius: 8px; }
.phero__logo img { max-height: 38px; max-width: 150px; width: auto; object-fit: contain; }

/* galeri */
.phero__media { position: relative; }
.pgal { display: grid; gap: 14px; }
.pgal__stage { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 3; padding: clamp(18px, 3vw, 36px); border: 1px solid rgba(255,255,255,.7); border-radius: 22px; cursor: zoom-in; overflow: hidden; isolation: isolate; background:
    radial-gradient(70% 70% at 50% 42%, #ffffff 0%, #eef3fa 62%, #dfe7f2 100%);
    box-shadow: 0 30px 60px rgba(3, 10, 26, .45), inset 0 0 0 1px rgba(255,255,255,.6); }
.pgal__stage::after { content: ""; position: absolute; left: 18%; right: 18%; bottom: 7%; height: 9%; border-radius: 50%; background: radial-gradient(closest-side, rgba(13,27,46,.22), transparent); z-index: -1; }
.pgal__stage img { width: 100%; height: 100%; object-fit: contain; border-radius: 10px; transition: transform .35s, opacity .2s; filter: drop-shadow(0 16px 22px rgba(13,27,46,.18)); }
.pgal__stage:hover img { transform: scale(1.03); }
.pgal__stage:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.pgal__zoom { position: absolute; right: 14px; bottom: 14px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: #fff; box-shadow: 0 6px 16px rgba(13,27,46,.3); transition: background .2s, transform .2s; }
.pgal__zoom svg { width: 20px; height: 20px; }
.pgal__stage:hover .pgal__zoom { background: var(--red); transform: scale(1.06); }
.phero__in--solo { grid-template-columns: minmax(0, 1fr); padding-bottom: 56px; }
.phero__in--solo h1 { max-width: 30ch; }
.pgal__thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.pgal__thumb { width: 84px; height: 66px; padding: 5px; border: 1.5px solid rgba(255,255,255,.22); border-radius: 12px; background: rgba(255,255,255,.92); cursor: pointer; transition: border-color .15s, transform .15s, box-shadow .15s; }
.pgal__thumb img { width: 100%; height: 100%; object-fit: contain; border-radius: 6px; }
.pgal__thumb:hover { transform: translateY(-2px); }
.pgal__thumb[aria-pressed="true"] { border-color: var(--red); box-shadow: 0 0 0 2px var(--red); }
.pgal__thumb:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* bolum navigasyonu (yapiskan) */
.ptabs { position: sticky; top: 76px; z-index: 30; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); box-shadow: 0 6px 18px rgba(13,27,46,.04); }
.ptabs__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ptabs ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.ptabs ul::-webkit-scrollbar { display: none; }
.ptabs a[data-spy] { position: relative; display: block; padding: 17px 14px; color: var(--ink-2); font-weight: 500; font-size: 15px; white-space: nowrap; }
.ptabs a[data-spy]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--red); transform: scaleX(0); transition: transform .2s; }
.ptabs a[data-spy]:hover { color: var(--brand); }
.ptabs a[aria-current="true"] { color: var(--ink); font-weight: 600; }
.ptabs a[aria-current="true"]::after { transform: scaleX(1); }
.ptabs a:focus-visible { outline-offset: -4px; }
.ptabs__cta { flex: none; display: inline-flex; align-items: center; min-height: 38px; padding: 0 16px; border-radius: 8px; background: var(--red); color: #fff; font-weight: 600; font-size: 14px; }
.ptabs__cta:hover { background: #c81e26; color: #fff; }

/* govde */
.ppage { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(24px, 3vw, 40px); align-items: start; padding-block: 40px 56px; }
.ppage__main { display: grid; gap: 24px; min-width: 0; }
.ppage__side { display: grid; gap: 20px; position: sticky; top: 148px; }
.pcard { background: #fff; border: 1px solid #e6ecf4; border-radius: 20px; box-shadow: 0 10px 30px rgba(19,43,70,.06); padding: clamp(20px, 3vw, 36px); scroll-margin-top: 150px; min-width: 0; }
.pcard .slash-title { font-size: clamp(21px, 2vw, 26px); margin-bottom: 20px; }
.pdesc { color: var(--ink-2); font-size: 16.5px; line-height: 1.75; }
.pdesc p:last-child { margin-bottom: 0; }

/* teknik ozellikler: Word/FCKeditor kalintilarini evcillestir */
.pspec { color: var(--ink-2); font-size: 15.5px; line-height: 1.7; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.pspec * { font-family: inherit !important; }
.pspec p { margin: 0 0 .8em; }
.pspec p:empty { display: none; }
.pspec [style*="margin-left"], .pspec [style*="text-indent"] { margin-left: 0 !important; text-indent: 0 !important; }
.pspec b, .pspec strong { color: var(--ink); }
.pspec tt { font-family: inherit !important; }
.pspec ul { list-style: none; padding-left: 0; }
.pspec ul > li { position: relative; padding-left: 22px; margin-bottom: 6px; }
.pspec ul > li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 7px; height: 7px; background: var(--red); transform: skewX(-20deg); border-radius: 1px; }
.pspec img { display: inline-block; margin: 8px 0; }
.pspec table { display: table; width: 100% !important; min-width: 0; max-width: none; height: auto !important; margin: 1.2em 0 !important; float: none !important; border-collapse: separate !important; border-spacing: 0; border: 1px solid #e3e9f2; border-radius: 12px; overflow: hidden; font-size: 14.5px; background: #fff; }
.pspec table:has(table) { border: 0; border-radius: 0; background: none; min-width: 0; }
.pspec table:has(table) > tbody > tr > td { padding: 0 !important; border: 0 !important; background: none !important; }
.pspec table table { min-width: 0; margin: 0 !important; border: 0; border-radius: 0; }
.pspec table td, .pspec table th { width: auto !important; height: auto !important; padding: 10px 14px !important; border: 0 !important; border-top: 1px solid #edf1f6 !important; vertical-align: top; background: transparent !important; }
.pspec table tr:first-child > td, .pspec table tr:first-child > th { border-top: 0 !important; }
.pspec table td + td, .pspec table th + th { border-left: 1px solid #edf1f6 !important; }
.pspec table tr:nth-child(even) > td { background: #f6f9fc !important; }
.pspec table tr:nth-child(odd) > td { background: #fff !important; }
.pspec table th, .pspec table thead td { background: var(--ink) !important; color: #fff; font-weight: 600; }
.pspec table td p { margin: 0; }
.pspec table td > :first-child { margin-top: 0; }
.pspec table img { max-width: 160px !important; }
/* yalnizca cok sutunlu tablolar mobilde yatay kayar; 2 sutunlu ozellik tablolari sigar */
.pspec table:has(> tbody > tr > :nth-child(4)), .pspec table:has(> tr > :nth-child(4)) { min-width: 520px; }
/* Word'den gelen saga/ortaya yasli etiket sutunu */
.pspec table td:first-child, .pspec table td:first-child > p { text-align: left !important; }
.pspec iframe { display: block; max-width: 100%; }
.pspec video { max-width: 100%; height: auto; }

/* videolar */
.pvideos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.pvideos .vcard { box-shadow: none; }

/* bos icerik */
.pempty { display: flex; gap: 20px; align-items: flex-start; background: linear-gradient(160deg, #f4f7fb, #fff 60%); }
.pempty__ico { flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); }
.pempty__ico .i { width: 26px; height: 26px; }
.pempty h2 { font-size: 20px; margin-bottom: 6px; }
.pempty p { color: var(--ink-2); margin-bottom: 12px; }

/* yan teklif karti */
.pquote { position: relative; overflow: hidden; padding: 26px 24px 22px; border-radius: 20px; color: #fff; isolation: isolate; background:
    radial-gradient(80% 60% at 100% 0%, rgba(64,120,200,.4), transparent 70%),
    linear-gradient(160deg, #10284f 0%, #0a1a36 100%);
    box-shadow: 0 18px 40px rgba(13,27,46,.22); }
.pquote::before { content: ""; position: absolute; right: 28px; top: -30px; width: 10px; height: 140px; background: linear-gradient(180deg, transparent, var(--red) 40%, transparent); transform: rotate(28deg); opacity: .8; z-index: -1; }
.pquote__eyebrow { font: 600 11.5px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #8fb3ea; margin: 0 0 8px; }
.pquote__title { font-size: 21px; font-weight: 700; margin: 0 0 8px; color: #fff; }
.pquote__text { font-size: 14.5px; color: #c9d5e8; line-height: 1.55; margin: 0 0 18px; }
.pquote__btn { width: 100%; }
.pquote__contact { list-style: none; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid rgba(255,255,255,.12); display: grid; gap: 6px; }
.pquote__contact a { display: flex; align-items: center; gap: 12px; padding: 6px; margin: 0 -6px; border-radius: 10px; color: #fff; font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }
.pquote__contact a:hover { background: rgba(255,255,255,.07); color: #fff; }
.pquote__contact a:focus-visible { outline-color: #fff; }
.pquote__contact small { display: block; font-size: 12px; font-weight: 500; color: #9fb2cf; line-height: 1.3; }
.pquote__ico { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); }
.pquote__ico .i { width: 18px; height: 18px; }
.pdficon { width: 52px; height: 64px; justify-self: center; display: grid; place-items: end center; padding-bottom: 10px; border-radius: 6px 16px 6px 6px; background: linear-gradient(160deg, #ff4a52, #c81e26); color: #fff; font: 700 12px/1 var(--mono); letter-spacing: .06em; box-shadow: 0 8px 16px rgba(200,30,38,.28); transform: rotate(-6deg); }

/* benzer urunler */
.prelated { padding-block: 8px clamp(48px, 6vw, 72px); scroll-margin-top: 150px; }
.prelated__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.prelated__head .slash-title { margin: 0; font-size: clamp(22px, 2.2vw, 28px); }
.prelated__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.prelated__grid .subcard { min-height: 290px; }

/* buyutme penceresi */
.plightbox { width: min(1100px, 94vw); max-height: 92vh; padding: 0; border: 0; border-radius: 18px; background: #fff; box-shadow: 0 40px 90px rgba(0,0,0,.5); overflow: hidden; }
.plightbox::backdrop { background: rgba(7, 16, 34, .82); backdrop-filter: blur(4px); }
.plightbox img { width: 100%; max-height: 86vh; object-fit: contain; padding: clamp(16px, 3vw, 40px) clamp(56px, 6vw, 72px); }
.plightbox form { position: absolute; top: 12px; right: 12px; margin: 0; }
.plightbox__close { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--ink); color: #fff; cursor: pointer; }
.plightbox__close:hover { background: var(--red); }
.plightbox__close svg { width: 20px; height: 20px; }

@media (max-width: 1180px) { .prelated__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1080px) {
    .ptabs { top: 76px; }
    .ppage { grid-template-columns: 1fr; }
    .ppage__side { position: static; grid-template-columns: 1fr 1fr; align-items: start; }
}
@media (max-width: 860px) {
    .phero__in { grid-template-columns: 1fr; gap: 28px; padding-bottom: 40px; }
    .phero__media { max-width: 560px; }
    .prelated__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .ptabs__cta { display: none; }
    .ppage { padding-top: 24px; }
    .ppage__side { grid-template-columns: 1fr; }
    .pvideos { grid-template-columns: 1fr; }
    .pempty { flex-direction: column; }
    .phero .cathero__actions .btn { flex: 1 1 auto; }
}
@media (max-width: 560px) {
    .prelated__grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .prelated__grid .subcard { min-height: 220px; border-radius: 14px; }
    .prelated__grid .subcard__img { inset: 12px 12px 84px; }
    .prelated__grid .subcard__body { padding: 0 12px 14px; }
    .prelated__grid .subcard__title { font-size: 14.5px; }
    .prelated__grid .subcard__meta, .prelated__grid .subcard__go { display: none; }
    .pgal__thumb { width: 70px; height: 56px; }
    .pspec table:has(> tbody > tr > :nth-child(4)), .pspec table:has(> tr > :nth-child(4)) { min-width: 460px; }
}
.pspec table td, .pspec table th { overflow-wrap: break-word; word-break: normal; }
/* deger sutunundaki bosluksuz uzun dizeler (0.4;0.1;1.25...) tabloyu tasirmasin */
.pspec table td:last-child:not(:first-child) { overflow-wrap: anywhere; }
@media (max-width: 560px) {
    .pcard { padding: 20px 16px; border-radius: 16px; }
    .pspec { font-size: 14.5px; }
    .pspec table td, .pspec table th { padding: 8px 10px !important; }
}

/* buyutme penceresi: onceki / sonraki */
.plightbox__nav { position: absolute; top: 50%; translate: 0 -50%; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink); cursor: pointer; box-shadow: 0 6px 16px rgba(13,27,46,.14); }
.plightbox__nav:hover { background: var(--ink); color: #fff; }
.plightbox__nav svg { width: 20px; height: 20px; }
.plightbox__nav--prev { left: 10px; }
.plightbox__nav--next { right: 10px; }
.plightbox__count { position: absolute; left: 50%; bottom: 10px; translate: -50% 0; margin: 0; padding: 2px 10px; border-radius: 999px; background: rgba(13,27,46,.75); color: #fff; font: 600 12px/1.6 var(--mono); }
.plightbox :focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

/* koyu zeminde klavye odagi gorunur olsun */
.phero a:focus-visible, .phero button:focus-visible, .pquote a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* mobil: yapiskan teklif cubugu (yalnizca <=760px) */
.pbar { display: none; }
@media (max-width: 760px) {
    .pcard, .prelated { scroll-margin-top: 128px; }
    .pbar { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; display: flex; gap: 10px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(13,27,46,.1); transition: transform .25s, visibility .25s; }
    .pbar.is-off { transform: translateY(110%); visibility: hidden; }
    .pbar__btn { flex: 1; min-height: 48px; }
    .pbar__call { flex: none; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); color: var(--brand); background: var(--brand-50); }
    .pbar__call .i { width: 20px; height: 20px; }
    body:has(.pbar) .footer { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
}
@media (max-width: 640px) { .ptabs { top: 64px; } }
@media (prefers-reduced-motion: reduce) {
    .pgal__stage:hover img, .pgal__thumb:hover { transform: none; }
}
/* mobil: sayfa yolu 4-5 satira tasmasin -> Ana Sayfa > ust alt kategori (urun adi zaten h1'de) */
@media (max-width: 560px) {
    .phero .cathero__crumbs li:not(:first-child):not(:nth-last-child(2)) { display: none; }
    .phero .cathero__crumbs ol { margin-bottom: 18px; }
}

/* teknik ozellik tablosu: bolum basligi satirlari ve hizalama (spec_html) */
.pspec td { vertical-align: middle; }
.pspec th.spec-group { text-align: left; background: #eef3fb !important; color: var(--brand) !important; font-weight: 700; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; padding: 10px 14px !important; }
.pspec > p > img, .pspec > p > a > img { display: block; margin: 16px auto; }
