*, *::after, *::before{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6{
    line-height: 1 !important;
}

main{
    width: 100%;
    background: radial-gradient(circle, rgba(194, 194, 194, 0.65) 70%, white 100%),
    linear-gradient(to top, rgba(160, 160, 160, 0.65) 80%, white 100%),
    linear-gradient(to bottom, rgba(160, 160, 160, 0.65) 80%, white 100%),
    linear-gradient(to right, rgba(160, 160, 160, 0.65) 60%, white 100%),
    linear-gradient(to left, rgba(160, 160, 160, 0.65) 100%, white 100%);
background-blend-mode: overlay;
}
main .up-product{
    height: auto;
}

main .up-product,
.mid-product{
    margin: 0 19rem;
}

main .up-product .product-information{
    display: flex;
    height: auto;
}

main .up-product .product-information,
.reviews-container{
    padding: 4rem 0 0 0;
}
.mid-product{
    padding: 4rem 0;
}


main .up-product .product-image{
    width: 100%;
}
main .up-product .product-image img{
    width: 400px;
    height: 560px;
    /* background-size: cover;
    background-position: center; */
    border-radius: 20px;
    cursor: crosshair;
    box-shadow: -10px 4px 4px rgba(160, 160, 160, 0.55);
    border: 1px solid #E6E6E6;
}
main .up-product .product-detail{
    /* display: flex; 
    justify-content: space-evenly; 
    align-items: center; */
    width: 100%;
}
main .up-product .product-detail .product-info .text-info p{
    color: black;
    margin: 0;
}
main .up-product .product-detail .stars{
    display: flex;
    width: 300px;
    align-items: center;
    justify-content: space-around;
}
main .up-product .product-detail .stars h5{
    font-size: 16px;
    margin: 0.08rem 0 0 0;
    color: black;
}
main .up-product .product-detail .stars a h5{
    color: #000;
}
main .stars .icon{
    color: #0d6efd;
    font-size: 14px;
}
main .stars .icon i:nth-child(5){
    color: grey;
    margin: 0 0.2rem 0 0;
}
main .stars .icon i:nth-child(6){
    color: #000;
}
main .up-product .product-info{
    width: 100%;

}
main .up-product .product-info h1, .brand-title h1, .seller-person-info h2{
    font-size: 20px;
    margin: 0;
}
main .up-product .product-info h6, main .up-product .product-info p,main .up-product .product-info h1, main .up-product .product-price{
    margin: 0 0 0.4rem 0;
    align-items: center;
}
main .up-product .product-info a{
    text-decoration: none;
    /* color: #009ACE; */
}
main .up-product .product-detail .product-price{
    display: flex;
    height: auto;
    align-items: center;
}

main .product-detail h6 span{
    color: #004C7F;
}

main .up-product .product-info .sepet-favorite{
    width: 100%;
}
main .up-product .product-info .sepet-favorite button{
    width: 80%;
}
main .up-product .product-info .sepet-favorite button:hover{
    background-color: #0d6efd;
    transition: 0.3s;
}


.seller-info-box {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    padding: 22px;
    width: 80%;
    /* max-width: 480px; */
    display: flex;
    flex-direction: column;
}
.seller-info-flex {
    width: 100%;
    display: flex;
    flex-direction: column;
}
.brand-logo-name {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}
.brand-logo img {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: #fff;
    border: 2px solid #eee;
    object-fit: cover;
}

.brand-title h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #222;
}
.color-stars {
    display: flex;
    gap: 2px;
    font-size: 1.2rem;
    margin-bottom: 4px;
}
.brand-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 1rem;
    font-weight: 500;
}
.person-info, .brand-logo-name{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.seller-message-button-big, main .up-product .product-info .sepet-favorite button {
    width: 100%;
    max-width: 100%;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 0.8rem 0;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0.8rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(0,123,255,0.08);
    cursor: pointer;
    transition: background 0.2s;
}
.seller-message-button-big{
    width: 220px;
}

main .up-product .product-detail .product-price h5{
    font-size: 18px;
    background-color: #007bff;
    padding: 1rem;
    height: 50px;
    color: white;
    border-radius: 20px;
    box-shadow: 5px 3px 2px rgba(0, 0, 0, 0.30);
    margin: auto 0;
}

main .up-product .product-info .product-price button:nth-child(2){
    width: 100px;
    height: 50px;
    border-radius: 20px;   
    border: none;
    background-color: #007bff;
    margin: 0 1rem;
    box-shadow: 5px 3px 2px rgba(0, 0, 0, 0.30);
}
main .up-product .product-info .product-price button:nth-child(2):hover{
    background-color: #0d6efd;
}
main .up-product .product-info .product-price button:nth-child(2) i{
    color: white;
}


main .up-product .product-info .sepet-favorite button{
    width: 80%;
}
.seller-message-button-big:hover {
    background: #0056b3;
}
.seller-person {
    align-items: center;
    justify-content: flex-start;
    gap: 24px;
    margin-top: 8px;
}
.seller-person-info h2 {
    font-weight: 700;
    margin: 0 0 6px 0;
    color: #222;
}
.seller-person-stars {
    color: #f39c12;
    font-size: 1.2rem;
    margin-bottom: 4px;
}
.seller-person-info p {
    color: #444;
    font-size: 1.1rem;
    margin: 0;
}
.seller-person-img, .brand-logo img {
    width: 120px;
    height: 120px;   
    border-radius: 50%;
    overflow: hidden;
    background: #f5f5f5;
}
.seller-person-img{
    width: 160px;
    height: 160px;
}
.seller-person-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.seller-info{
    margin: 0 0 0 5px;
}
.seller-info-box .seller-info-bottom .buyer-stars i{
    color: orange;
}
.seller-info-bottom{
    align-items: center;
    display: flex;
    justify-content: space-between;
}
.seller-info-bottom .sellerImage{
    width: 80px;
    height: 80px;
    overflow: hidden;
}
.seller-info p{
    margin: 0;
}
.sellerImage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-bottom-right-radius: 10px;
}

