.product-detail{
    padding:60px 0;
    background:var(--background);
}

.product-detail .container{
    max-width:1600px;
    margin:auto;
}

/* GRID */
.product-detail-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:50px;
}

/* LEFT */
.product-gallery{
    display:flex;
    flex-direction:column;
    align-items:center;
}

/**
    * PRODUCT CARD (FOR RELATED PRODUCTS)
    */
    /* LENS */
.lens{
    position:absolute;
    width:120px;
    height:120px;
    border:2px solid var(--accent);
    border-radius:50%;
    display:none;
    pointer-events:none;
    background-repeat:no-repeat;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3), inset 0 0 10px rgba(0,0,0,0.15);
    z-index: 10;
    /* background-size:200%; */
}



/* REMOVE OLD SCALE ZOOM */
.main-image:hover img{
    transform:none;
}

/* MODAL ZOOM */
.zoomable{
    cursor:zoom-in;
    transition:transform 0.3s ease;
}

.zoomable.zoomed{
    transform:scale(2);
    cursor:zoom-out;
}

/* MAIN IMAGE */
.main-image{
    width:100%;
    max-width:500px;
    height:400px;
    border-radius:16px;

    background: var(--background);
    border: 1px solid rgba(201, 162, 39, 0.15);
    box-shadow:0 10px 25px rgba(0,0,0,0.08);
    position: relative;
    display: flex;
    overflow:hidden;
    cursor:crosshair;
    justify-content: center;
}

.main-image img{
    width:100%;
    height:100%;
    object-fit: contain;
    padding: 15px;  
    transition: 0.3s ease;
}

/* ZOOM EFFECT */
/* .main-image:hover img{
    transform:scale(1.4);
} */

/* THUMBNAILS */
.thumbnail-list{
    display:flex;
    gap:12px;
    margin-top:15px;
}

.thumbnail-list img{
    width:80px;
    height:80px;
    object-fit:cover;
    border-radius:10px;
    cursor:pointer;
    border:2px solid transparent;
    transition:0.3s;
}

.thumbnail-list img:hover{
    border-color:var(--accent);
}

/* RIGHT */
.product-info h1{
    font-size:32px;
    margin-bottom:10px;
}

.price{
    font-size:26px;
    color:var(--accent);
    font-weight:bold;
    margin-bottom:15px;
}

.short-desc{
    margin-bottom:20px;
    line-height:1.6;
}

/* BUTTONS */
.actions {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    align-items: center; /* 💡 बटनहरूलाई एउटै सिधा लाइनमा राख्न दाई */
}

.actions form {
    display: inline-block;
    margin: 0;
    padding: 0;
}
.btn-primary {
    background: var(--primary);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-outline {
    border: 1px solid var(--primary);
    padding: 12px 25px;
    background: transparent;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--secondary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* META */
.product-meta p{
    margin-bottom:6px;
}

/* DESCRIPTION */
.product-description{
    margin-top:60px;
    padding:25px;
    background:white;
    border-radius:12px;
}

/* RELATED */
.related{
    margin-top:60px;
}

.related-grid{
     display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
}
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
}

/* MODAL */
.image-modal{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.9);
    justify-content:center;
    align-items:center;
    z-index:9999;
}

.image-modal img{
    max-width:90%;
    max-height:90%;
    border-radius:10px;
}

.close-modal{
    position:absolute;
    top:20px;
    right:40px;
    font-size:40px;
    color:white;
    cursor:pointer;
}

/* MOBILE */
@media(max-width:900px){
    .product-detail-grid{
        grid-template-columns:1fr;
    }

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


/* ==========================================
   ❤️ WISHLIST LIVE BUTTON ROYAL STYLE
========================================== */
#wishlist-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

#wishlist-btn i {
    transition: transform 0.2s ease;
}

/* जब विशलिस्टमा थपिन्छ, बटन रातो र रोयल देखिन्छ भाई */
#wishlist-btn.wishlisted {
    border-color: #7a0c0c !important;
    color: #7a0c0c !important;
    background: #fff5f5 !important;
}

#wishlist-btn.wishlisted i {
    color: #e74c3c !important; /* कडा रातो मुटु भाई */
    transform: scale(1.15);
}

#wishlist-btn:hover i {
    transform: scale(1.2);
}