/**
 * EVT Booking System v2 — 이벤트 + 예약 시스템 스타일
 * 현재 WordPress 페이지 디자인 패턴 유지
 */

/* === Alpine.js x-cloak === */
[x-cloak] {
    display: none !important;
}

/* === 공통 === */
.evt-empty {
    text-align: center;
    padding: 40px;
    color: #888;
    background: #f9f9f9;
    border-radius: 8px;
}

/* ==========================================================
   이벤트 시술 목록 — newweb 카드형 디자인
   ========================================================== */

.evt-event-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 50px 50px 150px;
    font-family: 'Pretendard', 'Noto Sans KR', -apple-system, sans-serif;
}

/* --- 카테고리 섹션 (카드) --- */
.category-section {
    margin-top: 30px;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid #e5e5e5;
}

/* 카테고리 헤더 (틸색 바) */
.category-header {
    margin: 12px 12px 0;
    padding: 10px 20px;
    background: #009191;
    border-radius: 8px;
    color: white;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
}

/* 카테고리 콘텐츠 영역 */
.category-content {
    padding: 20px 30px 30px;
}

/* --- 시술 그룹 (item-group) --- */
.item-group + .item-group {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #ebebeb;
}

/* 시술 그룹 헤더 */
.group-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.group-title {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    line-height: 1.2;
}

/* --- 설명 행 (3종류) --- */
.desc-line {
    padding: 1px 0;
    line-height: 1.5;
}

.desc-line.notice {
    color: #888;
    font-size: 15px;
    font-weight: 700;
}

.desc-line.highlight {
    color: #009191;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.desc-line.normal {
    color: #888;
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 15px;
}

/* --- 가격행 목록 --- */
.product-list {
    padding-top: 7px;
}

/* --- 시술 행 (product-row, 카드형) --- */
.product-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 19px;
    background: #f7f7f7;
    border-radius: 8px;
    border: 1.5px solid transparent;
    cursor: pointer;
    margin-bottom: 8px;
}

.product-row:hover {
    background: #f0f0f0;
}

.product-row.selected,
.product-row:has(.price-check:checked) {
    border-color: #009191;
    background: #f7f7f7;
}

/* 행 좌측 (체크박스 + 시술명) */
.row-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* 커스텀 체크박스 (appearance:none 방식) */
.price-check {
    appearance: none;
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 5px;
    background-color: #e5e5e5;
    position: relative;
    flex-shrink: 0;
    cursor: pointer;
    margin: 0;
}

.price-check::after {
    content: '';
    position: absolute;
    top: 45%;
    left: 50%;
    width: 6px;
    height: 11px;
    border: solid #9e9e9e;
    border-width: 0 2.5px 2.5px 0;
    transform: translate(-50%, -50%) rotate(45deg);
}

.price-check:checked {
    background-color: #009191 !important;
}

.price-check:checked::after {
    border-color: #fff;
}

