.kg-main-brand,.kg-brand-page{font-family:Notokr;color:#222;box-sizing:border-box}
.kg-main-brand *,.kg-brand-page *{box-sizing:border-box}

.kg-main-brand{background:#fff;padding:0;margin:0;width:100%}

.kg-brand-tabs{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin-bottom:20px;align-items:center;}
.kg-brand-tabs button{width:100px;height:60px;border-radius:50px;background:#f5f5f5;border:1px solid #ccc;cursor:pointer;padding:10px}
.kg-brand-tabs button[aria-selected=true]{background:#fff5f5;border-color:#f5121a}
.kg-brand-tabs button:hover {border-color:#f5121a}
.kg-brand-tabs button img{/*width:100%;height:100%;*/max-width:70px;object-fit:contain}
.kg-brand-tabs > a img{max-width:none;width:auto;height:auto}
.kg-brand-tabs .all { height: 38px; }

.kg-brand-panel{display:grid;grid-template-columns:473px minmax(0,1fr);gap:20px}
.kg-brand-panel[hidden],.kg-brand-page [hidden]{display:none!important}
.kg-brand-cover{display:block;width:473px;height:400px;position:relative;border-radius:20px;overflow:hidden;background:#eee}
.kg-brand-cover>img{width:473px;height:400px;object-fit:cover}
.kg-brand-cover>span:first-child{display:flex;height:100%;align-items:center;justify-content:center;font-size:28px}
.kg-brand-more{position:absolute;right:20px;top:30px;color:white;background:rgba(0,0,0,.4);border-radius:30px;font-size:13px;letter-spacing:-1px;width:90px;height:38px;line-height:38px;text-align:center; font-family:notork; }
.kg-brand-more img { vertical-align: middle; margin-left: 5px;}

.kg-brand-products{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px; }
.kg-brand-product{position:relative;min-width:0;padding-top:55px;}
.kg-brand-product a{color:#222;display:block}
.kg-product-image{width:100%;aspect-ratio:1;object-fit:contain;background:white;border-radius:12px;border:solid 1px #ccc;}
.kg-product-name{font-size:15px;line-height:1.5;height:60px;overflow:hidden;margin:0 0 8px;padding-top:15px;color:#222;}
.kg-product-model{font-size:14px;color:#888;}
.kg-brand-product strong{font-size:16px}
.kg-brand-wish{position:absolute;right:8px;top:230px;width:28px;height:28px;border-radius:50%;border:1px solid white;background:white;box-shadow:0 0 2px #aaa;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0}
.kg-brand-products a { font-family: Notokr; }

.kg-brand-page{width:100%;padding-bottom:60px; margin-top: 30px; }
.kg-brand-page > :not(#kg-brand-results),.kg-brand-page > :not(#kg-brand-results) *,.kg-brand-page .kg-brand-selected,.kg-brand-page .kg-brand-selected *{font-family:notokr!important}
.kg-brand-banner{height:226px;text-align:center;padding:30px 0;background: url("/ez/img/brand_bg.png") no-repeat center center;}
.kg-brand-banner h1{font-family:"Pretendard-Bold";font-weight:bold;font-size:50px;margin:5px 0 8px;letter-spacing:1px;color:#000}
.kg-brand-banner p{font-size:16px;margin:0 0 18px}
.kg-brand-banner form{width:285px;height:40px;display:flex;margin:auto;border:1px solid #7fa3ff;background:white}
.kg-brand-banner input{border:0;min-width:0;flex:1;padding:10px 16px;outline:none}
.kg-brand-banner button{border:0;background:white;cursor:pointer;width:48px;font-size:12px}

.kg-brand-initials{display:flex;gap:8px;justify-content:center;align-items:center;margin:40px 0}
.kg-brand-initials span{font-size:13px}
.kg-brand-initials b{color:red}
.kg-brand-initials button{border:1px solid #ddd;color:#777;background:white;min-width:32px;height:32px;cursor:pointer}
.kg-brand-initials button[aria-pressed=true]{border-color:red;color:red}

.kg-brand-categories{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;margin-bottom:65px}
.kg-brand-categories button{border:0;background:#f4f4f5;border-radius:30px;padding:14px 17px;cursor:pointer;font-size:14px;color:#555}
.kg-brand-categories button[aria-pressed=true]{background:#241b18;color:white}

.kg-brand-group{margin-bottom:60px}
.kg-brand-group h2,.kg-brand-all-title{font-size:20px;margin:0 0 30px;display:flex;align-items:center;gap:18px}
.kg-brand-group h2:after,.kg-brand-all-title:after{content:'';height:1px;background:#e6e6e6;flex:1}
.kg-brand-logos{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:30px 22px;padding:0 28px}
.kg-brand-logo{display:flex;flex-direction:column;align-items:center;gap:8px;font-size:13px;color:#555;min-width:0}
.kg-logo-box{position:relative;box-sizing:border-box;border:1px solid #e6e6e6;display:flex;align-items:center;justify-content:center;flex-shrink:0;width:132px;height:62px}
.kg-logo-box>img:not(.kg-brand-new){display:block;box-sizing:content-box;flex:none;width:130px;height:60px;max-width:none;padding:0;border:0;object-fit:contain}
.kg-logo-box .kg-brand-new{position:absolute;top:3px;right:3px;width:30px;height:auto}
.kg-brand-logo:hover,.kg-brand-logo:focus{color:red}
.kg-brand-logo:hover .kg-logo-box,.kg-brand-logo:focus .kg-logo-box{border-color:red}
.kg-brand-selected{text-align:center;margin:0 0 50px}
.kg-brand-selected > a >div{width:222px;min-height:96px;margin:auto;}
.kg-brand-selected img{width:220px;height:96px;object-fit:contain}
.kg-brand-selected h2{font-size:20px;font-weight:400;color:#000;margin:10px 0}
.kg-brand-empty{text-align:center;padding:40px;color:#666}
.kg-brand-page #kg-brand-results[aria-busy=true]{opacity:.5;pointer-events:none}
.kg-brand-selected > a { display: inline-block; }
.kg-brand-selected > a:hover > div { outline: solid 1px red; }
.kg-brand-selected > a:hover h2 { color: red; }
/* 2026-11-24 - Show filtered brands as one continuous grid in the all tab. */
#kg-brand-directory.kg-brand-flat{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:30px 22px;padding:0 28px}
#kg-brand-directory.kg-brand-flat .kg-brand-group,#kg-brand-directory.kg-brand-flat .kg-brand-logos{display:contents}
#kg-brand-directory.kg-brand-flat .kg-brand-group h2{display:none}
#kg-brand-directory.kg-brand-flat>.kg-brand-empty{grid-column:1/-1}
/* 2026-11-24 - Keep the all-brands heading aligned with existing category headings. */
.kg-brand-all-title{grid-column:1/-1;margin:0 -28px}
