/* ============================================================
   개인몰(Personal Mall) 전용 추가 스타일
   style_add.css 하단에 추가 또는 별도 include
   ============================================================ */

/* ---- 개인몰 메인 래퍼: 단일 컬럼 ---- */
.pm-main-content {
    max-width: 1200px;
    margin: 15px auto;
    padding1: 0 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ---- 메인 배너 영역 전체 너비 ---- */
.pm-banner-section {
    width: 100%;
}
.pm-banner-section .main-banner {
    width: 100%;          /* 학교몰 .main-banner flex 너비 오버라이드 */
    flex: none;
    height: 450px;
}
.pm-banner-section .main-banner-slider {
    border-radius: 10px;
    overflow: hidden;
}
.pm-banner-section .main-banner-slide {
    min-width: 100%;
    height: 450px;
}

.pm-banner-section .main-banner-arrow.prev {
  top: 405px;
  left: 55%;
  border:solid 1px #e5e5e5;
}

.pm-banner-section .main-banner-arrow.next {
  top: 405px;
  right: 37%;
  border:solid 1px #e5e5e5;
}

.pm-banner-section .main-banner-indicators {
    position: absolute;
    bottom: 35px;
  }


/* ---- 섹션 공통: 전체 너비 적용 ---- */
.pm-section {
    width: 100%;
    height: auto;
    box-sizing: border-box;
    border: none;
    background:none;
    box-shadow:none;
}

/* ---- section-header: 제목 + 부제 + 더보기 한 줄 배치 ---- */
.pm-section .section-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}
.pm-section-subtitle {
    font-size: 16px;
    color: #3D8BD9;
    font-weight: 500;
}
.pm-more-link {
    margin-left: auto;
    font-size: 14px;
    color: #888;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s;
}
.pm-more-link:hover { color: #3D8BD9; }

/* ---- 개인몰 product-slider-container: 전체 너비 ---- */
.pm-section .product-slider-container {
    margin1: 0 15px;       /* 화살표 공간 확보 */
}

.pm-section .product-grid{
    gap: 26px;       /* 화살표 공간 확보 */
}

/* ---- 개인몰 product-card: 4열 기준 ---- */
.pm-section .product-card {
    flex: 0 0 calc((100% - 80px) / 4);
    max-width: 320px;
    min-width: 160px;
}

/* ---- 이벤트 배너 슬라이더 ---- */
.pm-event-slider-wrapper {
    position: relative;
    margin: 0 15px;
}
.pm-event-grid {
    display: flex;
    gap: 20px;
    overflow-x: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.pm-event-grid::-webkit-scrollbar { display: none; }
.pm-event-card {
    flex: 0 0 calc((100% - 40px) / 3);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s;
    cursor: pointer;
}
.pm-event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(61, 139, 217, 0.2);
}
.pm-event-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

/* ---- 돌아가기 링크 (헤더) ---- */
.pm-back-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: #3D8BD9;
    font-size: 12px;
    font-weight: bold;
    min-width: 80px;
    transition: opacity 0.2s;
}
.pm-back-link:hover { opacity: 0.75; }
.pm-back-text {
    font-size: 11px;
    color: #666;
}

/* ---- 푸터 고객센터/계좌 인포 박스 ---- */
.pm-footer-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
    padding: 30px;
    background: rgba(255,255,255,0.07);
    border-radius: 10px;
}
.pm-footer-cs,
.pm-footer-bank {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}
.pm-footer-cs-label {
    font-size: 14px;
    color: #aaa;
    margin-bottom: 4px;
}
.pm-footer-cs-tel {
    font-size: 28px;
    font-weight: bold;
    color: #fff;
    letter-spacing: -0.5px;
    line-height: 1.2;
    margin-bottom: 8px;
}
.pm-footer-cs-detail p {
    font-size: 13px;
    line-height: 1.7;
}
.pm-footer-bank-detail p {
    font-size: 13px;
    line-height: 1.7;
}

