/* --- PRODUCT PAGE STYLES --- */

/* Hero Section */
.product-image-hero {
    max-width: 600px;
    margin: 0 auto 0 auto;
}



.product-image-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

#hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow-x: clip;
    flex-flow: column;
    border-bottom: none;
}

.hero-inner {
    max-width: 800px;
}

.hero-super {
    font-family: var(--font-display);
    font-size: var(--fs-body-sm);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-primary);
    margin-bottom: 0;
    display: block;
}

.hero-title {
    font-size: var(--fs-display-lg);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: var(--hero-tittle-bg-color-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    margin: 0 auto 2rem auto;
}

/* Overview Section */
.feature-box {
    background: var(--feature-box-background);
    padding: 15px;
    border-radius: 0;
    margin: 1rem 0;
    max-width: 800px;
}

.perf-chart-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    font-family: var(--font-display);
}

.perf-chart-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-width: 700px;
}

/* Advantages Section */
.grid-2x3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

@media (max-width: 600px) {
    .grid-2x3 {
        grid-template-columns: 1fr;
    }
}

.advantage-card {
    background: var(--bg-surface);
    padding: 1.5rem;
    border: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all 0.2s ease;
}

.advantage-card:hover {
    background: var(--bg-surface-accent);
    border-color: var(--text-tertiary);
}

.advantage-card h4 {
    font-size: var(--fs-body-lg);
    /* 1.125rem */
    color: var(--text-primary);
    margin: 0;
}

.advantage-card p {
    font-size: var(--fs-body-sm);
    color: var(--text-secondary);
    margin: 0;
}

.advantage-image-list-container {
    display: flex;
    flex-direction: row;
    gap: 3rem;
    margin: 3rem 0 3rem;
}

.advantages-image-container {
    overflow: hidden;
    display: inline-flex;
    position: relative;
}

.advantages-image {
    width: 100%;
    height: auto;
    display: inline-block;
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    float: left;
    border-radius: 20%;
    shape-margin: 1rem;
    margin-right: 3rem;
    max-width: 360px;
}

.advantages-image-container:hover .advantages-image {
    transform: scale(1.03);
}

.product-not-found {
    padding: 6rem;
    text-align: center;
    color: var(--text-primary);
}

.product-not-found a {
    color: var(--accent-primary);
}

.no-image-placeholder {
    color: var(--text-tertiary);
}

@media (max-width: 768px) {
    .advantage-image-list-container {
        flex-direction: column;
        gap: 2rem;
    }

    .advantages-image {
        float: none;
        width: 100%;
        margin-right: 0;
        margin-bottom: 1.5rem;
        max-width: 100%;
    }

    .advantages-image-container {
        display: block;
        width: 100%;
    }
}

/* Utility Classes Specific to Content */

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.split-layout.inverse {
    grid-template-columns: 1.5fr 1fr;
}

.split-layout-gap-4 {
    align-items: flex-start;
    gap: 4rem;
}

.applications-col {
    flex: 1;
    padding: 0 2rem 2rem;
}

.applications-p-mb {
    margin-bottom: 1rem;
}

.key-advantages-col {
    flex: 2;
}

.subsection-title {
    font-size: var(--fs-display-sm);
    /* 1.5rem */
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.highlight {
    color: var(--accent-primary);
    font-weight: bold;
}

/* Sticky Subnav specific to Product Page */
.sticky-subnav {
    position: sticky;
    top: 0;
    height: var(--header-height);
    width: 100%;
    background: transparent;
    backdrop-filter: blur(0);
    border-bottom: 1px solid var(--border-subtle-transparent);
    z-index: 10;
    display: flex;
    justify-content: center;
    padding: 1rem 0;
    animation: stick-animation linear both;
    animation-timeline: view();
    animation-range: entry 60vh cover 80vh;
}

@keyframes stick-animation {
    to {
        background: var(--sticky-subnav-background);
        backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--border-subtle);
    }
}

.subnav-inner {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.nav-link {
    color: var(--text-tertiary);
    font-size: var(--fs-nav);
    /* 0.775rem -> 0.975rem, might be too big? 0.775 is remarkably small. Let's use body-sm (0.875) or make fs-nav smaller. fs-nav is 0.975. This is 0.775. Let's start with body-sm. */
    font-size: var(--fs-body-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link.active {
    color: var(--accent-primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-primary);
    box-shadow: 0 0 10px var(--accent-glow);
}



/* Lists and Tables */
.list-check {
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.list-check li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: var(--fs-body-md);
    color: var(--text-primary);
}

.list-check li svg {
    color: var(--accent-primary);
    min-width: 20px;
}

.clean-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    /* Can stick to body-sm usually */
    font-size: var(--fs-body-sm);
    font-size: 0.9rem;
}

.clean-table th {
    text-align: left;
    padding: 1rem;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-weight: 600;
}

.clean-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--bg-surface-accent);
    color: var(--text-primary);
}

.clean-table tr:hover td {
    background: var(--bg-surface);
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.resource-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.resource-item:hover {
    transform: translateY(-10px);
    border-color: var(--accent-primary);
    box-shadow: var(--default-card-box-shadow);

    color: var(--text-primary);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--bg-surface);
    padding: 2.5rem;
    border: 1px solid var(--border-subtle);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--text-tertiary);
}

.card-icon {
    width: 40px;
    height: 40px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

/* Clean Table Full Width Override */
.clean-table-full {
    width: 100%;
    margin-top: 2rem;
    overflow-x: auto;
}

.clean-table-full table {
    width: 100%;
}

.table-container {
    overflow-x: auto;
}

@media (max-width: 768px) {
    #hero {
        padding: calc(var(--header-height) * 2) 2rem 0;
        margin: 0 0 2rem 0;
    }

    .subnav-inner {
        gap: 1.5rem;
        font-size: 0.75rem;
    }

    .sticky-subnav {
        overflow-x: auto;
        justify-content: center;
        padding-left: 1.5rem;
    }

    .split-layout,
    .split-layout.inverse {
        grid-template-columns: 1fr;
    }

    .applications-col {
        padding: 0 0 0;
    }

    .feature-box {
        width: 100%;

    }

    .advantage-image-list-container img {
        width: 70%;
    }

    .nav-link {
        font-size: 0.6rem;
    }

    .hero-title {
        font-size: 3rem;
    }
}