/* ── Product Page (product_page.css) ───────────────────────────────
   Uses cn_theme.css design tokens. Template for all /cn/products/
   ─────────────────────────────────────────────────────────────────── */

/* ── Section wrappers ───────────────────────────────────────────── */
.pd-section {
    background: #ffffff;
    padding: 60px 0;
}
.pd-section-alt {
    background: var(--cn-bg, #f7f9fc);
    padding: 60px 0;
}

/* ── Hero ───────────────────────────────────────────────────────── */
.pd-hero {
    background: #ffffff;
    padding: 48px 0 56px;
    border-bottom: 1px solid var(--cn-border, #e2e8f0);
}
.pd-hero-gallery-col {
    padding-right: 32px;
}

/* Swiper heights — explicit px because parent has no fixed height */
.pd-hero-gallery-col .mySwiper2 { height: 360px; }
.pd-hero-gallery-col .mySwiper  { height: 80px;  }

/* Product images: don't crop, show fully */
.pd-hero-gallery-col .swiper-slide img {
    object-fit: contain;
    background: #ffffff;
    border-radius: 6px;
}

/* Product info panel */
.pd-hero-info-col {
    padding-top: 8px;
}
.pd-info-cat {
    font-size: 14px;
    font-weight: 700;
    color: var(--cn-blue, #00a1e9);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 8px;
}
.pd-hero-info-col h1 {
    font-size: 28px;
    font-weight: 800;
    color: var(--cn-navy, #092c40);
    margin: 0 0 6px;
    line-height: 1.2;
    letter-spacing: -.3px;
}
.pd-hero-info-col .pd-sub-cat {
    font-size: 13px;
    color: var(--cn-light, #718096);
    margin: 0 0 24px;
}
.pd-variants-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--cn-mid, #4a5568);
    margin: 0 0 12px;
}
/* Variant card — matches product_set_introduction_text_* style */
.pd-variant {
    padding: 12px 16px;
    border-left: 3px solid var(--cn-blue, #00a1e9);
    background: var(--cn-bg, #f7f9fc);
    border-radius: 0 var(--cn-radius, 8px) var(--cn-radius, 8px) 0;
    margin-bottom: 10px;
    transition: border-color .2s;
}
.pd-variant:hover {
    border-left-color: var(--cn-orange, #ee7700);
}
.pd-variant-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}
.pd-variant-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--cn-orange, #ee7700);
}
.pd-variant-link {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--cn-blue, #00a1e9) 0%, var(--cn-blue-dark, #0070a8) 100%);
    padding: 4px 12px;
    border-radius: 6px;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0,161,233,.25);
    transition: all .2s ease;
}
.pd-variant-link:hover {
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,161,233,.4);
}
.pd-variant-sku {
    font-size: 12px;
    color: var(--cn-light, #718096);
    margin: 0;
    line-height: 1.5;
}

/* ── Content cards (features / functions) ───────────────────────── */
.pd-card {
    background: #ffffff;
    border: 1px solid var(--cn-border, #e2e8f0);
    border-radius: var(--cn-radius-lg, 14px);
    box-shadow: var(--cn-shadow-sm, 0 1px 3px rgba(0,0,0,.08));
    padding: 28px 28px 20px;
    height: 100%;
    transition: box-shadow .25s ease, transform .25s ease;
}
.pd-card:hover {
    box-shadow: var(--cn-shadow-md, 0 4px 12px rgba(0,0,0,.10));
    transform: translateY(-2px);
}
.pd-card-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--cn-navy, #092c40);
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--cn-blue, #00a1e9);
    display: inline-block;
}

/* ── Section sub-headings (within text columns) ─────────────────── */
.pd-col-heading {
    font-size: 15px;
    font-weight: 700;
    color: var(--cn-navy, #092c40);
    margin: 24px 0 10px;
    padding: 8px 14px;
    border-left: 3px solid var(--cn-blue, #00a1e9);
    background: var(--cn-bg, #f7f9fc);
    border-radius: 0 6px 6px 0;
}
.pd-col-heading:first-child { margin-top: 0; }

/* ── Lead text ──────────────────────────────────────────────────── */
.pd-lead {
    font-size: 14px;
    color: var(--cn-mid, #4a5568);
    line-height: 1.75;
    margin-bottom: 12px;
}

/* ── Bullet lists ───────────────────────────────────────────────── */
.pd-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}
.pd-list > li {
    padding: 4px 0 4px 22px;
    position: relative;
    font-size: 14px;
    line-height: 1.75;
    color: var(--cn-mid, #4a5568);
}
.pd-list > li::before {
    content: '»';
    position: absolute;
    left: 0;
    color: var(--cn-orange, #ee7700);
    font-weight: 700;
}
.pd-sub-list {
    list-style: none;
    padding: 4px 0 2px 8px;
    margin: 0;
}
.pd-sub-list li {
    padding: 3px 0 3px 16px;
    position: relative;
    font-size: 13px;
    line-height: 1.65;
    color: var(--cn-mid, #4a5568);
}
.pd-sub-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--cn-blue, #00a1e9);
}
.pd-sub-list--dash li::before { content: none; }

/* ── Product images ─────────────────────────────────────────────── */
.pd-product-img {
    width: 100%;
    border-radius: var(--cn-radius-lg, 14px);
    display: block;
    object-fit: contain;
    background: var(--cn-bg, #f7f9fc);
    border: 1px solid var(--cn-border, #e2e8f0);
}
.pd-product-img-tall { height: 360px; }
.pd-product-img-square { height: 280px; }

/* ── Spec key/value table ───────────────────────────────────────── */
.pd-spec-grid {
    border: 1px solid var(--cn-border, #e2e8f0);
    border-radius: var(--cn-radius, 8px);
    overflow: hidden;
    margin-bottom: 16px;
}
.pd-spec-row {
    display: flex;
    font-size: 13.5px;
    border-bottom: 1px solid var(--cn-border, #e2e8f0);
}
.pd-spec-row:last-child { border-bottom: none; }
.pd-spec-row:nth-child(odd) { background: var(--cn-bg, #f7f9fc); }
.pd-spec-key {
    flex: 0 0 140px;
    padding: 9px 14px;
    font-weight: 600;
    color: var(--cn-navy, #092c40);
    border-right: 1px solid var(--cn-border, #e2e8f0);
}
.pd-spec-val {
    flex: 1;
    padding: 9px 14px;
    color: var(--cn-mid, #4a5568);
}

/* ── Accessories table ──────────────────────────────────────────── */
.pd-table-wrap {
    overflow-x: auto;
    overflow-y: auto;
    max-height: 520px;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--cn-radius-lg, 14px);
    box-shadow: var(--cn-shadow-md, 0 4px 12px rgba(0,0,0,.10));
}
.pd-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 700px;
    background: #fff;
}
.pd-table thead tr:first-child th {
    position: sticky;
    top: 0;
    z-index: 3;
    background: var(--cn-navy, #092c40);
    color: #fff;
    padding: 12px 14px;
    font-size: 14px !important;
    font-weight: 700;
    white-space: nowrap;
    text-align: center;
}
.pd-table thead tr:first-child th:first-child { text-align: left; }
.pd-table thead tr:only-child th {
    border-bottom: 2px solid var(--cn-blue, #00a1e9);
    box-shadow: 0 3px 6px rgba(0,0,0,.15);
}
.pd-table thead tr:last-child:not(:first-child) th {
    position: sticky;
    top: 46px;
    z-index: 3;
    background: #0d3a56;
    padding: 6px 14px 8px;
    color: rgba(255,255,255,.55);
    font-weight: 400;
    font-size: 11px;
    text-align: center;
    border-bottom: 2px solid var(--cn-blue, #00a1e9);
    box-shadow: 0 3px 6px rgba(0,0,0,.15);
}
.pd-table tbody td {
    padding: 9px 14px;
    border-bottom: 1px solid var(--cn-border, #e2e8f0);
    vertical-align: middle;
}
.pd-table tbody tr:last-child td { border-bottom: none; }
.pd-table tbody tr:hover { background: #eef7fd; }

/* ── Freeze first 3 columns on horizontal scroll ────────────────── */
.pd-table th:nth-child(1), .pd-table td:nth-child(1) {
    position: sticky; left: 0; z-index: 2; min-width: 200px;
}
.pd-table th:nth-child(2), .pd-table td:nth-child(2) {
    position: sticky; left: 200px; z-index: 2; min-width: 110px;
}
.pd-table th:nth-child(3), .pd-table td:nth-child(3) {
    position: sticky; left: 310px; z-index: 2; min-width: 96px;
    box-shadow: 4px 0 6px -3px rgba(0,0,0,.18);
}
/* Opaque background for frozen body cells */
.pd-table tbody td:nth-child(1),
.pd-table tbody td:nth-child(2),
.pd-table tbody td:nth-child(3) { background: #fff; }
.pd-table tbody tr:hover td:nth-child(1),
.pd-table tbody tr:hover td:nth-child(2),
.pd-table tbody tr:hover td:nth-child(3) { background: #eef7fd; }
/* Corner cells (sticky both top and left): highest z-index */
.pd-table thead tr:first-child th:nth-child(1),
.pd-table thead tr:first-child th:nth-child(2),
.pd-table thead tr:first-child th:nth-child(3) { background: var(--cn-navy, #092c40); z-index: 5; }
.pd-table thead tr:last-child:not(:first-child) th:nth-child(1),
.pd-table thead tr:last-child:not(:first-child) th:nth-child(2),
.pd-table thead tr:last-child:not(:first-child) th:nth-child(3) { background: #0d3a56; z-index: 5; }

/* Release frozen columns on screens narrower than 1200px — sticky cols
   total 406px and need a container of ≥500px to be usable */
@media (max-width: 1199px) {
    .pd-table th:nth-child(1), .pd-table td:nth-child(1),
    .pd-table th:nth-child(2), .pd-table td:nth-child(2),
    .pd-table th:nth-child(3), .pd-table td:nth-child(3) {
        position: static;
        left: auto;
        min-width: unset;
        box-shadow: none;
    }
    .pd-table thead tr:first-child th:nth-child(1),
    .pd-table thead tr:first-child th:nth-child(2),
    .pd-table thead tr:first-child th:nth-child(3),
    .pd-table thead tr:last-child:not(:first-child) th:nth-child(1),
    .pd-table thead tr:last-child:not(:first-child) th:nth-child(2),
    .pd-table thead tr:last-child:not(:first-child) th:nth-child(3) { z-index: auto; }
}

/* Simple 3-column tables that don't need sticky columns */
.pd-table--simple th,
.pd-table--simple td {
    position: static !important;
    left: auto !important;
    min-width: unset !important;
    box-shadow: none !important;
    z-index: auto !important;
}

.pd-table-sku { color: var(--cn-light, #718096); font-size: 12px; }
.pd-table-check {
    text-align: center;
    color: var(--cn-blue, #00a1e9);
    font-size: 14px;
    font-weight: 700;
}
.pd-btn-sm {
    display: inline-block;
    background: linear-gradient(135deg, var(--cn-blue, #00a1e9) 0%, var(--cn-blue-dark, #0070a8) 100%);
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0,161,233,.2);
    transition: all .2s ease;
}
.pd-btn-sm:hover {
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,161,233,.4);
}

/* ── Download row ───────────────────────────────────────────────── */
.pd-download-row {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--cn-border, #e2e8f0);
    border-radius: var(--cn-radius-lg, 14px);
    padding: 18px 24px;
    margin-bottom: 12px;
    box-shadow: var(--cn-shadow-sm, 0 1px 3px rgba(0,0,0,.08));
    gap: 16px;
    transition: var(--cn-transition, all .28s ease);
}
.pd-download-row:hover {
    box-shadow: var(--cn-shadow-md);
    transform: translateY(-2px);
}
.pd-download-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--cn-radius, 8px);
    background: linear-gradient(135deg, var(--cn-blue, #00a1e9) 0%, var(--cn-blue-dark, #0070a8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,161,233,.3);
}
.pd-download-icon i { color: #fff; font-size: 18px; }
.pd-download-label {
    flex: 1;
    font-size: 15px;
    font-weight: 700;
    color: var(--cn-navy, #092c40);
}
.pd-download-btns { display: flex; gap: 8px; flex-shrink: 0; }
.pd-dl-btn {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: none;
    letter-spacing: .3px;
    transition: all .2s ease;
}
.pd-dl-btn--view {
    background: linear-gradient(135deg, var(--cn-blue, #00a1e9) 0%, var(--cn-blue-dark, #0070a8) 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,161,233,.3);
}
.pd-dl-btn--dl {
    background: var(--cn-navy, #092c40);
    color: #fff;
    box-shadow: 0 2px 8px rgba(9,44,64,.25);
}
.pd-dl-btn:hover {
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,.2);
}

/* ── Download row: language-selector variant ────────────────────── */
.pd-download-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.pd-lang-pills {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}
.pd-lang-pill {
    display: inline-flex;
    cursor: pointer;
    user-select: none;
}
.pd-lang-pill input[type="radio"] { display: none; }
.pd-lang-pill span {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    border: 1.5px solid var(--cn-border, #e2e8f0);
    color: var(--cn-light, #718096);
    background: #fff;
    transition: border-color .18s, color .18s, background .18s;
    white-space: nowrap;
}
.pd-lang-pill input[type="radio"]:checked + span {
    background: var(--cn-blue, #00a1e9);
    border-color: var(--cn-blue, #00a1e9);
    color: #fff;
}
.pd-lang-pill:hover span {
    border-color: var(--cn-blue, #00a1e9);
    color: var(--cn-blue, #00a1e9);
}
.pd-lang-pill:has(input:checked):hover span { color: #fff; }

/* ── Component cards (measurement-set hero panel) ───────────────── */
.pd-component-card {
    background: #ffffff;
    border: 1px solid var(--cn-border, #e2e8f0);
    border-radius: var(--cn-radius, 8px);
    padding: 12px 10px;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    box-shadow: var(--cn-shadow-sm, 0 1px 3px rgba(0,0,0,.08));
    transition: box-shadow .2s ease, transform .2s ease;
}
.pd-component-card:hover {
    box-shadow: var(--cn-shadow-md, 0 4px 12px rgba(0,0,0,.10));
    transform: translateY(-2px);
}
.pd-component-card img {
    width: 100%;
    max-height: 72px;
    object-fit: contain;
    margin-bottom: 4px;
}
.pd-component-card strong {
    font-size: 13px;
    font-weight: 700;
    color: var(--cn-navy, #092c40);
    line-height: 1.2;
}
.pd-component-card p {
    font-size: 11px;
    color: var(--cn-light, #718096);
    margin: 0 0 6px;
    line-height: 1.3;
}
.pd-component-card .pd-variant-link {
    margin-top: auto;
    font-size: 11px;
    padding: 3px 10px;
}

/* ── Table section-group row ─────────────────────────────────────── */
.pd-table-group td {
    background: var(--cn-navy, #092c40) !important;
    color: rgba(255,255,255,.80);
    font-weight: 600;
    font-size: 11.5px;
    letter-spacing: .4px;
    text-transform: uppercase;
    padding: 7px 14px !important;
}

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 991px) {
    .pd-hero-gallery-col { padding-right: 15px; }
    .pd-hero-gallery-col .mySwiper2 { height: 300px; }
    .pd-hero-gallery-col .mySwiper  { height: 68px; }
    .pd-card { margin-bottom: 20px; }
}
@media (max-width: 767px) {
    .pd-hero { padding: 32px 0 40px; }
    .pd-hero-gallery-col .mySwiper2 { height: 260px; }
    .pd-hero-gallery-col .mySwiper  { height: 60px; }
    .pd-section, .pd-section-alt { padding: 40px 0; }
    .pd-product-img-tall   { height: 220px; }
    .pd-product-img-square { height: 180px; }
    .pd-download-row { flex-wrap: wrap; }
    .pd-download-btns { width: 100%; }
    .pd-dl-btn { flex: 1; text-align: center; }
}
@media (max-width: 480px) {
    .pd-hero-info-col h1 { font-size: 22px; }
    .pd-card { padding: 20px 16px; }
}
