body{
    font-family:Arial;
    background:#f5f6f8;
    margin:0;
}

.container{
    width:90%;
    margin:40px auto;
    margin-top: 15px;
}

.product-wrapper{
    display:flex;
    gap:50px;
    background:#fff;
    padding:40px;
    border-radius:8px;
}

/* LEFT */
.gallery{
    display:flex;
    gap:20px;
}

.thumbnail-list{
    display:flex;
    flex-direction:column;
    gap:10px;
}

.thumbnail-list img{
    width:70px;
    height:70px;
    object-fit:contain;
    border:1px solid #ddd;
    cursor:pointer;
}

.main-image-box{
    width:400px;
    height:400px;
    display:flex;
    align-items:center;
    justify-content:center;
    border:1px solid #eee;
    overflow:hidden;
}

.main-image-box img{
    max-width:100%;
    max-height:100%;
    object-fit:contain;
    transition:.4s;
}

.main-image-box:hover img{
    transform:scale(1.15);
}

/* RIGHT */
.details{
    flex:1;
}

.price-box{
    margin:15px 0;
}

.current-price{
    font-size:26px;
    color:#2e7d32;
    font-weight:bold;
}

.old-price{
    text-decoration:line-through;
    margin-left:10px;
    color:#999;
}

.discount{
    color:red;
    margin-left:10px;
}

.variant-box button{
    padding:8px 15px;
    border:1px solid #ccc;
    margin-right:10px;
    background:#fff;
    cursor:pointer;
}

.variant-box button:hover{
    border-color:#1976d2;
    color:#1976d2;
}

.highlights ul{
    padding-left:20px;
}

.spec-section{
    margin-top:40px;
    background:#fff;
    padding:30px;
}

.spec-table{
    width:100%;
    border-collapse:collapse;
}

.spec-table td{
    border:1px solid #eee;
    padding:10px;
}


.review-section{
    margin-top:50px;
    background:#fff;
    padding:30px;
    border-radius:8px;
}

.review-section h3{
    margin-bottom:20px;
}

.average-rating{
    display:flex;
    align-items:center;
    gap:15px;
    margin-bottom:20px;
}

.avg-number{
    font-size:28px;
    font-weight:bold;
    color:#2e7d32;
}

.stars{
    color:#fbc02d;
    font-size:18px;
}

.review-card{
    padding:15px 0;
    border-bottom:1px solid #eee;
}

.review-top{
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.review-text{
    margin-top:8px;
    color:#555;
    line-height:1.5;
}



.related-products{
    margin-top:40px;
}

.related-grid{
    display:flex;
    gap:20px;
    flex-wrap:wrap;
}

.related-card{
    width:220px;
    background:#fff;
    padding:15px;
    border-radius:6px;
    transition:.3s;
}

.related-card:hover{
    box-shadow:0 5px 15px rgba(0,0,0,.1);
}

.related-card img{
    width:100%;
    height:180px;
    object-fit:contain;
}

@media(max-width:900px){
    .product-wrapper{
        flex-direction:column;
    }

    .main-image-box{
        width:100%;
        height:350px;
    }
}


.product-buttons{
display:flex;
gap:15px;
margin-top:20px;
}

.buy-now{
background:#ff7a00;
color:#fff;
padding:12px 25px;
text-decoration:none;
border-radius:6px;
font-weight:600;
}

.add-cart{
background:#222;
color:#fff;
border:none;
padding:12px 25px;
border-radius:6px;
cursor:pointer;
}

.view-btn{
display:inline-block;
padding:8px 16px;
background:linear-gradient(135deg,#6366f1,#4f46e5);
color:#fff;
text-decoration:none;
border-radius:6px;
font-size:14px;
font-weight:500;
transition:0.3s;
}

.view-btn:hover{
background:linear-gradient(135deg,#4f46e5,#4338ca);
transform:translateY(-2px);
box-shadow:0 4px 12px rgba(79,70,229,0.4);
}

.buy-tip{
margin-top:8px;
font-size:13px;
color:#ff0000;
background:#f8f9ff;
border-left:3px solid #6366f1;
padding:6px 10px;
border-radius:4px;
line-height:1.4;
}