.comment{
    display: flex;
}

.rating-summary {
    display: flex;
    margin: 1rem;
    /* border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); */
}

.average-rating {
    text-align: center;
}
.border{
    background-color: grey;
    border: none;
    height: auto;
    width: 3px;
    margin: 0 2rem;
}
.stars {
    color: orange;
    font-size: 2rem;
}

/* Derecelendirme Dağılımı */
.rating-distribution {
    margin: auto 0;
}
.rating-bar:nth-child(1) .fill {
    width: 40%;
}
.rating-bar:nth-child(2) .fill {
    width: 30%;
}
.rating-bar:nth-child(3) .fill {
    width: 40%;
}
.rating-bar:nth-child(4) .fill {
    width: 0%;
}
.rating-bar:nth-child(5) .fill {
    width: 30%;
}


.rating-bar {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.rating-bar .bar {
    width: 400px;
    height: 10px;
    background: #ddd;
    margin: 0 10px;
    border-radius: 5px;
    overflow: hidden;
}

.rating-bar .fill {
    height: 100%;
    background: orange;
}

/* Yorum Ekle Butonu */
.write-review {
    background: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    margin: 0.5rem 0;
}

.write-review i {
    font-size: 0.8rem;
    margin: auto 0.5rem auto 0;
}

/* Yorum Kartları */
.reviews {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    justify-content: space-evenly;
}

.review-card {
    width: 260px;
    height: 360px;
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    text-overflow: ellipsis;
}
.owl-theme .owl-nav{
    display: none;
}
.review-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
}

.review-content {
    margin-top: 10px;
}

.review-content h3 {
    margin: 5px 0;
    font-size: 14px;
}

.review-content p {
    font-size: 12px;
    color: #555;
    overflow-y: scroll;
    max-height: 200px;
}

.owl-item .active{
    margin: 0;
}

.owl-carousel .owl-item {
    margin-right: 0 !important;
    margin-left: 0 !important;
}