/* 시술명/브랜드 */
.item-label {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

/* 행 우측 (정가 + 할인가) */
.row-right {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.origin-price {
    color: #c2c7d3;
    font-size: 14px;
    text-decoration: line-through;
    margin-right: 8px;
}

.sale-price {
    color: #ff2d2d;
    font-size: 22px;
    font-weight: 700;
}

.regular-price {
    color: #333;
    font-size: 18px;
    font-weight: 700;
}

/* ==========================================================
   탭 네비게이션
   ========================================================== */

.evt-tab-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 0;
    margin-bottom: 16px;
}

.tab-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background: #f5f5f5;
    color: #555;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}

.tab-btn:hover {
    background: #e8e8e8;
    color: #333;
    text-decoration: none;
}

.tab-btn.active {
    background: #333;
    color: #fff;
    border-color: #333;
}

/* ==========================================================
   배너
   ========================================================== */

.evt-banner {
    text-align: center;
    padding: 24px 16px;
    margin-bottom: 20px;
}

.evt-banner-title {
    font-size: 22px;
    font-weight: 700;
    color: #222;
    margin: 0 0 8px 0;
}

.evt-banner-period {
    font-size: 14px;
    color: #888;
    margin: 0;
}

/* ==========================================================
   이벤트 헤더 — 다크 배경 + 탭 네비게이션 + 배너 캐러셀
   (참조: drevers.com WEEKDAY 페이지)
   ========================================================== */

/* 스크롤 잠금 (풀메뉴 오버레이 — iOS 모바일 대응) */
html.evt-lock-scroll,
body.evt-lock-scroll {
    overflow: hidden !important;
    touch-action: none;
}

html.evt-lock-scroll .ev-full-menu-layer .menu-grid-container {
    touch-action: auto;
    overscroll-behavior: contain;
}

/* 헤더 섹션 래퍼 (다크 배경) */
.evt-header-section {
    position: relative;
    background-color: #001414;
    font-family: 'Pretendard', -apple-system, sans-serif;
    width: 100%;
    overflow-x: hidden;
    padding: 30px 0;
}

/* 배경 이미지 오버레이 (선택적 — bg_image 속성 지정 시) */
.evt-header-section.has-bg::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: var(--evt-bg-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
}

.evt-header-section > * {
    position: relative;
    z-index: 1;
}

/* 트랜지션 비활성 (초기화/리사이즈 시) */
.evt-header-section.is-no-transition,
.evt-header-section.is-no-transition *,
.evt-header-section.is-initializing * {
    transition: none !important;
}

/* --- 탭 네비게이션 --- */
.evt-header-section .ev-tab-nav-wrapper {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 45px 0 20px;
}

.evt-header-section .ev-tab-container {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    cursor: grab;
}

.evt-header-section .ev-tab-container::-webkit-scrollbar { display: none; }
.evt-header-section .ev-tab-container.dragging { cursor: grabbing; }

.evt-header-section .ev-tab-btn {
    flex-shrink: 0;
    padding: 8px 16px;
    background: none;
    border: 1px solid #fff;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: 0.2s;
    font-weight: 400;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

.evt-header-section .ev-tab-btn.active {
    background: #fff;
    color: #333;
    font-weight: bold;
}

.evt-header-section .ev-tab-fade {
    position: absolute;
    right: 40px;
    top: 0;
    width: 100px;
    height: 100%;
    background: linear-gradient(to right, rgba(61,74,72,0), rgba(61,74,72,1) 90%);
    pointer-events: none;
    z-index: 1;
}

.evt-header-section .ev-tab-expand-btn {
    position: absolute;
    right: 10px;
    top: 0;
    width: 30px;
    height: 36px;
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background-color 0.2s;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

.evt-header-section .ev-tab-expand-btn span {
    display: inline-block;
    transition: transform 0.3s;
    font-size: 14px;
}

/* --- 풀 메뉴 오버레이 --- */
.ev-full-menu-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.4);
    display: none;
    z-index: 999;
    border-top: 1px solid #fff;
    box-sizing: border-box;
    box-shadow: 0 12px 35px rgba(0,0,0,0.5);
}

.ev-full-menu-layer.active { display: block; }

.ev-full-menu-layer .menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: #009191;
    color: #fff;
    font-weight: 700;
}

.ev-full-menu-layer .header-title { font-size: 16px; }

.ev-full-menu-layer .btn-close-menu {
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
    outline: none;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

.ev-full-menu-layer .menu-grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 20px 20px 30px;
    background: #fff;
    max-height: 80vh;
    overflow-y: auto;
    align-items: stretch;
    grid-auto-rows: 1fr;
    box-shadow: 0 15px 20px -5px rgba(0,0,0,0.5), 0 30px 50px -10px rgba(0,0,0,0.4);
    border-bottom: 1px solid #ddd;
    position: relative;
    z-index: 10;
}

