.ttx-cat {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    /* font-family: Poppins, sans-serif; */
    color: #1A1F2E;
    background: #FFFFFF;
    line-height: 1.6;
}

.ttx-cat * {
    box-sizing: border-box;
}

.ttx-cat img {
    max-width: 100%;
    display: block;
}

.ttx-cat a {
    text-decoration: none;
}

/* ================= BANNER ================= */
.ttx-cat-banner {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #FFFFFF 0%, #F4F6FB 100%);
    padding: 60px 0 64px;
    border-bottom: 1px solid #E8EBF1;
}

.ttx-cat-banner::before {
    content: "";
    position: absolute;
    top: -140px;
    right: -100px;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 162, 39, 0.16) 0%, rgba(201, 162, 39, 0) 70%);
    pointer-events: none;
}

.ttx-cat-banner::after {
    content: "";
    position: absolute;
    bottom: -170px;
    left: -120px;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(192, 39, 45, 0.10) 0%, rgba(192, 39, 45, 0) 70%);
    pointer-events: none;
}

.ttx-cat-banner-inner,
.ttx-cat-products-inner,
.ttx-cat-media-inner {
    width: min(85%, calc(100% - 40px));
    margin: 0 auto;
}

.ttx-cat-banner-inner {
    position: relative;
    z-index: 1;
}

.ttx-cat-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(192, 39, 45, 0.08);
    color: #C0272D;
    font-size: 0.5rem;
    font-weight: 600;
    letter-spacing: 0.12rem;
    text-transform: uppercase;
    padding: 9px 22px;
    border-radius: 100px;
    margin-bottom: 24px;
    border: 1px solid rgba(192, 39, 45, 0.25);
}

.ttx-cat-eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #C0272D;
    display: inline-block;
}

.ttx-cat-h1 {
    /* font-family: 'DM Serif Display', serif; */
    font-weight: 700;
    font-size: 2rem;
    line-height: 1.2;
    color: #1A2B4A;
    letter-spacing: -0.01em;
    margin-bottom: 14px;
}

.ttx-cat-h1-line {
    width: 72px;
    height: 4px;
    border-radius: 4px;
    background: #a93226;
    margin-bottom: 24px;
}

.ttx-cat-desc {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #374151;
    max-width: 100%;
    margin-bottom: 32px;
}

.ttx-cat-desc p {
    margin-bottom: 12px;
}

/* ---- PDF name buttons ---- */
.ttx-cat-pdf-title {
    font-weight: 700;
    font-size: 1.4rem;
    color: #1A2B4A;
    margin-bottom: 18px;
}

.ttx-cat-pdf-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.ttx-cat-pdf-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 100px;
    background: #FFFFFF;
    color: #1A2B4A;
    border: 1.5px solid #E3E6EB;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.ttx-cat-pdf-btn:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, #1A2B4A, #223862);
    color: #FFFFFF;
    border-color: #1A2B4A;
    box-shadow: 0 14px 28px -8px rgba(26, 43, 74, 0.45);
}

/* ================= PRODUCTS SECTION (kept for future use) ================= */
.ttx-cat-products {
    padding: 76px 0 90px;
    background: #F1F3F6;
}

.ttx-cat-products-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 48px;
}

.ttx-cat-products-eyebrow {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.12rem;
    text-transform: uppercase;
    color: #C0272D;
    margin-bottom: 12px;
}

.ttx-cat-products-title {
    font-weight: 500;
    font-size: 2rem;
    color: #1A2B4A;
    line-height: 1.25;
    margin-bottom: 14px;
}

.ttx-cat-products-subtitle {
    font-size: 1.1rem;
    color: #4B5563;
}

.ttx-cat-products-grid {
    --ttx-gap: 30px;
    --ttx-cols: 3;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--ttx-gap);
}

.ttx-cat-product-card {
    position: relative;
    flex: 0 0 calc((100% - (var(--ttx-cols) - 1) * var(--ttx-gap)) / var(--ttx-cols));
    max-width: calc((100% - (var(--ttx-cols) - 1) * var(--ttx-gap)) / var(--ttx-cols));
    background: #FFFFFF;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #E3E6EB;
    box-shadow: 0 2px 8px rgba(16, 24, 40, 0.05);
    transition: box-shadow .35s ease, transform .35s ease, border-color .35s ease;
    isolation: isolate;
    cursor: pointer;
}

