/* ==========================================================================
   Glory CNC Laser - Product Catalog Stylesheet
   Matches Glory Laser (https://www.glorylaser.com/) UI Design
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Category Sub-Navigation Bar (Screenshot 1)
   -------------------------------------------------------------------------- */
.product-subnav {
    position: sticky;
    top: var(--header-height);
    z-index: 900;
    background: #ffffff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 4px 16px rgba(15, 23, 42, .04);
    transition: transform .25s ease, box-shadow .25s ease;
}

.product-subnav__track {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(16px, 3.2vw, 48px);
    padding: 10px 0;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.product-subnav__track::-webkit-scrollbar {
    display: none;
}

.product-subnav__item {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    color: #475569;
    text-decoration: none;
    border-radius: 6px;
    white-space: nowrap;
    position: relative;
    transition: color .2s ease, transform .2s ease;
}

.product-subnav__item::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 12px;
    right: 12px;
    height: 3px;
    background: var(--brand-red);
    border-radius: 2px 2px 0 0;
    opacity: 0;
    transform: scaleX(0.4);
    transition: opacity .2s ease, transform .2s ease;
}

.product-subnav__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: currentColor;
    transition: transform .2s ease, color .2s ease;
}

.product-subnav__icon svg {
    width: 32px;
    height: 32px;
}

.product-subnav__title {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .01em;
}

.product-subnav__item:hover,
.product-subnav__item.is-active {
    color: var(--brand-red);
}

.product-subnav__item:hover .product-subnav__icon,
.product-subnav__item.is-active .product-subnav__icon {
    transform: translateY(-2px);
    color: var(--brand-red);
}

.product-subnav__item.is-active::after,
.product-subnav__item:hover::after {
    opacity: 1;
    transform: scaleX(1);
}

/* --------------------------------------------------------------------------
   2. Product Hero Banner (Screenshot 1)
   -------------------------------------------------------------------------- */
.product-hero {
    position: relative;
    padding: clamp(60px, 8vw, 110px) 0 clamp(40px, 6vw, 80px);
    background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 50%, #ffffff 100%);
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

.product-hero__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.product-hero__grid-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(148, 163, 184, 0.22) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.7;
}

.product-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.35fr);
    align-items: center;
    gap: clamp(32px, 5vw, 64px);
    position: relative;
    z-index: 2;
}

.product-hero__badge {
    display: inline-block;
    padding: 5px 14px;
    background: rgba(230, 32, 40, .1);
    color: var(--brand-red);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    border-radius: 4px;
    margin-bottom: 18px;
}

.product-hero__title {
    margin: 0 0 18px;
    font-size: clamp(34px, 3.8vw, 56px);
    font-weight: 850;
    line-height: 1.08;
    letter-spacing: -.04em;
    color: #0f172a;
}

.product-hero__subtitle {
    margin: 0 0 34px;
    font-size: clamp(15px, 1.3vw, 18px);
    line-height: 1.55;
    color: #475569;
    max-width: 520px;
}

.product-hero__actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 42px;
}

.button--hero {
    min-height: 52px;
    padding: 0 32px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .06em;
    box-shadow: 0 8px 24px rgba(230, 32, 40, .28);
}

.product-hero__pagination {
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-hero__bar {
    display: block;
    width: 28px;
    height: 3px;
    background: #cbd5e1;
    border-radius: 2px;
    transition: width .25s ease, background-color .25s ease;
}

.product-hero__bar.is-active {
    width: 64px;
    background: var(--brand-red);
}

/* Machine Stage in Hero */
.product-hero__stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-hero__machine-composition {
    position: relative;
    width: 100%;
    max-width: 640px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.product-hero__machine--main {
    position: relative;
    z-index: 3;
    width: 100%;
    filter: drop-shadow(0 24px 44px rgba(15, 23, 42, .14));
    transition: transform .35s ease;
}

.product-hero__machine--main:hover {
    transform: translateY(-4px);
}

.product-hero__svg-machine {
    width: 100%;
    height: auto;
}

.product-hero__machine--secondary {
    position: absolute;
    top: -24px;
    right: -18px;
    width: 82%;
    opacity: 0.88;
    z-index: 1;
    filter: drop-shadow(0 12px 24px rgba(15, 23, 42, .08));
}

.product-hero__svg-tube {
    width: 100%;
    height: auto;
}

.product-hero__shadow-floor {
    position: absolute;
    bottom: -15px;
    left: 8%;
    right: 8%;
    height: 24px;
    background: radial-gradient(ellipse at center, rgba(15, 23, 42, .18) 0%, transparent 72%);
    z-index: 0;
}

/* --------------------------------------------------------------------------
   3. Category Showcase Sections (Screenshots 2, 3, 4, 5, 6)
   -------------------------------------------------------------------------- */
.category-showcase {
    padding: clamp(60px, 6vw, 92px) 0;
    border-bottom: 1px solid #f1f5f9;
}

.category-showcase:nth-child(even) {
    background: #fafbfc;
}

.category-showcase__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: clamp(24px, 3.2vw, 42px);
}

.category-showcase__title {
    margin: 0;
    font-size: clamp(24px, 2.4vw, 36px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.03em;
    color: #0f172a;
}

.category-showcase__desc {
    margin: 8px 0 0;
    color: #64748b;
    font-size: 14px;
    max-width: 680px;
}

.button--view-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    color: #334155;
    background: #ffffff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: all .2s ease;
}

.button--view-more:hover {
    color: var(--brand-red);
    border-color: var(--brand-red);
    background: #fff8f8;
    transform: translateY(-2px);
}

.button--view-more i {
    color: var(--brand-red);
    font-size: 13px;
    transition: transform .2s ease;
}

.button--view-more:hover i {
    transform: translateX(3px);
}

/* Category Grid & Cards */
.category-showcase__container {
    position: relative;
}

.category-showcase__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(14px, 2vw, 24px);
}

/* Carousel support for categories with 3+ or horizontal layouts */
.category-showcase__container.has-carousel .category-showcase__grid {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
}

.category-showcase__container.has-carousel .category-showcase__grid::-webkit-scrollbar {
    display: none;
}

