/* Product details page (moved from views/product-details.php) */

        /* ===========================
   Product Options
=========================== */

.cart-wrp{
    margin:30px 0;
    display:flex;
    flex-direction:column;
    gap:18px;
}

.cart-wrp .product-option{
    width:100%;
}

.cart-wrp .option-label{
    display:flex;
    justify-content:space-between;
    align-items:center;
    font-size:15px;
    font-weight:600;
    color:#222;
    margin-bottom:8px;
}

.cart-wrp .option-label span{
    color:#dc3545;
    font-size:14px;
}

.cart-wrp .option-select{
    width:100%;
    height:52px;
    border:1px solid #d9d9d9;
    border-radius:8px;
    background:#fff;
    font-size:15px;
    font-weight:500;
    color:#444;
    padding:0 15px;
    transition:all .3s ease;
    box-shadow:none;
}

.cart-wrp .option-select:hover{
    border-color:#209698;
}

.cart-wrp .option-select:focus{
    border-color:#209698;
    box-shadow:0 0 0 .2rem rgba(32,150,152,.15);
}

.cart-wrp .option-select option{
    padding:10px;
}

/* Tablet */

@media (max-width:991px){

    .cart-wrp{
        gap:15px;
    }

    .cart-wrp .option-select{
        height:48px;
    }

}

/* Mobile */

@media (max-width:767px){

    .cart-wrp{
        margin:25px 0;
        gap:14px;
    }

    .cart-wrp .option-label{
        font-size:14px;
        margin-bottom:6px;
    }

    .cart-wrp .option-select{
        height:46px;
        font-size:14px;
        padding:0 12px;
    }

}
.dimension-wrapper{
    display:flex;
    gap:15px;
    flex-wrap:wrap;
}

.dimension-box{
    flex:1;
    min-width:160px;
}

.dimension-box label{
    font-weight:600;
    margin-bottom:8px;
    display:block;
}

.dimension-input{
    display:flex;
    border:1px solid #ddd;
    border-radius:8px;
    overflow:hidden;
}

.dimension-input button{
    width:45px;
    border:none;
    background:#f5f5f5;
    font-size:20px;
    font-weight:bold;
}

.dimension-input input{
    flex:1;
    border:none;
    text-align:center;
    height:48px;
    outline:none;
}

.dimension-input button:hover{
    background:#209698;
    color:#fff;
}

@media(max-width:768px){

    .dimension-wrapper{
        flex-direction:column;
    }

}
.dimension-value{
    color:#000 !important;
}
.customer-qty-wrapper{

    display:flex;
    flex-wrap:wrap;
    gap:12px;
    margin-top:10px;

}

.customer-qty-item{

    width:70px;
    text-align:center;

}

.qty-title{

    background:#f5f5f5;
    border:1px solid #ddd;
    border-radius:6px 6px 0 0;
    padding:8px 5px;
    font-size:13px;
    font-weight:600;
    color:#333;

}

.customer-qty-input{

    width:100%;
    height:42px;
    border:1px solid #ddd;
    border-top:none;
    border-radius:0 0 6px 6px;
    text-align:center;
    font-weight:600;
    font-size:15px;
    outline:none;

}

.customer-qty-input:focus{

    border-color:#209698;

}

@media(max-width:768px){

    .customer-qty-item{

        width:60px;

    }

    .qty-title{

        font-size:12px;

    }

    .customer-qty-input{

        height:38px;
        font-size:14px;

    }

}
.customer-qty-input{
    color:#000 !important;
}

/* =========================================
   Artwork Upload Modal
========================================= */

.artwork-modal {
    border: 0;
    border-radius: 16px;
    overflow: hidden;
}

.artwork-modal .modal-header {
    padding: 22px 25px;
    border-bottom: 1px solid #eee;
}

.artwork-modal .modal-title {
    font-weight: 700;
    margin-bottom: 4px;
}

.artwork-modal .modal-body {
    padding: 25px;
    background: #fafafa;
}


/* Upload Box */

.artwork-upload-box {
    position: relative;
    min-height: 150px;
    background: #fff;
    border: 2px dashed #d9d9d9;
    border-radius: 10px;
    padding: 15px 10px;
    text-align: center;
    transition: all .25s ease;
}

.artwork-upload-box:hover {
    border-color: #209698;
    background: #f8ffff;
}

.artwork-upload-box.has-file {
    border-color: #209698;
    border-style: solid;
}


/* Icon */

