:root {
    --blue-deep: #1a3fa4;
    --blue-mid: #2563eb;
    --blue-light: #dbeafe;
    --blue-pale: #eff6ff;
    --accent: #f59e0b;
    --accent-lt: #fef3c7;
    --text-dark: #0f172a;
    --text-mid: #334155;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --white: #ffffff;
    --offwhite: #f8fafc;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--offwhite);
    color: var(--text-dark);
    overflow-x: hidden;
}

/* ── BANNER ── */
.page-banner {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.page-banner img.banner-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}


.banner-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    padding-left: clamp(1.5rem, 8vw, 6rem);
}

.banner-chip {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-size: .68rem;
    font-weight: 500;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .6);
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 50px;
    padding: .3rem 1rem;
    margin-bottom: 1rem;
    backdrop-filter: blur(4px);
}

.banner-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -.025em;
    line-height: 1.1;
    margin: 0;
}

.banner-title span {
    color: #93c5fd;
}

.banner-sub {
    font-size: .88rem;
    color: rgba(255, 255, 255, .5);
    margin-top: .55rem;
    font-weight: 300;
}

/* ── SECTION LABEL ── */
.section-label {
    font-size: .68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .15em;
    color: var(--blue-mid);
    display: flex;
    align-items: center;
    gap: .5rem;
    justify-content: center;
}

.section-label::before,
.section-label::after {
    content: '';
    width: 18px;
    height: 2px;
    background: var(--blue-mid);
    border-radius: 2px;
}

h2.sec-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(1.7rem, 3.5vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -.025em;
    color: var(--text-dark);
}

/* ── CATEGORY TAB ── */
.cat-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.cat-tab {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .78rem;
    font-weight: 600;
    padding: .45rem 1.1rem;
    border-radius: 50px;
    border: 1.5px solid var(--border);
    background: var(--white);
    color: var(--text-mid);
    cursor: pointer;
    transition: all .2s;
    user-select: none;
}

.cat-tab:hover {
    border-color: var(--blue-mid);
    color: var(--blue-mid);
}

.cat-tab.active {
    background: var(--blue-mid);
    border-color: var(--blue-mid);
    color: #fff;
    box-shadow: 0 4px 16px rgba(37, 99, 235, .25);
}

/* ── PRODUCT CARD ── */
.product-card-lm {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
    transition: transform .35s ease, box-shadow .35s ease, border-color .3s;
    position: relative;
}

.product-card-lm::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--blue-mid), #60a5fa);
    opacity: 0;
    transition: opacity .3s;
    z-index: 1;
}

.product-card-lm:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 56px rgba(15, 23, 42, .11);
    border-color: var(--blue-light);
}

.product-card-lm:hover::before {
    opacity: 1;
}

/* Image area */
.prod-img-area {
    height: 200px;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.8rem;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    flex-shrink: 0;
}

.prod-img-area img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform .45s ease;
}

.product-card-lm:hover .prod-img-area img {
    transform: scale(1.12);
}

/* Body */
.prod-body-lm {
    padding: 1.3rem 1.4rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.prod-name {
    font-family: 'Syne', sans-serif;
    font-size: .95rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: .3rem;
    line-height: 1.3;
}

.prod-desc-sm {
    font-size: .78rem;
    color: var(--text-muted);
    line-height: 1.6;
    flex: 1;
    margin-bottom: 1.1rem;
}

.btn-detail {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .75rem;
    font-weight: 600;
    color: var(--blue-mid);
    background: var(--blue-pale);
    border: 1px solid var(--blue-light);
    border-radius: 8px;
    padding: .4rem .9rem;
    transition: background .2s, color .2s, box-shadow .2s;
    text-decoration: none;
    align-self: flex-start;
}

.btn-detail:hover {
    background: var(--blue-mid);
    color: #fff;
    border-color: var(--blue-mid);
    box-shadow: 0 4px 16px rgba(37, 99, 235, .2);
}

/* New badge */
.badge-new {
    position: absolute;
    top: 14px;
    left: 14px;
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    background: var(--accent);
    color: #fff;
    border-radius: 6px;
    padding: .22rem .6rem;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(245, 158, 11, .35);
}

/* ── GROUP HEADER ── */
.group-header {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.4rem 1.8rem;
    margin-bottom: 1.8rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.group-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--blue-pale);
    color: var(--blue-mid);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.group-title {
    font-family: 'Syne', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0 0 .2rem;
    letter-spacing: -.01em;
}

.group-sub {
    font-size: .78rem;
    color: var(--text-muted);
    margin: 0;
}

.group-count {
    margin-left: auto;
    font-family: 'Syne', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--blue-light);
}

/* ── CTA STRIP ── */
.cta-wrap {
    background: var(--blue-deep);
    border-radius: 22px;
    padding: 3rem 2.5rem;
    position: relative;
    overflow: hidden;
}

.cta-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 24px 24px;
}

.cta-wrap::after {
    content: '';
    position: absolute;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, .06), transparent 70%);
    top: -140px;
    right: -80px;
}

