/* Genel Stiller ve Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px;
}

/* Product Detail */
.product-detail {
    display: flex;
    flex-wrap: wrap;
    background: linear-gradient(145deg, #FFFFFF, #F9FAFB);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 50px;
    gap: 30px;
    transition: transform 0.3s ease;
}

.product-detail:hover {
    transform: translateY(-3px);
}

/* Image Section */
.image-section {
    flex: 1;
    min-width: 0;
}

.main-swiper {
    width: 100%;
    max-width: 600px;
    height: 450px;
    margin-bottom: 25px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.main-swiper .swiper-slide {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #F5F7FA;
}

.main-swiper .swiper-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.main-swiper .swiper-slide img:hover {
    transform: scale(1.05);
}

.thumbnail-swiper {
    width: 100%;
    max-width: 600px;
    height: 90px;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.thumbnail-swiper::-webkit-scrollbar {
    display: none;
}

.thumbnail-swiper .swiper-wrapper {
    display: inline-flex;
}

.thumbnail-swiper .swiper-slide-thumb-active {
    opacity: 1;
    border: 3px solid #4A90E2;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.3);
}

.thumbnail-swiper .swiper-slide {
    width: 90px !important;
    height: 90px;
    opacity: 0.6;
    cursor: pointer;
    transition: opacity 0.3s, border 0.3s, transform 0.3s;
    flex-shrink: 0;
    border-radius: 8px;
}

.thumbnail-swiper .swiper-slide:hover {
    opacity: 1;
    transform: scale(1.05);
}

.thumbnail-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.swiper-button-next, .swiper-button-prev {
    color: #4A90E2;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    transition: background 0.3s ease, transform 0.3s ease;
}

.swiper-button-next:hover, .swiper-button-prev:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

/* Product Info */
.product-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-info h1 {
    margin: 0;
    font-size: 2.5em;
    font-weight: 700;
    color: #4A90E2;
    position: relative;
}

.product-info h1::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #4A90E2, #357ABD);
    border-radius: 2px;
}

.product-info .category-info {
    font-size: 1.2em;
    color: #7F8C8D;
    font-weight: 500;
}

.product-info .description {
    font-size: 1.15em;
    color: #333333;
    line-height: 1.6;
    background: #F5F7FA;
    padding: 15px;
    border-radius: 8px;
}

.product-info .additional-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #7F8C8D;
    font-size: 1.1em;
}

.product-info .contact {
    display: flex;
    align-items: center;
    gap: 15px;
}

.product-info .contact img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #4A90E2;
    cursor: pointer;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.product-info .contact img:hover {
    transform: scale(1.1);
    border-color: #357ABD;
}

.product-info .contact span {
    font-size: 1.3em;
    font-weight: 600;
    color: #333333;
}

.product-info .buttons {
    display: flex;
    gap: 15px;
}

.product-info .buttons .btn {
    background: linear-gradient(90deg, #50C878, #45A865);
    color: #FFFFFF;
    padding: 12px 25px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.product-info .buttons .btn:hover {
    background: linear-gradient(90deg, #45A865, #50C878);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(80, 200, 120, 0.5);
}

.product-info .buttons #takas-et-btn {
    background: linear-gradient(90deg, #FFB300, #FFA000);
}

.product-info .buttons #takas-et-btn:hover {
    background: linear-gradient(90deg, #FFA000, #FFB300);
    box-shadow: 0 6px 20px rgba(255, 179, 0, 0.5);
}

/* Comments Section */
.comments-section {
    background: linear-gradient(145deg, #FFFFFF, #F9FAFB);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 50px;
}

.comments-section h2 {
    margin-top: 0;
    font-size: 1.8em;
    font-weight: 600;
    color: #4A90E2;
    position: relative;
}

.comments-section h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #4A90E2, #357ABD);
    border-radius: 2px;
}

.comments-section .comment-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.comments-section .comment-form textarea {
    resize: none;
    padding: 15px;
    border: 1px solid #E9ECEF;
    border-radius: 8px;
    background-color: #F5F7FA;
    color: #333333;
    font-size: 1.1em;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.comments-section .comment-form textarea:focus {
    outline: none;
    border-color: #4A90E2;
    box-shadow: 0 0 10px rgba(74, 144, 226, 0.3);
}

.comments-section .comment-form .btn {
    align-self: flex-end;
    background: linear-gradient(90deg, #50C878, #45A865);
    color: #FFFFFF;
    padding: 12px 25px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.comments-section .comment-form .btn:hover {
    background: linear-gradient(90deg, #45A865, #50C878);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(80, 200, 120, 0.5);
}

.comments-section .comment, 
.comments-section .reply {
    position: relative;
    padding: 20px;
    border-bottom: 1px solid #E9ECEF;
    background: #FFFFFF;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.comments-section .comment:hover, 
.comments-section .reply:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.comments-section .comment-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.comments-section .comment-header img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #4A90E2;
    transition: transform 0.3s ease;
}

.comments-section .comment-header img:hover {
    transform: scale(1.1);
}

.comments-section .comment-header span {
    font-weight: 600;
    color: #333333;
    flex-grow: 0;
    margin-right: 15px;
}

.comments-section .comment-header .delete-comment-btn {
    margin-left: auto;
    background: linear-gradient(90deg, #f44336, #d32f2f);
    color: #FFFFFF;
    padding: 8px 15px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.comments-section .comment-header .delete-comment-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(244, 67, 54, 0.4);
}

.comments-section .comment-body {
    margin-top: 10px;
    color: #333333;
    line-height: 1.6;
}

.comments-section .comment-actions {
    position: absolute;
    top: 20px;
    right: 20px;
    opacity: 0;
    transition: opacity 0.3s;
}

.comments-section .comment:hover .comment-actions,
.comments-section .reply:hover .comment-actions {
    opacity: 1;
}

.comments-section .comment-actions .reply-btn {
    background: linear-gradient(90deg, #4A90E2, #357ABD);
    color: #FFFFFF;
    padding: 8px 20px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: 500;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.comments-section .comment-actions .reply-btn:hover {
    background: linear-gradient(90deg, #357ABD, #4A90E2);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.4);
}

.comments-section .replies {
    margin-left: 50px;
    margin-top: 15px;
}

/* Similar Products */
.similar-products {
    margin-top: 50px;
}

.similar-products h2 {
    margin-bottom: 30px;
    font-size: 1.8em;
    font-weight: 600;
    color: #4A90E2;
    position: relative;
}

.similar-products h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #4A90E2, #357ABD);
    border-radius: 2px;
}

.similar-products .product {
    background: linear-gradient(145deg, #FFFFFF, #F9FAFB);
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.similar-products .product:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.similar-products .product img {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.similar-products .product img:hover {
    transform: scale(1.05);
}

.similar-products .product h3 {
    margin: 0;
    font-size: 1.4em;
    font-weight: 600;
    color: #333333;
}

.similar-products .product span {
    color: #7F8C8D;
    font-size: 1.1em;
}

/* Popup */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.popup {
    background: linear-gradient(145deg, #FFFFFF, #F9FAFB);
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    color: #333333;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.popup-overlay.show .popup {
    animation: popupFadeIn 0.3s ease-in-out forwards;
}

.popup-overlay.hide .popup {
    animation: popupFadeOut 0.3s ease-in-out forwards;
}

@keyframes popupFadeIn {
    0% { opacity: 0; transform: translateY(-50px) scale(0.8); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes popupFadeOut {
    0% { opacity: 1; transform: translateY(0) scale(1); }
    100% { opacity: 0; transform: translateY(-50px) scale(0.8); }
}

/* Trade Offer Popup */
.trade-offer-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
}

.trade-offer-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(145deg, #FFFFFF, #F9FAFB);
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    width: 90%;
    max-width: 600px;
    color: #333333;
    max-height: 80vh;
    overflow-y: auto;
}

.trade-offer-popup h3 {
    margin: 0 0 20px;
    font-size: 1.5em;
    font-weight: 600;
    color: #4A90E2;
}

.products-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.product-item {
    background: #F5F7FA;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.product-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.product-item.selected {
    border: 2px solid #4A90E2;
    background: #E3F2FD;
}

.product-item img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.product-item p {
    margin: 0;
    font-size: 0.9em;
    color: #333333;
    text-align: center;
}

.trade-offer-popup .btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(90deg, #50C878, #45A865);
    color: #FFFFFF;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    margin-bottom: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.trade-offer-popup .btn:hover {
    background: linear-gradient(90deg, #45A865, #50C878);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(80, 200, 120, 0.5);
}

.trade-offer-popup .cancel-btn {
    background: linear-gradient(90deg, #f44336, #d32f2f);
}

.trade-offer-popup .cancel-btn:hover {
    background: linear-gradient(90deg, #d32f2f, #f44336);
    box-shadow: 0 6px 20px rgba(244, 67, 54, 0.5);
}

/* Reply Form Popup */
.reply-form-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
}

.reply-form-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(145deg, #FFFFFF, #F9FAFB);
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    width: 90%;
    max-width: 350px;
    color: #333333;
}

.reply-form-popup textarea {
    width: 100%;
    resize: vertical;
    padding: 15px;
    border: 1px solid #E9ECEF;
    border-radius: 8px;
    background: #F5F7FA;
    color: #333333;
    margin-bottom: 15px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.reply-form-popup textarea:focus {
    outline: none;
    border-color: #4A90E2;
    box-shadow: 0 0 10px rgba(74, 144, 226, 0.3);
}

.reply-form-popup button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(90deg, #50C878, #45A865);
    color: #FFFFFF;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.reply-form-popup button:hover {
    background: linear-gradient(90deg, #45A865, #50C878);
    transform: translateY (-3px);
    box-shadow: 0 6px 20px rgba(80, 200, 120, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    .product-detail {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }

    .image-section {
        width: 100%;
    }

    .main-swiper {
        height: 350px;
        max-width: 100%;
    }

    .thumbnail-swiper {
        height: 70px;
        max-width: 100%;
    }

    .thumbnail-swiper .swiper-slide {
        width: 70px !important;
        height: 70px;
    }

    .product-info {
        width: 100%;
    }

    .product-info h1 {
        font-size: 2em;
    }

    .product-info .description,
    .product-info .category-info,
    .product-info .additional-info {
        font-size: 1em;
    }

    .product-info .contact img {
        width: 50px;
        height: 50px;
    }

    .product-info .buttons {
        flex-direction: column;
        gap: 10;
    }

    .product-info .buttons .btn {
        padding: 10px 20px;
    }

    .comments-section {
        padding: 20px;
    }

    .comments-section h2 {
        font-size: 1.5em;
    }

    .comments-section .comment-form textarea {
        font-size: 0.95em;
    }

    .comments-section .comment-form .btn {
        padding: 10px 20px;
    }

    .comments-section .comment, 
    .comments-section .reply {
        padding: 15px;
    }

    .comments-section .comment-header img {
        width: 40px;
        height: 40px;
    }

    .comments-section .comment-header span {
        margin-right: 15px;
    }

    .comments-section .comment-actions .reply-btn {
        padding: 6px 15px;
        font-size: 0.9em;
    }

    .comments-section .replies {
        margin-left: 30px;
    }

    .similar-products {
        margin-top: 40px;
    }

    .similar-products h2 {
        font-size: 1.5em;
    }

    .similar-products .similar-products {
        padding: 20px;
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .similar-products .product img {
        width: 100px;
        height: 100px;
        margin-bottom: 15px;
    }

    .similar-products .product h3 {
        font-size: 1.2em;
    }

    .similar-products .product span {
        font-size: 1em;
    }

    .trade-offer-popup {
        width: calc(100% - 40px);
        max-width: 70vw;
    }

    .products-list {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .product-item img {
        height: 80px;
    }

/* Star Rating Stilleri */
/* ... (önceki stiller aynı kalır) ... */

/* Star Rating Stilleri */
/* ... (önceki stiller aynı kalır) ... */

/* Star Rating Stilleri */
.star-rating {
    margin: 10px 0;
    display: inline-flex;
    align-items: center;
    padding: 0;
    width: fit-content;
}

.star-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-right: 2px;
    font-size: 20px;
    line-height: 1;
}

.star-wrapper.filled {
    color: #4A90E2 !important;
}

.star-wrapper.half {
    color: #4A90E2 !important;
    position: absolute;
    left: 0;
    top: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.star-wrapper.empty {
    color: #4A90E2  !important; /* Gri tonu, maviyle uyumlu */
    opacity: 0.3;
    margin-right: 2px;
}

/* Mobil */
@media (max-width: 768px) {
    .star-wrapper {
        font-size: 16px;
        margin-right: 1px;
    }

    .star-wrapper.empty {
        margin-right: 1px !important;
    }

    .star-rating {
        padding: 0;
        margin: 0;
        display: inline-flex;
        width: fit-content;
    }
}

}
