/* ===== Products Hero ===== */
.products-hero {
    position: relative;
    width: 100%;
    height: 70vh;
    margin-top: 80px;
    overflow: hidden;
}

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

.products-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.products-hero-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.products-since {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.4em;
    color: rgba(255,255,255,0.5);
    margin-bottom: 1rem;
}

.products-hero-text h1 {
    font-family: 'Noto Serif TC', serif;
    font-weight: 700;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: #ffffff;
    letter-spacing: 0.05em;
    margin-bottom: 3rem;
}

.products-hero-stats {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.hero-stat-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 300;
    color: #ffffff;
    line-height: 1;
}

.hero-stat-num span {
    font-size: 0.6em;
    color: #cc2229;
}

.hero-stat-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.2);
}

/* ===== Catalogue Section ===== */
.catalogue-section {
    padding: 80px 100px;
    background: #f8f9fb;
}

.catalogue-header {
    text-align: center;
    margin-bottom: 3rem;
}

.catalogue-header h2 {
    font-family: 'Noto Serif TC', serif;
    font-size: clamp(2.2rem, 3.5vw, 2.8rem);  
    color: #1a2f6e;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.catalogue-header p{
    font-size: 1rem;
    margin-bottom: 2rem;   
    color: #888
}

/* Tab Bar */
.tab-bar {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tab-btn {
    font-family: 'Noto Sans TC', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    color: #666;
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 8px 24px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-btn:hover {
    border-color: #1a2f6e;
    color: #1a2f6e;
}

.tab-btn.active {
    background: #1a2f6e;
    color: #fff;
    border-color: #1a2f6e;
}

/* ===== Catalogue Display (carousel version) ===== */
.catalogue-panel {
    display: none;
}

.catalogue-panel.active {
    display: grid;
}

.catalogue-display {
    grid-template-columns: 1fr 1fr;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e8edf5;
    margin: 0 100px;
    background: #fff;
}

/* Carousel */
.catalogue-carousel {
    position: relative;
    aspect-ratio: 4 / 3;
    background: #e8edf5;
    overflow: hidden;
}

.carousel-viewport {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-viewport img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.carousel-viewport img.active {
    opacity: 1;
}

.carousel-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #dce6f5 0%, #edf2fa 100%);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    color: #aab8d0;
    letter-spacing: 0.1em;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.08);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    transition: all 0.2s;
    z-index: 2;
}

.carousel-btn:hover {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }

.carousel-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(26, 47, 110, 0.2);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.25s;
}

.carousel-dot.active {
    background: #1a2f6e;
    transform: scale(1.15);
}

/* Info Panel */
.catalogue-info {
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.catalogue-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    color: #cc2229;
    letter-spacing: 0.15em;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
}

.catalogue-title {
    font-family: 'Noto Serif TC', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a2f6e;
    margin: 0 0 1rem;
    line-height: 1.4;
}

.catalogue-desc {
    font-family: 'Noto Sans TC', sans-serif;
    font-size: 0.88rem;
    color: #666;
    line-height: 1.8;
    font-weight: 300;
    margin: 0 0 1.2rem;
}

.catalogue-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.catalogue-tag {
    font-family: 'Noto Sans TC', sans-serif;
    font-size: 0.72rem;
    color: #1a2f6e;
    background: #e6edf8;
    padding: 4px 12px;
    border-radius: 20px;
}

/* CTA */
.catalogue-cta {
    text-align: center;
    font-family: 'Noto Sans TC', sans-serif;
    font-size: 0.88rem;
    color: #999;
    margin-top: 2rem;
}

.catalogue-cta a {
    color: #cc2229;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.catalogue-cta a:hover {
    border-bottom-color: #cc2229;
}

/* ===== EN overrides ===== */
.lang-en .catalogue-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: 1.8rem;
}

.lang-en .catalogue-desc {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
}

.lang-en .catalogue-tag {
    font-family: 'Montserrat', sans-serif;
}

.lang-en .catalogue-cta {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
}

/* ===== CN overrides ===== */
.lang-cn .catalogue-title {
    font-family: 'Noto Serif SC', serif;
}

