.ttch-clothing-tool {
    max-width: 920px;
    margin: 0 auto;
}

.ttch-site-section {
    max-width: 1180px;
    margin: 0 auto;
    padding: 56px 20px;
}

.ttch-site-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: 32px;
    align-items: center;
    min-height: 560px;
}

.ttch-site-hero h1 {
    margin: 0 0 16px;
    font-size: clamp(42px, 7vw, 82px);
    line-height: 0.95;
    letter-spacing: 0;
}

.ttch-site-hero p {
    max-width: 640px;
    color: #3f4653;
    font-size: 18px;
    line-height: 1.65;
}

.ttch-hero-visual {
    min-height: 420px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.08)),
        url("https://images.unsplash.com/photo-1518611012118-696072aa579a?auto=format&fit=crop&w=1000&q=80") center / cover;
}

.ttch-cta-row,
.ttch-card-grid,
.ttch-tool-grid,
.ttch-page-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.ttch-cta,
.ttch-outline-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 6px;
    padding: 0 18px;
    font-weight: 700;
    text-decoration: none;
}

.ttch-cta {
    background: #111827;
    color: #fff;
}

.ttch-outline-cta {
    border: 1px solid #111827;
    color: #111827;
    background: #fff;
}

.ttch-card,
.ttch-tool-card {
    flex: 1 1 220px;
    border: 1px solid #e4e7ec;
    border-radius: 8px;
    padding: 20px;
    background: #fff;
}

.ttch-card h3,
.ttch-tool-card h3 {
    margin-top: 0;
}

.ttch-band {
    background: #f5f6f8;
}

.ttch-form {
    display: grid;
    gap: 18px;
}

.ttch-form fieldset {
    border: 1px solid #d8dde6;
    border-radius: 8px;
    padding: 18px;
}

.ttch-form legend {
    font-weight: 700;
    padding: 0 6px;
}

.ttch-form label {
    display: grid;
    gap: 6px;
    margin-bottom: 12px;
    font-weight: 600;
}

.ttch-form input,
.ttch-form select,
.ttch-form textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #cbd3df;
    border-radius: 6px;
    padding: 10px 12px;
    font: inherit;
}

.ttch-form button,
.ttch-techpack-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    border: 0;
    border-radius: 6px;
    padding: 12px 18px;
    background: #111827;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.ttch-result {
    margin-top: 18px;
    border: 1px solid #d8dde6;
    border-radius: 8px;
    padding: 18px;
    background: #f8fafc;
}

.ttch-result h3 {
    margin-top: 0;
}

.ttch-tool-table {
    width: 100%;
    border-collapse: collapse;
}

.ttch-tool-table th,
.ttch-tool-table td {
    border: 1px solid #d8dde6;
    padding: 10px;
    text-align: left;
}

.ttch-alert {
    margin: 0 0 16px;
    border-radius: 6px;
    padding: 12px 14px;
}

.ttch-alert-error {
    background: #fff1f2;
    color: #9f1239;
}

.ttch-alert-success {
    background: #ecfdf5;
    color: #047857;
}

.ttch-techpack-page {
    max-width: 960px;
    margin: 40px auto;
    padding: 0 20px;
    color: #111827;
    font-family: Arial, sans-serif;
}

.ttch-techpack-section {
    border-top: 1px solid #e5e7eb;
    padding: 18px 0;
}

.ttch-key-values {
    display: grid;
    grid-template-columns: minmax(160px, 240px) 1fr;
    gap: 8px 18px;
}

.ttch-key-values dt {
    font-weight: 700;
}

.ttch-key-values dd {
    margin: 0;
}

.ttch-source-catalog,
.ttch-product-detail {
    color: #121212;
}

.ttch-source-logo {
    margin: 0;
}

.ttch-source-logo img {
    display: block;
    width: 230px;
    max-width: 48vw;
    height: auto;
}

.ttch-source-primary-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    align-items: center;
    justify-content: flex-end;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.ttch-source-primary-nav a {
    color: #121212;
    text-decoration: none;
}

.ttch-source-primary-nav a:hover {
    text-decoration: underline;
}