.category-showcase__container.has-carousel .catalog-card {
    flex: 0 0 calc((100% - 60px) / 4);
    min-width: 250px;
    scroll-snap-align: start;
}

.category-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #334155;
    display: grid;
    place-items: center;
    box-shadow: 0 6px 18px rgba(15, 23, 42, .1);
    z-index: 10;
    cursor: pointer;
    transition: all .2s ease;
}

.category-carousel-nav:hover {
    background: var(--brand-red);
    border-color: var(--brand-red);
    color: #ffffff;
    transform: translateY(-50%) scale(1.08);
}

.category-carousel-nav--prev {
    left: -22px;
}

.category-carousel-nav--next {
    right: -22px;
}

/* Individual Product Catalog Card (Screenshots 2-6) */
.catalog-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer;
    transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s cubic-bezier(.2,.8,.2,1), border-color .25s ease;
}

.catalog-card:hover {
    transform: translateY(-5px);
    border-color: #cbd5e1;
    box-shadow: 0 16px 36px rgba(15, 23, 42, .09);
    cursor: pointer;
}

.catalog-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    pointer-events: auto;
    position: relative;
    z-index: 1;
}

.catalog-card__hover-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.catalog-card__media {
    position: relative;
    background: #ffffff;
    aspect-ratio: 16 / 11;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0;
    border-bottom: 1px solid #edf0f3;
}

.catalog-card__img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .5s cubic-bezier(.22, .61, .36, 1);
}

.catalog-card:hover .catalog-card__img {
    transform: scale(1.06);
}

.catalog-card__illustration {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.catalog-card__svg {
    width: 85%;
    height: auto;
    transition: transform .35s ease;
}

.catalog-card:hover .catalog-card__svg {
    transform: scale(1.05);
}

.catalog-card__body {
    padding: 16px 18px 18px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    flex: 1;
    background: #ffffff;
}

.catalog-card__meta {
    flex: 1;
    min-width: 0;
}

.catalog-card__name {
    margin: 0 0 6px;
    font-size: 14.5px;
    font-weight: 750;
    line-height: 1.35;
    color: #1e293b;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .2s ease;
}

.catalog-card:hover .catalog-card__name {
    color: var(--brand-red);
}

.catalog-card__series {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .05em;
    color: #94a3b8;
    text-transform: uppercase;
}

.catalog-card__action {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--brand-red);
    font-size: 12px;
    font-weight: 750;
    white-space: nowrap;
    transition: gap .2s ease;
}

.catalog-card__action-arrow {
    font-size: 13px;
    transition: transform .2s ease;
}

.catalog-card:hover .catalog-card__action-arrow {
    transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   4. Category Specific Page Layout (`/products/category/{slug}`)
   -------------------------------------------------------------------------- */
.category-hero {
    padding: 38px 0 28px;
    background: #f8fafc;
    border-bottom: 1px solid var(--line);
}

.breadcrumb-nav {
    margin-bottom: 18px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
    font-size: 13px;
    color: #64748b;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: '/';
    margin-right: 8px;
    color: #cbd5e1;
}

.breadcrumb-item a {
    color: #64748b;
    text-decoration: none;
    transition: color .2s ease;
}

.breadcrumb-item a:hover {
    color: var(--brand-red);
}

.breadcrumb-item.is-active {
    color: #1e293b;
    font-weight: 600;
}

.category-hero__tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    color: var(--brand-red);
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.category-hero__title {
    margin: 0 0 10px;
    font-size: clamp(28px, 3.2vw, 42px);
    font-weight: 850;
    color: #0f172a;
    letter-spacing: -.03em;
}

.category-hero__description {
    margin: 0 0 14px;
    font-size: 15px;
    color: #475569;
    max-width: 820px;
    line-height: 1.6;
}

.category-hero__detail {
    font-size: 14px;
    color: #64748b;
    max-width: 860px;
    line-height: 1.65;
}

.category-products-section {
    padding: 56px 0 84px;
}

@media (min-width: 1025px) {
    .category-products-section .category-showcase__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.products-pagination {
    margin-top: 48px;
    display: flex;
    justify-content: center;
}

.empty-products-state {
    text-align: center;
    padding: 64px 24px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
}

.empty-products-state__icon {
    font-size: 48px;
    color: #94a3b8;
    margin-bottom: 16px;
}

.empty-products-state h3 {
    margin: 0 0 8px;
    font-size: 20px;
    color: #1e293b;
}

.empty-products-state p {
    margin: 0 0 24px;
    color: #64748b;
}

/* --------------------------------------------------------------------------
   5. Single Product Detail Page Layout (`/products/{slug}`)
   -------------------------------------------------------------------------- */
.product-detail-bar {
    padding: 16px 0;
    background: #f8fafc;
    border-bottom: 1px solid var(--line);
}

.product-showcase-section {
    padding: 48px 0 64px;
}

.product-showcase-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: clamp(32px, 5vw, 64px);
    align-items: flex-start;
}

.product-gallery-block {
    position: sticky;
    top: calc(var(--header-height) + 20px);
}

.product-gallery-main {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    aspect-ratio: 16 / 11;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0;
    position: relative;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .06);
}

.product-gallery-main img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .4s cubic-bezier(.22, .61, .36, 1);
}

.product-gallery-main:hover img {
    transform: scale(1.03);
}

.product-gallery-zoom-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .9);
    border: 1px solid rgba(0, 0, 0, .08);
    color: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
    transition: all .2s ease;
    z-index: 2;
}

.product-gallery-zoom-btn:hover {
    background: #ffffff;
    color: #e62028;
    transform: scale(1.1);
}

.product-gallery-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: #94a3b8;
    font-size: 54px;
    padding: 40px;
}

.product-gallery-placeholder span {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
}

.product-gallery-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.gallery-thumb {
    width: 76px;
    height: 60px;
    border-radius: 6px;
    border: 2px solid transparent;
    background: #f1f5f9;
    padding: 0;
    cursor: pointer;
    overflow: hidden;
    transition: border-color .2s ease;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
    height: 60px;
    border-radius: 6px;
    border: 2px solid transparent;
    background: #f1f5f9;
    padding: 4px;
    cursor: pointer;
    overflow: hidden;
    transition: border-color .2s ease;
}