.ev-full-menu-layer .menu-item-btn {
    border: 1px solid #009191;
    border-radius: 8px;
    font-size: 14px;
    letter-spacing: -0.02em;
    background: #fff;
    cursor: pointer;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    word-break: keep-all;
    line-height: 1.15;
    font-weight: 500;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

.ev-full-menu-layer .menu-item-btn.active {
    background: #009191;
    color: #fff;
    font-weight: 700;
}

/* --- 배너 캐러셀 --- */
.ev-banner-carousel-viewport {
    position: relative;
    padding: 48px 0 30px;
    overflow: hidden;
    cursor: grab;
}

.ev-banner-carousel-container {
    display: flex;
    align-items: center;
    will-change: transform;
}

.ev-banner-slide {
    flex-shrink: 0;
    width: 70vw;
    max-width: 850px;
    text-align: center;
}

.ev-banner-slide .banner-link {
    display: block;
    height: auto !important;
    border-radius: 35px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    opacity: 0.6;
    transform: scale(0.85);
    transition: transform 0.4s ease, opacity 0.4s ease;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
}

.ev-banner-slide.active .banner-link {
    opacity: 1;
    transform: scale(1.1);
}

.ev-banner-slide .banner-img {
    width: 100%;
    height: auto !important;
    display: block;
}

.ev-footer-info {
    display: block;
    width: 100%;
    margin-top: 30px;
    color: #fff;
    font-size: 16px;
    font-weight: 400;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease-in-out;
}

.ev-banner-slide.active .ev-footer-info {
    opacity: 1;
    transform: translateY(0);
}

/* 캐러셀 화살표 */
.evt-header-section .banner-btn {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.95);
    border-radius: 50%;
    border: none;
    color: #333;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    z-index: 5;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    line-height: 1;
}

.evt-header-section .banner-btn-prev { left: calc(50% - 600px); }
.evt-header-section .banner-btn-next { right: calc(50% - 600px); }

/* --- PC 풀 메뉴 드롭다운 (1025px+) --- */
@media (min-width: 1025px) {
    .evt-header-section .ev-tab-nav-wrapper.expanded .ev-tab-expand-btn {
        background-color: #009191;
        border-radius: 8px;
        transform: none;
    }

    .evt-header-section .ev-tab-nav-wrapper.expanded .ev-tab-expand-btn span { display: none; }
    .evt-header-section .ev-tab-nav-wrapper.expanded .ev-tab-expand-btn::after {
        content: "\2715";
        color: #fff;
        font-size: 16px;
        font-weight: bold;
    }

    .evt-header-section .ev-tab-nav-wrapper.expanded .ev-tab-fade { display: none; }

    .evt-header-section .ev-tab-nav-wrapper.expanded + .ev-full-menu-layer {
        display: block !important;
        position: absolute;
        top: 75px;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        max-width: 1050px;
        height: auto;
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 15px 40px rgba(0,0,0,0.2);
        border: none;
        padding: 25px;
        box-sizing: border-box;
        z-index: 101;
        animation: evtDropDown 0.3s ease-out forwards;
    }

    @keyframes evtDropDown {
        0% { opacity: 0; transform: translate(-50%, -10px); }
        100% { opacity: 1; transform: translate(-50%, 0); }
    }

    .evt-header-section .ev-tab-nav-wrapper.expanded + .ev-full-menu-layer .menu-header { display: none; }

    .evt-header-section .ev-tab-nav-wrapper.expanded + .ev-full-menu-layer .menu-grid-container {
        grid-template-columns: repeat(3, 1fr);
        padding: 0;
        background: transparent;
        box-shadow: none;
        border-bottom: none;
        max-height: none;
        overflow: visible;
    }

    .evt-header-section .ev-tab-nav-wrapper.expanded + .ev-full-menu-layer .menu-item-btn {
        font-size: 15px;
        padding: 10px 15px;
        transition: all 0.2s ease;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .evt-header-section .ev-tab-nav-wrapper.expanded + .ev-full-menu-layer .menu-item-btn:hover {
        background: #f4fbfb;
    }
}

/* --- 태블릿 (1024px 이하) — 이벤트 헤더 --- */
@media (max-width: 1024px) {
    .evt-header-section .ev-tab-nav-wrapper { width: 85%; padding: 0 45px 0 20px; }
    .evt-header-section .ev-tab-btn { font-size: 14px; }
    .evt-header-section .ev-tab-expand-btn { height: 30px; }
    .evt-header-section .ev-tab-expand-btn span { font-size: 12px; }
    .evt-header-section .ev-tab-nav-wrapper.expanded .ev-tab-expand-btn { transform: rotate(180deg); }

    .evt-header-section .banner-btn { top: 40%; }
    .evt-header-section .banner-btn-prev { left: 10% !important; }
    .evt-header-section .banner-btn-next { right: 10% !important; left: auto !important; }
}

/* --- 모바일 (768px 이하) — 이벤트 헤더 --- */
@media (max-width: 768px) {
    .evt-header-section { padding: 15px 0; }
    .evt-header-section .ev-tab-nav-wrapper { width: 100%; }
    .evt-header-section .ev-tab-btn { padding: 6px 12px; }

    .ev-full-menu-layer .header-title { font-size: 14px; }
    .ev-full-menu-layer .btn-close-menu { font-size: 16px; }
    .ev-full-menu-layer .menu-grid-container {
        box-shadow: 0 15px 20px -5px rgba(0,0,0,0.3), 0 30px 50px -10px rgba(0,0,0,0.2);
    }

    .ev-banner-slide {
        width: 80vw;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
    }

    .ev-banner-slide .banner-link { border-radius: 10px; }
    .ev-banner-slide.active .banner-link { transform: scale(1); }

    .ev-banner-carousel-viewport { padding: 15px 0 30px; }

    .ev-footer-info { margin-top: 8px !important; font-size: 11px; }

    .evt-header-section .banner-btn { width: 32px !important; height: 32px !important; top: 36% !important; font-size: 18px; }
    .evt-header-section .banner-btn-prev { left: 8% !important; }
    .evt-header-section .banner-btn-next { right: 8% !important; left: auto !important; }
}

/* ==========================================================
   하단 고정 예약 바 — 참조 페이지 매칭
   ========================================================== */

.floating-total-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #009191;
    padding: 20px 0;
    z-index: 9999;
}

