/* ========================================
   PRODUCTS PAGE - Product detail UI
   Tronix theme variables only
   ======================================== */

.products-page {
    margin-top: 0;
    min-height: 100vh;
}

/* Hero / product detail section */
.product-detail-hero {
    padding: 32px 0 36px;
    width: 100%;
}

/* Light theme: bright background (avoid "night mode" look) */
html[data-theme="light"] .product-detail-hero,
html:not([data-theme="dark"]) .product-detail-hero {
    background: linear-gradient(180deg,
            #ffffff 0%,
            var(--bg-secondary) 55%,
            rgba(42, 157, 176, 0.12) 100%);
    color: var(--text-primary);
}

html[data-theme="light"] .product-detail-hero .product-breadcrumbs,
html:not([data-theme="dark"]) .product-detail-hero .product-breadcrumbs {
    color: var(--text-secondary);
}

html[data-theme="light"] .product-detail-hero .product-category-heading,
html[data-theme="light"] .product-detail-hero .product-detail-title,
html:not([data-theme="dark"]) .product-detail-hero .product-category-heading,
html:not([data-theme="dark"]) .product-detail-hero .product-detail-title {
    color: var(--text-primary);
}

html[data-theme="light"] .product-detail-hero .product-detail-description,
html:not([data-theme="dark"]) .product-detail-hero .product-detail-description {
    color: var(--text-secondary);
}

/* Dark theme: deep background with light text */
html[data-theme="dark"] .product-detail-hero {
    background: linear-gradient(180deg,
            var(--primary-color-dark) 0%,
            var(--primary-color) 55%,
            #031a20 100%);
    color: #ffffff;
}

html[data-theme="dark"] .product-detail-hero .product-breadcrumbs,
html[data-theme="dark"] .product-detail-hero .product-category-heading,
html[data-theme="dark"] .product-detail-hero .product-detail-title {
    color: #ffffff;
}

html[data-theme="dark"] .product-detail-hero .product-detail-description,
html[data-theme="dark"] .product-detail-hero .product-feature-desc {
    color: rgba(255, 255, 255, 0.85);
}

html[data-theme="dark"] .product-detail-hero .product-feature-title {
    color: #ffffff;
}

.product-detail-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Top bar: breadcrumbs + category + share */
.product-detail-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.product-breadcrumbs {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

.product-breadcrumbs a {
    color: inherit;
    text-decoration: none;
}

.product-breadcrumbs a:hover {
    color: var(--accent-color);
}

.product-breadcrumbs span {
    margin: 0 6px;
    opacity: 0.7;
}

/* Current breadcrumb (selected path) */
.product-breadcrumbs .breadcrumb-current {
    color: var(--accent-color);
    font-weight: 600;
    opacity: 1;
    margin: 0;
}

.product-category-heading {
    font-size: clamp(18px, 2.5vw, 24px);
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.product-share {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.75);
    color: var(--text-primary);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.product-share:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--accent-color);
}

html[data-theme="dark"] .product-share {
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

html[data-theme="dark"] .product-share:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-color);
}

/* Main grid: left (gallery) | center (title + CTA) | right (features) */
.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 0;
    align-items: stretch;
}

.product-detail-grid-single {
    grid-template-columns: 1fr;
}

.product-detail-grid-gateway {
    grid-template-columns: minmax(320px, 430px) 1fr;
    gap: 28px;
    align-items: stretch;
}

.product-detail-content-gateway-panel {
    max-width: 420px;
    width: 100%;
    padding: 24px 20px;
    border-radius: 0;
    border: none;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 100%;
}

@media (min-width: 1025px) {
    .product-detail-grid-gateway {
        align-items: start;
    }

    .product-detail-content-gateway-panel {
        min-height: auto;
        position: sticky;
        top: calc(var(--header-height, 96px) + 16px);
        align-self: start;
    }

    .gateway-specs-apps {
        max-height: calc(100vh - (var(--header-height, 96px) + -25px));
        overflow-y: auto;
        padding-right: 6px;
    }

    .surveillance-equipments-page .gateway-specs-apps {
        height: calc(100vh - (var(--header-height, 96px) + -25px));
        max-height: calc(100vh - (var(--header-height, 96px) + -25px));
        overflow-y: auto;
    }
}