.gallery-thumb.is-active,
.gallery-thumb:hover {
    border-color: var(--brand-red);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-info-block {
    display: flex;
    flex-direction: column;
}

.product-info__badge {
    align-self: flex-start;
    padding: 4px 12px;
    background: #fee2e2;
    color: var(--brand-red);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    border-radius: 4px;
    margin-bottom: 12px;
}

.product-info__title {
    margin: 0 0 10px;
    font-size: clamp(26px, 2.8vw, 38px);
    font-weight: 850;
    line-height: 1.15;
    letter-spacing: -.03em;
    color: #0f172a;
}

.product-info__model {
    margin-bottom: 18px;
    font-size: 13px;
    color: #64748b;
    display: flex;
    gap: 8px;
    align-items: center;
}

.product-info__model strong {
    color: #1e293b;
    font-weight: 750;
}

.product-info__summary {
    margin: 0 0 24px;
    font-size: 15px;
    line-height: 1.65;
    color: #475569;
}

.product-info__quick-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 32px;
    padding: 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.quick-spec-pill {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.quick-spec-pill__label {
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 600;
}

.quick-spec-pill__value {
    font-size: 14px;
    color: #0f172a;
    font-weight: 750;
}

.product-info__ctas {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.button--whatsapp {
    background: #25d366;
    color: #ffffff;
    border-color: #25d366;
}

.button--whatsapp:hover {
    background: #1ebd56;
    color: #ffffff;
}

/* Technical Tabs Bar */
.product-tabs-bar {
    position: sticky;
    top: var(--header-height);
    z-index: 800;
    background: #ffffff;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 2px 8px rgba(15, 23, 42, .03);
}

.product-tabs-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}

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

.product-tab-link {
    padding: 16px 20px;
    font-size: 13.5px;
    font-weight: 700;
    color: #64748b;
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: all .2s ease;
}

.product-tab-link:hover,
.product-tab-link.is-active {
    color: var(--brand-red);
    border-bottom-color: var(--brand-red);
}

/* Features Grid */
.product-features-section {
    background: #f8fafc;
}

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

.feature-card {
    background: #ffffff;
    padding: 28px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .03);
    transition: transform .2s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: #cbd5e1;
}

.feature-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: #fee2e2;
    color: var(--brand-red);
    display: grid;
    place-items: center;
    font-size: 22px;
    margin-bottom: 18px;
}

.feature-card__title {
    margin: 0 0 10px;
    font-size: 17px;
    font-weight: 750;
    color: #0f172a;
}

.feature-card__body {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #475569;
}

/* Specs Table */
.specs-table-wrap {
    max-width: 960px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(15, 23, 42, .03);
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.specs-table thead th {
    background: #0f172a;
    color: #ffffff;
    text-align: left;
    padding: 14px 20px;
    font-weight: 750;
    letter-spacing: .04em;
    font-size: 12.5px;
    text-transform: uppercase;
}

.specs-table tbody tr {
    border-bottom: 1px solid #f1f5f9;
    transition: background-color .15s ease;
}

.specs-table tbody tr:nth-child(even) {
    background: #fafbfc;
}

.specs-table tbody tr:hover {
    background: #f1f5f9;
}

.specs-table td {
    padding: 13px 20px;
}

.specs-table__label {
    font-weight: 600;
    color: #334155;
    width: 45%;
}

.specs-table__value {
    color: #0f172a;
    width: 35%;
}

.specs-table__unit {
    color: #64748b;
    font-size: 13px;
    width: 20%;
}

.solution-track--static {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

/* --------------------------------------------------------------------------
   6. Mobile & Responsive Polishing (360px, 390px, 430px, 768px, 1024px)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .product-hero__inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 36px;
    }

    .product-hero__subtitle {
        margin-inline: auto;
    }

    .product-hero__actions {
        justify-content: center;
    }

    .product-hero__pagination {
        justify-content: center;
    }

    .category-showcase__grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .product-gallery-block {
        position: static;
    }
}

@media (max-width: 768px) {
    .product-subnav__track {
        justify-content: flex-start;
        padding: 8px 16px;
        gap: 12px;
    }

    .product-subnav__item {
        padding: 6px 10px;
    }

    .product-subnav__icon {
        width: 30px;
        height: 30px;
    }

    .product-subnav__icon svg {
        width: 24px;
        height: 24px;
    }

    .product-subnav__title {
        font-size: 11.5px;
    }

    .category-showcase__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    /* 2 cards side-by-side on mobile as requested! */
    .category-showcase__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .catalog-card__body {
        padding: 10px 10px 12px;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .catalog-card__name {
        font-size: 12.5px;
        margin-bottom: 3px;
    }

    .catalog-card__series {
        font-size: 10px;
    }

    .catalog-card__action {
        font-size: 11px;
    }

    .catalog-card__media {
        min-height: 160px;
        padding: 0;
    }

    .product-info__quick-specs {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .button--hero {
        width: 100%;
    }

    .specs-table td,
    .specs-table thead th {
        padding: 10px 12px;
        font-size: 12px;
    }

    .category-carousel-nav {
        display: none;
    }
}

@media (max-width: 480px) {
    .category-showcase__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .catalog-card {
        border-radius: 8px;
    }

    .catalog-card__media {
        min-height: 130px;
        padding: 0;
    }

    .catalog-card__name {
        font-size: 12px;
        line-height: 1.25;
    }
}

/* Product page refinement: align the product hero with the homepage dark visual system. */
.product-hero {
    display: flex;
    align-items: center;
    min-height: clamp(430px, 35vw, 510px);
    padding: clamp(64px, 7vw, 96px) 0 clamp(52px, 6vw, 82px);
    isolation: isolate;
    background: linear-gradient(116deg, #0a1016 0%, #17212b 52%, #0b1117 100%);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.product-hero::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse at 76% 42%, rgba(230, 32, 40, .16), transparent 26%),
        radial-gradient(ellipse at 70% 58%, rgba(67, 112, 151, .18), transparent 38%),
        linear-gradient(90deg, rgba(7, 12, 18, .24), transparent 62%);
    content: "";
    pointer-events: none;
}

.product-hero__bg {
    z-index: 0;
}

.product-hero__gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 78% 48%, rgba(230, 32, 40, .12), transparent 24%);
}

.product-hero__grid-pattern {
    background-image: repeating-linear-gradient(125deg, transparent 0 38px, rgba(255, 255, 255, .045) 39px 40px, transparent 41px 78px);
    background-size: auto;
    opacity: .48;
}

.product-hero__inner {
    width: 100%;
    align-items: center;
    gap: clamp(28px, 4.5vw, 68px);
}

.product-hero__content {
    max-width: 610px;
}

.product-hero__badge {
    padding: 7px 13px;
    color: #ff858a;
    background: rgba(230, 32, 40, .13);
    border: 1px solid rgba(230, 32, 40, .25);
    border-radius: 4px;
    letter-spacing: .14em;
}

.product-hero__title {
    color: #fff;
    font-size: clamp(38px, 4vw, 58px);
    line-height: 1.06;
    letter-spacing: -.05em;
    text-wrap: balance;
    text-shadow: 0 4px 28px rgba(0, 0, 0, .22);
}

.product-hero__subtitle {
    max-width: 540px;
    color: rgba(231, 237, 243, .8);
    font-size: clamp(15px, 1.25vw, 18px);
    line-height: 1.72;
    text-wrap: pretty;
}

.product-hero__actions {
    margin-bottom: 34px;
}

.product-hero .button--hero {
    min-height: 56px;
    padding-inline: 30px;
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(230, 32, 40, .24);
    transition: transform .28s cubic-bezier(.22, .61, .36, 1), box-shadow .28s ease, background .28s ease;
}

.product-hero .button--hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(230, 32, 40, .32);
}

.product-hero__bar {
    background: rgba(230, 237, 244, .3);
}

.product-hero__bar.is-active {
    background: var(--brand-red);
}

.product-hero__stage {
    min-height: 300px;
    isolation: isolate;
}

.product-hero__stage::before {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: -1;
    width: min(76%, 420px);
    aspect-ratio: 1;
    border: 1px solid rgba(230, 32, 40, .28);
    border-radius: 50%;
    box-shadow: 0 0 0 34px rgba(255, 255, 255, .025), 0 0 0 82px rgba(255, 255, 255, .018), 0 0 58px rgba(230, 32, 40, .1);
    content: "";
    transform: translate(-50%, -50%);
    animation: product-hero-orbit 9s ease-in-out infinite;
}

.product-hero__stage::after {
    position: absolute;
    top: 48%;
    left: 4%;
    z-index: -1;
    width: 92%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(230, 32, 40, .7), rgba(255, 255, 255, .24), transparent);
    box-shadow: 0 0 22px rgba(230, 32, 40, .24);
    content: "";
    transform: rotate(-16deg);
}