.lang-cn .catalogue-desc,
.lang-cn .catalogue-tag,
.lang-cn .catalogue-cta {
    font-family: 'Noto Sans SC', sans-serif;
}


/* ===== Finishing Services ===== */
.finishing-section {
    padding: 80px 100px;
    background: #fff;
}

.finishing-header {
    text-align: center;
    margin-bottom: 3rem;
}

.finishing-header h2 {
    font-family: 'Noto Serif TC', serif;
    font-size: clamp(2.2rem, 3.5vw, 2.8rem);
    font-weight: 700;
    color: #1a2f6e;
    margin-bottom: 0.5rem;
}

.finishing-header p {
    font-size: 1rem;
    margin-bottom: 2rem;
    color: #888;
}

.finishing-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

.finishing-card {
    background: #f8f9fb;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e8edf5;
    border-bottom: 3px solid transparent;
    padding: 0;
    transition: all 0.35s ease;
}

.finishing-card:hover {
    border-bottom-color: #cc2229;
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(26, 47, 110, 0.1);
    background: #fff;
}

.finishing-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.finishing-card:hover .finishing-img-placeholder {
    background: #d0d8e8;
}

.finishing-card h4 {
    font-family: 'Noto Serif TC', serif;
    font-size: 1rem;
    font-weight: 700;
    color: #1a2f6e;
    padding: 0.8rem 1.2rem 0.3rem;
    transition: color 0.3s;
}

.finishing-card:hover h4 {
    color: #cc2229;
}

.finishing-card p {
    font-family: 'Noto Sans TC', sans-serif;
    font-size: 0.78rem;
    color: #666;
    line-height: 1.65;
    font-weight: 300;
    padding: 0 1.2rem 1rem;
}
/* ===== Functional Fabrics ===== */
.functional-section {
    padding: 80px 100px;
    background: #f8f9fb;
}

.functional-header {
    text-align: center;
    margin-bottom: 4rem;
}

.functional-header h2 {
    font-family: 'Noto Serif TC', serif;
    font-size: clamp(2.2rem, 3.5vw, 2.8rem);
    font-weight: 700;
    color: #1a2f6e;
    margin-bottom: 0.8rem;
    letter-spacing: 0.005em;
}

.functional-header p {
    font-family: 'Noto Sans TC', sans-serif;
    font-size: 1.05rem;
    color: #888;
    font-weight: 300;
    letter-spacing: 0.02em;
}

.functional-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

.functional-card {
    position: relative;
    background: #fff;
    border: 1px solid #e8edf5;
    border-radius: 12px;
    padding: 2rem 1.2rem;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.35s ease;
}

.functional-card:hover {
    border-color: #cc2229;
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(26, 47, 110, 0.12);
}

.functional-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: all 0.35s ease;
}

.functional-icon svg {
    width: 36px;
    height: 36px;
    stroke: #1a2f6e;
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: all 0.35s ease;
}

.functional-card:hover .functional-icon svg {
    stroke: #cc2229;
}

.functional-title {
    font-family: 'Noto Serif TC', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a2f6e;
    letter-spacing: 0.01em;
}

/* Hover description overlay */
.functional-desc {
    position: absolute;
    inset: 0;
    background: #1a2f6e;
    color: #fff;
    padding: 1.5rem 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.35s ease;
}

.functional-card:hover .functional-desc {
    opacity: 1;
    transform: translateY(0);
}

.functional-desc-title {
    font-family: 'Noto Serif TC', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.8rem;
    letter-spacing: 0.01em;
}

.functional-desc-line {
    width: 30px;
    height: 2px;
    background: #cc2229;
    margin-bottom: 0.8rem;
}

.functional-desc p {
    font-family: 'Noto Sans TC', sans-serif;
    font-size: 0.82rem;
    font-weight: 300;
    line-height: 1.7;
    color: rgba(255,255,255,0.9);
}

/* ===== EN version — typography overrides ===== */
.lang-en .products-hero-text h1 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.lang-en .products-since,
.lang-en .hero-stat-label {
    font-family: 'Montserrat', sans-serif;
}

