/* Product Loading Animation */
.product-image {
    position: relative;
    overflow: hidden;
}

.product-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading-shimmer 1.5s infinite;
    z-index: 2;
    border-radius: 8px;
}

.product-image img {
    position: relative;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-image img.loaded {
    opacity: 1;
}

.product-loading.hidden {
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

@keyframes loading-shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.product-detail-container {
    padding: 10px;


    background-color: #fff;
    border-radius: 2px;
    border: 1px solid #e5e7eb;
}

.breadcrumb-section {
    margin: 10px;
}

/* Ürün Resim Sistemi */
.product-image-section {
    position: relative;
}

.product-main-image {
    position: relative;
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    background: #f7f8fa;
    cursor: pointer;
}

.product-main-image img {
    width: auto !important;
    height: 400px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-main-image:hover img {
    transform: scale(1.05);
}

/* Büyütme Butonu */
.zoom-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.zoom-btn:hover {
    background: white;
    transform: scale(1.1);
}

.zoom-btn i {
    color: #333;
    font-size: 16px;
}

/* Thumbnail'lar */
.product-thumbnails {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.thumbnail-item {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.thumbnail-item:hover {
    border-color: #28a745;
    transform: scale(1.05);
}

.thumbnail-item.active {
    border-color: #28a745;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.3);
}

.thumbnail-item img {
    max-width: 90%;
    max-height: 100px;
    object-fit: cover;
}

/* Resim Modal */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 90%;
    max-width: 800px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


.modal-content img {
  

    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.1s ease;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    max-width: 100%;
    max-height: 600px;
}


/* Modal'da mouse takip eden zoom - JavaScript ile kontrol ediliyor */

/* Zoom sistemi kaldırıldı */

/* Modal zoom indicator kaldırıldı */

.close-modal {
    position: absolute;
    top: 10px;
    right: 20px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
}

.close-modal:hover {
    color: #28a745;
}

.modal-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.modal-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
}

.modal-btn:hover {
    background: white;
    transform: scale(1.1);
}

.modal-btn i {
    font-size: 20px;
    color: #333;
}

/* Responsive */
@media (max-width: 768px) {
    .product-main-image img {
        height: 300px;
    }

    .thumbnail-item {
        width: 60px;
        height: 60px;
    }

    .zoom-btn {
        width: 35px;
        height: 35px;
    }

    .zoom-btn i {
        font-size: 14px;
    }

    .modal-content {
        width: 95%;
        padding: 10px;
    }

    .modal-btn {
        width: 40px;
        height: 40px;
    }

    .modal-btn i {
        font-size: 16px;
    }
}

.products-grid {
    background-color: #f5f6f8;
    padding: 10px;
}

/* Ürün Detay Tabları */
.product-details-section {
    margin-top: 10px;
    border-radius: 15px;
    margin-bottom: 100px;
}

.product-details-tabs {
    background: white;
    overflow: hidden;
    background-color: #fff;
    border-radius: 2px;
    border: 1px solid #e5e7eb;
}

.tab-navigation {
    display: flex;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
}

.tab-btn {
    flex: 1;
    padding: 15px 20px;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tab-btn:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    color: #495057;
}

.tab-btn.active {
    background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
    color: #2e7d32;
    border-bottom-color: #4caf50;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.2);
}

.tab-content {
    padding: 30px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* Ürün Açıklaması */
.description-content h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.5rem;
    padding-top: 10px;
}

.description-content h4 {
    color: #495057;
    margin: 25px 0 15px 0;
    font-size: 1.2rem;
}

.description-content p {
    line-height: 1.6;
    color: #6c757d;
    margin-bottom: 15px;
}

.description-content ul {
    padding-left: 20px;
}

.description-content li {
    margin-bottom: 8px;
    color: #6c757d;
}

/* Ürün Özellikleri */
.features-content h3 {
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 1.5rem;
    padding-top: 10px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.feature-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #28a745;
}

.feature-label {
    font-weight: 600;
    color: #495057;
}

.feature-value {
    color: #6c757d;
}

.nutrition-table {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #dee2e6;
}

.nutrition-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #dee2e6;
}

.nutrition-row:last-child {
    border-bottom: none;
}

.nutrition-label {
    font-weight: 500;
    color: #495057;
}

.nutrition-value {
    color: #6c757d;
}

/* Kullanıcı Yorumları */
.reviews-content h3,
.reviews-content h4 {
    color: #2c3e50;
    margin-bottom: 20px;
}

.reviews-summary {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    margin-bottom: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    border: 1px solid #dee2e6;
}

.rating-overview {
    text-align: center;
}

.rating-score .score {
    font-size: 3rem;
    font-weight: 700;
    color: #28a745;
    display: block;
}

.rating-score .stars {
    margin: 10px 0;
}

.rating-score .stars i {
    color: #ffc107;
    font-size: 1.2rem;
    margin: 0 2px;
}

.review-count {
    color: #6c757d;
    font-size: 0.9rem;
}

.rating-breakdown {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.rating-bar span:first-child {
    width: 60px;
    color: #495057;
}

.rating-bar span:last-child {
    width: 30px;
    text-align: right;
    color: #6c757d;
}

.bar {
    flex: 1;
    height: 8px;
    background: #dee2e6;
    border-radius: 4px;
    overflow: hidden;
}

.fill {
    height: 100%;
    background: #ffc107;
    transition: width 0.3s ease;
}

/* Yorum Listesi */
.reviews-list {
    margin-bottom: 30px;
}

.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.reviews-header h4 {
    margin: 0;
    color: #2c3e50;
}

.filter-btn {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 0.9rem;
    color: #495057;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.filter-btn:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    border-color: #6c757d;
    transform: translateY(-1px);
}

.filter-btn.active {
    background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
    border-color: #4caf50;
    color: #2e7d32;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.2);
}

.filter-btn i {
    font-size: 0.9rem;
}

.review-item {
    padding: 20px;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);

}

.review-item:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.reviewer-avatar {
    width: 40px;
    height: 40px;
    background: #28a745;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.reviewer-details h5 {
    margin: 0;
    color: #2c3e50;
    font-size: 1rem;
}

.review-rating i {
    color: #ffc107;
    font-size: 0.9rem;
    margin-right: 2px;
}

.review-date {
    color: #6c757d;
    font-size: 0.9rem;
}

.review-content p {
    color: #495057;
    line-height: 1.5;
    margin: 0 0 15px 0;
}

/* Yorum Resimleri */
.review-images {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.review-images img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
    border: 2px solid #dee2e6;
}

.review-images img:hover {
    transform: scale(1.1);
    border-color: #28a745;
}

/* Yorum Formu */
.review-form {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px;
    border-radius: 10px;
    margin-top: 30px;
    border: 1px solid #dee2e6;
}

.review-form h4 {
    margin-bottom: 20px;
    color: #2c3e50;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #495057;
}

.star-rating {
    display: flex;
    gap: 5px;
}

.star-rating input {
    display: none;
}

.star-rating label {
    cursor: pointer;
    font-size: 1.5rem;
    color: #dee2e6;
    transition: color 0.2s ease;
}

.star-rating input:checked~label,
.star-rating label:hover {
    color: #ffc107;
}

.star-rating input:checked~label~label {
    color: #dee2e6;
}

#review-text {
    width: 100%;
    padding: 12px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
}

#review-text:focus {
    outline: none;
    border-color: #28a745;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.25);
}

/* Resim Yükleme Alanı */
.image-upload-area {
    margin-top: 10px;
}

.upload-placeholder {
    border: 2px dashed #dee2e6;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.upload-placeholder:hover {
    border-color: #6c757d;
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    transform: translateY(-1px);
}

.upload-placeholder i {
    font-size: 2rem;
    color: #6c757d;
    margin-bottom: 10px;
    display: block;
}

.upload-placeholder p {
    margin: 0 0 5px 0;
    color: #495057;
    font-weight: 500;
}

.upload-placeholder small {
    color: #6c757d;
    font-size: 0.8rem;
}

.uploaded-images {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.uploaded-image {
    position: relative;
    width: 80px;
    height: 80px;
}

.uploaded-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #28a745;
}

.remove-image {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.remove-image:hover {
    background: #c82333;
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .tab-navigation {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .tab-btn {
        flex: 1;
        min-width: 0;
        padding: 12px 8px;
        font-size: 0.9rem;
        border-bottom: 3px solid transparent;
        border-right: none;
    }

    .tab-btn.active {
        background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
        color: #2e7d32;
        border-bottom-color: #4caf50;
        border-right: none;
        box-shadow: 0 2px 8px rgba(76, 175, 80, 0.2);
    }

    .tab-content {
        padding: 10px;
    }

    .reviews-summary {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .review-header {
        align-items: flex-start;
        gap: 10px;
    }

    .review-date {
        align-self: flex-end;
    }

    .filter-btn {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    .filter-btn span {
        font-size: 0.8rem;
    }
}

/* Küçük buton stili */
.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    font-weight: 500;
}

.btn-small:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-small i {
    font-size: 0.8rem;
}

/* Notify section */
.notify-section {
    margin-bottom: 20px;
}

/* Product Detail Quantity Controls - Ayrı Kutular */
.product-qty-controls {
    display: flex;
    align-items: center;
    gap: 5px;
}

.product-qty-btn {
    background: #f8f9fa;
    border: 1px solid #ddd;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    color: #666;
    transition: all 0.2s ease;
    border-radius: 6px;
    font-weight: 600;
}

.product-qty-btn:hover {
    background: #e9ecef;
    color: #333;
    border-color: #adb5bd;
    transform: translateY(-1px);
}

.product-qty-btn:active {
    background: #dee2e6;
    transform: translateY(0);
}

.product-qty-controls input {
    width: 60px;
    height: 35px;
    border: 1px solid #ddd;
    text-align: center;
    font-size: 1rem;
    background: #fff;
    color: #333;
    font-weight: 600;
    border-radius: 6px;
}

.product-qty-controls input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}