:root {
    --primary-color: #f8f9fa;
    --text-color: #333;
    --soft-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
    background-color: #fff;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

#app {
    position: relative;
    max-width: 500px; /* 모바일 우선: 최대 폭 제한 */
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 0 50px rgba(0,0,0,0.1);
    min-height: 100vh;
}

/* 배경 장식 */
.glow-effect {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    opacity: 0.5;
}

.glow-effect img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 헤더 */
.main-header {
    position: sticky;
    top: 0;
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    z-index: 100;
}

.icon-btn {
    width: 35px;
    height: auto;
    cursor: pointer;
    transition: var(--transition);
}

.icon-btn:active {
    transform: scale(0.9);
}

.search-bar img {
    height: 35px;
    width: auto;
}

/* 섹션 공통 */
.scrolling-section {
    position: relative;
    width: 100%;
}

.background-layer {
    width: 100%;
}

.background-layer img {
    width: 100%;
    display: block; /* 이미지 하단 공백 제거 */
}

.content-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

/* 히어로 섹션 */
#hero .hero-banner {
    margin-top: 40px;
    width: 90%;
}

#hero .hero-banner img {
    width: 100%;
}

.hero-actions {
    margin-top: auto;
    margin-bottom: 50px;
}

.action-btn {
    width: 200px;
    height: auto;
    cursor: pointer;
    transition: var(--transition);
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.1));
}

.action-btn:active {
    transform: scale(0.95);
}

/* 병아리 마스코트 컴포넌트 스타일 */
chick-mascot {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

/* 역사 섹션 */
.section-header {
    margin-top: 30px;
    width: 70%;
}

.section-header img {
    width: 100%;
}

.history-content {
    width: 100%;
    margin-top: 30px;
}

.full-width-img {
    width: 100%;
    height: auto;
}

.intro-text {
    width: 80%;
    margin: 20px auto;
    display: block;
}

.history-quiz {
    margin-top: 20px;
}

.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* 컬렉션 섹션 */
.category-nav {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.category-nav img {
    height: 40px;
    cursor: pointer;
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    width: 100%;
    margin-top: 20px;
}

.product-item {
    position: relative;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--soft-shadow);
}

.product-item img {
    width: 100%;
}

.product-actions {
    position: absolute;
    bottom: 15px;
    right: 15px;
    display: flex;
    gap: 10px;
}

.mini-btn {
    width: 40px;
    height: auto;
    cursor: pointer;
}

/* 정보 섹션 */
.info-section {
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.section-header-img {
    width: 60%;
}

.center {
    display: block;
    margin: 0 auto;
}

/* 푸터 */
.main-footer {
    width: 100%;
    background: #f1f1f1;
}

.main-footer img {
    width: 100%;
    display: block;
}

/* 스크롤바 숨기기 (선택 사항) */
::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}
