@font-face {
    font-family: 'Yanolja';
    src: url('https://gcore.jsdelivr.net/gh/projectnoonnu/noonfonts_two@1.0/YanoljaYacheR.woff') format('woff');
    font-weight: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Thin.woff2') format('woff2');
    font-weight: 100;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-ExtraLight.woff2') format('woff2');
    font-weight: 200;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Light.woff2') format('woff2');
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Medium.woff2') format('woff2');
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Bold.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Black.woff2') format('woff2');
    font-weight: 900;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-y: scroll;
    overscroll-behavior: none;
    -webkit-overflow-scrolling: touch;
    touch-action: manipulation;
}

html::-webkit-scrollbar {
    display: none;
}

html {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Pretendard Variable', 'Pretendard', 'Segoe UI', sans-serif;
    background-color: #ffffff;
    color: #1a1d23;
    line-height: 1.4;
    overscroll-behavior: none;
}

/* 480px 이상에서 좌우 영역에 회색 배경 */
@media (min-width: 481px) {
    body::before,
    body::after {
        content: '';
        position: fixed;
        top: 0;
        bottom: 0;
        width: calc((100vw - 480px) / 2);
        background-color: #f5f5f5;
        z-index: 9999;
        pointer-events: none;
    }
    body::before {
        left: 0;
    }
    body::after {
        right: 0;
    }
}

.container {
    max-width: 480px;
    margin: 0 auto;
    background-color: #ffffff;
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0;
}

/* 상단 헤더 */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    min-height: 56px;
    box-sizing: border-box;
}

/* 페이지 헤더 (검색 토글형) */
.page-header {
    position: sticky;
    top: 0;
    z-index: 100;
    margin-bottom: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.header-default {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    box-sizing: border-box;
}

.header-default.hidden {
    display: none;
}

.header-search {
    padding: 0 20px 16px 20px;
    display: none;
    flex-direction: column;
    gap: 0;
}

.header-search.active {
    display: flex;
}

.search-toggle-btn {
    width: 24px;
    height: 24px;
    cursor: pointer;
    flex-shrink: 0;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    font-family: 'Yanolja', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #e51a43;
    letter-spacing: -0.8px;
    line-height: 1;
}

.header-icons {
    display: flex;
    gap: 6px;
    align-items: center;
}

.icon-placeholder {
    width: 24px;
    height: 24px;
}

.search-icon {
    width: 24px;
    height: 24px;
}

.animal-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* 네비게이션 바 */
.nav-bar {
    background-color: rgba(255, 255, 255, 0.95);
    border-bottom: 0.65px solid #e5e6ea;
    padding: 12px 20px;
    display: none; /* 기본적으로 숨김 - 상세 페이지에서만 표시 */
    align-items: center;
    gap: 8px;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    min-height: 56px;
    box-sizing: border-box;
}

.nav-bar.show {
    display: flex;
}

.nav-back {
    width: 9px;
    height: 16px;
}

.nav-back-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.nav-title {
    flex: 1;
    text-align: center;
    font-family: 'Yanolja', sans-serif;
    font-size: 20px;
    font-weight: 400;
    letter-spacing: -0.5px;
}

.nav-right-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* 카테고리 탭 */
.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 20px;
    margin: 0;
}

.category-tabs::-webkit-scrollbar {
    display: none;
}

.category-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(243, 244, 246, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #4a5565;
    font-size: 14px;
    font-weight: 300;
    letter-spacing: -0.4px;
    cursor: pointer;
    transition: all 0.2s;
}

.category-tab.active {
    background: rgba(229, 26, 67, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    font-weight: 500;
}

.category-count {
    font-size: 12px;
    letter-spacing: -0.3px;
}

/* 하단 네비게이션 - Glassmorphism (통합) */
.bottom-nav,
.bottom-nav-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 440px;
    width: calc(100% - 40px);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 999px;
    padding: 8px;
    display: flex;
    gap: 8px;
    z-index: 100;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04), 0 0 0 0.5px rgba(0, 0, 0, 0.03);
}

/* 슬라이딩 배경 */
.nav-slider {
    position: absolute;
    top: 8px;
    left: 8px;
    height: calc(100% - 16px);
    background: rgba(229, 26, 67, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 999px;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 0;
}

.bottom-nav .nav-item,
.bottom-nav-container .nav-item,
.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 0;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 999px;
    position: relative;
    z-index: 1;
}