.product-hero__machine-composition {
    max-width: 660px;
}

.product-hero__machine--main {
    filter: drop-shadow(0 26px 42px rgba(0, 0, 0, .42)) drop-shadow(0 0 22px rgba(255, 255, 255, .055));
    transition: transform .42s cubic-bezier(.22, .61, .36, 1), filter .42s ease;
}

.product-hero__machine--main:hover {
    transform: translateY(-6px);
    filter: drop-shadow(0 32px 48px rgba(0, 0, 0, .48)) drop-shadow(0 0 28px rgba(255, 255, 255, .08));
}

.product-hero__machine--secondary {
    opacity: .42;
    filter: drop-shadow(0 14px 26px rgba(0, 0, 0, .32));
}

.product-hero__shadow-floor {
    bottom: -10px;
    height: 32px;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, .58) 0%, rgba(230, 32, 40, .08) 34%, transparent 74%);
}

@keyframes product-hero-orbit {
    0%, 100% { opacity: .55; scale: .97; }
    50% { opacity: .95; scale: 1.025; }
}

/* Refined product category cards and section rhythm. */
.category-showcase {
    padding-block: clamp(64px, 6.5vw, 96px);
    background: #fff;
}

.category-showcase:nth-child(even) {
    background: #f7f8fa;
}

.category-showcase__header {
    margin-bottom: clamp(26px, 3vw, 40px);
}

.category-showcase__title {
    color: #151b22;
    font-size: clamp(28px, 2.6vw, 38px);
    letter-spacing: -.04em;
}

.category-showcase__desc {
    max-width: 700px;
    color: #68727d;
    font-size: 15px;
    line-height: 1.7;
}

.catalog-card {
    border: 1px solid #e5e9ed;
    border-radius: 12px;
    box-shadow: 0 5px 18px rgba(20, 28, 38, .035);
    transition: transform .34s cubic-bezier(.22, .61, .36, 1), box-shadow .34s ease, border-color .28s ease;
}

.catalog-card:hover {
    transform: translateY(-6px);
    border-color: rgba(230, 32, 40, .2);
    box-shadow: 0 18px 38px rgba(20, 28, 38, .1);
}