.cta-inner {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -.02em;
}

.cta-title span {
    color: #93c5fd;
}

.btn-wa-cta {
    background: #25d366;
    border: none;
    border-radius: 12px;
    padding: .78rem 1.8rem;
    font-weight: 600;
    font-size: .9rem;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    transition: background .25s, transform .2s;
    box-shadow: 0 4px 20px rgba(37, 211, 102, .3);
    text-decoration: none;
}

.btn-wa-cta:hover {
    background: #1ebe5d;
    transform: translateY(-2px);
    color: #fff;
}

.btn-sol-cta {
    background: rgba(255, 255, 255, .08);
    border: 1.5px solid rgba(255, 255, 255, .2);
    border-radius: 12px;
    padding: .76rem 1.8rem;
    font-weight: 500;
    font-size: .9rem;
    color: rgba(255, 255, 255, .8);
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    transition: border-color .2s, color .2s;
    text-decoration: none;
}

.btn-sol-cta:hover {
    border-color: rgba(255, 255, 255, .5);
    color: #fff;
}

/* Reveal */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .65s ease, transform .65s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}







/* ── TOPBAR ── */
.topbar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: .75rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.topbar-brand {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--blue-deep);
    text-decoration: none;
}

.topbar-brand span {
    color: var(--blue-mid);
}

/* ── BREADCRUMB ── */
.breadcrumb-bar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: .65rem 0;
}

.bc-link {
    font-size: .78rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color .2s;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
}

.bc-link:hover {
    color: var(--blue-mid);
}

.bc-sep {
    font-size: .7rem;
    color: var(--border);
    margin: 0 .4rem;
}

.bc-current {
    font-size: .78rem;
    color: var(--text-dark);
    font-weight: 500;
}

/* ── PRODUCT HERO ── */
.product-hero {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 3rem 0 2.5rem;
}

/* Gallery */
.gallery-wrap {
    position: sticky;
    top: 80px;
}

.main-img-box {
    background: white;
    border: 1px solid var(--border);
    border-radius: 18px;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
    overflow: hidden;
    position: relative;
    cursor: zoom-in;
}

.main-img-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform .4s ease;
}

.main-img-box:hover img {
    transform: scale(1.08);
}

.zoom-hint {
    position: absolute;
    bottom: 14px;
    right: 14px;
    font-size: .68rem;
    color: var(--text-muted);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: .2rem .7rem;
    display: flex;
    align-items: center;
    gap: .3rem;
}

.thumb-row {
    display: flex;
    gap: .65rem;
    margin-top: .75rem;
    flex-wrap: wrap;
}

.thumb {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    border: 1.5px solid var(--border);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .5rem;
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s;
    overflow: hidden;
}

.thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.thumb.active,
.thumb:hover {
    border-color: var(--blue-mid);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .1);
}

/* Product Info */
.prod-info-col {
    padding-left: 2rem;
}

.prod-category-chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--blue-mid);
    background: var(--blue-pale);
    border: 1px solid var(--blue-light);
    border-radius: 50px;
    padding: .28rem .85rem;
    margin-bottom: 1rem;
}

.prod-title-main {
    font-family: 'Syne', sans-serif;
    font-size: clamp(1rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: -.025em;
    color: var(--text-dark);
    line-height: 1.15;
    margin-bottom: .6rem;
}

.prod-subtitle {
    font-size: .88rem;
    color: var(--text-muted);
    font-weight: 300;
    line-height: 1.7;
    margin-bottom: 1.4rem;
}

/* Meta badges */
.meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .65rem;
    margin-bottom: 1.5rem;
}

.meta-item {
    background: var(--offwhite);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: .75rem 1rem;
    display: flex;
    align-items: center;
    gap: .6rem;
}

.meta-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--blue-pale);
    color: var(--blue-mid);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
    flex-shrink: 0;
}

.meta-label {
    font-size: .68rem;
    color: var(--text-muted);
    display: block;
}

.meta-value {
    font-size: .82rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* Feature pills */
.feature-row {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin-bottom: 1.5rem;
}

.feat-pill {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .73rem;
    font-weight: 500;
    color: var(--text-mid);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: .28rem .8rem;
}

.feat-pill i {
    color: var(--blue-mid);
    font-size: .8rem;
}

/* Action buttons */
.btn-download {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: var(--blue-mid);
    color: #fff;
    border: none;
    border-radius: 11px;
    padding: .72rem 1.6rem;
    font-weight: 600;
    font-size: .875rem;
    transition: background .25s, transform .2s, box-shadow .2s;
    box-shadow: 0 4px 16px rgba(37, 99, 235, .25);
    text-decoration: none;
    cursor: pointer;
}

.btn-download:hover {
    background: var(--blue-deep);
    transform: translateY(-2px);
    color: #fff;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: var(--white);
    color: var(--text-mid);
    border: 1.5px solid var(--border);
    border-radius: 11px;
    padding: .7rem 1.4rem;
    font-weight: 500;
    font-size: .875rem;
    transition: border-color .2s, color .2s;
    text-decoration: none;
}

.btn-back:hover {
    border-color: var(--blue-mid);
    color: var(--blue-mid);
}

/* ── TABS SECTION ── */
.detail-tabs-section {
    padding: 3rem 0;
}

.tab-nav {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border);
    margin-bottom: 2rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.tab-nav::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    font-size: .83rem;
    font-weight: 600;
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-bottom: 2.5px solid transparent;
    padding: .75rem 1.4rem;
    margin-bottom: -2px;
    cursor: pointer;
    white-space: nowrap;
    transition: color .2s, border-color .2s;
    display: flex;
    align-items: center;
    gap: .4rem;
}