.artwork-upload-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 8px;
    border-radius: 50%;
    background: rgba(32, 150, 152, .10);
    color: #209698;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.artwork-upload-box h5 {
    margin-bottom: 3px;
    font-size: 15px;
    font-weight: 600;
}

.artwork-upload-box p {
    font-size: 11px;
    margin-bottom: 8px;
}


/* Hide actual file input */

.artwork-file {
    display: none;
}


/* Upload Button */

.artwork-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    font-size: 12px;

    border-radius: 7px;

    background: #209698;
    color: #fff;

    font-weight: 600;

    cursor: pointer;

    transition: all .2s ease;
}

.artwork-upload-btn:hover {
    background: #187d7f;
    color: #fff;
}


/* File name */

.artwork-file-name {
    margin-top: 10px;

    font-size: 12px;
    color: #555;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* Preview */

.artwork-preview {
    display: none;

    margin-top: 12px;

    width: 100%;
    height: 80px;

    border-radius: 6px;
    overflow: hidden;

    background: #f5f5f5;
}

.artwork-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


/* Note */

.artwork-upload-note {
    margin-top: 20px;

    padding: 12px 15px;

    border-radius: 7px;

    background: #f5f5f5;

    font-size: 13px;
    color: #666;
}

.artwork-upload-note i {
    color: #209698;
    margin-right: 5px;
}


/* Mobile */

@media(max-width:767px) {

    .artwork-modal .modal-body {
        padding: 15px;
    }

    .artwork-upload-box {
        min-height: 220px;
    }

}

/* =========================================
   FIX ARTWORK MODAL ABOVE HEADER
========================================= */

/* =========================================
   MODAL Z-INDEX
========================================= */

#artworkUploadModal {
    z-index: 1055 !important;
}

#templatePreviewModal {
    z-index: 1065 !important;
}

.modal-backdrop {
    z-index: 1050 !important;
}

#artworkUploadModal .modal-dialog,
#templatePreviewModal .modal-dialog {
    position: relative;
    z-index: 1;
}

#artworkUploadModal .modal-content,
#templatePreviewModal .modal-content {
    position: relative;
    z-index: 2;
}

/* =========================================
   Product page: gallery, buy box, trust, steps, sticky bar
========================================= */


/* Gallery */
@media (min-width: 992px) {
    .shop-details-wrapper .shop-details-image.np-pd-gallery { position: sticky; top: 90px; }
}

