/* ======================
PRODUCT DETAILS LAYOUT
====================== */

body{
font-family:Arial, Helvetica, sans-serif;
background:#f5f5f5;
margin:0;
}

.pd-header{
display:flex;
align-items:center;
gap:10px;
padding:15px;
background:white;
border-bottom:1px solid #eee;
}

.pd-container{
max-width:1100px;
margin:auto;
padding:20px;
display:grid;
grid-template-columns:1fr 1fr;
gap:30px;
}

/* ======================
GALLERY
====================== */

.pd-gallery{
background:white;
padding:20px;
border-radius:10px;
}

.gallery-main{
width:100%;
overflow:hidden;
border-radius:10px;
}

.gallery-main img{
width:100%;
display:block;
transition:0.3s;
}

.gallery-thumbs{
display:flex;
gap:10px;
margin-top:10px;
}

.gallery-thumbs img{
width:70px;
height:70px;
object-fit:cover;
border-radius:8px;
cursor:pointer;
border:2px solid transparent;
}

.gallery-thumbs img.active{
border-color:#14b8a6;
}

/* ======================
PRODUCT INFO
====================== */

.pd-info{
background:white;
padding:20px;
border-radius:10px;
}

.pd-title{
font-size:28px;
margin-bottom:10px;
}

.pd-rating{
color:#f59e0b;
margin-bottom:15px;
}

.pd-price h2{
color:#10b981;
font-size:28px;
}

.pd-price del{
color:#999;
}

.discount{
background:#ef4444;
color:white;
padding:4px 10px;
border-radius:6px;
font-size:12px;
}

.stock{
color:#10b981;
margin-top:10px;
}

/* ======================
OPTIONS
====================== */

.pd-option{
margin-top:20px;
}

.color-options button,
.size-options button{
padding:10px 16px;
border:1px solid #ddd;
border-radius:8px;
cursor:pointer;
background:white;
}

.color-options button.active,
.size-options button.active{
background:#14b8a6;
color:white;
border-color:#14b8a6;
}

/* QUANTITY DESIGN */

.qty-box{

display:flex;

align-items:center;

gap:10px;

margin-top:10px;

}

.qty-box button{

width:36px;

height:36px;

border:none;

background:#f3f3f3;

border-radius:6px;

font-size:20px;

cursor:pointer;

}

.qty-box input{

width:60px;

height:36px;

text-align:center;

border:1px solid #ddd;

border-radius:6px;

font-weight:bold;

}

/* ACTION BUTTONS */

.pd-actions{

display:flex;

gap:10px;

margin-top:20px;

}

.pd-actions button{

flex:1;

padding:14px;

border:none;

border-radius:10px;

font-weight:bold;

cursor:pointer;

}

.add-cart{

background:#14b8a6;

color:white;

}

.buy-now{

background:#0ea5e9;

color:white;

}

.wishlist{

background:#eee;

}


/* MOBILE FIXED */

@media(max-width:900px){

.pd-actions{

position:fixed;

bottom:0;

left:0;

right:0;

padding:10px;

background:white;

border-top:1px solid #eee;

}

body{

padding-bottom:80px;

}

}
/* ======================
RESPONSIVE
====================== */

@media(max-width:900px){

.pd-container{
grid-template-columns:1fr;
}

.gallery-thumbs img{
width:60px;
height:60px;
}

}

/* COLOR OPTIONS */

.color-options{
display:flex;
gap:10px;
flex-wrap:wrap;
}

.color-options button{

display:flex;
align-items:center;
gap:8px;

padding:10px 14px;

border:1px solid #ddd;

border-radius:8px;

background:white;

cursor:pointer;

font-size:14px;

}

.color-options button.active{

border:2px solid #14b8a6;

}

.color-dot{

width:16px;

height:16px;

border-radius:50%;

display:inline-block;

}

/* SELECT OPTIONS MODAL */

