/* ==========================================================
   VeaXpert — 3D ürün inceleme (urun3d.js ile birlikte)
   ========================================================== */
.vx3d {
    position: relative;
    height: 340px;
    border-radius: 14px;
    border: 1px solid #333;
    background:
        radial-gradient(ellipse at 50% 62%, rgba(212, 175, 55, 0.16), transparent 60%),
        radial-gradient(circle at 50% 35%, #26231b, #0b0b0b 75%);
    overflow: hidden;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
}

.vx3d canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.vx3d-order {
    margin: 4px 0 18px;
    animation: vx3dIn 0.5s ease;
}

@keyframes vx3dIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.vx3d-tag,
.vx3d-hint,
.vx3d-label {
    position: absolute;
    pointer-events: none;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 1px;
}

.vx3d-tag {
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    font-size: 0.68rem;
    color: #D4AF37;
    border: 1px solid rgba(212, 175, 55, 0.45);
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.55);
}

/* "Görünüm temsilîdir" notu: 3D ÖNİZLEME etiketinin hemen altında, her önizlemede */
.vx3d-rep {
    position: absolute;
    top: 42px;
    left: 12px;
    max-width: calc(100% - 24px);
    padding: 3px 9px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.66rem;
    line-height: 1.35;
    color: #cfcfcf;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.55);
    pointer-events: none;
}

/* Ana sayfadaki "Nasıl Üretilir" 3D bölümünde aynı not */
.vxst-rep {
    position: absolute;
    top: 104px;
    right: 6%;
    z-index: 2;
    padding: 4px 10px;
    font-family: 'Oswald', sans-serif;
    font-size: 0.68rem;
    letter-spacing: 1px;
    color: #D4AF37;
    border: 1px solid rgba(212, 175, 55, 0.45);
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.55);
    pointer-events: none;
}

@media (max-width: 820px) {
    .vxst-rep {
        top: 84px;
        right: 14px;
        font-size: 0.62rem;
    }
}

.vx3d-hint {
    right: 12px;
    top: 12px;
    padding: 5px 11px;
    font-size: 0.7rem;
    color: #ddd;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.6);
    transition: opacity 0.6s;
    animation: vx3dNudge 2.4s ease-in-out infinite;
}

.vx3d.used .vx3d-hint {
    opacity: 0;
}

@keyframes vx3dNudge {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(-7px);
    }
}

.vx3d-label {
    left: 12px;
    bottom: 12px;
    right: 12px;
    font-size: 0.82rem;
    color: #fff;
    text-shadow: 0 2px 8px #000;
}

/* --- Ana sayfa vitrini --- */
.vx-show {
    background: linear-gradient(180deg, #0a0a0a, #111);
}

.vx-show-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr);
    gap: 34px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch;
}

.vx-show-wrap .vx3d {
    height: 520px;
    border-color: rgba(212, 175, 55, 0.35);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 50px rgba(212, 175, 55, 0.08);
}

.vx-show-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px;
    border: 1px solid #242424;
    border-radius: 14px;
    background: linear-gradient(160deg, #1a1a1a, #0d0d0d);
}

.vxs-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 8px;
}

.vxs-tab {
    padding: 14px 4px 11px;
    border: 1px solid #333;
    border-radius: 10px;
    background: #161616;
    color: #999;
    font-family: 'Oswald', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    transition: 0.25s;
}

.vxs-tab i {
    display: block;
    margin-bottom: 7px;
    font-size: 1.3rem;
}

.vxs-tab:hover {
    border-color: #666;
    color: #fff;
}

.vxs-tab.on {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(212, 175, 55, 0.08);
    box-shadow: 0 0 18px rgba(212, 175, 55, 0.14);
}

.vxs-label {
    margin-top: 6px;
    font-family: 'Oswald', sans-serif;
    font-size: 0.78rem;
    letter-spacing: 1px;
    color: #888;
}

.vxs-label b {
    margin-left: 6px;
    font-weight: 400;
    color: var(--gold);
}

.vxs-swatches,
.vxs-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.vxs-sw {
    width: 38px;
    height: 38px;
    border: 2px solid #333;
    border-radius: 50%;
    background-color: #222;
    background-size: 240%;
    background-position: center;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.vxs-sw:hover {
    transform: scale(1.12);
    border-color: #888;
}

.vxs-sw.on {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.25);
    transform: scale(1.12);
}

