/* 기본 스타일 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 상단 프로모션 배너 */
.top-promo-banner {
    position: relative;
    width: 100%;
    height: 40px;
    overflow: hidden;
}

.promo-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.promo-slide.active {
    opacity: 1;
}

.promo-icon {
    font-size: 16px;
}

.promo-text strong {
    color: #ffd700;
    font-weight: 700;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --success-color: #27ae60;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #ecf0f1;
    --border-color: #ddd;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 20px rgba(0,0,0,0.15);
}

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 헤더 */
.header {
    background: #fff;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 100;
}

/* 헤더 상단 영역 */
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    gap: 20px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
}

.logo {
    flex-shrink: 0;
}

.logo a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #2c3e50, #e74c3c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 네비게이션 바 - 숨김 (카테고리 탭과 중복되므로 비활성화) */
.nav-bar {
    display: none;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav a:hover {
    color: var(--secondary-color);
}

.header-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

/* 모바일 메뉴 버튼 */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s;
}

/* 모바일 검색 버튼 */
.mobile-search-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: var(--text-dark);
}

/* 모바일 검색바 */
.mobile-search-bar {
    display: none;
    padding: 10px 0;
    border-top: 1px solid var(--border-color);
}

.mobile-search-bar.active {
    display: flex;
    gap: 10px;
}

.mobile-search-bar input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
}

.mobile-search-bar button {
    padding: 10px 20px;
    background: var(--secondary-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* 모바일 사이드 메뉴 오버레이 */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

.mobile-menu-overlay.active {
    display: block;
}

/* 모바일 사이드 메뉴 */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background: #fff;
    z-index: 1000;
    transition: left 0.3s ease;
    overflow-y: auto;
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--secondary-color);
    color: #fff;
    font-weight: bold;
    font-size: 18px;
}

.mobile-menu-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
}

.mobile-menu-content {
    padding: 0;
}

.mobile-menu-content a {
    display: block;
    padding: 15px 20px;
    color: var(--text-dark);
    text-decoration: none;
    border-bottom: 1px solid var(--border-color);
    font-size: 15px;
}

.mobile-menu-content a:hover {
    background: var(--bg-light);
}