.catalog-card__media {
    background: radial-gradient(circle at 50% 42%, rgba(255, 255, 255, .9), transparent 44%), linear-gradient(145deg, #f3f5f7, #e8ecf0);
}

.catalog-card__img,
.catalog-card__svg {
    transition: transform .65s cubic-bezier(.22, .61, .36, 1);
}

.catalog-card:hover .catalog-card__img,
.catalog-card:hover .catalog-card__svg {
    transform: scale(1.065);
}

.catalog-card__body {
    padding: 18px 20px 20px;
}

.catalog-card__name {
    color: #202832;
    font-size: 15px;
    line-height: 1.42;
}

.catalog-card__series {
    color: #778391;
}

@media (max-width: 1024px) {
    .product-hero {
        min-height: 0;
        padding-block: 62px 54px;
    }

    .product-hero__content {
        margin-inline: auto;
    }

    .product-hero__visual {
        width: min(100%, 680px);
        margin-inline: auto;
    }

    .product-hero__stage {
        min-height: 0;
    }
}

@media (max-width: 768px) {
    .product-hero {
        padding-block: 54px 44px;
    }

    .product-hero__inner {
        gap: 26px;
    }

    .product-hero__badge {
        margin-bottom: 15px;
        font-size: 10px;
    }

    .product-hero__title {
        font-size: clamp(32px, 7vw, 46px);
        line-height: 1.1;
    }

    .product-hero__subtitle {
        margin-bottom: 26px;
        font-size: 14px;
        line-height: 1.65;
    }

    .product-hero__actions {
        margin-bottom: 26px;
    }

    .product-hero__machine--secondary {
        top: -12px;
        right: -6px;
        opacity: .3;
    }

    .category-showcase {
        padding-block: 54px;
    }

    .catalog-card__body {
        padding: 13px 13px 15px;
    }
}

@media (max-width: 480px) {
    .product-hero {
        padding-block: 46px 36px;
    }

    .product-hero__title {
        font-size: clamp(30px, 8.4vw, 38px);
    }

    .product-hero__stage::before {
        width: 78%;
    }

    .product-hero__machine--secondary {
        opacity: .22;
    }
}

@media (prefers-reduced-motion: reduce) {
    .product-hero__stage::before,
    .product-hero__machine--main,
    .catalog-card,
    .catalog-card__img,
    .catalog-card__svg {
        animation: none !important;
        transition: none !important;
    }

    .product-hero .button--hero:hover,
    .product-hero__machine--main:hover,
    .catalog-card:hover {
        transform: none;
    }
}

/* Product pages share the homepage header and hero behavior. */
.product-hero__inner {
    width: min(var(--container), calc(100% - 64px));
    margin-inline: auto;
}

@media (max-width: 1180px) {
    .product-hero__inner {
        width: calc(100% - 48px);
    }
}

@media (max-width: 1024px) {
    .product-hero__inner {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: clamp(22px, 3.5vw, 40px);
        text-align: left;
    }

    .product-hero__content {
        max-width: 100%;
        margin: 0;
    }

    .product-hero__title {
        font-size: clamp(34px, 4.2vw, 48px);
    }

    .product-hero__subtitle {
        margin-inline: 0;
    }

    .product-hero__actions,
    .product-hero__pagination {
        justify-content: flex-start;
    }

    .product-hero__visual {
        width: 100%;
        margin: 0;
    }
}

@media (max-width: 980px) {
    .category-showcase__grid:not(.category-showcase__track),
    .category-products-section .category-showcase__grid,
    .related-products-section .category-showcase__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: clamp(10px, 2vw, 16px);
        justify-content: center;
    }

    .category-showcase__grid:not(.category-showcase__track) .catalog-card,
    .category-products-section .catalog-card,
    .related-products-section .catalog-card {
        width: 100%;
        max-width: none;
        min-width: 0;
    }

    .category-showcase__container.has-carousel .category-showcase__grid {
        justify-content: flex-start;
        gap: 16px;
        padding: 4px max(0px, calc((100% - 560px) / 2)) 16px;
        scroll-padding-inline: max(0px, calc((100% - 560px) / 2));
        scroll-snap-type: x mandatory;
    }

    .category-showcase__container.has-carousel .catalog-card {
        flex: 0 0 min(560px, 100%);
        width: min(560px, 100%);
        max-width: 560px;
        min-width: 0;
        scroll-snap-align: center;
    }

    .features-grid {
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
    }

    .feature-card {
        width: 100%;
        max-width: 560px;
    }

    .solution-track--static {
        grid-template-columns: minmax(0, min(560px, 100%));
        justify-content: center;
    }

    .solution-track--static .solution-card {
        width: 100%;
        max-width: 560px;
        margin-inline: auto;
    }

    #products-catalog ~ .technologies-section .technology-grid {
        gap: 16px;
        padding: 4px max(0px, calc((100% - 560px) / 2)) 22px;
        scroll-padding-inline: max(0px, calc((100% - 560px) / 2));
        scroll-snap-type: x mandatory;
    }

    #products-catalog ~ .technologies-section .technology-card {
        flex: 0 0 min(560px, 100%);
        width: min(560px, 100%);
        max-width: 560px;
        min-width: 0;
        scroll-snap-align: center;
    }

    #products-catalog ~ .solutions-section .solution-track,
    .category-products-section ~ .solutions-section .solution-track {
        gap: 16px;
        padding: 8px max(0px, calc((100% - 560px) / 2)) 22px;
        scroll-padding-inline: max(0px, calc((100% - 560px) / 2));
        scroll-snap-type: x mandatory;
    }

    #products-catalog ~ .solutions-section .solution-card,
    .category-products-section ~ .solutions-section .solution-card {
        flex: 0 0 min(560px, 100%);
        width: min(560px, 100%);
        max-width: 560px;
        min-width: 0;
        scroll-snap-align: center;
    }
}