.ttch-promo-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
    justify-content: center;
    padding: 10px 20px;
    background: #121212;
    color: #fff;
    font-size: 0.84rem;
    font-weight: 700;
}

.ttch-section-head {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.ttch-section-head h2 {
    margin: 0;
}

.ttch-section-head a {
    color: #121212;
    font-weight: 800;
    text-transform: uppercase;
}

.ttch-architecture-band {
    border-top: 1px solid #e4e4e4;
}

.ttch-architecture-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.ttch-architecture-grid a {
    min-height: 74px;
    display: flex;
    align-items: center;
    border: 1px solid #dedede;
    padding: 14px;
    background: #fff;
    color: #121212;
    font-weight: 800;
    text-decoration: none;
}

.ttch-architecture-grid a:hover {
    background: #f5f5f5;
}

.ttch-architecture-grid-compact a {
    min-height: 52px;
}

.ttch-buyer-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.ttch-buyer-card {
    display: grid;
    gap: 10px;
    min-height: 210px;
    align-content: end;
    border: 1px solid #dedede;
    padding: 22px;
    background: #f5f5f5;
    color: #121212;
    text-decoration: none;
}

.ttch-buyer-card h2,
.ttch-buyer-card p {
    margin: 0;
}

.ttch-buyer-card h2 {
    text-transform: uppercase;
}

.ttch-catalog-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
    gap: 24px;
    align-items: end;
    margin-bottom: 28px;
}

.ttch-eyebrow {
    margin: 0 0 8px;
    color: #555;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.ttch-catalog-search {
    display: flex;
    gap: 8px;
    align-items: end;
}

.ttch-catalog-search label {
    flex: 1;
    display: grid;
    gap: 6px;
    font-weight: 700;
}

.ttch-catalog-search input {
    width: 100%;
    border: 1px solid #dedede;
    border-radius: 4px;
    padding: 11px 12px;
    font: inherit;
}

.ttch-catalog-search button {
    border: 0;
    border-radius: 4px;
    padding: 12px 16px;
    background: #121212;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.ttch-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.ttch-product-card {
    border: 1px solid #e4e4e4;
    background: #fff;
}

.ttch-product-card a {
    display: grid;
    gap: 12px;
    color: inherit;
    text-decoration: none;
}

.ttch-product-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background: #f5f5f5;
}

.ttch-product-title {
    min-height: 54px;
    padding: 0 12px;
    font-weight: 700;
    line-height: 1.35;
}

.ttch-product-meta {
    display: grid;
    gap: 4px;
    padding: 0 12px 14px;
    color: #555;
    font-size: 0.86rem;
}

.ttch-pagination {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: center;
    margin-top: 28px;
}

.ttch-product-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 34px;
    align-items: start;
}

.ttch-product-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.ttch-product-gallery img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background: #f5f5f5;
}

.ttch-product-price {
    font-size: 1.35rem;
    font-weight: 800;
}

.ttch-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0;
}

.ttch-tag-list span {
    border: 1px solid #dedede;
    border-radius: 40px;
    padding: 6px 10px;
    background: #f8f8f8;
    font-size: 0.84rem;
}

.ttch-product-description {
    border-top: 1px solid #dedede;
    margin-top: 20px;
    padding-top: 18px;
}

.ttch-product-variants {
    margin-top: 36px;
}

.ttch-table-scroll {
    overflow-x: auto;
}

.ttch-product-variants table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
}

.ttch-product-variants th,
.ttch-product-variants td {
    border: 1px solid #dedede;
    padding: 10px;
    text-align: left;
}

.ttch-product-variants th {
    background: #f5f5f5;
}

@media (max-width: 640px) {
    .ttch-site-hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .ttch-hero-visual {
        min-height: 280px;
    }

    .ttch-key-values {
        grid-template-columns: 1fr;
    }

    .ttch-catalog-head,
    .ttch-product-detail-grid {
        grid-template-columns: 1fr;
    }

    .ttch-catalog-search {
        display: grid;
    }

    .ttch-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ttch-source-primary-nav {
        justify-content: flex-start;
    }

    .ttch-architecture-grid,
    .ttch-buyer-card-grid {
        grid-template-columns: 1fr;
    }
}
