/* Ürün Detay Sayfası Stilleri */

/* Ekmek Kırıntısı / Breadcrumb */
.product-breadcrumb {
    padding: 1rem 0;
    font-family: var(--alt-font);
    font-size: 1rem;
    color: var(--medium-gray);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.product-breadcrumb a {
    color: var(--base-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-breadcrumb a:hover {
    color: var(--dark-color);
    text-decoration: none;
}

.breadcrumb-separator {
    margin: 0 0.75rem;
    color: var(--medium-gray);
}

.current-product {
    font-weight: 600;
    color: var(--dark-color);
}

/* Ürün Galeri */
.product-gallery {
    position: relative;
    margin-bottom: 2rem;
}

.main-image-container {
    position: relative;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    cursor: pointer;
}

.main-product-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.main-image-container:hover .main-product-image {
    transform: scale(1.02);
}

.zoom-button {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: none;
    background-color: rgba(255, 255, 255, 0.8);
    color: var(--base-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
}

.zoom-button:hover {
    background-color: white;
    transform: scale(1.1);
}

.thumbnail-container {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.thumbnail {
    width: 6rem;
    height: 6rem;
    border-radius: 0.5rem;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.thumbnail:hover {
    transform: translateY(-0.25rem);
}

.thumbnail.active {
    border: 3px solid var(--base-color);
}

.thumbnail.active::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(24, 55, 40, 0.1);
    pointer-events: none;
}

/* Ürün Bilgileri */
.product-info {
    padding: 0 1rem;
}

.product-detail-title {
    font-family: var(--alt-font);
    font-size: 2.5rem;
    color: var(--base-color);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.product-detail-price {
    font-family: var(--alt-font);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark-color);
    background-color: rgba(24, 55, 40, 0.1);
    padding: 0.6rem 1.25rem;
    border-radius: 0.35rem;
    display: inline-block;
    box-shadow: 0 0.15rem 0.5rem rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
}

.product-detail-divider {
    height: 2px;
    width: 100%;
    background-color: rgba(24, 55, 40, 0.1);
    margin: 1.5rem 0;
}

.product-detail-section {
    margin-bottom: 2rem;
}

.section-title {
    font-family: var(--alt-font);
    font-size: 1.35rem;
    color: var(--base-color);
    font-weight: 600;
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 1rem;
}

.section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.25rem;
    width: 0.35rem;
    height: 70%;
    background-color: var(--base-color);
    border-radius: 0.5rem;
}

.product-detail-description,
.product-detail-ingredients,
.product-detail-allergens {
    font-family: var(--main-font);
    font-size: 1.1rem;
    color: var(--medium-gray);
    line-height: 1.6;
    margin-bottom: 0;
}

.product-detail-allergens {
    font-style: italic;
}

/* Lightbox */
.lightbox-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

#lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.2);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--base-color);
}

.lightbox-close {
    top: -1.75rem;
    right: -1.75rem;
}

.lightbox-prev {
    left: -4rem;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: -4rem;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: white;
    transform: scale(1.1) translateY(-50%);
}

.lightbox-close:hover {
    transform: scale(1.1);
}

/* Responsive Ayarlar */
@media (max-width: 767.98px) {
    .product-detail-title {
        font-size: 2rem;
    }
    
    .product-detail-price {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
    
    .product-detail-description,
    .product-detail-ingredients,
    .product-detail-allergens {
        font-size: 1rem;
    }
    
    .thumbnail {
        width: 4.5rem;
        height: 4.5rem;
    }
    
    .lightbox-prev,
    .lightbox-next {
        width: 3rem;
        height: 3rem;
    }
    
    .lightbox-prev {
        left: 1rem;
    }
    
    .lightbox-next {
        right: 1rem;
    }
}

/* Animasyonlar */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.main-product-image,
.product-detail-title,
.product-detail-price,
.product-detail-section {
    animation: fadeIn 0.8s ease-in-out;
}