.bottom-nav .nav-item:active,
.bottom-nav-container .nav-item:active,
.nav-item:active {
    transform: scale(0.95);
    transition: transform 0.1s ease;
}

.nav-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.nav-label {
    font-family: 'Pretendard Variable', 'Pretendard', sans-serif;
    font-size: 12px;
    color: #99a1af;
    letter-spacing: -0.3px;
}

.bottom-nav .nav-item.active .nav-label,
.bottom-nav-container .nav-item.active .nav-label,
.nav-item.active .nav-label {
    color: #e51a43;
}

.bottom-nav .nav-item.active .nav-icon,
.bottom-nav-container .nav-item.active .nav-icon,
.nav-item.active .nav-icon {
    filter: brightness(0) saturate(100%) invert(17%) sepia(93%) saturate(7471%) hue-rotate(349deg) brightness(94%) contrast(93%);
}

/* 메인 컨텐츠 */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-bottom: 100px;
}

.content-card {
    border-bottom: 0.65px solid #e5e6ea;
    padding: 20px;
    cursor: pointer;
}

.card-header {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 12px;
}

.profile-pic {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background-color: #1a1d23;
    overflow: hidden;
}

.profile-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-info {
    flex: 1;
}

.brand-name {
    font-size: 16px;
    font-weight: 400;
    letter-spacing: -0.4px;
    color: #1a1d23;
}

.time-ago {
    font-size: 14px;
    letter-spacing: -0.35px;
    color: #6a7282;
}

.card-body {
    padding-left: 48px;
}

