:root {
    --ter-shop-navy: #0b1b2b;
    --ter-shop-text: #33404e;
    --ter-shop-muted: #6d7782;
    --ter-shop-ivory: #f8f5ee;
    --ter-shop-paper: #fcfbf7;
    --ter-shop-gold: #b4893d;
    --ter-shop-teal: #2a6f6c;
    --ter-shop-line: #ddd6c9;
}

.ter-product-catalog {
    max-width: 1320px;
    margin: 0 auto;
    padding: clamp(36px, 6vw, 88px) clamp(18px, 4vw, 54px) 100px;
    color: var(--ter-shop-text);
}

.ter-catalog-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, .7fr);
    gap: clamp(36px, 8vw, 110px);
    align-items: end;
    padding-bottom: 50px;
    border-bottom: 1px solid var(--ter-shop-line);
}

.ter-catalog-kicker,
.ter-catalog-section-heading > p,
.ter-catalog-card-copy > span {
    margin: 0 0 14px;
    color: var(--ter-shop-gold);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.ter-catalog-hero h1 {
    max-width: 850px;
    margin: 0;
    color: var(--ter-shop-navy);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(52px, 8vw, 110px);
    font-weight: 400;
    letter-spacing: -.045em;
    line-height: .88;
}

.ter-catalog-hero h1 em {
    color: var(--ter-shop-teal);
    font-weight: 400;
}

.ter-catalog-intro {
    padding-left: 28px;
    border-left: 1px solid var(--ter-shop-gold);
}

.ter-catalog-intro p {
    margin: 0 0 18px;
    color: var(--ter-shop-text);
    font-size: 17px;
    line-height: 1.75;
}

.ter-catalog-intro span {
    color: var(--ter-shop-muted);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.ter-catalog-nav {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 22px 0;
    border-bottom: 1px solid var(--ter-shop-line);
    scrollbar-width: thin;
}

.ter-catalog-nav a {
    flex: 0 0 auto;
    padding: 9px 14px;
    color: var(--ter-shop-navy);
    background: transparent;
    border: 1px solid var(--ter-shop-line);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.ter-catalog-nav a:hover,
.ter-catalog-nav a:focus {
    color: #fff;
    background: var(--ter-shop-navy);
    border-color: var(--ter-shop-navy);
}

.ter-catalog-empty {
    margin: 52px 0;
    padding: clamp(28px, 5vw, 52px);
    background: var(--ter-shop-ivory);
    border: 1px solid var(--ter-shop-line);
}

.ter-catalog-empty h2 {
    margin: 0 0 10px;
    color: var(--ter-shop-navy);
    font-family: Georgia, serif;
    font-size: 36px;
    font-weight: 400;
}

.ter-catalog-admin-link,
.ter-card-link {
    color: var(--ter-shop-teal);
    font-weight: 750;
    text-decoration: none;
}

.ter-catalog-section {
    scroll-margin-top: 110px;
    padding-top: clamp(66px, 9vw, 118px);
}

.ter-catalog-section-heading {
    display: grid;
    grid-template-columns: 230px minmax(0, 650px);
    gap: 44px;
    align-items: start;
    margin-bottom: 30px;
}

.ter-catalog-section-heading h2 {
    margin: 0;
    color: var(--ter-shop-navy);
    font-family: Georgia, serif;
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 400;
    line-height: 1.12;
}

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

.ter-catalog-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    background: var(--ter-shop-paper);
    border: 1px solid var(--ter-shop-line);
    transition: transform .22s ease, box-shadow .22s ease;
}

.ter-catalog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 48px rgba(11, 27, 43, .10);
}

.ter-catalog-card-image {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--ter-shop-ivory);
}

.ter-catalog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

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

.ter-catalog-card-copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 26px;
}

.ter-catalog-card-copy h3 {
    margin: 0 0 12px;
    color: var(--ter-shop-navy);
    font-family: Georgia, serif;
    font-size: 30px;
    font-weight: 400;
    line-height: 1.04;
}

.ter-catalog-card-copy h3 a {
    color: inherit;
    text-decoration: none;
}

.ter-catalog-card-copy p {
    margin: 0 0 22px;
    color: var(--ter-shop-muted);
    line-height: 1.65;
}

.ter-card-link {
    margin-top: auto;
}

.ter-affiliate-disclosure {
    margin: 18px 0 20px;
    padding: 15px 17px;
    color: #52606d;
    background: var(--ter-shop-ivory);
    border: 1px solid var(--ter-shop-line);
    border-left: 4px solid var(--ter-shop-gold);
    font-size: 13px;
    line-height: 1.55;
}

.ter-external-cart .single_add_to_cart_button,
.ter-catalog-product .button,
.ter-catalog-single .single_add_to_cart_button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    min-height: 48px;
    padding: 13px 22px !important;
    color: #fff !important;
    background: var(--ter-shop-navy) !important;
    border: 1px solid var(--ter-shop-navy) !important;
    border-radius: 0 !important;
    font-weight: 750 !important;
    text-decoration: none !important;
}

.ter-external-cart .single_add_to_cart_button:hover,
.ter-catalog-product .button:hover,
.ter-catalog-single .single_add_to_cart_button:hover {
    background: var(--ter-shop-teal) !important;
    border-color: var(--ter-shop-teal) !important;
}

.ter-catalog-single .product.ter-catalog-product {
    max-width: 1220px;
    margin-inline: auto;
}

.ter-catalog-single .product.ter-catalog-product .woocommerce-product-gallery,
.ter-catalog-single .product.ter-catalog-product .summary {
    margin-bottom: 64px;
}

.ter-catalog-single .product.ter-catalog-product .product_title {
    color: var(--ter-shop-navy);
    font-family: Georgia, serif;
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 400;
    letter-spacing: -.035em;
    line-height: .98;
}

.ter-catalog-single .woocommerce-product-gallery img,
.ter-catalog-product img {
    background: var(--ter-shop-ivory);
}

.ter-editorial-product-copy h2 {
    margin-top: 2em;
    color: var(--ter-shop-navy);
    font-family: Georgia, serif;
    font-size: 34px;
    font-weight: 400;
}

.ter-product-kicker {
    color: var(--ter-shop-gold);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .15em;
}

.ter-product-editor-note {
    margin-top: 30px;
    padding: 18px;
    background: var(--ter-shop-ivory);
    border-left: 3px solid var(--ter-shop-teal);
}

@media (max-width: 980px) {
    .ter-catalog-hero { grid-template-columns: 1fr; }
    .ter-catalog-intro { max-width: 650px; }
    .ter-catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ter-catalog-section-heading { grid-template-columns: 1fr; gap: 8px; }
}

@media (max-width: 640px) {
    .ter-catalog-hero h1 { font-size: clamp(48px, 16vw, 72px); }
    .ter-catalog-grid { grid-template-columns: 1fr; }
    .ter-catalog-card-copy h3 { font-size: 28px; }
    .ter-catalog-intro { padding-left: 18px; }
}
