/* ==================== PRODUCT FOCUS PANEL (OVERLAY) ==================== */
.products-page {
    position: relative;
}
.product-focus-panel {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--theme-card-bg);
    border-radius: var(--radius-lg);
    box-shadow: 6px 6px 12px var(--theme-shadow-dark), -6px -6px 12px var(--shadow-light);
    border: 1px solid var(--theme-card-border);
    z-index: 100;
    overflow: hidden;
    flex-direction: column;
}
.products-page.focus-active .product-focus-panel {
    display: flex;
}
.products-page.focus-active .products-grid {
    display: none;
}

/* Header */
.product-focus-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 2px solid color-mix(in srgb, var(--theme-accent) 30%, transparent);
    flex-shrink: 0;
}
.product-focus-header h2 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}
.product-focus-header h2 i {
    color: var(--theme-accent);
}
.unfocus-button {
    background: color-mix(in srgb, var(--theme-accent) 10%, transparent);
    color: var(--theme-accent);
    border: 1px solid color-mix(in srgb, var(--theme-accent) 30%, transparent);
    border-radius: 4px;
    padding: 5px 8px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}
.unfocus-button i {
    font-size: 0.9rem;
}
.unfocus-button:hover {
    background: var(--theme-accent);
    color: white;
    box-shadow: var(--theme-glow-box-hover);
}

/* Focus grid */
.product-focus-grid {
    display: grid;
    grid-template-columns: 1fr 4.5fr;
    gap: 15px;
    padding: 18px;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    background: var(--theme-card-bg);
}

/* Views column */
.product-focus-grid .views {
    grid-column: 1;
    background: var(--theme-products-lavender-light);
    border-radius: var(--radius-lg);
    border: 1px solid color-mix(in srgb, var(--theme-accent) 30%, transparent);
    box-shadow: 6px 6px 12px var(--theme-shadow-dark), -6px -6px 12px var(--shadow-light);
    padding: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
    min-height: 0;
}
.views-header {
    border-bottom: 1px solid color-mix(in srgb, var(--theme-accent) 20%, transparent);
    padding-bottom: 5px;
    margin-bottom: 8px;
    flex-shrink: 0;
}
.views-header h4 {
    margin: 0;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--theme-accent);
}
.views-buttons-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    overflow-y: auto;
    flex: 1;
}
.view-preset-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 6px 10px;
    background: color-mix(in srgb, var(--theme-accent) 8%, transparent);
    color: var(--theme-accent);
    border: 1px solid color-mix(in srgb, var(--theme-accent) 30%, transparent);
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}
.view-preset-btn i {
    font-size: 1rem;
    width: 24px;
    text-align: center;
}
.view-preset-btn:hover {
    background: color-mix(in srgb, var(--theme-accent) 18%, transparent);
    box-shadow: var(--theme-glow-box-hover);
}
.view-preset-btn.active {
    background: var(--theme-accent);
    color: white;
}

/* Product detail card */
.product-focus-grid .product-detail-card {
    grid-column: 2;
    background: var(--theme-products-lavender-light);
    border-radius: var(--radius-lg);
    box-shadow: 6px 6px 12px var(--theme-shadow-dark), -6px -6px 12px var(--shadow-light);
    border: 1px solid var(--theme-card-border);
    padding: 16px;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    height: 100%;
}
.product-focus-grid .product-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    padding-bottom: 8px;
    border-bottom: 2px solid color-mix(in srgb, var(--theme-accent) 30%, transparent);
    flex-shrink: 0;
}
.product-focus-grid .product-detail-header h3 {
    font-size: 1rem;
    color: var(--text-dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}
.product-focus-grid .product-detail-header h3 i {
    color: var(--theme-accent);
}
#focus-product-title {
    font-weight: 600;
}

/* Detail content containers (white background) */
.product-focus-grid .product-detail-content-inner,
.product-focus-grid .price-development-content,
.product-focus-grid .usage-detail-content-inner,
.product-focus-grid .extended-info-container {
    background: white;
    border: 1px solid color-mix(in srgb, var(--theme-accent) 20%, transparent);
    border-radius: 5px;
    padding: 14px;
    margin-bottom: 12px;
}