.industrial-sensors-page .product-detail-content-gateway-panel {
    justify-content: flex-start;
    padding-top: 10px;
}

.industrial-sensors-page .product-ctas-stack {
    margin-top: 6px;
}

html[data-theme="dark"] .product-detail-content-gateway-panel {
    border: none;
    background: #ffffff;
}

.product-ctas-stack {
    flex-direction: column;
    align-items: center;
}

.product-ctas-stack .product-cta {
    width: 176px;
    flex: 0 0 auto;
}

/* Vertical dividers between columns – equal spacing each side (desktop) */
@media (min-width: 1025px) {
    .product-detail-gallery,
    .product-detail-content,
    .product-main-info {
        padding-left: 20px;
        padding-right: 20px;
        border-right: 1px solid var(--border-color);
    }

    .product-detail-gallery {
        padding-left: 0;
    }

    .product-main-info {
        padding-right: 0;
        border-right: none;
    }

    html[data-theme="dark"] .product-detail-gallery,
    html[data-theme="dark"] .product-detail-content {
        border-right-color: rgba(255, 255, 255, 0.16);
    }
}

@media (max-width: 1024px) {
    .product-detail-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .product-main-info {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .product-detail-gallery {
        order: 1;
    }

    .product-detail-content {
        order: 2;
    }

    .product-main-info {
        order: 3;
    }
}

.product-brand {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-color);
    margin: 0 0 8px;
}

.product-main-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    min-height: 360px;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    isolation: isolate;
}

#product-hero-image-wrap {
    cursor: pointer;
}

html[data-theme="dark"] .product-main-image {
    border-color: rgba(255, 255, 255, 0.14);
}

.product-main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    will-change: transform, opacity;
}

