
:root{--tms-brand:#ff5a1f;--tms-brand-hover:#e04a12}
.tms-wrap{max-width:1240px;margin:0 auto;padding:36px 20px}
.tms-page-header,.tms-section,.tms-hero{margin-bottom:34px}
.tms-page-header h1,.tms-section h2,.tms-hero h1{margin:0 0 12px;line-height:1.12;color:#111}
.tms-page-header p,.tms-hero p,.tms-copy p{max-width:940px;color:#364152}
.tms-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:22px}
.tms-card,.tms-product-card{background:#fff;border:1px solid #ececec;border-radius:16px;padding:22px;text-align:center;box-shadow:0 8px 24px rgba(15,23,42,.05)}
.tms-card h2,.tms-card h3{font-size:22px;margin:12px 0;color:#111}
.tms-card-logo,.tms-card-model-image{max-width:100%;height:96px;object-fit:contain;margin:0 auto 10px;display:block}
.tms-btn{display:inline-block;background:var(--tms-brand);color:#fff;padding:12px 20px;border-radius:8px;text-decoration:none;font-weight:700;border:1px solid var(--tms-brand);transition:all .2s ease}
.tms-btn:hover,.tms-btn:focus{background:var(--tms-brand-hover);border-color:var(--tms-brand-hover);color:#fff}
.tms-btn-small{padding:9px 14px;font-size:14px}
.tms-btn-outline{background:#fff;color:var(--tms-brand)}
.tms-btn-outline:hover{background:#fff7f3;color:var(--tms-brand-hover)}
.tms-link{font-weight:700;text-decoration:none;color:var(--tms-brand)}
.tms-link:hover{color:var(--tms-brand-hover)}
.tms-hero{background:linear-gradient(135deg,#fff7f3 0%,#ffffff 100%);border:1px solid #ffe0d2;border-radius:20px;padding:28px}
.tms-hero-inner{display:flex;gap:26px;align-items:center}
.tms-hero-logo-wrap{width:130px;min-width:130px;background:#fff;border-radius:18px;padding:22px;border:1px solid #ffe0d2;box-shadow:0 6px 18px rgba(255,90,31,.08)}
.tms-hero-logo{width:100%;height:auto;object-fit:contain}
.tms-hero-copy{flex:1}
.tms-brand-hero{border-radius:24px;overflow:hidden;border:1px solid #ffe0d2;background:linear-gradient(135deg,#fff7f3 0%,#ffffff 100%);background-size:cover;background-position:center center}
.tms-brand-hero.has-bg .tms-brand-hero__overlay{background:linear-gradient(90deg, rgba(255,255,255,.88) 0%, rgba(255,255,255,.80) 38%, rgba(255,255,255,.58) 100%)}
.tms-brand-hero__overlay{padding:28px}
.tms-brand-hero__inner{display:flex;gap:24px;align-items:center;min-height:260px}
.tms-brand-hero__logo-card{width:120px;min-width:120px;height:120px;background:#fff;border-radius:18px;border:1px solid #ffe0d2;display:flex;align-items:center;justify-content:center;box-shadow:0 6px 18px rgba(255,90,31,.08)}
.tms-brand-hero__content{max-width:740px}
.tms-cta-row{display:flex;gap:12px;flex-wrap:wrap;margin-top:18px}
.tms-chip-row{display:flex;flex-wrap:wrap;gap:12px}
.tms-chip{display:inline-flex;align-items:center;justify-content:center;padding:10px 14px;border-radius:999px;background:#fff7f3;border:1px solid #ffd5c2;font-weight:700;color:#8a3614}
.tms-size-list{display:flex;flex-wrap:wrap;gap:12px}
.tms-size-pill{display:inline-block;padding:11px 16px;background:#fff7f3;border:1px solid #ffd5c2;border-radius:999px;text-decoration:none;font-weight:700;color:#8a3614}
.tms-size-pill:hover{background:#ffefe8}
.tms-breadcrumbs{margin-bottom:20px;font-size:14px;color:#666}
.tms-breadcrumbs a{text-decoration:none;color:#364152}
.tms-breadcrumbs span{margin:0 6px}
.tms-subtle{color:#666;font-weight:700}
.tms-section-head{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:16px}
.tms-products{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:18px}
.tms-product-card{text-align:left}
.tms-product-image{display:block;text-align:center;margin-bottom:12px}
.tms-product-image img{width:100%;height:170px;object-fit:contain}
.tms-product-title{font-size:16px;min-height:48px;margin:0 0 10px}
.tms-product-title a{text-decoration:none;color:#111}
.tms-price{font-weight:800;margin:10px 0 14px;color:var(--tms-brand)}
.tms-copy{background:#fff;border:1px solid #f0f0f0;border-radius:16px;padding:24px}
.tms-fallback-badge{width:96px;height:96px;border-radius:50%;background:#111;color:#fff;font-weight:800;font-size:34px;display:flex;align-items:center;justify-content:center;margin:0 auto 10px}
.tms-model-card .tms-model-placeholder{height:96px;border-radius:14px;background:linear-gradient(135deg,#fff7f3,#ffe0d2);display:flex;align-items:center;justify-content:center;font-weight:800;color:#8a3614;padding:10px;margin-bottom:10px}
@media (max-width:768px){
  .tms-hero-inner,.tms-brand-hero__inner{flex-direction:column;align-items:flex-start}
  .tms-section-head{flex-direction:column;align-items:flex-start}
}


.tms-product-brand{
    height:42px;
    display:flex;
    align-items:center;
    justify-content:center;
    margin-bottom:12px;
}
.tms-product-brand img{
    max-width:120px;
    max-height:32px;
    width:auto;
    height:auto;
    object-fit:contain;
    display:block;
}
.tms-product-brand span{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:32px;
    padding:6px 12px;
    border-radius:999px;
    background:#fff7f3;
    border:1px solid #ffd5c2;
    color:#8a3614;
    font-size:13px;
    font-weight:700;
    line-height:1;
    text-align:center;
}
.tms-product-card{
    padding-top:16px !important;
}


.tms-cta-row .tms-btn:first-child{
    background:#ffd200 !important;
    border-color:#ffd200 !important;
    color:#111 !important;
}
.tms-cta-row .tms-btn:first-child:hover{
    background:#e7bf00 !important;
    border-color:#e7bf00 !important;
    color:#111 !important;
}


/* Real archive heading fix */
.post-type-archive-tms_manufacturer .tms-page-header h1{
    display:block !important;
    color:#111 !important;
    font-size:42px !important;
    line-height:1.15 !important;
    margin:0 0 14px 0 !important;
    text-align:center;
}
.post-type-archive-tms_manufacturer .tms-page-header p{
    display:block !important;
    color:#364152 !important;
    font-size:16px !important;
    max-width:980px !important;
    margin:0 auto 28px auto !important;
    text-align:left;
}
.post-type-archive-tms_manufacturer .tms-page-header::before,
body.post-type-archive-tms_manufacturer .content-area::before{
    content:none !important;
    display:none !important;
}


/* Product card fixes */
.tms-product-brand{display:flex;align-items:center;justify-content:flex-start;min-height:36px;margin-bottom:10px;}
.tms-product-brand img{max-height:28px;width:auto;object-fit:contain;}
.tms-product-brand span{font-size:12px;font-weight:700;color:#111;}
.tms-product-title{min-height:48px;}