.bar-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total-info {
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.circle-num {
    background: #fff;
    min-width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #009191;
}

.total-val {
    font-size: 26px;
    font-weight: 800;
    margin-left: 5px;
}

.button-group {
    display: flex;
    gap: 10px;
}

.kakao-btn {
    background: #ffd43e;
    color: #333;
    font-weight: 700;
    padding: 10px 40px;
    border-radius: 6px;
    font-size: 20px;
    border: none;
    cursor: pointer;
}

.kakao-btn:hover {
    background: #f5cc00;
}

.cart-btn {
    background: #e0f5f5;
    color: #009191;
    font-weight: 700;
    padding: 10px 30px;
    border-radius: 6px;
    font-size: 20px;
    border: none;
    cursor: pointer;
}

.cart-btn:hover {
    background: #c8eded;
}

.reserve-btn {
    background: #fff;
    color: #009191;
    font-weight: 700;
    padding: 10px 40px;
    border-radius: 6px;
    font-size: 20px;
    border: none;
    cursor: pointer;
}

.reserve-btn:hover {
    background: #f0f0f0;
}

/* ==========================================================
   예약 모달
   ========================================================== */

.evt-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.overlay-enter {
    transition: opacity 0.3s ease;
}

.overlay-leave {
    transition: opacity 0.3s ease;
}

.evt-modal {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

/* 모달 헤더 */
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
}

.modal-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: #222;
}

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.15s;
}

.modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

/* 모달 바디 */
.modal-body {
    padding: 20px;
}

.modal-section {
    margin-bottom: 20px;
}

.modal-section h4 {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 0 0 12px 0;
}

/* 선택 시술 목록 (모달 내) */
.selected-items-list {
    max-height: 200px;
    overflow-y: auto;
}

.selected-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
}

.selected-item-info {
    flex: 1;
    min-width: 0;
}

.selected-item-name {
    font-size: 14px;
    color: #333;
}

.selected-item-brand {
    font-size: 12px;
    color: #e87300;
    margin-left: 4px;
}

