:root{
    --navy:#1c2b4a;
    --navy-dark:#132038;
    --ink:#1a1a1a;
    --muted:#767676;
    --line:#e6e6e6;
    --panel:#f4f4f4;
    --green:#1a8a3d;
    --green-bg:#e7f7ec;
    --primary:#0d6efd;
    --radius:4px;
}

/* ===========================
    PRODUCT
=========================== */

.pdp-wrap{
    margin:20px auto;
}

.pdp{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:40px;
}

/* ===========================
    GALLERY
=========================== */

.gallery{
    display:grid;
    grid-template-columns:80px 1fr;
    gap:15px;
}

.thumbs{
    display:flex;
    flex-direction:column;
    gap:10px;
}

.thumbs .item{
    width:70px;
    height:70px;
    border:1px solid var(--line);
    border-radius:6px;
    overflow:hidden;
    cursor:pointer;
    transition:.2s;
}

.thumbs .item:hover,
.thumbs .item.active{
    border-color:var(--primary);
}

.thumb-image{
    width:100%;
    height:100%;
    display:block;
    background-position:center;
    background-repeat:no-repeat;
    background-size:cover;
}

.stage{
    display:flex;
    align-items:center;
    justify-content:center;
}

.frame{
    width:100%;
    height:100%;
}

.frame .img-layer {
    display: none;
}

.frame .img-layer.active {
    display: block;
}

.main-image{
    max-width:100%;
    max-height:100%;
    width:auto;
    height:auto;
    object-fit:contain;
    display:block;
}

.nav-btn{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    width:36px;
    height:36px;
    border:none;
    border-radius:50%;
    background:#fff;
    cursor:pointer;
    box-shadow:0 2px 6px rgba(0,0,0,.2);
}

.nav-prev{
    left:10px;
}

.nav-next{
    right:10px;
}

/* ===========================
    INFO
=========================== */

.info h1{
    margin:0 0 12px;
    font-size:22px;
}

.sku{
    color:var(--muted);
    margin-bottom:10px;
}

.price{
    font-size:26px;
    color:var(--navy);
    font-weight:bold;
    margin-bottom:25px;
}

.field-label{
    margin-bottom:10px;
}

/* ===========================
    ATTRIBUTE
=========================== */

.variant-list,
.swatches{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-bottom:25px;
}

.variant-item{
    cursor:pointer;
}

.variant-cover{
    width:42px;
    height:42px;
    display:block;
    border-radius:50%;
    border:2px solid #ddd;
    background-position:center;
    background-repeat:no-repeat;
    background-size:cover;
    transition:.2s;
}

.variant-item:hover .variant-cover,
.variant-item.active .variant-cover{
    border-color:var(--primary);
    box-shadow:0 0 0 2px rgba(13,110,253,.15);
}

/* ===========================
    SIZE
=========================== */

.sizes{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    margin-bottom:25px;
}

.size-btn{
    width:48px;
    height:38px;
    border:1px solid var(--line);
    background:#fff;
    cursor:pointer;
    border-radius:4px;
    transition:.2s;
}

.size-btn:hover{
    border-color:var(--primary);
}

.size-btn.selected{
    border-color:var(--primary);
    color:var(--primary);
    box-shadow:0 0 0 1px var(--primary);
}

.size-btn.disabled,
.size-btn:disabled{
    opacity:.35;
    cursor:not-allowed;
    pointer-events:none;
}

/* ===========================
    ACTION
=========================== */

.action-row{
    display:flex;
    gap:12px;
    margin-bottom:15px;
}

.qty{
    display:flex;
    border:1px solid var(--navy);
    border-radius:4px;
    overflow:hidden;
}

.qty button{
    width:40px;
    border:none;
    background:#fff;
    cursor:pointer;
    font-size:18px;
}

.qty input{
    width:45px;
    border:none;
    border-left:1px solid var(--line);
    border-right:1px solid var(--line);
    text-align:center;
}

.btn-outline{
    flex:1;
    border:1px solid var(--navy);
    background:#fff;
    color:var(--navy);
    font-weight:600;
    cursor:pointer;
}

.btn-solid{
    width:100%;
    height:46px;
    border:none;
    background:var(--navy);
    color:#fff;
    font-weight:bold;
    cursor:pointer;
}

.btn-solid:hover{
    background:var(--navy-dark);
}

.btn-outline:disabled,
.btn-solid:disabled{
    opacity:.5;
    cursor:not-allowed;
}

/* ===========================
    TABS
=========================== */

.tabs{
    margin-top:40px;
    border-top:1px solid var(--line);
}

.tab-heads{
    display:flex;
    border-bottom:1px solid var(--line);
}

.tab-head{
    padding:10px 15px;
    background:none;
    border:none;
    cursor:pointer;
    color:var(--muted);
    font-weight:600;
    position:relative;
}

.tab-head.active{
    color:var(--ink);
}

.tab-head.active::after{
    content:"";
    position:absolute;
    left:0;
    right:0;
    bottom:-1px;
    height:2px;
    background:var(--navy);
}

.tab-panel{
    display:none;
    padding:20px 0;
    line-height:1.7;
}

.tab-panel.active{
    display:block;
}

#imageViewer{
    position:fixed;
    inset:0;
    z-index:9999;

    display:none;

    justify-content:center;
    align-items:center;

    background:rgba(0,0,0,.9);
}

#imageViewer.show{
    display:flex;
}

#viewerImage{

    max-width:90vw;
    max-height:90vh;

    object-fit:contain;

}

.close-viewer{

    position:absolute;

    right:30px;
    top:20px;

    color:#fff;

    font-size:40px;

    cursor:pointer;

}

.viewer-prev,
.viewer-next{

    position:absolute;

    top:50%;

    transform:translateY(-50%);

    width:50px;
    height:50px;

    border:none;

    border-radius:50%;

    background:rgba(255,255,255,.2);

    color:#fff;

    font-size:30px;

    cursor:pointer;

}

.viewer-prev{

    left:30px;

}

.viewer-next{

    right:30px;

}
.content-product h3{
    font-size: 16px;
}
.content-product img{
    max-width: 100% !important;
    height: auto !important;
}


/* ===========================
    MOBILE
=========================== */

@media(max-width:768px){

    .pdp{
        grid-template-columns:1fr;
    }

    .gallery{
        grid-template-columns:1fr;
    }

    .thumbs{
        order:2;
        flex-direction:row;
        overflow-x:auto;
    }

    .stage{
        order:1;
    }

}