/* ============================================================
   Product detail page — pd-*
   ============================================================ */

.pd-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 40px 24px 64px;
}

/* ===== Top: image floats left, text wraps beside it and continues
   full-width below once it's taller than the image ===== */
.pd-top {
    margin-bottom: 48px;
    overflow: hidden; /* clearfix so floated .pd-gallery is contained */
}
.pd-gallery {
    float: left;
    width: 440px;
    max-width: 45%;
    margin: 0 48px 24px 0;
}
.pd-info {
    min-width: 300px;
}

/* ===== Gallery ===== */
.pd-gallery-main {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #f7f9fd;
    border: 1px solid #e8edf5;
    border-radius: 18px;
    overflow: hidden;
}
.pd-media {
    display: none;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.pd-media.is-active {
    display: block;
}
.pd-media img,
.pd-media video {
    width: 100%;
    height: 100%;
    display: block;
}
.pd-media img {
    object-fit: contain;
    background: #fff;
}
.pd-media video {
    object-fit: cover;
    background: #000;
}

.pd-thumbs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
}
.pd-thumb {
    position: relative;
    width: 72px;
    height: 56px;
    padding: 0;
    border: 2px solid #e3e9f2;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s;
}
.pd-thumb:hover {
    border-color: #b9c6e6;
}
.pd-thumb.is-active {
    border-color: #243674;
}
.pd-thumb img,
.pd-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.pd-thumb-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.9rem;
    background: rgba(36, 54, 116, 0.35);
    pointer-events: none;
}
/* hide the thumbnail row when there is only one media item */
.pd-thumb:only-child {
    display: none;
}

/* ===== Info ===== */
.pd-title {
    font-size: 2.2rem;
    font-weight: 400;
    color: #243674;
    margin: 0 0 16px;
    line-height: 1.2;
}
.pd-desc {
    font-size: 1.1rem;
    color: #333;
    line-height: 1.6;
}
.pd-desc strong {
    color: #243674;
}
.pd-desc p {
    margin: 0 0 12px;
}
.pd-desc p:last-child {
    margin-bottom: 0;
}
.pd-desc h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #243674;
    margin: 20px 0 10px;
}
.pd-desc h3:first-child {
    margin-top: 0;
}
.pd-desc ul,
.pd-desc ol {
    margin: 0 0 12px 22px;
}
.pd-desc li {
    margin-bottom: 6px;
}

/* Extra description blocks (below specs / comparison table) */
.pd-extra {
    max-width: 100%;
    margin: 0 auto 48px;
    font-size: 1.1rem;
    color: #333;
    line-height: 1.6;
}
.pd-extra strong {
    color: #243674;
}
.pd-extra p {
    margin: 0 0 12px;
}
.pd-extra p:last-child {
    margin-bottom: 0;
}
.pd-extra h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #243674;
    margin: 20px 0 10px;
}
.pd-extra h3:first-child {
    margin-top: 0;
}
.pd-extra ul,
.pd-extra ol {
    margin: 0 0 12px 22px;
}
.pd-extra li {
    margin-bottom: 6px;
}
/* (documents block moved below, full-width — styles in the "Documents" section) */

/* ===== Characteristics ===== */
.pd-specs {
    max-width: 100%;
    margin: 0 auto 48px;
}
.pd-spec-block {
    margin-bottom: 32px;
}
.pd-spec-title {
    font-size: 1.4rem;
    font-weight: 400;
    color: #243674;
    margin: 0 0 16px;
    padding-bottom: 10px;
    position: relative;
}
.pd-spec-title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 44px; height: 3px;
    background: linear-gradient(90deg, #243674, #4a6cb3);
    border-radius: 2px;
}
.pd-spec-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
}
.pd-spec-table tr {
    border-bottom: 1px solid #eef2fb;
}
.pd-spec-name {
    padding: 12px 16px 12px 0;
    color: #222;
    width: 50%;
}
.pd-spec-value {
    padding: 12px 0 12px 16px;
    color: #555;
}

/* ===== Comparison table ===== */
.pd-compare {
    max-width: 100%;
    margin: 0 auto 48px;
}
.pd-compare-title {
    font-size: 1.4rem;
    font-weight: 400;
    color: #243674;
    margin: 0 0 16px;
    padding-bottom: 10px;
    position: relative;
}
.pd-compare-title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 44px; height: 3px;
    background: linear-gradient(90deg, #243674, #4a6cb3);
    border-radius: 2px;
}
.pd-compare-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.pd-compare-table {
    width: 100%;
    min-width: 480px;
    border-collapse: collapse;
}
.pd-compare-table tr {
    border-bottom: 1px solid #eef2fb;
}
.pd-compare-table th {
    padding: 10px 12px;
    text-align: center;
    color: #243674;
    font-weight: 600;
    font-size: 0.95rem;
}
.pd-compare-table th:first-child {
    text-align: left;
}
.pd-compare-table td {
    padding: 12px;
    color: #555;
    text-align: center;
}
.pd-compare-name {
    text-align: left !important;
    color: #222;
    font-weight: 500;
}

/* ===== Documents ===== */
.pd-docs {
    max-width: 100%;
    margin: 0 auto 48px;
}
.pd-docs-title {
    font-size: 1.4rem;
    font-weight: 400;
    color: #243674;
    margin: 0 0 20px;
    padding-bottom: 10px;
    position: relative;
}
.pd-docs-title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 44px; height: 3px;
    background: linear-gradient(90deg, #243674, #4a6cb3);
    border-radius: 2px;
}
.pd-docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 14px;
}
.pd-doc {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid #e8edf5;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 2px 12px rgba(36, 54, 116, 0.05);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.pd-doc:hover {
    transform: translateY(-2px);
    border-color: #c9d5ec;
    box-shadow: 0 8px 22px rgba(36, 54, 116, 0.12);
}
.pd-doc-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #eef2fb;
    color: #243674;
}
.pd-doc-icon svg {
    width: 22px;
    height: 22px;
}
.pd-doc-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    min-width: 0;
}
.pd-doc-name {
    color: #243674;
    font-weight: 600;
    font-size: 0.98rem;
    line-height: 1.3;
    word-break: break-word;
}
.pd-doc-hint {
    color: #9aa6c0;
    font-size: 0.82rem;
}
.pd-doc-download {
    flex-shrink: 0;
    color: #b9c6e6;
    transition: color 0.2s;
}
.pd-doc:hover .pd-doc-download {
    color: #243674;
}
.pd-doc-download svg {
    width: 20px;
    height: 20px;
    display: block;
}

/* ===== CTA ===== */
.pd-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: linear-gradient(135deg, #0f1d45 0%, #243674 100%);
    border-radius: 18px;
    padding: 32px 40px;
}
.pd-cta-title {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 400;
}
.pd-cta-subtitle {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1rem;
    margin-top: 6px;
}
.pd-cta-btn {
    flex-shrink: 0;
    background: #fff;
    color: #243674;
    font-size: 1rem;
    font-weight: 600;
    padding: 14px 34px;
    border-radius: 12px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}
.pd-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
    .pd-container { padding: 28px 16px 48px; }
    .pd-gallery { float: none; width: 100%; max-width: 100%; margin: 0 0 24px; }
    .pd-title { font-size: 1.7rem; }
    .pd-thumbs { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; }
    .pd-docs-grid { grid-template-columns: 1fr; }
    .pd-compare-table { min-width: 420px; }
    .pd-compare-table th,
    .pd-compare-table td { padding: 8px; font-size: 0.9rem; }
    .pd-cta { padding: 26px 22px; }
    .pd-cta-btn { width: 100%; text-align: center; }
}
