/* FULL SCREEN VIEW */
#productDetailView{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:#fff;
    z-index:9999;
    overflow-y:auto;
}

/* IMAGE */
.pdImageBox img{
    width:100%;
    height:320px;
    object-fit:cover;
}

/* CONTENT */
.pdContent{
    padding:15px;
}

.pdPrice{
    font-size:20px;
    font-weight:bold;
    color:#00b42a;
}

.pdStock{
    margin-top:5px;
    font-size:14px;
    color:#555;
}

.pdDesc{
    margin-top:10px;
    color:#666;
    line-height:1.5;
}

/* BOTTOM BAR */
.pdBottomBar{
    position:fixed;
    bottom:0;
    left:0;
    width:100%;
    padding:10px;
    background:#fff;
    border-top:1px solid #eee;
}

.pdAddBtn{
    width:100%;
    padding:14px;
    background:#00b42a;
    color:#fff;
    border:none;
    border-radius:12px;
    font-weight:bold;
}
.pdWrap{
    height:100vh;
    overflow-y:auto;
    background:#fff;
}


.pdIconBtn{
    border:none;
    background:rgba(0,0,0,0.06);
    width:42px;
    height:42px;
    border-radius:12px;
    margin-left:8px;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    transition:0.2s;
      background:#111;

    
}

.pdIconBtn:hover{
    background:rgba(0,0,0,0.12);
}

/* SMALL DETAILS BUTTON */



/* CLICK EFFECT */

.btnDetails:active{

transform:scale(0.92);

}

/* ICON */

.btnDetails i{

pointer-events:none;

}

.productActions{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:10px;
}

.actionLeft{
    flex:1;
}

.actionRight{
    width:40px;
}

.btnAdd{
    width:100%;
}

/*show detail button main*/
.btnDetails{
    width:48px;
    height:48px;
    border:none;
    border-radius:14px;

    background:linear-gradient(
        135deg,
        #00c853,
        #00b42a
    );

    color:#fff;

    display:flex;
    align-items:center;
    justify-content:center;

    cursor:pointer;

    box-shadow:
        0 6px 18px rgba(0,180,42,0.28),
        inset 0 1px 1px rgba(255,255,255,0.25);

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        opacity 0.18s ease;

    position:relative;
    overflow:hidden;
}

/* ICON */
.btnDetails i{
    font-size:18px;
    pointer-events:none;
}

/* HOVER */
.btnDetails:hover{
    transform:translateY(-2px);

    box-shadow:
        0 10px 24px rgba(0,180,42,0.35),
        inset 0 1px 1px rgba(255,255,255,0.25);
}

/* CLICK EFFECT */
.btnDetails:active{
    transform:scale(0.92);
}

/* SHINE EFFECT */
.btnDetails::before{
    content:"";

    position:absolute;
    top:0;
    left:-120%;

    width:100%;
    height:100%;

    background:linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,0.35),
        transparent
    );

    transition:0.5s;
}

.btnDetails:hover::before{
    left:120%;
}

.qtyContainer{
    margin-top:5px;
    display:flex;
    justify-content:center;
}
/* =========================================
   PRODUCT DETAIL FULL PROFESSIONAL STYLE
========================================= */

/* FULL SCREEN */
#productDetailView{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100vh;
    background:#f5f5f5;
    z-index:99999;

    display:none;

    overflow:hidden;
}

/* MAIN WRAP */
.pdWrap{
    width:100%;
    height:100vh;

    overflow-y:auto;
    overflow-x:hidden;

    background:#f5f5f5;

    padding-bottom:120px;

    -webkit-overflow-scrolling:touch;
}

/* =========================================
   TOP BAR
========================================= */

.pdTopBar{
    position:sticky;
    top:0;
    left:0;

    width:100%;
    height:65px;

    background:#ffffff;

    display:flex;
    align-items:center;
    justify-content:space-between;

    padding:0 14px;

    border-bottom:1px solid #ececec;

    z-index:9999;
}

/* LEFT */
.pdTopLeft{
    display:flex;
    align-items:center;
    gap:12px;
}

.pdTopTitle{
    font-size:18px;
    font-weight:700;
    color:#111;
}

/* BACK BUTTON */
.pdBackBtn{
    width:42px;
    height:42px;

    border:none;
    border-radius:14px;

    background:#111;

    color:#fff;

    display:flex;
    align-items:center;
    justify-content:center;

    cursor:pointer;

    font-size:16px;
}

/* RIGHT */
.pdActions{
    display:flex;
    align-items:center;
    gap:10px;
}

/* ICON BUTTON */
.pdIconBtn{
    width:42px;
    height:42px;

    border:none;
    border-radius:14px;

    background:#111;

    color:#fff;

    display:flex;
    align-items:center;
    justify-content:center;

    cursor:pointer;

    font-size:16px;

    transition:0.2s;
}

.pdIconBtn:active{
    transform:scale(0.92);
}

/* =========================================
   HERO
========================================= */

.pdHero{
    position:relative;

    width:100%;

    background:#fff;

    padding:18px;
}

/* MAIN IMAGE */
.pdHero img{
    width:100%;
    height:340px;

    object-fit:contain;

    border-radius:18px;

    background:#fff;
}