/* Compact header (white background, flex) */
.product-focus-grid .product-detail-header-compact,
.product-detail-header-compact {
    background: white !important;
    border: 1px solid color-mix(in srgb, var(--theme-accent) 20%, transparent) !important;
    border-radius: 5px !important;
    padding: 10px 14px !important;
    margin-bottom: 12px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    width: 100% !important;
}
.product-detail-header-compact .compact-title {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}
/* product-detail-name removed – not needed */
.product-detail-header-compact .compact-identifiers {
    display: flex;
    gap: 15px;
    font-size: 0.75rem;
    color: var(--text-light);
}
.product-detail-header-compact .compact-identifiers span {
    color: var(--text-dark);
    font-weight: 500;
    margin-left: 4px;
}
.product-detail-header-compact .compact-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}
.product-detail-header-compact .badge-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.product-detail-header-compact .badge-group-label {
    font-size: 0.55rem;
    text-transform: uppercase;
    color: var(--text-light);
    letter-spacing: 0.3px;
}
.product-detail-header-compact .badge-container {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}
.product-detail-header-compact .grade-badge,
.product-detail-header-compact .mod-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 6px;
    background: color-mix(in srgb, var(--theme-accent) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--theme-accent) 30%, transparent);
    border-radius: 6px;
    font-size: 0.6rem;
    font-weight: 500;
    color: var(--theme-accent);
    cursor: default;
}

/* Overview layout */
.product-focus-grid .product-detail-name {
    font-size: 1.1rem;
    font-weight: 600;
}
.product-detail-header-content {
    background: white;
    border-radius: 5px;
    border: 1px solid color-mix(in srgb, var(--theme-accent) 20%, transparent);
    padding: 14px;
    margin-bottom: 5px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.detail-top-section {
    display: flex;
    align-items: stretch;
    gap: 16px;
    min-height: 150px;
}
.detail-bottom-section {
    width: 100%;
}
.product-image-frame {
    width: 150px;
    height: 150px;
    min-height: 150px;
    min-width: 150px;
    background: color-mix(in srgb, var(--theme-accent) 15%, white);
    border-radius: 4px;
    border: 1px solid var(--theme-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    flex-shrink: 0;
}
.product-image-b64 {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}
.product-image-frame i {
    font-size: 2.4rem;
    color: var(--theme-accent);
    opacity: 0.8;
}
.product-image-frame span,
.product-image-frame small {
    color: var(--theme-accent);
    font-size: 0.75rem;
}
.product-image-frame:has(i) {
    flex-direction: column;
    gap: 6px;
    text-align: center;
}
.product-image-frame:has(i) i {
    font-size: 2.85rem;
}
.product-image-frame:has(i) span,
.product-image-frame:has(i) small {
    font-size: 0.82rem;
}
.product-identifiers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 1fr 1fr;
    gap: 8px;
    width: 100%;
    height: 100%;
}
.product-identifiers-grid .identifier-item:nth-child(-n+4) {
    align-self: start;
}
.product-identifiers-grid .identifier-item:nth-child(n+5) {
    align-self: end;
}
.identifier-item {
    display: flex;
    flex-direction: column;
    padding: 6px 8px;
    background: color-mix(in srgb, var(--theme-accent) 5%, transparent);
    border-radius: 4px;
    border-left: 3px solid var(--theme-accent);
}
.identifier-label {
    font-size: 0.6rem;
    color: var(--text-light);
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.identifier-value {
    font-size: 0.7rem;
    color: var(--text-dark);
    font-weight: 500;
    word-break: break-word;
}
.specification-section {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 6px;
    width: 100%;
    align-items: stretch;
}
.specification-row .grade-label,
.specification-row .modification-row-label,
.specification-row .solid-label,
.specification-row .variations-label {
    margin-top: 0;
    margin-bottom: 8px; /* consistent with existing */
    line-height: 1.2;
}
.specification-row {
    flex: 1;
    min-width: 120px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    justify-content: flex-start;
}
.grade-label,
.modification-row-label,
.solid-label,
.variations-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--theme-accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid color-mix(in srgb, var(--theme-accent) 30%, transparent);
    padding-bottom: 2px;
    margin-bottom: 6px;
}
.grade-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}
.grade-cell {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px;
    background: color-mix(in srgb, var(--theme-accent) 8%, #f5f5f5);
    border: 1px solid color-mix(in srgb, var(--theme-accent) 20%, transparent);
    border-radius: 12px;
    font-size: 0.7rem;
    white-space: nowrap;
}
.grade-cell i {
    font-size: 0.7rem;
    color: var(--theme-accent);
}
.modifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 6px;
    width: 100%;
}
.modification-cell {
    min-height: 32px;
    height: auto;
    padding: 4px 8px;
    background: color-mix(in srgb, var(--theme-accent) 8%, #f5f5f5);
    border: 1px dashed var(--theme-accent);
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    font-size: 0.65rem;
    color: var(--text-light);
    text-align: center;
    cursor: pointer;
}
.modification-cell i {
    color: var(--theme-accent);
    font-size: 0.7rem;
}
.modification-cell:hover {
    background: color-mix(in srgb, var(--theme-accent) 18%, white);
    border-color: var(--theme-accent);
    color: var(--theme-accent);
}
.modification-cell.active-modification {
    background: var(--theme-accent);
    color: white;
    border-color: var(--theme-accent);
}
.modification-cell.active-modification i {
    color: white;
}
.modification-cell .modification-wh-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: color-mix(in srgb, var(--theme-accent) 25%, transparent);
    border-radius: 50%;
    font-size: 0.65rem;
    margin-right: 2px;
    flex-shrink: 0;
}