.np-pd-stage {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: var(--np-soft, #f8f9fc);
    border: 1px solid var(--np-border, #eceef4);
}

.np-pd-zoom {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: zoom-in;
}

.shop-details-wrapper .shop-details-image .np-pd-zoom img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0;
    transition: transform .25s ease;
}

.np-pd-zoom.is-zooming img { transform: scale(2); transition: none; }

.np-pd-stage-badge,
.np-pd-stage-count {
    position: absolute;
    top: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    pointer-events: none;
}

.np-pd-stage-badge { left: 14px; background: var(--np-pink, #e7287c); color: #fff; box-shadow: 0 6px 16px rgba(231, 40, 124, .3); }
.np-pd-stage-count { right: 14px; background: rgba(255, 255, 255, .92); color: var(--np-dark, #09052f); }

.shop-details-wrapper .shop-details-image .np-pd-thumbs {
    flex-wrap: nowrap;
    gap: 10px;
    margin-top: 14px;
    padding-bottom: 4px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.shop-details-wrapper .shop-details-image .np-pd-thumbs .nav-link {
    display: block;
    width: 78px;
    height: 78px;
    max-width: none;
    padding: 4px !important;
    border-radius: 12px;
    border: 2px solid transparent;
    background: var(--np-soft, #f8f9fc);
    opacity: .7;
    transition: border-color .2s, opacity .2s;
}

.shop-details-wrapper .shop-details-image .np-pd-thumbs .nav-link:hover { opacity: 1; }
.shop-details-wrapper .shop-details-image .np-pd-thumbs .nav-link.active { border-color: var(--np-pink, #e7287c); opacity: 1; }
.shop-details-wrapper .shop-details-image .np-pd-thumbs img { object-fit: contain; border-radius: 8px; }

.np-pd-zoom-hint { margin: 10px 0 0; font-size: 12.5px; color: #8a8fa3; text-align: center; }
.np-pd-zoom-hint i { margin-right: 4px; }

/* Title area */
.np-pd-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(40, 115, 186, .08);
    color: var(--np-blue, #2873ba);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.np-pd-eyebrow:hover { background: var(--np-blue, #2873ba); color: #fff; }
.np-pd-title { margin-bottom: 12px; font-size: clamp(26px, 3vw, 38px); line-height: 1.2; }

.np-pd-highlights { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 0; padding: 0; list-style: none; }

.np-pd-highlights li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    border-radius: 10px;
    background: var(--np-soft, #f8f9fc);
    border: 1px solid var(--np-border, #eceef4);
    font-size: 13px;
    font-weight: 600;
    color: var(--np-dark, #09052f);
}

.np-pd-highlights i { color: var(--np-pink, #e7287c); }

/* Configurator card */
.np-pd-config {
    margin-top: 24px;
    padding: 22px 22px 4px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--np-border, #eceef4);
    box-shadow: 0 10px 30px rgba(9, 5, 47, .05);
}

.np-pd-config-head { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px dashed var(--np-border, #eceef4); }
.np-pd-config-head h5 { margin: 0; font-size: 17px; }
.np-pd-config-head p { margin: 2px 0 0; font-size: 13px; color: #8a8fa3; }

.np-pd-step {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--np-pink, #e7287c), var(--np-blue, #2873ba));
    color: #fff;
}

.shop-details-wrapper .product-details-content .np-pd-config .cart-wrp { margin: 18px 0; }
.np-pd-config .nice-select { width: 100%; height: 50px; line-height: 48px; border-radius: 10px; border-color: #dfe2ea; float: none; }
.np-pd-config .nice-select:hover, .np-pd-config .nice-select.open { border-color: var(--np-pink, #e7287c); }
.np-pd-config .nice-select .list { width: 100%; max-height: 280px; overflow-y: auto; border-radius: 10px; }
.np-pd-config .dimension-input, .np-pd-config .qty-title, .np-pd-config .customer-qty-input { border-color: #dfe2ea; }
.np-pd-config .dimension-input button:hover { background: var(--np-pink, #e7287c); }

/* Price box */
.shop-details-wrapper .product-details-content .np-pd-pricebox {
    margin-top: 18px;
    padding: 18px 22px;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, #ffe9f2 0%, #e4effa 100%);
    border: 1px solid rgba(231, 40, 124, .15);
}

.np-pd-total-label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8a8fa3; }
.shop-details-wrapper .product-details-content .np-pd-pricebox h3 { margin: 2px 0 0; font-size: 38px; color: var(--np-dark, #09052f); }

/* Buttons */
.shop-details-wrapper .product-details-content .np-pd-actions { margin: 18px 0 0; }
.shop-details-wrapper .product-details-content .np-pd-actions .theme-btn { flex: 1; padding: 18px 20px; border-radius: 12px; justify-content: center; }
.np-pd-actions .theme-btn i { margin-right: 6px; }
.np-pd-actions .theme-btn.is-busy { opacity: .7; cursor: progress; }

/* Trust row */
.np-pd-trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; }

.np-pd-trust li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--np-border, #eceef4);
}

.np-pd-trust i { flex: 0 0 auto; font-size: 20px; color: var(--np-blue, #2873ba); }
.np-pd-trust span { display: flex; flex-direction: column; font-size: 12px; line-height: 1.35; color: #8a8fa3; }
.np-pd-trust strong { font-size: 13px; color: var(--np-dark, #09052f); }

/* Meta + share */
.np-pd-meta { margin-top: 22px; border-top: 1px solid var(--np-border, #eceef4); }
.shop-details-wrapper .product-details-content .np-pd-meta .details-info { margin-top: 14px; font-size: 15px; }

.np-pd-share { display: flex; align-items: center; gap: 8px; margin-top: 16px; }
.np-pd-share > span { margin-right: 4px; font-weight: 600; color: var(--np-dark, #09052f); }

.np-pd-share a,
.np-pd-share button {
    position: relative;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--np-border, #eceef4);
    background: #fff;
    color: var(--np-dark, #09052f);
    font-size: 14px;
    transition: all .2s;
}

.np-pd-share a:hover, .np-pd-share button:hover { background: var(--np-pink, #e7287c); border-color: var(--np-pink, #e7287c); color: #fff; }

.np-pd-share em {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    padding: 3px 8px;
    border-radius: 6px;
    background: var(--np-dark, #09052f);
    color: #fff;
    font-size: 11px;
    font-style: normal;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
}

.np-pd-share button.is-copied em { opacity: 1; }

/* How it works */
.np-pd-how { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 60px; }

.np-pd-how-item {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 24px 22px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--np-border, #eceef4);
    overflow: hidden;
    transition: transform .25s, box-shadow .25s, border-color .25s;
}

.np-pd-how-item:hover { transform: translateY(-4px); border-color: rgba(231, 40, 124, .3); box-shadow: 0 14px 30px rgba(9, 5, 47, .08); }
.np-pd-how-item span { position: absolute; top: 12px; right: 16px; font-size: 40px; font-weight: 800; line-height: 1; color: rgba(9, 5, 47, .06); }
.np-pd-how-item i { margin-bottom: 10px; font-size: 26px; color: var(--np-pink, #e7287c); }
.np-pd-how-item strong { font-size: 16px; color: var(--np-dark, #09052f); }
.np-pd-how-item small { font-size: 13px; color: var(--np-text, #555b6d); }

/* Tabs as pills */
.shop-details-wrapper .np-pd-tabs { padding-top: 50px; }
.shop-details-wrapper .np-pd-tabs > .nav { gap: 8px; padding-bottom: 0; border: 0; }
.shop-details-wrapper .np-pd-tabs > .nav .nav-link { padding: 10px 22px !important; border-radius: 999px; background: #fff; border: 1px solid var(--np-border, #eceef4); }
.shop-details-wrapper .np-pd-tabs > .nav .nav-link h6 { margin: 0; font-size: 15px; }
.shop-details-wrapper .np-pd-tabs > .nav .nav-link.active { background: var(--np-dark, #09052f); }
.shop-details-wrapper .np-pd-tabs > .nav .nav-link.active h6 { color: #fff; }
.shop-details-wrapper .np-pd-tabs > .nav .nav-link.active::before { display: none; }
.np-pd-tabs > .tab-content { padding: 30px; border-radius: 20px; background: #fff; border: 1px solid var(--np-border, #eceef4); box-shadow: 0 10px 30px rgba(9, 5, 47, .04); }

/* Mobile buy bar */
.np-pd-stickybar { display: none; }

@media (hover: none), (max-width: 991px) {
    .np-pd-zoom-hint { display: none; }
}

@media (max-width: 991px) {
    .np-pd-gallery { margin-bottom: 30px; }
    .np-pd-how { grid-template-columns: repeat(2, 1fr); }

    .np-pd-stickybar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 999;
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
        background: #fff;
        box-shadow: 0 -8px 24px rgba(9, 5, 47, .12);
        transform: translateY(110%);
        transition: transform .25s ease;
    }

    .np-pd-stickybar.is-visible { transform: translateY(0); }

    /* Lift the floating chat / back-to-top buttons above the bar */
    .np-wa, .scroll-up { transition: bottom .25s ease; }
    body.np-pd-bar-on .np-wa { bottom: 86px !important; }
    body.np-pd-bar-on .scroll-up { bottom: 96px !important; }
    .np-pd-stickybar-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
    .np-pd-stickybar-info small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; color: #8a8fa3; }
    .np-pd-stickybar-info strong { font-size: 20px; color: var(--np-dark, #09052f); }
    .np-pd-stickybar .theme-btn { padding: 14px 20px; border-radius: 12px; white-space: nowrap; }
}

@media (max-width: 575px) {
    .np-pd-highlights li { padding: 6px 10px; font-size: 12px; }
    .np-pd-trust { gap: 8px; }
    .np-pd-trust li { flex-direction: column; justify-content: center; gap: 6px; padding: 12px 6px; text-align: center; }
    .np-pd-trust span { font-size: 11px; }
    .np-pd-trust strong { font-size: 12px; }
    .shop-details-wrapper .product-details-content .np-pd-actions { flex-direction: column; align-items: stretch; }
    .np-pd-how { gap: 10px; margin-top: 40px; }
    .np-pd-how-item { padding: 16px 14px; }
    .np-pd-how-item span { font-size: 28px; top: 10px; right: 12px; }
    .np-pd-how-item i { margin-bottom: 6px; font-size: 22px; }
    .np-pd-how-item strong { font-size: 14px; }
    .np-pd-how-item small { font-size: 12px; }
    .np-pd-config { padding: 18px 16px 2px; }
    .np-pd-tabs > .tab-content { padding: 20px 16px; }
    .shop-details-wrapper .product-details-content .np-pd-pricebox h3 { font-size: 32px; }
}

@media (prefers-reduced-motion: reduce) {
    .np-pd-zoom img, .np-pd-how-item, .np-pd-stickybar { transition: none; }
}


/* options with no priced combination (product-details.js) */
.np-pd-unavailable { color:#b42318; font-size:16px; font-weight:600; }
#btnAddToCart.np-unavailable, #btnBuyNow.np-unavailable { opacity:.5; cursor:not-allowed; }
