/* Product detail page styles */
.product-detail-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.product-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
}

.product-detail-meta .version-badge {
    font-size: 13px;
    padding: 6px 12px;
    background: rgba(68, 125, 155, 0.12);
    color: var(--secondary);
    border-radius: 999px;
    font-weight: 600;
}

/* System description - single container */
.product-system-desc-container {
    margin-top: 48px;
}

.product-system-desc-card {
    padding: 0;
    overflow: hidden;
}

.product-system-desc-inner {
    padding: 32px;
}

.product-system-summary {
    font-size: 17px;
    line-height: 1.9;
    color: var(--text-soft);
    margin: 0 0 32px;
}

.product-system-subtitle {
    font-size: 22px;
    font-weight: 800;
    color: var(--navy);
    margin: 0 0 16px;
}

.product-system-subtitle:not(:first-of-type) {
    margin-top: 40px;
}

/* System coverage - what the system covers */
.product-coverage-list {
    display: grid;
    gap: 16px;
}

.product-coverage-item {
    padding: 20px 24px;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    transition: var(--transition-fast);
}

.product-coverage-item:hover {
    border-color: var(--primary);
    background: rgba(68, 125, 155, 0.04);
}

.product-coverage-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--navy);
    margin: 0 0 8px;
}

.product-coverage-desc {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-soft);
    margin: 0;
}

/* Screenshots gallery */
.product-screenshots {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.product-screenshot-item {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-fast);
}

.product-screenshot-item:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(68, 125, 155, 0.12);
}

.product-screenshot-trigger {
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    text-align: inherit;
}

.product-screenshot-img-wrap {
    position: relative;
    background: var(--navy);
    overflow: hidden;
}

.product-screenshot-img-wrap:hover .product-screenshot-zoom-hint {
    opacity: 1;
}

.product-screenshot-zoom-hint {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    font-size: 48px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.product-screenshot-img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    object-position: top;
}

.product-screenshot-caption {
    padding: 20px 24px;
}

.product-screenshot-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--navy);
    margin: 0 0 8px;
}

.product-screenshot-desc {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-soft);
    margin: 0;
}

.product-spec-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.product-spec-table th,
.product-spec-table td {
    padding: 14px 18px;
    text-align: inherit;
    border-bottom: 1px solid var(--border);
}

.product-spec-table th {
    font-weight: 700;
    color: var(--navy);
    width: 38%;
}

.product-spec-table td {
    color: var(--text-soft);
}

.product-spec-table tr:last-child th,
.product-spec-table tr:last-child td {
    border-bottom: none;
}

.product-install-step {
    margin-bottom: 32px;
}

.product-install-step:last-child {
    margin-bottom: 0;
}

.product-install-step h4 {
    font-size: 18px;
    font-weight: 800;
    color: var(--navy);
    margin: 0 0 16px;
    padding-inline-end: 8px;
}

.product-install-step .steps-list {
    margin: 0 0 12px;
    padding-inline-start: 24px;
    line-height: 2;
    color: var(--text-soft);
}

.product-install-step .code-block {
    background: var(--navy);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    margin: 12px 0;
    overflow-x: auto;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.7;
    color: var(--grey-light);
}

.product-install-step .code-block code {
    white-space: pre;
}

.product-install-step .step-note {
    font-size: 14px;
    color: var(--muted);
    background: rgba(68, 125, 155, 0.06);
    border-inline-start: 4px solid var(--primary);
    padding: 12px 16px;
    border-radius: 0 var(--radius) var(--radius) 0;
    margin-top: 12px;
}

[dir="rtl"] .product-install-step .step-note {
    border-inline-start: none;
    border-inline-end: 4px solid var(--primary);
    border-radius: var(--radius) 0 0 var(--radius);
}

.product-pages-grid,
.product-roles-grid {
    display: grid;
    gap: 12px;
}

.product-page-item,
.product-role-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    transition: var(--transition-fast);
}

.product-page-item:hover,
.product-role-item:hover {
    border-color: var(--primary);
    background: rgba(68, 125, 155, 0.04);
}

.product-page-item .path,
.product-role-item .name {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    min-width: 100px;
}

.product-page-item .desc,
.product-role-item .desc {
    font-size: 15px;
    color: var(--text-soft);
}

.product-cmd-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 18px;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    transition: var(--transition-fast);
}

.product-cmd-item:hover {
    border-color: var(--primary);
    background: rgba(68, 125, 155, 0.04);
}

.product-cmd-item code {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    color: var(--primary);
    word-break: break-all;
}

.product-cmd-item .cmd-desc {
    font-size: 14px;
    color: var(--text-soft);
}

.product-docs-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.product-docs-list .doc-chip {
    display: inline-block;
    padding: 10px 16px;
    background: rgba(68, 125, 155, 0.08);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
    transition: var(--transition-fast);
}

.product-docs-list .doc-chip:hover {
    border-color: var(--primary);
    background: rgba(68, 125, 155, 0.12);
    color: var(--primary);
}

@media (max-width: 640px) {
    .product-spec-table th {
        width: 45%;
    }

    .product-page-item {
        flex-direction: column;
        gap: 6px;
    }

    .product-page-item .path {
        min-width: 0;
    }
}
