:root {
    --ne-primary: #020873;
    --ne-secondary: #2B4CB9;
    --ne-text: #001A33;
    --ne-gray: #C5C5C5;
    --ne-white: #FFFFFF;
    --ne-yellow: #FCD361;
    --ne-success: #10B981;
    --ne-error: #EF4444;
    --ne-gray-50: #F9FAFB;
    --ne-gray-100: #F3F4F6;
    --ne-gray-200: #E5E7EB;
    --ne-gray-300: #D1D5DB;
    --ne-gray-400: #9CA3AF;
    --ne-gray-500: #6B7280;
    --ne-gray-600: #4B5563;
    --ne-radius: 8px;
    --ne-shadow: 0 1px 3px rgba(0,0,0,0.1);
    --ne-shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.ne-library { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }

.ne-library-tabs { display: flex; gap: 8px; margin-bottom: 20px; }
.ne-lib-tab { display: flex; align-items: center; gap: 8px; padding: 10px 16px; background: var(--ne-white); border: 1px solid var(--ne-gray-200); border-radius: 6px; font-size: 13px; font-weight: 500; color: var(--ne-gray-600); cursor: pointer; transition: all 0.15s; }
.ne-lib-tab:hover { background: var(--ne-yellow, #FCD361); border-color: var(--ne-yellow, #FCD361); color: var(--ne-text, #001A33); }
.ne-lib-tab.active { background: var(--ne-primary); border-color: var(--ne-primary); color: var(--ne-white); }
.ne-lib-tab svg { width: 16px; height: 16px; }
.ne-count { background: var(--ne-gray-400); color: var(--ne-text, #001A33); padding: 2px 8px; border-radius: 100px; font-size: 11px; font-weight: 600; }
.ne-lib-tab:hover .ne-count { background: var(--ne-gray-600); color: var(--ne-white); }
.ne-lib-tab.active .ne-count { background: rgba(255,255,255,0.3); color: var(--ne-white); }

.ne-free-shipping-banner {
    background: linear-gradient(90deg, var(--ne-success) 0%, #059669 100%);
    color: var(--ne-white);
    text-align: center;
    padding: 10px 16px;
    border-radius: var(--ne-radius);
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 500;
}

.ne-filters { background: var(--ne-white); border: 1px solid var(--ne-gray-200); border-radius: var(--ne-radius); padding: 16px; margin-bottom: 20px; display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.ne-filter-group { flex: 1; min-width: 150px; }
.ne-filter-group label { display: block; font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; color: var(--ne-gray-500); margin-bottom: 6px; }
.ne-filter-search { flex: 2; }
.ne-filters input, .ne-filters select { width: 100%; padding: 8px 12px; border: 1px solid var(--ne-gray-300); border-radius: 6px; font-size: 13px; }
.ne-filters input:focus, .ne-filters select:focus { outline: none; border-color: var(--ne-primary); box-shadow: 0 0 0 3px rgba(2,8,115,0.1); }

.ne-products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }

.ne-product-card { position: relative; background: var(--ne-white); border: 1px solid var(--ne-gray-200); border-radius: var(--ne-radius); overflow: hidden; transition: all 0.2s; }
.ne-product-card:hover { box-shadow: var(--ne-shadow-md); transform: translateY(-2px); }
.ne-product-card.ne-private { border-color: var(--ne-primary); border-width: 2px; }
.ne-product-badge { position: absolute; top: 12px; right: 12px; background: var(--ne-primary); color: var(--ne-white); padding: 4px 8px; border-radius: 4px; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }

.ne-product-3d-link { display: block; position: relative; aspect-ratio: 4/3; background: var(--ne-gray-100); cursor: pointer; overflow: hidden; }
.ne-product-image-fallback { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
/* Ensure still image is visible on initial load when no STL (above hidden 3D placeholder) */
.ne-product-card.ne-has-image .ne-product-image-fallback { z-index: 2; }
.ne-product-3d { width: 100%; height: 100%; background: var(--ne-gray-100); position: relative; z-index: 2; }
.ne-product-card.ne-has-image .ne-product-3d { background: transparent; }
.ne-product-3d.ne-hide-3d { display: none !important; visibility: hidden; }
.ne-product-3d canvas { display: block; width: 100% !important; height: 100% !important; }
.ne-product-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(2,8,115,0.7); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.2s ease; }
.ne-product-overlay span { color: var(--ne-white); font-size: 13px; font-weight: 600; padding: 8px 16px; background: rgba(0,0,0,0.3); border-radius: 4px; }
.ne-product-3d-link:hover .ne-product-overlay { opacity: 1; }
.ne-product-name-link { text-decoration: none; color: inherit; display: block; }
.ne-product-name-link:hover .ne-product-name { color: var(--ne-primary); }

.ne-product-body { padding: 16px; }
.ne-product-name { font-size: 14px; font-weight: 600; color: var(--ne-text); margin-bottom: 4px; }
.ne-product-sku { font-size: 12px; color: var(--ne-gray-500); margin-bottom: 8px; }
.ne-product-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.ne-product-tag { font-size: 11px; padding: 3px 8px; background: var(--ne-gray-100); color: var(--ne-gray-600); border-radius: 4px; }
.ne-product-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid var(--ne-gray-100); }
.ne-product-price { font-size: 18px; font-weight: 700; color: var(--ne-primary); }
.ne-product-shipping { font-size: 11px; color: var(--ne-gray-500); }
.ne-product-shipping.free { color: var(--ne-success); font-weight: 500; }
.ne-product-weight { font-size: 10px; color: var(--ne-gray-400); margin-top: 2px; }
.ne-product-actions { display: flex; gap: 6px; }

/* Library Add button: compact loading & success states */
.ne-lib-add-to-cart {
    min-width: 56px;
    transition: background 0.2s, color 0.2s, opacity 0.2s;
}
.ne-lib-add-to-cart.ne-loading {
    opacity: 0.9;
    pointer-events: none;
    padding: 6px 10px !important; /* override any .ne-loading padding */
}
.ne-lib-add-to-cart.ne-loading::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 6px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: ne-spin-inline 0.6s linear infinite;
    vertical-align: middle;
}
@keyframes ne-spin-inline { to { transform: rotate(360deg); } }
.ne-lib-add-to-cart.ne-added {
    background: #059669;
    color: #fff;
    border-color: #059669;
}
.ne-lib-add-to-cart.ne-added:hover {
    background: #047857;
    color: #fff;
}
@keyframes ne-spin { to { transform: rotate(360deg); } }

.ne-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 16px; font-size: 13px; font-weight: 500; border: none; border-radius: 6px; cursor: pointer; transition: all 0.15s; }
.ne-btn-primary { background: var(--ne-button-primary, var(--ne-yellow, #FCD361)); color: var(--ne-button-primary-text, #000); }
.ne-btn-primary:hover { background: var(--ne-button-hover, var(--ne-secondary, #2B4CB9)); color: var(--ne-button-hover-text, #fff); }
.ne-btn-secondary { background: var(--ne-white); border: 1px solid var(--ne-gray-300); color: var(--ne-text); }
.ne-btn-secondary:hover { background: var(--ne-gray-50); }
.ne-btn-sm { padding: 6px 10px; font-size: 12px; }

.ne-part-request-form { max-width: 640px; margin: 0 auto; background: var(--ne-white); border: 1px solid var(--ne-gray-200); border-radius: var(--ne-radius); padding: 24px; position: relative; }
.ne-form-section { margin-bottom: 24px; }
.ne-form-section h3 { font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.ne-request-types { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ne-request-type { display: flex; flex-direction: column; align-items: center; padding: 20px; border: 2px solid var(--ne-gray-200); border-radius: var(--ne-radius); cursor: pointer; text-align: center; transition: all 0.15s; }
.ne-request-type:hover { border-color: var(--ne-gray-300); }
.ne-request-type.selected { border-color: var(--ne-primary); background: rgba(2,8,115,0.02); }
.ne-request-type input { display: none; }
.ne-type-icon { font-size: 24px; margin-bottom: 8px; }
.ne-type-title { font-weight: 600; font-size: 14px; }
.ne-type-desc { font-size: 12px; color: var(--ne-gray-500); }

.ne-ip-warning { background: #FEF3C7; border: 1px solid #F59E0B; border-radius: 6px; padding: 12px 16px; margin-bottom: 20px; font-size: 13px; }
.ne-form-group { margin-bottom: 16px; }
.ne-form-group label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; }
.ne-form-group .required { color: var(--ne-error); }
.ne-form-group input, .ne-form-group select, .ne-form-group textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--ne-gray-300); border-radius: 6px; font-size: 14px; }
.ne-form-group textarea { min-height: 100px; resize: vertical; }
.ne-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.ne-file-upload { display: block; border: 2px dashed var(--ne-gray-300); border-radius: var(--ne-radius); padding: 32px; text-align: center; cursor: pointer; }
.ne-file-upload:hover { border-color: var(--ne-primary); background: rgba(2,8,115,0.02); }
.ne-file-upload input { position: absolute; width: 100%; height: 100%; opacity: 0; left: 0; top: 0; cursor: pointer; z-index: 1; }
.ne-file-upload { position: relative; }
.ne-file-upload span { display: block; font-size: 14px; margin-bottom: 4px; }
.ne-file-upload small { font-size: 12px; color: var(--ne-gray-500); }
.ne-file-selected-list { margin-top: 10px; padding: 10px 12px; background: var(--ne-gray-50); border-radius: 6px; font-size: 13px; color: var(--ne-text); }
.ne-file-selected-list .ne-file-selected-label { font-weight: 500; }
.ne-file-selected-list .ne-file-selected-names { word-break: break-all; }

.ne-checkbox { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; font-size: 13px; }
.ne-checkbox input { width: 16px; height: 16px; margin-top: 2px; }

.ne-form-success { text-align: center; padding: 32px; }
.ne-form-success h3 { color: var(--ne-success); font-size: 18px; margin-bottom: 8px; }
.ne-form-loading { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; padding: 32px; background: rgba(255,255,255,0.95); border-radius: var(--ne-radius); z-index: 10; }
.ne-form-loading.is-visible { display: flex; }
.ne-form-loading p { margin-top: 12px; font-size: 14px; color: var(--ne-gray-600); margin-bottom: 0; }
.ne-form-loading .ne-loading-spinner { width: 40px; height: 40px; flex-shrink: 0; border: 3px solid var(--ne-gray-200); border-top-color: var(--ne-primary); border-radius: 50%; animation: ne-spin-form 0.8s linear infinite; transform-origin: center; }
@keyframes ne-spin-form { to { transform: rotate(360deg); } }
.ne-part-request-form.ne-form-submitting { pointer-events: none; }

.ne-po-fields { padding: 12px; background: var(--ne-gray-50); border-radius: 6px; }
.ne-po-fields p { margin-bottom: 12px; font-size: 13px; }
.ne-po-terms { background: #FEF3C7; padding: 8px 12px; border-radius: 4px; font-size: 12px; }

.ne-product-documents { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--ne-gray-200); }
.ne-product-documents h3 { font-size: 16px; margin-bottom: 8px; }
.ne-documents-intro { font-size: 13px; color: var(--ne-gray-500); margin-bottom: 12px; }
.ne-product-doc-list { list-style: none; margin: 0; padding: 0; }
.ne-product-doc-list li { padding: 8px 0; border-bottom: 1px solid var(--ne-gray-100); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ne-product-doc-list li:last-child { border-bottom: 0; }
.ne-product-doc-list a { font-weight: 500; color: var(--ne-primary); }
.ne-product-doc-list a:hover { text-decoration: underline; }
.ne-doc-meta { font-size: 12px; color: var(--ne-gray-500); }
.ne-doc-type-badge { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 3px; background: var(--ne-gray-100); color: var(--ne-gray-600); }
.ne-doc-type-drawing { background: #dbeafe; color: #1e40af; }
.ne-doc-type-qa { background: #dcfce7; color: #166534; }
.ne-doc-type-datasheet { background: #fef3c7; color: #92400e; }
.ne-doc-type-certificate { background: #ede9fe; color: #5b21b6; }
.ne-doc-type-other { background: var(--ne-gray-100); color: var(--ne-gray-600); }

.ne-empty { text-align: center; padding: 48px; color: var(--ne-gray-500); }
.ne-empty svg { width: 48px; height: 48px; margin-bottom: 16px; opacity: 0.5; }

/* Loading state for products grid */
.ne-products-grid.ne-loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
    min-height: 200px;
}

.ne-products-grid.ne-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    border: 3px solid var(--ne-gray-200);
    border-top-color: var(--ne-primary);
    border-radius: 50%;
    animation: ne-spin 0.8s linear infinite;
    z-index: 10;
}

@keyframes ne-spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Smooth transitions for product cards */
.ne-product-card {
    animation: ne-fade-in 0.2s ease-out;
}

@keyframes ne-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .ne-products-grid { grid-template-columns: 1fr; }
    .ne-filters { flex-direction: column; }
    .ne-filter-group { width: 100%; }
    .ne-form-row { grid-template-columns: 1fr; }
    .ne-request-types { grid-template-columns: 1fr; }
}

/* ============================================
   Single Product Page Styles
   ============================================ */

.ne-single-product {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--ne-gray-50);
    min-height: 100vh;
    padding: 24px 0 48px;
}

.ne-single-product-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Back Navigation */
.ne-vault-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    padding: 12px 0;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--ne-gray-200, #e5e7eb);
}
.ne-vault-nav a {
    font-size: 14px;
    font-weight: 500;
    color: var(--ne-primary, #020873);
    text-decoration: none;
}
.ne-vault-nav a:hover {
    text-decoration: underline;
}

.ne-product-nav {
    margin-bottom: 24px;
}

.ne-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ne-gray-600);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.15s;
}

.ne-back-link:hover {
    color: var(--ne-primary);
}

.ne-back-link svg {
    width: 20px;
    height: 20px;
}

/* Main Layout */
.ne-product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

/* 3D Viewer Column */
.ne-product-viewer-column {
    position: sticky;
    top: 24px;
    align-self: start;
}

.ne-product-3d-viewer {
    background: var(--ne-gray-100);
    border-radius: var(--ne-radius);
    aspect-ratio: 4/3;
    overflow: hidden;
    box-shadow: var(--ne-shadow);
}

.ne-product-3d-viewer canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

.ne-3d-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--ne-gray-500);
    font-size: 14px;
}

.ne-viewer-controls {
    text-align: center;
    margin-top: 12px;
}

.ne-viewer-hint {
    font-size: 12px;
    color: var(--ne-gray-500);
}

/* Product Info Column */
.ne-product-info-column {
    padding: 8px 0;
}

/* Status Badge */
.ne-product-status {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 100px;
    color: var(--ne-white);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.ne-vault-badge {
    display: inline-block;
    background: var(--ne-primary);
    color: var(--ne-white);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 8px;
    vertical-align: middle;
}

/* Product Title & Details */
.ne-product-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--ne-text);
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.ne-product-sku {
    font-size: 14px;
    color: var(--ne-gray-500);
    margin: 0 0 16px 0;
}

.ne-product-price {
    font-size: 32px;
    font-weight: 700;
    color: var(--ne-primary);
    margin-bottom: 16px;
}

.ne-product-price del {
    font-size: 18px;
    color: var(--ne-gray-400);
    font-weight: 400;
    margin-right: 8px;
}

.ne-product-price ins {
    text-decoration: none;
}

.ne-product-description {
    font-size: 14px;
    line-height: 1.6;
    color: var(--ne-gray-600);
    margin-bottom: 24px;
}

/* Variation attribute table (variable products) */
.ne-variations-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
}
.ne-variations-table td {
    padding: 6px 0;
    vertical-align: middle;
}
.ne-variations-table td.label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    padding-right: 12px;
    white-space: nowrap;
    width: 1%;
}
.ne-variations-table td.value select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    color: #1f2937;
    cursor: pointer;
}
.ne-variations-table .reset_variations {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
    text-decoration: underline;
}
.woocommerce-variation.single_variation {
    font-size: 14px;
    color: #374151;
    min-height: 0;
}
.woocommerce-variation.single_variation .woocommerce-variation-price {
    font-size: 20px;
    font-weight: 700;
    color: #020873;
}
.woocommerce-variation-add-to-cart .ne-product-add-to-cart {
    margin-bottom: 0;
}

/* Add to Cart */
.ne-product-add-to-cart {
    margin-bottom: 32px;
}

/* Hide WooCommerce's duplicate "View cart" link so only our message shows */
.ne-product-add-to-cart .added_to_cart,
.ne-product-add-to-cart .ne-wc-view-cart-placeholder {
    display: none !important;
}

.ne-product-add-to-cart .cart {
    display: flex;
    gap: 16px;
    align-items: flex-end;
}

.ne-quantity-wrapper {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ne-quantity-wrapper label {
    font-size: 13px;
    font-weight: 500;
    color: var(--ne-gray-600);
}

/* Variation select — same style as quantity input but full-width */
select.ne-quantity-input {
    width: 100%;
    text-align: left;
    cursor: pointer;
    appearance: auto;
}

.ne-quantity-input {
    width: 80px;
    padding: 12px 14px;
    border: 1px solid var(--ne-gray-300);
    border-radius: 6px;
    font-size: 16px;
    text-align: center;
}

.ne-quantity-input:focus {
    outline: none;
    border-color: var(--ne-primary);
    box-shadow: 0 0 0 3px rgba(2,8,115,0.1);
}

.ne-add-to-cart-btn {
    flex: 1;
    padding: 14px 32px;
    background: var(--ne-button-primary, var(--ne-yellow, #FCD361));
    color: var(--ne-button-primary-text, #000);
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.ne-add-to-cart-btn:hover {
    background: var(--ne-button-hover, var(--ne-secondary, #2B4CB9));
    color: var(--ne-button-hover-text, #fff);
    transform: translateY(-1px);
    box-shadow: var(--ne-shadow-md);
}

.ne-out-of-stock {
    background: var(--ne-gray-100);
    color: var(--ne-gray-500);
    padding: 14px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

/* Cart Message Feedback */
.ne-cart-message {
    margin-top: 16px;
    padding: 14px 20px;
    background: #ECFDF5;
    border: 1px solid #10B981;
    border-radius: 6px;
    animation: ne-slide-down 0.3s ease;
}

.ne-cart-message.ne-error {
    background: #FEF2F2;
    border-color: #EF4444;
}

.ne-cart-message-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.ne-cart-message-text {
    font-size: 14px;
    font-weight: 500;
    color: #065F46;
}

.ne-cart-message.ne-error .ne-cart-message-text {
    color: #991B1B;
}

.ne-view-cart-link {
    padding: 8px 16px;
    background: #10B981;
    color: white;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.ne-view-cart-link:hover {
    background: #059669;
    color: white;
}

.ne-cart-message.ne-error .ne-view-cart-link {
    display: none;
}

.ne-add-to-cart-btn.ne-loading {
    opacity: 0.7;
    pointer-events: none;
}

.ne-add-to-cart-btn.ne-loading::after {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 8px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: ne-spin 0.6s linear infinite;
    vertical-align: middle;
}

@keyframes ne-slide-down {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Manufacturing Specifications */
.ne-product-specs {
    background: var(--ne-white);
    border: 1px solid var(--ne-gray-200);
    border-radius: var(--ne-radius);
    padding: 24px;
    margin-bottom: 24px;
}

.ne-product-specs h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--ne-text);
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--ne-gray-200);
}

.ne-specs-table {
    width: 100%;
    border-collapse: collapse;
}

.ne-specs-table tr:not(:last-child) td {
    border-bottom: 1px solid var(--ne-gray-100);
}

.ne-specs-table td {
    padding: 12px 0;
    font-size: 14px;
}

.ne-spec-label {
    color: var(--ne-gray-500);
    width: 50%;
}

.ne-spec-value {
    color: var(--ne-text);
    font-weight: 500;
    text-align: right;
}

/* Part Status Timeline */
.ne-status-timeline {
    background: var(--ne-white);
    border: 1px solid var(--ne-gray-200);
    border-radius: var(--ne-radius);
    padding: 24px;
}

.ne-status-timeline h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--ne-text);
    margin: 0 0 20px 0;
}

.ne-timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.ne-timeline::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 20px;
    right: 20px;
    height: 2px;
    background: var(--ne-gray-200);
    z-index: 0;
}

.ne-timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    flex: 1;
}

.ne-timeline-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--ne-white);
    border: 2px solid var(--ne-gray-300);
    margin-bottom: 8px;
    transition: all 0.2s;
}

.ne-timeline-item.completed .ne-timeline-dot {
    background: var(--ne-success);
    border-color: var(--ne-success);
}

.ne-timeline-item.active .ne-timeline-dot {
    background: var(--ne-primary);
    border-color: var(--ne-primary);
    box-shadow: 0 0 0 4px rgba(2,8,115,0.2);
}

.ne-timeline-label {
    font-size: 11px;
    color: var(--ne-gray-500);
    text-align: center;
    max-width: 80px;
    line-height: 1.3;
}

.ne-timeline-item.active .ne-timeline-label,
.ne-timeline-item.completed .ne-timeline-label {
    color: var(--ne-text);
    font-weight: 500;
}

.ne-status-on-hold {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 12px 16px;
    background: #FEE2E2;
    border-radius: 6px;
    color: #B91C1C;
    font-size: 13px;
    font-weight: 500;
}

.ne-status-on-hold svg {
    flex-shrink: 0;
}

/* Full Description */
.ne-product-full-description {
    background: var(--ne-white);
    border: 1px solid var(--ne-gray-200);
    border-radius: var(--ne-radius);
    padding: 24px;
}

.ne-product-full-description h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--ne-text);
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--ne-gray-200);
}

.ne-description-content {
    font-size: 14px;
    line-height: 1.7;
    color: var(--ne-gray-600);
}

.ne-description-content p {
    margin-bottom: 12px;
}

.ne-description-content p:last-child {
    margin-bottom: 0;
}

/* Order History (Part Page) */
.ne-product-order-history {
    background: var(--ne-white);
    border: 1px solid var(--ne-gray-200);
    border-radius: var(--ne-radius);
    padding: 24px;
    margin-top: 16px;
}

.ne-product-order-history h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--ne-text);
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--ne-gray-200);
}

