/* =========================
   PRODUCT PAGE
========================= */


.product-page{

    max-width:1500px;

    margin:20px auto;

}



.breadcrumbs{

    color:#8c98b5;

    font-size:14px;

    margin-bottom:30px;

}





.product-layout{

    display:grid;

    grid-template-columns:
1fr 400px;

    gap:25px;

    align-items:start;

}



/* =========================
   LEFT SIDE
========================= */


.product-left{

    display:flex;

    flex-direction:column;

    gap:20px;

}





/* GALLERY */


.gallery-wrapper{

    display:grid;

    grid-template-columns:100px 1fr;

    gap:20px;

}



.gallery-thumbs{

    display:flex;

    flex-direction:column;

    gap:12px;

}



.gallery-thumbs img{

    width:90px;

    height:70px;

    object-fit:cover;

    border-radius:14px;

    cursor:pointer;

    background:#182b45;

    border:2px solid transparent;

    transition:.2s;

}



.gallery-thumbs img:hover,
.gallery-thumbs img.active{

    border-color:#ff7885;

}





.more-images{

    width:90px;

    height:70px;

    background:#182b45;

    border-radius:14px;

    display:flex;

    align-items:center;

    justify-content:center;

    text-align:center;

    color:white;

    font-size:13px;

}





.gallery-main{

    background:#12243A;

    border-radius:22px;

    padding:20px;

    min-height:520px;

    display:flex;

    align-items:center;

    justify-content:center;

}





.gallery-main img{

    width:100%;

    max-height:520px;

    object-fit:contain;

}





/* =========================
 FEATURES
========================= */


.features{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:15px;

}





.feature-card{

    background:#12243A;

    border-radius:16px;

    padding:18px;

    display:flex;

    gap:12px;

    align-items:center;

    color:white;

}



.feature-card span{

    font-size:22px;

}



.feature-card small{

    display:block;

    color:#8d9ab7;

}



.feature-card b{

    display:block;

    margin-top:5px;

}





/* =========================
 TABS
========================= */


.content-tabs{

    background:#12243A;

    border-radius:20px;

    padding:25px;

}



.tabs{

    display:flex;

    gap:30px;

    border-bottom:1px solid #263553;

    padding-bottom:15px;

}



.tabs button{

    background:none;

    border:none;

    color:#9ca9be;

    cursor:pointer;

    font-size:16px;

}



.tabs button.active{

    color:#ff7885;

}





.tab-content{

    padding-top:20px;

    color:#c4cee0;

    line-height:1.7;

}





/* =========================
 RIGHT CARD
========================= */


.product-right{

    position:sticky;

    top:100px;

}





.info-card{

    background:#12243A;

    border-radius:22px;

    padding:28px;

}





.category-line{

    display:flex;

    gap:15px;

    margin-bottom:20px;

}



.category-line span{

    color:#ff7885;

    font-size:14px;

}





.info-card h1{

    font-size:32px;
font-weight:800;
    line-height:1.2;

    margin:20px 0;

}





.short-description{

    color:#9ca9be;

    line-height:1.6;

}





/* PRICE */


.price-block{

    display:flex;

    align-items:center;

    gap:15px;

    margin:30px 0;

}



.price{

    font-size:42px;

    font-weight:800;

}



.old-price{

    color:#78839c;

    text-decoration:line-through;

}





/* SELLER */


.seller-card{

    background:#182b45;

    border-radius:18px;

    padding:18px;

    display:flex;

    gap:15px;

    align-items:center;

}



.seller-avatar{

    width:65px;

    height:65px;

    border-radius:50%;

    overflow:hidden;

    background:#202a43;

}



.seller-avatar img{

    width:100%;

    height:100%;

    object-fit:cover;

}



.seller-info{

    display:flex;

    flex-direction:column;

    gap:8px;

}



.seller-info b{

    font-size:17px;

}



.seller-rating{

    color:#ffd34d;

}