@media (max-width: 768px) {
    .product-hero {
        min-height: 640px;
        padding: 42px 0 26px;
    }

    .product-hero__inner {
        width: calc(100% - 32px);
        min-height: 570px;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto 1fr;
        align-content: stretch;
        align-items: start;
        gap: 12px;
        text-align: left;
    }

    .product-hero__content {
        position: relative;
        z-index: 2;
        width: 100%;
        max-width: 100%;
        margin: 0;
        text-align: left;
    }

    .product-hero__badge {
        margin-bottom: 12px;
        padding: 6px 10px;
        font-size: 9px;
        letter-spacing: .13em;
    }

    .product-hero__title {
        max-width: 100%;
        margin: 10px 0 14px;
        font-size: clamp(36px, 9.2vw, 46px);
        line-height: 1.07;
        letter-spacing: -.045em;
        text-align: left;
        text-wrap: balance;
    }

    .product-hero__subtitle {
        max-width: 100%;
        margin: 0 0 20px;
        font-size: 14px;
        line-height: 1.65;
        text-align: left;
    }

    .product-hero__actions {
        justify-content: flex-start;
        margin: 0;
    }

    .product-hero .button--hero {
        width: auto;
        min-width: 184px;
        min-height: 52px;
        padding-inline: 24px;
    }

    .product-hero__pagination {
        justify-content: flex-start;
        margin-top: 18px;
    }

    .product-hero__visual {
        align-self: end;
        justify-self: center;
        width: 100%;
        max-width: 460px;
        margin: 0 auto;
    }

    .product-hero__stage {
        height: clamp(185px, 52vw, 235px);
        min-height: 0;
    }

    .product-hero__stage::before {
        width: 70%;
    }

    .product-hero__stage::after {
        top: 54%;
        left: 0;
        width: 100%;
    }

    .product-hero__machine-composition {
        width: 100%;
        max-width: 100%;
    }

    .product-hero__machine--secondary {
        top: -4px;
        right: 0;
        opacity: .2;
    }

    .product-hero__shadow-floor {
        bottom: -2px;
    }

    .category-showcase__grid:not(.category-showcase__track),
    .category-products-section .category-showcase__grid,
    .related-products-section .category-showcase__grid {
        gap: 16px;
    }

    .catalog-card__media {
        min-height: clamp(170px, 48vw, 230px);
    }

    .catalog-card__body {
        padding: 16px 17px 18px;
    }

    .catalog-card__name {
        font-size: 14px;
        line-height: 1.4;
    }

    .catalog-card__series {
        font-size: 10px;
    }

    .category-showcase__container.has-carousel .category-showcase__grid {
        gap: 12px;
    }

    .technology-card__media {
        height: clamp(190px, 55vw, 245px);
    }

    .technology-card__body {
        padding: 20px 22px 22px;
    }

    .technology-card h3 {
        min-height: 0;
        font-size: 19px;
    }

    .technology-card p,
    .solution-card p {
        font-size: 13px;
        line-height: 1.6;
    }

    .solution-card__media {
        height: clamp(190px, 55vw, 245px);
    }

    .solution-card__title {
        right: 16px;
        bottom: 18px;
        left: 16px;
        font-size: clamp(17px, 4.8vw, 22px);
    }
}