/* ====== Solid row – clickable buttons ====== */
.specification-row.solid-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.solid-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60px;
}
.multi-ribbon {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--theme-accent), color-mix(in srgb, var(--theme-accent) 70%, white));
    color: white;
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    cursor: default;
    width: auto;
    min-width: 80px;
    justify-content: center;
}
/* ====== End solid row ====== */

/* Inner content with 2:2:1 ratio */
.product-detail-content-inner {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    display: grid;
    grid-template-columns: 2fr 2fr 1fr;
    gap: 24px;
    background: white;
    border-radius: 5px;
    border: 1px solid color-mix(in srgb, var(--theme-accent) 20%, transparent);
    padding: 16px 20px;
    margin-top: 0;
}
.product-detail-content-inner .product-detail-info {
    grid-column: 1 / 3;
}
.product-detail-content-inner .product-detail-specs {
    grid-column: 3;
    padding-left: 20px;
    border-left: 1px solid color-mix(in srgb, var(--theme-accent) 30%, transparent);
}

/* Documents grid */
.documents-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    margin-top: 6px;
}
.document-placeholder {
    background: color-mix(in srgb, var(--theme-accent) 8%, white);
    border: 1px solid color-mix(in srgb, var(--theme-accent) 20%, transparent);
    border-radius: 3px;
    padding: 8px 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-align: center;
    transition: all 0.2s ease;
}
.document-placeholder:hover {
    background: color-mix(in srgb, var(--theme-accent) 18%, transparent);
    box-shadow: var(--theme-glow-box-hover);
}
.document-placeholder i {
    font-size: 1.1rem;
    color: var(--theme-accent);
    opacity: 0.8;
}
.document-placeholder span {
    font-size: 0.65rem;
    color: var(--text-dark);
    font-weight: 500;
}
.no-documents {
    grid-column: span 2;
    text-align: center;
    padding: 12px;
    color: var(--text-light);
    font-style: italic;
    background: color-mix(in srgb, var(--theme-accent) 5%, white);
    border-radius: 4px;
    border: 1px dashed color-mix(in srgb, var(--theme-accent) 30%, transparent);
}

/* ========== PICTURES VIEW: GRID WITH THUMBNAILS ========== */
.pictures-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    max-height: 500px;
    overflow-y: auto;
    padding: 8px;
}
.picture-item {
    text-align: center;
    background: #fafafa;
    border-radius: 8px;
    padding: 8px;
    transition: all 0.2s ease;
}
.picture-item:hover {
    background: white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.picture-placeholder {
    background: #f0f0f0;
    border-radius: 8px;
    padding: 8px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.picture-placeholder img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.picture-label {
    display: block;
    margin-top: 6px;
    font-size: 0.7rem;
    color: var(--text-light);
    word-break: break-word;
}
.download-single-btn {
    background: color-mix(in srgb, var(--theme-accent) 15%, transparent);
    border: 1px solid var(--theme-accent);
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 0.8rem;
    cursor: pointer;
    color: var(--theme-accent);
    transition: all 0.2s ease;
    margin-top: 8px;
}
.download-single-btn:hover {
    background: var(--theme-accent);
    color: white;
    transform: scale(1.02);
}

/* Styles for the "no pictures" placeholder in Pictures view */
.pictures-view-placeholder {
    text-align: center;
    padding: 2rem;
}
.pictures-view-placeholder i {
    font-size: 3rem;      /* +12pt from default ~1rem */
    color: #4b0082;       /* dark lilac */
    margin-bottom: 1rem;
    display: block;
}
.pictures-view-placeholder p {
    font-size: 1rem;      /* +4pt from default 0.85rem → ~1rem */
    margin: 0.5rem 0;
    color: var(--text-dark);
}
.pictures-view-placeholder button {
    background: color-mix(in srgb, var(--theme-accent) 15%, transparent);
    border: 1px solid var(--theme-accent);
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--theme-accent);
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 1rem;
    gap: 12px;
    display: inline-flex;
    align-items: center;
}
.pictures-view-placeholder button i {
    font-size: 1.4rem;
    color: #4b0082;
    margin-bottom: 0;
}
.pictures-view-placeholder button:hover {
    background: var(--theme-accent);
    color: white;
}
.pictures-view-placeholder button:hover i {
    color: white;
}

/* ========== TECH SHEET TABLE ========== */
.product-detail-techsheet {
    max-height: 500px;
    overflow-y: auto;
    padding-right: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.tech-sheet-container {
    overflow-x: auto;
    margin-bottom: 12px;
}
.tech-sheet-table {
    min-width: 500px;
}
.product-detail-techsheet::-webkit-scrollbar {
    width: 8px;
}
.product-detail-techsheet::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}
.product-detail-techsheet::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}
.product-detail-techsheet::-webkit-scrollbar-thumb:hover {
    background: #a0a0a0;
}

