/*
 * 
 * СТИЛИ ДЛЯ ТОВАРОВ ЭКРАНИРОВАННЫЕ КАМЕРЫ
 * 
 * 
 */  

.npkzna-product-detail {
    --zn-blue: var(--ast-global-color-1, #43519f);
    --zn-orange: var(--ast-global-color-0, #e8402b);
    max-width: 100%;
    margin: 40px 0;
    font-family: inherit;
  }
  
  .npkzna-detail-section {
    margin-bottom: 40px;
  }
  
  .npkzna-detail-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--zn-blue);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--zn-orange);
    display: inline-block;
  }
  
  .npkzna-intro-box {
    background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 100%);
    border-left: 4px solid var(--zn-blue);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 32px;
  }
  
  .npkzna-intro-box p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #334155;
    margin: 0;
  }
  
  .npkzna-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
  }
  
  .npkzna-feature-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
  }
  
  .npkzna-feature-item:hover {
    border-color: var(--zn-blue);
    box-shadow: 0 4px 12px rgba(67, 81, 159, 0.08);
    transform: translateY(-2px);
  }
  
  .npkzna-feature-item h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  .npkzna-feature-item h4 svg {
    width: 20px;
    height: 20px;
    color: var(--zn-orange);
  }
  
  .npkzna-feature-item p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
  }
  
  .npkzna-specs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  }
  
  .npkzna-specs-table th {
    background: var(--zn-blue);
    color: #ffffff;
    font-weight: 600;
    text-align: left;
    padding: 14px 20px;
    font-size: 0.95rem;
  }
  
  .npkzna-specs-table td {
    padding: 12px 20px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.95rem;
    color: #334155;
  }
  
  .npkzna-specs-table tr:last-child td {
    border-bottom: none;
  }
  
  .npkzna-specs-table tr:nth-child(even) {
    background: #f8fafc;
  }
  
  .npkzna-specs-table tr:hover {
    background: #f1f5f9;
  }
  
  @media (max-width: 768px) {
    .npkzna-features-grid { grid-template-columns: 1fr; }
  }

  /* Технические особенности */
  .npkzna-tech-features {
    margin-top: 32px;
  }
  
  .npkzna-tech-subsection {
    margin-bottom: 40px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 28px;
    transition: all 0.3s ease;
  }
  
  .npkzna-tech-subsection:hover {
    box-shadow: 0 8px 20px rgba(67, 81, 159, 0.08);
    border-color: var(--zn-blue);
  }
  
  .npkzna-tech-subsection h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--zn-blue);
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f1f5f9;
  }
  
  .npkzna-tech-subsection h3 svg {
    width: 22px;
    height: 22px;
    color: var(--zn-orange);
    flex-shrink: 0;
  }
  
  .npkzna-tech-content p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #475569;
    margin-bottom: 16px;
  }
  
  .npkzna-tech-list {
    list-style: none;
    padding: 0;
    margin: 16px 0;
  }
  
  .npkzna-tech-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #475569;
  }
  
  .npkzna-tech-list li::before {
    content: "•";
    position: absolute;
    left: 12px;
    color: var(--zn-orange);
    font-weight: 800;
    font-size: 1.2em;
  }
  
  .npkzna-highlight-box {
    background: linear-gradient(135deg, #fff7ed 0%, #ffffff 100%);
    border-left: 4px solid var(--zn-orange);
    border-radius: 6px;
    padding: 20px;
    margin: 20px 0;
  }
  
  .npkzna-highlight-box p {
    margin: 0;
    color: #7c2d12;
  }
  
  .npkzna-info-box {
    background: #f0f9ff;
    border-left: 4px solid var(--zn-blue);
    border-radius: 6px;
    padding: 16px 20px;
    margin: 20px 0;
  }
  
  .npkzna-info-box p {
    margin: 0;
    color: #0c4a6e;
  }
  
  .npkzna-standards-box {
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
    border-left: 4px solid #16a34a;
    border-radius: 6px;
    padding: 16px 20px;
    margin: 20px 0;
  }
  
  .npkzna-standards-box p {
    margin: 0;
    color: #166534;
  }
  
  .npkzna-equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-top: 20px;
  }
  
  .npkzna-equipment-item {
    background: #f8fafc;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e2e8f0;
  }
  
  .npkzna-equipment-item h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--zn-blue);
    margin: 0 0 8px 0;
  }
  
  .npkzna-equipment-item p {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
  }
  
  @media (max-width: 768px) {
    .npkzna-tech-subsection {
      padding: 20px;
    }
    .npkzna-equipment-grid {
      grid-template-columns: 1fr;
    }
  }

  /* Галерея товара */
  .npkzna-product-gallery {
    margin: 40px 0;
  }
  
  .npkzna-gallery-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ast-global-color-1, #43519f);
    margin-bottom: 24px;
    text-align: center;
  }
  
  .npkzna-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
  }
  
  .npkzna-gallery-item {
  position: relative;
  height: auto; /* Автоматическая высота */
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid #e2e8f0;
  transition: all 0.3s ease;
  background: #f8fafc;
  }
  
  .npkzna-gallery-item:hover {
    border-color: var(--ast-global-color-1, #43519f);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(67, 81, 159, 0.15);
  }
  
  .npkzna-gallery-item img {
  width: 100%;
  height: auto;
  display: block; /* Убирает лишние отступы */
  transition: transform 0.3s ease;
  }
  
  .npkzna-gallery-item:hover img {
    transform: scale(1.05);
  }
  
  .npkzna-gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(67, 81, 159, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .npkzna-gallery-item:hover .npkzna-gallery-overlay {
    opacity: 1;
  }
  
  .npkzna-gallery-overlay svg {
    width: 48px;
    height: 48px;
    color: #ffffff;
  }
  
  /* Lightbox (модальное окно) */
  .npkzna-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    animation: fadeIn 0.3s ease;
  }
  
  .npkzna-lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  
  .npkzna-lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .npkzna-lightbox-img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
  }
  
  .npkzna-lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10000;
  }
  
  .npkzna-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
  }
  
  .npkzna-lightbox-close svg {
    width: 28px;
    height: 28px;
    color: #ffffff;
  }
  
  .npkzna-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10000;
  }
  
  .npkzna-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
  }
  
  .npkzna-lightbox-nav svg {
    width: 32px;
    height: 32px;
    color: #ffffff;
  }
  
  .npkzna-lightbox-prev {
    left: 40px;
  }
  
  .npkzna-lightbox-next {
    right: 120px;
  }
  
  .npkzna-lightbox-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.6);
    padding: 8px 20px;
    border-radius: 20px;
  }
  
  /* Адаптивность */
  @media (max-width: 1024px) {
    .npkzna-gallery-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  @media (max-width: 600px) {
    .npkzna-gallery-grid {
      grid-template-columns: 1fr;
    }
    .npkzna-lightbox-nav {
      width: 44px;
      height: 44px;
    }
    .npkzna-lightbox-nav svg {
      width: 24px;
      height: 24px;
    }
    .npkzna-lightbox-prev {
      left: 20px;
    }
    .npkzna-lightbox-next {
      right: 80px;
    }
    .npkzna-lightbox-close {
      top: 10px;
      right: 10px;
    }
  }

/* ============================================
   B2B БЛОК ВМЕСТО ЦЕНЫ
   ============================================ */

.npkzna-b2b-product-actions {
  margin: 20px 0;
  padding: 24px;
  background: linear-gradient(135deg, #f0f9ff 0%, #f8fafc 100%);
  border: 2px solid var(--ast-global-color-1, #43519f);
  border-radius: 10px;
}

.npkzna-price-note {
  font-size: 1.05rem;
  color: #1e293b;
  margin: 0 0 20px 0;
  line-height: 1.5;
  text-align: center;
}

.npkzna-price-note strong {
  color: var(--ast-global-color-1, #43519f);
  display: block;
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.npkzna-cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.npkzna-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.npkzna-b2b-product-actions .npkzna-btn-primary {
  background: var(--ast-global-color-0, #e8402b);
  color: #ffffff !important;
}

.npkzna-b2b-product-actions .npkzna-btn-primary:hover {
  background: #d13624;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(232, 64, 43, 0.3);
}

.npkzna-b2b-product-actions .npkzna-btn-secondary {
  background: var(--ast-global-color-1, #43519f);
  color: #ffffff !important;
}

.npkzna-b2b-product-actions .npkzna-btn-secondary:hover {
  background: #2d3a7a;
  transform: translateY(-2px);
}

.npkzna-contact-hint {
  font-size: 0.9rem;
  color: #64748b;
  text-align: center;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.npkzna-contact-hint a {
  color: var(--ast-global-color-1, #43519f);
  font-weight: 600;
  text-decoration: none;
}

.npkzna-contact-hint a:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .npkzna-cta-buttons {
    flex-direction: column;
  }
  .npkzna-btn {
    width: 100%;
    justify-content: center;
  }
  .npkzna-b2b-product-actions {
    padding: 18px;
  }
}

/* Скрываем третий li в ast-single-product-extras */
.npkzna-hide-third-meta-item .ast-single-product-extras li:nth-child(3),
.npkzna-hide-third-meta-item .product_meta > span:nth-child(3),
.npkzna-hide-third-meta-item .woocommerce-product-details__short-description + .product_meta span:nth-child(3) {
    display: none !important;
}


.meta-item.standards-meta {
    padding: 6px 12px !important;
    background: #f8fafc !important;
    border: 1px dashed #cbd5e1 !important;
    border-radius: 6px !important;
}
  .npkzna-specs-table td {
    padding: 14px 20px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.95rem;
    color: #334155;
    vertical-align: top;
  }
  .npkzna-applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
  }
  .npkzna-application-card {
    background: #f8fafc;
    border-radius: 8px;
    padding: 20px;
    border-left: 4px solid var(--zn-blue);
  }
  .npkzna-application-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--zn-blue);
    margin: 0 0 10px 0;
  }
  .npkzna-application-card p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
  }


  @media (max-width: 768px) {
    .npkzna-features-grid { grid-template-columns: 1fr; }
    .npkzna-tech-subsection { padding: 20px; }
    .npkzna-applications-grid { grid-template-columns: 1fr; }
    .npkzna-cta-buttons { flex-direction: column; }
    .npkzna-btn { justify-content: center; }
  }