.mobile-menu-user {
    padding: 20px;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu-user .user-name {
    display: block;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.mobile-menu-user a,
.mobile-menu-user button {
    display: block;
    width: 100%;
    padding: 10px 0;
    color: var(--text-dark);
    text-decoration: none;
    background: none;
    border: none;
    text-align: left;
    font-size: 14px;
    cursor: pointer;
}

.mobile-menu-user a:hover,
.mobile-menu-user button:hover {
    color: var(--secondary-color);
}

.search-box {
    display: flex;
    gap: 5px;
}

.search-box input {
    padding: 8px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    width: 200px;
}

.search-box button {
    padding: 8px 15px;
    background: var(--secondary-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.user-menu {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
}

.user-menu a,
.user-menu button {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 15px;
    border-radius: 4px;
    transition: all 0.3s;
    font-size: 14px;
    white-space: nowrap;
}

.user-menu a:hover,
.user-menu button:hover {
    background: var(--bg-light);
}

/* 장바구니 버튼 스타일 (검은색) */
.user-menu .cart-link {
    background: #1a1a1a;
    color: #fff;
    border-radius: 4px;
    padding: 10px 18px;
}

.user-menu .cart-link:hover {
    background: #333;
}

/* 회원가입 버튼 스타일 (테두리형) */
.user-menu .btn-register {
    background: transparent;
    color: var(--primary-color);
    border: 1.5px solid var(--primary-color) !important;
    border-radius: 4px;
    padding: 9px 16px;
    font-weight: 600;
}

.user-menu .btn-register:hover {
    background: var(--primary-color) !important;
    color: #fff;
}

/* 로그인 버튼 스타일 (빨간색) */
.user-menu button[onclick*="loginModal"] {
    background: #e53935;
    color: #fff;
    border-radius: 4px;
    padding: 10px 18px;
}

.user-menu button[onclick*="loginModal"]:hover {
    background: #c62828;
}

/* 로그아웃 버튼 스타일 */
.user-menu button[onclick*="logout"] {
    background: #e53935;
    color: #fff;
    border-radius: 4px;
    padding: 10px 18px;
}

.user-menu button[onclick*="logout"]:hover {
    background: #c62828;
}

.user-name {
    font-weight: bold;
    color: var(--secondary-color);
    font-size: 14px;
}

/* 히어로 섹션 - 슬라이더 */
.hero {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    background: #1a1a1a;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 20px;
    max-width: 800px;
}

.hero-title {
    font-size: 52px;
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 20px;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    margin-bottom: 12px;
}

.hero-desc {
    font-size: 15px;
    opacity: 0.8;
    line-height: 1.7;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    margin-top: 8px;
}

/* 카카오톡 플로팅 버튼 */
.kakao-floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    animation: kakaoFloat 3s ease-in-out infinite;
}

@keyframes kakaoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.kakao-floating-icon {
    width: 58px;
    height: 58px;
    background: #FEE500;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    transition: transform 0.2s, box-shadow 0.2s;
}

.kakao-floating-btn:hover .kakao-floating-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(0,0,0,0.35);
}

.kakao-floating-label {
    background: rgba(0,0,0,0.7);
    color: #FEE500;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 10px;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .kakao-floating-btn {
        bottom: 20px;
        right: 16px;
    }
    .kakao-floating-icon {
        width: 50px;
        height: 50px;
    }
}

/* 슬라이더 인디케이터 (점) */
.hero-indicators {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.hero-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid rgba(255,255,255,0.8);
}

.hero-indicator.active {
    background: #fff;
    transform: scale(1.2);
}

.hero-indicator:hover {
    background: rgba(255,255,255,0.8);
}

/* 슬라이더 화살표 버튼 */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    color: #fff;
    font-size: 24px;
}

.hero-arrow:hover {
    background: rgba(255,255,255,0.4);
}

.hero-arrow.prev {
    left: 20px;
}

.hero-arrow.next {
    right: 20px;
}

/* 카테고리 */
.category-section {
    background: #fff;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.category-tabs {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.category-tab {
    padding: 10px 25px;
    border: 1px solid var(--border-color);
    background: #fff;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.category-tab:hover {
    background: var(--bg-light);
}

.category-tab.active {
    background: var(--secondary-color);
    color: #fff;
    border-color: var(--secondary-color);
}

/* 상품 섹션 */
.products-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.product-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.product-info {
    padding: 20px;
}

.product-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.product-price {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.product-price.discounted {
    color: var(--accent-color);
}

.original-price {
    text-decoration: line-through;
    color: var(--text-light);
    font-size: 14px;
    margin-right: 10px;
}

.discount-badge {
    display: inline-block;
    background: var(--accent-color);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
    color: var(--text-light);
    font-size: 14px;
}

.stars {
    color: #ffc107;
}

.sales-count {
    color: #e74c3c;
    font-size: 12px;
    font-weight: 600;
    margin-left: 5px;
}

.review-count {
    color: #999;
}

/* 페이지네이션 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination button {
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.pagination button:hover {
    background: var(--secondary-color);
    color: #fff;
    border-color: var(--secondary-color);
}

.pagination button.active {
    background: var(--secondary-color);
    color: #fff;
    border-color: var(--secondary-color);
}

/* 푸터 */
.footer {
    background: #2c2c2c;
    color: #e0e0e0;
    padding: 50px 0 20px;
    margin-top: 80px;
    border-top: 1px solid #444;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-section p {
    margin: 8px 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #b0b0b0;
}

.footer-section strong {
    color: #fff;
}

.footer-phone {
    font-size: 1.3rem !important;
    color: #fff !important;
    margin: 15px 0 !important;
}

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

.footer-links li {
    margin: 10px 0;
}

.footer-links a {
    color: #b0b0b0;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.9rem;
}

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

.sns-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sns-links a {
    color: #b0b0b0;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.9rem;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #888;
    font-size: 0.85rem;
}

/* 반응형 푸터 */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer {
        padding: 30px 0 15px;
    }
}

