

.ntpc-wrap {
    --ntpc-border: #e5e5e5;
    --ntpc-text: #111111;
    --ntpc-muted: #6b6b6b;
    position: relative;
    width: 100%;
    margin: 32px 0;
}
.ntpc-wrap button{
    background:#fff;
    border-radius: 100%;
    border: 0px;
    height: 3rem;
    width: 3rem;
    line-height: 1rem;
}

/* ---------- Header (title + nav) ---------- */
.ntpc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.ntpc-title {
    /* font-size: 20px; */
    font-weight: 700;
    color: var(--ntpc-text);
    margin: 0;
}

.ntpc-nav {
    display: flex;
    gap: 8px;
}

.ntpc-prev,
.ntpc-next {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #ffffff;
    border: 1px solid var(--ntpc-border);
    color: var(--ntpc-text);
    border-radius: 0; /* flat */
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
    padding: 0;
}

.ntpc-prev:hover,
.ntpc-next:hover {
    background: var(--primary-color, #111111);
    border-color: var(--primary-color, #111111);
    color: #ffffff;
}

.ntpc-prev.swiper-button-disabled,
.ntpc-next.swiper-button-disabled {
    opacity: .35;
    cursor: not-allowed;
    pointer-events: none;
}
.ntpc-prev--floating,
.ntpc-next--floating {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    z-index: 5;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
}
.ntpc-prev--floating { left: -14px; }
.ntpc-next--floating { right: -14px; }

@media (max-width: 640px) {
    .ntpc-prev--floating,
    .ntpc-next--floating {
        display: none; 
    }
}

/* ---------- Swiper container ---------- */
.ntpc-swiper {
    width: 100%;
    overflow: hidden;
}

.ntpc-slide {
    height: auto;
    /* border-radius: 1em; */
}

/* ---------- Card ---------- */
.ntpc-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #ffffff;
    border: 1px solid var(--ntpc-border);
    border-radius: 0; /* flat */
    overflow: hidden;
    border-radius: 15px;
    transition: box-shadow 0.2s ease;
}
.ntpc-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.ntpc-thumb {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f5f5f5;
    overflow: hidden;
}

.ntpc-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform .25s ease;
}

.ntpc-card:hover .ntpc-thumb img {
    transform: scale(1.04);
}

/* ---------- Info ---------- */
.woocommerce ul.products::before {
    display:none;
}
.ntpc-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 14px 16px;
    flex: 1;
    font-size: 1.25em;
}

.ntpc-name {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--ntpc-text);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ntpc-name:hover {
    color: var(--primary-color, #111111);
}

.ntpc-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-color, #111111);
    display: none;
}

.ntpc-price del {
    color: var(--ntpc-muted);
    font-weight: 400;
    margin-right: 6px;
}

.ntpc-price ins {
    text-decoration: none;
}

/* ---------- Related products section spacing ---------- */
.ntpc-related-section {
    margin-top: 48px;
}


ul.products.ntpc-shop-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    list-style: none !important;
    margin: 24px 0 !important;
    padding: 0 !important;
}
 
@media (min-width: 640px) and (max-width: 1023px) {
    ul.products.ntpc-shop-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
 
@media (min-width: 1024px) {
    ul.products.ntpc-shop-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 18px;
    }
}
 
ul.products.ntpc-shop-grid li.product {
    position: relative;
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    clear: none !important;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid var(--ntpc-border, #e5e5e5);
    border-radius: 0; /* flat */
    overflow: hidden;
}
 
ul.products.ntpc-shop-grid li.product a.woocommerce-LoopProduct-link {
    display: block;
    text-decoration: none;
    color: inherit;
}
 
ul.products.ntpc-shop-grid li.product img {
    width: 100% !important;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform .25s ease;
}
 
ul.products.ntpc-shop-grid li.product:hover img {
    transform: scale(1.04);
}
 
ul.products.ntpc-shop-grid li.product .woocommerce-loop-product__title {
    font-size: 14px;
    font-weight: 600;
    color: #111111;
    margin: 0;
    padding: 12px 14px 4px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
 
ul.products.ntpc-shop-grid li.product .price {
    display: block;
    padding: 0 14px 16px;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-color, #111111);
}
 
ul.products.ntpc-shop-grid li.product .price del {
    color: #6b6b6b;
    font-weight: 400;
    margin-right: 6px;
}
 
ul.products.ntpc-shop-grid li.product .price ins {
    text-decoration: none;
}
 
ul.products.ntpc-shop-grid li.product .onsale {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    background: var(--primary-color, #111111);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 0;
    min-height: 0;
    min-width: 0;
    line-height: 1.6;
}