/* frontend/css/style.css */
:root { --font-primary: 'Pretendard', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; --font-weight-regular: 400; --font-weight-medium: 500; --font-weight-semibold: 600; --font-weight-bold: 700; --header-height: 106px; --footer-height: 200px; }
body { font-family: var(--font-primary); margin: auto; padding-top: var(--header-height); min-height: 100vh; display: flex; flex-direction: column; margin: 0; user-select: none; }
body.modal-open {overflow: hidden;}
.main-ind { margin: 0; padding: 0; display: block; }
/* ========================================= */
/* 1. 기본 모달 오버레이 스타일 (유지) */
/* ========================================= */
#custom-modal, #refund-modal { 
    display: none; 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    z-index: 1001; 
    background-color: rgba(0, 0, 0, 0.4); 
    transition: opacity 0.3s ease; 
    opacity: 0; 
    justify-content: center; 
    align-items: center; 
}
#custom-modal.is-active, #refund-modal.is-active { 
    display: flex; 
    opacity: 1; 
}

/* ========================================= */
/* 2. 모달 컨텐츠 스타일 (유지) */
/* ========================================= */
.modal-content-ios { 
    background-color: rgba(255, 255, 255, 1); 
    border-radius: 14px; 
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2); 
    width: 90%; 
    max-width: 270px; /* iOS Alert 표준 너비 */
    color: #333; 
    overflow: hidden; 
    text-align: center; 
    display: flex; /* 내부 요소 수직 배열을 위해 flex 사용 */
    flex-direction: column;
}

/* ========================================= */
/* 3. 메시지 영역 스타일 (유지) */
/* ========================================= */
.modal-message-area { 
    padding: 20px 15px; 
    font-size: 16px; 
    line-height: 1.4; 
    padding-bottom: 0; 
}
.modal-message-area .title { 
    font-weight: var(--font-weight-semibold); 
    margin-top: 5px; 
}
.modal-message-area .message { 
    color: #6b7280; 
    margin: 0; 
    padding-bottom: 10px; /* 구분선 위 여백 */
    margin-bottom: 15px; /* 구분선 아래 여백 */
    font-size: 14px;
}


/* ========================================= */
/* 4. [NEW] 환불 폼 관련 스타일 (핵심 변경) */
/* ========================================= */
/* .modal-refund .modal-message-area {
    padding-left: 0;
    padding-right: 0;
} */

.modal-refund .input-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0 15px 15px;
    height: auto;
    border: none;
}

.modal-refund .input-group label {
    display: none;
}

.modal-refund input[type="text"] {
    width: 100%;
    padding: 8px 10px;
    border: none;
    background-color: rgba(118, 118, 128, 0.12);
    border-radius: 6px;
    font-size: 15px;
    color: #333;
    box-sizing: border-box;
    text-align: center;
}

.modal-refund input[type="text"]:focus {
    border: none;
    outline: none;
    background-color: rgba(118, 118, 128, 0.18);
}


/* ========================================= */
/* 5. 버튼 영역 스타일 (iOS Confirm/Alert에 맞게 통합) */
/* ========================================= */

/* 여러 버튼을 담는 영역 */
.modal-button-area {
    display: flex;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    width: 100%;
    flex-shrink: 0; /* 내용이 많아도 버튼 영역 크기는 유지 */
}

/* ✨ [보강] Alert 모드 (단일 버튼)의 구분선 처리 */
#custom-modal > .modal-content-ios > #modal-close.modal-close-btn-ios {
    /* 이 선택자는 #custom-modal 내부에 바로 위치한 #modal-close 버튼을 타겟합니다. */
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    /* 버튼이 flex-grow를 가지지 않으므로 너비를 100%로 설정하여 가로 전체를 차지하게 합니다. */
    width: 100%; 
}

/* 개별 버튼 기본 스타일 */
.modal-close-btn-ios,
.modal-confirm-btn-ios {
    flex-grow: 1;
    flex-basis: 0;
    padding: 13px 15px; 
    font-size: 15px; 
    font-weight: var(--font-weight-regular); /* iOS 버튼 기본 굵기 */
    color: #007aff; 
    border: none;
    background-color: transparent; 
    cursor: pointer; 
    transition: background-color 0.1s;
    /* '취소'와 '환불 요청' 사이의 수직 구분선 */
    border-right: 1px solid rgba(0, 0, 0, 0.05); 
}

/* 2개 버튼 중 오른쪽 버튼의 오른쪽 테두리 제거 */
.modal-confirm-btn-ios:last-child {
    border-right: none;
}

/* 취소 버튼 스타일 (왼쪽) */
.modal-close-btn-ios {
    font-weight: var(--font-weight-regular);
}