.tab-btn:hover {
    color: var(--text-dark);
}

.tab-btn.active {
    color: var(--blue-mid);
    border-bottom-color: var(--blue-mid);
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* ── SPEC TABLE ── */
.spec-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
}

.spec-group-head {
    background: var(--blue-pale);
    border-bottom: 1px solid var(--blue-light);
    padding: .85rem 1.5rem;
    display: flex;
    align-items: center;
    gap: .6rem;
}

.spec-group-head span {
    font-family: 'Syne', sans-serif;
    font-size: .88rem;
    font-weight: 700;
    color: var(--blue-deep);
}

.spec-group-head i {
    color: var(--blue-mid);
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    padding: 10px;
}

.spec-table tr {
    border-bottom: 1px solid var(--border);
    transition: background .15s;
}

.spec-table tr:last-child {
    border-bottom: none;
}

.spec-table tr:hover {
    background: var(--offwhite);
}

.spec-table td {
    padding: .85rem 1.5rem;
    font-size: .83rem;
    vertical-align: top;
    line-height: 1.6;
}

.spec-table td:first-child {
    width: 42%;
    color: var(--text-muted);
    font-weight: 500;
    border-right: 1px solid var(--border);
}

.spec-table td:last-child {
    color: var(--text-dark);
    font-weight: 400;
}

.spec-badge {
    display: inline-block;
    font-size: .68rem;
    font-weight: 600;
    padding: .18rem .6rem;
    border-radius: 50px;
}

/* ── GALLERY TAB ── */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
}

.gallery-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 160px;
    cursor: pointer;
    transition: transform .3s, box-shadow .3s, border-color .3s;
    overflow: hidden;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(15, 23, 42, .1);
    border-color: var(--blue-light);
}

.gallery-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform .4s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* ── LIGHTBOX ── */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 15, 30, .92);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s;
    backdrop-filter: blur(6px);
}

.lightbox-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.lightbox-inner {
    max-width: 700px;
    width: 90%;
    position: relative;
}

.lightbox-inner img {
    width: 100%;
    border-radius: 16px;
    object-fit: contain;
    max-height: 80vh;
}

.lightbox-close {
    position: absolute;
    top: -44px;
    right: 0;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
    transition: background .2s;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, .2);
}

/* ── DATASHEET PANEL ── */
.datasheet-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 2rem;
}

.ds-file-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.ds-file-row:last-child {
    border-bottom: none;
}

.ds-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #fef2f2;
    color: #dc2626;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.ds-name {
    font-size: .88rem;
    font-weight: 600;
    color: var(--text-dark);
}

.ds-size {
    font-size: .73rem;
    color: var(--text-muted);
    margin-top: .1rem;
}

.btn-dl-file {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .78rem;
    font-weight: 600;
    color: var(--blue-mid);
    background: var(--blue-pale);
    border: 1px solid var(--blue-light);
    border-radius: 8px;
    padding: .38rem .85rem;
    transition: background .2s, color .2s;
    text-decoration: none;
    flex-shrink: 0;
}

.btn-dl-file:hover {
    background: var(--blue-mid);
    color: #fff;
    border-color: var(--blue-mid);
}

/* ── RELATED PRODUCTS ── */
.related-section {
    background: var(--offwhite);
    padding: 3rem 0 4rem;
    border-top: 1px solid var(--border);
}

.sec-label-sm {
    font-size: .67rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .15em;
    color: var(--blue-mid);
    display: flex;
    align-items: center;
    gap: .4rem;
    margin-bottom: .4rem;
}

.sec-label-sm::before {
    content: '';
    width: 16px;
    height: 2px;
    background: var(--blue-mid);
    border-radius: 2px;
}

.related-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: transform .3s, box-shadow .3s, border-color .3s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 40px rgba(15, 23, 42, .09);
    border-color: var(--blue-light);
}

.related-img {
    height: 150px;
    background: var(--offwhite);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem;
    overflow: hidden;
}

.related-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform .4s;
}

.related-card:hover .related-img img {
    transform: scale(1.08);
}

.related- .related-name {
    font-family: 'Syne', sans-serif;
    font-size: .88rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: .2rem;
}

.related-sub {
    font-size: .73rem;
    color: var(--text-muted);
}