/* BASIC css start */
/* ===== 미니멀/모던 스타일 전체 레이아웃 ===== */

/* 1. 공통 레이아웃 */
body,
#wrap,
#contentWrapper,
#content,
#productClass,
.page-body {
    font-family: 'Noto Sans KR', 'Montserrat', sans-serif;
    background: #fff;
    color: #222;
    font-size: 15px;
    line-height: 1.5;
    letter-spacing: -0.02em;
}

/* ===== 카테고리 목록 스타일 (드롭다운 포함) ===== */

/* 전체 카테고리 영역 */
#productClass .cate-wrap {
    margin: 40px 0;
}

/* 카테고리 제목 */
#productClass .cate-wrap .bcate {
    font-size: 26px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 24px;
}
#productClass .cate-wrap .bcate .cate-count {
    font-size: 20px;
    font-weight: 400;
    color: #909090;
}

/* 카테고리 목록 컨테이너 (ul.main_m) */
#productClass .class-list.class1 ul.main_m {
    display: flex;
    flex-wrap: wrap;
    gap: 5px; /* 버튼 사이 간격 */
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid #eee; /* 제목과 시각적 분리 */
}

/* 대분류 li */
#productClass .class-list.class1 ul.main_m > li {
    font-size: 0; /* '>' 문자 숨기기 */
    position: relative; /* 하위 메뉴의 기준점 역할 */
}

/* 대분류 링크 버튼 스타일 */
#productClass .class-list.class1 ul.main_m > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 18px;
    font-size: 14px; /* 폰트 사이즈 복원 */
    font-weight: 500;
    color: #34495e;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

/* 호버(마우스 올렸을 때) 효과 */
#productClass .class-list.class1 ul.main_m > li > a:hover {
    border-color: #0c025b;
    color: #0c025b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* 활성화된 대분류 버튼 */
#productClass .class-list.class1 ul.main_m > li.active > a {
    background-color: #0c025b;
    color: #fff;
    border-color: #0c025b;
    font-weight: 700;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(12, 2, 91, 0.25);
}

/* 하위 메뉴(ul.sub_m) 기본 스타일 - 드롭다운 핵심 */
#productClass .class-list.class1 .sub_m {
    display: flex;
    flex-direction: column;
    flex-basis: 100%;
    gap: 8px;
    max-height: 0; /* 평소에 숨김 */
    overflow: hidden;
    padding: 0;
    margin: 0;
    list-style: none;
    background-color: #fdfdff;
    border-radius: 0 0 8px 8px;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out; /* 애니메이션 */
}

/* active 클래스가 붙었을 때 하위 메뉴 보여주기 */
#productClass .class-list.class1 li.active > .sub_m {
    max-height: 1000px; /* 보여줄 최대 높이 */
    padding: 15px 20px;
    margin-top: 5px;
}

/* 하위 메뉴 각 항목(li > a) 스타일 */
#productClass .class-list.class1 .sub_m li a {
    font-size: 14px;
    color: #555;
    font-weight: 400;
    padding: 4px 12px;
    border-radius: 6px;
    border: none;
    background-color: transparent;
    transition: background-color 0.2s, color 0.2s;
}

#productClass .class-list.class1 .sub_m li a:hover {
    background-color: #f0f2f5;
    color: #0c025b;
    transform: none;
    box-shadow: none;
}

