/* Product detail page CSS */
/* Independent class namespace: nwpd- */

.nwpd-page {
    width: 100%;
    background: #ffffff;
}

.nwpd-container {
    width: 100%;
    max-width: var(--nw-container);
    margin: 0 auto;
    padding-left: 60px;
    padding-right: 60px;
}

.nwpd-top {
    width: 100%;
    padding: 58px 0 72px;
    background: #ffffff;
}

.nwpd-overview {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(390px, 0.98fr);
    gap: 48px;
    align-items: start;
}

.nwpd-gallery {
    min-width: 0;
}

.nwpd-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: 1px solid var(--nw-border);
    border-radius: 22px;
    background: #f8fafc;
}

.nwpd-main-track {
    display: flex;
    width: 100%;
    height: 100%;
    transform: translate3d(0, 0, 0);
    transition: transform 0.36s ease;
    will-change: transform;
}

.nwpd-main-slide {
    flex: 0 0 100%;
    min-width: 100%;
    width: 100%;
    height: 100%;
    background: #f8fafc;
}

.nwpd-main-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.nwpd-main-btn {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #111827;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transform: translateY(-50%);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
    transition: background 0.25s ease, transform 0.25s ease;
}

.nwpd-main-btn:hover {
    background: var(--nw-primary);
    transform: translateY(-50%) scale(1.04);
}

.nwpd-main-btn svg {
    width: 22px;
    height: 22px;
}

.nwpd-main-btn-prev {
    left: 18px;
}

.nwpd-main-btn-next {
    right: 18px;
}

.nwpd-count {
    position: absolute;
    right: 18px;
    bottom: 18px;
    z-index: 5;
    min-width: 62px;
    height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.86);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
    font-weight: 800;
}

.nwpd-thumbs {
    width: 100%;
    margin-top: 14px;
    overflow: hidden;
}