/* 모달 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    overflow: auto;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.modal-large {
    max-width: 900px;
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: var(--text-dark);
}

/* 폼 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* 버튼 */
.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: var(--secondary-color);
    color: #fff;
}

.btn-primary:hover {
    background: #2980b9;
}

.btn-success {
    background: var(--success-color);
    color: #fff;
}

.btn-success:hover {
    background: #229954;
}

.btn-danger {
    background: var(--accent-color);
    color: #fff;
}

.btn-danger:hover {
    background: #c0392b;
}

.btn-block {
    width: 100%;
}

.modal-link {
    text-align: center;
    margin-top: 15px;
    color: var(--text-light);
}

.modal-link a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
}

/* 상품 상세 */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.product-detail-images {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-detail-image {
    width: 100%;
    border-radius: 10px;
}

.product-detail-info h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.product-detail-price {
    font-size: 32px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.product-options {
    margin: 20px 0;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
}

.quantity-selector button {
    width: 30px;
    height: 30px;
    border: 1px solid var(--border-color);
    background: #fff;
    cursor: pointer;
}

.quantity-selector input {
    width: 60px;
    text-align: center;
    border: 1px solid var(--border-color);
    padding: 5px;
}

.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
}

/* 반응형 - 태블릿 */
@media (max-width: 1024px) {
    .nav-menu a {
        padding: 12px 12px;
        font-size: 13px;
    }

    .search-box input {
        width: 150px;
    }
}

/* 반응형 - 모바일 (히어로, 상품, 푸터 등) */
@media (max-width: 768px) {
    /* 히어로 섹션 모바일 */
    .hero {
        height: 350px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 15px;
    }

    .hero-desc {
        font-size: 13px;
    }

    .hero-arrow {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .hero-arrow.prev {
        left: 10px;
    }

    .hero-arrow.next {
        right: 10px;
    }

    .hero-indicators {
        bottom: 15px;
    }

    .hero-indicator {
        width: 10px;
        height: 10px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }

    .product-detail {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    /* 카테고리 탭 스크롤 */
    .category-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
    }

    .category-tab {
        flex-shrink: 0;
        padding: 8px 16px;
        font-size: 14px;
    }
}

/* 반응형 - 소형 모바일 */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .logo a {
        font-size: 18px;
    }

    .hero-title {
        font-size: 26px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .hero {
        padding: 40px 0;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .product-image {
        height: 180px;
    }

    .product-info {
        padding: 12px;
    }

    .product-name {
        font-size: 14px;
    }

    .product-price {
        font-size: 16px;
    }
}

/* 장바구니 뱃지 */
.cart-link {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #e74c3c;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    line-height: 1.3;
    display: none; /* 기본적으로 숨김, 개수가 있을 때만 표시 */
}

/* ========== 모바일 헤더 통합 스타일 ========== */

/* 모바일 반응형 - 768px 이하 */
@media (max-width: 768px) {
    /* 헤더 컨테이너 */
    .header .container {
        padding: 0 15px;
    }

    /* 헤더 상단 레이아웃: 햄버거 | 로고(중앙) | 검색버튼 */
    .header-top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 0;
        position: relative;
    }

    /* 햄버거 메뉴 버튼 - 왼쪽 */
    .mobile-menu-btn {
        display: flex;
        order: 1;
        flex-shrink: 0;
    }

    /* 로고 - 중앙 */
    .logo {
        order: 2;
        position: static;
        transform: none;
        flex: 1;
        text-align: center;
        display: flex;
        justify-content: center;
    }

    .logo a {
        font-size: 18px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* 오른쪽 영역 - 검색버튼만 */
    .header-right {
        order: 3;
        flex-shrink: 0;
    }

    /* 모바일에서 검색버튼만 표시 */
    .mobile-search-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* 데스크톱 검색창 숨김 */
    .search-box {
        display: none;
    }

    /* 데스크톱 유저메뉴 숨김 - 사이드 메뉴로 대체 */
    .user-menu {
        display: none !important;
    }

    /* 네비게이션 바 숨김 */
    .nav-bar {
        display: none;
    }

    /* 사이드 메뉴 활성화 */
    .mobile-menu-overlay.active {
        display: block;
    }

    .mobile-menu.active {
        left: 0;
    }
}

/* 소형 모바일 - 480px 이하 */
@media (max-width: 480px) {
    .logo a {
        font-size: 16px;
    }

    .header .container {
        padding: 0 10px;
    }
}

/* 데스크톱 - 769px 이상 */
@media (min-width: 769px) {
    /* 햄버거 버튼 숨김 */
    .mobile-menu-btn {
        display: none;
    }

    /* 모바일 검색버튼 숨김 */
    .mobile-search-btn {
        display: none;
    }

    /* 사이드 메뉴 숨김 */
    .mobile-menu,
    .mobile-menu-overlay {
        display: none !important;
    }

    /* 데스크톱 검색창 표시 */
    .search-box {
        display: flex;
    }

    /* 데스크톱 유저메뉴 표시 */
    .user-menu {
        display: flex;
    }
}

/* ========================================
   히어로 카테고리 카드 섹션 (KREAM 스타일)
   ======================================== */
.hero-category-cards-section {
    background: #fff;
    padding: 30px 0;
}

.hero-category-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.hero-category-card {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.hero-category-card:hover {
    transform: translateY(-3px);
}

.hero-category-card-image {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    background: #f5f5f5;
    margin-bottom: 10px;
}

.hero-category-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hero-category-card:hover .hero-category-card-image img {
    transform: scale(1.05);
}

.hero-category-card-title {
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 태블릿 반응형 - 768px 이하 */
@media (max-width: 768px) {
    .hero-category-cards-section {
        padding: 20px 0;
    }

    .hero-category-cards-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
        padding: 0 10px;
    }

    .hero-category-card-image {
        border-radius: 10px;
    }

    .hero-category-card-title {
        font-size: 12px;
    }
}

/* 모바일 반응형 - 480px 이하 */
@media (max-width: 480px) {
    .hero-category-cards-section {
        padding: 15px 0;
    }

    .hero-category-cards-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
        padding: 0 8px;
    }

    .hero-category-card-image {
        border-radius: 8px;
        margin-bottom: 6px;
    }

    .hero-category-card-title {
        font-size: 11px;
    }
}

/* ==================== 인기 카테고리 섹션 ==================== */
.popular-categories-section {
    background: #3a7ca5;
    padding: 50px 0 60px;
}
.popular-categories-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}
.popular-categories-title {
    text-align: center;
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}
.popular-categories-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: #7ec8e3;
    margin: 12px auto 36px;
    border-radius: 2px;
}
.popular-categories-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}
.pop-cat-track-container {
    flex: 1;
    overflow: hidden;
}
.pop-cat-track {
    display: flex;
    gap: 16px;
    transition: transform 0.4s ease;
}
.pop-cat-card {
    flex: 0 0 calc(25% - 12px);
    aspect-ratio: 1/1;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    transition: transform 0.2s, box-shadow 0.2s;
    background: linear-gradient(135deg, #2d1b4e, #1a1a2e);
}
.pop-cat-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 28px rgba(0,0,0,0.4);
}
.pop-cat-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.pop-cat-no-img {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2d1b4e 0%, #6a2d8f 50%, #c0392b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 800;
    color: rgba(255,255,255,0.9);
    text-align: center;
    padding: 10px;
}
.pop-cat-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 100%);
    color: #fff;
    padding: 24px 12px 12px;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.3px;
}
.pop-cat-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    border: 2px solid rgba(255,255,255,0.5);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.pop-cat-arrow:hover {
    background: rgba(255,255,255,0.45);
}