.select-modal{

position:fixed;

top:0;

left:0;

right:0;

bottom:0;

background:rgba(0,0,0,0.4);

display:none;

align-items:flex-end;

justify-content:center;

z-index:9999;

}

.select-modal.active{

display:flex;

}

.select-content{

background:white;

width:100%;

max-width:500px;

padding:20px;

border-radius:20px 20px 0 0;

}

.modal-product{

display:flex;

gap:15px;

margin-bottom:15px;

}

.modal-product img{

width:80px;

height:80px;

object-fit:cover;

border-radius:8px;

}

.modal-colors,
.modal-sizes{

display:flex;

gap:10px;

flex-wrap:wrap;

margin-bottom:15px;

}

.modal-colors button,
.modal-sizes button{

padding:10px 14px;

border:1px solid #ddd;

border-radius:8px;

background:white;

cursor:pointer;

}

.modal-colors button.active,
.modal-sizes button.active{

border:2px solid #14b8a6;

color:#14b8a6;

}

.modal-qty{

display:flex;

gap:10px;

align-items:center;

margin-bottom:15px;

}

.modal-qty button{

width:35px;

height:35px;

}

.modal-add-cart{

width:100%;

padding:14px;

background:#14b8a6;

color:white;

border:none;

border-radius:10px;

font-weight:bold;

}

.close-modal{

position:absolute;

right:15px;

top:15px;

border:none;

background:none;

font-size:18px;

cursor:pointer;

}



/* TOTAL SECTION */

.pd-total{

width:100%;

margin-top:20px;

padding-top:15px;

border-top:1px solid #eee;

display:flex;

flex-direction:column;

align-items:flex-start;

gap:5px;

}

.pd-total h3{

font-size:16px;

color:#555;

margin:0;

}

.pd-total h2{

font-size:28px;

color:#10b981;

margin:0;

font-weight:700;

}


/* ACTION BUTTONS */

.desktop-actions{

display:flex;

gap:10px;

margin-top:20px;

}

.desktop-actions button{

padding:12px 18px;

border:none;

border-radius:8px;

font-weight:600;

cursor:pointer;

}

.add-cart-btn{

background:#14b8a6;

color:white;

}

.buy-now-btn{

background:#0284c7;

color:white;

}

.wishlist-btn{

background:#eee;

}



.mobile-actions{

display:none;

}

@media(max-width:900px){

.desktop-actions{

display:none;

}

.mobile-actions{

position:fixed;

bottom:0;

left:0;

right:0;

display:flex;

gap:10px;

padding:10px;

background:white;

border-top:1px solid #eee;

z-index:999;

}

.mobile-actions button{

flex:1;

padding:14px;

border:none;

border-radius:10px;

font-weight:bold;

}

}


/* PRODUCT BOTTOM SECTION */

.product-bottom{

display:flex;

align-items:center;

justify-content:space-between;

margin-top:25px;

padding-top:15px;

border-top:1px solid #eee;

flex-wrap:wrap;

}

/* TOTAL */

.product-total{

display:flex;

flex-direction:column;

}

.product-total span{

font-size:15px;

color:#777;

}

.product-total strong{

font-size:28px;

color:#14b8a6;

font-weight:700;

}

.desktop-actions{

display:flex;

gap:12px;

}

.desktop-actions button{

border:none;

padding:12px 18px;

border-radius:8px;

font-weight:600;

cursor:pointer;

display:flex;

align-items:center;

gap:6px;

}

/* wishlist */

.wishlist-btn{

background:#f1f5f9;

}

/* cart */

.add-cart-btn{

background:#14b8a6;

color:white;

}

/* buy */

.buy-now-btn{

background:#0ea5e9;

color:white;

}


/* MOBILE */

@media(max-width:900px){

.product-bottom{

flex-direction:column;

align-items:flex-start;

gap:15px;

}

.desktop-actions{

display:none;

}

.mobile-actions{

position:fixed;

bottom:0;

left:0;

right:0;

background:white;

padding:10px;

display:flex;

gap:10px;

border-top:1px solid #eee;

}

}