/* All section h2 titles */
.lang-en .catalogue-header h2,
.lang-en .finishing-header h2,
.lang-en .functional-header h2 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    letter-spacing: 0.005em;
}

/* Subtitles */
.lang-en .catalogue-header p,
.lang-en .finishing-header p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
}

/* Tab buttons */
.lang-en .tab-btn,
.lang-en .catalogue-collapse-btn {
    font-family: 'Montserrat', sans-serif;
}

/* Catalogue card content */
.lang-en .catalogue-card-composition,
.lang-en .tag {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
}

/* Finishing card titles */
.lang-en .finishing-card h4 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: 1.2rem;
    letter-spacing: 0.01em;
}

/* Finishing card body */
.lang-en .finishing-card p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    line-height: 1.75;
}

/* ===== Simplified Chinese font overrides ===== */
:lang(zh-Hans) body,
:lang(zh-Hans) p,
:lang(zh-Hans) a,
:lang(zh-Hans) span,
:lang(zh-Hans) div,
:lang(zh-Hans) label,
:lang(zh-Hans) input,
:lang(zh-Hans) textarea,
:lang(zh-Hans) button {
    font-family: 'Noto Sans SC', sans-serif;
}

:lang(zh-Hans) h1,
:lang(zh-Hans) h2,
:lang(zh-Hans) h3,
:lang(zh-Hans) h4,
:lang(zh-Hans) .sus-nav-title,
:lang(zh-Hans) .functional-title,
:lang(zh-Hans) .functional-desc-title,
:lang(zh-Hans) .finishing-card h4 {
    font-family: 'Noto Serif SC', serif;
}

/* Protect English-font elements from SC override */
:lang(zh-Hans) .hero-stat-num,
:lang(zh-Hans) .cap-static,
:lang(zh-Hans) .cap-number,
:lang(zh-Hans) .cap-unit,
:lang(zh-Hans) .sus-env-num,
:lang(zh-Hans) .why-us-num {
    font-family: 'Cormorant Garamond', serif;
}

:lang(zh-Hans) .products-since,
:lang(zh-Hans) .hero-stat-label,
:lang(zh-Hans) .sus-label-red,
:lang(zh-Hans) .sus-label-white-sm,
:lang(zh-Hans) .sus-intro-label,
:lang(zh-Hans) .sus-hero-label,
:lang(zh-Hans) .sus-supply-tag,
:lang(zh-Hans) .cap-label,
:lang(zh-Hans) .spec-label,
:lang(zh-Hans) .spec-value,
:lang(zh-Hans) .catalogue-card-id,
:lang(zh-Hans) .why-us-label,
:lang(zh-Hans) .tab-btn,
:lang(zh-Hans) .catalogue-collapse-btn {
    font-family: 'Montserrat', sans-serif;
}

/* ===== Simplified Chinese font overrides ===== */
.lang-cn {
    font-family: 'Noto Sans SC', sans-serif;
}

.lang-cn h1,
.lang-cn h2,
.lang-cn h3,
.lang-cn h4,
.lang-cn .functional-title,
.lang-cn .functional-desc-title,
.lang-cn .finishing-card h4 {
    font-family: 'Noto Serif SC', serif;
}

.lang-cn .hero-stat-num,
.lang-cn .cap-static,
.lang-cn .cap-number,
.lang-cn .cap-unit,
.lang-cn .sus-env-num,
.lang-cn .why-us-num {
    font-family: 'Cormorant Garamond', serif !important;
}

.lang-cn .products-since,
.lang-cn .hero-stat-label,
.lang-cn .spec-label,
.lang-cn .spec-value,
.lang-cn .catalogue-card-id,
.lang-cn .tab-btn,
.lang-cn .catalogue-collapse-btn {
    font-family: 'Montserrat', sans-serif !important;
}

