/* Sketch3323 스타일 완전 복제 레이아웃 */

/* 메인 레이아웃 구조 */
.page-wrapper {
    display: grid;
    grid-template-columns: 200px 1fr 200px;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0;
    gap: 0;
}

/* 왼쪽 고정 사이드바 (aside menu) */
.sidebar-left {
    width: 200px;
    position: fixed;
    left: 0;
    top: 80px;
    bottom: 0;
    background: #fff;
    border-right: 1px solid #e0e0e0;
    overflow-y: auto;
    z-index: 90;
}

/* 사이드바 스크롤바 스타일 */
.sidebar-left::-webkit-scrollbar {
    width: 6px;
}

.sidebar-left::-webkit-scrollbar-track {
    background: #f5f5f5;
}

.sidebar-left::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.sidebar-left::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.sidebar-section {
    margin-bottom: 0;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 20px 15px;
}

.sidebar-section h3 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-category-list {
    list-style: none;
}

.sidebar-category-list > li {
    margin-bottom: 0;
    border-bottom: 1px solid #f5f5f5;
}

.sidebar-category-list > li:last-child {
    border-bottom: none;
}

.sidebar-category-list a {
    display: block;
    padding: 10px 8px;
    color: #333;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
    position: relative;
}

.sidebar-category-list a:hover,
.sidebar-category-list a.active {
    background: #f8f8f8;
    color: #000;
    font-weight: 600;
}

.sidebar-category-list a.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #000;
}

/* 서브 카테고리 */
.sidebar-subcategory {
    list-style: none;
    padding-left: 16px;
    margin-top: 8px;
}

.sidebar-subcategory li {
    margin-bottom: 4px;
}

.sidebar-subcategory a {
    font-size: 12px;
    padding: 6px 8px;
    color: #666;
    font-weight: 400;
}

.sidebar-subcategory a:hover {
    color: #000;
}

/* CS 센터 정보 */
.cs-info {
    text-align: center;
    background: #f8f8f8;
    padding: 16px;
    margin: -15px -15px 0 -15px;
}

.cs-info .cs-number {
    font-size: 18px;
    font-weight: 700;
    color: #000;
    margin: 8px 0;
    letter-spacing: -0.5px;
}

.cs-info .cs-hours {
    font-size: 11px;
    color: #666;
    line-height: 1.5;
}

.cs-info .bank-info {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e0e0e0;
    font-size: 11px;
    color: #666;
}

/* 최근 본 상품 (오른쪽 사이드바) */
.recent-products {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.recent-product-item {
    display: block;
    text-decoration: none;
    color: inherit;
}

.recent-product-thumb {
    width: 100%;
    aspect-ratio: 1;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    margin-bottom: 8px;
    position: relative;
    overflow: hidden;
}

.recent-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.recent-product-item:hover .recent-product-thumb img {
    transform: scale(1.05);
}

.recent-product-info {
    text-align: center;
}

.recent-product-info h4 {
    font-size: 12px;
    font-weight: 400;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #333;
}

.recent-product-info .price {
    font-size: 11px;
    font-weight: 600;
    color: #000;
}

.recent-empty {
    padding: 30px 10px;
    text-align: center;
    color: #999;
    font-size: 12px;
}

/* 최근 본 상품 네비게이션 */
.recent-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.recent-counter {
    font-size: 12px;
    color: #666;
}

.recent-arrows {
    display: flex;
    gap: 4px;
}

.recent-arrow-btn {
    width: 24px;
    height: 24px;
    border: 1px solid #e0e0e0;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.2s;
}

.recent-arrow-btn:hover {
    background: #f5f5f5;
    border-color: #333;
}

/* 메인 콘텐츠 영역 */
.main-content-area {
    margin-left: 200px;
    margin-right: 200px;
    padding: 40px 40px 80px 40px;
    min-height: calc(100vh - 80px);
}

/* 오른쪽 고정 사이드바 */
.sidebar-right {
    width: 200px;
    position: fixed;
    right: 0;
    top: 80px;
    bottom: 0;
    background: #fff;
    border-left: 1px solid #e0e0e0;
    overflow-y: auto;
    z-index: 90;
}

.sidebar-right-section {
    padding: 20px 15px;
    border-bottom: 1px solid #e0e0e0;
}

.sidebar-right-section h4 {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
    text-align: center;
}

/* 섹션 제목 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #000;
}

.section-header h2 {
    font-size: 24px;
    font-weight: 600;
}

.section-header .more-link {
    font-size: 14px;
    color: #666;
    text-decoration: none;
}

.section-header .more-link:hover {
    color: #000;
}

/* Best/New 뱃지 */
.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    z-index: 1;
}

.badge-best {
    background: #e74c3c;
}

.badge-new {
    background: #3498db;
}

/* 상품 카드 개선 */
.product-card {
    position: relative;
}

.product-card:hover .product-image {
    border-color: #333;
}

/* 고정 유틸리티 버튼 제거 (오른쪽 사이드바에 통합) */
.quick-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quick-link-btn {
    display: block;
    padding: 10px;
    background: #000;
    color: #fff;
    text-align: center;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: background 0.2s;
    border: none;
    cursor: pointer;
}

.quick-link-btn:hover {
    background: #333;
}

.quick-link-btn.secondary {
    background: #fff;
    color: #000;
    border: 1px solid #e0e0e0;
}

.quick-link-btn.secondary:hover {
    background: #f5f5f5;
}

/* 반응형 */
@media (max-width: 1400px) {
    .sidebar-right {
        display: none;
    }
    
    .main-content-area {
        margin-right: 0;
        padding-right: 20px;
    }
}

@media (max-width: 1024px) {
    .page-wrapper {
        grid-template-columns: 1fr;
    }
    
    .sidebar-left {
        position: relative;
        width: 100%;
        top: 0;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
        overflow-y: visible;
    }
    
    .main-content-area {
        margin-left: 0;
        margin-right: 0;
        padding: 20px;
    }
    
    .sidebar-section {
        display: none;
    }
    
    .sidebar-section:first-child {
        display: block;
    }
}

@media (max-width: 768px) {
    .main-content-area {
        padding: 15px;
    }
    
    .section-header h2 {
        font-size: 20px;
    }
}