/* DISCOUNT BADGE */
.pdDiscount{
    position:absolute;

    top:18px;
    left:18px;

    background:#ff2b2b;
    color:#fff;

    padding:7px 14px;

    border-radius:40px;

    font-size:13px;
    font-weight:700;

    box-shadow:0 5px 15px rgba(255,0,0,0.25);
}

/* =========================================
   GALLERY
========================================= */

.pdGallery{
    width:100%;

    display:flex;
    gap:12px;

    overflow-x:auto;

    padding:15px;

    background:#fff;

    scrollbar-width:none;
}

.pdGallery::-webkit-scrollbar{
    display:none;
}

/* THUMB */
.pdThumb{
    width:75px;
    height:75px;

    min-width:75px;

    object-fit:cover;

    border-radius:16px;

    border:2px solid transparent;

    background:#fff;

    cursor:pointer;

    transition:0.2s;
}

.pdThumb.active{
    border-color:#00b42a;

    transform:scale(1.04);
}

/* =========================================
   CONTENT CARD
========================================= */

.pdContent{
    margin-top:12px;

    background:#fff;

    border-radius:22px 22px 0 0;

    padding:18px;
}

/* PRODUCT NAME */
.pdName{
    font-size:24px;
    font-weight:700;

    color:#111;

    line-height:1.5;
}

/* RATING */
.pdRating{
    margin-top:10px;

    color:#ff9800;

    font-size:15px;

    display:flex;
    align-items:center;
    gap:6px;
}

/* PRICE WRAP */
.pdPriceWrap{
    display:flex;
    align-items:center;
    gap:12px;

    margin-top:18px;
}

/* PRICE */
.pdPrice{
    font-size:28px;
    font-weight:800;

    color:#00b42a;
}

/* OLD PRICE */
.pdOldPrice{
    font-size:17px;

    color:#999;

    text-decoration:line-through;
}

/* =========================================
   MINI INFO
========================================= */

.pdMiniInfo{
    display:flex;
    gap:12px;

    margin-top:22px;

    overflow-x:auto;

    scrollbar-width:none;
}

.pdMiniInfo::-webkit-scrollbar{
    display:none;
}

/* CARD */
.pdInfoCard{
    min-width:max-content;

    background:#f6f6f6;

    padding:12px 15px;

    border-radius:16px;

    font-size:13px;
    font-weight:600;

    color:#333;

    display:flex;
    align-items:center;
    gap:8px;
}

/* =========================================
   SECTION
========================================= */

.pdSection{
    margin-top:28px;
}

/* HEADING */
.pdSection h3{
    font-size:18px;
    font-weight:700;

    margin-bottom:12px;

    color:#111;
}

/* DESCRIPTION */
.pdDesc{
    font-size:15px;

    line-height:1.9;

    color:#555;
}

/* =========================================
   FEATURES LIST
========================================= */

.pdFeatures{
    display:flex;
    flex-direction:column;
    gap:12px;
}

.pdFeatureItem{
    display:flex;
    align-items:center;
    gap:12px;

    background:#f7f7f7;

    padding:14px;

    border-radius:14px;

    font-size:14px;
    color:#333;
}

/* ICON */
.pdFeatureItem i{
    color:#00b42a;
    font-size:16px;
}

/* =========================================
   DELIVERY BOX
========================================= */

.pdDelivery{
    margin-top:22px;

    background:#f8fff9;

    border:1px solid #dff5e5;

    border-radius:18px;

    padding:16px;
}

.pdDeliveryTitle{
    font-size:16px;
    font-weight:700;

    color:#00b42a;

    margin-bottom:10px;
}

.pdDelivery p{
    font-size:14px;
    line-height:1.8;

    color:#444;
}

/* =========================================
   FIXED BOTTOM BAR
========================================= */

.pdBottomBar{
    position:fixed;

    bottom:0;
    left:0;

    width:100%;

    background:#fff;

    padding:14px;

    border-top:1px solid #eee;

    box-shadow:0 -5px 20px rgba(0,0,0,0.08);

    z-index:9999;
}

/* FLEX */
.pdBottomFlex{
    display:flex;
    gap:12px;
}

/* CART BUTTON */
.pdCartBtn{
    flex:1;

    height:56px;

    border:none;

    border-radius:18px;

    background:#00b42a;

    color:#fff;

    font-size:17px;
    font-weight:700;

    cursor:pointer;
}

/* BUY BUTTON */
.pdBuyBtn{
    width:120px;

    height:56px;

    border:none;

    border-radius:18px;

    background:#111;

    color:#fff;

    font-size:16px;
    font-weight:700;

    cursor:pointer;
}

/* CLICK */
.pdCartBtn:active,
.pdBuyBtn:active{
    transform:scale(0.97);
}


/* =========================================
   PRODUCT ACTIONS
========================================= */

.productActions{
    display:flex;
    align-items:center;
    justify-content:space-between;

    gap:10px;
}

.actionLeft{
    flex:1;
}

.actionRight{
    width:42px;
}

/* ADD BUTTON */
.btnAdd{
    width:100%;
}


/* =========================================
   MOBILE FIX
========================================= */

@media(max-width:480px){

    .pdHero img{
        height:290px;
    }

    .pdName{
        font-size:21px;
    }

    .pdPrice{
        font-size:24px;
    }

    .pdBottomFlex{
        gap:10px;
    }

    .pdBuyBtn{
        width:105px;
    }

}