/* 3. 검색박스 (참고용) */
.actions-section { text-align: right; margin-bottom: 24px; }
.search-box { display: inline-flex; align-items: center; border: none; border-radius: 22px; background: #f2f2f5; padding: 2px 4px; }
.search-box input { border: none; background: transparent; font-size: 15px; padding: 7px 8px 7px 14px; outline: none; width: 180px; color: #222; }
.search-box .search-btn { display: inline-flex; align-items: center; padding: 7px 13px 7px 7px; border: none; background: none; color: #2d348c; cursor: pointer; }
.search-box .search-btn:hover { color: #0c025b; }
.search-box .fa-search { font-size: 18px; }

/* 4. 정렬바 */
.price-sort-bar .item-order.sort ul { display: flex; gap: 10px; padding: 0; margin: 0; list-style: none; }
.price-sort-bar .item-order.sort li { border-radius: 16px; background: #f7f8fa; transition: background 0.15s; min-width: 80px; text-align: center; padding: 0; position: relative; }
.price-sort-bar .item-order.sort li:has(span.on) { background: #0c025b !important; }
.price-sort-bar .item-order.sort li a { display: block; padding: 7px 0; font-size: 13px; color: #444; font-weight: 500; border-radius: 16px; background: transparent; text-decoration: none; transition: color 0.15s; width: 100%; height: 100%; }
.price-sort-bar .item-order.sort li:has(span.on) a,
.price-sort-bar .item-order.sort li:has(span.on) a span { color: #fff !important; font-weight: 700; }
.price-sort-bar .item-order.sort li:not(:has(span.on)):hover { background: #2d348c; }
.price-sort-bar .item-order.sort li:not(:has(span.on)):hover a,
.price-sort-bar .item-order.sort li:not(:has(span.on)):hover a span { color: #fff !important; }
.price-sort-bar .item-order.sort li a span { font-weight: inherit; }

/* 5. 상품리스트 전체 */
.item-wrap { margin-top: 0; margin-bottom: 36px; }
.item-cont { display: flex; flex-direction: column; gap: 2px; }

/* 6. 상품 한 줄 (.product-row) */
.product-row { display: grid !important; grid-template-columns: 98px 1fr 130px !important; align-items: center !important; background: #fff; border-radius: 12px; box-shadow: none; margin-bottom: 13px; padding: 0; min-height: 88px; border: 1px solid #e8eaf0; transition: box-shadow 0.18s; }
.product-row:hover { box-shadow: 0 1px 12px 0 rgba(14,18,49,.06); border-color: #b3b5c7; }
.product-row .thumb-section { grid-column: 1 / 2; display: flex; align-items: center; justify-content: center; padding: 0; }
.product-row .thumb-section img { width: 86px; height: 86px; border-radius: 8px; object-fit: cover; background: #f1f2f6; border: none; }

/* 7. 상세정보(중앙) */
.product-row .details-section { grid-column: 2 / 3; display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 10px 0 10px 0; }
.product-row .details-section h3.product-title,
.product-row .details-section h3.product-title a { margin: 0; font-size: 18px; font-weight: 700; color: #0c025b; line-height: 1.33; text-decoration: none; letter-spacing: -0.02em; }
.product-row .details-section p.product-subname,
.product-row .details-section p.product-subname .value { font-size: 13px; color: #444; margin: 0; font-style: normal; font-weight: 400; letter-spacing: -0.01em; line-height: 1.2; }
.brand-model-wrapper { display: flex; gap: 18px; align-items: baseline; margin-bottom: 1px; }
.product-brand .value a,
.product-model .value a { font-size: 13px; font-weight: 400; color: #333; letter-spacing: -0.03em; text-decoration: none; }

/* 8. 가격/품절 (우측) */
.product-row .price-section { grid-column: 3 / 4; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; min-width: 80px; padding: 0 17px 0 0; justify-content: center; }
.price-section .price { font-size: 16px; font-weight: 700; color: #232b36; letter-spacing: -0.04em; }
.price-section .discount { color: #d80f27; font-size: 16px; font-weight: 700; }
.price-section .original { color: #b5b5b5; font-size: 12px; text-decoration: line-through; margin-left: 4px; }
.price-section .normal { color: #232b36; font-size: 16px; }
.price-section .soldout { color: #fff; background: #e63946; border-radius: 5px; font-size: 13px; font-weight: 600; padding: 5px 14px; letter-spacing: -0.03em; margin-top: 2px; text-align: center; border: none; box-shadow: none; }

/* 9. 페이징 */
.paging { text-align: center; padding: 16px 0 0 0; }
.paging a { display: inline-block; margin: 0 2px; padding: 0 13px; color: #5a5f70; background: none; font-size: 14px; border-radius: 7px; text-decoration: none; transition: background 0.18s, color 0.18s; height: 32px; line-height: 32px; vertical-align: middle; }
.paging a.now,
.paging a:hover { background: #0c025b; color: #fff; }
/* BASIC css end */