.product-title {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -0.45px;
    color: #1a1d23;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-description {
    font-size: 14px;
    letter-spacing: -0.35px;
    color: #4a5565;
    margin-bottom: 10px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.emoji-text {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.emoji-icon {
    width: 24px;
    height: 24px;
    background-color: #f0f0f0;
    border-radius: 4px;
}

.emoji-icon-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.emoji-label {
    font-family: 'Yanolja', sans-serif;
    font-size: 18px;
    letter-spacing: -0.45px;
    color: #4a5565;
}

.tags {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tag {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.35px;
    color: #155dfc;
}

.product-card {
    background-color: #f9fafb;
    border: 0.65px solid #e5e6ea;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
}

.product-image {
    width: 100%;
    height: 220px;
    background-color: #ffffff;
    overflow: hidden;
}

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

.product-details {
    padding: 16px;
}

.price-row {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 4px;
}

.current-price {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.4px;
    color: #1a1d23;
}

.original-price {
    font-size: 14px;
    letter-spacing: -0.35px;
    color: #6a7282;
    text-decoration: line-through;
}

.discount-badge {
    margin-left: auto;
    padding: 2px 6px;
    border-radius: 4px;
    background-color: transparent;
    display: flex;
    align-items: center;
    gap: 4px;
}

.discount-badge img {
    width: 14px;
    height: 14px;
    object-fit: contain;
}

.discount-text {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: -0.3px;
    color: #e51a43;
}

.rating-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.rating-row-detail {
    margin-bottom: 16px;
}

.star-rating {
    display: flex;
    gap: 4px;
    align-items: center;
}

.star-icon {
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.star-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.rating-score {
    font-size: 12px;
    letter-spacing: -0.3px;
    color: #4a5565;
}

.review-count {
    font-size: 12px;
    letter-spacing: -0.3px;
    color: #4a5565;
}

.action-row {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-top: 0;
    margin-bottom: 0;
}

.action-item {
    display: flex;
    gap: 8px;
    align-items: center;
}

.action-icon {
    width: 20px;
    height: 20px;
}

.action-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.action-count {
    font-size: 14px;
    letter-spacing: -0.35px;
}

.action-count.liked {
    color: #e51a43;
}

.action-count.default {
    color: #4a5565;
}

/* 섹션 헤더 */
.section-header {
    padding: 20px;
    border-bottom: 0.65px solid #e5e6ea;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.section-title-text {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -0.45px;
    color: #e51a43;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-emoji-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.section-subtitle {
    font-size: 16px;
    letter-spacing: -0.4px;
    color: #4a5565;
}

/* 제품 그리드 */
.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 0 20px 20px 20px;
}

.product-grid-item {
    border: 0.65px solid #e5e6ea;
    border-radius: 16px;
    overflow: hidden;
    background-color: white;
    position: relative;
}

.product-grid-image {
    width: 100%;
    height: 150px;
    background-color: #ffffff;
    background-image: linear-gradient(45deg, #f0f0f0 25%, transparent 25%),
                      linear-gradient(-45deg, #f0f0f0 25%, transparent 25%),
                      linear-gradient(45deg, transparent 75%, #f0f0f0 75%),
                      linear-gradient(-45deg, transparent 75%, #f0f0f0 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    overflow: hidden;
}

.product-grid-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-grid-info {
    padding: 16px;
}

.product-brand {
    font-size: 12px;
    letter-spacing: -0.3px;
    color: #6a7282;
    margin-bottom: 2px;
}

.product-name {
    font-size: 14px;
    letter-spacing: -0.35px;
    color: #1a1d23;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-price-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
}

.product-price {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.4px;
    color: #1a1d23;
}

.product-old-price {
    font-size: 12px;
    letter-spacing: -0.3px;
    color: #6a7282;
    text-decoration: line-through;
}

.product-discount {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: -0.3px;
    color: #e51a43;
}

.product-price-detail {
    display: flex;
    flex-direction: column;
}

.product-price-detail .rating-row {
    margin-top: 4px;
}

.product-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background-color: #e51a43;
    color: white;
    padding: 6px 8px;
    border-radius: 8px;
    font-size: 14px;
    letter-spacing: -0.35px;
}

.product-bookmark {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-bookmark-img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

/* 바코드 스캔 UI */
.barcode-scanner {
    padding: 20px;
}

.scanner-container {
    width: 100%;
    height: 330px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 50%, rgba(0,0,0,0.6) 100%),
                #101828;
    border-radius: 16px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.scanner-frame {
    width: 250px;
    height: 190px;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    border-radius: 14px;
    position: relative;
}

.scanner-corner {
    position: absolute;
    width: 24px;
    height: 24px;
    border: 3.7px solid white;
}

.scanner-corner.top-left {
    top: -1.5px;
    left: -1.5px;
    border-right: none;
    border-bottom: none;
    border-top-left-radius: 14px;
}

.scanner-corner.top-right {
    top: -1.5px;
    right: -1.5px;
    border-left: none;
    border-bottom: none;
    border-top-right-radius: 14px;
}

.scanner-corner.bottom-left {
    bottom: -1.5px;
    left: -1.5px;
    border-right: none;
    border-top: none;
    border-bottom-left-radius: 14px;
}

.scanner-corner.bottom-right {
    bottom: -1.5px;
    right: -1.5px;
    border-left: none;
    border-top: none;
    border-bottom-right-radius: 14px;
}

.scanner-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #e51a43;
    opacity: 0.524;
    box-shadow: 0 0 20px 0 rgba(229, 26, 67, 0.5);
    transform: translateY(-50%);
}

.scanner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

.scanner-icon {
    width: 128px;
    height: 128px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scanner-icon img {
    width: 128px;
    height: 128px;
    object-fit: contain;
}

.scanner-text {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 16px;
    letter-spacing: -0.4px;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    width: 100%;
}

/* 버튼 */
.primary-button {
    background-color: #e51a43;
    color: white;
    padding: 16px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: -0.4px;
    margin: 0 20px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    touch-action: manipulation;
}

.primary-button:active {
    transform: scale(0.98);
    background-color: #cc1739;
}

/* 빈 상태 */
.empty-state {
    padding: 40px 20px;
    text-align: center;
}

.empty-icon {
    width: 90px;
    height: 90px;
    background-color: #fef2f2;
    border-radius: 50%;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-icon-inner {
    width: 48px;
    height: 48px;
    background-color: #e51a43;
    border-radius: 8px;
}

.empty-title {
    font-size: 16px;
    letter-spacing: -0.4px;
    color: #1a1d23;
    margin-bottom: 16px;
}

.empty-description {
    font-size: 14px;
    letter-spacing: -0.35px;
    color: #6a7282;
    margin-bottom: 24px;
}

.empty-button {
    display: inline-block;
    background-color: #e51a43;
    color: white;
    padding: 12px 24px;
    border-radius: 14px;
    font-size: 16px;
    letter-spacing: -0.4px;
    cursor: pointer;
}

/* 배너 */
.banner {
    margin: 20px;
    height: 160px;
    background: linear-gradient(45deg, #f0f0f0 25%, transparent 25%),
                linear-gradient(-45deg, #f0f0f0 25%, transparent 25%),
                linear-gradient(45deg, transparent 75%, #f0f0f0 75%),
                linear-gradient(-45deg, transparent 75%, #f0f0f0 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.new-product-banner {
    position: relative;
}

.new-product-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.85) 100%);
    z-index: 1;
    pointer-events: none;
}

.banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 50px 0 0;
    width: 100%;
    z-index: 1;
}

.banner-icon {
    width: 40px;
    height: 40px;
    background-color: #e51a43;
    border-radius: 999px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: white;
    letter-spacing: -0.3px;
}

.banner-text-container {
    flex: 1;
}

.banner-title {
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -0.4px;
    color: white;
    margin-bottom: 2px;
}

.banner-description {
    font-size: 14px;
    letter-spacing: -0.35px;
    color: white;
    line-height: 1.4;
}

.banner-chevron {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 14px;
    z-index: 2;
}

.banner-chevron-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: invert(1);
}

/* 그리드 섹션 (범용) */
.grid-section {
    background-color: #f9fafb;
    border-bottom: 0.65px solid #e5e6ea;
}

.grid-section .section-header {
    border-bottom: none;
    padding-bottom: 0;
}

.grid-section .product-grid {
    padding-top: 10px;
    padding-bottom: 20px;
}

/* 당신을 위한 추천 섹션 */
.recommendation-section {
    background: linear-gradient(135deg, rgba(240, 253, 244, 1) 0%, rgba(236, 253, 245, 1) 100%);
    border-bottom: 0.65px solid #e5e6ea;
}

.recommendation-section .section-title-text {
    color: #0D542B;
}

.recommendation-section .section-header {
    border-bottom: none;
    padding-bottom: 10px;
}

.recommendation-product {
    margin: 0 20px 20px 20px;
    background-color: white;
    border: 0.65px solid #e5e6ea;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    gap: 8px;
}

.recommendation-product-image {
    width: 100px;
    height: 100px;
    background-color: #ffffff;
    border-radius: 16px;
    flex-shrink: 0;
    overflow: hidden;
}

.recommendation-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recommendation-product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.recommendation-product-price {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.4px;
    color: #00A63E;
    margin-top: auto;
}

/* 반응형 */
@media (max-width: 480px) {
    .container {
        max-width: 100%;
    }

    .bottom-nav {
        max-width: 100%;
    }
}

/* 제품 상세 섹션 */
.product-detail-section {
    padding: 20px;
}

.product-detail-header {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.product-info-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-detail-title {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -0.45px;
    color: #1a1d23;
    line-height: 1.4;
}

.emoji-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-main-image {
    width: 100%;
    height: 390px;
    border-radius: 16px;
    background-color: #ffffff;
    overflow: hidden;
}

.product-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 가격 정보 박스 */
.price-info-box {
    background-color: #f9fafb;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.price-badge-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.badge-icon {
    width: 16px;
    height: 16px;
}

.badge-icon-img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.badge-text {
    font-size: 14px;
    letter-spacing: -0.35px;
    color: #e51a43;
}

.price-display-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-large {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.4px;
    color: #1a1d23;
}

.price-strike {
    font-size: 14px;
    letter-spacing: -0.35px;
    color: #99a1af;
    text-decoration: line-through;
}

/* 가격 비교 */
.price-comparison {
    background-color: white;
    border-radius: 14px;
    padding: 12px;
    display: flex;
    gap: 12px;
}

.price-comp-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: center;
}

.price-comp-item.highlight {
    border-left: 0.65px solid #e5e6ea;
    border-right: 0.65px solid #e5e6ea;
}

.price-comp-label {
    font-size: 12px;
    letter-spacing: -0.3px;
    color: #6a7282;
}

.price-comp-value {
    font-size: 16px;
    letter-spacing: -0.4px;
    color: #1a1d23;
}

.price-comp-item.highlight .price-comp-value {
    color: #e51a43;
}

/* 구매 버튼 */
.buy-button {
    background-color: #e51a43;
    color: white;
    border: none;
    border-radius: 16px;
    padding: 14px;
    font-size: 16px;
    letter-spacing: -0.4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    touch-action: manipulation;
}

.buy-button-icon {
    width: 16px;
    height: 16px;
    margin-left: 8px;
}

/* 가격 추이 차트 */
.chart-container {
    background-color: white;
    border: 0.65px solid #e5e6ea;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chart-title {
    font-size: 16px;
    letter-spacing: -0.4px;
    color: #1a1d23;
    font-weight: 400;
}

.chart-area {
    width: 100%;
    height: 192px;
    position: relative;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#priceChart {
    max-width: 100%;
    height: auto;
}

.chart-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chart-footer-left {
    display: flex;
    align-items: center;
    gap: 4px;
}

.chart-icon {
    width: 16px;
    height: 16px;
}

.chart-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.chart-text {
    font-size: 12px;
    letter-spacing: -0.3px;
    color: #6a7282;
}

.chart-footer-right {
    font-size: 12px;
    letter-spacing: -0.3px;
    color: #6a7282;
}

/* AI 리뷰 분석 */
.ai-review-section {
    border-top: 0.65px solid #e5e6ea;
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ai-review-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ai-badge-line {
    width: 4px;
    height: 24px;
    background-color: black;
    border-radius: 999px;
}

.ai-review-title {
    font-size: 16px;
    letter-spacing: -0.4px;
    color: #1a1d23;
    font-weight: 400;
}

.ai-badge {
    background-color: black;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    letter-spacing: -0.3px;
}

.ai-review-summary {
    font-size: 14px;
    letter-spacing: -0.35px;
    color: #4a5565;
    line-height: 1.5;
}

/* 리뷰 아코디언 */
.review-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.accordion-item {
    border: 0.65px solid #e5e6ea;
    border-radius: 8px;
    overflow: hidden;
}

.accordion-header {
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background-color: white;
}

.accordion-title {
    font-size: 16px;
    letter-spacing: -0.4px;
    color: #1a1d23;
}

.accordion-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.accordion-content {
    padding: 0 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.accordion-item:not(.expanded) .accordion-content {
    display: none;
}

.review-point {
    display: flex;
    gap: 8px;
    font-size: 14px;
    letter-spacing: -0.35px;
    color: #4a5565;
    line-height: 1.5;
}

.bullet {
    flex-shrink: 0;
}

/* 사용 방법 섹션 */
.how-to-use {
    margin: 20px;
    background-color: #EFF6FF;
    border-radius: 16px;
    padding: 20px;
}

.how-to-title {
    font-size: 16px;
    font-weight: 400;
    letter-spacing: -0.4px;
    color: #1a1d23;
    margin-bottom: 16px;
}

.how-to-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding-left: 20px;
}

.how-to-item {
    font-size: 14px;
    letter-spacing: -0.35px;
    color: #4a5565;
    line-height: 1.5;
}

/* TOP 100 섹션 */
.top-100-section {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.top-100-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 20px;
    border-bottom: 0.5px solid #e5e6ea;
    position: relative;
}

.top-100-item.rank-1 {
    background-color: #FFFBEA;
}

.top-100-item.rank-2 {
    background-color: #F9FAFB;
}

.top-100-item.rank-3 {
    background-color: #FFF8ED;
}

.top-100-ranking-area {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2px;
    align-self: stretch;
    min-width: 40px;
    flex-shrink: 0;
}

.top-100-ranking-icon {
    width: auto;
    height: 40px;
    object-fit: contain;
}

.top-100-ranking-number {
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -0.4px;
    color: #1a1d23;
}

.top-100-change {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 2px 6px;
    border-radius: 4px;
    background-color: transparent;
}

.top-100-change-icon {
    width: 10px;
    height: 10px;
    object-fit: contain;
}

.top-100-change-text {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: -0.3px;
    color: #e51a43;
}

.top-100-image {
    width: 100px;
    height: 100px;
    background-color: #ffffff;
    border-radius: 16px;
    flex-shrink: 0;
    overflow: hidden;
}

.top-100-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.top-100-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.top-100-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.top-100-price-rating {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.top-100-bookmark {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.top-100-bookmark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 스크롤 맨 위로 버튼 */
.scroll-to-top {
    position: fixed;
    bottom: 110px;
    right: 20px;
    width: 48px;
    height: 48px;
    background-color: rgba(229, 26, 67, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 98;
}

/* 화면이 480px보다 클 때 480px 컨테이너 내부에 위치 */
@media (min-width: 481px) {
    .scroll-to-top {
        right: calc((100vw - 480px) / 2 + 20px);
    }
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background-color: rgba(229, 26, 67, 1);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.scroll-to-top:active {
    transform: translateY(0);
}

.scroll-to-top img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* 검색창 */
.search-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid #e51a43;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    width: 100% !important;
    margin: 8px 0;
    box-sizing: border-box;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    color: #e51a43;
    padding: 4px 0;
}

.search-input::placeholder {
    color: #e51a43;
}

.search-icon-btn {
    width: 16px;
    height: 16px;
    cursor: pointer;
    flex-shrink: 0;
    display: block;
}

.search-icon-btn path {
    fill: #e51a43;
    stroke: #e51a43;
}

/* ========================================
   Search Detail Page Styles
   ======================================== */

/* 검색 헤더 */
.search-header {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    gap: 8px;
    box-sizing: border-box;
}

.back-button {
    width: 9px;
    height: 16px;
    cursor: pointer;
    transform: rotate(180deg);
    flex-shrink: 0;
}

.header-title {
    flex: 1;
    font-family: 'Yanolja Yache OTF', 'Yanolja', sans-serif;
    font-size: 20px;
    font-weight: 400;
    color: #0a0a0a;
    text-align: center;
    letter-spacing: -0.5px;
    line-height: 1.4;
    /* 한 줄 넘어가면 말줄임표 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 8px;
}

.close-button {
    width: 24px;
    height: 24px;
    cursor: pointer;
    flex-shrink: 0;
}

/* 검색 입력 */
.search-input-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border: 1px solid #e51a43;
    border-radius: 999px;
}

.search-input-wrapper .search-input {
    flex: 1;
    font-family: 'Pretendard Variable', 'Pretendard', sans-serif;
    font-size: 12px;
    color: #e51a43;
    border: none;
    outline: none;
    background: transparent;
    letter-spacing: -0.3px;
}

.search-input-wrapper .search-input::placeholder {
    color: #e51a43;
}

.icon-button {
    width: 16px;
    height: 16px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

/* 상품 정보 */
.product-info {
    padding: 0 20px 12px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-count {
    font-family: 'Pretendard Variable', 'Pretendard', sans-serif;
    font-size: 14px;
    color: #0a0a0a;
    letter-spacing: -0.35px;
}

.sort-options {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.sort-icon {
    width: 20px;
    height: 20px;
}

.sort-text {
    font-family: 'Pretendard Variable', 'Pretendard', sans-serif;
    font-size: 14px;
    color: #0a0a0a;
    letter-spacing: -0.35px;
}

/* 상세 헤더 (두 번째) */
.detail-header {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.detail-header-top {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 브레드크럼 */
.breadcrumb-wrapper {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 20px;
}

.breadcrumb-text {
    font-family: 'Pretendard Variable', 'Pretendard', sans-serif;
    font-size: 14px;
    color: #0a0a0a;
    cursor: pointer;
    letter-spacing: -0.35px;
}

.breadcrumb-arrow {
    width: 20px;
    height: 20px;
}

/* 모달 오버레이 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: transparent;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 모달 컨텐츠 */
.modal-content {
    background-color: transparent;
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

/* 상단 여백 */
.modal-spacer {
    height: 50px;
    background-color: transparent;
    border-radius: 16px 16px 0 0;
}

/* 모달 바디 */
.modal-body {
    background-color: #ffffff;
    border-radius: 16px 16px 0 0;
    padding: 24px;
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* 모달 헤더 */
.modal-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-title {
    flex: 1;
    font-family: 'Pretendard Variable', 'Pretendard', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    letter-spacing: -0.35px;
}

.modal-close-button {
    width: 20px;
    height: 20px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-icon {
    width: 20px;
    height: 20px;
}

/* 옵션 리스트 */
.option-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.option-item {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px 0;
}

.radio-button {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.option-label {
    font-family: 'Pretendard Variable', 'Pretendard', sans-serif;
    font-size: 14px;
    font-weight: 300;
    color: #333;
    letter-spacing: -0.3px;
}

/* ========================================
   Category Page Styles
   ======================================== */

/* Bottom Sheet Handle */
.bottom-sheet-handle {
    width: 40px;
    height: 4px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 2px;
    margin: 12px auto;
}

/* Category Bottom Sheet - Full Screen */
.category-bottom-sheet-content {
    max-height: 95vh;
    height: 95vh;
}

.category-bottom-sheet-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 32px;
    padding-bottom: 0;
    border-radius: 32px 32px 0 0;
    box-sizing: border-box;
    min-height: 0;
}

.category-bottom-sheet-body .modal-header {
    flex-shrink: 0;
    margin-bottom: 0;
}

/* 카테고리 컨테이너 */
.category-container {
    background-color: transparent;
    flex: 1;
    display: flex;
    gap: 10px;
    overflow: hidden;
    min-height: 0;
}

/* 왼쪽 사이드바 */
.category-sidebar {
    background-color: #f9fafb;
    width: 130px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding-bottom: 24px;
    /* 스크롤바 숨기기 */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.category-sidebar::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.category-sidebar-item {
    padding: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
}

.category-sidebar-item:hover {
    background-color: #f3f4f6;
}

.category-sidebar-item.active {
    background-color: #ffffff;
}

.category-sidebar-text {
    font-size: 14px;
    letter-spacing: -0.35px;
    color: #666666;
}

.category-sidebar-item.active .category-sidebar-text {
    font-weight: 500;
    color: #0a0a0a;
}

/* 오른쪽 콘텐츠 영역 */
.category-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px;
    padding-bottom: 24px;
    overflow-y: auto;
    /* 스크롤바 숨기기 */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.category-content::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* 카테고리 섹션 */
.category-section {
    display: flex;
    flex-direction: column;
}

/* 카테고리 페이지 섹션 헤더 */
.category-section .section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 42px;
    padding: 10px 0;
    cursor: pointer;
    border-bottom: none;
}

.category-section .section-header:hover {
    background-color: #f9fafb;
}

/* 카테고리 페이지 섹션 타이틀 */
.category-section .section-title {
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -0.4px;
    color: #0a0a0a;
    display: block;
    margin-bottom: 0;
}

.category-section .chevron-icon {
    width: 7px;
    height: 14px;
    flex-shrink: 0;
}

/* 하위 항목 */
.section-items {
    display: flex;
    flex-direction: column;
}

.section-item {
    height: 40px;
    padding: 10px 0;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.section-item:hover {
    background-color: #f9fafb;
}

.section-item-text {
    font-size: 14px;
    letter-spacing: -0.35px;
    color: #0a0a0a;
}

/* ========================================
   Pagination (SEO용 페이지네이션)
======================================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 20px;
    margin-top: 16px;
}

.pagination-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #e5e6ea;
    border-radius: 8px;
    background-color: #ffffff;
    color: #1a1d23;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pagination-link:hover {
    background-color: #f9fafb;
    border-color: #d1d5db;
}

.pagination-link.active {
    background-color: #e51a43;
    border-color: #e51a43;
    color: #ffffff;
    pointer-events: none;
}

.pagination-link.prev,
.pagination-link.next {
    padding: 0 16px;
    font-weight: 600;
}

.pagination-ellipsis {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: #9ca3af;
    font-size: 14px;
}

/* product-grid-item을 a 태그로 사용할 때 스타일 유지 */
a.product-grid-item {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}
.footer-wrap {
    display: flex;
    flex-direction: column;
    padding: 24px;
    gap: 24px;
    margin-bottom: 16px;
}
.footer-notice {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.footer-notice-item {
    font-size: 10px;
    font-weight: 300;
    color: #a2a2a2;
}
.footer-company {
    text-align: center;
    font-size: 12px;
    color: #999999;
    font-weight: 400;
}