/* BASIC css start */
.brand-select { padding-top:30px; text-align:center }
.brand-select select { width:462px; height:40px; font-size:15px; color:#555 }
.brand-select a { display:inline-block; margin-left:3px; width:118px; height:38px; font-size:15px; color:#fff; text-align:center; line-height:38px; border:1px solid #101010; background: #101010; vertical-align:top; -webkit-transition:all 0.3s ease; transition:all 0.3s ease }
.brand-select a:hover { color:#101010; background:#fff }
.brand-select a:active { position:relative; top:1px }
.brand-banner { padding-top:30px; text-align:center }
.page-body { padding-top:30px }

/* 상품 사진 확대 + 관심상품/장바구니 버튼 (마우스 올리면 표시) - 메인과 통일 */
.item_list .thumb{overflow:hidden; position:relative}
.item_list .thumb img{transition:transform .4s}
.item_list .thumb:hover img{transform:scale(1.06)}

.item_list .thumb .prd-wish{opacity:0; transition:opacity .3s}
.item_list .thumb:hover .prd-wish{opacity:1}
.item_list .thumb .prd-wish a{display:flex; align-items:center; justify-content:center}
.item_list .thumb .prd-wish .fa{font-size:15px; color:#333}

/* =========================================================
   v23: 브랜드 상품 페이지 1행 5개
   - MD'S PICK / 일반 상품 목록 모두 동일 적용
   ========================================================= */
#productClass .shopbrand_item_wrap {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 50px 25px !important;
    float: none !important;
    margin-bottom: 60px !important;
}
/* clear_fix 가상요소가 grid 칸을 차지하는 문제 차단 */
#productClass .shopbrand_item_wrap.clear_fix::before,
#productClass .shopbrand_item_wrap.clear_fix::after {
    display: none !important;
}
#productClass .shopbrand_item_wrap > li.item_list,
#productClass .shopbrand_item_wrap > li.w25p {
    width: auto !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
/* 5열에서 칸이 좁아지므로 상품명 축소 */
#productClass .item_list .info .prdname {
    font-size: 14px !important;
    line-height: 1.5 !important;
}

/* v24: 컨테이너 폭을 NEW 페이지와 동일하게 (1100 → 1300) */
#contentWrap { width: 1300px !important; }


/* =========================================================
   v25: FOLDER 사이트 톤 통일 (기획전 / 상품 미리보기와 동일)
   ========================================================= */

/* ---------- 폰트 ---------- */
#productClass,
#productClass select,
#productClass input,
#productClass button {
    font-family: "Pretendard Variable", Pretendard, "Noto Sans KR", sans-serif;
}


/* ---------- 브랜드 선택 + GO ---------- */
#productClass .brand-select {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    padding-top: 32px !important;
}

#productClass .brand-select select {
    width: 320px !important;
    max-width: 100%;
    height: 44px !important;
    margin: 0 !important;
    padding: 0 40px 0 16px !important;

    border: 1px solid #dddddd !important;
    border-radius: 6px !important;

    background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23111111' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 16px center !important;

    color: #111111 !important;
    font-size: 14px !important;

    cursor: pointer;

    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

#productClass .brand-select select:focus {
    border-color: #111111 !important;
    outline: none;
}

#productClass .brand-select a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    width: auto !important;
    height: 44px !important;
    margin: 0 !important;
    padding: 0 28px;

    border: 1px solid #111111 !important;
    border-radius: 6px;

    background: #111111 !important;
    color: #ffffff !important;

    font-size: 14px !important;
    font-weight: 600;
    letter-spacing: 0.06em;
    line-height: 1 !important;
    text-decoration: none !important;

    transition: background-color 0.2s ease, border-color 0.2s ease;
}

#productClass .brand-select a:hover {
    border-color: #333333 !important;
    background: #333333 !important;
    color: #ffffff !important;
}

#productClass .brand-select a:active {
    top: 0 !important;
}


/* ---------- 브랜드 배너 ---------- */
#productClass .brand-banner {
    padding-top: 32px !important;
}

#productClass .brand-banner img {
    max-width: 100%;
    border-radius: 12px;
}


/* ---------- MD'S PICK 제목 ---------- */
#productClass .cateTit {
    margin: 30px 0 40px;
    text-align: center;
}

#productClass .cateTit h3 {
    margin: 0;

    color: #111111;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

#productClass .cateTit .line {
    width: 32px;
    height: 2px;
    margin: 16px auto 0;

    background: #111111;
}


/* ---------- 총 개수 / 정렬 ---------- */
#productClass .item-wrap .item-info {
    display: flex !important;
    align-items: center;
    justify-content: space-between;

    margin: 40px 0 30px !important;
    padding: 0 0 16px !important;

    border-bottom: 1px solid #111111;
}

#productClass .item-wrap .item-info .count {
    float: none !important;

    color: #999999 !important;
    font-size: 14px !important;
}

#productClass .item-wrap .item-info .count span {
    margin: 0 1px;

    color: #111111 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
}

/* 정렬 탭이 가운데로 밀리는 문제 차단 (clearfix 가상요소 제거) */
#productClass .item-wrap .item-info::before,
#productClass .item-wrap .item-info::after {
    display: none !important;
    content: none !important;
}

#productClass .item-wrap .item-order {
    float: none !important;
    width: auto !important;
    margin: 0 0 0 auto !important;
}

#productClass .item-wrap .item-order dd {
    margin: 0 !important;
}

#productClass .item-wrap .item-order ul {
    display: flex !important;
    gap: 6px;

    margin: 0 !important;
    padding: 0 !important;
}

#productClass .item-wrap .item-order ul li {
    float: none !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    background: none !important;

    list-style: none;
}

#productClass .item-wrap .item-order ul li::before,
#productClass .item-wrap .item-order ul li::after {
    display: none !important;
}

