/* 공통 푸터 스타일 */
.footer {
    background: #2c3e50;
    color: #fff;
    padding: 3rem 0 2rem;
    margin-top: 3rem;
    position: relative;
    width: 100%;
    bottom: 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

.footer-section p {
    color: #bdc3c7;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    text-align: center;
    color: #bdc3c7;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    color: #bdc3c7;
    text-decoration: none;
    margin-right: 1rem;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #fff;
}

/* 공통 페이지 구조 스타일 */
/* 브레드크럼 네비게이션 */
.breadcrumb-nav {
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    padding: 1rem 0;
}

.breadcrumb-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.breadcrumb {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb-item a:hover {
    color: #2980b9;
}

.breadcrumb-item.active {
    color: #333;
    font-weight: 500;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    margin: 0 0.5rem;
    color: #ccc;
    font-size: 1.2rem;
    line-height: 1;
}

/* 페이지 컨테이너 */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    margin-bottom: 2rem; /* footer와의 간격 조정 */
}

/* 페이지 헤더 */
.page-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 2rem 1rem;
    border-bottom: 1px solid #f0f0f0;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.05) 0%, rgba(52, 152, 219, 0.1) 100%);
    border-radius: 12px;
    margin: 0 0 1.5rem 0;
}

.page-header h1 {
    font-size: 2.2rem;
    color: #2c3e50;
    margin: 0 0 1rem 0;
    font-weight: 600;
    line-height: 1.2;
}

.page-header p {
    font-size: 1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
    font-weight: 400;
}

/* 페이지별 특색 스타일 */
.page-container.category-header {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.05) 0%, rgba(52, 152, 219, 0.1) 100%);
}

.page-container.my-shopping-container {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.05) 0%, rgba(46, 204, 113, 0.1) 100%);
}

.page-container.cart-header {
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.05) 0%, rgba(155, 89, 182, 0.1) 100%);
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .breadcrumb-nav {
        padding: 0.5rem 0;
    }
    
    .breadcrumb-container {
        padding: 0 1rem;
    }
    
    .page-container {
        padding: 0 1rem;
        margin-bottom: 1.5rem; /* 모바일에서 footer와의 간격 조정 */
    }
    
    .page-header {
        padding: 1.5rem 1rem;
        margin-bottom: 1.5rem;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .page-header p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .breadcrumb {
        font-size: 0.8rem;
    }
    
    .page-header {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    .page-header p {
        font-size: 0.85rem;
    }
}

/* 모바일 푸터 스타일 */
@media (max-width: 768px) {
    .footer {
        padding: 1.5rem 0 1rem !important;
        margin-top: 1.5rem !important;
        margin-bottom: 60px !important; /* 하단 앱바 높이만큼 여백 */
    }
    
    .footer-container {
        padding: 0 1rem !important;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem !important;
    }
    
    .footer-section h3 {
        font-size: 1rem !important;
        margin-bottom: 0.8rem !important;
    }
    
    .footer-section ul li a,
    .footer-section p {
        font-size: 0.85rem !important;
    }
}

@media (max-width: 480px) {
    .footer-container {
        padding: 0 1rem !important;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* 모바일 헤더 스타일 */
.mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #fff;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.mobile-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    padding: 0 16px;
}

.mobile-header .logo {
    height: 32px;
    margin: 0;
}

.mobile-header .logo img {
    height: 100%;
    object-fit: contain;
}

.btn-menu, .btn-search, .btn-close {
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-menu svg, .btn-search svg, .btn-close svg {
    fill: #333;
}

/* 검색창 스타일 */
.search-container {
    position: fixed;
    top: 56px;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 8px 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 999;
}

.search-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.search-wrapper input {
    flex: 1;
    padding: 8px 12px;
    border: none;
    outline: none;
    font-size: 14px;
}

.search-wrapper button {
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

/* 모바일 네비게이션 스타일 */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 80%;
    max-width: 320px;
    height: 100%;
    background: #fff;
    z-index: 1001;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.mobile-nav.active {
    transform: translateX(0);
}

.nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid #eee;
}

.nav-header span {
    font-size: 18px;
    font-weight: bold;
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-list li {
    border-bottom: 1px solid #eee;
}

.nav-list a {
    display: block;
    padding: 16px;
    color: #333;
    text-decoration: none;
}

/* 모바일 하단 앱바 스타일 */
.mobile-appbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 56px;
    background: #fff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
    z-index: 1000;
}

.mobile-appbar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #666;
    text-decoration: none;
    font-size: 12px;
}

.mobile-appbar a.active {
    color: #000;
}

.mobile-appbar svg {
    margin-bottom: 4px;
    fill: currentColor;
}

/* 반응형 스타일 */
@media (min-width: 768px) {
    .mobile-header,
    .mobile-appbar {
        display: none;
    }
    
    body {
        padding-top: 0;
        padding-bottom: 0;
    }
}

/* 기본 스타일 */
body {
    margin: 0;
    font-family: 'Noto Sans KR', sans-serif;
}

/* 상품 그리드 스타일은 styles.css에서 관리 */

/* 반응형 그리드는 styles.css에서 관리 */

/* 페이지네이션 스타일은 styles.css에서 관리 */

/* 퀵메뉴 스타일 */
.quick-menu {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}
.quick-menu-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1.2rem;
}
.quick-menu-btn:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}
.quick-menu-btn.wish {
    color: #e74c3c;
}
.quick-menu-btn.cart {
    color: #3498db;
}
.quick-menu-btn.top {
    color: #2c3e50;
}

@media (max-width: 768px) {
    .quick-menu {
        right: 15px;
    }
    .quick-menu-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
} 