.selected-item-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.selected-item-price {
    font-size: 14px;
    color: #d00;
    font-weight: 600;
}

.selected-item-remove {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border: none;
    border-radius: 50%;
    font-size: 16px;
    color: #999;
    cursor: pointer;
}

.selected-item-remove:hover {
    background: #eee;
    color: #333;
}

.selected-total {
    text-align: right;
    font-size: 16px;
    padding-top: 12px;
    border-top: 1px solid #eee;
    margin-top: 8px;
}

.selected-total strong {
    color: #d00;
    font-size: 18px;
}

/* 폼 */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
}

.required {
    color: #d00;
}

.optional {
    font-size: 12px;
    color: #999;
    font-weight: 400;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #333;
}

.form-group textarea {
    resize: vertical;
}

/* 2열 폼 (날짜+시간) */
.form-row-half {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

/* select 스타일 (기존 input과 통일) */
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
    font-family: inherit;
    background: #fff;
}

.form-group select:focus {
    outline: none;
    border-color: #333;
}

/* 약관 동의 */
.consent-section {
    margin-top: 16px;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 6px;
}

.consent-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
}

.consent-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #333;
    flex-shrink: 0;
}

.consent-detail {
    margin: 6px 0 0 26px;
    font-size: 12px;
    color: #888;
    line-height: 1.5;
}

/* 회원 정보 (읽기전용) */
.evt-member-info-display .form-readonly {
    background: #f5f5f5;
    color: #555;
    cursor: default;
    border-color: #e5e5e5;
}

/* 확인 화면 */
.confirm-details {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 8px 12px;
    font-size: 14px;
}

.confirm-details dt {
    color: #888;
    font-weight: 500;
}

.confirm-details dd {
    margin: 0;
    color: #333;
}

.confirm-item {
    display: flex;
    justify-content: space-between;
    padding: 2px 0;
}

.confirm-memo {
    margin-top: 8px;
    font-size: 14px;
}

.confirm-memo dt {
    color: #888;
}

/* 완료 화면 */
.complete-message {
    text-align: center;
    padding: 20px 0;
}

.complete-icon {
    width: 60px;
    height: 60px;
    line-height: 60px;
    font-size: 32px;
    background: #4caf50;
    color: #fff;
    border-radius: 50%;
    margin: 0 auto 16px;
}

.complete-message h4 {
    font-size: 18px;
    color: #333;
    margin: 0 0 12px;
}

.reservation-number {
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
}

.reservation-number strong {
    font-size: 20px;
    color: #333;
}

.complete-notice {
    font-size: 14px;
    color: #888;
    line-height: 1.6;
}

/* 모달 액션 버튼 */
.modal-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.btn-primary {
    padding: 10px 24px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary:hover:not(:disabled) {
    background: #555;
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.btn-secondary {
    padding: 10px 20px;
    background: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-secondary:hover {
    background: #eee;
}

/* ==========================================================
   반응형
   ========================================================== */

/* === 모바일 반응형 (768px 이하) — 이벤트 목록 + 플로팅 바 === */
@media (max-width: 768px) {
    .evt-event-container {
        padding: 40px 16px 160px;
    }

    .category-header {
        font-size: 18px;
        padding: 8px 12px;
        margin: 8px 8px 0;
    }

    .category-content {
        padding: 15px 15px 20px;
    }

    .group-title {
        font-size: 18px;
    }

    .desc-line.notice,
    .desc-line.highlight {
        font-size: 14px;
    }

    .desc-line.normal {
        font-size: 13px;
    }

    .item-label {
        font-size: 16px;
    }

    .origin-price {
        font-size: 11px;
    }

    .sale-price {
        font-size: 18px;
    }

    .regular-price {
        font-size: 16px;
    }

    .product-row {
        padding: 13px 14px;
    }

    /* 플로팅 바 모바일 */
    .floating-total-bar {
        padding: 0;
    }

    .bar-container {
        flex-direction: column;
        gap: 0;
        padding: 0;
    }

    .total-info {
        width: 100%;
        padding: 14px 0;
        justify-content: center;
        font-size: 18px;
    }

    .button-group {
        width: 100%;
        gap: 0;
    }

    .button-group button {
        flex: 1;
        height: 45px;
        border-radius: 0;
        font-size: 16px;
    }
}

/* ==========================================================
   장바구니 사이드패널
   ========================================================== */

.evt-cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10001;
    background: rgba(0,0,0,0.5);
}

.evt-cart-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 380px;
    height: 100vh;
    background: #fff;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    z-index: 10002;
}

/* 슬라이드 애니메이션 */
.cart-panel-enter { transition: transform 0.3s ease; }
.cart-panel-enter-start { transform: translateX(100%); }
.cart-panel-enter-end { transform: translateX(0); }
.cart-panel-leave { transition: transform 0.25s ease; }
.cart-panel-leave-start { transform: translateX(0); }
.cart-panel-leave-end { transform: translateX(100%); }

/* 패널 헤더 */
.cart-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

.cart-panel-title {
    font-size: 18px;
    font-weight: 700;
    color: #222;
    margin: 0;
}

.cart-panel-count {
    font-weight: 400;
    color: #009191;
}

.cart-panel-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    border-radius: 50%;
}

