/* Factory-style product and engineering detail pages. */
:root {
    --factory-ink: #111820;
    --factory-navy: #0a2238;
    --factory-steel: #445666;
    --factory-line: #aab5bd;
    --factory-floor: #edf1f3;
    --factory-orange: #f36c21;
    --factory-orange-dark: #bd420d;
}

.industrial-detail-page {
    color: var(--factory-ink);
    background:
        linear-gradient(rgba(68, 86, 102, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(68, 86, 102, 0.055) 1px, transparent 1px),
        var(--factory-floor);
    background-size: 32px 32px;
}

.industrial-detail-page .product-detail-hero {
    min-height: 31rem;
    isolation: isolate;
    background-position: center;
    border-bottom: 6px solid var(--factory-orange);
}

.industrial-detail-page .product-detail-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(5, 18, 30, 0.97), rgba(10, 34, 56, 0.9) 52%, rgba(10, 34, 56, 0.42)),
        repeating-linear-gradient(135deg, transparent 0 18px, rgba(255, 255, 255, 0.025) 18px 20px);
}

.industrial-detail-page .product-detail-hero > .absolute {
    display: none;
}

.industrial-detail-page .product-detail-hero > .relative {
    z-index: 2;
    padding-top: 7rem;
    padding-bottom: 5rem;
}

.industrial-detail-page .industrial-kicker {
    display: none;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    color: #fed7aa;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.18em;
}

.industrial-detail-page .industrial-kicker::before {
    content: "";
    width: 3rem;
    height: 3px;
    background: var(--factory-orange);
}

.industrial-detail-page .product-detail-hero h1 {
    max-width: 56rem;
    margin-bottom: 1rem;
    color: #fff;
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: -0.035em;
    text-shadow: 0 5px 20px rgba(0, 0, 0, 0.35);
}

.industrial-detail-page .product-detail-hero h1::after {
    content: "";
    display: block;
    width: 5.5rem;
    height: 6px;
    margin-top: 1.35rem;
    background: var(--factory-orange);
}

.industrial-detail-page .product-detail-hero h1 + p {
    color: #fdba74;
    font-weight: 800;
}

.industrial-detail-page .product-detail-hero p:last-of-type {
    max-width: 48rem;
    color: #e1eaf0;
}

.industrial-detail-page .industrial-hero-rail {
    display: flex;
    flex-wrap: wrap;
    max-width: 49rem;
    margin-top: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(3, 15, 25, 0.74);
}