.vxs-chip {
    padding: 7px 13px;
    border: 1px solid #333;
    border-radius: 20px;
    background: #161616;
    color: #aaa;
    font-family: 'Oswald', sans-serif;
    font-size: 0.8rem;
    transition: 0.2s;
}

.vxs-chip:hover {
    border-color: #777;
    color: #fff;
}

.vxs-chip.on {
    border-color: var(--gold);
    color: #000;
    background: var(--gold);
}

.vx-show-panel .submit-btn {
    display: block;
    margin-top: auto;
    text-align: center;
    text-decoration: none;
}

.vx-show-panel .submit-btn:hover {
    box-shadow: 0 0 26px var(--gold-glow);
    transform: translateY(-2px);
}

@media (max-width: 900px) {
    .vx-show-wrap {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .vx-show-wrap .vx3d {
        height: 340px;
    }

    .vx-show-panel {
        padding: 18px;
    }
}

@media (max-width: 480px) {
    .vx3d {
        height: 270px;
    }

    .vx-show-wrap .vx3d {
        height: 300px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .vx3d-hint,
    .vx3d-order {
        animation: none;
    }
}

/* --- Görüntüleyici düğmeleri: yakınlaştır / uzaklaştır / tam ekran --- */
.vx3d-ctrl {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: flex;
    gap: 6px;
}

.vx3d-ctrl button {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: #D4AF37;
    font-size: 0.8rem;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}

.vx3d-ctrl button:hover {
    background: #D4AF37;
    color: #000;
    transform: scale(1.1);
}

.vx3d-label {
    right: 130px;
}

.vx3d:fullscreen {
    height: 100vh;
    border: 0;
    border-radius: 0;
}

/* ==========================================================
   Kaydırdıkça ilerleyen 3D sahne
   ========================================================== */
.vx-story {
    position: relative;
    height: 380vh;
    background:
        radial-gradient(ellipse at 62% 50%, rgba(212, 175, 55, 0.1), transparent 55%),
        linear-gradient(180deg, #111 0%, #070707 12%, #070707 88%, #0a0a0a 100%);
}

.vxst-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
}

.vxst-stage,
.vxst-stage canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.vxst-steps {
    position: absolute;
    left: 6%;
    top: 50%;
    width: min(440px, 40%);
    transform: translateY(-50%);
    perspective: 900px;
}

.vxst-step {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    transform: translateY(-50%) translateY(46px) rotateX(-28deg);
    transform-origin: 50% 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.55s ease, transform 0.75s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.vxst-step.on {
    transform: translateY(-50%);
    opacity: 1;
    pointer-events: auto;
}

.vxst-k {
    display: inline-block;
    margin-bottom: 16px;
    padding: 5px 12px;
    border: 1px solid rgba(212, 175, 55, 0.45);
    border-radius: 20px;
    font-family: 'Oswald', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 3px;
    color: var(--gold);
}

.vxst-step h3 {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(1.9rem, 3.6vw, 3.2rem);
    line-height: 1.08;
    text-transform: uppercase;
    text-shadow: 0 6px 30px #000;
}

.vxst-step h3 em {
    font-style: normal;
    color: var(--gold);
}

.vxst-step p {
    margin-top: 16px;
    color: #a9a9a9;
    font-size: 1rem;
    line-height: 1.65;
    text-shadow: 0 2px 12px #000;
}

.vxst-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
    padding: 13px 28px;
    border-radius: 4px;
    background: var(--gold);
    color: #000;
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
    box-shadow: 0 0 30px var(--gold-glow);
    transition: transform 0.25s, box-shadow 0.25s;
}

.vxst-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 46px rgba(212, 175, 55, 0.7);
}

.vxst-btn i {
    transition: transform 0.25s;
}

.vxst-btn:hover i {
    transform: translateX(5px);
}

/* Sağdaki ilerleme rayı */
.vxst-rail {
    --p: 0;
    position: absolute;
    right: 34px;
    top: 50%;
    width: 2px;
    height: 220px;
    margin-top: -110px;
    background: rgba(255, 255, 255, 0.12);
}

.vxst-rail i {
    position: absolute;
    inset: 0;
    background: var(--gold);
    transform-origin: 50% 0;
    transform: scaleY(var(--p));
    box-shadow: 0 0 12px var(--gold-glow);
}

.vxst-rail b {
    position: absolute;
    left: -4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #555;
    background: #0a0a0a;
    transition: border-color 0.3s, background 0.3s, transform 0.3s;
}

.vxst-rail b:nth-of-type(1) { top: -5px; }
.vxst-rail b:nth-of-type(2) { top: calc(33.3% - 5px); }
.vxst-rail b:nth-of-type(3) { top: calc(66.6% - 5px); }
.vxst-rail b:nth-of-type(4) { top: calc(100% - 5px); }

.vxst-rail[data-step="0"] b:nth-of-type(-n+1),
.vxst-rail[data-step="1"] b:nth-of-type(-n+2),
.vxst-rail[data-step="2"] b:nth-of-type(-n+3),
.vxst-rail[data-step="3"] b:nth-of-type(-n+4) {
    border-color: var(--gold);
    background: var(--gold);
    transform: scale(1.25);
}

@media (max-width: 820px) {
    .vx-story {
        height: 340vh;
    }

    .vxst-steps {
        left: 20px;
        right: 20px;
        top: auto;
        bottom: 150px;
        width: auto;
        transform: none;
    }

    .vxst-step {
        top: auto;
        bottom: 0;
        transform: translateY(40px);
        transform-origin: 50% 100%;
    }

    .vxst-step.on {
        transform: none;
    }

    .vxst-sticky::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 48%;
        background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.88) 55%);
        pointer-events: none;
    }

    .vxst-steps {
        z-index: 2;
    }

    .vxst-step h3 {
        font-size: 1.75rem;
    }

    .vxst-step p {
        margin-top: 10px;
        font-size: 0.9rem;
    }

    .vxst-k {
        margin-bottom: 10px;
    }

    .vxst-btn {
        margin-top: 14px;
        padding: 10px 20px;
    }

    .vxst-rail {
        right: 14px;
        top: 34%;
        height: 150px;
    }
}

