/**
 * 사용자 페이지 공통 - 모바일 우선(Mobile-First) 반응형
 * 기준: 모바일 360/390/430px → 태블릿 768px → 데스크톱 1024px+
 * 조건: 가로스크롤 금지, 터치 44px+, 폰트 14/16px, 패딩 16px, 간격 8~16px
 */

/* ===== 1) 가로 스크롤 절대 금지 ===== */
html {
    overflow-x: clip;
}
html, body {
    min-width: 0;
    -webkit-overflow-scrolling: touch;
}
body { width: 100%; }

/* ===== 2) 모바일 기본 (360~430px) ===== */
.container,
.footer-inner {
    padding-left: 16px;
    padding-right: 16px;
}

/* 터치 영역 최소 44px */
button, .btn-submit-hero, .btn-quote-next, .onepick-btn, .immediate-btn,
.btn-detail, .btn-lowest-price, .btn-quick-consult-submit, .btn-review-close,
.quick-consult-close, .review-modal-close,
input[type="submit"], input[type="button"],
a.fconsult-item, .quote-brand-btn, .quote-tab-btn, .tab-btn,
.color-swatch {
    min-height: 44px;
    min-width: 44px;
}
input[type="text"], input[type="tel"], input[type="email"],
select.form-select-grade {
    min-height: 44px;
    padding-top: 10px;
    padding-bottom: 10px;
}

/* 폰트 최소 14px, 주요 텍스트 16px */
body { font-size: 14px; }
.section-title h2, .quote-page-title, .page-title { }
.section-title p, .page-desc, .consult-form-box h3 { font-size: 1rem; }
/* 모바일에서만 14px, PC는 아래 미디어에서 복원 */
.nav a { font-size: 14px; }
.review-card .card-body .desc, .review-card .card-body .user-info { font-size: 14px; }

/* 요소 간 간격 8~16px */
.section-common { padding-top: 2rem; padding-bottom: 2rem; }
.section-title { }
.section-title h2 { }

/* 헤더/푸터 한 줄 넘침 금지 */
.header-container { flex-wrap: wrap; gap: 8px; }
.logo {
    font-size: 1.125rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 50vw;
}
.footer-brand-links { flex-direction: column; gap: 16px; }
.footer-links { gap: 12px; }
.footer-info-line, .footer-copy-wrap { word-break: break-word; }
/* .footer-warning { display: block; margin-top: 8px; } */

/* 이미지/아이콘 비율 유지 */
img, .card-img img, .thumb-box img, .vehicle-detail-img-wrap img,
.review-card .card-img img, .onepick-card-img img, .immediate-card-img img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
}
picture img { width: 100%; height: auto; }

/* 플로팅 상담바 모바일 */
.floating-consult-bar .fconsult-item {
    padding: 12px 20px;
    min-height: 44px;
    font-size: 0;
}
.floating-consult-bar .fconsult-item i { font-size: 1.25rem; }

/* 히어로 섹션 모바일 */
.container-hero { grid-template-columns: 1fr; gap: 16px; }
.hero-left { }
.hero-right {
    height: auto;
    min-height: 0;
}
.consult-form-box h3 { font-size: 1.125rem; padding-bottom: 12px; }

/* 리뷰 롤링 모바일 */
.review-rolling-wrap {}
.review-rolling-item { width: 260px; max-width: calc(100vw - 48px); }
.review-rolling-track { gap: 12px; }

/* 카드/그리드 모바일 (1열) */
.promotion-grid, .promotion-list-grid, .faq-grid, .review-list-grid, .quote-vehicle-grid {
    grid-template-columns: 1fr;
    gap: 16px;
}
.onepick-card-body, .immediate-card-body, .review-card .card-body {
}

/* CTA 버튼 한 줄 유지 */
.btn-submit-hero, .btn-quote-next, .btn-lowest-price {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* ===== 3) 태블릿 768px+ ===== */
@media (min-width: 768px) {
    .container, .footer-inner { padding-left: 20px; padding-right: 20px; }
    .section-common { padding-top: 3rem; padding-bottom: 3rem; }
    .section-title h2, .quote-page-title, .page-title { }
    .logo { font-size: 1.5rem; max-width: none; }
    .nav a { height: 66px; font-size: 17px; }
    .hero-left { }
    .hero-right { }
    .consult-form-box h3 { font-size: 1.375rem; }
    .review-rolling-item { width: 280px; }
    .floating-consult-bar .fconsult-item { font-size: 0.875rem; padding: 14px 16px; }
    .promotion-list-grid, .review-list-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== 4) 데스크톱 1024px+ ===== */