.industrial-detail-page .industrial-hero-rail span {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.8rem 1rem;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.industrial-detail-page .industrial-hero-rail i {
    color: var(--factory-orange);
}

.industrial-detail-page .product-detail-hero + div {
    position: relative;
}

.industrial-detail-page .product-detail-hero + div::before {
    content: none;
    position: absolute;
    top: 0;
    right: 1rem;
    padding: 0.6rem 1rem;
    color: #fff;
    background: var(--factory-orange-dark);
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 0.15em;
}

.industrial-detail-page .product-detail-sidebar {
    overflow: hidden;
    padding: 0;
    border: 1px solid var(--factory-line);
    border-radius: 0;
    background: #f8fafb;
    box-shadow: 8px 8px 0 rgba(10, 34, 56, 0.12);
}

.industrial-detail-page .product-detail-sidebar > a {
    margin: 0;
    padding: 1rem 1.15rem;
    color: #fff;
    background: var(--factory-navy);
    border-bottom: 4px solid var(--factory-orange);
    font-weight: 800;
}

.industrial-detail-page .product-detail-sidebar > a:hover {
    color: #fed7aa;
}

.industrial-detail-page .product-detail-sidebar > h2 {
    margin: 0;
    padding: 1.2rem 1.15rem 0.9rem;
    color: var(--factory-ink);
    border: 0;
    font-size: 1.05rem;
    letter-spacing: 0.05em;
}

.industrial-detail-page .mobile-product-switcher-toggle {
    display: none;
}

.industrial-detail-page .product-detail-sidebar > nav {
    padding: 0 0.8rem 1rem 1.15rem;
    scrollbar-color: var(--factory-steel) #dce3e8;
}

.industrial-detail-page .product-sidebar-group-title {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
    color: var(--factory-steel);
    font-size: 0.69rem;
    letter-spacing: 0.07em;
}

html[data-lang="en"] .industrial-detail-page .product-sidebar-group-title,
html[data-lang="vn"] .industrial-detail-page .product-sidebar-group-title {
    align-items: flex-start;
    line-height: 1.35;
    letter-spacing: 0.03em;
    overflow-wrap: anywhere;
    white-space: normal;
}

.industrial-detail-page .product-sidebar-group-title::before {
    content: "";
    flex: 0 0 0.45rem;
    width: 0.45rem;
    height: 0.45rem;
    background: var(--factory-orange);
    transform: rotate(45deg);
}

html[data-lang="en"] .industrial-detail-page .product-sidebar-group-title::before,
html[data-lang="vn"] .industrial-detail-page .product-sidebar-group-title::before {
    margin-top: 0.22rem;
}

.industrial-detail-page .product-sidebar-link {
    padding: 0.55rem 0.75rem 0.55rem 1rem;
    color: #354654;
    border-left: 2px solid #cbd4db;
    border-radius: 0;
}

html[data-lang="en"] .industrial-detail-page .product-sidebar-link {
    display: block;
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
    line-height: 1.45;
    overflow-wrap: anywhere;
    white-space: normal;
    word-break: normal;
}

.industrial-detail-page .product-sidebar-link:hover {
    color: var(--factory-navy);
    background: #e7edf1;
    border-left-color: var(--factory-orange);
}

.industrial-detail-page .product-sidebar-link.is-active {
    color: #fff;
    background: var(--factory-navy);
    border-left: 5px solid var(--factory-orange);
    box-shadow: inset -12px 0 rgba(243, 108, 33, 0.12);
}

.industrial-detail-page main > section {
    position: relative;
    border-radius: 0 !important;
}

.industrial-detail-page main > section.border,
.industrial-detail-page main > section.bg-gray-100 {
    border-color: #9eaab3 !important;
    box-shadow: 7px 7px 0 rgba(10, 34, 56, 0.09);
}

.industrial-detail-page main > section:first-child {
    border-top: 5px solid var(--factory-orange) !important;
}

.industrial-detail-page main section .bg-blue-950 {
    background:
        repeating-linear-gradient(135deg, transparent 0 16px, rgba(255, 255, 255, 0.025) 16px 18px),
        var(--factory-navy) !important;
}

.industrial-detail-page main section h2.font-black {
    position: relative;
    padding-left: 1rem;
}

.industrial-detail-page main section h2.font-black::before {
    content: "";
    position: absolute;
    top: 0.1em;
    bottom: 0.1em;
    left: 0;
    width: 0.35rem;
    background: var(--factory-orange);
}

.industrial-detail-page main > section > .grid.md\:grid-cols-4 {
    border: 1px solid var(--factory-line);
    background: #fff;
    box-shadow: 6px 6px 0 rgba(10, 34, 56, 0.08);
}

.industrial-detail-page main > section > .grid.md\:grid-cols-4 > div {
    position: relative;
    background: #fff;
}

.industrial-detail-page main > section > .grid.md\:grid-cols-4 > div::after {
    content: "";
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 0.5rem;
    height: 0.5rem;
    background: var(--factory-orange);
}

.industrial-detail-page main section article {
    overflow: hidden;
    border-color: var(--factory-line) !important;
    border-radius: 0 !important;
    box-shadow: 6px 6px 0 rgba(10, 34, 56, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.industrial-detail-page main section article:hover {
    transform: translateY(-3px);
    box-shadow: 8px 8px 0 rgba(10, 34, 56, 0.13);
}

.industrial-detail-page main section article img {
    border-bottom: 3px solid var(--factory-orange);
}

.industrial-detail-page .product-advantage-item {
    min-height: 10rem;
    padding: 1.35rem 1rem;
    border: 1px solid var(--factory-line);
    border-top: 4px solid var(--factory-orange);
    background: #fff;
    box-shadow: 5px 5px 0 rgba(10, 34, 56, 0.08);
}

.industrial-detail-page .product-advantage-icon {
    width: 3.75rem;
    height: 3.75rem;
    border-radius: 0;
    background: var(--factory-navy);
    box-shadow: 5px 5px 0 #cbd4db;
}

.industrial-detail-page main section > .text-center {
    text-align: left;
}

.industrial-detail-page main section > .text-center h2 {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 900;
}

.industrial-detail-page main section > .text-center h2::before {
    content: "";
    width: 0.45rem;
    height: 2.25rem;
    background: var(--factory-orange);
}

.industrial-detail-page .product-section-title-line {
    display: none;
}

.industrial-detail-page .tracking-widest {
    display: none;
}

.industrial-detail-page .product-equipment-card-numbered {
    overflow: hidden;
    padding: 0;
    border: 1px solid var(--factory-line);
    border-radius: 0;
    box-shadow: 7px 7px 0 rgba(10, 34, 56, 0.1);
}

.industrial-detail-page .product-equipment-number {
    z-index: 2;
    top: 0;
    left: 0;
    min-width: 3rem;
    height: 3rem;
    border-radius: 0;
    background: var(--factory-orange);
}

.industrial-detail-page .product-equipment-figure {
    aspect-ratio: 1 / 1;
    width: 100%;
    height: auto;
    margin: 0 0 1.3rem;
    padding: 0;
    border-bottom: 1px solid #c7d0d7;
    border-radius: 0;
    background:
        linear-gradient(rgba(10, 34, 56, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(10, 34, 56, 0.04) 1px, transparent 1px),
        #f2f5f7;
    background-size: 18px 18px;
}

.industrial-detail-page .product-equipment-figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.industrial-detail-page .product-equipment-card-numbered > h3,
.industrial-detail-page .product-equipment-card-numbered > p,
.industrial-detail-page .product-equipment-card-numbered > .product-industry-tags {
    margin-right: 1.25rem;
    margin-left: 1.25rem;
}

.industrial-detail-page .product-equipment-card-numbered > h3 {
    min-height: 3.75rem;
    line-height: 1.55;
}

.industrial-detail-page .product-equipment-card-numbered > p.text-sm {
    min-height: 6.25rem;
}

.industrial-detail-page .product-equipment-card-numbered > .product-industry-tags {
    margin-bottom: 1.3rem;
}

.industrial-detail-page .product-industry-tag {
    color: #7c2d12;
    background: #ffedd5;
    border: 1px solid #fdba74;
    border-radius: 0;
    font-weight: 700;
}

.industrial-detail-page .product-equipment-mobile-carousel {
    position: relative;
}

.industrial-detail-page .industrial-module-mobile-carousel {
    position: relative;
}

.industrial-detail-page .product-equipment-carousel-arrow {
    display: none;
}

.industrial-detail-page .industrial-module-carousel-arrow {
    display: none;
}

@media (max-width: 767px) {
    .industrial-detail-page .industrial-process-steps {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }

    .industrial-detail-page .industrial-process-steps > div {
        min-width: 0;
        padding: 0.55rem 0.32rem !important;
        border-right: 1px solid #d1d5db !important;
        border-bottom: 0 !important;
    }

    .industrial-detail-page .industrial-process-steps > div:last-child {
        border-right: 0 !important;
    }

    .industrial-detail-page .industrial-process-steps i {
        display: block;
        margin-bottom: 0.35rem !important;
        font-size: 0.78rem !important;
    }

    .industrial-detail-page .industrial-process-steps h3 {
        min-height: 1.7rem;
        margin-bottom: 0.15rem;
        font-size: 0.66rem;
        line-height: 1.3;
    }

    .industrial-detail-page .industrial-process-steps p {
        margin-top: 0 !important;
        color: #64748b;
        font-size: 0.5rem !important;
        line-height: 1.35;
        display: -webkit-box;
        overflow: hidden;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .industrial-detail-page main section:has(.product-advantage-item) {
        margin-bottom: 2.25rem;
    }

    .industrial-detail-page main section:has(.product-advantage-item) > .grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 0.45rem !important;
    }

    .industrial-detail-page .product-advantage-item {
        min-height: 6.85rem;
        padding: 0.6rem 0.3rem;
        border-top-width: 3px;
        box-shadow: 3px 3px 0 rgba(10, 34, 56, 0.08);
    }

    .industrial-detail-page .product-advantage-icon {
        width: 2.15rem;
        height: 2.15rem;
        margin-bottom: 0.45rem;
        font-size: 0.95rem;
        box-shadow: 3px 3px 0 #cbd4db;
    }

    .industrial-detail-page .product-advantage-item h3 {
        min-height: 2.05rem;
        margin-bottom: 0.25rem !important;
        font-size: 0.72rem !important;
        line-height: 1.35;
    }

    .industrial-detail-page .product-advantage-item p {
        font-size: 0.62rem !important;
        line-height: 1.35;
    }

    .industrial-detail-page .product-equipment-mobile-carousel {
        margin-right: -1rem;
        margin-left: -1rem;
        padding-right: 2.9rem;
        padding-left: 2.9rem;
    }

    .industrial-detail-page .product-equipment-mobile-carousel .product-equipment-track {
        display: flex !important;
        grid-template-columns: none !important;
        gap: 1rem;
        overflow-x: auto;
        padding: 0 0.2rem 1rem;
        scroll-behavior: smooth;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .industrial-detail-page .product-equipment-mobile-carousel .product-equipment-track::-webkit-scrollbar {
        display: none;
    }

    .industrial-detail-page .product-equipment-mobile-carousel .product-equipment-card-numbered {
        flex: 0 0 min(78vw, 20.5rem);
        scroll-snap-align: center;
    }

    .industrial-detail-page .product-equipment-carousel-arrow {
        position: absolute;
        top: 43%;
        z-index: 3;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 2.4rem;
        height: 2.4rem;
        color: var(--factory-navy);
        background: #fff;
        border: 1px solid #cbd4db;
        border-radius: 9999px;
        box-shadow: 0 8px 18px rgba(10, 34, 56, 0.18);
        transform: translateY(-50%);
    }

    .industrial-detail-page .product-equipment-carousel-arrow-left {
        left: 0.5rem;
    }

    .industrial-detail-page .product-equipment-carousel-arrow-right {
        right: 0.5rem;
    }

    .industrial-detail-page .product-equipment-carousel-arrow:disabled {
        cursor: default;
        opacity: 0.35;
        box-shadow: none;
    }

    .industrial-detail-page .product-equipment-card-numbered > h3 {
        min-height: 3.25rem;
    }

    .industrial-detail-page .product-equipment-card-numbered > p.text-sm {
        min-height: 5.75rem;
    }

    .industrial-detail-page .industrial-module-mobile-carousel {
        margin-right: -1rem;
        margin-left: -1rem;
        padding-right: 2.9rem;
        padding-left: 2.9rem;
    }

    .industrial-detail-page .industrial-module-track {
        display: flex !important;
        grid-template-columns: none !important;
        gap: 1rem !important;
        overflow-x: auto;
        padding: 0 0.2rem 1rem;
        scroll-behavior: smooth;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .industrial-detail-page .industrial-module-track::-webkit-scrollbar {
        display: none;
    }

    .industrial-detail-page .industrial-module-card {
        flex: 0 0 min(78vw, 20.5rem);
        display: flex !important;
        flex-direction: column;
        min-height: 23.5rem;
        padding: 0.75rem !important;
        overflow: hidden;
        scroll-snap-align: center;
    }

    .industrial-detail-page .industrial-module-card > img {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 1 / 1;
        margin: 0 0 0.8rem !important;
        object-fit: cover;
        flex: 0 0 auto;
    }

    .industrial-detail-page .industrial-module-card > div {
        display: flex;
        flex: 1;
        flex-direction: column;
        padding: 0 !important;
    }

    .industrial-detail-page .industrial-module-card > h3,
    .industrial-detail-page .industrial-module-card > p,
    .industrial-detail-page .industrial-module-card > ul {
        margin-right: 0;
        margin-left: 0;
    }

    .industrial-detail-page .industrial-module-card > h3,
    .industrial-detail-page .industrial-module-card > div h3 {
        position: relative;
        min-height: 2.95rem;
        margin-top: 0 !important;
        margin-bottom: 0.85rem !important;
        padding-bottom: 0.65rem;
        font-size: 1rem !important;
        line-height: 1.45;
    }

    .industrial-detail-page .industrial-module-card > p,
    .industrial-detail-page .industrial-module-card > div p {
        min-height: 4.35rem;
        margin-bottom: 0.85rem !important;
        font-size: 0.78rem !important;
        line-height: 1.7;
    }

    .industrial-detail-page .industrial-module-card > h3::after,
    .industrial-detail-page .industrial-module-card > div h3::after {
        content: "";
        position: absolute;
        right: 0;
        bottom: 0;
        left: 0;
        height: 3px;
        background: var(--factory-orange);
    }

    .industrial-detail-page .industrial-module-card > ul,
    .industrial-detail-page .industrial-module-card > div p:has(i) {
        margin-top: auto !important;
        min-height: 2.8rem;
        margin-bottom: 0 !important;
        font-size: 0.75rem !important;
        line-height: 1.7;
    }

    .industrial-detail-page .industrial-module-carousel-arrow {
        position: absolute;
        top: 43%;
        z-index: 3;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 2.4rem;
        height: 2.4rem;
        color: var(--factory-navy);
        background: #fff;
        border: 1px solid #cbd4db;
        border-radius: 9999px;
        box-shadow: 0 8px 18px rgba(10, 34, 56, 0.18);
        transform: translateY(-50%);
    }

    .industrial-detail-page .industrial-module-carousel-arrow-left {
        left: 0.5rem;
    }

    .industrial-detail-page .industrial-module-carousel-arrow-right {
        right: 0.5rem;
    }

    .industrial-detail-page .industrial-module-carousel-arrow:disabled {
        cursor: default;
        opacity: 0.35;
        box-shadow: none;
    }
}

.industrial-detail-page .product-application-item {
    position: relative;
    overflow: hidden;
    min-height: 8rem;
    color: #fff;
    background: var(--factory-navy);
    border: 1px solid #31485c;
    border-radius: 0;
}

.industrial-detail-page .product-application-item::after {
    content: "";
    position: absolute;
    right: -1.1rem;
    bottom: -1.1rem;
    width: 3.5rem;
    height: 3.5rem;
    border: 8px solid rgba(243, 108, 33, 0.28);
    transform: rotate(45deg);
}

.industrial-detail-page .product-application-item i {
    color: #fb923c;
}

.industrial-detail-page .product-application-item span {
    color: #fff;
}

.industrial-detail-page main > section:last-child,
.industrial-detail-page .product-detail-cta {
    border: 1px solid var(--factory-navy) !important;
    border-top: 7px solid var(--factory-orange) !important;
    border-radius: 0;
    background: #fff;
    box-shadow: 9px 9px 0 rgba(10, 34, 56, 0.14);
}

.industrial-detail-page main > section:last-child a,
.industrial-detail-page .product-detail-cta a {
    color: #fff;
    background: var(--factory-orange-dark);
    border: 2px solid var(--factory-navy);
    border-radius: 0;
    box-shadow: 5px 5px 0 #cbd4db;
}

.industrial-detail-page main > section:last-child a:hover,
.industrial-detail-page .product-detail-cta a:hover {
    color: var(--factory-navy);
    background: #fff7ed;
}

@media (max-width: 1023px) {
    .industrial-detail-page .product-detail-hero {
        min-height: 27rem;
    }

    .industrial-detail-page main aside {
        width: 100%;
        margin-bottom: 2rem;
    }

    .industrial-detail-page .product-detail-sidebar {
        box-shadow: 5px 5px 0 rgba(10, 34, 56, 0.1);
    }

    .industrial-detail-page .product-detail-sidebar > h2 {
        display: none;
    }

    .industrial-detail-page .mobile-product-switcher-toggle {
        display: flex;
        width: 100%;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        padding: 1rem 1.15rem;
        color: var(--factory-ink);
        background: #f8fafb;
        border: 0;
        text-align: left;
        cursor: pointer;
    }

    .industrial-detail-page .mobile-product-switcher-copy {
        display: flex;
        min-width: 0;
        flex-direction: column;
        gap: 0.25rem;
    }

    .industrial-detail-page .mobile-product-switcher-label {
        color: var(--factory-steel);
        font-size: 0.72rem;
        font-weight: 800;
        letter-spacing: 0.12em;
    }

    .industrial-detail-page .mobile-product-switcher-copy strong {
        overflow: hidden;
        color: var(--factory-navy);
        font-size: 1rem;
        font-weight: 900;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .industrial-detail-page .mobile-product-switcher-icon {
        display: grid;
        width: 2.25rem;
        height: 2.25rem;
        flex: 0 0 2.25rem;
        place-items: center;
        color: #fff;
        background: var(--factory-orange);
        transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
    }

    .industrial-detail-page .product-detail-sidebar.is-mobile-open .mobile-product-switcher-icon {
        transform: rotate(180deg);
    }

    .industrial-detail-page .product-detail-sidebar > nav {
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
        overflow: hidden;
        border-top: 1px solid #cbd5dc;
        opacity: 0;
        transition:
            max-height 420ms cubic-bezier(0.22, 1, 0.36, 1),
            opacity 220ms ease,
            padding 300ms ease;
    }

    .industrial-detail-page .product-detail-sidebar.is-mobile-open > nav {
        max-height: min(65vh, 34rem);
        padding-top: 1rem;
        padding-bottom: 1rem;
        overflow-y: auto;
        opacity: 1;
    }
}

@media (max-width: 640px) {
    .industrial-detail-page .product-detail-hero > .relative {
        padding-top: 5rem;
        padding-bottom: 3.5rem;
    }

    .industrial-detail-page .industrial-hero-rail span {
        width: 50%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    }

    .industrial-detail-page .product-detail-hero + div::before {
        display: none;
    }
}