/* Hareket azaltma / WebGL yok: sabit, sıradan bir bölüm */
.vx-story.vx-story-static,
.vx-story:has(.vx-story-static) {
    height: auto;
}

.vx-story-static.vxst-sticky {
    position: relative;
    height: auto;
    padding: 60px 5%;
}

.vx-story-static .vxst-stage {
    position: relative;
    height: 56vh;
}

.vx-story-static .vxst-steps {
    position: static;
    width: auto;
    transform: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.vx-story-static .vxst-step {
    position: static;
    transform: none;
    opacity: 1;
    pointer-events: auto;
}

.vx-story-static .vxst-step h3 {
    font-size: 1.5rem;
}

.vx-story-static .vxst-rail,
.vx-story-static.vxst-sticky::after {
    display: none;
}

/* --- Vitrin: marka seçimi ve fiyat --- */
.vxs-select {
    width: 100%;
    margin-top: 8px;
    padding: 11px 12px;
    border: 1px solid #333;
    border-radius: 8px;
    background: #161616;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.vxs-select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.vxs-price {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding: 14px 16px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 10px;
    background: rgba(212, 175, 55, 0.06);
}

.vxs-price span {
    font-family: 'Oswald', sans-serif;
    font-size: 0.78rem;
    letter-spacing: 2px;
    color: #888;
}

.vxs-price b {
    font-family: 'Oswald', sans-serif;
    font-size: 1.9rem;
    font-weight: 600;
    line-height: 1;
    color: var(--gold);
}

.vxs-price small {
    font-size: 0.8rem;
    color: #999;
}

.vxs-price.pop b {
    animation: vxsPop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes vxsPop {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.85);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.vx-show-panel .submit-btn {
    margin-top: 12px;
}

/* --- Vitrin: hazır kombin düğmeleri --- */
.vxs-kombin .vxs-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px 6px 8px;
}

.vxs-kombin .vxs-chip i {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background-size: 300%;
    background-position: center;
}

.vxs-kombin .vxs-chip i + i {
    margin-left: -7px;
    margin-right: 8px;
}

/* --- Hikâye: 6 adım --- */
.vx-story {
    height: 560vh;
}

.vxst-rail b[style] {
    top: calc(var(--i) * 20% - 5px);
}

.vxst-rail b.on {
    border-color: var(--gold);
    background: var(--gold);
    transform: scale(1.25);
}

@media (max-width: 820px) {
    .vx-story {
        height: 500vh;
    }
}

/* --- Görüntüleyici: bilgi noktaları --- */
.vx3d-hs {
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 0;
    padding: 0;
    border: 0;
    background: none;
    z-index: 3;
}

.vx3d-hs i {
    position: absolute;
    left: -13px;
    top: -13px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font: 600 12px/1 'Oswald', sans-serif;
    font-style: normal;
    color: #000;
    background: var(--gold, #D4AF37);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.25), 0 4px 12px rgba(0, 0, 0, 0.6);
    transition: transform 0.2s;
}

.vx3d-hs i::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, 0.8);
    animation: vx3dPing 2.2s ease-out infinite;
}