.cart-panel-close:hover {
    background: #f0f0f0;
    color: #333;
}

/* 패널 본문 */
.cart-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
}

/* 빈 장바구니 */
.cart-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.cart-empty-icon {
    margin-bottom: 16px;
}

.cart-empty p {
    font-size: 15px;
    margin: 0 0 4px;
}

.cart-empty-sub {
    font-size: 13px !important;
    color: #bbb !important;
}

/* 장바구니 아이템 */
.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    display: block;
}

.cart-item-brand {
    font-size: 12px;
    color: #e87300;
    display: block;
    margin-top: 2px;
}

.cart-item-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-left: 12px;
}

.cart-item-price {
    font-size: 14px;
    color: #d00;
    font-weight: 600;
    white-space: nowrap;
}

.cart-item-remove {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border: none;
    border-radius: 50%;
    font-size: 16px;
    color: #999;
    cursor: pointer;
    flex-shrink: 0;
}

.cart-item-remove:hover {
    background: #eee;
    color: #333;
}

/* 패널 하단 (합계 + 버튼) */
.cart-panel-footer {
    border-top: 1px solid #eee;
    padding: 16px 20px;
    flex-shrink: 0;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    margin-bottom: 12px;
}

.cart-total-row strong {
    font-size: 20px;
    color: #d00;
}

.cart-panel-actions {
    display: flex;
    gap: 8px;
}

.btn-cart-clear {
    flex: 1;
    padding: 12px;
    background: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.btn-cart-clear:hover {
    background: #eee;
}

.btn-cart-reserve {
    flex: 2;
    padding: 12px;
    background: #009191;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.btn-cart-reserve:hover {
    background: #007a7a;
}

/* 헤더 장바구니 뱃지 */
.evt-cart-count {
    display: none;
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    background: #ff2d2d;
    color: #fff;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 700;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 18px;
    font-family: -apple-system, sans-serif;
    z-index: 10;
}

/* === 모바일 반응형 (480px 이하) — 모달/탭 === */
@media (max-width: 480px) {
    .form-row-half {
        grid-template-columns: 1fr;
    }

    .evt-modal {
        max-height: 95vh;
        border-radius: 12px 12px 0 0;
        align-self: flex-end;
    }

    .tab-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    /* 장바구니 사이드패널 — 모바일 전체 너비 */
    .evt-cart-panel {
        width: 100%;
    }
}

/* ==========================================================
   이벤트 카드 슬라이더 [evt_event_cards]
   ========================================================== */
.evt-event-cards-section {
    position: relative;
    width: 100%;
    max-width: 1100px;
    margin: 20px auto;
}
.evt-cards-viewport {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}
.evt-cards-track {
    display: flex;
    transition: transform 0.4s ease;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}
.evt-event-card {
    flex: 0 0 100%;
    min-width: 100%;
    position: relative;
}
.evt-card-link {
    display: block;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    cursor: pointer;
}
.evt-card-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    transition: transform 0.3s ease;
}
.evt-card-link:hover .evt-card-image {
    transform: scale(1.02);
}
.evt-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 145, 145, 0.9);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.evt-card-info {
    padding: 12px 8px;
    text-align: center;
}
.evt-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin: 0;
}
.evt-card-subtitle {
    font-size: 14px;
    color: #666;
    margin: 4px 0 0;
}

