/* sansuhwa_service.css - 식당 및 전당포 통합 스타일 */
body {
    font-family: 'Pretendard', sans-serif;
    background-color: #fcfbf9;
    color: #333;
    margin: 0;
}

.font-myeongjo {
    font-family: 'Nanum Myeongjo', serif;
}

/* 네비게이션 */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0,0,0,0.04);
    padding: 15px 0;
    z-index: 1000;
}
.navbar-brand { color: #2c2520 !important; }

/* 공통 Hero 배너 */
.hero-section {
    position: relative;
    height: 48vh;
    min-height: 350px;
    margin-top: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 1;
}
.hero-bg-restaurant { background: url('/static/images/bg_restaurant.png') center/cover no-repeat; }
.hero-bg-pawnshop { background: url('/static/images/bg_pawnshop.png') center/cover no-repeat; }

.hero-content {
    position: relative;
    z-index: 5;
    padding: 0 20px;
}
.hero-kicker {
    letter-spacing: 3px;
    font-weight: 700;
    font-size: 0.9rem;
    color: #f0cd73;
    margin-bottom: 10px;
}
.hero-title {
    font-size: 3rem;
    color: #fff;
    letter-spacing: -1px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* 툴바 및 필터 (통일) */
.toolbar-box {
    background: #fff;
    border: 1px solid #f1ede7;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.02);
}
.filter-btn {
    transition: 0.2s;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 50px;
    padding: 8px 24px;
}
.search-wrap { position: relative; }
.search-input {
    border: 1px solid #ddd;
    padding: 10px 20px 10px 45px;
    font-weight: 600;
    border-radius: 50px;
    background-color: #faf9f7;
    transition: 0.3s;
}
.search-input:focus {
    box-shadow: none;
    border-color: #846a50;
    background-color: #fff;
}
.search-input-icon {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    color: #888;
    font-weight: 700;
}
.toolbar-meta { font-size: 0.92rem; color: #777; font-weight: 700; }

/* 안내 박스 */
.page-guide {
    background: #fff8e7;
    border: 1px dashed #f0cd73;
    border-radius: 16px;
    padding: 16px 20px;
    color: #7a5b16;
    font-size: 0.95rem;
    font-weight: 700;
}

/* 요약 그리드 (전당포용) */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}
.summary-card {
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    border: 1px solid #f1ede7;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
    display: flex;
    align-items: center;
    gap: 16px;
}
.summary-icon {
    width: 55px; height: 55px;
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; flex-shrink: 0;
}

/* 통일된 아이템 카드 */
.item-card {
    background: #fff;
    border-radius: 22px;
    border: 1px solid #f1f1f1;
    overflow: hidden;
    transition: 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
}
.item-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}
.item-card.is-disabled { opacity: 0.85; }

.item-img-wrap {
    position: relative;
    width: 100%;
    padding-top: 75%; /* 4:3 비율 통일 */
    background: #f8f9fa;
    overflow: hidden;
}
.item-img-wrap.pawnshop-img-wrap {
    padding-top: 85%; /* 광물은 약간 더 정사각형에 가깝게 */
}
.item-img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.pawnshop-img-wrap .item-img {
    object-fit: contain; /* 광물 이미지는 잘리지 않게 */
    padding: 20px;
}
.item-card:hover .item-img { transform: scale(1.05); }

/* 카드 뱃지들 */
.badge-top-left {
    position: absolute; top: 15px; left: 15px;
    background: rgba(44, 37, 32, 0.85); color: #fff;
    padding: 6px 14px; border-radius: 50px;
    font-size: 0.8rem; font-weight: 700; z-index: 10;
}
.badge-top-right {
    position: absolute; top: 15px; right: 15px;
    background: rgba(255, 255, 255, 0.9); color: #333;
    padding: 6px 14px; border-radius: 50px;
    font-size: 0.8rem; font-weight: 800; z-index: 10;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.badge-warning { background: #fff3bf; color: #8a6100; }
.badge-danger { background: #ffe3e3; color: #c92a2a; }

/* 품절 오버레이 */
.disabled-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex; align-items: center; justify-content: center; z-index: 15;
}
.disabled-text {
    color: white; font-size: 1.4rem; font-weight: 900;
    border: 3px solid white; padding: 8px 25px; transform: rotate(-10deg);
}

/* 카드 본문 */
.item-body {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.item-title {
    font-size: 1.3rem; font-weight: 800; color: #222; margin-bottom: 8px;
}
.item-desc {
    color: #777; font-size: 0.92rem; line-height: 1.5; margin-bottom: 20px;
    flex-grow: 1; word-break: keep-all;
}
.item-footer {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 15px; border-top: 1px dashed #eee;
}
.item-price { font-size: 1.35rem; font-weight: 800; color: #cc2a2a; }

/* 버튼 통일 */
.btn-action {
    background-color: #2c2520; color: white;
    border-radius: 12px; padding: 10px 24px;
    font-weight: 700; transition: 0.3s; border: none;
}
.btn-action:hover { background-color: #000; color: white; transform: translateY(-2px); }
.btn-action:disabled, .btn-action.disabled { background-color: #adb5bd; transform: none; }

/* 빈 상태 */
.empty-box {
    background: #fff; border: 1px dashed #ddd; border-radius: 22px;
    padding: 60px 20px;
}
.no-result-hidden { display: none; }

/* 모바일 반응형 */
@media (max-width: 992px) {
    .summary-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .hero-section { height: 35vh; }
    .hero-title { font-size: 2.2rem; }
    .toolbar-box { padding: 16px; }
    .summary-grid { grid-template-columns: 1fr; }
}