*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family: Arial, sans-serif;
}

body{
    background:#f5f7f8;
    color:#222;
}

.container{
    max-width:1200px;
    margin:40px auto;
    padding:0 20px;
}

.product-detail{
    display:flex;
    gap:40px;
    background:#fff;
    padding:30px;
    border-radius:20px;
    box-shadow:0 8px 30px rgba(0,0,0,0.08);
    align-items:flex-start;
    flex-wrap:wrap;
}

.product-gallery{
    flex:1 1 500px;
}

.main-image{
    width:100%;
    height:420px;
    border-radius:16px;
    overflow:hidden;
    background:#eef2f3;
    margin-bottom:15px;
}

.main-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.thumb-list{
    display:flex;
    gap:12px;
    flex-wrap:wrap;
}

.thumb{
    width:90px;
    height:90px;
    border-radius:12px;
    overflow:hidden;
    border:2px solid #dfe7e8;
    cursor:pointer;
    transition:0.2s;
    background:#fff;
}

.thumb:hover{
    border-color:#1d7a6f;
    transform:translateY(-2px);
}

.thumb img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.product-info{
    flex:1 1 400px;
}

.category{
    display:inline-block;
    background:#e8f5f2;
    color:#1d7a6f;
    padding:6px 14px;
    border-radius:999px;
    font-size:14px;
    margin-bottom:14px;
}

.product-title{
    font-size:34px;
    margin-bottom:12px;
    line-height:1.3;
}

.price{
    font-size:30px;
    color:#d35400;
    font-weight:bold;
    margin-bottom:18px;
}

.short-desc{
    font-size:16px;
    line-height:1.8;
    color:#555;
    margin-bottom:24px;
}

.spec-box{
    background:#f8fbfb;
    border:1px solid #e3eded;
    border-radius:16px;
    padding:20px;
    margin-bottom:24px;
}

.spec-box h3{
    margin-bottom:14px;
    font-size:20px;
}

.spec-box ul{
    padding-left:20px;
    color:#444;
    line-height:1.9;
}

.action-group{
    display:flex;
    gap:14px;
    flex-wrap:wrap;
}

.btn{
    padding:14px 24px;
    border:none;
    border-radius:12px;
    font-size:16px;
    cursor:pointer;
    transition:0.2s;
}

.btn-buy{
    background: #1d7a6f;
    color: white;
}
.btn-back {
    background: #7f8c8d;
    color: white;
}

.btn-buy:hover{
    background:#165f56;
}

.btn-cart{
    background:#edf4f3;
    color:#1d463f;
}

.btn-cart:hover{
    background:#dbe9e6;
}

.detail-section{
    margin-top:30px;
    background:#fff;
    padding:30px;
    border-radius:20px;
    box-shadow:0 8px 30px rgba(0,0,0,0.06);
}

.detail-section h2{
    margin-bottom:16px;
    font-size:26px;
}

.detail-section p{
    line-height:1.9;
    color:#555;
}

.thumb {
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.thumb:hover,
.thumb.active {
    opacity: 1;
    border: 2px solid #333; /* หรือสีที่ match กับ theme */
}

@media (max-width: 768px){
    .product-title{
        font-size:28px;
    }

    .main-image{
        height:300px;
    }
}