/* 카드 슬라이더 네비게이션 */
.evt-cards-btn {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    border: none;
    color: #333;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    z-index: 5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: background 0.2s, transform 0.2s;
}
.evt-cards-btn:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
}
.evt-cards-prev { left: 12px; }
.evt-cards-next { right: 12px; }

/* 도트 네비게이션 */
.evt-cards-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 12px 0 4px;
}
.evt-cards-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: #ddd;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    padding: 0;
}
.evt-cards-dot.active {
    background: #009191;
    transform: scale(1.3);
}

/* 자동 탭 네비게이션 */
.evt-tab-nav-auto {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    padding: 12px 0;
}

/* 카드 슬라이더 내장 탭 */
.evt-cards-tab-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    padding: 0 0 12px;
}
.evt-cards-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background: #f5f5f5;
    color: #555;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}
.evt-cards-tab:hover {
    background: #e8e8e8;
    color: #333;
}
.evt-cards-tab.active {
    background: #333;
    color: #fff;
    border-color: #333;
}

/* 카드 슬라이더 반응형 */
@media (max-width: 768px) {
    .evt-event-cards-section {
        margin: 12px auto;
    }
    .evt-cards-btn {
        width: 32px;
        height: 32px;
        font-size: 20px;
    }
    .evt-cards-prev { left: 6px; }
    .evt-cards-next { right: 6px; }
    .evt-card-title {
        font-size: 15px;
    }
    .evt-card-subtitle {
        font-size: 12px;
    }
    .evt-card-info {
        padding: 8px 4px;
    }
    .evt-cards-tab {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* ==========================================================
   Dr.Evers Ranking 섹션
   — 원본 Elementor 디자인 1:1 재현
   ========================================================== */

.evt-ranking-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    font-family: 'Pretendard', 'Noto Sans KR', -apple-system, sans-serif;
}

/* 탭 네비게이션 — 넓은 간격, 큰 텍스트, 밑줄 스타일 */
.evt-ranking-tabs {
    display: flex;
    border-bottom: 2px solid #e5e5e5;
    margin-bottom: 0;
}

.evt-ranking-tab {
    flex: 1;
    padding: 18px 0;
    font-size: 22px;
    font-weight: 700;
    color: #ccc;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
    text-align: center;
    letter-spacing: -0.02em;
}

.evt-ranking-tab:hover {
    color: #666;
}

.evt-ranking-tab.active {
    color: #009191;
    border-bottom-color: #009191;
}

/* 탭 콘텐츠 */
.evt-ranking-content {
    display: none;
}

.evt-ranking-content.active {
    display: block;
}

/* 레이아웃: 왼쪽 배너 + 오른쪽 리스트 */
.evt-ranking-layout {
    display: flex;
    gap: 40px;
    padding: 35px 0 20px;
    align-items: flex-start;
}

/* 왼쪽 배너 카드 — 이미지 위 텍스트 오버레이, 전체 클릭 */
.evt-ranking-banner {
    flex: 0 0 460px;
    position: relative;
    display: block;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    background: #1a1a1a;
}

.evt-ranking-banner:hover {
    text-decoration: none;
    color: #fff;
}

.evt-ranking-banner-img {
    width: 100%;
    height: auto;
    display: block;
}

/* 이미지 위 그라데이션 오버레이 */
.evt-ranking-banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 28px 28px;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.35) 55%, transparent 100%);
    z-index: 2;
}