.product-main-image.moving img {
    animation: product-image-slide-in 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes product-image-slide-in {
    0% {
        opacity: 0;
        transform: translateX(42px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.product-main-image > .product-main-image-placeholder {
    display: none;
    color: var(--text-tertiary);
    font-size: 14px;
}

.product-main-image.product-main-image-placeholder > .product-main-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    inset: 0;
}

html[data-theme="dark"] .product-main-image > .product-main-image-placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.product-thumbnails {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.product-thumb {
    width: 46px;
    height: 46px;
    border-radius: 6px;
    padding: 0;
    background: transparent;
    border: 0;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    box-shadow: none;
    -webkit-tap-highlight-color: transparent;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s, opacity 0.2s;
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-thumb:hover,
.product-thumb.active {
    box-shadow: 0 0 0 2px var(--accent-color);
}

.product-thumb:focus,
.product-thumb:focus-visible {
    outline: none;
    box-shadow: none;
}

.product-thumb:active {
    outline: none;
    box-shadow: none;
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Center: title, description, CTAs */
.product-detail-content {
    padding-top: 8px;
}

.product-main-info {
    padding-top: 8px;
}

.product-main-info-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 14px;
}

.product-main-info-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
}

html[data-theme="dark"] .product-main-info-title {
    color: #ffffff;
}


.product-key-points {
    margin: 0 0 18px;
    padding-left: 18px;
    color: var(--text-secondary);
}

html[data-theme="dark"] .product-key-points {
    color: rgba(255, 255, 255, 0.85);
}

.product-key-points li {
    margin-bottom: 10px;
}

.product-partners-carousel {
    position: relative;
    width: 78%;
    min-height: 220px;
    margin-inline: auto;
    border: none;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(201, 241, 245, 0.48), rgba(255, 255, 255, 0.96));
    overflow: hidden;
}

html[data-theme="dark"] .product-partners-carousel {
    background: linear-gradient(180deg, rgba(22, 71, 78, 0.9), rgba(14, 33, 39, 0.96));
}

.product-partners-track {
    position: relative;
    width: 100%;
    min-height: 220px;
}

.product-partner-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    opacity: 0;
    transform: translateX(44px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.product-partner-slide.is-active {
    opacity: 1;
    transform: translateX(0);
}

.product-partner-slide img {
    display: block;
    max-width: min(200px, 72%);
    max-height: 88px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: saturate(1.02);
}

.product-main-info-compact {
    margin-top: 18px;
    padding-top: 0;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
}

.product-main-info-compact .product-main-info-header {
    margin-bottom: 8px;
    justify-content: center;
}

.product-main-info-compact .product-main-info-title {
    font-size: 13px;
    text-align: center;
}

.product-main-info-compact .product-partners-carousel {
    width: 100%;
    min-height: 82px;
    border-radius: 10px;
}

.product-main-info-compact .product-partners-track {
    min-height: 82px;
}

.product-main-info-compact .product-partner-slide {
    padding: 10px;
}

.product-main-info-compact .product-partner-slide img {
    max-width: min(120px, 70%);
    max-height: 46px;
}

.gateway-compact-slides {
    width: 100%;
}

.product-main-info-compact .gateway-compact-slides .product-main-image {
    min-height: 280px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.product-main-info-compact .gateway-compact-slides .product-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 0;
}

.product-main-info-compact .gateway-compact-slides .product-thumbnails {
    margin-top: 8px;
    justify-content: center;
    gap: 8px;
}

.product-main-info-compact .gateway-compact-slides .product-thumb {
    width: 58px;
    height: 58px;
}

.gateway-oem-wrap {
    cursor: default;
    padding: 16px;
}

.gateway-oem-wrap .product-main-info {
    padding-top: 0;
}

.gateway-oem-wrap .product-main-info-header {
    margin-bottom: 12px;
}

.gateway-oem-wrap .product-partners-carousel {
    width: min(78%, 320px);
    min-height: 190px;
    margin-inline: auto;
}

.gateway-oem-wrap .product-partners-track {
    min-height: 190px;
}

.gateway-oem-wrap .product-partner-slide img {
    max-width: min(190px, 72%);
    max-height: 78px;
}

.gateway-specs-apps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    padding-top: 6px;
}

.gateway-specs-card {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 14px 16px;
}

html[data-theme="dark"] .gateway-specs-card {
    background: rgba(13, 42, 49, 0.94);
    border-color: rgba(121, 206, 255, 0.32);
}

html[data-theme="dark"] .gateway-specs-card .gateway-specs-title {
    color: #d9f3ff;
}

html[data-theme="dark"] .gateway-specs-card .product-overview-list,
html[data-theme="dark"] .gateway-specs-card .product-overview-list li {
    color: rgba(224, 239, 248, 0.95);
}

.gateway-specs-title {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 700;
    color: #163843;
}

@media (max-width: 1024px) {
    .product-detail-grid-gateway {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-detail-content-gateway-panel {
        max-width: 100%;
        padding-bottom: 90px;
    }
}

/* Overview (below section) */
.product-overview-section {
    padding: 0 0 56px;
    background: var(--bg-primary);
}

html[data-theme="dark"] .product-overview-section {
    background: var(--bg-secondary);
}

.product-overview-header {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-top: 0;
    margin-bottom: 42px;
    background: linear-gradient(180deg, #79cfdc 0%, #58bccc 100%);
    
    border-bottom: 1px solid #43aabd;
    border-radius: 0;
    box-shadow: 0 10px 30px rgba(24, 109, 128, 0.2);
    overflow: hidden;
}

html[data-theme="dark"] .product-overview-header {
    background: linear-gradient(180deg, #0f5964 0%, #0a4650 100%);
    border-top-color: #08373f;
    border-bottom-color: rgba(74, 181, 197, 0.46);
    box-shadow: 0 10px 28px rgba(5, 25, 32, 0.35);
}

html[data-theme="dark"] .product-overview-image-wrap {
    background: #10262d;
}

html[data-theme="dark"] .product-overview-image {
    background: #10262d;
}

.product-overview-tabs {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    width: min(860px, calc(100% - 48px));
    margin: 0 auto;
    overflow-x: auto;
    scrollbar-width: none;
}

.product-overview-tabs::-webkit-scrollbar {
    display: none;
}

.product-overview-tab {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 168px;
    min-height: 46px;
    padding: 10px 22px;
    margin: 0;
    background: transparent;
    border: none;
    color: #000000;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
    position: relative;
    transition: background 0.2s ease, color 0.2s ease;
}

/* Fallback static controls used before JS enhances tabs */
.product-version-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.version-pill,
.overview-tab {
    min-width: 152px;
    min-height: 42px;
    padding: 10px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

html[data-theme="dark"] .version-pill,
html[data-theme="dark"] .overview-tab {
    color: #eaf4fb;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(120, 200, 232, 0.38);
}

html[data-theme="dark"] .version-pill.active,
html[data-theme="dark"] .overview-tab.active,
html[data-theme="dark"] .overview-tab.is-active {
    color: #0f2638;
    background: rgba(236, 248, 255, 0.96);
    border-color: rgba(236, 248, 255, 0.96);
}

html[data-theme="dark"] .product-overview-tab {
    color: rgba(223, 236, 246, 0.82);
}

.overview-dot {
    display: none;
}

.product-overview-tab + .product-overview-tab::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 2px;
    height: 20px;
    background: rgba(98, 185, 250, 0.7);
    transform: translateY(-50%);
}

html[data-theme="dark"] .product-overview-tab + .product-overview-tab::before {
    background: rgba(121, 206, 255, 0.42);
}

.product-overview-tab.is-active {
    background: #ffffff;
    color: #000000;
    box-shadow: 0 -2px 12px rgba(21, 88, 146, 0.12);
}

html[data-theme="dark"] .product-overview-tab.is-active {
    background: rgba(236, 248, 255, 0.92);
    color: #0f2638;
    box-shadow: 0 -2px 12px rgba(7, 20, 31, 0.3);
}

.product-overview-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    width: min(1120px, 100%);
    margin: 0 auto;
}

.product-overview-image-wrap {
    display: block;
    position: sticky;
    top: 156px;
    margin-top: 56px;
    border: none;
    border-radius: 0;
    overflow: hidden;
    background: #ffffff;
    cursor: pointer;
}

.product-overview-image-wrap .product-main-image {
    min-height: 0;
    border: 0;
    border-radius: 0;
}

.product-overview-image-wrap .product-main-image img {
    display: block;
    object-fit: cover;
}

.product-overview-image-wrap .product-thumbnails {
    padding: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

html[data-theme="dark"] .product-overview-image-wrap .product-thumbnails {
    border-top-color: rgba(255, 255, 255, 0.14);
}

.product-overview-panels {
    width: 100%;
    margin: 0;
    max-width: none;
    position: relative;
    padding-left: 0;
    padding-top: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 0;
}

/* Keep 50/50 columns, but reduce OEM box size inside left column */
.product-overview-image-wrap .product-partners-carousel {
    width: min(72%, 300px);
    min-height: 170px;
    margin-inline: auto;
}

.product-overview-image-wrap .product-partners-track {
    min-height: 170px;
}

.product-overview-image-wrap .product-partner-slide {
    padding: 16px;
}

.product-overview-image-wrap .product-partner-slide img {
    max-width: min(170px, 70%);
    max-height: 64px;
}

.product-overview-panels::before {
    content: none;
}

.product-overview-panels::after {
    content: none;
}

.product-overview-image {
    width: 100%;
    display: block;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: #ffffff;
}

.product-overview-heading {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
}

html[data-theme="dark"] .product-overview-heading {
    color: #ffffff;
}

html[data-theme="dark"] .product-overview-panel[data-version-panel$="-app"] {
    border-left-color: rgba(121, 206, 255, 0.24);
}

.product-overview-panel {
    width: 100%;
    grid-column: 1;
    padding-right: 8px;
}

.product-overview-panel[data-version-panel$="-app"] {
    border-left: 1px solid rgba(18, 75, 102, 0.22);
    padding-left: 8px;
    padding-right: 0;
}

.product-overview-panel[data-overview-panel="overview"] {
    min-height: 240px;
    grid-column: 1 / -1;
    padding-right: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 28px;
}

/* JS-generated tabs (Version 1/2/3, Documentation) should use full panel width */
.product-overview-panel[data-overview-panel="version-1"],
.product-overview-panel[data-overview-panel="version-2"],
.product-overview-panel[data-overview-panel="version-3"],
.product-overview-panel[data-overview-panel="documentation"] {
    grid-column: 1 / -1;
    padding-left: 0;
    padding-right: 0;
}

.product-overview-panel[data-overview-panel="overview"] .product-overview-section-block {
    padding: 0 18px 0 0;
}

.product-overview-panel[data-overview-panel="overview"] .product-overview-section-block:last-child {
    padding: 0 0 0 18px;
}

.product-overview-panel[data-overview-panel="overview"] .product-overview-section-title {
    text-align: center;
    margin: 0 0 34px;
}

.product-overview-panel[hidden] {
    display: none;
}

.product-overview-hero {
    max-width: 980px;
    margin: 0 0 24px;
    text-align: left;
}

.product-overview-hero-title {
    margin: 0 0 18px;
    font-size: clamp(28px, 3.1vw, 42px);
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: #000000;
    font-weight: 800;
}

.product-overview-hero-text {
    margin: 0;
    font-size: clamp(17px, 1.65vw, 24px);
    line-height: 1.75;
    color: #000000;
}

html[data-theme="dark"] .product-overview-hero-title {
    color: #f2f7fb;
}

html[data-theme="dark"] .product-overview-hero-text {
    color: rgba(229, 240, 248, 0.88);
}

.product-overview-spotlight {
    display: block;
    max-width: 980px;
    margin: 0;
}

.product-overview-highlight {
    padding-top: 0;
    max-width: 100%;
    margin: 0;
}

.product-overview-highlight-title {
    margin: 0 0 22px;
    font-size: clamp(24px, 2.4vw, 34px);
    line-height: 1.16;
    color: #0b5ab3;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.product-overview-highlight-list {
    margin: 0;
    padding-left: 22px;
    color: #000000;
    font-size: 17px;
    line-height: 1.7;
}

html[data-theme="dark"] .product-overview-highlight-title {
    color: #7fd8ff;
}

html[data-theme="dark"] .product-overview-highlight-list {
    color: rgba(222, 236, 245, 0.9);
}

.product-overview-section-block {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.product-overview-section-title {
    margin: 0 0 16px;
    font-size: clamp(26px, 2.4vw, 34px);
    line-height: 1.18;
    color: #000000;
    font-weight: 800;
}

html[data-theme="dark"] .product-overview-section-title {
    color: #eef6fb;
}

.product-overview-section-text {
    margin: 0 0 18px;
    font-size: 16px;
    line-height: 1.75;
    color: #000000;
}

html[data-theme="dark"] .product-overview-section-text {
    color: rgba(223, 236, 246, 0.86);
}

.product-overview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.product-overview-card {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
}

.product-overview-card-title {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.3;
    color: #000000;
    font-weight: 700;
}

html[data-theme="dark"] .product-overview-card-title {
    color: #9fdefd;
}

.product-overview-card-text {
    margin: 0;
    color: #000000;
    font-size: 15px;
    line-height: 1.65;
}

html[data-theme="dark"] .product-overview-card-text {
    color: rgba(214, 229, 239, 0.84);
}

.product-overview-bullet-list {
    margin: 0;
    padding-left: 20px;
    color: #000000;
    font-size: 15px;
    line-height: 1.7;
}

html[data-theme="dark"] .product-overview-bullet-list {
    color: rgba(223, 236, 246, 0.88);
}

.product-overview-bullet-list li + li {
    margin-top: 8px;
}

.product-overview-variants {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.product-overview-docs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.product-overview-version-block {
    max-width: none;
    width: 100%;
    margin: 0;
}

html[data-theme="dark"] .product-overview-panels::before {
    color: rgba(255, 255, 255, 0.8);
}

html[data-theme="dark"] .product-overview-panels::after {
    color: rgba(255, 255, 255, 0.8);
    border-left-color: rgba(255, 255, 255, 0.18);
}

@media (max-width: 900px) {
    .product-overview-section {
        padding: 0 0 42px;
    }

    .product-overview-header {
        margin-bottom: 26px;
        border-top-width: 10px;
    }

    .product-overview-tabs {
        width: min(100%, calc(100% - 20px));
        justify-content: flex-start;
    }

    .product-overview-tab {
        min-width: 132px;
        min-height: 40px;
        padding: 9px 14px;
        font-size: 13px;
    }

    .version-pill,
    .overview-tab {
        min-width: 118px;
        min-height: 38px;
        padding: 8px 12px;
    }

    .overview-dot {
        display: none;
    }

    .product-overview-hero {
        margin-bottom: 28px;
    }

    .product-overview-row {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .product-overview-image-wrap {
        position: static;
        max-width: 280px;
        margin-top: 16px;
    }

    .product-overview-panels {
        display: block;
        padding-left: 0;
        padding-top: 0;
    }

    .product-overview-panels::before,
    .product-overview-panels::after {
        display: none;
    }

    .product-overview-panel {
        padding-right: 0;
    }

    .product-overview-panel[data-overview-panel="overview"] {
        display: block;
    }

    .product-overview-panel[data-overview-panel="overview"] .product-overview-section-block,
    .product-overview-panel[data-overview-panel="overview"] .product-overview-section-block:last-child {
        padding: 0;
    }

    .product-overview-spotlight,
    .product-overview-grid,
    .product-overview-variants,
    .product-overview-docs {
        grid-template-columns: 1fr;
    }

    .product-overview-highlight {
        padding-top: 0;
    }

    .product-overview-section-block {
        padding: 22px 18px;
        border-radius: 14px;
    }
}

@media (max-width: 768px) {
    .product-main-image {
        min-height: 300px;
    }

    .product-thumb {
        width: 40px;
        height: 40px;
    }
}

/* Image lightbox (click to view) */
.product-image-lightbox[hidden] {
    display: none;
}

.product-image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.product-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
}

.product-lightbox-content {
    position: relative;
    max-width: 95vw;
    max-height: 90vh;
}

.product-lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.product-lightbox-close {
    position: absolute;
    top: -44px;
    right: 0;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.product-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.35);
}

.product-overview-text {
    margin: 0 0 10px;
    color: var(--text-secondary);
}

html[data-theme="dark"] .product-overview-text {
    color: rgba(255, 255, 255, 0.85);
}

.product-overview-list {
    margin: 0;
    padding-left: 18px;
    color: var(--text-secondary);
}

html[data-theme="dark"] .product-overview-list {
    color: rgba(255, 255, 255, 0.85);
}

.product-overview-list li {
    margin-bottom: 8px;
}

/* FAQ (below overview info) */
.product-faq {
    margin-top: 24px;
    padding: clamp(28px, 4vw, 48px) clamp(14px, 3vw, 32px);
    background: #ececec;
}

.product-faq-title {
    max-width: 1240px;
    margin: 0 auto 24px;
    text-align: left;
    font-size: clamp(24px, 2.8vw, 36px);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #050505;
    font-weight: 700;
}

.product-faq-list {
    max-width: 1240px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid #bdbdbd;
}

.product-faq-item {
    border-bottom: 1px solid #bdbdbd;
}

.product-faq-item:last-child {
    border-bottom: none;
}

.product-faq-question {
    width: 100%;
    border: none;
    background: transparent;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 14px;
    text-align: left;
    color: #0d0d0d;
    font-size: clamp(15px, 1.15vw, 19px);
    line-height: 1.4;
    font-weight: 600;
    padding: 14px 18px 13px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.product-faq-item.active .product-faq-question {
    color: #00cfe8;
}

.product-faq-icon {
    order: -1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    min-width: 16px;
    height: 16px;
    margin-top: 1px;
    flex-shrink: 0;
}

.product-faq-icon::before {
    content: '+';
    color: #0d0d0d;
    font-size: 20px;
    line-height: 1;
    font-weight: 500;
    transition: color 0.2s ease, transform 0.2s ease;
}

.product-faq-item.active .product-faq-icon::before {
    color: #00cfe8;
}

.product-faq-item.active .product-faq-icon::before {
    content: '-';
    transform: translateY(-1px);
}

.product-faq-answer {
    padding: 0 18px 16px 48px;
    color: #000000;
    font-size: clamp(13px, 0.95vw, 15px);
    line-height: 1.6;
}

.product-faq-answer p {
    margin: 0;
}

html[data-theme="dark"] .product-faq {
    background: #0f2329;
}

html[data-theme="dark"] .product-faq-title {
    color: #eaf4fb;
}

html[data-theme="dark"] .product-faq-list {
    background: rgba(14, 39, 46, 0.88);
    border-color: rgba(120, 200, 232, 0.34);
}

html[data-theme="dark"] .product-faq-item {
    border-bottom-color: rgba(120, 200, 232, 0.28);
}

html[data-theme="dark"] .product-faq-question {
    color: #e2eef6;
}

html[data-theme="dark"] .product-faq-icon::before {
    color: #e2eef6;
}

html[data-theme="dark"] .product-faq-answer {
    color: rgba(226, 238, 246, 0.9);
}

@media (max-width: 900px) {
    .product-faq {
        padding: 26px 12px 34px;
        margin-top: 20px;
    }

    .product-faq-title {
        margin-bottom: 18px;
    }

    .product-faq-question {
        gap: 12px;
        padding: 14px 12px;
        font-size: clamp(14px, 4vw, 17px);
    }

    .product-faq-icon {
        width: 14px;
        min-width: 14px;
        height: 14px;
    }

    .product-faq-icon::before {
        font-size: 18px;
    }

    .product-faq-answer {
        padding: 0 12px 14px 38px;
        font-size: 13px;
        line-height: 1.55;
    }
}

/* Modal */
.product-modal[hidden] {
    display: none;
}

.product-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
}

.product-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.product-modal-dialog {
    position: relative;
    width: min(720px, calc(100vw - 32px));
    margin: 80px auto;
    background: var(--bg-primary);
    color: var(--text-primary);
    border-radius: 14px;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.35);
    padding: 20px;
}

html[data-theme="dark"] .product-modal-dialog {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

.product-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.product-modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
}

.product-modal-close {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
}

.product-modal-subtitle {
    margin: 0 0 16px;
    color: var(--text-secondary);
}

.product-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 640px) {
    .product-form-grid {
        grid-template-columns: 1fr;
    }
}

.product-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
}

.product-field input {
    height: 44px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    padding: 0 12px;
    background: var(--bg-primary);
    color: var(--text-primary);
}

html[data-theme="dark"] .product-field input {
    background: var(--bg-tertiary);
}

.product-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 16px;
}

.product-form-note {
    margin: 12px 0 0;
    font-size: 12px;
    color: var(--text-tertiary);
}
.product-detail-title {
    font-size: clamp(18px, 2.2vw, 26px);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 12px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 768px) {
    .product-detail-title {
        white-space: normal;
    }
}

.product-detail-description {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 0 0 28px;
    line-height: 1.6;
}

.product-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.product-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 0 1 170px;
    min-height: 42px;
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s, border-color 0.2s;
    border: none;
    cursor: pointer;
}

.product-cta-primary {
    background: var(--accent-color);
    color: #fff;
}

.product-cta-primary:hover {
    background: var(--accent-color-hover);
    transform: translateY(-1px);
}

.product-cta-secondary {
    background: var(--primary-color-light);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.product-cta-secondary:hover {
    background: var(--primary-color-lighter);
    border-color: var(--accent-color);
    transform: translateY(-1px);
}

.product-cta svg {
    flex-shrink: 0;
}