@media (max-width: 480px) {
    .product-hero {
        min-height: 520px;
        padding-top: 28px;
    }

    .product-hero__inner {
        min-height: 460px;
    }

    .product-hero__title {
        font-size: clamp(24px, 7.5vw, 30px);
    }

    .product-hero__stage {
        height: 160px;
    }

    .catalog-card__media {
        min-height: 130px;
        padding: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .product-hero__stage::before,
    .product-hero__machine--main,
    .product-hero__machine--secondary,
    .product-hero .button--hero,
    .catalog-card,
    .catalog-card__img,
    .catalog-card__svg {
        animation: none !important;
        transition: none !important;
    }

    .product-hero__machine--main:hover,
    .product-hero .button--hero:hover,
    .catalog-card:hover {
        transform: none;
    }
}

/* Mobile header stays black across all pages */
@media (max-width: 991px) {
    .site-header,
    .site-header:not(.is-scrolled),
    .site-header.is-scrolled {
        color: #ffffff !important;
        background: #000000 !important;
        border-bottom-color: rgba(255, 255, 255, .14) !important;
        box-shadow: 0 6px 24px rgba(0, 0, 0, .28) !important;
    }
    .site-header .brand__text {
        color: #ffffff !important;
    }
    .header-icon {
        color: #ffffff !important;
    }
    .mobile-menu-toggle {
        color: #ffffff !important;
    }
    .mobile-menu-toggle span {
        background: #ffffff !important;
    }
}

/* Static feature tracks use measured auto-slide behavior */
.features-grid,
.solution-track--static,
.products-catalog-wrap ~ .technologies-section .technology-grid {
    display: flex;
    align-items: stretch;
    gap: clamp(16px, 1.8vw, 24px);
    overflow-x: auto;
    overflow-y: hidden;
    padding: 6px 2px 22px;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.features-grid::-webkit-scrollbar,
.solution-track--static::-webkit-scrollbar,
.products-catalog-wrap ~ .technologies-section .technology-grid::-webkit-scrollbar {
    display: none;
}

.features-grid .feature-card,
.solution-track--static .solution-card,
.products-catalog-wrap ~ .technologies-section .technology-card {
    flex: 0 0 calc((100% - 48px) / 3);
    width: calc((100% - 48px) / 3);
    min-width: 0;
    scroll-snap-align: start;
}

/* Keep the catalog's manual arrows working while its track also advances smoothly. */
.category-showcase__container.has-carousel .category-showcase__grid {
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
}

@media (max-width: 980px) {
    .features-grid,
    .solution-track--static,
    .products-catalog-wrap ~ .technologies-section .technology-grid {
        gap: 16px;
        padding: 6px max(0px, calc((100% - 560px) / 2)) 22px;
        scroll-padding-inline: max(0px, calc((100% - 560px) / 2));
        scroll-snap-type: x mandatory;
    }

    .features-grid .feature-card,
    .solution-track--static .solution-card,
    .products-catalog-wrap ~ .technologies-section .technology-card {
        flex: 0 0 min(560px, 100%);
        width: min(560px, 100%);
        max-width: 560px;
        min-width: 0;
        margin-inline: auto;
        scroll-snap-align: center;
    }
}

@media (max-width: 768px) {
    .product-hero {
        min-height: 0;
        padding: 26px 0 34px;
    }

    .product-hero__inner {
        display: grid;
        width: calc(100% - 32px);
        min-height: 0;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto auto;
        grid-template-areas:
            "visual"
            "content";
        align-content: start;
        align-items: start;
        gap: 8px;
    }

    .product-hero__visual {
        grid-area: visual;
        align-self: center;
        justify-self: center;
        width: 100%;
        max-width: 560px;
        margin: 0 auto;
    }

    .product-hero__content {
        grid-area: content;
        width: 100%;
        max-width: 100%;
        margin: 0;
        text-align: left;
    }

    .product-hero__stage {
        height: clamp(190px, 54vw, 270px);
        min-height: 0;
        margin-bottom: 4px;
    }

    .product-hero__machine-composition {
        width: 100%;
        max-width: 540px;
    }

    .product-hero__machine--secondary {
        opacity: .28;
    }

    .product-hero__badge {
        margin-bottom: 10px;
    }

    .product-hero__title {
        max-width: 100%;
        margin: 8px 0 12px;
        font-size: clamp(30px, 7.8vw, 42px);
        line-height: 1.08;
        text-align: left;
    }

    .product-hero__subtitle {
        max-width: 620px;
        margin: 0 0 18px;
        font-size: 14px;
        line-height: 1.6;
        text-align: left;
    }

    .product-hero__actions,
    .product-hero__pagination {
        justify-content: flex-start;
    }

    .product-hero__actions {
        margin: 0;
    }

    .product-hero .button--hero {
        width: auto;
        min-width: 176px;
        min-height: 50px;
    }

    .product-hero__pagination {
        margin-top: 16px;
    }
}

@media (max-width: 480px) {
    .product-hero {
        padding-top: 20px;
        padding-bottom: 28px;
    }

    .product-hero__stage {
        height: 190px;
    }

    .product-hero__title {
        font-size: clamp(29px, 8.4vw, 36px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .features-grid,
    .solution-track--static,
    .products-catalog-wrap ~ .technologies-section .technology-grid {
        scroll-behavior: auto;
    }
}



/* Reuse the active homepage hero media across inner-page hero banners. */
.page-hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: #101820;
}

.page-hero-background__media,
.page-hero-background__media img,
.page-hero-background__art,
.page-hero-background__shade {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
}

.page-hero-background__media img {
    object-fit: cover;
    object-position: center 48%;
}

.page-hero-background__shade {
    background:
        linear-gradient(90deg, rgba(7, 12, 18, .88) 0%, rgba(7, 12, 18, .72) 42%, rgba(7, 12, 18, .3) 100%),
        linear-gradient(0deg, rgba(7, 12, 18, .38), transparent 58%);
}

.page-hero-background__art {
    z-index: 0;
}

.product-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: clamp(500px, 43vw, 660px);
    padding-block: clamp(70px, 8vw, 110px);
    overflow: hidden;
    isolation: isolate;
    color: #fff;
    background: #101820;
}

.product-hero .page-hero-background__shade {
    background:
        linear-gradient(90deg, rgba(7, 12, 18, .9) 0%, rgba(7, 12, 18, .74) 43%, rgba(7, 12, 18, .32) 100%),
        linear-gradient(0deg, rgba(7, 12, 18, .42), transparent 58%);
}

.product-hero__inner {
    position: relative;
    z-index: 1;
    display: block;
    width: min(var(--container), calc(100% - 64px));
    margin-inline: auto;
}

.product-hero__content {
    width: min(100%, 620px);
    max-width: 620px;
    margin: 0;
    text-align: left;
}

.product-hero__title {
    max-width: 610px;
    color: #fff;
    font-size: clamp(38px, 4.2vw, 62px);
    line-height: 1.04;
    letter-spacing: -.055em;
    text-wrap: balance;
}

.product-hero__subtitle {
    max-width: 540px;
    color: rgba(241, 245, 249, .86);
    font-size: clamp(15px, 1.25vw, 18px);
    line-height: 1.7;
}

.category-hero {
    position: relative;
    isolation: isolate;
    min-height: 300px;
    padding: 34px 0 42px;
    overflow: hidden;
    color: #fff;
    background: #101820;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.category-hero .container-wide {
    position: relative;
    z-index: 1;
}

.category-hero .page-hero-background__shade {
    background:
        linear-gradient(90deg, rgba(7, 12, 18, .9) 0%, rgba(7, 12, 18, .76) 56%, rgba(7, 12, 18, .4) 100%),
        linear-gradient(0deg, rgba(7, 12, 18, .34), transparent 64%);
}

.category-hero .breadcrumb,
.category-hero .breadcrumb-item,
.category-hero .breadcrumb-item.is-active,
.category-hero .breadcrumb-item a,
.category-hero .category-hero__title,
.category-hero .category-hero__description,
.category-hero .category-hero__detail {
    color: rgba(255, 255, 255, .9);
}

.category-hero .category-hero__title {
    color: #fff;
}

.category-hero .category-hero__tag {
    color: #ff7379;
}

.category-hero__inner {
    display: block;
    position: relative;
    z-index: 2;
}

.category-hero__inner.has-machine-visual {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(32px, 5vw, 64px);
}

.category-hero__text {
    max-width: 780px;
}

.category-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 24px;
}

.button--hero-light {
    border-color: rgba(255, 255, 255, .3);
    color: #fff;
    background: rgba(255, 255, 255, .06);
}

.button--hero-light:hover {
    background: #fff;
    color: #0f172a;
    border-color: #fff;
}

.category-hero__visual {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.category-hero__machine-wrap {
    position: relative;
    width: 100%;
    max-width: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}

.category-hero__machine-img {
    width: 100%;
    max-height: 320px;
    object-fit: contain;
    filter: drop-shadow(0 16px 28px rgba(0, 0, 0, .45));
    transition: transform .4s ease;
    animation: heroMachineFloat 5s ease-in-out infinite alternate;
}

@keyframes heroMachineFloat {
    0% { transform: translateY(0); }
    100% { transform: translateY(-8px); }
}

.category-hero__floor-shadow {
    position: absolute;
    bottom: 5px;
    left: 10%;
    right: 10%;
    height: 22px;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, .55) 0%, transparent 72%);
    pointer-events: none;
}

.category-hero__machine-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    background: rgba(15, 23, 42, .75);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 20px;
    backdrop-filter: blur(8px);
    margin-top: 10px;
    font-size: 12px;
}

.category-hero__machine-badge .badge-series {
    color: var(--brand-red);
    font-weight: 800;
    letter-spacing: .08em;
    font-size: 11px;
}

.category-hero__machine-badge .badge-name {
    color: #e2e8f0;
    font-weight: 600;
}

