﻿/* =========================
   3D BOOK
   ========================= */
.pr_image-3d {
    width: 220px;
    height: 300px;
    perspective: 1000px;
    position: relative;
    margin: 40px auto;
}

.book-3d {
    width: 220px;
    height: 300px;
    position: relative;
}

.book-front {
    width: 220px;
    height: 300px;
    position: relative;
    transition: transform 0.6s ease;
    cursor: pointer;
    z-index: 2;
}

    .book-front img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        border-radius: 5px;
        box-shadow: 0 8px 15px rgba(0,0,0,0.3);
    }

.book-back-inside {
    width: 220px;
    height: 300px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

    .book-back-inside img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        border-radius: 5px;
        box-shadow: inset 0 0 20px rgba(0,0,0,0.1);
    }

/* Hover efekti */
.pr_image-3d:hover .book-front {
    transform: rotateY(15deg) translateX(10px);
}

/* =========================
   LIGHTBOX FIX
   ========================= */
#lightbox {
    display: none; /* ✅ FIX */
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
}

    #lightbox.active {
        display: flex;
    }

    #lightbox img {
        max-width: 90vw;
        max-height: 90vh;
        object-fit: contain;
        border-radius: 8px;
        box-shadow: 0 0 20px #fff;
    }

    #lightbox .close-btn {
        position: absolute;
        top: 20px;
        right: 30px;
        color: white;
        font-size: 30px;
        font-weight: bold;
        cursor: pointer;
        z-index: 10000;
    }

/* =========================
   BUTTONS
   ========================= */
.btn-add-to-cart {
    background: linear-gradient(90deg, #FFC000, #ff8000, #e5a000);
    border: none;
    color: #fff !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .btn-add-to-cart:hover {
        filter: brightness(1.05);
        transform: translateY(-1px);
    }

.btn-outline-secondary {
    border: 2px solid #ff8000;
    color: #ff8000;
    font-weight: 500;
    transition: all 0.3s ease;
}

    .btn-outline-secondary:hover {
        background: linear-gradient(90deg, #FFC000, #ff8000, #e5a000);
        color: #fff;
        border-color: transparent;
    }

.btn-add-to-cart,
.btn-outline-secondary {
    border-radius: 8px;
}

/* =========================
   BREADCRUMB (TEK TANIM)
   ========================= */
.breadcrumb {
    display: flex !important;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin-bottom: 1rem;
}

.breadcrumb-item {
    display: inline-flex;
    align-items: center;
}

    .breadcrumb-item + .breadcrumb-item::before {
        content: "›";
        padding: 0 8px;
        color: #999;
    }

    .breadcrumb-item a {
        text-decoration: none;
        color: #ff8000;
        font-weight: 500;
    }

        .breadcrumb-item a:hover {
            text-decoration: underline;
        }