@media (max-width: 900px) {
    .pop-cat-card { flex: 0 0 calc(33.333% - 11px); }
    .popular-categories-inner { padding: 0 16px; }
}
@media (max-width: 600px) {
    .pop-cat-card { flex: 0 0 calc(50% - 8px); }
    .popular-categories-title { font-size: 1.5rem; }
    .pop-cat-track { gap: 12px; }
    .pop-cat-arrow { width: 36px; height: 36px; font-size: 0.9rem; }
}

/* ==================== QnA 아코디언 섹션 ==================== */
.site-faq-section {
    background: #f8f9fa;
    padding: 60px 0;
}
.site-faq-inner {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 20px;
}
.site-faq-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #111;
}
.site-faq-subtitle {
    text-align: center;
    color: #888;
    font-size: 0.95rem;
    margin-bottom: 36px;
}
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.faq-item {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.faq-question {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s;
}
.faq-question:hover { background: #f5f5f5; }
.faq-question.open { background: #f0f7ff; }
.faq-q-badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #3a7ca5;
    color: #fff;
    font-weight: 800;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.faq-q-text {
    flex: 1;
    font-weight: 600;
    font-size: 1rem;
    color: #111;
}
.faq-arrow {
    font-size: 0.9rem;
    color: #888;
    transition: transform 0.25s;
}
.faq-question.open .faq-arrow { transform: rotate(180deg); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.25s ease;
    padding: 0 22px;
    color: #555;
    line-height: 1.8;
    font-size: 0.95rem;
}
.faq-answer.open {
    max-height: 600px;
    padding: 4px 22px 20px;
}
.faq-a-badge {
    display: inline-block;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e8f4e8;
    color: #2e7d32;
    font-weight: 800;
    font-size: 0.82rem;
    text-align: center;
    line-height: 24px;
    margin-right: 8px;
    flex-shrink: 0;
}
.faq-empty {
    text-align: center;
    color: #aaa;
    padding: 40px;
    font-size: 0.95rem;
}

@media (max-width: 600px) {
    .site-faq-title { font-size: 1.4rem; }
    .faq-question { padding: 14px 16px; }
    .faq-answer { padding: 0 16px; }
    .faq-answer.open { padding: 4px 16px 16px; }
}

/* ==================== 추천 메뉴 섹션 ==================== */
.recommended-section {
    background: #fff;
    padding: 60px 0;
    border-bottom: 1px solid #f0f0f0;
}
.recommended-header {
    text-align: center;
    margin-bottom: 40px;
}
.recommended-title {
    font-size: 1.9rem;
    font-weight: 800;
    color: #111;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}
.recommended-title::after {
    content: '';
    display: block;
    width: 44px;
    height: 3px;
    background: #3a7ca5;
    margin: 10px auto 0;
    border-radius: 2px;
}
.recommended-subtitle {
    color: #888;
    font-size: 0.95rem;
    margin-top: 14px;
}
.recommended-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.rec-card {
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #ececec;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: transform 0.22s, box-shadow 0.22s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}
.rec-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.13);
}
.rec-card-img {
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    position: relative;
    background: #f5f5f5;
}
.rec-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}
.rec-card:hover .rec-card-img img {
    transform: scale(1.05);
}
.rec-card-no-img {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #3a7ca5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    font-size: 3rem;
}
.rec-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #e53935;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
    letter-spacing: 0.3px;
}
.rec-card-body {
    padding: 16px 18px 18px;
}
.rec-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rec-card-subtitle {
    font-size: 0.85rem;
    color: #888;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 1024px) {
    .recommended-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
    .recommended-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .recommended-title { font-size: 1.5rem; }
    .rec-card-body { padding: 12px 14px 14px; }
}
@media (max-width: 420px) {
    .recommended-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