.owl-carousel .owl-stage {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

main .mid-product a{
    text-decoration: none;
}
main .mid-product .same-product img{
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
}
main .mid-product .same-product-detail{
    /* width: 220px; */
    height: auto; 
    border: 1px solid grey;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    margin: 0 2rem 0 0;
}
.same-product-detail .add-to-cart{
    padding: 10px 1rem;
    border-radius: 10px;
    border: 3px solid grey;
    background-color: white;
    width: 90%;
    margin: 1rem auto;
}
.add-to-cart:hover {
    background-color: rgb(151, 151, 151);
    color: white;
    transition: 0.3s;
}
main .mid-product h4,main .mid-product p{
    color: #000;
}
/* main .mid-product h1{
    margin: 0 0 2rem 6rem;
} */
main .mid-product .same-product{
    display: flex;
    justify-content: space-around;
    flex-wrap: nowrap;
    overflow: hidden;
}
main .mid-product .same-product .product p:nth-child(3){
    color: grey;
}

main .mid-product .product-detail-price{
    margin: 0.6rem;
}
main .mid-product .product-detail-price p{
    margin: 0.5rem 0;
    font-size: 12px;
    height: 50px;
    overflow: hidden;
    
}
.product-detail-price h5{
    font-size: 12px;
}
main .mid-product .product-detail-price h3{
    font-size: 20px;
    color: #000;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0;
}
main .mid-product .product-detail-price p:nth-child(3){
    color: #32CD32;
    color: #FFA500;
    color: #0000FF;
    height: auto;
}

.average-rating h1{
    font-size: 2rem;
    margin: 0;
}
.average-rating p{
    font-size: 1rem;
    margin: 0;
}
.reviews-container h2{
    margin: 0 0 0 1rem;
    margin: 0;
}
.owl-item .active{
    margin: 0;
}

/* --- Benzer Ürünler Modern Kartlar --- */
.same-product {
    display: flex;
    gap: 24px;
    justify-content: flex-start;
    align-items: stretch;
    margin-top: 2rem;
}
.same-product-detail {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    padding: 18px 18px 20px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 220px;
    max-width: 240px;
    position: relative;
    transition: box-shadow 0.2s;
}
.same-product-detail:hover {
    box-shadow: 0 8px 32px rgba(0,123,255,0.10);
}
.same-product-detail img {
    width: 120px;
    height: 160px;
    object-fit: contain;
    border-radius: 12px;
    margin-bottom: 12px;
    background: #f8f8f8;
}
.same-product-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}
.same-product-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111;
    margin: 0 0 2px 0;
    letter-spacing: 0.01em;
}
.same-product-brand {
    color: #007bff;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 2px;
    display: block;
}
.same-product-stars {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 1.1rem;
    margin: 2px 0 2px 0;
}
.same-product-stars.orange i { color: #FFA500; }
.star-rating {
    font-size: 1rem;
    font-weight: 600;
    color: #FFA500;
    margin-left: 6px;
}
.same-product-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #222;
    margin: 4px 0 0 0;
}
.same-product-price.orange {
    color: #ff3c00;
}
.same-product-cart {
    width: 100%;
    background: #1976ff;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px 0;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 14px;
    cursor: pointer;
    transition: background 0.2s;
    box-shadow: 0 2px 8px rgba(25,118,255,0.08);
}
.same-product-cart:hover {
    background: #0056b3;
}
.same-product-new {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #ff5a1f;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 16px;
    padding: 2px 14px;
    z-index: 2;
}
@media (max-width: 900px) {
    .same-product {
        gap: 12px;
    }
    .same-product-detail {
        min-width: 160px;
        max-width: 180px;
        padding: 10px 6px 12px 6px;
    }
    .same-product-detail img {
        width: 80px;
        height: 110px;
    }
}

@media (max-width: 1600px){
    main .up-product .product-info .sepet-favorite button,
    .seller-info-box{
        width: 100%;
    }
    main .up-product, .mid-product{
        margin: 0 15rem;
    }
}

@media (max-width: 1400px){
    .border{
        margin: 0 1rem;
    }
    .stars{
        font-size: 26px;
    }
    main .up-product .product-info h6{
        font-size: 12px;
    }
    main .up-product .product-detail{
        display: block;
    }
    main .up-product .product-info{
        width: 100%;
    }
    main .product-detail .seller-info{
        width: 100%;
    }
    main .product-detail .seller-info .seller-info-down{
        padding: 1rem;
    }
    main .up-product, .mid-product{
        margin: 0 10rem;
    }
}
@media (max-width: 1250px){
    main .mid-product .same-product{
        display: block;
    }
    
    main .product-detail{
        width: 100%;
        padding: 0;
        margin: 1rem 1rem;
    }
    main .product-detail .seller-info{
        width: 100%;
    }
    main .up-product{
        display: block;
    }
    main .up-product .product-image{
        width: 100%
    }
    main .mid-product h1{
        margin: 0;
    }
    main .mid-product h4, main .mid-product p{
        font-size: 1rem;
    }
    .rating-bar .bar{
        width: 300px;
    }
    .seller-info-box, main .up-product .product-info .sepet-favorite button{
        width: 80%;
    }
    main .up-product, .mid-product{
        margin: 0 5rem;
    }
    main .up-product .product-image img{
        width: 340px;
        height: auto;
    }
    .seller-info-box{
        margin: 0;
    }
    main .up-product .product-info h1{
        font-size: 16px;
    }
    main .up-product .product-info h6{
        font-size: 12px;
    }
    main .up-product .product-information, .reviews-container{
        padding: 2rem 0 0 0;
    }
    main .mid-product .same-product-detail{
        width: 200px;
    }
    .brand-title h1, .seller-person-info h2{
        font-size: 1rem;
    }
    .seller-person-img, .brand-logo img{
        width: 90px;
        height: 90px;
    }
    .brand-labels, .seller-person-info p{
        font-size: 0.8rem;
    }
    .color-stars, .seller-person-stars{
        font-size: 0.8rem;
    }
    .seller-message-button-big, main .up-product .product-info .sepet-favorite button{
        font-size: 0.9rem;
    }
}