@media (max-width: 991px) {
    .category-hero__inner.has-machine-visual {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .category-hero__visual {
        order: -1;
        max-width: 440px;
        margin: 0 auto;
    }

    .category-hero__machine-img {
        max-height: 220px;
    }
}

@media (max-width: 768px) {
    .product-hero {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        min-height: 0;
        padding: 0 0 34px;
    }

    .product-hero .page-hero-background {
        position: relative;
        inset: auto;
        order: 0;
        width: 100%;
        height: clamp(190px, 58vw, 270px);
        flex: 0 0 auto;
    }

    .product-hero .page-hero-background__media img {
        object-position: center 42%;
    }

    .product-hero .page-hero-background__shade {
        background: linear-gradient(0deg, rgba(7, 12, 18, .3), transparent 58%);
    }

    .product-hero__inner {
        order: 1;
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 24px 20px 0;
    }

    .product-hero__content {
        width: 100%;
        max-width: 100%;
    }

    .product-hero__title {
        font-size: clamp(30px, 8vw, 40px);
        line-height: 1.1;
    }

    .product-hero__subtitle {
        font-size: 14px;
        line-height: 1.65;
    }

    .category-hero {
        display: flex;
        flex-direction: column;
        min-height: 0;
        padding: 0 0 28px;
    }

    .category-hero .page-hero-background {
        position: relative;
        inset: auto;
        order: 0;
        width: 100%;
        height: clamp(170px, 50vw, 230px);
        flex: 0 0 auto;
        margin-bottom: 18px;
    }

    .category-hero .container-wide {
        order: 1;
        width: 100%;
        padding-inline: 20px;
    }

    .category-hero .breadcrumb-nav {
        margin-bottom: 14px;
    }

    .category-hero .category-hero__title {
        font-size: clamp(29px, 7.8vw, 38px);
        line-height: 1.12;
    }
}

@media (prefers-reduced-motion: reduce) {
    .page-hero-background__media img {
        transition: none !important;
        animation: none !important;
    }
}

/* Keep the complete shared homepage hero artwork visible on small screens. */
@media (max-width: 768px) {
    .product-hero .page-hero-background {
        height: auto;
        min-height: 180px;
        max-height: 240px;
        aspect-ratio: 16 / 9;
        background: #101820;
    }

    .product-hero .page-hero-background__media {
        background: #101820;
    }

    .product-hero .page-hero-background__media img {
        box-sizing: border-box;
        object-fit: contain;
        object-position: center;
        padding: 12px 18px;
        background: #101820;
    }

    .product-hero .page-hero-background__shade {
        background: linear-gradient(0deg, rgba(7, 12, 18, .16), transparent 58%);
    }
}


/* Shared homepage hero slides on product and category banners. */
.page-hero-background__track {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: flex;
    width: 100%;
    height: 100%;
    transform: translate3d(0, 0, 0);
    transition: transform .85s cubic-bezier(.22, .61, .36, 1);
    will-change: transform;
}

.page-hero-background__media {
    position: relative;
    inset: auto;
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.page-hero-background__shade {
    z-index: 1;
}

.product-hero__bar {
    flex: 0 0 auto;
    padding: 0;
    border: 0;
    appearance: none;
    cursor: pointer;
}

.product-hero__bar:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
    .page-hero-background__track {
        transition: none !important;
        transform: none !important;
    }
}

.product-hero__content {
    transition: opacity .28s ease, transform .28s ease;
}

.product-hero__content.is-switching {
    opacity: .12;
    transform: translateY(7px);
}

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

@media (prefers-reduced-motion: reduce) {
    .product-hero__content {
        transition: none !important;
    }
}

/* ==========================================================================
   Project Videos on Product Showcase (Edge-to-Edge Responsive Carousel)
   ========================================================================== */
.project-videos-section {
    padding: 80px 0;
    background: #fbfcfe;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

.project-videos-carousel {
    position: relative;
    margin-top: 40px;
}

.project-videos-track {
    display: flex;
    gap: 28px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 10px 4px 24px;
}

.project-videos-track::-webkit-scrollbar {
    display: none;
}

/* Desktop: EXACTLY 3 CARDS */
.project-video-card {
    flex: 0 0 calc((100% - 56px) / 3);
    width: calc((100% - 56px) / 3);
    max-width: calc((100% - 56px) / 3);
    min-width: 0;
    scroll-snap-align: start;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(15, 23, 42, .04);
    display: flex;
    flex-direction: column;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.project-video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, .09);
    border-color: #cbd5e1;
}

/* Tablet (max-width: 991px): 2 CARDS */
@media (max-width: 991px) {
    .project-video-card {
        flex: 0 0 calc((100% - 20px) / 2);
        width: calc((100% - 20px) / 2);
        max-width: calc((100% - 20px) / 2);
    }
    .project-videos-track {
        gap: 20px;
    }
}

/* Mobile (max-width: 640px): EXACTLY 1 CARD */
@media (max-width: 640px) {
    .project-video-card {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
    }
    .project-videos-track {
        gap: 16px;
    }
    .project-videos-carousel > .carousel-arrow {
        display: none;
    }
}

.project-videos-carousel .carousel-arrow {
    top: 36%;
}

.project-videos-carousel .carousel-arrow--prev {
    left: -22px;
}

.project-videos-carousel .carousel-arrow--next {
    right: -22px;
}

@media (max-width: 1200px) {
    .project-videos-carousel .carousel-arrow--prev {
        left: 6px;
    }
    .project-videos-carousel .carousel-arrow--next {
        right: 6px;
    }
}

.project-video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, .09);
    border-color: #cbd5e1;
}

.project-video-card__media {
    background: #000000;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    display: block;
}

.project-video-card__media iframe,
.project-video-card__media video,
.project-video-card__media img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: 0;
    margin: 0;
    padding: 0;
    display: block;
    object-fit: cover;
}

.project-video-card__media .project-video-card__embed-content,
.project-video-card__media .ratio,
.project-video-card__media > div {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: 0;
}

.project-video-card__media .project-video-card__embed-content iframe,
.project-video-card__media .ratio iframe,
.project-video-card__media > div iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: 0;
}

.project-video-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, .5);
    font-size: 48px;
}

.project-video-card__body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    align-items: flex-start;
}

.project-video-card__badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 6px;
    background: #f0fdf4;
    color: #0d9488;
    border: 1px solid #bbf7d0;
    margin-bottom: 14px;
}

.project-video-card__title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.project-video-card__desc {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 18px 0;
    flex-grow: 1;
}

.project-video-card__action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #0d9488;
    text-decoration: none;
    transition: color .2s ease;
    margin-top: auto;
}

.project-video-card__action:hover {
    color: #0f766e;
    text-decoration: underline;
}