.seller-info a{

    color:#ff7885;

    text-decoration:none;

}





/* =========================
 BUTTONS
========================= */


.buy-area{

    margin-top:25px;

}



.buy-button{

    width:100%;

    height:55px;

    border:none;

    border-radius:15px;

    background:#ff7885;

    color:white;

    font-size:17px;

    font-weight:700;

    cursor:pointer;

}





.small-actions{

    display:grid;

    grid-template-columns:1fr 55px;

    gap:12px;

    margin-top:12px;

}





.cart-button,
.favorite-btn{

    height:55px;

    border:none;

    border-radius:15px;

    background:#202b4a;

    color:white;

    cursor:pointer;

}





.favorite-btn{

    font-size:25px;

}



.favorite-btn.active{

    background:#ff7885;

}





/* =========================
 ADVANTAGES
========================= */


.advantages{

    margin-top:25px;

    border-top:1px solid #263553;

    padding-top:20px;

}



.advantages div{

    display:flex;

    flex-direction:column;

    gap:5px;

    margin-bottom:18px;

}



.advantages b{

    color:white;

}



.advantages small{

    color:#8d9ab7;

}


.tab-panel{

display:none;

}



.active-panel{

display:block;

}



.tab-btn.active{

color:#ff7885;

border-bottom:2px solid #ff7885;

}



.review-card{


background:#182b45;

border-radius:16px;

padding:18px;

margin-top:15px;


}



.review-user{

font-size:16px;

color:white;

}



.review-stars{

color:#ffd34d;

margin:10px 0;

}



.review-card p{

color:#c4cee0;

}



.review-card small{

color:#8d9ab7;

}

.gallery-main img{

transition:.2s;

}



.product-rating{

display:flex;

gap:10px;

align-items:center;

color:#9ca9be;

margin-bottom:15px;

}


.stars{

color:#ffd34d;

}



.product-stats{

display:flex;

gap:15px;

margin-bottom:20px;

}



.product-stats div{

background:#12243A;

padding:15px;

border-radius:15px;

display:flex;

flex-direction:column;

min-width:120px;

}



.product-stats span{

color:#8d9ab7;

font-size:13px;

}

.similar-products{

margin-top:40px;

}



.similar-products h2{

margin-bottom:20px;

}



#similarList{

display:grid;

grid-template-columns:
repeat(4,1fr);

gap:20px;

}



.similar-card{

background:#12243A;

border-radius:18px;

padding:15px;

text-decoration:none;

color:white;

}



.similar-card img{

width:100%;

height:160px;

object-fit:contain;

background:white;

border-radius:12px;

}



.similar-card h3{

font-size:16px;

}



@media(max-width:900px){

#similarList{

grid-template-columns:
repeat(2,1fr);

}

}

/* ==========================
   SIMILAR PRODUCTS
========================== */

.similar-products{

    margin-top:45px;

}



.similar-products h2{

    margin-bottom:20px;

    font-size:28px;

}



.similar-grid{

    display:grid;

    grid-template-columns:
    repeat(auto-fill,minmax(220px,1fr));

    gap:20px;

    

}



.similar-card{

    background:#162845;

    border-radius:18px;

    overflow:hidden;

    text-decoration:none;

    transition:.25s;
    

}



.similar-card:hover{

    transform:translateY(-6px);

}



.similar-card img{

    width: 100%;
    height: 180px;
    object-fit: cover;
    object-position: center;
    display: block;

}



.similar-info{

    padding:18px;

}



.similar-info h3{

    font-size:18px;

    color:white;

    margin-bottom:10px;

}



.similar-price{

    color:#ff7885;

    font-size:22px;

    font-weight:700;

}

.reviews-header{

display:flex;

justify-content:space-between;

align-items:center;

margin-bottom:20px;

}



.review-button{

background:#ff7885;

border:none;

color:white;

padding:12px 20px;

border-radius:12px;

cursor:pointer;

}