.ne-order-history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ne-order-history-card {
    border: 1px solid var(--ne-gray-200);
    border-radius: 8px;
    overflow: hidden;
}

.ne-order-history-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--ne-gray-50, #f9fafb);
    border-bottom: 1px solid var(--ne-gray-200);
}

.ne-order-history-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ne-order-history-number {
    font-size: 14px;
    font-weight: 600;
    color: var(--ne-text);
}

.ne-order-history-date {
    font-size: 12px;
    color: var(--ne-gray-500, #6b7280);
}

.ne-order-history-item-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    font-size: 13px;
    color: var(--ne-gray-700, #374151);
}

.ne-order-history-total {
    margin-left: auto;
    font-weight: 600;
    color: var(--ne-text);
}

.ne-order-history-docs {
    padding: 12px 16px;
    border-top: 1px solid var(--ne-gray-200);
    background: var(--ne-gray-50, #f9fafb);
}

.ne-order-history-docs-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--ne-gray-500, #6b7280);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

/* Product Not Found */
.ne-product-not-found {
    text-align: center;
    padding: 80px 24px;
    color: var(--ne-gray-500);
}

/* Responsive Design for Single Product */
@media (max-width: 992px) {
    .ne-product-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .ne-product-viewer-column {
        position: static;
    }

    .ne-product-3d-viewer {
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    .ne-single-product-container {
        padding: 0 16px;
    }

    .ne-product-title {
        font-size: 22px;
    }

    .ne-product-price {
        font-size: 26px;
    }

    .ne-product-add-to-cart .cart {
        flex-direction: column;
        align-items: stretch;
    }

    .ne-quantity-wrapper {
        flex-direction: row;
        align-items: center;
        gap: 12px;
    }

    .ne-timeline {
        flex-direction: column;
        gap: 16px;
    }

    .ne-timeline::before {
        top: 10px;
        bottom: 10px;
        left: 10px;
        width: 2px;
        height: auto;
    }

    .ne-timeline-item {
        flex-direction: row;
        justify-content: flex-start;
        gap: 12px;
    }

    .ne-timeline-label {
        max-width: none;
        text-align: left;
    }
}

/* ================================
   Product Revision Info
   ================================ */

.ne-product-revision-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 8px;
    border: 1px solid #bae6fd;
}

.ne-revision-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--ne-primary, #020873);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}

.ne-revision-badge svg {
    flex-shrink: 0;
}

.ne-revision-date {
    color: #0369a1;
    font-size: 13px;
}

.ne-revision-change {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #0c4a6e;
    font-size: 12px;
    padding: 4px 8px;
    background: rgba(255,255,255,0.7);
    border-radius: 4px;
    cursor: help;
}

.ne-revision-change svg {
    flex-shrink: 0;
    opacity: 0.7;
}

/* ── Part page: two-column grid 1.1fr / 1fr ──────────────────────────── */
.ne-product-layout {
    grid-template-columns: 1.1fr 1fr;
}

/* Part page header badge row */
.ne-spp-badge-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

/* Price row inside price card */
.ne-spp-price-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

/* Expired quote strip */
.ne-spp-expired-strip {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 4px;
}
.ne-spp-expired-badge {
    display: inline-block;
    background: #fee2e2;
    color: #991b1b;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px;
    vertical-align: middle;
    white-space: nowrap;
}
.ne-spp-expired-notice {
    margin: 8px 0 0;
    font-size: 13px;
    color: #92400e;
}

/* Revision request button on part page */
.ne-revision-request-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 12px;
    padding: 11px 20px;
    background: transparent;
    color: var(--ne-primary, #020873);
    border: 2px solid var(--ne-primary, #020873);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s;
    box-sizing: border-box;
}
.ne-revision-request-btn:hover {
    background: var(--ne-primary, #020873);
    color: #fff !important;
    text-decoration: none;
}

/* Part page info section card */
.ne-spp-section {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 16px;
}
.ne-spp-section-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e7eb;
}

/* Document pill grid */
.ne-doc-pill-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ne-doc-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 13px;
}
.ne-doc-pill-name {
    flex: 1;
    font-weight: 500;
    color: #111827;
    word-break: break-all;
}
.ne-doc-pill a {
    white-space: nowrap;
    text-decoration: none;
}

/* Doc type badges (pill grid) */
.ne-doc-type-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 3px;
    white-space: nowrap;
}
.ne-doc-type-drawing    { background: #dbeafe; color: #1e40af; }
.ne-doc-type-qa         { background: #dcfce7; color: #166534; }
.ne-doc-type-datasheet  { background: #f3e8ff; color: #6b21a8; }
.ne-doc-type-certificate { background: #fef9c3; color: #854d0e; }
.ne-doc-type-other      { background: #f3f4f6; color: #374151; }

@media (max-width: 768px) {
    .ne-product-revision-info {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ── Pending Review card state ──────────────────────────────────────── */
.ne-product-card.ne-pending-review {
    opacity: 0.88;
    border: 1px dashed #d1d5db;
}
.ne-product-card.ne-pending-review .ne-product-3d-link {
    cursor: default;
}
.ne-badge-pending {
    background: #f59e0b !important;
    color: #fff !important;
}
.ne-badge-quoted {
    background: #059669 !important;
    color: #fff !important;
}
.ne-badge-expired {
    background: #d97706 !important;
    color: #fff !important;
}
.ne-product-card.ne-quoted-review .ne-product-3d-link,
.ne-product-card.ne-expired-quote .ne-product-3d-link {
    cursor: default;
}
.ne-pending-info {
    width: 100%;
}
.ne-pending-msg {
    font-size: 12px;
    color: #92400e;
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: 6px;
    padding: 8px 10px;
    margin: 0;
    line-height: 1.5;
}

/* ── Deletion / Cancel ──────────────────────────────────────────────── */
.ne-spp-danger-zone {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--ne-gray-200);
}
.ne-spp-danger-zone h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--ne-gray-600);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 12px;
}
.ne-btn-delete-part {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    background: #fff;
    border: 1.5px solid #dc2626;
    color: #dc2626;
    border-radius: var(--ne-radius, 8px);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    line-height: 1;
}
.ne-btn-delete-part:hover:not(:disabled) {
    background: #dc2626;
    color: #fff;
}
.ne-btn-delete-part:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}
.ne-deletion-pending-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--ne-radius, 8px);
    padding: 12px 14px;
    font-size: 13px;
    color: #991b1b;
    line-height: 1.5;
}
.ne-deletion-pending-notice svg {
    flex-shrink: 0;
    margin-top: 1px;
}
.ne-deletion-block-msg {
    font-size: 12px;
    color: var(--ne-gray-500);
    margin-top: 6px;
    line-height: 1.5;
}

/* Cancel Request button in My Requests */
.ne-btn-cancel-request {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    background: #fff;
    border: 1.5px solid #dc2626;
    color: #dc2626;
    border-radius: var(--ne-radius, 8px);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    line-height: 1;
}
.ne-btn-cancel-request:hover:not(:disabled) {
    background: #dc2626;
    color: #fff;
}
.ne-btn-cancel-request:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}
