/* ══════════════════════════════════════════════
   브랜드 리스트 — 모던 카드 그리드 (kolabshop amber 톤)
   ══════════════════════════════════════════════ */
/* gnuboard 자동생성 page-title-wrap (브랜드 리스트 텍스트) 제거
   — 우리 자체 헤더로 대체되었으므로 중복 표시 방지 */
.page-title-wrap { display: none !important; }

.page-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px 60px;
    line-height: 1.5;
    word-break: keep-all;
    word-wrap: break-word;
}

/* ── 헤더 ── */
.kp-bl-head {
    position: relative;
    display: flex; flex-direction: column; align-items: center;
    text-align: center;
    gap: 6px;
    margin: 22px 0 30px;
    padding-bottom: 24px;
    border-bottom: 2px solid #f8b500;
}
.kp-bl-eyebrow {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 18px;
    background-image: linear-gradient(110deg,
        #1e40af 0%, #3b82f6 40%, #93c5fd 50%, #3b82f6 60%, #1e40af 100%);
    background-size: 220% 100%;
    color: #fff;
    font-size: 12px; font-weight: 800; letter-spacing: 1.2px;
    text-transform: uppercase;
    border-radius: 999px;
    box-shadow: 0 2px 10px rgba(59,130,246,0.30);
    animation: kpBlShimmer 6s linear infinite;
    margin-bottom: 6px;
    text-shadow: 0 1px 1px rgba(0,0,0,0.12);
}
@keyframes kpBlShimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.kp-bl-eyebrow i { color: #fff; }
.kp-bl-title {
    margin: 0 0 6px !important;
    font-size: 32px !important;
    font-weight: 900;
    color: #111827 !important;
    letter-spacing: -0.8px;
    background: none !important;
    border: 0 !important;
    padding: 0 !important;
}
.kp-bl-sub {
    margin: 0 !important;
    color: #6b7280;
    font-size: 14px;
}
.kp-bl-sub .kp-bl-emph {
    color: #b45309;
    font-weight: 800;
    border-bottom: 2px solid #f8b500;
    padding-bottom: 1px;
}
.kp-bl-count {
    color: #6b7280;
    font-size: 13px;
    margin-top: 8px;
}
.kp-bl-count strong {
    color: #f8b500;
    font-weight: 800;
    font-size: 16px;
}

/* ── 브랜드 검색바 ── */
.kp-bl-search-wrap {
    max-width: 480px;
    margin: 0 auto 26px;
}
.kp-bl-search {
    position: relative;
    display: flex; align-items: center;
    background: #fff;
    border: 2px solid #f8b500;
    border-radius: 999px;
    padding: 0 16px 0 44px;
    box-shadow: 0 2px 10px rgba(248,181,0,0.15);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.kp-bl-search:focus-within {
    border-color: #d97706;
    box-shadow: 0 0 0 4px rgba(248,181,0,0.25);
}
.kp-bl-search-icon {
    position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
    color: #d97706;
    font-size: 15px;
    pointer-events: none;
}
.kp-bl-search:focus-within .kp-bl-search-icon { color: #f8b500; }
.kp-bl-search input {
    flex: 1;
    border: 0; outline: 0;
    padding: 13px 0;
    background: transparent;
    font-size: 14px;
    color: #111827;
    width: 100%;
}
.kp-bl-search input::placeholder { color: #9ca3af; }
.kp-bl-search-clear {
    flex-shrink: 0;
    width: 24px; height: 24px;
    border: 0; background: #f3f4f6;
    color: #6b7280;
    border-radius: 50%;
    font-size: 18px; line-height: 1;
    cursor: pointer;
    transition: background .12s ease, color .12s ease;
}
.kp-bl-search-clear:hover { background: #ef4444; color: #fff; }
.kp-bl-search-result {
    text-align: center;
    margin-top: 8px;
    color: #6b7280;
    font-size: 12.5px;
}
.kp-bl-search-result #kp-bl-search-count {
    color: #b45309; font-weight: 800;
}

/* ── 빈 상태 ── */
.kp-bl-empty {
    text-align: center;
    padding: 60px 20px;
    background: #fafafa;
    border: 1px dashed #e5e7eb;
    border-radius: 14px;
    color: #9ca3af;
    margin: 16px 0;
}
.kp-bl-empty i {
    font-size: 42px; color: #f3f4f6;
    display: block; margin-bottom: 12px;
}
.kp-bl-empty p {
    margin: 0 0 16px; font-size: 14px; color: #6b7280;
}
.kp-bl-empty-cta {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 22px;
    background: #111827; color: #fff !important;
    border: 0;
    border-radius: 999px;
    font-weight: 600; font-size: 13px;
    cursor: pointer;
    transition: background .15s ease;
}
.kp-bl-empty-cta:hover { background: #1f2937; }

/* ── 하단 문의 CTA 섹션 ── */
.kp-bl-cta {
    margin: 50px 0 20px;
    padding: 36px 28px;
    border-radius: 18px;
    background:
        radial-gradient(ellipse at top right, #fff8e6 0%, transparent 55%),
        radial-gradient(ellipse at bottom left, #eff6ff 0%, transparent 55%),
        #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}
.kp-bl-cta-inner {
    display: flex; align-items: center; gap: 24px;
    max-width: 920px; margin: 0 auto;
}
.kp-bl-cta-icon {
    flex-shrink: 0;
    width: 64px; height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f8b500 0%, #fcae18 100%);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px;
    box-shadow: 0 6px 16px rgba(248,181,0,0.35);
}
.kp-bl-cta-body { flex: 1; min-width: 0; }
.kp-bl-cta-body h3 {
    margin: 0 0 6px;
    font-size: 18px; font-weight: 800; color: #111827;
    letter-spacing: -0.3px;
}
.kp-bl-cta-body p {
    margin: 0; color: #6b7280; font-size: 13.5px; line-height: 1.6;
}
.kp-bl-cta-body p strong { color: #b45309; font-weight: 800; }
.kp-bl-cta-actions {
    flex-shrink: 0;
    display: flex; flex-direction: column; gap: 8px;
}
.kp-bl-cta-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 11px 22px;
    border-radius: 999px;
    background: #fff;
    color: #1f2937 !important;
    border: 1.5px solid #e5e7eb;
    font-weight: 700; font-size: 13.5px;
    text-decoration: none !important;
    transition: all .15s ease;
    white-space: nowrap;
}
.kp-bl-cta-btn:hover {
    border-color: #f8b500;
    color: #b45309 !important;
    transform: translateY(-1px);
    background: #fffbeb;
}
.kp-bl-cta-btn.primary {
    background: linear-gradient(135deg, #f8b500 0%, #fcae18 100%);
    color: #fff !important;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(248,181,0,0.35);
}
.kp-bl-cta-btn.primary:hover {
    background: linear-gradient(135deg, #fcae18 0%, #f8b500 100%);
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(248,181,0,0.45);
}

@media (max-width: 768px) {
    .kp-bl-cta { padding: 28px 20px; }
    .kp-bl-cta-inner { flex-direction: column; text-align: center; gap: 16px; }
    .kp-bl-cta-actions { flex-direction: row; width: 100%; justify-content: center; flex-wrap: wrap; }
}
@media (max-width: 540px) {
    .kp-bl-cta-actions { flex-direction: column; }
    .kp-bl-cta-btn { width: 100%; }
}

/* ── 브랜드 카드 그리드 ── */
#brand_list {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
    margin: 0 auto;
    width: 100%;
    /* 기존 float clearfix 무력화 */
    clear: both;
}
#brand_list::after { content: none; }
#brand_list ul { list-style: none; padding: 0; margin: 0; }
#brand_list ul li { border: 0; }

#brand_list .brand_item {
    /* 기존 float / margin / width 무력화 (grid 가 layout 담당) */
    float: none;
    width: auto;
    margin: 0;
    text-align: left;
    letter-spacing: normal;
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
    position: relative;
}
#brand_list .brand_item a {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-top: 4px solid #9ca3af;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none !important;
    color: inherit !important;
    transition: transform .25s cubic-bezier(.2,.6,.3,1),
                box-shadow .25s ease,
                border-color .25s ease;
    box-shadow: 0 2px 6px rgba(17,24,39,0.06);
}
/* 카드 상단 컬러바 — 5가지 색상 순환 */
#brand_list .brand_item:nth-child(5n+1) a { border-top-color: #f8b500; }
#brand_list .brand_item:nth-child(5n+2) a { border-top-color: #3b82f6; }
#brand_list .brand_item:nth-child(5n+3) a { border-top-color: #10b981; }
#brand_list .brand_item:nth-child(5n+4) a { border-top-color: #ec4899; }
#brand_list .brand_item:nth-child(5n+5) a { border-top-color: #8b5cf6; }
#brand_list .brand_item a:hover {
    transform: translateY(-4px);
    border-color: #f8b500;
    box-shadow: 0 12px 28px rgba(248,181,0,0.18);
}

/* 로고 영역 — 흰 배경 + 로고 가득 채움 */
#brand_list .brand_img {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid #ececec;
    padding: 10px;
    box-sizing: border-box;
}
#brand_list .brand_item a:hover .brand_img {
    border-bottom-color: #fde68a;
}
#brand_list .brand_img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
    transition: transform .35s cubic-bezier(.2,.6,.3,1);
}
#brand_list .brand_item a:hover .brand_img img {
    transform: scale(1.06);
}
/* 폴백 로고 — 코랩샵 기본 로고는 작게/연하게 표시 */
#brand_list .brand_img.is-fallback {
    background: #fafafa;
}
#brand_list .brand_img.is-fallback img {
    width: 55% !important;
    height: 55% !important;
    opacity: 0.55;
}
#brand_list .brand_item a:hover .brand_img.is-fallback img {
    opacity: 0.75;
    transform: scale(1.06);
}