.nwpd-thumbs-track {
    display: flex;
    width: 100%;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.nwpd-thumbs-track::-webkit-scrollbar {
    display: none;
}

.nwpd-thumb {
    flex: 0 0 calc((100% - 48px) / 5);
    width: calc((100% - 48px) / 5);
    min-width: calc((100% - 48px) / 5);
    max-width: calc((100% - 48px) / 5);
    aspect-ratio: 1 / 1;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 14px;
    background: #f8fafc;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.nwpd-thumb[data-current],
.nwpd-thumb[data-current="true"] {
    border-color: var(--nw-primary);
    box-shadow: 0 0 0 3px rgba(252, 200, 3, 0.18);
}

.nwpd-thumb-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.nwpd-info {
    min-width: 0;
    padding: 34px;
    border-radius: 24px;
    border: 1px solid var(--nw-border);
    background: #ffffff;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.nwpd-title {
    margin: 0;
    color: #111827;
    font-size: 34px;
    line-height: 1.18;
    font-weight: 800;
    letter-spacing: -0.7px;
}

.nwpd-intro {
    margin: 16px 0 0;
    color: #6b7280;
    font-size: 15px;
    line-height: 1.8;
}

.nwpd-specs {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.nwpd-spec {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 14px;
}

.nwpd-spec-label {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
}

.nwpd-spec-value {
    color: #111827;
    font-size: 15px;
    line-height: 1.6;
    font-weight: 800;
}

.nwpd-action {
    margin-top: 28px;
}

.nwpd-quote-btn {
    min-width: 176px;
    height: 48px;
    padding: 0 24px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--nw-primary);
    color: #111827;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 12px 24px rgba(252, 200, 3, 0.26);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.nwpd-quote-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(252, 200, 3, 0.32);
}

.nwpd-detail {
    width: 100%;
    padding: 72px 0 92px;
    background: #f6f7f9;
}

.nwpd-detail,
.nwpd-detail .nwpd-container,
.nwpd-detail-grid {
    overflow: visible !important;
}

.nwpd-detail-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 450px;
    gap: 42px;
    align-items: start;
}

.nwpd-article {
    min-width: 0;
    padding: 36px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid var(--nw-border);
}

.nwpd-article-title {
    margin: 0;
    color: #111827;
    font-size: 32px;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.nwpd-article-lead,
.nwpd-article p {
    margin: 16px 0 0;
    color: #4b5563;
    font-size: 16px;
    line-height: 1.85;
}

.nwpd-article h3 {
    margin: 34px 0 0;
    color: #111827;
    font-size: 24px;
    line-height: 1.3;
    font-weight: 800;
}

.nwpd-content-img {
    width: 100%;
    margin-top: 28px;
    border-radius: 18px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid var(--nw-border);
}

.nwpd-content-img img {
    display: block;
    width: 100%;
    height: auto;
}

.nwpd-content-img-tall img {
    min-height: 720px;
    object-fit: cover;
    object-position: center;
}

.nwpd-related {
    min-width: 0;
    padding: 26px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid var(--nw-border);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

.nwpd-related-title {
    margin: 0 0 18px;
    color: #111827;
    font-size: 22px;
    line-height: 1.25;
    font-weight: 800;
}

.nwpd-related-list {
    display: grid;
    gap: 14px;
}

.nwpd-related-card {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    min-width: 0;
    padding: 12px;
    border: 1px solid #edf0f3;
    border-radius: 16px;
    background: #ffffff;
    text-decoration: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.nwpd-related-card:hover {
    border-color: rgba(252, 200, 3, 0.75);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
}

.nwpd-related-img {
    width: 104px;
    height: 104px;
    display: block;
    border-radius: 12px;
    background: #f8fafc;
    object-fit: contain;
    object-position: center;
}

.nwpd-related-name {
    min-width: 0;
    color: #111827;
    font-size: 15px;
    line-height: 1.45;
    font-weight: 800;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (min-width: 769px) {
    .nwpd-related[data-stick="true"] {
        position: fixed !important;
        right: auto !important;
        bottom: auto !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        z-index: 60;
    }

    .nwpd-related[data-stop="true"] {
        position: absolute !important;
        right: auto !important;
        bottom: auto !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        z-index: 20;
    }
}

@media (max-width: 1440px) and (min-width: 1025px) {
    .nwpd-container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .nwpd-top {
        padding: 52px 0 66px;
    }

    .nwpd-overview {
        gap: 34px;
    }

    .nwpd-info {
        padding: 28px;
    }

    .nwpd-title {
        font-size: 30px;
    }

    .nwpd-detail-grid {
        grid-template-columns: minmax(0, 0.78fr) 400px;
        gap: 32px;
    }

    .nwpd-related-card {
        grid-template-columns: 96px minmax(0, 1fr);
    }

    .nwpd-related-img {
        width: 96px;
        height: 96px;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .nwpd-container {
        padding-left: 18px;
        padding-right: 18px;
    }

    .nwpd-overview {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .nwpd-detail-grid {
        grid-template-columns: minmax(0, 1fr) 360px;
        gap: 24px;
    }

    .nwpd-related-card {
        grid-template-columns: 88px minmax(0, 1fr);
    }

    .nwpd-related-img {
        width: 88px;
        height: 88px;
    }
}

@media (max-width: 768px) {
    .nwpd-container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .nwpd-top {
        padding: 28px 0 46px;
    }

    .nwpd-overview {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .nwpd-stage {
        border-radius: 16px;
        touch-action: pan-y;
    }

    .nwpd-main-btn {
        display: none;
    }

    .nwpd-count {
        right: 12px;
        bottom: 12px;
        min-width: 56px;
        height: 30px;
        font-size: 13px;
    }

    .nwpd-thumbs {
        margin-top: 10px;
    }

    .nwpd-thumbs-track {
        gap: 8px;
    }

    .nwpd-thumb {
        flex: 0 0 calc((100% - 32px) / 5);
        width: calc((100% - 32px) / 5);
        min-width: calc((100% - 32px) / 5);
        max-width: calc((100% - 32px) / 5);
        border-radius: 10px;
    }

    .nwpd-info {
        padding: 22px;
        border-radius: 18px;
    }

    .nwpd-title {
        font-size: 25px;
        line-height: 1.25;
    }

    .nwpd-intro {
        font-size: 14px;
    }

    .nwpd-spec {
        grid-template-columns: 112px minmax(0, 1fr);
    }

    .nwpd-quote-btn {
        width: 100%;
    }

    .nwpd-detail {
        padding: 46px 0 58px;
    }

    .nwpd-detail-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .nwpd-article {
        padding: 22px;
        border-radius: 18px;
    }

    .nwpd-article-title {
        font-size: 26px;
    }

    .nwpd-article-lead,
    .nwpd-article p {
        font-size: 14px;
        line-height: 1.8;
    }

    .nwpd-article h3 {
        font-size: 21px;
    }

    .nwpd-content-img-tall img {
        min-height: 420px;
    }

    .nwpd-related,
    .nwpd-related[data-stick="true"],
    .nwpd-related[data-stop="true"] {
        position: static !important;
        width: auto !important;
        left: auto !important;
        top: auto !important;
        bottom: auto !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        padding: 18px;
        border-radius: 18px;
    }

    .nwpd-related-card {
        grid-template-columns: 88px minmax(0, 1fr);
    }

    .nwpd-related-img {
        width: 88px;
        height: 88px;
    }
}

@media (max-width: 390px) {
    .nwpd-container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .nwpd-info {
        padding: 18px;
    }

    .nwpd-title {
        font-size: 22px;
    }

    .nwpd-spec {
        grid-template-columns: 92px minmax(0, 1fr);
    }

    .nwpd-article {
        padding: 18px;
    }

    .nwpd-related-card {
        grid-template-columns: 76px minmax(0, 1fr);
    }

    .nwpd-related-img {
        width: 76px;
        height: 76px;
    }
}
