.buyer-supplier-detail-page{background:#f5f7fa;color:#1d2530;min-height:100vh}
.buyer-supplier-detail-page a{text-decoration:none}
.buyer-supplier-detail-hero{background-color:#132943;background-position:center;background-size:cover;color:#fff;height:360px}
.buyer-supplier-detail-hero .buyer-shell{padding-top:138px}
.buyer-supplier-detail-hero h1{font-size:36px;font-weight:800;line-height:1.25;margin:0 0 10px;max-width:900px;overflow-wrap:anywhere}
.buyer-supplier-detail-hero p{color:#e7f0ff;font-size:14px;line-height:1.55;margin:0;overflow-wrap:anywhere}
.buyer-supplier-detail-tabs{background:#fff;border-bottom:1px solid #e8ecf0;height:60px}
.buyer-supplier-detail-tabs .buyer-shell{display:flex;gap:40px;height:100%}
.buyer-supplier-detail-tabs a{align-items:center;color:#4d5765;display:flex;font-size:15px;font-weight:700;position:relative}
.buyer-supplier-detail-tabs a.is-active{color:#e8790c}
.buyer-supplier-detail-tabs a.is-active:after{background:#ff9f0a;bottom:0;content:"";height:3px;left:0;position:absolute;right:0}
#profile,#products,#certifications,#factory{scroll-margin-top:128px}
.buyer-supplier-detail-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:24px;padding-top:24px;padding-bottom:64px}
.buyer-supplier-detail-content{display:flex;flex-direction:column;gap:24px;min-width:0}
.buyer-supplier-section{background:#fff;border:1px solid #e8ecf0;border-radius:10px;padding:24px}
.buyer-supplier-section>h2,.buyer-supplier-section>header h2{font-size:19px;font-weight:800;margin:0}
.buyer-supplier-section>h2{border-bottom:1px solid #e8ecf0;padding-bottom:16px}
.buyer-supplier-profile-grid{display:grid;grid-template-columns:minmax(0,1fr) 44%;gap:24px;padding-top:18px}
.buyer-supplier-profile-grid h3{font-size:16px;margin:0 0 10px}
.buyer-supplier-profile-grid p{color:#596575;font-size:15px;line-height:1.6;margin:0 0 16px}
.buyer-supplier-profile-grid dl,.buyer-supplier-contact-card dl{margin:0}
.buyer-supplier-profile-grid dl>div{border-bottom:1px solid #eef1f4;display:grid;grid-template-columns:120px minmax(0,1fr);gap:12px;padding:7px 0}
.buyer-supplier-profile-grid dt,.buyer-supplier-contact-card dt{color:#7a869a;font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.buyer-supplier-profile-grid dd,.buyer-supplier-contact-card dd{font-size:14px;font-weight:600;line-height:1.5;margin:0;min-width:0;overflow-wrap:anywhere}
.buyer-supplier-profile-grid dt,.buyer-supplier-profile-grid dd{font-size:14px}
.buyer-supplier-media__main{background:#132943;border-radius:7px;height:230px;overflow:hidden;position:relative}
.buyer-supplier-media__main img,.buyer-supplier-media__main video{height:100%;object-fit:cover;width:100%}
.buyer-supplier-media__main [hidden]{display:none !important}
.buyer-supplier-media__main button{background:#fff;border:0;border-radius:50%;color:#132943;cursor:pointer;font-size:18px;height:48px;left:50%;padding-left:5px;position:absolute;top:50%;transform:translate(-50%,-50%);width:48px}
.buyer-supplier-media__rail{margin-top:8px;position:relative}
.buyer-supplier-media__thumbs{display:flex;gap:5px;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scroll-behavior:smooth;scrollbar-width:thin;-webkit-overflow-scrolling:touch}
.buyer-supplier-media__thumbs button{background:#132943;border:2px solid transparent;border-radius:4px;box-sizing:border-box;cursor:pointer;flex:0 0 calc((100% - 20px) / 5);height:48px;overflow:hidden;padding:0;position:relative}
.buyer-supplier-media__thumbs button.is-active{border-color:#ff9f0a}
.buyer-supplier-media__thumbs img{height:100%;object-fit:cover;width:100%}
.buyer-supplier-media__thumbs button.is-video:before{background:rgba(0,0,0,.28);content:"";inset:0;pointer-events:none;position:absolute}
.buyer-supplier-media__thumbs button.is-video:after{border-color:transparent transparent transparent #fff;border-style:solid;border-width:6px 0 6px 10px;content:"";filter:drop-shadow(0 0 2px rgba(0,0,0,.45));left:50%;pointer-events:none;position:absolute;top:50%;transform:translate(-35%,-50%)}
.buyer-supplier-media__nav{align-items:center;background:rgba(19,41,67,.78);border:0;border-radius:50%;color:#fff;cursor:pointer;display:flex;font-size:16px;height:22px;justify-content:center;line-height:1;padding:0;position:absolute;top:50%;transform:translateY(-50%);width:22px;z-index:1}
.buyer-supplier-media__nav.is-prev{left:0}
.buyer-supplier-media__nav.is-next{right:0}
.buyer-supplier-media__nav[hidden]{display:none}
.buyer-supplier-media__nav:disabled{cursor:default;opacity:.35}
.buyer-supplier-certifications{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding-top:16px}
.buyer-supplier-certifications article{border:1px solid #e8ecf0;border-radius:5px;padding:8px}
.buyer-supplier-certifications article>div{align-items:center;background:#f5f7fa;display:flex;height:110px;justify-content:center;overflow:hidden}
.buyer-supplier-certifications img{height:100%;object-fit:contain;width:100%}
.buyer-supplier-certifications article>div span{color:#10b981;font-size:36px;font-weight:800}
.buyer-supplier-certifications strong{display:block;font-size:14px;line-height:1.45;margin-top:8px;overflow-wrap:anywhere}
.buyer-supplier-certifications small{color:#7a869a;display:block;font-size:12px;line-height:1.5;margin-top:4px;overflow-wrap:anywhere;word-break:break-word}
.buyer-supplier-section>header{align-items:center;display:flex;justify-content:space-between}
.buyer-supplier-products{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:18px}
.buyer-supplier-products>a{border:1px solid #e8ecf0;border-radius:5px;color:#1d2530;min-width:0;overflow:hidden;padding-bottom:12px}
.buyer-supplier-products>a>span{display:block;height:170px;overflow:hidden}
.buyer-supplier-products img{height:100%;object-fit:cover;transition:transform .25s ease;width:100%}
.buyer-supplier-products a:hover img{transform:scale(1.03)}
.buyer-supplier-products strong,.buyer-supplier-products b,.buyer-supplier-products small{display:block;margin-left:10px;margin-right:10px}
.buyer-supplier-products strong{display:-webkit-box;min-height:41px;margin-top:9px;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;font-size:14px;line-clamp:2;line-height:1.45;overflow-wrap:anywhere}
.buyer-supplier-products b{color:#e8790c;font-size:15px;line-height:1.4;margin-top:6px;overflow-wrap:anywhere}
.buyer-supplier-products small{color:#7a869a;font-size:12px;line-height:1.45;margin-top:4px;overflow-wrap:anywhere}
.buyer-supplier-products-empty{color:#7a869a;font-size:14px;margin:24px 0 0}
.buyer-supplier-pagination{display:flex;justify-content:center;padding-top:16px}
.buyer-supplier-pagination__list{display:flex;gap:7px;list-style:none;margin:0;padding:0}
.buyer-supplier-pagination__list>li>a,.buyer-supplier-pagination__list>li>span,.buyer-supplier-pagination__link{align-items:center;background:#fff;border:1px solid #dfe4ea;border-radius:4px;box-sizing:border-box;color:#354052;display:flex;font-size:12px;height:32px;justify-content:center;min-width:32px;padding:0 8px}
.buyer-supplier-pagination__list .is-active .buyer-supplier-pagination__link,.buyer-supplier-pagination__list .is-active>span{background:#132943;border-color:#132943;color:#fff}
.buyer-supplier-pagination__list .is-disabled>a,.buyer-supplier-pagination__list .is-disabled>span,.buyer-supplier-pagination__list .is-disabled .buyer-supplier-pagination__link{color:#a0a8b3;pointer-events:none}
.buyer-supplier-detail-sidebar{align-self:start;display:flex;flex-direction:column;gap:20px}
.buyer-supplier-contact-card{background:#fff;border:1px solid #e8ecf0;border-radius:10px;padding:22px}
.buyer-supplier-contact-card header{align-items:flex-start;border-bottom:1px solid #e8ecf0;display:flex;gap:10px;padding-bottom:16px}
.buyer-supplier-contact-card header>span{align-items:center;border:1px solid #e8ecf0;border-radius:4px;display:flex;flex:0 0 auto;height:46px;justify-content:center;overflow:hidden;width:46px}
.buyer-supplier-contact-card header img{height:100%;object-fit:contain;width:100%}
.buyer-supplier-contact-card header>div{min-width:0;display:flex;flex:1;flex-direction:column;align-items:flex-start;gap:6px}
.buyer-supplier-contact-card header strong{display:block;font-size:16px;font-weight:800;line-height:1.4;overflow-wrap:anywhere}
.buyer-supplier-contact-card header .buyer-supplier-level{margin:0;padding:3px 8px;border-radius:5px}
.buyer-supplier-contact-card header .buyer-supplier-level img{width:11px;height:11px}
.buyer-supplier-contact-card dl{padding:14px 0}
.buyer-supplier-contact-card dl>div{display:grid;grid-template-columns:90px minmax(0,1fr);gap:8px;padding:6px 0}
.buyer-supplier-contact-card>a,.buyer-supplier-contact-card>button{box-sizing:border-box;display:block;font-size:13px;font-weight:700;text-align:center;width:100%}
.buyer-supplier-contact-card>a{border:1px solid #132943;border-radius:4px;color:#132943;padding:9px}
.buyer-supplier-contact-card>button{background:#132943;border:1px solid #132943;border-radius:4px;color:#fff;cursor:pointer;margin-top:8px;padding:10px}
.buyer-supplier-rfq-card{background:#132943;border-radius:8px;color:#fff;padding:20px}
.buyer-supplier-rfq-card h2{font-size:15px;margin:0 0 8px}
.buyer-supplier-rfq-card p{color:#c8d2e3;font-size:14px;line-height:1.6;margin:0 0 14px;overflow-wrap:anywhere}
.buyer-supplier-rfq-card a{background:#ff9f0a;border-radius:4px;color:#132943;display:block;font-size:14px;font-weight:800;padding:10px;text-align:center}
.buyer-supplier-mobile-actions{display:none}

@media(max-width:767px){
  .buyer-supplier-detail-hero{height:200px}
  .buyer-supplier-detail-hero .buyer-shell{padding:72px 12px 0}
  .buyer-supplier-detail-hero h1{font-size:20px;line-height:1.35;margin-bottom:6px}
  .buyer-supplier-detail-hero p{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:3;font-size:13px;line-clamp:3;line-height:1.5;white-space:normal}
  .buyer-supplier-detail-tabs{height:48px;overflow:auto}
  .buyer-supplier-detail-tabs .buyer-shell{gap:20px;padding:0 10px;width:max-content}
  .buyer-supplier-detail-tabs a{font-size:13px;white-space:nowrap}
  .buyer-supplier-detail-layout{display:flex;flex-direction:column;gap:8px;padding:8px 8px 72px}
  .buyer-supplier-detail-content{display:contents}
  .buyer-supplier-section{border-radius:6px;padding:10px}
  .buyer-supplier-profile-section{order:1}
  .buyer-supplier-detail-sidebar{display:contents}
  .buyer-supplier-contact-card{border-radius:6px;order:2;padding:10px}
  .buyer-supplier-rfq-card{order:3;padding:12px}
  #certifications{order:4}
  #products{order:5}
  .buyer-supplier-section>h2,.buyer-supplier-section>header h2{font-size:18px;line-height:1.35}
  .buyer-supplier-section>h2{padding-bottom:8px}
  .buyer-supplier-profile-grid{display:block;padding-top:8px}
  .buyer-supplier-profile-grid h3{font-size:16px;line-height:1.4;margin-bottom:7px}
  .buyer-supplier-profile-grid p{font-size:14px;line-height:1.65;margin-bottom:10px;overflow-wrap:anywhere}
  .buyer-supplier-profile-grid dl>div{grid-template-columns:minmax(96px,.38fr) minmax(0,1fr);gap:10px;padding:7px 0}
  .buyer-supplier-profile-grid dt{font-size:13px}
  .buyer-supplier-profile-grid dd{font-size:14px}
  .buyer-supplier-media{margin-top:10px}
  .buyer-supplier-media__main{height:168px}
  .buyer-supplier-media__thumbs button{height:35px}
  .buyer-supplier-media__nav{height:18px;width:18px}
  .buyer-supplier-contact-card header{padding-bottom:8px}
  .buyer-supplier-contact-card header strong{font-size:16px}
  .buyer-supplier-contact-card dl{padding:8px 0}
  .buyer-supplier-contact-card dl>div{grid-template-columns:minmax(84px,.36fr) minmax(0,1fr);gap:10px;padding:6px 0}
  .buyer-supplier-contact-card dt{font-size:13px}
  .buyer-supplier-contact-card dd{font-size:14px}
  .buyer-supplier-contact-card>a,.buyer-supplier-contact-card>button{font-size:14px;padding:10px}
  .buyer-supplier-rfq-card h2{font-size:16px;line-height:1.4}
  .buyer-supplier-rfq-card p{font-size:14px}
  .buyer-supplier-rfq-card a{font-size:14px;padding:10px}
  .buyer-supplier-certifications{grid-template-columns:repeat(2,1fr);gap:6px;padding-top:8px}
  .buyer-supplier-certifications article>div{height:110px}
  .buyer-supplier-certifications strong{font-size:14px}
  .buyer-supplier-products{grid-template-columns:repeat(2,1fr);gap:6px;margin-top:9px}
  .buyer-supplier-products>a>span{height:116px}
  .buyer-supplier-products strong{font-size:14px;min-height:41px;margin:7px 8px 0}
  .buyer-supplier-products b{font-size:14px;margin:5px 8px 0}
  .buyer-supplier-products small{font-size:12px;margin:4px 8px 0}
  .buyer-supplier-pagination__list>li>a,.buyer-supplier-pagination__list>li>span,.buyer-supplier-pagination__link{font-size:13px}
  .buyer-supplier-mobile-actions{background:#fff;border-top:1px solid #dfe4ea;bottom:0;display:grid;gap:8px;grid-template-columns:1fr 90px;left:0;padding:8px;position:fixed;right:0;z-index:50}
  .buyer-supplier-mobile-actions button{border:1px solid #132943;border-radius:5px;font-size:14px;font-weight:700;height:44px}
  .buyer-supplier-mobile-actions button:first-child{background:#ff9f0a;border-color:#ff9f0a;color:#132943}
  .buyer-supplier-mobile-actions button:last-child{background:#fff;color:#132943}
}

@media(max-width:600px){
  #profile,#products,#certifications,#factory{scroll-margin-top:72px}
}