/* 브랜드명 영역 */
#brand_list .brand_name {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    height: auto;
    padding: 14px 16px;
    background: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    color: #1f2937;
    transition: background .25s ease, color .25s ease;
}
#brand_list .brand_item a:hover .brand_name {
    background: #f8b500;
    color: #fff;
}
#brand_list .brand_name .brand_name-text {
    flex: 1; min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
#brand_list .brand_name .brand_name-arrow {
    flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: #fffbeb;
    color: #b45309;
    font-size: 11px;
    transition: all .2s ease;
}
#brand_list .brand_item a:hover .brand_name .brand_name-arrow {
    background: #fff;
    color: #b45309;
    transform: translateX(2px);
}

/* ── 반응형 ── */
@media (max-width: 1199px) {
    #brand_list { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
}
@media (max-width: 991px) {
    #brand_list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .kp-bl-title { font-size: 26px !important; }
}
@media (max-width: 768px) {
    #brand_list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
    .kp-bl-head { margin: 16px 0 24px; padding-bottom: 18px; }
    #brand_list .brand_name { padding: 12px 14px; font-size: 13px; }
}
@media (max-width: 540px) {
    #brand_list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .kp-bl-title { font-size: 22px !important; }
    .kp-bl-sub { font-size: 13px; }
}