@keyframes vx3dPing {
    from {
        transform: scale(1);
        opacity: 0.9;
    }

    to {
        transform: scale(2.1);
        opacity: 0;
    }
}

.vx3d-hs:hover i,
.vx3d-hs.open i {
    transform: scale(1.18);
}

.vx3d-hs span {
    position: absolute;
    left: 20px;
    top: -18px;
    width: 210px;
    padding: 11px 13px;
    border: 1px solid rgba(212, 175, 55, 0.45);
    border-radius: 10px;
    background: rgba(12, 12, 12, 0.94);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.6);
    text-align: left;
    opacity: 0;
    pointer-events: none;
    transform: translateY(6px) scale(0.96);
    transition: opacity 0.2s, transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.vx3d-hs.left span {
    left: auto;
    right: 20px;
}

.vx3d-hs.up span {
    top: auto;
    bottom: -18px;
}

.vx3d-hs:hover span,
.vx3d-hs.open span {
    opacity: 1;
    transform: none;
}

.vx3d-hs b {
    display: block;
    margin-bottom: 4px;
    font: 600 0.86rem/1.2 'Oswald', sans-serif;
    letter-spacing: 0.5px;
    color: var(--gold, #D4AF37);
}

.vx3d-hs em {
    display: block;
    font: 400 0.74rem/1.45 'Montserrat', sans-serif;
    font-style: normal;
    color: #cfcfcf;
}

@media (prefers-reduced-motion: reduce) {
    .vx3d-hs i::after {
        animation: none;
    }
}

/* --- Hikâye: yakın planlarda yazı okunaklı kalsın (vxst-scrim) --- */
.vxst-sticky::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 26%, rgba(0, 0, 0, 0) 56%);
}

.vxst-steps,
.vxst-rail {
    z-index: 2;
}

@media (max-width: 820px) {
    .vxst-sticky::before {
        display: none;
    }
}

.vx-story-static.vxst-sticky::before {
    display: none;
}

/* --- Hikâye: özellik etiketleri --- */
.vxst-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
    list-style: none;
}

.vxst-tags li {
    padding: 7px 13px;
    border: 1px solid rgba(120, 190, 255, 0.4);
    border-radius: 20px;
    background: rgba(60, 140, 220, 0.12);
    color: #cfe6ff;
    font-family: 'Oswald', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.6px;
}

.vxst-tags i {
    margin-right: 6px;
    color: #7cc4ff;
}

@media (max-width: 820px) {
    .vxst-tags {
        margin-top: 10px;
        gap: 6px;
    }

    .vxst-tags li {
        padding: 5px 10px;
        font-size: 0.72rem;
    }
}

/* --- Hikâye: 7 adım --- */
.vx-story {
    height: 650vh;
}

.vxst-rail b[style] {
    top: calc(var(--i) * 16.667% - 5px);
}

@media (max-width: 820px) {
    .vx-story {
        height: 590vh;
    }
}

/* --- Vitrin: "Araçta Gör" bağlantısı --- */
.vxs-carlink {
    display: block;
    margin-top: 10px;
    padding: 12px;
    border: 1px solid rgba(212, 175, 55, 0.55);
    border-radius: 4px;
    color: var(--gold);
    font-family: 'Oswald', sans-serif;
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-align: center;
    text-decoration: none;
    transition: background 0.25s, color 0.25s;
}

.vxs-carlink:hover {
    background: var(--gold);
    color: #000;
}
