/* ===== Layout ===== */
.wrapper{
    min-height:100vh;
    display:flex;
    flex-direction:column;
}
.content{flex:1;}

.etsy-product-container{
    max-width:1200px;
    margin:40px auto;
    padding:0 15px;
    font-family:Arial,sans-serif;
}

/* ===== Main Product Layout ===== */
.product-main{
    display:flex;
    gap:40px;
    align-items:flex-start;
}

/* ===== Gallery ===== */
.gallery{
    flex:1;
    position:relative;
}
.gallery img{
    width:100%;
    border-radius:10px;
}
.thumbs{
    margin-top:10px;
}
.thumbs img{
    width:65px;
    height:65px;
    object-fit:cover;
    margin-right:6px;
    cursor:pointer;
    border:1px solid #ddd;
    border-radius:6px;
    transition:0.3s;
}
.thumbs img:hover{
    border-color:#FF5A5F;
}

/* Discount Badge */
.discount-badge{
    position:absolute;
    top:15px;
    left:15px;
    background:#FF5A5F;
    color:#fff;
    font-weight:bold;
    padding:6px 12px;
    border-radius:8px;
    font-size:14px;
}

/* ===== Product Info ===== */
.product-info{
    flex:1;
}
.product-info h1{
    font-size:26px;
    margin-bottom:12px;
}

.price{
    font-size:22px;
    font-weight:bold;
}
.sale-price{
    color:red;
    margin-left:10px;
    text-decoration:line-through;
}

.stock{
    margin:10px 0;
}

.colors .color-swatch{
    display:inline-block;
    width:22px;
    height:22px;
    margin-right:6px;
    border:1px solid #000;
    border-radius:50%;
}

/* Buy Button */
.buy-btn{
    background:#FF5A5F;
    color:#fff;
    border:none;
    padding:12px 28px;
    border-radius:6px;
    font-weight:bold;
    cursor:pointer;
    margin-top:15px;
    transition:0.3s;
}
.buy-btn:hover{
    background:#e14b4f;
}

/* ===== Tabs ===== */
.product-tabs{
    margin-top:40px;
}
.tab-btn{
    background:#f5f5f5;
    border:none;
    padding:10px 20px;
    margin-right:5px;
    cursor:pointer;
    border-radius:5px;
}
.tab-btn.active{
    background:#FF5A5F;
    color:#fff;
}
.tab-content{
    display:none;
    margin-top:15px;
    padding:15px;
    border:1px solid #ddd;
    border-radius:8px;
    background:#fff;
}
.tab-content.active{
    display:block;
}

/* Description Collapse */
.description-container{margin:15px 0;}
#desc-text.collapsed{
    max-height:60px;
    overflow:hidden;
}
.desc-btn{
    background:none;
    border:none;
    color:#FF5A5F;
    cursor:pointer;
    font-weight:bold;
}

/* ===== Related Products ===== */

.related-products{
    margin-top:50px;
}

.related-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:20px;
}

.related-item{
    display:flex;
    align-items:flex-start;
    gap:15px;
    padding:12px;
    border:1px solid #e5e5e5;
    border-radius:10px;
    background:#fff;
    text-decoration:none;
    color:#222;
    transition:.3s;
}

.related-item:hover{
    box-shadow:0 5px 15px rgba(0,0,0,.08);
    transform:translateY(-2px);
}

.related-item img{
    width:130px;
    height:130px;
    object-fit:cover;
    border-radius:8px;
    flex-shrink:0;
}

.related-info{
    flex:1;
    display:flex;
    flex-direction:column;
}

.related-title{
    font-size:15px;
    font-weight:600;
    line-height:1.5;
    margin-bottom:8px;
}

.related-rating{
    font-size:13px;
    color:#ffb400;
    margin-bottom:8px;
}

.related-price{
    font-size:18px;
    font-weight:bold;
    margin-top:auto;
}

.related-price .sale-price{
    color:#999;
    text-decoration:line-through;
    margin-right:8px;
}

.related-price .regular-price{
    color:#e53935;
    font-weight:bold;
}

@media(max-width:992px){

    .related-grid{
        grid-template-columns:1fr;
    }

}

@media(max-width:600px){

    .related-item{
        gap:10px;
        padding:10px;
    }

    .related-item img{
        width:95px;
        height:95px;
    }

    .related-title{
        font-size:14px;
    }

    .related-price{
        font-size:16px;
    }

}

/* ===== Seller Message Box ===== */
.product-message-box{
    margin-top:25px;
    padding:15px;
    border:1px solid #ddd;
    border-radius:10px;
    background:#fafafa;
}
.product-message-box textarea{
    width:100%;
    height:80px;
    padding:10px;
    border:1px solid #ccc;
    border-radius:6px;
}
.product-message-box button{
    margin-top:10px;
    background:#111;
    color:#fff;
    border:none;
    padding:8px 18px;
    border-radius:6px;
    cursor:pointer;
}
.product-message-box button:hover{
    background:#000;
}

/* ===== Reviews Section ===== */
.reviews-section{
    margin-top:60px;
}
.review-form select,
.review-form textarea{
    width:100%;
    padding:10px;
    margin-bottom:12px;
    border:1px solid #ccc;
    border-radius:6px;
}
.review-form button{
    background:#FF5A5F;
    color:#fff;
    border:none;
    padding:10px 20px;
    border-radius:6px;
    cursor:pointer;
}
.review-box{
    border:1px solid #eee;
    padding:15px;
    margin-bottom:15px;
    border-radius:8px;
    background:#fff;
}

/* ===== Seller Button Styling ===== */
a[href*="shopview.php"],
a.login-message-link{
    display:inline-block;
    padding:10px 18px;
    margin:5px 0;
    font-size:15px;
    text-decoration:none;
    border-radius:6px;
    transition:0.3s;
    color:#fff;
    background:#111;
}
a[href*="shopview.php"]:hover,
a.login-message-link:hover{
    background:#222;
    color:#ffd700;
}

/* ========================= */
/* ===== MOBILE DESIGN ===== */
/* ========================= */

@media (max-width: 992px){

    .product-main{
        flex-direction:column;
        gap:25px;
    }

    .gallery,
    .product-info{
        width:100%;
    }

    .product-info h1{
        font-size:22px;
    }

    .price{
        font-size:20px;
    }

    .buy-btn{
        width:100%;
        text-align:center;
    }

    .related-grid{
        grid-template-columns:repeat(2,1fr);
    }

}

@media (max-width: 600px){

    .etsy-product-container{
        margin:20px auto;
    }

    .thumbs img{
        width:50px;
        height:50px;
    }

    .related-grid{
        grid-template-columns:1fr;
    }

    .tab-btn{
        padding:8px 12px;
        font-size:14px;
    }

}