/* ========== DESCRIPTION VIEW ========== */
.desc-item {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
    background: white;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.desc-item > div:first-child i {
    font-size: 1.7rem;
    color: var(--theme-accent);
}
.product-description p {
    background-color: #ffffff;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* ========== CAROUSEL FOR USAGE VIEW ========== */
.usage-carousel-container {
    margin-top: 1rem;
    background: white;
    border-radius: 8px;
    padding: 0.5rem;
}
.carousel-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.carousel-tab {
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: #666;
    transition: all 0.2s;
    text-align: center;
    flex: 0 0 auto;
}
.carousel-tab:hover {
    color: var(--theme-accent);
    background: color-mix(in srgb, var(--theme-accent) 10%, transparent);
    border-color: var(--theme-accent);
}
.carousel-tab.active {
    color: var(--theme-accent);
    background: color-mix(in srgb, var(--theme-accent) 15%, transparent);
    border-color: var(--theme-accent);
    font-weight: 500;
}
.carousel-content {
    background: #fafafa;
    padding: 1rem;
    border-radius: 8px;
    min-height: 120px;
    border: 1px solid #eee;
}
.carousel-pane {
    display: none;
    animation: fade 0.3s ease;
}
.carousel-pane.active {
    display: block;
}
@keyframes fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Action buttons in focus header */
.product-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.product-action-btn {
    padding: 5px 8px;
    background: color-mix(in srgb, var(--theme-accent) 10%, transparent);
    color: var(--theme-accent);
    border: 1px solid color-mix(in srgb, var(--theme-accent) 30%, transparent);
    border-radius: 4px;
    font-size: 0.68rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.product-action-btn i {
    font-size: 0.81rem;
}
.product-action-btn:hover {
    background: color-mix(in srgb, var(--theme-accent) 20%, transparent);
    box-shadow: var(--theme-glow-box-hover);
}
.product-action-btn.btn-calculate {
    background: rgba(0, 168, 0, 0.1);
    color: #00a800;
    border-color: rgba(0, 168, 0, 0.3);
}
.product-action-btn.btn-calculate:hover {
    background: rgba(0, 168, 0, 0.2);
}
.product-action-btn.btn-assign-contact {
    background: rgba(255, 159, 67, 0.1);
    color: #ff9f43;
    border-color: rgba(255, 159, 67, 0.3);
}
.product-action-btn.btn-assign-contact:hover {
    background: rgba(255, 159, 67, 0.2);
}
.product-action-btn.btn-favourite {
    background: rgba(106, 13, 173, 0.1);
    color: #6a0dad;
    border-color: rgba(106, 13, 173, 0.3);
}
.product-action-btn.btn-favourite:hover {
    background: rgba(106, 13, 173, 0.2);
}
.product-action-btn.btn-favourite .fav-star-icon {
    color: #6a0dad;
}
.product-action-btn.btn-favourite.is-fav .fav-star-icon {
    color: #d8b9d8;
}

/* Dataset download button in action bar – small as before */
.btn-datasetdwnld {
    background: color-mix(in srgb, var(--theme-accent) 10%, transparent);
    color: var(--theme-accent);
    border: 1px solid color-mix(in srgb, var(--theme-accent) 30%, transparent);
    border-radius: 4px;
    padding: 5px 8px;
    font-size: 0.68rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.btn-datasetdwnld .btn-icon i {
    font-size: 0.81rem;
    color: var(--theme-accent);
}
.btn-datasetdwnld:hover {
    background: var(--theme-accent);
    color: white;
}
.btn-datasetdwnld:hover .btn-icon i {
    color: white;
}
.checkmark-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    color: #2ecc71;
    font-size: 10px;
}
.status-circle {
    transition: all 0.2s ease;
}

/* Detail sections */
.detail-section {
    margin-bottom: 4px;
}
.detail-section h4 {
    margin-bottom: 8px;
    color: var(--text-dark);
    font-size: 0.9rem;
    padding-bottom: 5px;
    border-bottom: 1px solid color-mix(in srgb, var(--theme-accent) 20%, transparent);
}
.product-detail-info .detail-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
    align-content: start;
}
.product-detail-info .detail-section h4 {
    grid-column: 1 / -1;
    margin-bottom: 4px;
}
.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid color-mix(in srgb, var(--theme-accent) 10%, transparent);
}
.detail-label {
    font-size: 0.8rem;
    color: var(--text-light);
}
.detail-value {
    font-size: 0.8rem;
    color: var(--text-dark);
    font-weight: 500;
    text-align: right;
}
.detail-value.highlight {
    color: var(--theme-accent);
    font-weight: 600;
}
.stock-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 500;
}
.stock-in-stock {
    background: rgba(0,168,0,0.1);
    color: #00a800;
}
.stock-low {
    background: rgba(255,159,67,0.1);
    color: #ff9f43;
}
.stock-out {
    background: rgba(255,71,87,0.1);
    color: #ff4757;
}
.dangerous-yes {
    color: #ff4757 !important;
    font-weight: 600;
}
.dangerous-no {
    color: #2ecc71 !important;
    font-weight: 600;
}
.export-allowed {
    color: #2ecc71 !important;
    font-weight: 600;
}
.export-not-allowed {
    color: #ff4757 !important;
    font-weight: 600;
}
.reach-yes {
    color: #2ecc71 !important;
    font-weight: 600;
}