.ttx-cat-product-card::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1.5px;
    border-radius: 20px;
    background: linear-gradient(135deg, #C9A227, #C0272D);
    -webkit-mask: linear-gradient(#fff, #fff) content-box, linear-gradient(#fff, #fff);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff, #fff) content-box, linear-gradient(#fff, #fff);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity .35s ease;
    z-index: 3;
    pointer-events: none;
}

.ttx-cat-product-card:hover {
    box-shadow: 0 24px 48px -16px rgba(26, 43, 74, 0.22);
    transform: translateY(-8px);
    border-color: transparent;
}

.ttx-cat-product-card:hover::before {
    opacity: 1;
}

.ttx-cat-product-img-wrap {
    position: relative;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 30% 20%, #F5F6F9 0%, #E9EBF1 100%);
    overflow: hidden;
}

.ttx-cat-product-img-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 60%, rgba(0, 0, 0, 0.04) 100%);
    pointer-events: none;
}

.ttx-cat-product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .55s cubic-bezier(0.22, 1, 0.36, 1);
}

.ttx-cat-product-card:hover .ttx-cat-product-img {
    transform: scale(1.1);
}

.ttx-cat-product-body {
    padding: 22px 22px 24px;
}

.ttx-cat-product-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1A2B4A;
    margin-bottom: 18px;
    line-height: 1.35;
    letter-spacing: -0.01em;
    text-align: center;
}

.ttx-cat-product-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06rem;
    text-transform: uppercase;
    color: #1A2B4A;
    background: #F4F5F8;
    border: 1.5px solid transparent;
    padding: 12px 8px 12px 18px;
    border-radius: 100px;
    transition: background .3s ease, color .3s ease, box-shadow .3s ease;
}

/* whole card clickable */
.ttx-cat-product-link::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
}

.ttx-cat-product-link:focus {
    outline: none;
}

.ttx-cat-product-card:has(.ttx-cat-product-link:focus-visible) {
    outline: 2px solid #C0272D;
    outline-offset: 3px;
}

.ttx-cat-product-card:hover .ttx-cat-product-link {
    background: #a93226;
    color: #FFFFFF;
    box-shadow: 0 10px 22px -6px rgba(26, 43, 74, 0.45);
    font-size: 0.7rem;
}

.ttx-cat-products-empty {
    font-size: 1.1rem;
    color: #6B7280;
    text-align: center;
    padding: 50px 24px;
    background: #FFFFFF;
    border: 1px dashed #D5D8DE;
    border-radius: 20px;
}

/* ================= MEDIA SECTION (images + videos) ================= */
.ttx-cat-media {
    padding: 76px 0 90px;
    background: #F1F3F6;
}

.ttx-cat-media-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 48px;
}

.ttx-cat-media-title {
    font-weight: 500;
    font-size: 3rem;
    color: #1A2B4A;
    line-height: 1.25;
    margin-bottom: 14px;
}

.ttx-cat-media-subtitle {
    font-size: 1.2rem;
    color: #4B5563;
}

.ttx-cat-section-title {
    font-weight: 700;
    font-size: 1.8rem;
    color: #1A2B4A;
    margin-bottom: 24px;
}

.ttx-cat-image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.ttx-cat-image-card {
    position: relative;
    background: #FFFFFF;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #E3E6EB;
    box-shadow: 0 2px 8px rgba(16, 24, 40, 0.05);
    transition: box-shadow 0.35s ease, transform 0.35s ease;
    aspect-ratio: 4 / 3;
    cursor: zoom-in;
}

.ttx-cat-image-card:hover {
    box-shadow: 0 24px 48px -16px rgba(26, 43, 74, 0.22);
    transform: translateY(-8px);
}

.ttx-cat-image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.ttx-cat-image-card:hover img {
    transform: scale(1.1);
}

.ttx-cat-video-section {
    margin-top: 60px;
}

.ttx-cat-video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.ttx-cat-video-card {
    position: relative;
    background: #0A101E;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #E3E6EB;
    box-shadow: 0 2px 8px rgba(16, 24, 40, 0.05);
    aspect-ratio: 16 / 9;
}

.ttx-cat-video-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #0A101E;
}

