/* "Sizden Gelenler": sol kenar butonu ve kayan fotoğraf penceresi */
.cg-launch {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    height: max-content;
    margin: auto 0; /* ekranın tam ortası */
    transform-origin: left center; /* büyürken sol kenardan ayrılmasın */
    z-index: 990;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 62px;
    padding: 6px 6px 6px 4px;
    border: 2px solid #fff;
    border-left: 0;
    border-radius: 0 18px 18px 0;
    background: linear-gradient(160deg, #ffb300, #f57c00);
    color: #fff;
    box-shadow: 0 6px 16px rgba(120, 70, 0, .35);
    cursor: pointer;
    animation: cg-nudge 5s ease-in-out infinite;
}
.cg-launch__ring {
    display: block;
}
.cg-launch__ring img {
    display: block;
    width: 46px;
    height: 46px;
    border: 2px solid #fff;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
}
.cg-launch__badge {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 19px;
    height: 19px;
    padding: 0 4px;
    border: 2px solid #fff;
    border-radius: 10px;
    background: #d32f2f;
    color: #fff;
    font-size: 10.5px;
    font-weight: 800;
    line-height: 15px;
    text-align: center;
}
.cg-launch__text {
    font-size: 10px;
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .35);
}
@keyframes cg-nudge {
    0%, 86%, 100% { transform: scale(1); }
    93% { transform: scale(1.06); }
}

.cg-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
}
.cg-modal[hidden] { display: none; }
.cg-modal__back {
    position: absolute;
    inset: 0;
    background: rgba(10, 11, 7, .84);
}
.cg-modal__panel {
    position: relative;
    width: 100%;
    max-width: 400px;
    max-height: 100%;
    overflow: hidden auto;
    border: 2px solid #ffb300;
    border-radius: 22px;
    background: #17190f;
    box-shadow: 0 20px 55px rgba(0, 0, 0, .5);
    color: #fff;
    padding-bottom: 14px;
    animation: cg-pop .32s cubic-bezier(.2, 1.3, .4, 1) both;
}
@keyframes cg-pop {
    from { transform: translateY(28px) scale(.94); opacity: 0; }
    to { transform: none; opacity: 1; }
}
.cg-modal__head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    background: linear-gradient(100deg, #ffb300, #f57c00);
}
.cg-modal__head h2 {
    margin: 0;
    flex: 1;
    font-size: 19px;
    font-weight: 900;
    color: #fff;
    text-align: left;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .3);
}
.cg-modal__count {
    padding: 3px 9px;
    border-radius: 20px;
    background: rgba(0, 0, 0, .28);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}
.cg-modal__x {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #2a2410;
    font-size: 23px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

/* Hikâye tarzı ilerleme çizgileri */
.cg-bars {
    display: flex;
    gap: 3px;
    padding: 10px 14px;
}
.cg-bars i {
    flex: 1;
    height: 4px;
    border-radius: 3px;
    background: rgba(255, 255, 255, .2);
    transition: background .3s;
}
.cg-bars i.is-done { background: #ffb300; }

.cg-stage { position: relative; }
.cg-track {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 14px;
    scroll-padding-left: 14px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
}
.cg-track::-webkit-scrollbar { display: none; }
.cg-slide {
    position: relative;
    flex: 0 0 82%; /* sağdaki fotoğrafın kenarı görünsün */
    margin: 0;
    aspect-ratio: 3 / 4;
    max-height: 62vh;
    border-radius: 18px;
    overflow: hidden;
    background: #26291b;
    scroll-snap-align: start;
    transform: scale(.93);
    transform-origin: left center; /* sol kenar sabit: kaydirma hizasi bozulmasin */
    transition: transform .35s ease, box-shadow .35s ease;
}
.cg-slide.is-on {
    transform: scale(1);
    box-shadow: 0 0 0 2px #ffb300;
}
.cg-slide:not(.is-on) { cursor: pointer; } /* yandaki fotoğrafa dokununca ona geçilir */
/* Fotoğrafın kenarında boş kalan yer, aynı fotoğrafın renkli bulanık haliyle dolar */
.cg-slide::before {
    content: "";
    position: absolute;
    inset: -20px;
    background: var(--cg-bg, none) center / cover no-repeat;
    filter: blur(18px) saturate(1.1) brightness(.75);
}
.cg-slide:only-child { flex-basis: 100%; }
.cg-slide img {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain; /* ürün (paça, ayak) kırpılmasın */
}

.cg-arrow {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: #ffb300;
    color: #fff;
    font-size: 24px;
    line-height: 1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .35);
    cursor: pointer;
}
.cg-arrow--prev { left: 8px; }
.cg-arrow--next { right: 8px; }
@media (hover: hover) and (pointer: fine) {
    .cg-arrow { display: block; }
}

.cg-order {
    position: relative;
    display: block;
    width: calc(100% - 28px);
    margin: 12px 14px 0;
    padding: 14px;
    overflow: hidden;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(100deg, #16a34a, #22c55e);
    color: #fff;
    font-size: 17px;
    font-weight: 900;
    box-shadow: 0 8px 20px rgba(34, 197, 94, .4);
    cursor: pointer;
}
.cg-order::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -40%;
    width: 30%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
    animation: cg-shine 2.6s ease-in-out infinite;
}
.cg-order[hidden] { display: none; }
@keyframes cg-shine {
    0%, 55% { left: -40%; }
    100% { left: 130%; }
}

body.cg-open { overflow: hidden; }
body.cg-open .cg-launch,
body.app-menu-open .cg-launch { display: none; }
/* Pencere açıkken diğer yüzen düğmeler üstüne binmesin */
html body.cg-open .scroll-to-top,
html body.cg-open .fk-live-toast,
html body.cg-open .sp-ov,
html body.cg-open .osb { display: none !important; }

.cg-launch:focus-visible,
.cg-modal button:focus-visible,
.cg-track:focus-visible {
    outline: 3px solid #22d3ee;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .cg-launch,
    .cg-modal__panel,
    .cg-order::after { animation: none; }
    .cg-slide { transition: none; }
}

/* Sayfa içi fotoğraf şeridi (mağaza sayfalarında "sayfanın altında" seçeneği) */
.cg-sec { max-width: 760px; margin: 0 auto; padding: 28px 16px; text-align: center; }
.cg-sec__title { margin: 0 0 14px; font-size: 1.5rem; font-weight: 900; }
.cg-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cg-strip button { padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: #e7e5de; cursor: pointer; }
.cg-strip img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }
