/* ==========================================================
   VeaXpert — sipariş sayfası cilası (siparis-fx.js ile birlikte)
   Formun işleyişine dokunmaz; yalnızca görünüm ve hareket ekler.
   ========================================================== */

/* --- Arka plan: çok hafif baklava deseni + altın ışıma --- */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 50% -10%, rgba(255, 215, 0, 0.09), transparent 55%),
        repeating-linear-gradient(60deg, rgba(255, 215, 0, 0.028) 0 1px, transparent 1px 26px),
        repeating-linear-gradient(-60deg, rgba(255, 215, 0, 0.028) 0 1px, transparent 1px 26px);
}

/* --- Tamamlanma göstergesi (üst çizgi + sağ üstte halka) --- */
.sfx-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 1002;
    background: linear-gradient(90deg, #b8922a, #ffe98a, var(--gold));
    transform-origin: 0 50%;
    transform: scaleX(var(--done, 0));
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.5);
    pointer-events: none;
}

.sfx-ring {
    --done: 0;
    position: fixed;
    top: 26px;
    right: 22px;
    z-index: 1001;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: conic-gradient(var(--gold) calc(var(--done) * 360deg), #2a2a2a 0);
    font-family: 'Oswald', sans-serif;
    font-size: 0.82rem;
    color: #fff;
    transition: transform 0.3s;
    pointer-events: none;
}

.sfx-ring::before {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: #0b0b0b;
}

.sfx-ring span {
    position: relative;
}

.sfx-ring.full {
    transform: scale(1.12);
    box-shadow: 0 0 22px rgba(255, 215, 0, 0.55);
}

.sfx-ring.full span {
    color: var(--gold);
}

/* --- Başlık ve bölüm başlıkları --- */
.form-title {
    letter-spacing: 3px;
    animation: sfxTitle 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.form-title::after {
    content: "";
    display: block;
    width: 120px;
    height: 3px;
    margin: 14px auto 0;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    animation: sfxLine 1s ease 0.4s both;
}

@keyframes sfxTitle {
    from {
        opacity: 0;
        transform: perspective(700px) rotateX(-70deg) translateY(20px);
    }

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

@keyframes sfxLine {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

.sfx-ready .fsec {
    opacity: 0;
    transform: translateX(-24px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.sfx-ready .fsec.in {
    opacity: 1;
    transform: none;
}

/* --- Alanlar --- */
.fc {
    transition: border-color 0.2s, box-shadow 0.25s, background 0.2s;
}

.fc:focus {
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.14);
    background: #1c1c1c;
}

/* --- Ürün kartları: 3D eğilme --- */
.pgrid {
    perspective: 900px;
}

.pitem {
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.pitem.sfx-tilt,
.pitem.sfx-tilt:hover {
    transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(var(--tz, 0px));
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.25s, box-shadow 0.3s, background 0.25s;
}

.pitem.sfx-tilt.tilting {
    --tz: 14px;
    transition: transform 0.1s linear, border-color 0.25s, box-shadow 0.3s, background 0.25s;
}

.pitem::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 230, 140, 0.2), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.pitem.tilting::after,
.pitem.on::after {
    opacity: 1;
}

.pitem::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 0.65rem;
    background: var(--gold);
    color: #000;
    transform: scale(0) rotate(-90deg);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pitem.on::before {
    transform: scale(1) rotate(0);
}

.pitem.on i {
    filter: drop-shadow(0 6px 10px rgba(255, 215, 0, 0.45));
}

/* --- Ürün bölümleri açılırken --- */
#sec-paspas,
#sec-bagaj,
#sec-canta {
    animation: sfxOpen 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes sfxOpen {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

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

.vbtn {
    transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.vbtn:hover {
    background: #202020;
    transform: translateX(4px);
}

.vbtn img {
    transition: transform 0.3s;
}

.vbtn:hover img {
    transform: scale(1.08) rotate(-3deg);
}

.lcard {
    transition: border-color 0.25s, background 0.25s, transform 0.3s, box-shadow 0.3s;
}

.lcard:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.5);
}

/* --- Seçim penceresi --- */
.smodal.show .sbox,
#confirmModal.show .cbox,
#kvkkModal.show .kvkk-modal-box {
    animation: sfxPop 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes sfxPop {
    from {
        opacity: 0;
        transform: perspective(900px) rotateX(-14deg) translateY(30px) scale(0.95);
    }

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

.sitem {
    transition: border-color 0.2s, background 0.2s, transform 0.25s, box-shadow 0.25s;
}

.sitem:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.55);
}

.sitem img {
    transition: transform 0.35s;
}

.sitem:hover img {
    transform: scale(1.06);
}

.smodal.show .sitem {
    animation: sfxItem 0.4s ease both;
}

.smodal.show .sitem:nth-child(2) { animation-delay: 0.03s; }
.smodal.show .sitem:nth-child(3) { animation-delay: 0.06s; }
.smodal.show .sitem:nth-child(4) { animation-delay: 0.09s; }
.smodal.show .sitem:nth-child(n+5) { animation-delay: 0.12s; }
.smodal.show .sitem:nth-child(n+9) { animation-delay: 0.16s; }

@keyframes sfxItem {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

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

/* --- Düğmeler: ışık süpürmesi --- */
.subbtn,
.corderbtn,
.btn-go {
    position: relative;
    overflow: hidden;
    transition: background 0.2s, transform 0.2s, box-shadow 0.25s;
}

.subbtn:hover,
.corderbtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(255, 215, 0, 0.28);
}

.subbtn::after,
.corderbtn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -70%;
    width: 45%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transform: skewX(-20deg);
    animation: sfxShine 4.2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes sfxShine {

    0%,
    62% {
        left: -70%;
    }

    100% {
        left: 140%;
    }
}

/* --- Sepet çubuğu: dar ekranda düğme taşmasın --- */
@media (max-width: 600px) {
    #cartBar {
        flex-wrap: wrap;
        gap: 6px;
        padding: 8px 12px;
    }

    #cartBar .cchips {
        flex: 1 1 100%;
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
    }

    #cartBar .cchips::-webkit-scrollbar {
        display: none;
    }

    #cartBar .ctotal-wrap {
        flex: 1 1 100%;
        justify-content: space-between;
        gap: 8px;
    }

    #cartBar .ctotal {
        font-size: 1.3rem;
    }

    #cartBar .corderbtn {
        padding: 10px 16px;
        font-size: 0.9rem;
        white-space: nowrap;
    }

    #cartBar .cbosaltbtn {
        padding: 8px 10px;
    }

    .sfx-ring {
        top: 30px;
        right: 12px;
        width: 46px;
        height: 46px;
        font-size: 0.72rem;
    }
}

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

    .form-title,
    .form-title::after,
    #sec-paspas,
    #sec-bagaj,
    #sec-canta,
    .smodal.show .sbox,
    .smodal.show .sitem,
    .subbtn::after,
    .corderbtn::after {
        animation: none !important;
    }

    .sfx-ready .fsec {
        opacity: 1;
        transform: none;
    }
}

/* --- Sayfalar arası geçiş perdesi --- */
.vx-curtain {
    position: fixed;
    inset: 0;
    z-index: 100001;
    background: #000 url("img/logoufak.png") center / 120px auto no-repeat;
    transform: translateY(100%);
    transition: transform 0.42s cubic-bezier(0.77, 0, 0.175, 1);
    pointer-events: none;
}

.vx-curtain.go {
    transform: none;
}

/* Sayfa açılırken perde yukarı kalkar */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: #000 url("img/logoufak.png") center / 120px auto no-repeat;
    pointer-events: none;
    animation: sfxCurtainOut 0.7s cubic-bezier(0.77, 0, 0.175, 1) 0.25s both;
}

@keyframes sfxCurtainOut {
    to {
        transform: translateY(-100%);
    }
}

.sfx-confetti {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 100002;
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    body::after {
        display: none;
    }
}

/* Altın tonu ana sayfayla aynı olsun (style.css'teki marka rengi) */
html:root {
    --gold: #D4AF37;
}

.corderbtn:hover,
.subbtn:hover,
.kvkk-modal-foot button:hover {
    background: #e6c453;
}
