
/* =================================
   페이지 기본 및 공통 스타일
   ================================= */


body {
    margin: 0;
    padding: 0;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #f8f9fa;
    text-align: center;
}

h1 {
    position: relative;
        z-index: 2;

        /* (★수정!) 강력한 흰색 폰트 스타일 */
        font-size: 3.5rem;  /* 폰트 크기 */
        font-weight: 900; /* 가장 굵게 */
        color: #ffffff;   /* 선명한 흰색 */

        /* (★추가!) 가독성을 위한 그림자 (어떤 사진이 와도 잘 보임) */
        text-shadow: 0px 2px 10px rgba(0, 0, 0, 0.7);
}

/* =================================
   메뉴 카테고리 제목
   ================================= */
.category-title {
    display: inline-block;
    margin-top: 60px;
    margin-bottom: 20px;
    padding-bottom: 5px;
    font-size: 2rem;
    font-weight: bold;
    color: #343a40;
    border-bottom: 3px solid #e67e22;
}

/* =================================
   메뉴 아이템 컨테이너
   ================================= */
.menu-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* =================================
   개별 메뉴 아이템 카드
   ================================= */
.menu-item {
    width: 280px;
    position: relative;
    overflow: hidden;
    text-align: left;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease-in-out;
}

.menu-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

/* --- 카드 내부 요소 --- */
.menu-item .img-wrapper {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.menu-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    transition: transform 0.3s ease-in-out;
}

.menu-item:hover img {
    transform: scale(1.05);
}

.menu-item .text-content {
    padding: 20px;
}

.menu-item h3 {
    margin: 0 0 8px 0;
    font-size: 1.2rem;
    color: #212529;
}

.menu-item .description {
    height: 40px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #6c757d;
}

.menu-item .price {
    font-size: 1.1rem;
    font-weight: bold;
    color: #e67e22;
}

.menu-item .badge {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
    padding: 5px 12px;
    font-size: 0.8rem;
    font-weight: bold;
    color: white;
    background-color: #e74c3c;
    border-radius: 7px;
}





/* ========== 스와이프기능 추가 ========== */
.menu-showcase {
    width: 100%;
    padding: 60px 0; /* 위아래 여백 */

}



/* 메인 페이지의 메뉴 컨테이너를 스크롤 가능하게 만듭니다. */
.menu-showcase .menu-container {
    flex-wrap: nowrap;
    overflow-x: auto;      /* ⭐ 핵심2: 가로로 넘칠 때 스크롤바 생성 */
    justify-content: flex-start;
    padding: 20px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Chrome, Safari 스크롤바 숨기기 */
.menu-showcase .menu-container::-webkit-scrollbar {
    display: none;
}





/* =================================
   메뉴 페이지 배너 이미지
   ================================= */

.menu-banner-image-container {
    width: 100%;
    height: 300px;
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;

}

/* (★추가!) 6. 어둡게("흐리게") 만드는 오버레이 필름 */
.menu-banner-image-container::before {
    content: ""; /* 가상 요소 필수 속성 */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    /* 검은색 40% 투명도 (이 숫자를 0.5, 0.6으로 올리면 더 어두워짐) */
    background-color: rgba(0, 0, 0, 0.4);

    /* 이미지가 아닌 이 오버레이가 맨 위에 보이도록 z-index 설정 */
    z-index: 1;
}


.menu-banner-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;

    /* 7. 이미지는 오버레이(z-index:1)보다 뒤에 있도록 설정 */
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}


/* =================================
   [수정] 음료 이미지 전용 스타일
   ================================= */
/* 기존에는 object-fit: cover 때문에 잘렸지만,
   음료는 contain으로 바꿔서 전체가 다 보이게 함 */
.menu-item img.drink-img {
    object-fit: contain; /* 비율 유지하며 액자 안에 쏙 들어오게 */
    padding: 15px;       /* 벽이랑 너무 붙지 않게 안쪽 여백 주기 */
    width: 100%;
    height: 100%;
    background-color: #fff; /* 혹시 배경이 투명하면 뒤가 깔끔하게 흰색으로 */
}

/* 마우스 올렸을 때 확대 효과도 살짝 부드럽게 유지 */
.menu-item:hover img.drink-img {
    transform: scale(1.1); /* 음료는 조금 더 커져도 귀여움 */
}