@media (min-width: 1024px) {
    .container, .footer-inner { padding-left: 24px; padding-right: 24px; }
    .section-common { padding-top: 5rem; padding-bottom: 5rem; }
    .section-title h2, .quote-page-title, .page-title { }
    .logo { font-size: 1.5rem; }
    .nav a { font-size: 17px; }
    .container-hero { grid-template-columns: 2.2fr 1fr; gap: 30px; }
    .hero-left { }
    .hero-right { }
    .consult-form-box h3 { font-size: 1.375rem; }
    .review-rolling-item { width: 300px; }
    .floating-consult-bar .fconsult-item { font-size: 1rem; min-width: auto; padding: 18px 22px; }
    .floating-consult-bar .fconsult-item i { font-size: 1.25rem; }
    .promotion-grid {}
    .promotion-list-grid, .review-list-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ===== 모바일 햄버거 메뉴 ===== */
.header-hamburger {
    display: none;
    align-items: center;
    justify-content: center;
	
	position: absolute;
	left: 0; 
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--text-main);
    font-size: 1.25rem;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
	-webkit-tap-highlight-color: transparent;
}
@media (max-width: 767px) {
    .header-hamburger { display: flex; }
}
@media (min-width: 768px) {
    .header-hamburger { display: none !important; }
}

.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.mobile-nav-overlay.is-open {
    opacity: 1;
    visibility: visible;
}
.mobile-nav-backdrop {
    position: absolute;
    inset: 0;
    background: #FFF;
    cursor: pointer;
}
.mobile-nav-panel {
    position: absolute;
    top: 0;
    left: 0;
	width: 100%;
    height: 100%;
	margin: 0: auto; 
    background: var(--white);
    overflow-y: auto;
}
.mobile-nav-overlay.is-open .mobile-nav-panel {

}
.mobile-nav-header {
	position: relative; 
	display: flex; 
	justify-content: center; 
	align-items: center; 
	height: 48px; 
	
}
.mobile-nav-close {
    position: absolute;
	left: 10px; 
	
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
	
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
	-webkit-tap-highlight-color: transparent;
}
.mobile-nav-close:before {
	display: block;
    clear: both;
    content: '';
	
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    background: url(/include/img/icon_modal_close.svg) no-repeat center / contain;
}
.mobile-nav-logo {
	width: 100px; height: auto; 
}

.mobile-nav-body {
	border-top: 1px solid #EDEDED;
}

.mobile-nav-content ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav-content li { margin: 0; padding: 0; }
.mobile-nav-content a {
    display: flex;
	justify-content: space-between;
	align-items: center; 
	height: 66px; 
    padding: 0 20px;
    font-size: 15px;
    font-weight: 500;
    color: #242424; 
    border-bottom: 1px solid #EDEDED;
    transition: background 0.2s, color 0.2s;
}

.mobile-nav-content a:after {
	display: block; clear: both; content: '';
	width: 7px; height: 12px; 
	background: url('/include/img/icon_mob_nav_arrow.svg') no-repeat center/contain;
}
.mobile-nav-call-wrap {
	padding: 26px 20px;
}
.mobile-nav-call {
	display: flex; 
	justify-content: space-between;
	align-items: center;
	
	height: 67px; 
	padding: 0 20px; 
	border-radius: 12px;
	background: #F4F5F5; 
}
.mobile-nav-call span {
	color: #3D3D3D; 
	font-size: 12px; 
	font-weight: 500;
}
.mobile-nav-call strong {
	display: flex; 
	align-items: center; 
	gap: 5px; 
	
	color: var(--primary-color);
	font-size: 16px; 
	font-weight: 600; 
}
.mobile-nav-call strong:before {
	display: block; clear: both; content: '';
	width: 16px;
	height: 16px;
	background: url('/include/img/icon_mob_nav_call.svg') no-repeat center/ contain;
}

@media (hover: hover) {
	.header-hamburger:hover { background: var(--bg-light); color: var(--primary-color); }
	.mobile-nav-close:hover { background: var(--bg-light); color: var(--text-main); }
	.mobile-nav-content a:hover { background: var(--bg-light); color: var(--primary-color); }
}


/* ===== 브랜드/카테고리 탭 모바일 한 줄 가로 스크롤 ===== */
@media (max-width: 767px) {
    .category-tabs,
    .brand-tabs,
    .price-tabs,
    .quote-cartype-tabs {
    }
    .category-tabs::-webkit-scrollbar,
    .brand-tabs::-webkit-scrollbar,
    .price-tabs::-webkit-scrollbar { display: none; height: 0; }
    .category-tabs .tab-btn,
    .brand-tabs .tab-btn,
    .price-tabs .tab-btn,
    .quote-cartype-tabs .quote-tab-btn {
        flex-shrink: 0;
        min-height: 44px;
    }
}

/* ===== 5) 좁은 모바일 360px 이하 보강 ===== */
@media (max-width: 360px) {
    .container, .footer-inner { padding-left: 12px; padding-right: 12px; }
    .quote-steps { padding: 12px; gap: 8px; }
    .quote-step { padding: 10px 14px; font-size: 13px; }
    .quote-section, .quote-filter-row { padding: 16px; }
    .btn-quote-next { padding: 12px 24px; font-size: 15px; }
}