/* Analytics view styling */
.price-development-content {
    text-align: center;
    padding: 2rem;
    color: var(--text-dark);
}
.price-development-content i {
    font-size: 3rem;
    color: var(--theme-accent);
    margin-bottom: 1rem;
}
.price-development-content p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0.5rem 0;
}
.price-development-content p:first-of-type {
    font-weight: 500;
    color: var(--theme-accent);
}

/* Solids row (legacy, kept for fallback) */
.solid-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--theme-accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid color-mix(in srgb, var(--theme-accent) 30%, transparent);
    padding-bottom: 2px;
    margin-bottom: 5px;
}
.solid-content {
    margin-top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}
.multi-ribbon {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--theme-accent), color-mix(in srgb, var(--theme-accent) 70%, white));
    color: white;
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    cursor: default;
}
.multi-ribbon i {
    font-size: 0.9rem;
}
.multi-ribbon span {
    white-space: nowrap;
}

/* Tech sheet table styling */
.tech-sheet-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.75rem;
    background: white;
}
.tech-sheet-table th,
.tech-sheet-table td {
    border: 1px solid #ddd;
    padding: 6px 8px;
    text-align: left;
}
.tech-sheet-table th {
    background: #c8a2c8;
    color: white;
    font-weight: 600;
    text-align: center;
}
.tech-sheet-table td.tech-sheet-param {
    background: #f9f9f9;
    font-weight: 500;
}
.tech-sheet-table td.tech-sheet-value {
    text-align: center;
}
.tech-sheet-container {
    overflow-x: auto;
    margin-bottom: 12px;
}

/* Responsive adjustments for focus panel */
@media (max-width: 768px) {
    .product-focus-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
        overflow-y: auto;
    }
    .product-focus-grid .views {
        grid-row: 1;
    }
    .product-focus-grid .product-detail-card {
        grid-row: 2;
    }
    .specification-section {
        flex-direction: column;
        gap: 12px;
    }
    .product-identifiers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .detail-top-section {
        flex-direction: column;
        align-items: center;
    }
    .product-detail-content-inner {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .product-detail-content-inner .product-detail-info {
        grid-column: 1;
    }
    .product-detail-content-inner .product-detail-specs {
        grid-column: 1;
        padding-left: 0;
        border-left: none;
        border-top: 1px solid color-mix(in srgb, var(--theme-accent) 30%, transparent);
        padding-top: 12px;
    }
    .pictures-container {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }
    .picture-placeholder {
        height: 150px;
    }
}
/* Solid chips styling */
.solid-chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    align-items: center;
}
.solid-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: color-mix(in srgb, var(--theme-accent) 10%, transparent);
    border: 1px solid var(--theme-accent);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--theme-accent);
    cursor: default;
    transition: all 0.2s ease;
}
.solid-chip i {
    font-size: 0.8rem;
    color: var(--theme-accent);
}

