.ag-profile{--navy:#09244b;--orange:#ff7900;--muted:#64748b;background:#f8fafc;color:#15233b;font-family:Kanit,system-ui,sans-serif}.ag-profile a{text-decoration:none}.ag-profile-crumb{background:#f0f4f9;border-bottom:1px solid #e4eaf2}.ag-profile-crumb .container{display:flex;align-items:center;gap:11px;min-height:48px;font-size:13px;flex-wrap:wrap}.ag-profile-crumb a{color:#50617a}.ag-profile-crumb i{font-size:10px;color:#94a3b8}.ag-profile-crumb span{font-weight:500}.ag-profile-hero{background-image:linear-gradient(90deg,rgba(6,30,69,.98),rgba(9,39,81,.92) 40%,rgba(9,39,81,.34)),var(--ag-cover,linear-gradient(120deg,#113d70,#2674aa));background-size:cover;background-position:center;min-height:300px;color:white}.ag-profile-hero-inner{display:flex;align-items:center;gap:32px;padding-top:52px;padding-bottom:52px}.ag-profile-logo{flex:0 0 156px;height:156px;background:#fff;border-radius:18px;display:grid;place-items:center;padding:18px;box-shadow:0 12px 35px #0002}.ag-profile-logo img{max-width:100%;max-height:100%;object-fit:contain}.ag-profile-logo>i{font-size:65px;color:#1c5e9d}.ag-profile-eyebrow{font-size:12px;letter-spacing:.1em;text-transform:uppercase;color:#b9d7f3}.ag-profile-hero h1{font-size:clamp(27px,3vw,40px);font-weight:700;line-height:1.3;margin:10px 0 14px}.ag-profile-badges{display:flex;gap:10px;flex-wrap:wrap}.ag-profile-badges span{display:inline-flex;gap:6px;align-items:center;padding:5px 13px;border-radius:20px;font-size:13px}.ag-verified{background:#ffd86d;color:#533700;font-weight:600}.ag-industry-pill{border:1px solid #ffffff8a;color:#fff}.ag-profile-hero p{max-width:680px;font-size:15px;line-height:1.8;color:#e2ebf6;margin:14px 0 0}.ag-profile-tabs-wrap{background:white;border-bottom:1px solid #e4eaf2;box-shadow:0 2px 12px #142d4c08}.ag-profile-tabs{display:flex;justify-content:space-between;align-items:center;gap:12px}.ag-profile-tab-links{display:flex;gap:26px;overflow-x:auto}.ag-profile-tab-links a{display:inline-flex;align-items:center;gap:8px;padding:19px 6px;color:#41516a;font-size:14px;white-space:nowrap;border-bottom:3px solid transparent}.ag-profile-tab-links a:hover,.ag-profile-tab-links a.active{color:#1253a3;border-color:var(--orange)}.ag-count{font-size:11px;border-radius:20px;padding:2px 7px;background:#edf3fa}.ag-share-btn{border:1px solid #dce4ed;background:#fff;border-radius:8px;padding:7px 15px;white-space:nowrap}.ag-profile-content{padding-top:34px;padding-bottom:75px}.ag-profile-section{scroll-margin-top:110px;margin-bottom:34px}.ag-profile-section h2,.ag-side-card h2{font-size:21px;font-weight:700;margin:0}.ag-profile-section>h2,.ag-section-head h2{padding-left:13px;border-left:4px solid var(--orange)}.ag-about-card{display:grid;grid-template-columns:1.5fr .8fr;gap:20px;align-items:center;margin-top:20px;background:#fff;border:1px solid #e6ebf1;border-radius:15px;padding:24px}.ag-about-description{line-height:1.9;color:#3e4d62;white-space:normal}.ag-text-link{color:#1256a8;font-weight:600}.ag-about-illustration{min-height:155px;background:linear-gradient(135deg,#dcecf9,#f0f6fc);border-radius:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;color:#3975ab}.ag-about-illustration i{font-size:60px}.ag-category-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:20px}.ag-category-tile{position:relative;min-height:150px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;background:white;border:1px solid #e5ebf2;border-radius:14px;text-align:center;padding:18px;color:#1e3553;box-shadow:0 3px 10px #17365908;transition:transform .2s,box-shadow .2s}.ag-category-tile:hover{transform:translateY(-3px);box-shadow:0 10px 22px #1736591a}.ag-category-icon{height:68px;display:grid;place-items:center}.ag-category-icon img{max-width:95px;max-height:68px;object-fit:contain}.ag-category-icon i{font-size:44px;color:#367cb6}.ag-category-tile>span{font-size:14px;font-weight:500;line-height:1.4}.ag-category-arrow{position:absolute;right:12px;top:10px;font-size:12px;color:#91a2b7}.ag-section-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:20px}.ag-section-head>span{color:var(--muted);font-size:13px}.ag-product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.ag-product-card{display:flex;flex-direction:column;overflow:hidden;background:white;border:1px solid #e5ebf2;border-radius:14px;box-shadow:0 3px 12px #17365909}.ag-product-image{height:190px;display:grid;place-items:center;background:#fff;padding:15px;border-bottom:1px solid #f0f2f5}.ag-product-image img{width:100%;height:100%;object-fit:contain}.ag-product-image>i{font-size:60px;color:#a9bcd0}.ag-product-details{padding:15px;display:flex;flex-direction:column;flex:1}.ag-product-code{font-size:11px;color:#2a80b5;font-weight:600;overflow-wrap:anywhere}.ag-product-details h3{font-size:15px;line-height:1.5;font-weight:600;margin:8px 0 18px}.ag-product-details h3 a{color:#182b45}.ag-product-action{margin-top:auto;border:1px solid #ffbe87;border-radius:8px;background:#fff5ed;color:#ed6b00;padding:9px 7px;text-align:center;font-size:12px;font-weight:600}.ag-product-action:hover{background:#ff7900;color:#fff}.ag-profile-sidebar{position:sticky;top:95px;display:grid;gap:16px}.ag-side-card{border:1px solid #e6ebf1;background:white;border-radius:14px;padding:22px;box-shadow:0 3px 12px #1736590b}.ag-side-card h2{font-size:19px;margin-bottom:15px}.ag-side-icon{color:var(--orange);font-size:27px;margin-bottom:8px}.ag-rfq-card{border-top:4px solid var(--orange)}.ag-rfq-card p{font-size:14px;line-height:1.7;color:#61718a}.ag-orange-button{display:flex;justify-content:center;align-items:center;gap:10px;border-radius:8px;background:var(--orange);color:white;padding:12px;font-weight:600;font-size:14px}.ag-orange-button:hover{background:#e66c00;color:#fff}.ag-info-line{display:flex;gap:13px;padding:12px 0;border-bottom:1px solid #eef1f5}.ag-info-line:last-child{border-bottom:0;padding-bottom:0}.ag-info-line>i{font-size:17px;color:#163e6b}.ag-info-line>div{min-width:0;flex:1}.ag-info-line strong,.ag-info-line span,.ag-info-line a{display:block;font-size:13px;overflow-wrap:anywhere}.ag-info-line strong{color:#17283e;margin-bottom:3px}.ag-info-line span{color:#5d6b7e;line-height:1.6}.ag-info-line a{color:#1761b0}.ag-empty{background:#fff;border:1px dashed #d3dce7;padding:28px;border-radius:12px;color:#6a778b;margin-top:16px}.ag-profile-pagination{display:flex;align-items:center;justify-content:center;gap:20px;margin-top:25px}.ag-profile-pagination a{border:1px solid #d7e0eb;background:#fff;border-radius:8px;padding:8px 16px;color:#1b518c}@media(max-width:991px){.ag-profile-sidebar{position:static}.ag-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:575px){.ag-profile-hero-inner{padding-top:30px;padding-bottom:34px;gap:17px;align-items:flex-start}.ag-profile-logo{flex-basis:86px;height:86px;padding:10px;border-radius:12px}.ag-profile-logo>i{font-size:38px}.ag-profile-hero h1{font-size:23px}.ag-profile-hero p{font-size:13px}.ag-profile-tabs{padding-right:0}.ag-profile-tab-links{gap:12px}.ag-profile-tab-links a{font-size:12px}.ag-share-btn{display:none}.ag-about-card{grid-template-columns:1fr}.ag-about-illustration{min-height:100px}.ag-category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ag-product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.ag-product-image{height:145px}.ag-product-details{padding:11px}.ag-product-details h3{font-size:13px}.ag-product-action{font-size:11px}.ag-profile-content{padding-top:25px}}

/* Compact Supplier Profile breadcrumb and CKEditor content */
.ag-profile-crumb .container{flex-wrap:nowrap;min-width:0;gap:9px;}
.ag-profile-crumb-current{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:min(60vw,460px);min-width:0;}
.ag-about-description.ag-rich-content{min-width:0;overflow-wrap:anywhere;line-height:1.9;}
.ag-rich-content>*:first-child{margin-top:0;}
.ag-rich-content>*:last-child{margin-bottom:0;}
.ag-rich-content img{max-width:100%;height:auto;border-radius:8px;}
.ag-rich-content table{width:100%;max-width:100%;display:block;overflow-x:auto;}
.ag-rich-content h2,.ag-rich-content h3{font-size:1.2rem;margin:1.2em 0 .55em;}
.ag-rich-content ul,.ag-rich-content ol{padding-left:1.5rem;}
@media(max-width:575px){.ag-profile-crumb-current{max-width:64vw;}}

/* Filter products within supplier profile */
.ag-category-tile.is-selected{border-color:#f97316;background:#fff7ed;box-shadow:0 0 0 2px #fed7aa;}
.ag-category-tile.is-selected .ag-category-arrow{color:#ea580c;}
.ag-category-filter-notice{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;margin:-5px 0 20px;padding:12px 16px;border:1px solid #bed8f8;border-radius:10px;background:#eff6ff;color:#173e76;font-size:14px;}
.ag-category-filter-notice a{color:#1254a8;font-weight:600;}
.ag-category-filter-notice a:hover{text-decoration:underline;}
html:has(.ag-profile){scroll-behavior:smooth;}
@media(prefers-reduced-motion:reduce){html:has(.ag-profile){scroll-behavior:auto;}}

/* Full-width supplier profile: sidebar removed, content uses entire container. */
.ag-profile-fullwidth{width:100%;}
@media(min-width:1200px){
 .ag-profile-fullwidth .ag-category-grid{grid-template-columns:repeat(4,minmax(0,1fr));}
 .ag-profile-fullwidth .ag-product-grid{grid-template-columns:repeat(4,minmax(0,1fr));}
}
@media(min-width:768px) and (max-width:1199px){
 .ag-profile-fullwidth .ag-category-grid{grid-template-columns:repeat(3,minmax(0,1fr));}
 .ag-profile-fullwidth .ag-product-grid{grid-template-columns:repeat(3,minmax(0,1fr));}
}
@media(max-width:767px){
 .ag-profile-fullwidth .ag-category-grid,.ag-profile-fullwidth .ag-product-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}

/* All supplier products grouped into root categories; no pagination. */
.ag-category-product-section{scroll-margin-top:100px;margin-top:22px;margin-bottom:38px;padding:22px;background:#fff;border:1px solid #e0e9f3;border-radius:16px;box-shadow:0 4px 18px rgba(17,54,99,.04)}
.ag-category-product-section:target{border-color:#ff9a45;box-shadow:0 0 0 2px rgba(255,121,0,.11)}
.ag-category-product-head{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:20px;padding-bottom:15px;border-bottom:1px solid #edf1f6}
.ag-category-product-label{font-size:12px;color:#ed7100;font-weight:600;display:inline-flex;gap:7px;align-items:center}
.ag-category-product-head h3{font-size:clamp(19px,2vw,25px);font-weight:700;color:#102e58;margin:5px 0}
.ag-category-product-head p{font-size:12px;color:#73839a;margin:0}
.ag-back-to-categories{font-size:13px;color:#1254a8;font-weight:600;white-space:nowrap}
.ag-back-to-categories:hover{text-decoration:underline}
.ag-category-total{font-size:12px;color:#64748b}
.ag-profile-fullwidth .ag-category-product-section .ag-product-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(min-width:768px) and (max-width:1199px){.ag-profile-fullwidth .ag-category-product-section .ag-product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:767px){.ag-category-product-section{padding:13px}.ag-profile-fullwidth .ag-category-product-section .ag-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Supplier Profile: six categories and six products per row on desktop. */
@media (min-width: 1400px) {
  .ag-profile-fullwidth .ag-category-grid,
  .ag-profile-fullwidth .ag-product-grid,
  .ag-profile-fullwidth .ag-category-product-section .ag-product-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .ag-profile-fullwidth .ag-category-tile { min-height: 134px; padding: 14px 10px; }
  .ag-profile-fullwidth .ag-category-icon { height: 58px; }
  .ag-profile-fullwidth .ag-category-icon img { max-height: 58px; max-width: 86px; }
  .ag-profile-fullwidth .ag-product-image { height: 155px; padding: 10px; }
  .ag-profile-fullwidth .ag-product-details { padding: 11px; }
  .ag-profile-fullwidth .ag-product-details h3 { font-size: 13px; }
}
@media (min-width: 992px) and (max-width: 1399px) {
  .ag-profile-fullwidth .ag-category-grid,
  .ag-profile-fullwidth .ag-product-grid,
  .ag-profile-fullwidth .ag-category-product-section .ag-product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (min-width: 768px) and (max-width: 991px) {
  .ag-profile-fullwidth .ag-category-grid,
  .ag-profile-fullwidth .ag-product-grid,
  .ag-profile-fullwidth .ag-category-product-section .ag-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 767px) {
  .ag-profile-fullwidth .ag-category-grid,
  .ag-profile-fullwidth .ag-product-grid,
  .ag-profile-fullwidth .ag-category-product-section .ag-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