/* ===== RESPONSIVE — Mobile & Tablet ===== */
@media (max-width: 768px) {

    /* Hero */
    .products-hero {
        height: 60vh;
        margin-top: 60px;
    }

    .products-hero-text h1 {
        font-size: clamp(2rem, 8vw, 3rem);
        margin-bottom: 2rem;
    }

    .products-since {
        font-size: 0.65rem;
        letter-spacing: 0.3em;
    }

    .products-hero-stats {
        gap: 1.5rem;
    }

    .hero-stat-num {
        font-size: clamp(1.5rem, 6vw, 2.2rem);
    }

    .hero-stat-label {
        font-size: 0.6rem;
        letter-spacing: 0.1em;
    }

    .hero-stat-divider {
        height: 30px;
    }

    /* Catalogue */
    .catalogue-section {
        padding: 40px 20px;
    }

    .catalogue-header h2 {
        font-size: 1.6rem;
    }
    .catalogue-display {
        margin: 0;
    }

    .catalogue-panel.active {
        grid-template-columns: 1fr;
    }

    .catalogue-carousel {
        aspect-ratio: 16 / 10;
    }

    .catalogue-info {
        padding: 1.8rem 1.5rem;
    }

    .catalogue-title {
        font-size: 1.3rem;
    }

    .catalogue-desc {
        font-size: 0.82rem;
    }

    .catalogue-tag {
        font-size: 0.65rem;
    }

    .carousel-btn {
        width: 30px;
        height: 30px;
    }

    .carousel-prev { left: 8px; }
    .carousel-next { right: 8px; }

    .catalogue-cta {
        font-size: 0.8rem;
        padding: 0 20px;
    }

    .lang-en .catalogue-title {
        font-size: 1.5rem;
    }
    /* Tab bar — horizontal scroll */
    .tab-bar {
        justify-content: center;
        flex-wrap: wrap;
        overflow-x: visible;
        gap: 0.4rem;
        padding-bottom: 0;
    }

    .tab-btn {
        flex-shrink: 0;
        font-size: 0.78rem;
        padding: 6px 16px;
    }

    /* Finishing */
    .finishing-section {
        padding: 40px 20px;
    }

    .finishing-header h2 {
        font-size: 1.6rem;
    }

    .finishing-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .finishing-card h4 {
        font-size: 0.9rem;
        padding: 1rem 1rem 0.3rem;
    }

    .finishing-card p {
        font-size: 0.75rem;
        padding: 0 1rem 1rem;
    }

    /* Functional Fabrics */
    .functional-section {
        padding: 40px 20px;
    }

    .functional-header h2 {
        font-size: 1.6rem;
    }

    .functional-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.8rem;
    }

    .functional-card {
        padding: 1.5rem 1rem;
        min-height: 150px;
    }

    .functional-icon svg {
        width: 28px;
        height: 28px;
    }

    .functional-title {
        font-size: 0.95rem;
    }

    .functional-desc {
        padding: 1.2rem 1rem;
    }

    .functional-desc-title {
        font-size: 0.95rem;
    }

    .functional-desc p {
        font-size: 0.72rem;
        line-height: 1.6;
    }

    /* EN — bigger h2 on mobile */
    .lang-en .catalogue-header h2,
    .lang-en .finishing-header h2,
    .lang-en .functional-header h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {

    .products-hero {
        height: 50vh;
    }

    .products-hero-stats {
        gap: 1rem;
    }

    .product-catalogue-grid,
    .product-catalogue-grid.collapsed {
        grid-template-columns: 1fr;
    }

    .finishing-grid {
        grid-template-columns: 1fr;
    }

    .functional-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.6rem;
    }

    .functional-card {
        min-height: 130px;
        padding: 1.2rem 0.8rem;
    }
    .catalogue-info {
        padding: 1.5rem 1.2rem;
    }

    .catalogue-title {
        font-size: 1.15rem;
    }

    .catalogue-desc {
        font-size: 0.78rem;
        line-height: 1.7;
    }

    .catalogue-tag {
        font-size: 0.6rem;
    }

    .lang-en .catalogue-title {
        font-size: 1.3rem;
    }
    /* EN — scale down on small phones */
    .lang-en .catalogue-header h2,
    .lang-en .finishing-header h2,
    .lang-en .functional-header h2 {
        font-size: 1.8rem;
    }
}