/* Remove extra space above solid-content */
.specification-row.solid-row .solid-content {
    margin-top: 0;
    padding-top: 0;
}
/* Disabled grade cell – hidden (not rendered in JS anymore) */
/* Grade selection styles – only for active grades */
.grade-grid .grade-cell {
    cursor: pointer;
    border: 1px solid color-mix(in srgb, var(--theme-accent) 30%, transparent);
    background: color-mix(in srgb, var(--theme-accent) 8%, transparent);
    transition: all 0.2s ease;
}
.grade-grid .grade-cell.active-grade {
    background: var(--theme-accent);
    color: white;
    border-color: var(--theme-accent);
    animation: pulse-lilac 1.5s infinite;
}
.grade-grid .grade-cell:not(.active-grade) {
    border: 1px dashed var(--theme-accent);
    background: color-mix(in srgb, var(--theme-accent) 5%, transparent);
}
@keyframes pulse-lilac {
    0% { box-shadow: 0 0 0 0 rgba(200, 162, 200, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(200, 162, 200, 0); }
    100% { box-shadow: 0 0 0 0 rgba(200, 162, 200, 0); }
}
.grade-cell.active-grade i {
    color: white !important;
}
.grade-cell.disabled-grade {
    opacity: 0.4;
    cursor: default;
    pointer-events: none;
    border-style: solid;
    border-color: #ddd;
}
.grade-cell .grade-wh-icon {
    font-size: 0.55rem;
    margin-left: 2px;
    color: var(--theme-accent);
    opacity: 0.6;
}
.grade-cell.active-grade .grade-wh-icon {
    color: white;
}
/* ====== Variations row styling ====== */
.variations-row {
    margin-top: 10px;
}
.variations-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--theme-accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid color-mix(in srgb, var(--theme-accent) 30%, transparent);
    padding-bottom: 2px;
    margin-bottom: 8px;
}
.variations-chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.variation-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: color-mix(in srgb, var(--theme-accent) 10%, transparent);
    border: 1px solid var(--theme-accent);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--theme-accent);
    cursor: pointer;
    transition: all 0.2s ease;
}
.variation-chip i {
    font-size: 0.8rem;
}
.variation-chip:hover {
    background: var(--theme-accent);
    color: white;
}
.variation-chip.active-variation {
    background: var(--theme-accent);
    color: white;
    animation: pulse-lilac 1.5s infinite;
}

/* ====== Solid row as clickable buttons ====== */
.solid-btn {
    background: color-mix(in srgb, var(--theme-accent) 10%, transparent);
    border: 1px solid var(--theme-accent);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--theme-accent);
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.solid-btn:hover {
    background: var(--theme-accent);
    color: white;
}
.solid-btn.active-solid {
    background: var(--theme-accent);
    color: white;
    animation: pulse-lilac 1.5s infinite;
}
.solid-chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
/* Variations container – scrollable when many */
.variations-chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: 140px;
    overflow-y: auto;
    padding-right: 4px;
}

.variations-chips-container::-webkit-scrollbar {
    width: 5px;
}
.variations-chips-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 5px;
}
.variations-chips-container::-webkit-scrollbar-thumb {
    background: #c8a2c8;
    border-radius: 5px;
}

.factory-contacts-grid {
    display: flex;
    gap: 12px;
    padding: 16px;
    flex-wrap: wrap;
}
.factory-contact-card {
    background: color-mix(in srgb, var(--theme-accent) 8%, transparent);
    border: 1px solid color-mix(in srgb, var(--theme-accent) 25%, transparent);
    border-radius: 10px;
    padding: 20px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 120px;
    transition: all 0.2s;
}
.factory-contact-card:hover {
    background: color-mix(in srgb, var(--theme-accent) 15%, transparent);
    border-color: var(--theme-accent);
}
.factory-contact-avatar {
    width: 48px;
    height: 48px;
    background: color-mix(in srgb, var(--theme-accent) 20%, transparent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--theme-accent);
}
.factory-contact-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
}