/* 확인/제출 버튼 스타일 (오른쪽 - primary) */
.modal-confirm-btn-ios.primary {
    font-weight: var(--font-weight-semibold); /* 강조 */
}

/* 버튼 눌림 효과 */
.modal-close-btn-ios:active, 
.modal-confirm-btn-ios:active { 
    background-color: rgba(0, 0, 0, 0.05); 
}

.content-line { font-weight: var(--font-weight-semibold); }
.content-value { font-weight: var(--font-weight-regular); margin-left: 10px; }
h1, h2, h3 { font-weight: var(--font-weight-semibold); margin: 0; }
a { text-decoration: none; color: inherit; font-family: inherit; margin: 0 !important; vertical-align: top; }
input[type="date"], input[type="text"], input[type="email"], button, select, textarea { font-family: inherit; font-size: inherit; font-weight: inherit; -webkit-appearance: none; -moz-appearance: none; appearance: none; }
input[type="text"]:focus { outline: none; box-shadow: none; border-color: #000; border-width: 1px; }
input[type="date"]::-webkit-calendar-picker-indicator { opacity: 0; pointer-events: none; width: 0; }
.menu-open { overflow: hidden !important; }
.hidden { display: none !important; }
.cursor-pointer {cursor: pointer;}
header { position: fixed; top: 0; width: 100%; z-index: 1000; background-color: white; height: var(--header-height); }
.header-nav-bar { position: relative; display: flex; justify-content: space-between; align-items: center; margin: 0 auto; padding: 22px 20px 22px; }
.nav-left, .nav-right { display: flex; align-items: center; gap: 20px; }
.hamburger-icon, .search-icon, .cart-icon { width: 24px; height: 24px; cursor: pointer; }
.small-icon { width: 15px; height: 17px; }
.nav-center { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.nav-center a { display: flex; align-items: center; text-decoration: none; }
.logo { object-fit: contain; display: block; }
.sub-menu-nav { display: block; margin: 0 auto; padding: 0 20px; }
.sub-menu-list { list-style: none; padding: 0; margin: 0; display: flex; gap: 20px;}
.sub-menu-list li { margin: 10px 0; }
.sub-menu-list a { font-size: 16px; font-weight: var(--font-weight-semibold); display: block; }
.sub-menu-list a.active { border-bottom: 1px solid #000000; }
.sub-menu-list a:hover { color: #717171; }
.hamburger-toggle-btn { background: none; border: none; padding: 0; cursor: pointer; }
.main-content-wrapper { display: flex; justify-content: center; flex-grow: 1; width: calc(100% - 40px); padding: 20px; align-items: center; }
.main-content-wrapper.snap-wrap { flex-direction: column; width: 100%; padding: 0; }
.main-content-wrapper.product-wrap { flex-grow: 1; width: 100%; padding: 0; }
.main-content-wrapper.list-start { align-items: flex-start; }
.list-start .auth-subtitle { border-bottom: none; }
.full-screen-menu-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.88); z-index: 1000; visibility: hidden; opacity: 0; transition: opacity 0.3s, visibility 0.3s; display: flex; flex-direction: column; justify-content: center; }
.full-screen-menu-overlay.active { visibility: visible; opacity: 1; }
.menu-close-btn { position: absolute; top: 25px; right: 20px; background: none; border: none; cursor: pointer; }
.menu-close-btn img { width: 20px; height: 20px; filter: invert(100%); }
.overlay-search-bar { display: flex; width: 80%; max-width: 400px; margin: 40px auto 20px; border-bottom: 2px solid white; }
.overlay-search-bar input { flex-grow: 1; background: none; border: none; color: white; padding: 10px 0; font-size: 1.2rem; }
.overlay-search-bar button { background: none; border: none; cursor: pointer; padding: 0; }
.overlay-search-bar img { width: 24px; height: 24px; filter: invert(100%); }
.nav-menu { list-style: none; padding: 0; margin: 0; text-align: center; width: 100%; }
.overlay-menu-group { display: inline-flex; flex-direction: column; padding: 30px; }
.overlay-menu-group li { padding: 10px 0; list-style: none; }
.overlay-menu-group a { color: white; font-size: 1.1rem; font-weight: var(--font-weight-regular); padding: 5px 0; display: block; }
.overlay-menu-group a:hover { color: #DDB28B; }
footer { color: #5C5147; padding: 0 20px; font-size: 0.7rem; scroll-snap-align: start; }
footer h3 { font-size: 0.9rem; margin: 0.4rem 0; }
footer p, li { margin: 0.3rem 0; list-style: none; }
.footer-sections { display: flex; justify-content: space-between; align-items: flex-start; padding: 7px 0 5px; border-top: 1px solid; border-bottom: 1px solid; }
.footer-section-left, .footer-section-right { flex-grow: 1; flex-basis: 0; }
.footer-links { padding: 0; display: flex; gap: 20px; margin-top: 3px; padding-right: 10px; }
.operating-hours-list { padding-left: 0; margin-bottom: 0; }
.operating-hours-list .lunch-break { padding-left: 0.5rem; margin: 0.3rem 0; }
.sns-icons { display: flex; align-items: center; }
.sns-icons .kakaoTalk { width: 24px; margin: 0 5px; }
.sns-icons .Instagram { width: 27px; margin: 0 5px; }
.sns-icons .Naver { width: 20px; margin: 0 5px; }
.footer-copyright { font-size: 0.68rem; padding: 5px 0; }
.footer-section-right .address-line { padding-left: 3.9rem; text-indent: -3.9rem; word-wrap: break-word; }
.spaced-select { background-image: url('/assets/icons/down_arrow.svg'); background-repeat: no-repeat; background-position: right 15px center; background-size: 1rem; padding-right: 2.75rem; background-color: #fff; transition: border-color 0.2s, box-shadow 0.2s; }
.snap-container { position: absolute; top: var(--header-height); left: 0; right: 0; height: calc(100vh - var(--header-height)); width: 100%; overflow-y: scroll; scroll-snap-type: y mandatory; -ms-overflow-style: none; scrollbar-width: none; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; }
.snap-container::-webkit-scrollbar { display: none !important; width: 0 !important; height: 0 !important; }
.full-page-section { height: calc(100vh - var(--header-height)); width: 100%; scroll-snap-align: start; display: flex; align-items: center; justify-content: center; box-sizing: border-box;}
.full-page-section img { width: 100%; height: 100%; object-fit: cover; }
.content-wrapper { height: 100%; width: 100%;}
.section-about {
  display: flex;
  gap: 20px;
}
.section-final .content-wrapper {    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px;
    height: calc(100% - 160px);}
.section-intro .content-wrapper {display: flex;
    justify-content: flex-end;
    align-items: center;}
.section-intro picture {
    /* 1. 컨테이너 크기 지정 */
    width: 70%;
    height: 80%;
    display: block; /* <picture>를 블록 요소로 만들어 정확한 크기를 가지게 합니다. */
    /* 2. 애니메이션 적용 */
    animation: fadeIn 1.5s ease-in-out forwards;
}

.section-intro picture img {
    /* 3. <picture>를 가득 채우도록 설정 */
    width: 100%;
    height: 100%;
    /* 4. 이미지 처리 속성 적용 */
    object-fit: cover;
    object-position: center;
}
.section-final picture {
    /* 컨테이너 크기 지정 */
    width: 100%;
    height: 100%;
    display: block; 
}

.section-final picture img {
    /* <picture>를 가득 채우도록 설정 */
    width: 100%;
    height: 100%;
    /* 이미지 처리 속성 적용 */
    object-fit: cover;
}
.section-mid .content-wrapper { height: 100%; box-sizing: border-box; display: flex; align-items: flex-start; justify-content: center; padding: 32px 0; }
.section-mid .image-container { display: flex; flex-direction: row; height: calc(100% - 64px); width: 100%; align-items: flex-start; }

.section-mid .image-container picture {
    /* 1. 컨테이너 크기 및 위치 지정 */
    width: calc(20% + 15px); 
    margin-left: -15px;
    position: relative;
    height: 80%;
    flex-shrink: 0;
    
    /* 2. <picture>에도 transition을 적용하여 부드러운 효과 유지 */
    transition: align-self 0.3s ease, transform 0.3s ease; 
}

.section-mid .image-container picture:nth-child(odd) {
    /* <picture>를 기준으로 정렬/변형 적용 */
    align-self: flex-start; 
    transform: translateY(20%);
    z-index: 1;
}
.section-mid .image-container picture:nth-child(even) {
    /* <picture>를 기준으로 정렬/변형 적용 */
    align-self: flex-end; 
    transform: translateY(-20%);
    z-index: 1;
}

.section-mid .image-container picture img {
    /* 3. <picture>를 가득 채우도록 설정 */
    width: 100%;
    height: 100%;
    /* 4. 이미지 처리 속성 적용 */
    object-fit: contain;
}


.section-about .image-container { width: 100%; height: 100%; flex: 1;}
.section-about .image-container picture {
    width: 100%;
    height: 100%;
    display: block; /* <picture>가 블록 요소로 작동하도록 명시 */
    border-radius: 10px; /* <picture>에 테두리 반경 적용 */
    overflow: hidden;
}

/* 3. <picture> 안의 <img>는 부모를 꽉 채우고 object-fit 속성을 가집니다. */
.section-about .image-container picture img { 
    width: 100%; 
    height: 100%; 
    object-fit: contain; /* 이미지 처리는 <img>가 담당 */
    /* border-radius: 10px;  필요하다면 <img>에도 다시 적용 */
}
.section-about .content-container {flex: 1; display: flex;
    flex-direction: column;
    align-items: center;}

.image-card { border-radius: 12px; box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); width: 100%; height: auto; object-fit: cover; }
.dot-nav { position: fixed; right: 20px; top: 50%; transform: translateY(-50%); z-index: 2; }
.dot-nav-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.dot-nav-item { cursor: pointer; }
.dot-nav-item .dot { display: block; width: 8px; height: 8px; background-color: #ccc; border-radius: 50%; transition: transform 0.3s ease, background-color 0.3s ease; }
.dot-nav-item.active .dot { transform: scale(1.5); background-color: #666; }
.map_link { display: flex; justify-content: center; align-items: center; font-size: 16px; margin: 10px; }
.map_link a { background-color: #34A853; padding: 15px 30px; color: #FFFFFF; font-weight: var(--font-weight-semibold); display: flex; align-items: center; gap: 10px; border-radius: 30px; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1); }
.map_link a:hover { background-color: #298341; }
.pagination-container { display: flex; justify-content: center; align-items: center; padding: 1.5rem 0; margin-top: 1rem; }
.pagination-link { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; margin: 0 4px; border-radius: 4px; text-decoration: none; color: #000000; transition: background-color 0.2s; }
.pagination-link:hover { background-color: #f3f4f6; }
.pagination-arrow.prev-btn, .pagination-arrow.next-btn { display: flex; justify-content: center; align-items: center; width: 30px; height: 30px; background-color: transparent; border: none; padding: 0; cursor: pointer; }
.pagination-arrow img { width: 8px; }
.pagination-arrow.prev-btn:disabled, .pagination-arrow.next-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.pagination-link.active { font-weight: var(--font-weight-semibold); text-decoration: underline; }
.advanced-filter-wrap { margin-bottom: 20px; overflow: hidden; }
.date-range-filter { display: flex; align-items: center; justify-content: space-between; padding: 20px; border-top: 1px solid #e0e0e0; border-bottom: 1px solid #e0e0e0; font-size: 14px; flex-wrap: wrap; gap: 10px; }
.date-tabs { display: flex; gap: 0; overflow: hidden; border: 1px solid #5B5B5B; }
.date-tab { height: 40px; width: 70px; background: #ffffff; cursor: pointer; transition: background-color 0.2s; box-sizing: border-box; border: none; border-right: 1px solid #5B5B5B; }
.date-tab:last-child { border-right: none; }
.date-tab.active { background-color: #5B5B5B; color: #ffffff; }
.date-input-group { display: flex; align-items: center; gap: 0.5rem; }
.date-input { padding: 10px; border: 1px solid #5b5b5b; width: 130px; box-sizing: border-box; height: 40px; }
.date-input { background-image: url('/assets/icons/calendar.svg'); background-repeat: no-repeat; background-position: right 10px center; background-size: 15px 15px; }
.date-input:focus { outline: none; }
.btn-search { padding: 0 15px; border: 1px solid #5B5B5B; color: white; cursor: pointer; background-color: #5b5b5b; display: flex; gap: 5px; height: 40px; align-items: center; margin-left: auto; }
.logout-btn { background-color: transparent; border: none; color: #FFFFFF; cursor: pointer; }
.logout-btn:hover { color: #DDB28B; }
.error-message { font-size: 14px; color: red; margin-bottom: 5px; }
.change-message { text-align: center; font-size: 14px; font-weight: var(--font-weight-regular); margin-top: 16px; margin-bottom: 16px; height: 17px; }
.mb-10 {margin-bottom: 10px;}
.ml-5 {margin-left: 5px;}
.cart-icon-wrapper { position: relative; display: inline-block; }
.cart-icon-wrapper .cart-badge { position: absolute; top: -3px; right: -2px; min-width: 16px; height: 16px; padding: 0px; background: #ff3b30; color: #fff; border-radius: 50%; font-size: 10px; line-height: 16px; text-align: center; font-weight: 600; }
.hanger-icon { width: 34px; height: 19px;}
@keyframes fadeIn {
    from {
        opacity: 0; /* 시작: 완전히 투명 */
    }
    to {
        opacity: 1; /* 끝: 완전히 불투명 */
    }
}
@media (max-width: 768px) { .footer-links { gap: 10px; } }
@media (max-width: 480px) { .section-intro picture { width: 80%; height: 80%;} .section-final .content-wrapper { padding: 0px; height: 100%;} .mobile-hide {display: none;} .overlay-menu-group a {font-size: 16px;} }