#productClass .item-wrap .item-order ul li a {
    display: block;
    text-decoration: none !important;
}

#productClass .item-wrap .item-order ul li span {
    display: block;

    height: 32px;
    padding: 0 16px !important;

    border-radius: 999px;

    background: #f1f2f3 !important;
    color: #333333 !important;

    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 32px !important;

    transition: background-color 0.2s ease, color 0.2s ease;
}

#productClass .item-wrap .item-order ul li a:hover span {
    background: #e2e4e6 !important;
    color: #111111 !important;
}

#productClass .item-wrap .item-order ul li span.on {
    background: #000000 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
}


/* ---------- 페이지 번호 ---------- */
#productClass .paging {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;

    margin: 70px 0 120px !important;
    padding: 0 !important;
}

#productClass .paging a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    min-width: 36px;
    height: 36px;
    margin: 0 !important;
    padding: 0 10px !important;

    border: 0 !important;
    border-radius: 999px;

    background: transparent !important;
    color: #666666 !important;

    font-size: 14px !important;
    font-weight: 500;
    line-height: 1 !important;
    text-decoration: none !important;

    transition: background-color 0.2s ease, color 0.2s ease;
}

#productClass .paging a:hover {
    background: #f1f2f3 !important;
    color: #111111 !important;
}

#productClass .paging a.now {
    background: #000000 !important;
    color: #ffffff !important;
    font-weight: 700;
}

#productClass .paging a.first,
#productClass .paging a.prev,
#productClass .paging a.next,
#productClass .paging a.last {
    color: #999999 !important;
    font-size: 12px !important;
    letter-spacing: 0.06em;
}


/* =========================================================
   v28: 왼쪽 브랜드명 = 브랜드 선택 버튼 (중복 제거)
   ========================================================= */

/* JS 적용 시 가운데 선택 상자 + GO 버튼 숨김 */
#productClass .brand-select.fd-enhanced {
    display: none !important;
}

/* 상단 브랜드 영역 */
#productClass .page-hd.fd-brand-head {
    position: relative;
    z-index: 30;

    margin: 0 !important;
    padding: 8px 0 18px !important;

    border-bottom: 1px solid #eeeeee !important;
}

/* 원래 브랜드명 글자는 숨김 (선택 버튼이 대신 표시) */
#productClass .page-hd.fd-brand-head h2 {
    display: none !important;
}

#productClass .fd-brand-dd {
    position: relative;
    display: inline-block;
    text-align: left;
}

/* 선택 버튼: 큰 브랜드명 + 화살표 */
#productClass .fd-brand-btn {
    position: relative;

    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;

    padding: 0 30px 0 0;

    cursor: pointer;
    user-select: none;
}

#productClass .fd-brand-btn:focus {
    outline: none;
}

/* 글자가 사라지지 않도록 스킨 기본값 강제 덮어쓰기 */
#productClass .fd-brand-btn .fd-brand-eyebrow,
#productClass .fd-brand-btn .fd-brand-label {
    position: static !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    text-indent: 0 !important;
    font-style: normal !important;
    font-family: "Pretendard Variable", Pretendard, "Noto Sans KR", sans-serif !important;
}

#productClass .fd-brand-btn .fd-brand-eyebrow {
    color: #999999 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    letter-spacing: 0.16em;
}

#productClass .fd-brand-btn .fd-brand-label {
    color: #111111 !important;
    font-size: 28px !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    letter-spacing: -0.03em;
    white-space: nowrap;
}

/* 화살표 (원형 버튼) */
#productClass .fd-brand-btn::after {
    content: '';

    position: absolute;
    right: 0;
    bottom: 5px;

    width: 22px;
    height: 22px;

    border-radius: 50%;
    background: #f1f2f3 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23111111' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat center;

    transition: transform 0.2s ease, background-color 0.2s ease;
}

#productClass .fd-brand-btn:hover::after {
    background-color: #e2e4e6;
}

#productClass .fd-brand-dd.is-open .fd-brand-btn::after {
    transform: rotate(180deg);
}

/* 브랜드 목록 */
#productClass .fd-brand-list {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;

    display: none;

    width: 300px;
    max-height: 380px;
    margin: 0;
    padding: 6px;

    overflow-y: auto;

    border: 1px solid #e5e5e5;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);

    list-style: none;
}

#productClass .fd-brand-dd.is-open .fd-brand-list {
    display: block;
}

#productClass .fd-brand-list li {
    position: relative;
    display: block !important;
    visibility: visible !important;
    float: none !important;
    width: auto !important;
    height: 40px;
    margin: 0;
    padding: 0 36px 0 12px;
    border-radius: 6px;
    color: #333333 !important;
    font-size: 14px !important;
    line-height: 40px;
    text-indent: 0 !important;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

#productClass .fd-brand-list li:hover {
    background: #f5f5f5;
    color: #111111 !important;
}

/* 현재 브랜드: 굵게 + 체크 */
#productClass .fd-brand-list li.is-selected {
    background: #f1f2f3;
    color: #000000 !important;
    font-weight: 700;
}

#productClass .fd-brand-list li.is-selected::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 14px;
    width: 12px;
    height: 9px;
    margin-top: -5px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='9' viewBox='0 0 12 9'%3E%3Cpath d='M1 4.5l3.5 3.5L11 1' fill='none' stroke='%23111111' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat center;
}

/* 얇은 스크롤바 */
#productClass .fd-brand-list::-webkit-scrollbar {
    width: 6px;
}

#productClass .fd-brand-list::-webkit-scrollbar-thumb {
    border-radius: 3px;
    background: #d9d9d9;
}

#productClass .fd-brand-list::-webkit-scrollbar-track {
    background: transparent;
}

/* BASIC css end */