.evt-ranking-banner-title {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 10px;
    line-height: 1.25;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.evt-ranking-banner-subtitle {
    font-size: 15px;
    color: rgba(255,255,255,0.9);
    line-height: 1.5;
    margin: 0 0 18px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.evt-ranking-banner-cta {
    display: inline-block;
    padding: 10px 22px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.8);
    border-radius: 20px;
    transition: background 0.2s, border-color 0.2s;
}

.evt-ranking-banner:hover .evt-ranking-banner-cta {
    background: rgba(255,255,255,0.15);
    border-color: #fff;
}

/* 오른쪽 리스트 영역 */
.evt-ranking-list {
    flex: 1;
    min-width: 0;
}

.evt-ranking-slider {
    overflow: hidden;
}

.evt-ranking-slide-track {
    display: flex;
    transition: transform 0.4s ease;
}

.evt-ranking-slide {
    flex: 0 0 100%;
    display: flex;
    flex-direction: column;
}

/* 개별 아이템 — 넉넉한 간격 */
.evt-ranking-item {
    display: flex;
    align-items: center;
    padding: 22px 12px;
    border-bottom: 1px solid #f0f0f0;
    gap: 16px;
}

.evt-ranking-item:last-child {
    border-bottom: none;
}

/* 순위 배지 — 큰 원 */
.evt-ranking-rank {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #009191;
    color: #fff;
    font-size: 19px;
    font-weight: 700;
    border-radius: 50%;
}

/* 1~3위 골드 */
.evt-ranking-item:nth-child(1) .evt-ranking-rank,
.evt-ranking-item:nth-child(2) .evt-ranking-rank,
.evt-ranking-item:nth-child(3) .evt-ranking-rank {
    background: #c8a94e;
}

.evt-ranking-item-info {
    flex: 1;
    min-width: 0;
}

/* 시술명 — 굵게, 크게 */
.evt-ranking-treatment {
    font-size: 20px;
    font-weight: 700;
    color: #222;
    display: block;
    line-height: 1.4;
}

.evt-ranking-brand {
    font-weight: 400;
    color: #666;
    font-size: 17px;
}

/* 가격 — 정가 작게 + 할인가 크게 빨간색 */
.evt-ranking-prices {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: auto;
    padding-left: 16px;
}

.evt-ranking-original {
    font-size: 15px;
    color: #bbb;
    text-decoration: line-through;
}

.evt-ranking-discount {
    font-size: 28px;
    font-weight: 700;
    color: #e53e3e;
}

.evt-ranking-empty {
    padding: 40px;
    text-align: center;
    color: #999;
}

/* 슬라이드 도트 네비게이션 — 중앙 정렬 */
.evt-ranking-dots {
    display: flex;
    gap: 10px;
    justify-content: center;
    padding: 18px 0 0;
}

.evt-ranking-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.evt-ranking-dot.active {
    background: #009191;
}

/* 반응형 */
@media (max-width: 900px) {
    .evt-ranking-layout {
        gap: 24px;
    }

    .evt-ranking-banner {
        flex: 0 0 320px;
    }

    .evt-ranking-tab {
        font-size: 18px;
        padding: 14px 0;
    }

    .evt-ranking-item {
        padding: 16px 8px;
    }

    .evt-ranking-discount {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .evt-ranking-section {
        padding: 0 12px;
    }

    .evt-ranking-tab {
        font-size: 16px;
        padding: 12px 0;
    }

    .evt-ranking-layout {
        flex-direction: column;
        gap: 24px;
        padding: 24px 0 16px;
    }

    .evt-ranking-banner {
        flex: none;
        width: 100%;
    }

    .evt-ranking-banner-title {
        font-size: 22px;
    }

    .evt-ranking-item {
        padding: 14px 4px;
        gap: 12px;
    }

    .evt-ranking-rank {
        flex: 0 0 34px;
        width: 34px;
        height: 34px;
        font-size: 14px;
    }

    .evt-ranking-treatment {
        font-size: 15px;
    }

    .evt-ranking-discount {
        font-size: 20px;
    }

    .evt-ranking-original {
        font-size: 12px;
    }
}
