.tcat-page,
.tcat-catalogue {
    --tcat-border: #dfe3e8;
    --tcat-muted: #626d79;
    --tcat-surface: #f7f8fa;
    --tcat-text: #17202a;
    --tcat-accent: #1769e0;
    color: var(--tcat-text);
}

.tcat-container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 44px 0 64px;
}

.tcat-page-header {
    margin-bottom: 28px;
}

.tcat-page-header h1,
.tcat-single h1 {
    margin: 0 0 10px;
    line-height: 1.12;
}

.tcat-filters {
    display: grid;
    grid-template-columns: minmax(180px, 1.5fr) repeat(5, minmax(130px, 1fr));
    gap: 12px;
    align-items: end;
    padding: 18px;
    margin-bottom: 28px;
    background: var(--tcat-surface);
    border: 1px solid var(--tcat-border);
    border-radius: 12px;
}

.tcat-filter-field label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.82rem;
    font-weight: 700;
}

.tcat-filter-field input,
.tcat-filter-field select,
.tcat-enquiry-form input,
.tcat-enquiry-form textarea {
    width: 100%;
    min-height: 42px;
    padding: 8px 10px;
    border: 1px solid #b8c0ca;
    border-radius: 7px;
    background: #fff;
    color: inherit;
    box-sizing: border-box;
}

.tcat-filter-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tcat-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 18px;
    border: 0;
    border-radius: 7px;
    background: var(--tcat-accent);
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 700;
    cursor: pointer;
}

.tcat-clear-filters,
.tcat-back a,
.tcat-card-link {
    color: var(--tcat-accent);
}

.tcat-grid {
    display: grid;
    grid-template-columns: repeat(var(--tcat-columns, 3), minmax(0, 1fr));
    gap: 22px;
}

.tcat-card {
    overflow: hidden;
    border: 1px solid var(--tcat-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 5px 20px rgba(23, 32, 42, 0.055);
}

.tcat-card-image {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--tcat-surface);
}

.tcat-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 180ms ease;
}

.tcat-card:hover .tcat-card-image img {
    transform: scale(1.025);
}

.tcat-placeholder,
.tcat-placeholder-large {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    font-size: 4rem;
}

.tcat-status {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 0.78rem;
    line-height: 1;
    font-weight: 800;
    background: #e8edf3;
}

.tcat-card-image .tcat-status {
    position: absolute;
    top: 12px;
    right: 12px;
}

.tcat-status-available { background: #dff5e7; color: #176335; }
.tcat-status-reserved { background: #fff0c7; color: #765500; }
.tcat-status-sold { background: #f3dfe1; color: #852f39; }
.tcat-status-coming_soon { background: #dfeafa; color: #245899; }

.tcat-card-body {
    padding: 18px;
}

.tcat-card-category,
.tcat-eyebrow {
    margin-bottom: 7px;
    color: var(--tcat-muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.tcat-card-title {
    margin: 0 0 10px;
    font-size: 1.17rem;
    line-height: 1.3;
}

.tcat-card-title a {
    color: inherit;
    text-decoration: none;
}

.tcat-card-excerpt {
    min-height: 2.8em;
    margin: 0 0 16px;
    color: var(--tcat-muted);
    line-height: 1.45;
}

.tcat-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid var(--tcat-border);
    padding-top: 14px;
}

.tcat-pagination {
    margin-top: 30px;
}

.tcat-pagination ul,
.tcat-pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    padding: 0;
    list-style: none;
}

.tcat-pagination a,
.tcat-pagination span {
    display: inline-grid;
    min-width: 38px;
    min-height: 38px;
    place-items: center;
    padding: 6px 10px;
    border: 1px solid var(--tcat-border);
    border-radius: 6px;
    text-decoration: none;
}

.tcat-pagination .current {
    border-color: var(--tcat-accent);
    background: var(--tcat-accent);
    color: #fff;
}

.tcat-no-results {
    padding: 40px;
    text-align: center;
    background: var(--tcat-surface);
    border-radius: 12px;
}

.tcat-back {
    margin-bottom: 22px;
}

.tcat-single-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 48px;
    align-items: start;
}

.tcat-main-image {
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border: 1px solid var(--tcat-border);
    border-radius: 12px;
    background: var(--tcat-surface);
}

.tcat-main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tcat-thumbnails {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-top: 10px;
}

.tcat-thumbnail {
    overflow: hidden;
    aspect-ratio: 1;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 7px;
    background: var(--tcat-surface);
    cursor: pointer;
}

.tcat-thumbnail.is-active {
    border-color: var(--tcat-accent);
}

.tcat-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tcat-summary-status-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 18px 0;
}

.tcat-single-price {
    font-size: 1.45rem;
}

.tcat-lead {
    color: var(--tcat-muted);
    font-size: 1.08rem;
}

.tcat-quick-details {
    margin: 24px 0;
    border-top: 1px solid var(--tcat-border);
}

.tcat-quick-details > div {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 15px;
    padding: 11px 0;
    border-bottom: 1px solid var(--tcat-border);
}

.tcat-quick-details dt {
    font-weight: 700;
}

.tcat-quick-details dd {
    margin: 0;
}

.tcat-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-top: 52px;
}

.tcat-specifications table {
    width: 100%;
    border-collapse: collapse;
}

.tcat-specifications th,
.tcat-specifications td {
    padding: 11px 12px;
    border-bottom: 1px solid var(--tcat-border);
    text-align: left;
    vertical-align: top;
}

.tcat-specifications th {
    width: 42%;
    background: var(--tcat-surface);
}

.tcat-enquiry-section {
    display: grid;
    grid-template-columns: minmax(220px, 0.65fr) minmax(0, 1.35fr);
    gap: 42px;
    margin-top: 56px;
    padding: 34px;
    border-radius: 14px;
    background: var(--tcat-surface);
}

.tcat-enquiry-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.tcat-enquiry-form p {
    margin: 0;
}

.tcat-enquiry-form p:nth-of-type(4),
.tcat-enquiry-form .tcat-button {
    grid-column: 1 / -1;
}

.tcat-enquiry-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 700;
}

.tcat-honeypot {
    position: absolute !important;
    left: -9999px !important;
}

.tcat-notice {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 7px;
}

.tcat-notice-success { background: #dff5e7; color: #176335; }
.tcat-notice-error { background: #f3dfe1; color: #852f39; }

@media (max-width: 980px) {
    .tcat-filters {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .tcat-single-grid,
    .tcat-content-grid,
    .tcat-enquiry-section {
        gap: 28px;
    }
}

@media (max-width: 700px) {
    .tcat-container {
        width: min(100% - 22px, 1180px);
        padding-top: 26px;
    }

    .tcat-filters,
    .tcat-grid,
    .tcat-single-grid,
    .tcat-content-grid,
    .tcat-enquiry-section,
    .tcat-enquiry-form {
        grid-template-columns: 1fr;
    }

    .tcat-enquiry-form p:nth-of-type(4),
    .tcat-enquiry-form .tcat-button {
        grid-column: auto;
    }

    .tcat-card-excerpt {
        min-height: 0;
    }
}