.review-form{

background:#182b45;

padding:20px;

border-radius:16px;

margin-bottom:20px;

}



.review-form textarea{

width:100%;

height:100px;

margin:15px 0;

background:#101d33;

border:none;

border-radius:12px;

padding:15px;

color:white;

}

/* ==========================
   REVIEW FORM
========================== */

.review-form{

    margin-top:20px;

    padding:20px;

    border-radius:18px;

    background:#162845;

}



.review-select{

    width:180px;

    height:42px;

    border:none;

    border-radius:10px;

    background:#0f1d33;

    color:white;

    padding:0 12px;

    margin-bottom:18px;

    font-size:15px;

}



.review-textarea{

    width:100%;

    min-height:130px;

    resize:vertical;

    border:none;

    border-radius:12px;

    background:#101d33;

    color:white;

    padding:15px;

    font-size:15px;

    outline:none;

    box-sizing:border-box;

}



.review-textarea::placeholder{

    color:#8d9ab7;

}



.review-submit{

    margin-top:18px;

    background:#ff7885;

    color:white;

    border:none;

    border-radius:12px;

    padding:12px 26px;

    font-size:15px;

    font-weight:600;

    cursor:pointer;

    transition:.2s;

}



.review-submit:hover{

    background:#ff6475;

}

/* =====================
   STAR REVIEW
===================== */


.star-rating{

display:flex;

gap:8px;

margin-bottom:20px;

}



.star{

font-size:35px;

color:#52617c;

cursor:pointer;

transition:.2s;

}



.star:hover{

transform:scale(1.15);

}



.star.active{

color:#ffd34d;

}

.review-name{

color:white;

font-weight:700;

}


.review-text{

margin-top:12px;

color:#d8e1f2;

line-height:1.5;

}

.review-card{

background:#162845;

border-radius:18px;

padding:20px;

margin-top:15px;

}



.review-user{

display:flex;

align-items:center;

gap:12px;

}



.review-avatar{

width:45px;

height:45px;

border-radius:50%;

object-fit:cover;

}



.review-name{

font-weight:700;

color:white;

}



.review-date{

font-size:13px;

color:#8291ad;

}



.review-stars{

margin-top:15px;

color:#ffd34d;

font-size:20px;

}



.review-text{

margin-top:12px;

color:#dbe5f5;

line-height:1.5;

}

.product-report{

margin-top:40px;

padding-top:20px;

border-top:1px solid #263954;

}


.product-report a{

color:#ff7885;

font-size:14px;

text-decoration:none;

}


.product-report a:hover{

text-decoration:underline;

}

.cart-button{

transition:0.3s;

}


.cart-button.added{

background:#263f5f;

color:#6ff5a3;

}


.cart-button:active{

transform:scale(0.95);

}

.image-viewer{

    position:fixed;

    inset:0;

    background:rgba(5,8,18,.92);

    display:flex;

    justify-content:center;

    align-items:center;

    opacity:0;

    visibility:hidden;

    transition:.25s;

    z-index:99999;

}

.image-viewer.show{

    opacity:1;

    visibility:visible;

}

.image-viewer img{

    max-width:90vw;

    max-height:90vh;

    border-radius:18px;

    box-shadow:0 30px 80px rgba(0,0,0,.5);

}

.image-viewer-close{

    position:absolute;

    top:25px;

    right:35px;

    font-size:46px;

    color:#fff;

    cursor:pointer;

    user-select:none;

    transition:.2s;

}

.image-viewer-close:hover{

    transform:scale(1.15);

}

.success-message {

    margin:20px 0;

    padding:16px 20px;

    background:#123b2a;

    border:1px solid #22c55e;

    color:#86efac;

    border-radius:14px;

    font-weight:600;

}

/* =========================
   PRODUCT MOBILE FIX
========================= */