/* ---- 푸터 돌아가기 ---- */
.pm-back-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #ccc;
    font-size: 13px;
    transition: opacity 0.2s;
}
.pm-back-footer:hover { opacity: 0.75; color: #fff; }

/* ---- 반응형 ---- */
@media (max-width: 1024px) {
    .pm-section .product-card {
        flex: 0 0 calc((100% - 40px) / 3);
    }
    .pm-event-card {
        flex: 0 0 calc((100% - 20px) / 2);
    }
    .pm-footer-info {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    .pm-main-content { padding: 0 12px; }
    .pm-banner-section .main-banner-slide { height: 220px; }
    .pm-section .product-card {
        flex: 0 0 calc((100% - 20px) / 2);
        max-width: none;
    }
    .pm-event-card {
        flex: 0 0 90%;
    }
}


/* ============================================================
   GNB 상단 고정(fixed) 시 로고 · 샘몰 바로가기 표시
   ============================================================ */

/* ============================================================
   GNB 상단 고정(fixed) 시 로고 · 샘몰 바로가기 표시
   - padding 없음 (남은 공간에 이미지 축소 배치)
   - displayCodeContent 반환 .logo div 의 고정 width/height 강제 오버라이드
   ============================================================ */


/* ── 공통: 기본 숨김 ────────────────────────────────────── */
.gnb-fixed-left,
.gnb-fixed-right {
    display: none;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    bottom: 0;           /* nav 높이 100% 세로 중앙 */
    overflow: hidden;
    text-decoration: none;
    transition: opacity 0.2s;
    padding: 0;
    margin: 0;
    z-index: 5;          /* mega-menu(z-index 높음)보다 낮게 */
}

/* ── 위치: 1200px container 좌우 끝에 맞춤 ─────────────────
   container max-width:1200px, margin:0 auto 기준
   좌측 끝 = 50vw - 600px   우측 끝 = 50vw + 600px         */
.gnb-fixed-left  {
    right: calc(50% + 600px);   /* container 왼쪽 끝 바로 바깥 */
    left1: 0;                    /* 뷰포트 왼쪽까지 채움 */
    justify-content: flex-end;  /* 이미지를 오른쪽(container쪽)으로 붙임 */
}
.gnb-fixed-right {
    left:  calc(50% + 600px);   /* container 오른쪽 끝 바로 바깥 */
    right1: 0;                   /* 뷰포트 오른쪽까지 채움 */
    justify-content: flex-start;/* 이미지를 왼쪽(container쪽)으로 붙임 */
}

.gnb-fixed-left:hover,
.gnb-fixed-right:hover { opacity: 0.75; }

.gnb-fixed-left:hover,
.gnb-fixed-right:hover { opacity: 0.75; }

/* ── 위치 ─────────────────────────────────────────────── */
.gnb-fixed-left  { left1: 0; }
.gnb-fixed-right{ right1: 0; }

/* ── displayCodeContent 가 생성하는 .logo div 래퍼 강제 제어 ── */
/* width/height HTML 속성(200/65)보다 !important CSS가 우선함   */
.gnb-fixed-left .logo,
.gnb-fixed-left  div,
.gnb-fixed-right .logo,
.gnb-fixed-right div {
    width: auto !important;
    height: 100% !important;       /* nav 높이에 맞춤 */
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
}

/* ── 이미지 크기: nav 높이(약 44px)에 맞게 축소 ─────── */
.gnb-fixed-left img,
.gnb-fixed-right img {
    width: auto !important;        /* HTML width 속성 무효화 */
    height: 40px !important;       /* HTML height 속성 무효화 */
    max-height: 45px !important;
    max-width: 100px !important;

    object-fit: contain !important;
    display: block !important;
    flex-shrink: 0;
}

/* ── 우측: "샘mall 바로가기 →" 텍스트 레이블 ──────── */
.gnb-fixed-right::after {
    content1: 'mall 바로가기 →';   /* '샘' 은 로고 이미지가 담당 */
    content:'';
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    background: #3D8BD9;
    padding: 4px 10px;
    border-radius: 14px;
    white-space: nowrap;
    margin-left: 4px;
    line-height: 1;
}

/* ── fixed 클래스 붙었을 때만 노출 ──────────────────── */
.mega-menu-wrapper.fixed .gnb-fixed-left,
.mega-menu-wrapper.fixed .gnb-fixed-right {
    display: flex;
}

/* ── fixed nav: position fixed + 높이 유지 ──────────── */
.mega-menu-wrapper.fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}

.mega-menu-wrapper.fixed1 .inner_menu_box1 {
    opacity: 0;  transform: translateY(-8px);  visibility: hidden;
    transition: opacity 0.2s, transform 0.2s, visibility 0.0s 0.7s;
}

/* inner_menu_box — 부드러운 페이드 (0.3s → 0.6s) */
.mega-menu-wrapper .inner_menu_box {
    opacity: 1;
    height: 450px;
    transform: translateY(0);
    visibility: visible;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0s;
}
.mega-menu-wrapper.fixed .inner_menu_box {
    opacity: 0;
    transform: translateY(-8px);
    visibility: hidden;
    transition: opacity 0.5s ease, transform 0.5s ease, visibility 0s linear 0.6s;
}

/* ── fixed 시 container 는 padding 변경 없음 ─────────
   로고/샘몰 요소가 absolute 이므로 컨테이너 흐름에
   영향을 주지 않아 padding 추가 불필요.
   단, 로고와 겹치는 좌우 첫 메뉴 항목이 문제될 경우
   아래 주석 해제
   ──────────────────────────────────────────────────── */
/*
.mega-menu-wrapper.fixed .container {
    padding-left:  150px;
    padding-right: 160px;
}
*/


/* ── 반응형 ─────────────────────────────────────────── */
@media (max-width: 1280px) {
    /* 텍스트 레이블 숨김, 이미지만 표시 */
    .gnb-fixed-sammal::after { display: none; }
}
@media (max-width: 1024px) {
    /* 작은 화면에선 로고/샘몰 완전 숨김 */
    .mega-menu-wrapper.fixed .gnb-fixed-logo,
    .mega-menu-wrapper.fixed .gnb-fixed-sammal { display: none !important; }
}

 /* 기존 학교몰 footer 색 유지 */
.pm-footer {
    background: #2c3e50;
    color: #ccc;
    padding: 40px 0 0;
    font-size: 13px;
    line-height: 1.8;
}

/* ── 정보 박스: 고객센터 + 계좌 2단 ────────────────── */
.pm-footer-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 30px;
    margin-bottom: 0;
    background: rgba(255,255,255,0.06);
    border-radius: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.pm-footer-cs,
.pm-footer-bank {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* 아이콘 박스 */
.pm-footer-icon-wrap {
    width: 100px;
    height: 100px;
    min-width: 100px;
    background1: rgba(255,255,255,0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.pm-footer-icon-wrap img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

/* 텍스트 */
.pm-footer-cs-label {
    font-size: 13px;
    color: #aaa;
    margin-bottom: 2px;
}
.pm-footer-cs-tel {
    font-size: 26px;
    font-weight: bold;
    color: #fff;
    letter-spacing: -0.5px;
    line-height: 1.3;
    margin-bottom: 6px;
}
.pm-footer-cs-detail p,
.pm-footer-bank-detail p {
    font-size: 13px;
    line-height: 1.7;
    color: #ccc;
}

/* ── 링크 메뉴 ──────────────────────────────────────── */
.pm-footer-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    flex-wrap: wrap;
}
.pm-footer-nav a {
    color: #ccc;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}
.pm-footer-nav a:hover { color: #fff; }
.pm-footer-nav a strong { color: #fff; }
.pm-footer-nav-sep { color: #555; }

/* ── 하단 사업자 + 돌아가기 ─────────────────────────── */
.pm-footer-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 24px 0 30px;
    gap: 20px;
}
.pm-footer-biz p {
    font-size: 12px;
    line-height: 1.8;
    color: #999;
}
.pm-footer-copy {
    margin-top: 8px;
    color: #777 !important;
}

/* 돌아가기 링크 */
.pm-back-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #ccc;
    font-size: 13px;
    white-space: nowrap;
    transition: opacity 0.2s;
    flex-shrink: 0;
}
.pm-back-footer:hover { opacity: 0.75; color: #fff; }
.pm-back-footer img {
    height: 48px;
    width: auto;
    object-fit: contain;
}
.pm-back-footer-txt {
    font-size: 18px;
    font-weight: bold;
    color: #3D8BD9;
}

.pm-banner-break {
    left: 50%;                      /* ① 부모(1200px) 중앙으로 이동 */
    transform: translateX(-50vw);   /* ② 뷰포트 왼쪽 끝으로 당김 */
    width: 100vw;                   /* ③ 뷰포트 전체 너비로 확장 */
    position: relative;
    top: -10px;
}

/* ── 반응형 ─────────────────────────────────────────── */
@media (max-width: 1024px) {
    .pm-footer-info {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    .pm-footer-info {
        padding: 20px;
        gap: 20px;
    }
    .pm-footer-cs-tel {
        font-size: 20px;
    }
    .pm-footer-icon-wrap {
        width: 56px;
        height: 56px;
        min-width: 56px;
    }
    .pm-footer-icon-wrap img {
        width: 40px;
        height: 40px;
    }
    .pm-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
    .pm-back-footer {
        flex-direction: row;
        align-self: flex-end;
    }
    .pm-footer-nav {
        gap: 8px;
        font-size: 12px;
    }
}

/* ============================================================
   브랜드 섹션 (pm-brand-section)
   style_add_personal.css 하단에 추가
   ============================================================ */

/* ── 섹션 래퍼 ─────────────────────────────────────────────── */
.pm-brand-section {
    height: auto;
    text-align: center;
    background: #f4f8fd;
    border-radius: 14px;
    padding: 28px 24px 32px;
    box-shadow: 0 2px 12px rgba(61, 139, 217, 0.07);
}

.pm-brand-section .section-header {
  font-size:20px;
  display:block;
  color:black;
}

/* ── 브랜드 탭 영역 ─────────────────────────────────────────── */
.pm-brand-tab-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 20px;
}

.pm-brand-tab-track {
    display: flex;
    gap: 10px;
    overflow-x: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    justify-content:center;
    -ms-overflow-style: none;
    flex: 1;
    padding: 4px 2px;
    cursor: grab;
}
.pm-brand-tab-track::-webkit-scrollbar { display: none; }
.pm-brand-tab-track.grabbing { cursor: grabbing; }

.pm-brand-tab {
    flex: 0 0 auto;
    padding: 7px 18px;
    border: 1.5px solid #d0e4f7;
    border-radius: 20px;
    background: #fff;
    color: #555;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
    user-select: none;
}
.pm-brand-tab:hover {
    border-color: #3D8BD9;
    color: #3D8BD9;
}
.pm-brand-tab.active {
    background: var(--basic-blue);
    border-color: var(--basic-blue);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(61, 139, 217, 0.25);
}

/* 탭 좌우 화살표 */
.pm-brand-tab-arrow {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    border: 1.5px solid #d0e4f7;
    border-radius: 50%;
    background: #fff;
    color: #3D8BD9;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s;
    line-height: 1;
    padding-bottom: 2px;
}
.pm-brand-tab-arrow:hover {
    background: #3D8BD9;
    border-color: #3D8BD9;
    color: #fff;
}

/* ── 배너 슬라이더 외부 wrapper ─────────────────────────────── */
.pm-brand-banner-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;  /* 슬라이드 트랙이 넘치지 않게 */
    user-select: none;
}

/* 드래그 중 cursor */
.pm-brand-banner-wrapper[style*="grabbing"] { cursor: grabbing !important; }

/* ── 슬라이드 트랙: flex + transform 슬라이드 ── */
.pm-brand-banner-track {
    display: flex;
    transition: transform 0.42s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* ── 슬라이드 1장: 배너 위 + 상품 아래, 세로(column) 스택 ── */
.pm-brand-banner-slide {
    flex: 0 0 100%;          /* 항상 wrapper 너비 100% */
    min-width: 0;
    display: flex;
    flex-direction: column;  /* 배너(위) → 상품(아래) */
}

/* ── ① 배너 이미지 영역 (높이 300px) ────────────────────────── */
.pm-brand-banner-link {
    display: block;
    width: 100%;
    text-decoration: none;
    flex-shrink: 0;
}

.pm-brand-banner-img-wrap {
    position: relative;
    width: 100%;
    height: 300px;           /* 배너 고정 높이 */
    overflow: hidden;
}
.pm-brand-banner-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;    /* 드래그 중 img 드래그 방지 */
    transition: transform 0.4s ease;
}
.pm-brand-banner-link:hover .pm-brand-banner-img-wrap img {
    transform: scale(1.03);
}

/* 어두운 그라디언트 오버레이 */
.pm-brand-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.05) 0%,
        rgba(0, 0, 0, 0.50) 100%
    );
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.3s;
    pointer-events: none;    /* 드래그 시 이벤트 통과 */
}
.pm-brand-banner-link:hover .pm-brand-banner-overlay {
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.10) 0%,
        rgba(0, 0, 0, 0.60) 100%
    );
}

