/* ========== Addington CF 폰트 정의 ========== */
@font-face {
    font-family: 'Addington CF';
    src: url('fonts/AddingtonCF-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Addington CF';
    src: url('fonts/AddingtonCF-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Addington CF';
    src: url('fonts/AddingtonCF-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Addington CF';
    src: url('fonts/AddingtonCF-DemiBold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
}

body {
    margin: 0;
    padding: 0;
    background-color: #000;
    color: #fff;
    font-family: 'Pretendard', sans-serif;
}

/* ========== 헤더 스타일 ========== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #FFFBF5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 1000;
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.6s ease, opacity 0.6s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.site-header.visible {
    transform: translateY(0);
    opacity: 1;
}

/* 햄버거 메뉴 버튼 */
.hamburger-menu {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    z-index: 1001;
}

.hamburger-menu span {
    display: block;
    width: 24px;
    height: 2px;
    background: #3E2512;
    transition: all 0.3s ease;
}

/* 헤더 로고 */
.header-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.header-logo img {
    height: 35px;
    width: auto;
}

/* 오른쪽 공간 (균형용) */
.header-spacer {
    width: 40px;
}

/* ========== 모바일 사이드 네비게이션 ========== */
.mobile-nav {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background: #FFFBF5;
    z-index: 2000;
    transition: left 0.3s ease;
    padding: 80px 30px 30px;
    box-sizing: border-box;
}

.mobile-nav.open {
    left: 0;
}

.mobile-nav .close-menu {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #3E2512;
    cursor: pointer;
}

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

.mobile-nav li {
    margin-bottom: 20px;
}

.mobile-nav a {
    font-family: 'Addington CF', Georgia, serif;
    font-size: 1.2rem;
    font-weight: 500;
    color: #3E2512;
    text-decoration: none;
    letter-spacing: 2px;
    transition: color 0.3s ease;
}

.mobile-nav a:hover {
    color: #C9A050;
}

/* 오버레이 */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    z-index: 1500;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav-overlay.visible {
    opacity: 1;
    visibility: visible;
}

/* 1. 스크롤 영역 확보 (높이를 400vh~500vh 정도로 길게 잡아야 부드럽습니다) */
.scroll-container {
    height: 250vh;
    /* 기본적으로 모바일용 (스크롤 애니메이션용) */
    position: relative;
}

/* 데스크탑: 스크롤 애니메이션 대신 영상 재생 (전체 높이 100vh로 고정) */
@media (min-width: 1024px) {
    .scroll-container {
        height: 100vh;
    }
}

/* 2. 비디오를 화면에 고정 (Sticky) */
.sticky-wrapper {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 화면 꽉 채우기 */
}

/* 중앙 로고 스타일 */
.hero-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    width: 60%;
    /* 화면 비율에 맞게 조정 */
    max-width: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.hero-logo img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.4));
    /* 로고가 더 잘 보이게 그림자 추가 */
}

@media (max-width: 1024px) {
    .hero-logo {
        width: 80%;
        /* 모바일에서는 좀 더 크게 */
    }
}

/* 하단 콘텐츠 */
.content-section {
    height: 100vh;
    background: white;
    color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
}

/* ========== 초콜릿 배지 스타일 ========== */
.scroll-badges {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.choco-badge {
    position: absolute;
    left: 50%;
    transform: translateX(-50%) translateY(100vh);
    opacity: 0;
    transition: opacity 0.3s ease;

    /* 초콜릿 모양 배지 */
    background: linear-gradient(145deg, #5D3A1A, #3E2512);
    padding: 16px 28px;
    border-radius: 20px;
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.5),
        inset 0 2px 4px rgba(255, 255, 255, 0.1),
        inset 0 -2px 4px rgba(0, 0, 0, 0.3);

    /* 골드 테두리 */
    border: 2px solid #C9A050;
}

.choco-badge span {
    font-family: 'Georgia', serif;
    font-size: 1.4rem;
    font-weight: bold;
    color: #F5DEB3;
    /* 밀크 베이지 텍스트 */
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.5),
        0 0 10px rgba(201, 160, 80, 0.3);
    letter-spacing: 1px;
    white-space: nowrap;
}

/* 데스크탑에서는 배지 숨김 */
@media (min-width: 1024px) {
    .scroll-badges {
        display: none;
    }
}

/* ========== 메뉴 섹션 스타일 ========== */
.menu-section {
    background: #FFFBF5;
    padding: 60px 20px;
    min-height: 100vh;
}

.menu-brand {
    text-align: center;
    font-family: 'Addington CF', Georgia, serif;
    font-size: 2.5rem;
    font-weight: 500;
    color: #3E2512;
    margin-bottom: 30px;
    letter-spacing: 4px;
}

/* 탭 네비게이션 */
.menu-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 20px;
    margin-bottom: 40px;
    border-bottom: 1px solid #E5D5C5;
    padding-bottom: 20px;
}

.tab-btn {
    background: none;
    border: none;
    font-family: 'Addington CF', Georgia, serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: #A89585;
    cursor: pointer;
    padding: 8px 4px;
    transition: color 0.3s ease;
    letter-spacing: 1px;
}

.tab-btn:hover {
    color: #5D3A1A;
}

.tab-btn.active {
    color: #3E2512;
    font-weight: bold;
}

/* 상품 컨테이너 */
.product-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

/* 상품 리스트 - 모바일: 세로 리스트 */
.product-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* 상품 카드 */
.product-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(62, 37, 18, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(62, 37, 18, 0.15);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

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

.product-info h3 {
    font-family: 'Addington CF', Georgia, serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #3E2512;
    margin: 0 0 8px 0;
}

.product-info p {
    font-size: 0.9rem;
    color: #7A6A5A;
    margin: 0;
    line-height: 1.5;
}

/* 슬라이더 네비게이션 버튼 - 모바일에서는 숨김 */
.slider-nav {
    display: none;
}

/* ========== 데스크탑 레이아웃 ========== */
@media (min-width: 1024px) {
    .menu-section {
        padding: 80px 60px;
    }

    .menu-brand {
        font-size: 3rem;
    }

    .menu-tabs {
        gap: 40px;
    }

    .tab-btn {
        font-size: 1rem;
    }

    /* 상품 리스트 - 데스크탑: 가로 슬라이더 */
    .product-container {
        overflow: hidden;
        padding: 0 50px;
    }

    .product-list {
        flex-direction: row;
        gap: 30px;
        overflow-x: auto;
        scroll-behavior: smooth;
        padding: 20px 10px;
        scrollbar-width: none;
        /* Firefox */
        -ms-overflow-style: none;
        /* IE/Edge */
    }

    .product-list::-webkit-scrollbar {
        display: none;
        /* Chrome/Safari */
    }

    .product-card {
        flex: 0 0 320px;
        min-width: 320px;
    }

    .product-card img {
        height: 220px;
    }

    /* 슬라이더 네비게이션 버튼 - 데스크탑에서 표시 */
    .slider-nav {
        display: flex;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 50px;
        height: 50px;
        background: rgba(255, 255, 255, 0.95);
        border: 1px solid #E5D5C5;
        border-radius: 50%;
        font-size: 1.2rem;
        color: #5D3A1A;
        cursor: pointer;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        z-index: 10;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }

    .slider-nav:hover {
        background: #3E2512;
        color: #fff;
    }

    .slider-nav.prev {
        left: 0;
    }

    .slider-nav.next {
        right: 0;
    }
}