@media(max-width:768px){


.product-page{

    width:100%;

    padding:0 16px;

    margin:20px auto;

}


/* Галерея */

.gallery-wrapper{

    display:flex;

    flex-direction:column-reverse;

}



.gallery-main{

    min-height:260px;

    padding:15px;

    border-radius:18px;

}



.gallery-main img{

    max-height:260px;

}



/* миниатюры */

.gallery-thumbs{

    flex-direction:row;

    overflow-x:auto;

}


.gallery-thumbs img{

    flex:0 0 70px;

    width:70px;

    height:55px;

}



/* характеристики */


.features{

    grid-template-columns:repeat(2,1fr);

    gap:10px;

}


.feature-card{

    padding:12px;

    flex-direction:column;

    align-items:flex-start;

}


.feature-card span{

    font-size:18px;

}



/* статистика */


.product-stats{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:8px;

}


.product-stats div{

    min-width:0;

    padding:10px;

}



/* карточка покупки */


.info-card{

    padding:18px;

    border-radius:18px;

}


.info-card h1{

    font-size:26px;

}


.price{

    font-size:32px;

}



/* кнопки */


.buy-button{

    height:50px;

}



.small-actions{

    grid-template-columns:1fr 50px;

}



/* похожие товары */


.similar-grid{

    grid-template-columns:repeat(2,1fr);

    gap:12px;

}


.similar-card img{

    height:120px;

}


.similar-info{

    padding:12px;

}


}

@media(max-width:768px){

.gallery-main{

    height:220px;
    min-height:220px;

    padding:10px;

}


.gallery-main img{

    max-height:200px;

    width:100%;

    object-fit:contain;

}

}

@media(max-width:768px){

.tabs{

    gap:15px;

    overflow-x:auto;

    white-space:nowrap;

}


.tabs button{

    flex:0 0 auto;

    font-size:14px;

}

}

@media(max-width:768px){


.product-layout{

    display:flex;
    flex-direction:column;
    gap:20px;

}



.product-left{

    width:100%;

}



.product-right{

    width:100%;

    position:static;

}



.info-card{

    width:100%;

    box-sizing:border-box;

}



}

.mobile-product-info{

display:none;

}



@media(max-width:768px){


.mobile-product-info{

display:block;

background:#142843;

border-radius:20px;

padding:20px;

margin-top:20px;

}



.mobile-product-info h1{

font-size:28px;

margin:15px 0;

}



.mobile-product-info .price{

font-size:34px;

font-weight:800;

margin:20px 0;

}



.mobile-product-info .buy-button{

width:100%;

height:52px;

font-size:17px;

}



}

@media(max-width:768px){


.product-right{

display:none;

}


}

.mobile-seller-card{

display:none;

}


@media(max-width:768px){


.mobile-seller-card{

display:flex;

align-items:center;

gap:15px;

background:#142843;

border-radius:18px;

padding:16px;

margin-top:15px;

}


.mobile-seller-card img{

width:55px;

height:55px;

border-radius:50%;

object-fit:cover;

}


.mobile-seller-card h3{

margin:0;

font-size:18px;

}


.seller-rating{

color:#ffc928;

margin:5px 0;

}


.mobile-seller-card a{

color:#ff7184;

font-size:14px;

}


}

.mobile-benefits{

display:none;

}



@media(max-width:768px){


.mobile-benefits{

display:grid;

grid-template-columns:repeat(3,1fr);

gap:10px;

margin-top:20px;

}



.mobile-benefits div{

background:#142843;

border-radius:16px;

padding:12px 5px;

text-align:center;

font-size:22px;

}



.mobile-benefits span{

display:block;

font-size:11px;

color:#aab4d0;

margin-top:5px;

}


}

@media(max-width:768px){


.similar-grid{

    display:flex;

    overflow-x:auto;

    gap:15px;

    scroll-snap-type:x mandatory;

    padding-bottom:10px;

}



.similar-card{

    flex:0 0 220px;

    scroll-snap-align:start;

}



.similar-card img{

    height:140px;

}



}