/* 브랜드명 텍스트 */
.pm-brand-banner-name {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
    text-align: center;
}

/* '전체보기' 버튼형 텍스트 */
.pm-brand-banner-more {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 16px;
    padding: 5px 16px;
    backdrop-filter: blur(4px);
    transition: background 0.2s;
}
.pm-brand-banner-link:hover .pm-brand-banner-more {
    background: rgba(255, 255, 255, 0.30);
}

/* ── ② 대표 상품 2개 — 배너 아래 가로 한 줄 ─────────────────── */
.pm-brand-products {
    display: flex;           /* 가로 배치 */
    gap: 0;
    background: #fff;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
    min-height: 120px;       /* 로딩 중 높이 유지 */
}

/* 로딩 스피너 */
.pm-brand-product-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 8px;
    padding: 20px 0;
}
.pm-loading-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3D8BD9;
    opacity: 0.4;
    animation: pmDotPulse 1.2s infinite ease-in-out;
}
.pm-loading-dot:nth-child(2) { animation-delay: 0.2s; }
.pm-loading-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes pmDotPulse {
    0%, 80%, 100% { opacity: 0.3; transform: scale(0.85); }
    40%           { opacity: 1;   transform: scale(1.15); }
}

/* AJAX 응답 래퍼 (.pm-brand-products-row) */
.pm-brand-products-row {
    display: flex;
    width: 100%;
}