/* ---- Lightbox ---- */
.ttx-cat-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(10, 16, 30, 0.88);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 40px;
}

.ttx-cat-lightbox.active {
    display: flex;
}

.ttx-cat-lightbox img {
    max-width: 90vw;
    max-height: 88vh;
    border-radius: 8px;
    object-fit: contain;
}

.ttx-cat-lightbox-close {
    position: absolute;
    top: 26px;
    right: 34px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.12);
    color: #FFFFFF;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    cursor: pointer;
}

.ttx-cat-lightbox-close:hover {
    background: #C0272D;
}


/* badge to tell a sub-category card apart from a product card */
.ttx-cat-card-badge {
    pointer-events: none;
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(26, 43, 74, 0.92);
    backdrop-filter: blur(6px);
    color: #FFFFFF;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.07rem;
    text-transform: uppercase;
    padding: 6px 12px 6px 10px;
    border-radius: 100px;
    box-shadow: 0 6px 14px rgba(26, 43, 74, 0.3);
}

.ttx-cat-card-badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #FFFFFF;
}

.ttx-cat-card-badge.is-category {
    background: rgba(201, 162, 39, 0.95);
    color: #1A2B4A;
}

.ttx-cat-card-badge.is-category::before {
    background: #1A2B4A;
}

@media (min-width: 1790px) {
    .ttx-cat-h1 {
        font-size: 3rem;
    }

    .ttx-cat-products-title,
    .ttx-cat-media-title {
        font-size: 3.3rem;
    }

    .ttx-cat-products-grid {
        --ttx-gap: 34px;
    }

    .ttx-cat-image-grid,
    .ttx-cat-video-grid {
        gap: 34px;
    }

    .ttx-cat-pdf-btn {
        font-size: 0.85rem;
    }
}

@media (max-width: 991px) {

    .ttx-cat-banner-inner,
    .ttx-cat-products-inner,
    .ttx-cat-media-inner {
        width: min(85%, calc(100% - 32px));
    }
}

@media (max-width: 767px) {

    .ttx-cat-banner-inner,
    .ttx-cat-products-inner,
    .ttx-cat-media-inner {
        width: calc(100% - 60px);
    }
}

@media (max-width: 480px) {

    .ttx-cat-banner-inner,
    .ttx-cat-products-inner,
    .ttx-cat-media-inner {
        width: calc(100% - 28px);
    }
}

@media (max-width: 768px) {
    .ttx-cat-banner {
        padding: 50px 0 44px;
    }

    .ttx-cat-h1 {
        font-size: 1.9rem;
    }

    .ttx-cat-desc {
        font-size: 1rem;
    }

    .ttx-cat-products,
    .ttx-cat-media {
        padding: 52px 0 60px;
    }

    .ttx-cat-products-title,
    .ttx-cat-media-title {
        font-size: 2.3rem;
    }

    .ttx-cat-products-grid {
        --ttx-cols: 2;
        --ttx-gap: 18px;
    }

    .ttx-cat-image-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    .ttx-cat-video-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

@media (max-width: 480px) {
    .ttx-cat-banner {
        padding: 50px 0 34px;
    }

    .ttx-cat-eyebrow {
        font-size: 0.6rem;
        padding: 8px 16px;
        margin-bottom: 18px;
    }

    .ttx-cat-h1 {
        font-size: 1.5rem;
    }

    .ttx-cat-desc {
        font-size: 1rem;
    }

    .ttx-cat-pdf-btn {
        font-size: 0.65rem;
        padding: 12px 20px;
    }

    .ttx-cat-products,
    .ttx-cat-media {
        padding: 40px 0 48px;
    }

    .ttx-cat-products-title,
    .ttx-cat-media-title {
        font-size: 1.8rem;
    }

    .ttx-cat-products-header,
    .ttx-cat-media-header {
        margin-bottom: 30px;
    }

    .ttx-cat-products-grid {
        --ttx-cols: 1;
        --ttx-gap: 16px;
    }

    .ttx-cat-image-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .ttx-cat-product-body {
        padding: 16px 16px 18px;
    }

    .ttx-cat-product-name {
        font-size: 1.1rem;
        margin-bottom: 14px;
    }

    .ttx-cat-product-link {
        font-size: 0.7rem;
        padding: 8px 14px;
    }
}