@media (max-width: 900px){
    .rating-bar .bar{
        width: 250px;
    }
    .up-product{
        height: auto;
    }
    main .up-product .product-information{
        width: 100%;
    }
    main .up-product .product-detail{
        margin: 0;
        /* padding: 1rem 0 0 0; */
    }
    .text-info{
        width: 70%;
    }
    .review-card{
        width: 200px;
        height: auto;
    }
    .comment{
        margin: 0 0 1rem 0;
    }
    .average-rating{
        margin: auto 0;
    }
    main .up-product .product-info h1{
        font-size: 16px;
    }
    .seller-info-box, main .up-product .product-info .sepet-favorite button{
        width: 95%;
    }
    main .up-product, .mid-product{
        margin: 0 1rem;
    }
    main .up-product .product-image img{
        width: 300px;
    }
    .seller-info-box .seller-info-container .brandImage img{
        width: 100px;
    }
    .seller-info-box .seller-info-container .brandInfo h1, .seller-info-box .seller-info-bottom .seller-info h1{
        font-size: 16px;
    }
    .seller-info-box .seller-message-button{
        padding: 0.5rem;
    }
    .seller-info-box .seller-info-container .brandInfo p{
        font-size: 12px;
    }
    .seller-info-box .seller-info-container .brandInfo{
        margin: 0 0 0 0.4rem;
    }
    .seller-info-box .buyer-stars i{
        font-size: 12px;
    }
    .seller-info-bottom .sellerImage{
        width: 70px;
        height: 70px;
    }
    .mid-product{
        padding: 2rem 0;
    }
    .reviews-container h2, main .mid-product h2{
        font-size: 20px;
    }
    main .mid-product .same-product-detail{
        width: 180px;
    }
    main .mid-product .same-product img{
        height: 150px;
    }
    
}
@media (max-width: 775px){
    main .up-product .product-image img{
        width: 300px;
    }
    .seller-info-box{
        margin: 0;
    }
    main .up-product .product-info h6, main .up-product .product-info p, main .up-product .product-info h1, main .up-product .product-price{
        margin: 0;
    }
    main .up-product .product-detail .product-price{
        margin: 0.5rem 0;
    }
    .seller-info-box .seller-info-container .brandImage img{
        width: 100px;
    }
    .seller-info-box .seller-info-container .brandInfo h1, .seller-info-box .seller-info-bottom .seller-info h1{
        font-size: 16px;
    }
    .seller-info-box i{
        font-size: 12px;
    }
    .seller-info-box .seller-info-container .brandInfo p{
        font-size: 10px;
    }
    .seller-info-box .seller-message-button{
        padding: 0.5rem;
    }
    .owl-item .active{
        width: auto;
    }
}

@media (max-width: 700px){
    main .up-product{
        /* display: block; */
        width: 100%;
        margin: 0;
        padding: 0;
    }
    main .product-detail{
        padding: 20px;
    }
    main .product-detail .seller-info{
        width: 100%;
    }
    main .up-product .product-detail{
        margin: 0;
        width: 100%;
    }
    main .mid-product h1{
        display: flex;
        justify-content: center;
    }
    main .up-product .product-info .sepet-favorite button{
        height: 35px;
    }
    main .up-product .product-detail .product-price h5{
        padding: 0.6rem;
        font-size: 14px;
        margin: auto 0;
    }
    main .up-product .product-info .product-price button:nth-child(2){
        width: 35px;
        height: auto;
    }
    main .up-product .product-info p{
        font-size: 12px;
    }
    main .up-product .product-image img{
        width: 280px;
    }
    main .up-product .product-image{
        text-align: center;
    }
}
@media (max-width: 620px){
    .rating-bar .bar{
        width: 150px;
    }
    .review-card{
        width: 200px;
    }
    .reviews{
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    main .up-product .product-image img{
        width: 250px;
    }
    main .up-product .product-info h1{
        font-size: 12px;
    }
    .seller-info-box .seller-info-container .brandInfo{
        margin: 0 0 0 0.3rem;
    }
}
@media (max-width: 540px){
    main .up-product .product-information{
        display: block;
    }
    main .up-product .product-detail{
        width: 70%;
        margin: 0 auto;
    }
    main .up-product .product-image img{
        width: 220px;
        height: auto;
    }
}
@media (max-width: 500px){
    /*
    .review-card{
        width: 150px;
    }
    .comment{
        display: block;
    }
    .border{
        display: none;
    }
    .average-rating{
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .rating-summary, .reviews-container h2{
        margin: 0 auto;
        width: 80%;
    }
        */
}
@media (max-width: 400px){

    main .mid-product .same-product img{
        height: 100px;
    }
}