/* 상품 카드 — 50% 너비씩 가로 2열 */
.pm-brand-product-card {
    flex: 1 1 50%;
    min-width: 0;
    border-top: 1.5px solid #e8f0f9;
    transition: background 0.18s;
}
.pm-brand-product-card + .pm-brand-product-card {
    border-left: 1.5px solid #e8f0f9;
}
.pm-brand-product-card:hover {
    background: #f0f7ff;
}

/* 카드 내부 링크 (가로: 이미지 | 텍스트) */
.pm-bpc-link {
    display: flex;
    align-items: center;
    gap: 0;
    text-decoration: none;
    color: inherit;
    height: 100%;
    padding: 10px 14px 10px 10px;
}

/* 상품 이미지 (100px 고정) */
.pm-bpc-image {
    flex: 0 0 100px;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f7f9fc;
    border-radius: 8px;
    flex-shrink: 0;
}
.pm-bpc-image img {
    width:  100px;
    height: 100px;
    object-fit: contain;
    padding: 2px;
    pointer-events: none;
    transition: transform 0.3s;
}
.pm-brand-product-card:hover .pm-bpc-image img {
    transform: scale(1.06);
}

/* 상품 텍스트 정보 */
.pm-bpc-info {
    flex: 1;
    min-width: 0;
    padding-left: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
}
.pm-bpc-name {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.pm-bpc-price {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.pm-bpc-normal {
    font-size: 12px;
    color: #aaa;
    text-decoration: line-through;
    line-height: 1;
}
.pm-bpc-sale {
    font-size: 15px;
    font-weight: 700;
    color: #3D8BD9;
    line-height: 1;
}

/* 빈 상품 메시지 */
.pm-brand-no-product {
    font-size: 13px;
    color: #aaa;
    text-align: center;
    padding: 22px 0;
    width: 100%;
}

/* ── 배너 좌우 화살표 ── */
.pm-brand-banner-arrow {
    position: absolute;
    top: calc(150px - 18px);   /* 배너(300px) 세로 중앙 */
    transform: none;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 50%;
    color: #444;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
    transition: background 0.2s, color 0.2s;
    padding-bottom: 2px;
    line-height: 1;
}
.pm-brand-banner-arrow:hover {
    background: #3D8BD9;
    border-color: #3D8BD9;
    color: #fff;
}
.pm-brand-banner-arrow.prev { left: 12px; }
.pm-brand-banner-arrow.next { right: 12px; }

/* ── 슬라이드 인디케이터 (배너 하단 안쪽) ── */
.pm-brand-banner-indicators {
    position: absolute;
    bottom: calc(120px + 10px);  /* 상품 영역(120px) 위 + 여백 10px = 배너 하단 */
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 7px;
    pointer-events: none;
    z-index: 5;
}
.pm-brand-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(0, 0, 0, 0.12);
    cursor: pointer;
    pointer-events: auto;
    transition: background 0.2s, transform 0.2s;
}
.pm-brand-indicator.active {
    background: #fff;
    transform: scale(1.35);
}

/* ── 반응형 ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .pm-brand-section {
        padding: 18px 12px 22px;
    }
    .pm-brand-banner-img-wrap {
        height: 200px;         /* 모바일: 배너 높이 축소 */
    }
    .pm-brand-banner-name {
        font-size: 20px;
    }
    .pm-brand-banner-arrow {
        top: calc(100px - 18px);
    }
    .pm-brand-banner-indicators {
        bottom: calc(120px + 6px);
    }
    .pm-bpc-image {
        flex: 0 0 72px;
        width: 72px;
        height: 72px;
    }
    .pm-bpc-image img {
        width: 72px;
        height: 72px;
    }
    .pm-brand-banner-arrow { display: none; }
}
@media (max-width: 480px) {
    /* 아주 좁은 화면에서는 2열 → 1열 */
    .pm-brand-products-row {
        flex-direction: column;
    }
    .pm-brand-product-card + .pm-brand-product-card {
        border-left: none;
        border-top: 1.5px solid #e8f0f9;
    }
}


/* 섹션 헤더 flex 구조 */
.pm-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

}

.pm-brand-section .section-header {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.section-header-left
{ display: flex; flex-direction: row;align-items: flex-end; gap: 10px;}
.section-header-right { display: flex; align-items: center; gap: 6px; }
.pm-page-nav { display: flex; align-items: right; gap: 6px; }

/* 페이지 번호 버튼 */
.pm-page-btn {
    width: 28px; height: 28px;
    border-radius: 50%;
    border: 1.5px solid #cde;
    background: #fff;
    color: #5b8db8;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all .2s;
}
.pm-page-btn.active {
    background: var(--basic-blue);
    border-color: var(--basic-blue);
    color: #fff;
    font-weight: 700;
}
.pm-page-btn:hover:not(.active) {
    background: #eaf2ff;
}
