/* ============================================
   MOBILE RESPONSIVE STYLES
   ============================================ */


/* Tablet and below (768px) */
@media screen and (max-width: 768px) {

    /* 모바일 스크롤 명시적 활성화 및 배경색 변경 */
    html,
    body {
        overflow-y: scroll !important;
        overflow-x: hidden !important;
        height: auto !important;
        min-height: 100vh;
        background-color: #ffffff !important;
        margin: 0 !important;
        padding: 0 !important;
        -webkit-overflow-scrolling: touch;
        /* iOS 부드러운 스크롤 */
    }

    /* 스크롤바 숨김 (스크롤 기능은 유지) */
    html::-webkit-scrollbar,
    body::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }

    html,
    body {
        scrollbar-width: none;
        /* Firefox */
        -ms-overflow-style: none;
        /* IE/Edge */
    }

    html {
        scroll-behavior: smooth;
    }

    /* ============================================
       배경색 제거 - 헤더는 유지, 나머지는 흰색
       ============================================ */

    /* Body와 앱 컨테이너 강제 흰색 배경 */
    body,
    #app,
    .app-container,
    .main-content,
    .visualizer-section,
    .controls-section {
        background-color: #ffffff !important;
        background: #ffffff !important;
    }

    /* 헤더는 검은색 유지 + 고정 */
    .main-header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        background: var(--bg-dark) !important;
        padding: 8px 4px !important;
        flex-wrap: wrap;
        z-index: 1000 !important;
        width: 100% !important;
    }

    /* 메인 컨텐츠 여백 - 헤더+스티키바 높이만큼 상단 여백 */
    .main-content {
        padding: 200px 0 0 0 !important;
        /* 헤더(56px) + 스티키바(138px) + 여유공간 */
        margin: 0 !important;
        gap: 4px !important;
    }

    .header-titles h1 {
        font-size: 18px;
    }

    .title-sub {
        font-size: 11px;
    }

    .header-actions {
        gap: 8px;
    }

    .download-svg-btn {
        padding: 8px 12px;
        font-size: 13px;
    }

    /* Main layout: Switch to single column */
    .main-content {
        flex-direction: column;
        gap: 8px;
    }

    .left-panel,
    .right-panel {
        width: 100%;
        max-width: none;
        background-color: #ffffff !important;
        padding: 0 !important;
    }

    /* Control panels */
    .panel-section {
        padding: 12px 4px;
        background-color: #ffffff !important;
    }

    /* Buttons - touch friendly */
    .option-btn,
    .dimension-btn,
    button {
        min-height: 44px;
        font-size: 14px;
        padding: 10px 16px;
    }

    .option-row {
        gap: 8px;
    }

    /* Dimension controls */
    .dimension-control input[type="number"],
    .dimension-control input[type="text"] {
        min-height: 44px;
        font-size: 16px;
        padding: 10px;
    }

    /* Product badges */
    .product-badge {
        width: 90%;
        font-size: 12px;
        padding: 10px 14px;
    }

    /* Recommendation section - 초기에 숨기고 상품 선택 시 표시 */
    #recommendationControl.recommendation-section {
        display: none !important;
    }

    body.product-selected #recommendationControl.recommendation-section {
        display: block !important;
        padding: 12px 4px !important;
        background-color: #ffffff !important;
        position: relative;
        /* 플로팅 안내 문구(::after) 기준점 */
    }

    .recommend-card {
        padding: 12px !important;
        margin: 0 !important;
    }

    .recommend-title {
        font-size: 13px;
    }

    .recommend-desc {
        font-size: 11px;
    }

    /* 플로팅 설정 변경 안내 문구 - 추천 조합과 주문제작 안내 사이 */
    .mobile-floating-notice {
        display: block;
        position: absolute;
        left: 4px;
        right: 4px;
        bottom: -50px;
        /* 추천 조합 컨테이너 하단 여백 공간에 위치 */
        font-size: 12px;
        /* 9pt */
        font-weight: 600;
        color: #64748b;
        text-align: center;
        line-height: 1.5;
        /* 행간 20% 감소 (1.5 → 1.2) */
        padding: 8px 12px;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s ease, visibility 0.4s ease;
        pointer-events: none;
        z-index: 1;
    }

    /* 상품 선택 시 플로팅 안내 문구 표시 */
    body.product-selected .mobile-floating-notice {
        opacity: 1;
        visibility: visible;
    }

    /* 플로팅 문구 내 강조 텍스트 (파란색) */
    .mobile-floating-notice .highlight {
        color: #3b82f6;
        font-size: 14.67px;
        /* 11pt */
    }

    /* 플로팅 문구 내 강조 텍스트 (빨간색) */
    .mobile-floating-notice .highlight-red {
        color: #ef4444;
        font-size: 14.67px;
        /* 11pt */
    }


    /* Top View와 Design Summary 분리 */
    .summary-view {
        margin-top: 30px !important;
        padding-top: 20px !important;
        border-top: 2px solid #e5e7eb !important;
    }

    /* 모바일 뷰 순서 조정: Top View → Front View → Side View → Design Summary */
    .drawing-area .view-grid {
        display: flex !important;
        flex-direction: column !important;
    }

    .drawing-area .view-grid>.top-row {
        display: contents !important;
    }

    .drawing-area .view-grid>.top-row>.main-view {
        order: 1 !important;
    }

    .drawing-area .view-grid>.sub-views {
        order: 2 !important;
    }

    .drawing-area .view-grid>.top-row>.summary-view {
        order: 3 !important;
    }

    /* Front View, Side View 세로 길이 축소 (Top View의 30%) */
    .drawing-area .view-grid>.sub-views .view-container {
        height: 120px !important;
        min-height: 120px !important;
        overflow: visible !important;
    }

    .drawing-area .view-grid>.sub-views .view-container svg {
        max-height: 120px !important;
        width: 100% !important;
        object-fit: contain !important;
    }

    /* Top View 위에 주문제작 안내 문구 */
    .drawing-area .view-grid>.top-row>.main-view::before {
        content: "* 1:1 주문 제작 상품 특성상 결제 후 취소나 반품이 불가합니다.";
        display: block;
        font-size: 12px;
        color: #64748b;
        text-align: center;
        padding: 8px 10px;
        margin-bottom: 10px;
        background: #f8fafc;
        border-radius: 6px;
        font-weight: 500;
    }

    /* Design Summary 내부 요소 숨김 (모바일 전용) */
    .design-summary .summary-footer,
    #designSummary .summary-footer,
    .summary-view .custom-order-notice {
        display: none !important;
    }

    /* Design Summary 바퀴 포함 옵션 안내 문구 스타일 */
    #designSummary .summary-note,
    .summary-view .summary-note {
        font-size: 11.5px !important;
        text-align: right !important;
        margin: 0 0 8px 0 !important;
        padding-right: 10px !important;
    }

    /* 마지막 표와 안내 문구 사이 간격 조정 (3px) */
    #designSummary .summary-table-container:last-of-type {
        margin-bottom: 3px !important;
    }

    /* Design Summary 표 좌우 여백 */
    #designSummary .summary-table-container {
        margin-left: 5px !important;
        margin-right: 5px !important;
        width: calc(100% - 10px) !important;
    }

    /* 제작 관련 정보 섹션 숨김 (모바일 전용) - 타이틀 + 내용 */
    #reinforceDetails,
    #designSummary~.view-tag,
    .summary-view>#reinforceDetails {
        display: none !important;
    }

    /* ============================================
       Design Summary 아래 인라인 컨트롤
       ============================================ */
    #mobile-inline-controls {
        margin: 8px 5px 0 5px;
        padding: 10px 10px 5px 10px;
        background: #f8fafc;
        border-radius: 8px;
        border: 1px solid #e2e8f0;
    }

    .mobile-inline-section {
        margin-bottom: 10px;
    }

    .mobile-inline-section:last-child {
        margin-bottom: 0;
    }

    .mobile-inline-title {
        font-size: 18px;
        font-weight: 600;
        color: #475569;
        text-transform: uppercase;
        letter-spacing: normal;
        margin: 50px 0 25px 8px;
        padding-left: 5px;
        border-left: 4px solid #3b82f6;
    }

    /* mobile-inline-title 내 작은 부제목 (2pt 작게) */
    .mobile-inline-title .subtitle-small {
        font-size: 15.3px;
        /* 18px - 2.67px (2pt) */
        text-transform: none;
        font-weight: 500;
    }

    .mobile-inline-btn-row {
        display: flex;
        gap: 6px;
        margin: 0 8px;
        /* 좌우 8px 여백 */
    }

    .mobile-inline-btn {
        flex: 1;
        padding: 8px 6px;
        border: 1.5px solid #cbd5e1;
        border-radius: 6px;
        background: #ffffff;
        color: #475569;
        font-size: 14px;
        font-weight: 600;
        text-align: center;
        cursor: pointer;
        transition: all 0.15s ease;
        line-height: 1.3;
    }

    .mobile-inline-btn.active {
        background: #3b82f6;
        color: #ffffff;
        border-color: #3b82f6;
        box-shadow: 0 1px 3px rgba(59, 130, 246, 0.3);
    }

    .mobile-inline-btn:not(.active):active {
        background: #f1f5f9;
    }

    .mobile-inline-qty-row {
        display: flex;
        align-items: center;
        gap: 20px;
        justify-content: center;
        margin-top: 1px;
    }

    .mobile-inline-qty-slider-wrap {
        padding: 6px 8px 0;
        margin-top: 2px;
    }

    .mobile-inline-qty-slider-wrap .mobile-slider {
        width: 100%;
    }

    .mobile-inline-qty-slider-wrap .slider-range-labels {
        margin-top: -2px;
    }

    .mobile-inline-qty-btn {
        width: 44px;
        height: 30px;
        background: #334155;
        color: #f8fafc;
        border: 2px solid #475569;
        border-radius: 8px;
        font-size: 24px;
        font-weight: 700;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
        transition: all 0.2s ease;
    }

    .mobile-inline-qty-btn:first-child {
        border-radius: 8px;
    }

    .mobile-inline-qty-btn:last-child {
        border-radius: 8px;
    }

    .mobile-inline-qty-btn:active {
        transform: scale(0.95);
        background: #1e293b;
    }

    .mobile-inline-qty-input {
        width: 100px;
        height: 30px;
        border: 2px solid #475569;
        text-align: center;
        font-size: 20px;
        font-weight: 700;
        color: #4b5563;
        border-radius: 8px;
        background: white;
        outline: none;
        transition: all 0.2s ease;
        -moz-appearance: textfield;
        appearance: textfield;
    }

    .mobile-inline-qty-input::-webkit-outer-spin-button,
    .mobile-inline-qty-input::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

    /* 설정 변경 버튼 행 */
    .mobile-settings-row {
        display: flex;
        gap: 6px;
        margin: 20px 8px 0 8px;
        padding-bottom: 5px;
    }

    .mobile-settings-btn {
        flex: 1;
        padding: 10px 6px;
        border: 1.5px solid #94a3b8;
        border-radius: 8px;
        background: #ffffff;
        color: #334155;
        font-size: 14px;
        font-weight: 600;
        text-align: center;
        cursor: pointer;
        line-height: 1.3;
        transition: all 0.15s ease;
    }

    .mobile-settings-btn:active {
        background: #f1f5f9;
        transform: scale(0.97);
    }

    #mobile-settings-popup {
        position: fixed;
        bottom: 130px;
        left: 8px;
        right: 8px;
        z-index: 15000;
    }

    .mobile-popup-content {
        position: relative;
        background: rgba(96, 165, 250, 0.3);
        backdrop-filter: blur(8px);
        border-radius: 10px;
        border: 1px solid rgba(255, 255, 255, 0.5);
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
        display: flex;
        flex-direction: column;
        overflow: hidden;
        max-height: calc(100vh - 325px);
    }

    .mobile-popup-close {
        position: relative;
        width: 100%;
        height: 40px;
        border: none;
        /* 테두리 제거 (가상 요소로 대체) */
        background: #ef4444;
        border-radius: 12px 12px 0 0;
        font-size: 15px;
        font-weight: 600;
        color: white;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        z-index: 20;
        box-shadow: none;
        line-height: 1;
        font-family: Arial,
            sans-serif;
        padding: 0;
        transition: background 0.2s;
        text-align: center;
        flex-shrink: 0;
    }

    /* 닫기 버튼 내부 흰색 테두리 */
    .mobile-popup-close::after {
        content: "";
        position: absolute;
        top: 4px;
        left: 4px;
        right: 4px;
        bottom: 4px;
        border: 2px solid rgba(255, 255, 255, 0.8);
        border-radius: 8px 8px 0 0;
        pointer-events: none;
    }

    .mobile-popup-close:active {
        transform: scale(0.9);
        background: #dc2626;
    }

    /* 하단 닫기 버튼 (항목 내부 맨 아래) */
    .mobile-popup-close-bottom {
        position: relative;
        width: 100%;
        height: 44px;
        border: none;
        background: #ef4444;
        border-radius: 10px;
        font-size: 15px;
        font-weight: 600;
        color: white;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 20;
        box-shadow: none;
        line-height: 1;
        font-family: Arial, sans-serif;
        padding: 0;
        margin-top: 16px;
        transition: background 0.2s;
        text-align: center;
        flex-shrink: 0;
    }

    .mobile-popup-close-bottom::after {
        content: "";
        position: absolute;
        top: 4px;
        left: 4px;
        right: 4px;
        bottom: 4px;
        border: 2px solid rgba(255, 255, 255, 0.8);
        border-radius: 7px;
        pointer-events: none;
    }

    .mobile-popup-close-bottom:active {
        transform: scale(0.9);
        background: #dc2626;
    }

    .mobile-popup-body {
        padding: 12px 16px 20px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        /* 스크롤 끝 도달 시 배경 스크롤 전파 차단 */
    }

    /* 커스텀 스크롤바 (모바일 팝업용) */
    .mobile-popup-body::-webkit-scrollbar {
        width: 10px;
    }

    .mobile-popup-body::-webkit-scrollbar-thumb {
        background-color: rgba(0, 0, 0, 0.4);
        border-radius: 10px;
        background-clip: padding-box;
        border: 2px solid transparent;
    }

    .mobile-popup-body::-webkit-scrollbar-track {
        background-color: transparent;
    }



    .mobile-popup-content::before,
    .mobile-popup-content::after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        height: 0;
        pointer-events: none;
        z-index: 2;
        transition: height 0.2s ease, opacity 0.2s ease;
        opacity: 0;
    }

    .mobile-popup-content::before {
        top: 0;
        background: linear-gradient(to bottom, rgba(59, 130, 246, 0.35), transparent);
        border-radius: 10px 10px 0 0;
    }

    .mobile-popup-content::after {
        bottom: 0;
        background: linear-gradient(to top, rgba(59, 130, 246, 0.35), transparent);
        border-radius: 0 0 10px 10px;
    }

    .mobile-popup-content.edge-top::before {
        height: 30px;
        opacity: 1;
        animation: edgePulse 0.6s ease-out;
    }

    .mobile-popup-content.edge-bottom::after {
        height: 30px;
        opacity: 1;
        animation: edgePulse 0.6s ease-out;
    }

    @keyframes edgePulse {
        0% {
            height: 10px;
            opacity: 0.8;
        }

        50% {
            height: 35px;
            opacity: 1;
        }

        100% {
            height: 30px;
            opacity: 0.6;
        }
    }

    .mobile-popup-body .panel-section {
        margin-bottom: 12px;
    }

    .mobile-popup-body h3 {
        font-size: 14px;
        font-weight: 600;
        color: #475569;
        margin: 0 0 8px 0;
    }

    .mobile-popup-body .option-row {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .mobile-popup-body .option-btn {
        padding: 10px 14px;
        border: 1.5px solid #cbd5e1;
        border-radius: 6px;
        background: #ffffff;
        color: #475569;
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.15s;
    }

    .mobile-popup-body .option-btn.active {
        background: #3b82f6;
        color: #ffffff;
        border-color: #3b82f6;
    }

    .mobile-settings-btn.popup-active {
        background: #3b82f6;
        color: #ffffff;
        border-color: #3b82f6;
    }

    body.mobile-popup-open .mobile-settings-row {
        padding-bottom: 0;
    }

    body.mobile-popup-open #mobile-inline-controls {
        padding-bottom: 0;
    }

    /* ============================================
       모바일 스티키 요약 바 (헤더 아래 고정)
       ============================================ */

    .mobile-sticky-summary {
        position: fixed;
        top: 56px;
        /* 헤더 높이 아래 */
        left: 0;
        right: 0;
        height: 145px;
        /* 세로 높이 고정 */
        background: rgba(254, 229, 0, 0.2) !important;
        padding: 4px 4px;
        z-index: 999;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        border-radius: 0 0 16px 16px;
        font-size: 11px;
        color: #333;
        /* 스크롤 반응 애니메이션 */
        transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
        transform: translateY(0);
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    /* 스크롤 다운 시 축소 효과 */
    .mobile-sticky-summary.scrolled {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        transform: translateY(-2px);
    }

    /* 스크롤 업 시 바운스 효과 */
    .mobile-sticky-summary.bounce {
        animation: stickyBounce 0.4s ease;
    }

    @keyframes stickyBounce {
        0% {
            transform: translateY(0);
        }

        30% {
            transform: translateY(-5px);
        }

        60% {
            transform: translateY(2px);
        }

        100% {
            transform: translateY(0);
        }
    }

    .mobile-sticky-summary .sticky-content {
        display: flex;
        flex-direction: column;
        gap: 6px;
        max-width: 100%;
        overflow: visible;
        transform: translateY(-25px);
    }

    /* 초기 안내 문구 스타일 */
    .mobile-sticky-summary .sticky-content.sticky-initial {
        text-align: center;
        font-size: 15px;
        font-style: italic;
        font-weight: normal;
        line-height: 1.6;
        color: #999;
        justify-content: center;
        align-items: center;
        padding: 10px;
        position: relative;
        transform: skewX(-15deg);
    }

    /* 햄버거바 가리키는 화살표 */
    .mobile-sticky-summary .sticky-arrow {
        position: absolute;
        top: -30px;
        right: 60px;
        /* font-size, font-weight 제거 (SVG 대체) */
        color: #334155;
        opacity: 1;
        animation: arrowBounce 1s infinite;
        z-index: 101;
    }

    @keyframes arrowBounce {

        0%,
        100% {
            transform: translate(0, 0);
        }

        50% {
            transform: translate(5px, -5px);
        }
    }

    /* 상단 행: 상품명 + 사이즈 - 가운데 정렬 */
    .mobile-sticky-summary .sticky-top-row {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        width: 100%;
    }

    .mobile-sticky-summary .sticky-product-name {
        font-weight: 700;
        font-size: 14px;
        color: #333;
    }

    .mobile-sticky-summary .sticky-size {
        font-weight: 600;
        font-size: 13px;
        color: #555;
    }

    /* 하단 행: 상세 정보 - 5칸 균등 배치 */
    .mobile-sticky-summary .sticky-bottom-row {
        display: flex;
        justify-content: space-between;
        gap: 2px;
        width: 100%;
    }

    /* 각 항목: 2줄 구조 (위: 항목명, 아래: 속성값) */
    .mobile-sticky-summary .sticky-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        flex: 1;
        min-width: 0;
    }

    .mobile-sticky-summary .sticky-item .item-label {
        font-size: 12px;
        color: #666;
        font-weight: 500;
        white-space: nowrap;
    }

    .mobile-sticky-summary .sticky-item .item-value {
        font-size: 11px;
        color: #333;
        font-weight: 700;
        white-space: nowrap;
    }

    /* 하단 안내 문구 */
    .mobile-sticky-summary .sticky-note {
        font-size: 12px;
        color: #888;
        text-align: center;
        margin-top: 0px;
        white-space: nowrap;
    }

    /* 실시간 업데이트 안내 - 추천 제작 조합과 동일 스타일 */
    .mobile-sticky-summary .sticky-realtime {
        color: #ef4444;
        font-weight: 700;
        background: rgba(239, 68, 68, 0.1);
        padding: 4px 8px;
        border-radius: 4px;
        border-left: 3px solid #ef4444;
        margin-top: 3px;
    }

    /* 추천 제작 조합 안내 문구 박스 숨김 */
    .recommendation-info-box {
        display: none !important;
    }

    /* TOP VIEW의 상품명 배지 숨김 (모바일에서만) - 바퀴 라벨은 유지 */
    .visualizer-section svg [class*="product-badge"] {
        display: none !important;
    }

    /* PC용 상품명 배지 완전 숨김 (뷰 라벨은 유지) */
    #selected-product-title,
    .product-badge {
        display: none !important;
    }

    /* 모든 뷰 컨테이너 여백 완전 제거 (개별 뷰 제외) */
    .drawing-area,
    .view-grid,
    .top-row,
    .bottom-row,
    .view-section,
    .view-section.main-view,
    .view-container {
        background-color: #ffffff !important;
        background: #ffffff !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
    }

    /* SVG 전체 너비 사용 */
    .view-section svg,
    .view-container svg,
    #topView svg,
    #frontView svg,
    #sideView svg {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        background: transparent !important;
        display: block !important;
    }

    /* 도면 컨테이너에 10px 여백 */
    #topView,
    #frontView,
    #sideView {
        padding: 10px !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        box-shadow: none !important;
    }

    /* 스크롤바 숨김 및 오버플로우 제거 */
    .visualizer-section,
    .view-grid,
    .top-row,
    .bottom-row,
    .view-section {
        overflow: hidden !important;
        box-shadow: none !important;
    }

    /* View container: Stack vertically + 10px 패딩 */
    .view-container {
        flex-direction: column;
        gap: 8px;
        background-color: #ffffff !important;
        padding: 10px !important;
    }

    /* 뷰 라벨(TOP VIEW, DESIGN SUMMARY 등) 왼쪽 여백 */
    .view-tag,
    .view-section>.view-tag,
    .view-section>div:first-child {
        margin-left: 10px !important;
        padding-left: 5px !important;
    }

    /* 전체 view-section에 10px 패딩 적용 */
    .view-section {
        padding: 10px !important;
    }

    /* Top view full width */
    .top-view-container {
        width: 100%;
    }

    /* SVG containers */
    #topView svg,
    #frontView svg,
    #sideView svg {
        max-width: 100%;
        height: auto;
    }

    /* ============================================
       모바일 메인 화면 레이아웃 재구성
       ============================================ */

    /* 메인 컨텐츠를 flex 컨테이너로 변경 */
    .main-content {
        display: flex;
        flex-direction: column;
        height: auto !important;
        overflow: visible !important;
        flex: none !important;
        /* flex-grow 방지 */
    }

    /* 앱 컨테이너 스크롤 제약 해제 및 배경 변경 */
    .app-container {
        height: auto !important;
        min-height: 100% !important;
        overflow: visible !important;
        display: block !important;
        /* flex일 경우 해제 */
        background-color: #ffffff !important;
        /* 배경 흰색 */
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Visualizer와 Controls를 모두 표시하고 순서 조정 */
    .visualizer-section {
        order: 2;
        width: 100%;
        background-color: #ffffff !important;
        background: #ffffff !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* ============================================
       모바일 뷰 순서 제어 (JS에서 클래스 추가)
       순서: 추천(1) → TOP(2) → sub-views(3) → SUMMARY(4)
       ============================================ */

    /* view-grid가 mobile-reordered 클래스를 가질 때 */
    .view-grid.mobile-reordered {
        display: flex !important;
        flex-direction: column !important;
        padding: 0 !important;
        margin: 0 !important;
        gap: 8px !important;
    }

    /* 모바일 순서 클래스들 */
    .mobile-order-1 {
        order: 1 !important;
        display: block !important;
        width: 100% !important;
    }

    .mobile-order-2 {
        order: 2 !important;
    }

    .mobile-order-3 {
        order: 3 !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .mobile-order-4 {
        order: 4 !important;
    }

    /* top-row 모바일 스타일 */
    .mobile-top-row {
        display: contents !important;
        /* 자식들이 부모의 flex에 직접 참여 */
    }

    /* view-grid flex column으로 변경 + 뷰 순서 지정 */
    .visualizer-section .view-grid {
        display: flex !important;
        flex-direction: column !important;
        padding: 0 !important;
        margin: 0 !important;
        gap: 4px !important;
    }

    /* top-row와 bottom-row를 flex column으로 */
    .visualizer-section .top-row,
    .visualizer-section .bottom-row {
        display: flex !important;
        flex-direction: column !important;
        padding: 0 !important;
        margin: 0 !important;
        background: #ffffff !important;
        width: 100% !important;
    }

    /* 뷰 순서 지정: 추천(order:0) → TOP(order:1) → FRONT(order:2) → SIDE(order:3) → SUMMARY(order:4) */

    /* 추천 제작 조합을 맨 앞으로 */
    .visualizer-section #recommendationControl,
    .visualizer-section .recommendation-section,
    .visualizer-section #mobile-recommendation-clone {
        order: 0 !important;
        display: block !important;
        width: 100% !important;
    }

    /* TOP VIEW */
    .visualizer-section .view-section.main-view {
        order: 1 !important;
    }

    /* sub-views 컨테이너 (FRONT + SIDE) */
    .visualizer-section .sub-views {
        order: 2 !important;
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
    }

    /* sub-views 내부 FRONT VIEW */
    .visualizer-section .sub-views .view-section:first-child {
        order: 1 !important;
    }

    /* sub-views 내부 SIDE VIEW */
    .visualizer-section .sub-views .view-section:last-child {
        order: 2 !important;
    }

    /* DESIGN SUMMARY - 맨 마지막 */
    .visualizer-section .view-section.summary-view {
        order: 4 !important;
    }

    /* top-row를 flex column으로 변환 */
    .visualizer-section .top-row {
        display: flex !important;
        flex-direction: column !important;
        order: 1 !important;
    }

    .controls-section {
        order: 1;
        width: 100%;
        padding: 0;
        background: #ffffff !important;
    }

    /* 컨트롤 섹션 내부 순서 조정 */
    .control-panel {
        display: flex !important;
        flex-direction: column;
        gap: 12px;
    }

    .recommendation-section {
        order: 0 !important;
        display: block !important;
        padding: 12px 4px !important;
        background: #ffffff !important;
        background-image: none !important;
        box-shadow: none !important;
    }

    /* 추천 제작 조합 안내 문구 - 모바일 최적화 */
    .social-proof-text {
        display: block !important;
        text-align: left !important;
        word-break: keep-all !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        white-space: normal !important;
        line-height: 1.8 !important;
        padding: 12px 14px !important;
    }

    .social-proof-text::before {
        display: inline !important;
        float: left !important;
        margin-right: 6px !important;
    }

    .recommend-card {
        margin: 0 !important;
        /* 카드 마진 제거 */
    }

    /* Visualizer의 뷰들을 순서대로 표시 */
    .view-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .top-row,
    .bottom-row {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    /* 각 뷰 섹션 - 모든 여백 제거 */
    .view-section {
        width: 100% !important;
        order: initial;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        background-color: #ffffff !important;
    }

    /* 뷰 섹션 내부 요소도 여백 제거 */
    .view-section>* {
        padding: 0 !important;
        margin: 0 !important;
    }

    /* SVG를 화면 가득 채우기 */
    .view-section svg,
    #topView,
    #frontView,
    #sideView,
    #topView svg,
    #frontView svg,
    #sideView svg {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Design Summary - 여백 최소화 */
    .summary-grid {
        grid-template-columns: 1fr;
        order: 5;
        padding: 4px !important;
        margin: 0 !important;
        background-color: #ffffff !important;
    }

    .summary-table {
        font-size: 12px;
    }

    .summary-table th,
    .summary-table td {
        padding: 8px 4px;
        /* 테이블 셀 패딩 축소 */
    }

    /* ============================================
       모바일 메인 화면 컨트롤 표시
       ============================================ */

    /* 수량 설정 컨트롤 - order 6, 여백 최소화 */
    #cartQtyControl {
        display: block !important;
        order: 6;
        padding: 8px 4px !important;
        background: white;
        border-radius: 8px;
        margin: 4px 0 !important;
    }

    /* 휠플레이트 개수 변경 - order 8, 여백 최소화 */
    #wheelControl {
        display: block !important;
        order: 8;
        padding: 8px 4px !important;
        background: white;
        border-radius: 8px;
        margin: 4px 0 !important;
    }

    /* 손잡이/바퀴 포함 여부 컨트롤 - order 7, 여백 최소화 */
    #casterInclusionControl {
        display: block !important;
        order: 7;
        padding: 8px 4px !important;
        background: white;
        border-radius: 8px;
        margin: 4px 0 !important;
    }

    /* 그룹 컨트롤 숨기기 (바퀴 설정 변경, 보강 설정 변경 등) */
    .control-group {
        display: none !important;
    }

    /* control-placeholder 숨기기 */
    .control-placeholder {
        display: none !important;
    }

    /* primary-setup-group을 flexbox로 변경하여 순서 조정 가능하도록 */
    .primary-setup-group {
        display: flex;
        flex-direction: column;
    }

    /* outerProfileControl 숨기기 */
    #outerProfileControl {
        display: none !important;
    }

    /* ============================================
       모바일 1열 레이아웃 강화
       ============================================ */

    /* 모든 메인 섹션을 100% 너비로 - 좌우 패딩 고려하여 box-sizing 확인 */
    .visualizer-section,
    .controls-section,
    .control-panel,
    .recommendation-section,
    .view-grid,
    .top-row,
    .bottom-row,
    .view-section,
    #cartQtyControl,
    #casterInclusionControl,
    #wheelControl {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        /* 패딩 포함 너비 계산 */
    }

    /* grid 레이아웃 제거 */
    .view-grid,
    .summary-grid {
        display: flex !important;
        flex-direction: column !important;
    }

    /* 추천조합 내부도 1열 */
    .recommendation-section .option-row,
    #recommendationList {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
    }

    /* 초기 안내창 기본 숨김 (제품 선택 후) */
    .initial-instruction-overlay {
        display: none !important;
    }

    /* Manufacturing Info */
    .parts-table {
        font-size: 11px;
        overflow-x: auto;
        display: block;
    }

    .parts-table th,
    .parts-table td {
        padding: 6px 4px;
        min-width: 60px;
    }

    /* Price display */
    .total-price-display {
        font-size: 18px;
    }

    .price-amount {
        font-size: 28px;
    }

    /* Accordions */
    .accordion-header {
        padding: 12px;
        font-size: 14px;
    }

    .accordion-content {
        padding: 12px;
    }

    /* Top view specs - stack vertically */
    #top-view-specs {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    /* Hide decorative elements on mobile */
    .placeholder-logo {
        max-width: 40%;
    }

    /* Ensure touch scrolling */
    .view-container,
    .parts-table-container {
        -webkit-overflow-scrolling: touch;
    }

    /* ============================================
       MOBILE INDEPENDENCE PROTOCOL
       ============================================ */

    /* PC 요소 숨김 */
    .pc-only {
        display: none !important;
    }

    /* 모바일 전용 요소 표시 */
    .mobile-only {
        display: block !important;
    }

    /* 모바일 헤더 재구성 */
    .main-header {
        display: flex !important;
        grid-template-columns: unset;
        justify-content: space-between;
        align-items: center;
        padding: 10px 16px;
        z-index: 10002 !important;
        position: relative;
    }

    .header-center,
    .header-right {
        display: none !important;
    }

    .header-left {
        display: flex;
        align-items: center;
        gap: 12px;
        width: 100% !important;
        justify-content: space-between !important;
    }

    /* .header-logo width reset regarding mobile */
    .header-logo {
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        flex: 1;
        border: none !important;
        background: transparent !important;
        padding: 0 !important;
        padding-left: 0 !important;
        border-radius: 0 !important;
    }

    /* 햄버거 메뉴 버튼 */
    .mobile-hamburger {
        width: 44px;
        height: 44px;
        background: #334155;
        border: none;
        border-radius: 10px;
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        cursor: pointer;
        box-shadow: 0 4px 15px rgba(15, 23, 42, 0.3);
        z-index: 10001;
        flex-shrink: 0;
    }

    .mobile-hamburger span {
        width: 22px;
        height: 2px;
        background: white;
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    .mobile-hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    @keyframes shake-btn {

        0%,
        100% {
            transform: translateX(0);
        }

        25% {
            transform: translateX(-5px);
        }

        75% {
            transform: translateX(5px);
        }
    }

    .mobile-hamburger.shake-btn {
        animation: shake-btn 0.3s ease-in-out 2;
    }

    /* 햄버거 오버레이 메뉴 */
    .mobile-hamburger-overlay {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        max-width: none;
        height: 100vh;
        background: rgba(30, 41, 59, 0.3);
        /* Slate 800 with 30% opacity - lighter than contact section */
        backdrop-filter: blur(10px);
        /* Add blur effect for better readability */
        z-index: 20000;
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
        overflow-y: auto;
        box-shadow: none;
    }

    .mobile-hamburger-overlay.open {
        transform: translateX(0);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
    }

    .menu-header {
        position: absolute;
        /* Remove from layout flow */
        top: 0;
        right: 0;
        width: 100%;
        height: 0;
        /* No layout space */
        background: transparent;
        border: none;
        padding: 0;
        z-index: 20001;
    }

    .menu-header h2 {
        display: none;
        /* Hide title - only show close button */
    }

    .menu-close {
        position: absolute;
        /* Float above content */
        top: 16px;
        right: 16px;
        /* Increased spacing slightly */
        width: 36px;
        height: 36px;
        /* Matched with popup close btn */
        background: #ef4444;
        /* Red 500 - Prominent close action */
        border: 2px solid white;
        /* White border matched */
        border-radius: 50%;
        font-size: 20px;
        /* 살짝 줄여 원 안에서 시각적 균형 */
        font-weight: 400;
        /* Lighter weight for cleaner look */
        color: white;
        /* White X */
        cursor: pointer;
        display: flex !important;
        align-items: center;
        justify-content: center;
        z-index: 20001;
        /* Above menu content */
        box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
        /* Red Glow */
        transition: transform 0.2s ease, background 0.2s;
        line-height: 1;
        font-family: Arial, sans-serif;
        /* Consistent font */
        padding: 0;
        /* Remove padding for perfect centering */
        text-align: center;
        text-indent: 0;
    }

    .menu-close:active {
        transform: scale(0.9);
        background: #dc2626;
        /* Red 600 */
    }

    .menu-body {
        padding: 0;
        overflow-y: auto;
        max-height: 100vh;
        /* Full viewport height */
        position: relative;
        /* 오버레이 기준점 */
    }

    /* 메뉴 섹션 */
    .menu-section {
        padding: 25px 16px;
        /* Removed border-bottom */
    }

    .menu-section:first-of-type {
        margin-top: 10px;
        /* Add spacing from top */
    }

    #mobile-dimension-section {
        padding-top: 0;
        /* 운반구 종류 선택과의 간격: 25px (이전 섹션 하단 25px + 0) */
    }

    /* 전체 영역 오버레이 (치수설정 제목 아래 ~ 선택완료 버튼 하단) */
    .mobile-dim-full-overlay {
        position: absolute;
        left: 5px;
        right: 5px;
        background: rgba(255, 255, 255, 0.4);
        /* Lower opacity white base */
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        /* Lower blur intensity */
        z-index: 15;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        pointer-events: auto;
        /* Block interactions with content below */
        transition: opacity 0.4s ease;
        border-radius: 16px;
        /* Keep radius for content shape */
        /* Remove explicit border and shadow for natural fade */
        border: none;
        box-shadow: none;

        /* Fade edges: left/right 10%, top 3%, bottom 10% */
        -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%),
            linear-gradient(to bottom, transparent 0%, black 3%, black 90%, transparent 100%);
        mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%),
            linear-gradient(to bottom, transparent 0%, black 3%, black 90%, transparent 100%);
        -webkit-mask-composite: source-in;
        mask-composite: intersect;
    }

    .mobile-dim-full-overlay .dim-overlay-message {
        color: #334155;
        /* Slate 700 - Dark visible text on white glass */
        font-size: 32px;
        /* Larger font size */
        font-weight: 400;
        /* Normal weight */
        font-style: italic;
        /* Italic style */
        text-align: center;
        text-shadow: none;
        white-space: normal;
        /* Allow wrapping */
        line-height: 2.0;
        transform: translateX(-7px) translateY(-130px) skewX(-14deg);
        /* Left 10px, up 20px more (total -160px), strong italic skew */
    }

    .menu-section-title {
        font-size: 18px;
        font-weight: 700;
        color: #ffffff;
        /* Slate 200 */
        margin-bottom: 12px;
        padding-left: 10px;
        border-left: 4px solid #ef4444;
        /* Red 500 accent bar */
    }

    /* 상품 캐러셀 */
    .product-carousel-container {
        width: 100%;
        overflow: hidden;
    }

    .product-carousel {
        display: flex;
        gap: 38px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 8px 0;
        scrollbar-width: none;
        perspective: 1000px;
        /* 3D 입체감 */
        touch-action: pan-x;
        /* 수평 스와이프 명시적 허용 */
    }

    .product-carousel::-webkit-scrollbar {
        display: none;
    }

    /* 캐러셀 아이템 wrapper (박스 + 이름을 포함) */
    .carousel-item-wrapper {
        flex: 0 0 100px;
        width: 100px;
        scroll-snap-align: center;
        scroll-snap-stop: always;
        /* Force stop at each item */
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
        /* 부드러운 bounce 효과 */
    }

    .carousel-item-wrapper:active {
        transform: scale(0.95);
        /* 탭 시 살짝 줄어듦 */
    }

    /* 캐러셀 박스 (이미지만 포함) */
    .carousel-item {
        width: 100px;
        height: 100px;
        background: white;
        /* White background for better visibility */
        border: 2px solid #475569;
        /* Slate 600 */
        border-radius: 12px;
        padding: 12px;
        cursor: pointer;
        transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
        transform-style: preserve-3d;
        transform: rotateY(-5deg);
        /* Slight 3D rotation for depth */
    }

    .carousel-item:hover {
        border-color: #64748b;
        /* Slate 500 */
        transform: translateY(-4px) scale(1.05) rotateY(0deg);
        /* Reset rotation on hover */
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    }

    .carousel-item.active {
        border-color: #3b82f6;
        /* Blue 500 */
        background: white;
        /* Keep white background when active */
        box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4), 0 0 0 3px rgba(59, 130, 246, 0.15);
        transform: scale(1.08) rotateY(0deg);
        /* Front-facing when active */
        animation: pulse-glow-blue 2s ease-in-out infinite;
    }

    @keyframes pulse-glow-blue {

        0%,
        100% {
            box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4), 0 0 0 3px rgba(59, 130, 246, 0.15);
        }

        50% {
            box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5), 0 0 0 4px rgba(59, 130, 246, 0.2);
        }
    }

    .carousel-item img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        transition: transform 0.3s ease;
        filter: none;
        /* Remove dark filter for white background */
        transform: scale(1.3);
        /* Make image 30% larger */
    }

    .carousel-item:hover img {
        transform: scale(1.43) rotate(2deg);
        /* 1.3 * 1.1 = 1.43 for hover effect */
    }

    .carousel-item:active img {
        transform: scale(1.43) rotate(2deg);
        /* Touch/active state rotation */
    }

    .carousel-item.active img {
        animation: float 3s ease-in-out infinite;
    }

    @keyframes float {

        0%,
        100% {
            transform: translateY(0px);
        }

        50% {
            transform: translateY(-3px);
        }
    }

    /* 운반구 이름 (박스 밖에 배치) */
    .carousel-item-name {
        font-size: 12px;
        font-weight: 600;
        color: #cbd5e1;
        /* Slate 300 */
        text-align: center;
        max-width: 120px;
        line-height: 1.3;
        transition: color 0.3s ease, transform 0.3s ease;
    }

    .carousel-item.active+.carousel-item-name {
        color: #ffffff;
        /* White for maximum readability */
        font-weight: 700;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
        /* Add shadow for contrast */
    }

    .carousel-item-desc {
        font-size: 11px;
        color: #64748b;
        display: none;
        /* 설명 숨김 */
    }

    /* 가로폭 캐러셀 wrapper (슬라이더 대체용) */
    .width-carousel-wrapper {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .width-carousel-wrapper label {
        font-size: 13px;
        font-weight: 600;
        color: #94a3b8;
        /* Slate 400 */
    }

    /* 가로폭 캐러셀 */
    .width-carousel-wrapper label {
        font-size: 13px;
        font-weight: 600;
        color: white;
        /* White color to match slider labels */
        margin-bottom: 8px;
        display: block;
    }

    .width-carousel-container {
        width: 100%;
        overflow: hidden;
    }

    .width-carousel {
        display: flex;
        gap: 38px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        /* Snap to center */
        -webkit-overflow-scrolling: touch;
        padding: 8px 0;
        scrollbar-width: none;
        perspective: 1000px;
        /* Enable 3D perspective for rotation effects */
        scroll-padding: 0 calc(50% - 60px);
        /* Center items when snapping */
        touch-action: pan-x;
        /* 수평 스와이프 명시적 허용 */
    }

    .width-carousel::-webkit-scrollbar {
        display: none;
    }

    .width-item {
        flex: 0 0 100px;
        /* Changed from 120px to 100px */
        scroll-snap-align: center;
        scroll-snap-stop: always;
        /* Force stop at each item */
        background: #334155;
        /* Slate 700 */
        border: 2px solid #475569;
        /* Slate 600 */
        border-radius: 10px;
        padding: 4px 8px;
        /* Reduced padding for 30px height */
        cursor: pointer;
        transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
        text-align: center;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
        transform-style: preserve-3d;
        transform: rotateY(-3deg);
        /* Slight 3D rotation */
    }

    .width-item:hover {
        border-color: #64748b;
        /* Slate 500 */
        transform: translateY(-4px) scale(1.05) rotateY(0deg);
        /* Reset rotation on hover */
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    }

    .width-item.active {
        border-color: #3b82f6;
        /* Blue 500 - Consistently match product carousel */
        background: #0f172a;
        /* Slate 900 */
        box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4), 0 0 0 3px rgba(59, 130, 246, 0.15);
        transform: scale(1.08) rotateY(0deg);
        /* Front-facing when active */
        animation: pulse-glow-blue 2s ease-in-out infinite;
    }

    @keyframes pulse-glow-green {

        0%,
        100% {
            box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4), 0 0 0 3px rgba(16, 185, 129, 0.15);
        }

        50% {
            box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5), 0 0 0 4px rgba(16, 185, 129, 0.2);
        }
    }

    .width-label {
        font-size: 16px;
        font-weight: 700;
        color: white !important;
        /* White for better visibility - forced */
        transition: all 0.3s ease;
    }

    .width-item:hover .width-label {
        transform: scale(1.1);
    }

    .width-item:active .width-label {
        transform: scale(1.1) rotate(2deg);
        /* Touch/active state rotation */
    }

    .width-item.active .width-label {
        color: #ffffff;
        /* White - Match product name active color */
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
        animation: bounce-text 0.6s ease;
    }

    @keyframes bounce-text {

        0%,
        100% {
            transform: scale(1);
        }

        50% {
            transform: scale(1.15);
        }
    }


    /* 치수 슬라이더 */
    .dimension-slider-group {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .slider-item {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .slider-range-labels {
        display: flex;
        justify-content: space-between;
        padding: 0 2px;
        margin-top: -4px;
        font-size: 11px;
        font-weight: 500;
        color: white;
    }

    .slider-item label,
    .width-carousel-wrapper label {
        font-size: 15px;
        font-weight: 600;
        color: white;
        text-align: center;
        /* White color for labels */
    }

    .dim-range-label {
        font-size: 11px;
        font-weight: 500;
        /* 400 -> 500 */
        color: #ffffff !important;
        /* Force White */
        margin-left: 6px;
        white-space: nowrap;
        opacity: 0.9;
    }

    .dimension-warning {
        color: #ef4444;
        /* Red 500 */
        font-size: 12px;
        font-weight: 600;
        margin-top: 4px;
        min-height: 18px;
        opacity: 0;
        transition: opacity 0.3s;
        text-align: center;
    }

    .dimension-warning.visible {
        opacity: 1;
    }


    .slider-input-row {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        margin: 2px 0;
    }

    .dimension-input {
        width: 100px;
        padding: 4px 32px 4px 12px;
        /* Right padding for mm label */
        font-size: 18px;
        font-weight: 700;
        color: #4b5563;
        /* Dark gray (Gray 600) */
        text-align: center;
        border: 2px solid #475569;
        /* Slate 600 */
        border-radius: 8px;
        background: white;
        /* White background */
        outline: none;
        transition: border-color 0.2s;
        -webkit-user-select: text !important;
        user-select: text !important;
        touch-action: manipulation;
    }

    .dimension-input:focus {
        border-color: #3b82f6;
        /* Blue 500 */
        box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
    }

    .dimension-input-wrapper {
        position: relative;
        display: inline-block;
    }

    .dimension-unit-inside {
        position: absolute;
        right: 8px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 14px;
        font-weight: 600;
        color: #6b7280;
        /* Gray 500 - slightly darker */
        pointer-events: none;
        /* Allow clicks to pass through to input */
        white-space: nowrap;
        /* Keep on same line */
    }

    .dimension-btn {
        width: 36px;
        height: 30px;
        /* Reduced from 36px */
        border: 2px solid #475569;
        /* Slate 600 */
        border-radius: 8px;
        background: #334155;
        /* Slate 700 */
        color: #f8fafc;
        /* Slate 50 */
        font-size: 20px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s;
        display: flex;
        align-items: center;
        justify-content: center;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
    }

    .dimension-btn:active {
        background: #1e293b;
        /* Slate 800 */
        border-color: #64748b;
        transform: scale(0.95);
    }

    .slider-value {
        font-size: 18px;
        font-weight: 800;
        color: #60a5fa;
        /* Blue 400 */
        text-align: center;
        margin: 4px 0;
    }

    .mobile-slider {
        width: 100%;
        height: 4px;
        /* Track height - thinner */
        border-radius: 2px;
        background: transparent;
        outline: none;
        -webkit-appearance: none;
        appearance: none;
        margin: 10px 0;
        /* Add margin for thumb space */
        touch-action: none;
        /* 터치 드래그 시 브라우저 스크롤 차단 → 슬라이더 매끄럽게 이동 */
    }

    /* Chrome, Safari, Edge 슬라이더 트랙 */
    .mobile-slider::-webkit-slider-runnable-track {
        width: 100%;
        height: 12px;
        border-radius: 6px;
        background: #475569;
        /* Slate 600 - Match input borders */
        cursor: pointer;
    }

    /* Firefox 슬라이더 트랙 */
    .mobile-slider::-moz-range-track {
        width: 100%;
        height: 12px;
        border-radius: 6px;
        background: #475569;
        /* Slate 600 */
        cursor: pointer;
        border: none;
    }

    .mobile-slider::-webkit-slider-thumb {
        appearance: none !important;
        -webkit-appearance: none !important;
        width: 42px !important;
        height: 42px !important;
        border-radius: 50% !important;
        background: white !important;
        border: 2px solid #3b82f6 !important;
        /* Blue 500 border */
        cursor: pointer !important;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4) !important;
        transition: all 0.2s ease;
        margin-top: -15px !important;
        /* Center thumb: (12px - 42px) / 2 = -15px */
    }

    .mobile-slider::-webkit-slider-thumb:hover,
    .mobile-slider::-webkit-slider-thumb:active {
        transform: scale(1.1);
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    }

    .mobile-slider::-moz-range-thumb {
        width: 42px;
        height: 42px;
        border-radius: 50%;
        background: white;
        border: 2px solid #3b82f6;
        cursor: pointer;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
        transition: all 0.2s ease;
    }

    /* 메뉴 하단 래퍼 (세로 가이드 바 + 버튼 영역) */
    .menu-actions-wrapper {
        position: relative;
        padding: 0;
        margin: 0;
    }

    .menu-actions-guide-bar {
        position: absolute;
        left: 16px;
        top: 25px;
        bottom: 4px;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 4px;
        z-index: 1;
    }

    .guide-bar-line {
        width: 4px;
        flex: 1;
        background: linear-gradient(180deg, #ef4444 0%, #f59e0b 50%, #fbbf24 100%);
        border-radius: 4px;
        opacity: 0.9;
    }

    .guide-bar-dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: #fbbf24;
        margin-top: 8px;
        flex-shrink: 0;
        opacity: 1;
        box-shadow: 0 0 12px rgba(251, 191, 36, 0.6);
    }

    /* 우측 가이드바 (삭제됨, 안전장치) */
    .menu-actions-guide-bar.guide-bar-right {
        display: none;
    }

    .menu-actions-content {
        width: 100%;
    }

    /* 메뉴 액션 버튼들 */
    .menu-actions {
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding: 20px 35px;
        border-bottom: none;
    }

    .menu-action-btn {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 14px 18px;
        height: 48px;
        box-sizing: border-box;
        border: none;
        border-radius: 10px;
        font-size: 15px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s ease;
        text-decoration: none;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    }

    .menu-action-btn .btn-icon {
        font-size: 20px;
    }

    .menu-action-btn .btn-text {
        flex: 1;
        text-align: left;
    }

    .menu-action-btn.brand-story {
        background: #ffffff;
        color: #0f172a;
        /* Slate 900 */
        border: 1px solid #e2e8f0;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .menu-action-btn.store {
        background: linear-gradient(135deg, #f97316 0%, #d97706 100%);
        /* 브랜드 오렌지 */
        color: white;
        border: none;
    }

    .menu-action-btn.pdf-download {
        background: #1e293b;
        /* Slate 800 */
        color: #f8fafc;
        border: 1px solid #334155;
    }

    /* Contact Info - styles defined in contact section below (line ~2269) */

    /* Mobile Advanced Options (Dynamic Mirroring) */
    #mobile-advanced-options {
        margin-top: 16px;
        padding-top: 16px;
        /* Removed border-top */
    }

    .mobile-option-group {
        margin-bottom: 16px;
    }

    .mobile-option-group label {
        display: block;
        font-size: 13px;
        font-weight: 600;
        color: #94a3b8;
        /* Slate 400 */
        margin-bottom: 8px;
    }

    .mobile-btn-group {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .mobile-btn-group.scrollable {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
        /* Scrollbar space */
        -webkit-overflow-scrolling: touch;
    }

    .mobile-option-btn {
        padding: 8px 12px;
        border: 1px solid #475569;
        /* Slate 600 */
        background: #334155;
        /* Slate 700 */
        border-radius: 6px;
        font-size: 13px;
        color: #cbd5e1;
        /* Slate 300 */
        cursor: pointer;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .mobile-option-btn.active {
        background: #0f172a;
        /* Slate 900 */
        border-color: #3b82f6;
        /* Blue 500 */
        color: #60a5fa;
        /* Blue 400 */
        font-weight: 600;
        box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.3);
    }

    /* Recommendation Cards */
    .mobile-reco-card {
        border: 1px solid #475569;
        /* Slate 600 */
        border-radius: 8px;
        padding: 12px;
        margin-bottom: 8px;
        background: #1e293b;
        /* Slate 800 */
        cursor: pointer;
        transition: all 0.2s;
    }

    .mobile-reco-card:active {
        transform: scale(0.98);
        background: #0f172a;
        /* Slate 900 */
        border-color: #3b82f6;
    }

    .reco-title {
        font-weight: 700;
        font-size: 14px;
        color: #f1f5f9;
        /* Slate 100 */
        margin-bottom: 4px;
    }

    .reco-desc {
        font-size: 12px;
        color: #94a3b8;
        /* Slate 400 */
        line-height: 1.4;
    }

    .menu-action-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    }

    .menu-action-btn:active {
        transform: translateY(0);
    }

    /* 메인 화면 제작 수량 컨트롤 */
    .qty-control-wrapper {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 20px;
        /* Increased gap for visual separation */
    }

    /* 제작 수량 컨트롤 */
    .quantity-controls {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 20px;
        margin-top: 0;
        padding-top: 10px;
        /* Force spacing for quantity controls */
    }

    .qty-btn {
        width: 44px;
        height: 30px;
        /* Reduced from 44px */
        background: #334155;
        /* Slate 700 */
        color: #f8fafc;
        /* Slate 50 */
        border: 2px solid #475569;
        /* Slate 600 */
        border-radius: 8px;
        font-size: 24px;
        font-weight: 700;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
        transition: all 0.2s ease;
    }

    .qty-btn:hover {
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
        border-color: #64748b;
    }

    .qty-btn:active {
        transform: scale(0.95);
        background: #1e293b;
    }

    .qty-input {
        width: 100px;
        height: 30px;
        /* Reduced from 44px */
        text-align: center;
        font-size: 20px;
        font-weight: 700;
        color: #4b5563;
        /* Dark gray (Gray 600) */
        border: 2px solid #475569;
        /* Slate 600 */
        border-radius: 8px;
        background: white;
        /* White background */
        outline: none;
        transition: all 0.2s ease;
    }

    .qty-input:focus {
        border-color: #3b82f6;
        /* Blue 500 */
        background: white;
        /* 흰색 유지 (치수 입력창과 동일) */
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    }

    /* Chrome, Safari, Edge 숫자 스피너 숨김 */
    .qty-input::-webkit-outer-spin-button,
    .qty-input::-webkit-inner-spin-button {
        appearance: none;
        -webkit-appearance: none;
        margin: 0;
    }

    /* Firefox 숫자 스피너 숨김 */
    .qty-input[type="number"],
    .qty-input[type="text"] {
        appearance: textfield;
        -moz-appearance: textfield;
    }

    /* 메인 화면 제작 수량 버튼 (.step-btn) - 햄버거 메뉴 스타일과 통일 */
    .step-btn {
        width: 44px;
        height: 30px;
        background: #334155;
        /* Slate 700 */
        color: #f8fafc;
        /* Slate 50 */
        border: 2px solid #475569;
        /* Slate 600 */
        border-radius: 8px;
        font-size: 24px;
        font-weight: 700;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
        transition: all 0.2s ease;
    }

    .step-btn:hover {
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
        border-color: #64748b;
    }

    .step-btn:active {
        transform: scale(0.95);
        background: #1e293b;
    }

    /* 메인 화면 제작 수량 입력창 (.num-input) - 햄버거 메뉴 스타일과 통일 */
    .num-input {
        width: 100px;
        height: 30px;
        text-align: center;
        font-size: 20px;
        font-weight: 700;
        color: #4b5563;
        /* Dark gray (Gray 600) */
        border: 2px solid #475569;
        /* Slate 600 */
        border-radius: 8px;
        background: white;
        /* White background */
        outline: none;
        transition: all 0.2s ease;
    }

    .num-input:focus {
        border-color: #3b82f6;
        /* Blue 500 */
        background: white;
        /* 흰색 유지 (치수 입력창과 동일) */
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    }

    /* Chrome, Safari, Edge 숫자 스피너 숨김 (num-input) */
    .num-input::-webkit-outer-spin-button,
    .num-input::-webkit-inner-spin-button {
        appearance: none;
        -webkit-appearance: none;
        margin: 0;
    }

    /* Firefox 숫자 스피너 숨김 (num-input) */
    .num-input[type="number"] {
        appearance: textfield;
        -moz-appearance: textfield;
    }


    /* ============================================
       모바일 공유 버튼 (Design Summary 하단)
       ============================================ */
    .mobile-share-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
        flex: 1;
        margin: 8px auto;
        padding: 8px 6px;
        background: linear-gradient(135deg, #FF8C00 0%, #FF6F00 100%);
        color: white;
        border: 1.5px solid #FF6F00;
        border-radius: 6px;
        font-size: 14px;
        font-weight: 600;
        line-height: 1.3;
        text-align: center;
        cursor: pointer;
        box-shadow: 0 1px 3px rgba(59, 130, 246, 0.3);
        transition: all 0.2s ease;
    }

    .mobile-share-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    }

    .mobile-share-btn:active {
        transform: translateY(0);
        box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3);
    }

    .mobile-share-btn svg {
        flex-shrink: 0 !important;
        width: 14px !important;
        height: 14px !important;
        max-width: 14px !important;
        max-height: 14px !important;
    }

    /* 복사 완료 토스트 알림 */
    .share-toast {
        position: fixed;
        bottom: 80px;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(0, 0, 0, 0.9);
        color: white;
        padding: 12px 24px;
        border-radius: 24px;
        font-size: 14px;
        font-weight: 500;
        z-index: 10000;
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    }

    .share-toast.show {
        opacity: 1;
    }


    /* 창닫기 버튼 */
    .menu-close-section {
        display: none;
        /* Hidden as requested */
        padding: 25px 35px;
    }

    .mobile-menu-close-btn {
        width: 100%;
        padding: 14px 18px;
        height: 48px;
        box-sizing: border-box;
        background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
        color: white;
        border: none;
        border-radius: 10px;
        font-size: 15px;
        font-weight: 600;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        transition: all 0.2s ease;
    }

    .mobile-menu-close-btn .btn-icon {
        font-size: 20px;
    }

    .mobile-menu-close-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

    .mobile-menu-close-btn:active {
        transform: translateY(0);
    }




    /* 초기 안내 오버레이 - 기본 숨김 */
    .initial-instruction-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 10000;
        display: none !important;
        /* 기본적으로 숨김 */
        flex-direction: column;
        align-items: center;
        justify-content: center;
        pointer-events: auto;
    }

    body.hamburger-menu-open .initial-instruction-overlay {
        display: none !important;
    }

    .initial-instruction-text {
        color: #be1e2d;
        font-size: 18px;
        font-weight: 500;
        font-style: italic;
        line-height: 2.5;
        text-align: center;
        transform: skewX(-10deg);
        padding: 0 20px;
        margin-top: 120px;
    }

    .initial-instruction-arrow {
        position: absolute;
        top: 85px;
        right: 60px;
        /* font-size/weight 제거 */
        color: #334155;
        animation: bounce 1s infinite;
        z-index: 10001;
        pointer-events: none;
    }

    @keyframes bounce {

        0%,
        100% {
            transform: translateY(0);
        }

        50% {
            transform: translateY(-10px);
        }
    }

    /* 연락처 정보 섹션 */
    .menu-contact-info {
        background: rgba(30, 41, 59, 0.5) !important;
        /* Dark Slate with 50% opacity */
        backdrop-filter: blur(10px);
        /* Blur effect */
        padding: 20px 16px;
        color: white;
        text-align: center;
        border-radius: 0 0 12px 12px;
        /* Round bottom corners */
        /* Removed border-top */
        margin-top: 10px;
    }

    .contact-title {
        font-size: 17px;
        font-weight: 600;
        line-height: 1.6;
        margin-bottom: 12px;
        color: #f8fafc;
        /* Slate 50 */
    }

    .contact-details {
        font-size: 16px;
        line-height: 1.8;
        margin-bottom: 16px;
        color: #e2e8f0;
        /* Slate 200 */
    }

    .contact-slogan {
        font-size: 18px;
        font-weight: 600;
        line-height: 1.6;
        font-style: italic;
        color: #fbbf24;
        /* Amber 400 for emphasis */
        margin-bottom: 0;
    }

    /* mobile-initial-mode - deprecated */

    /* Sticky Summary Bar */
    /* Sticky Summary Bar - 세로 높이 30px 증가 */
    .mobile-sticky-summary {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(255, 220, 50, 0.08);
        backdrop-filter: blur(10px);
        padding: 38px 16px;
        /* 기존 8px → 38px (30px 증가), 세로 총 60px 증가 */
        z-index: 100;
        display: none;
    }

    .mobile-sticky-summary.visible {
        display: block;
    }

    .summary-details-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 8px;
        font-size: 11px;
    }

    .summary-details-grid .item {
        text-align: center;
    }

    .summary-details-grid .label {
        font-size: 10px;
        color: #64748b;
        display: block;
    }

    .summary-details-grid .value {
        font-size: 12px;
        font-weight: 700;
        color: #1e293b;
    }

    /* Bottom Action Bar */
    .mobile-bottom-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #ffffff;
        border-top: 1px solid #e2e8f0;
        padding: 10px 8px;
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        z-index: 10000;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    }

    .mobile-price-display {
        font-size: 18px;
        font-weight: 800;
        color: #1e293b;
        flex: 1;
        min-width: 0;
        /* 축소 허용 */
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        position: relative;
        padding-top: 2px;
    }

    .mobile-vat-qty-row {
        display: flex;
        width: 100%;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 0px;
    }

    .mobile-vat-notice {
        font-size: 8px;
        font-weight: 500;
        color: #4b5563;
        /* 진한 회색 */
        letter-spacing: -0.3px;
    }

    .mobile-qty-notice {
        font-size: 8px;
        font-weight: 500;
        color: #4b5563;
        /* 진한 회색 */
        letter-spacing: -0.3px;
        text-align: right;
    }

    .mobile-price-row {
        display: flex;
        width: 100%;
        align-items: baseline;
    }

    .mobile-price-label {
        font-size: 13px;
        font-weight: 600;
        color: #64748b;
    }

    #mobile-total-price {
        margin-left: auto;
        /* 우측 정렬 */
    }

    .mobile-consult-buttons {
        display: flex;
        gap: 8px;
    }

    .mobile-consult-btn {
        /* flex: 1 제거 - 콘텐츠에 맞는 폭 적용 */
        height: 45px;
        padding: 10px 16px;
        border-radius: 8px;
        font-size: 13px;
        font-weight: 700;
        border: none;
        cursor: pointer;
        text-decoration: none;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-consult-btn.call {
        background: #00d14b;
        color: white;
        gap: 8px;
        /* 아이콘과 텍스트 간격 */
        padding: 4px 12px 4px 8px;
        /* 상 4px, 우 12px, 하 4px, 좌 8px */
    }

    .mobile-consult-btn.call svg {
        fill: white;
        width: 24px;
        height: 24px;
    }

    .btn-text-multiline {
        display: block;
        font-size: 12px;
        line-height: 1.2;
        text-align: left;
        font-weight: 700;
    }

    .mobile-consult-btn.kakao {
        background: #FEE500;
        color: #3C1E1E;
        gap: 8px;
        /* 아이콘과 텍스트 간격 */
        padding: 4px 12px 4px 8px;
        /* 상 4px, 우 12px, 하 4px, 좌 8px */
    }

    .mobile-consult-btn.kakao svg {
        fill: #3C1E1E;
        /* 카카오 브라운 색상 */
        width: 28px;
        height: 28px;
    }

    /* 하단 바 공간 확보 */
    .main-content {
        padding-bottom: 63px !important;
    }

    /* 컨트롤 섹션 숨김 - 모바일에서는 햄버거 메뉴로 대체 */
    .controls-section {
        display: none !important;
    }
}

/* Mobile phones (480px and below) */
@media screen and (max-width: 480px) {
    .main-header {
        padding: 10px 12px;
    }

    .header-titles h1 {
        font-size: 16px;
    }

    .title-sub {
        font-size: 10px;
    }

    .download-svg-btn span {
        display: none;
        /* Show icon only */
    }

    .option-btn,
    .dimension-btn {
        font-size: 13px;
        padding: 8px 12px;
    }

    .product-badge {
        width: 95%;
        font-size: 11px;
        padding: 8px 12px;
    }

    .panel-section {
        padding: 12px;
    }

    .total-price-display {
        font-size: 16px;
    }

    .price-amount {
        font-size: 24px;
    }

    .summary-table,
    .parts-table {
        font-size: 11px;
    }

    /* Make tables scrollable */
    .parts-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .parts-table {
        min-width: 500px;
        /* Ensure horizontal scroll */
    }

    /* 햄버거 메뉴 연락처 정보 스타일 */
    .menu-contact-info {
        text-align: center;
        padding: 20px 16px !important;
        background: #0f172a;
        /* Slate 900 */
        border-top: 1px solid #334155;
        /* Slate 700 */
        margin-top: 10px;
    }

    .menu-contact-info .contact-title {
        font-size: 14px;
        color: #94a3b8;
        /* Slate 400 */
        line-height: 1.6;
        margin-bottom: 12px;
    }

    .menu-contact-info .contact-details {
        font-size: 15px;
        color: #e2e8f0;
        /* Slate 200 */
        font-weight: 600;
        line-height: 1.8;
        margin-bottom: 16px;
    }

    .menu-contact-info .contact-slogan {
        font-size: 15px;
        color: #60a5fa;
        /* Blue 400 */
        font-weight: 700;
        font-style: italic;
        line-height: 1.7;
        padding: 12px;
        background: rgba(59, 130, 246, 0.1);
        /* Blue tint */
        border-radius: 8px;
        border-left: 3px solid #3b82f6;
        /* Blue 500 */
    }

    /* ============================================
       통합된 추가 모바일 스타일
       ============================================ */

    /* Utility Class for Red Highlight */
    .highlight-red {
        color: #ef4444;
        font-weight: 700;
    }

    /* Remove border lines around recommendation section */
    #recommendationControl,
    #recommendationControl *,
    .mobile-floating-notice,
    .recommendation-card,
    .recommendation-list {
        border: none !important;
        border-top: none !important;
        border-bottom: none !important;
    }

    #recommendationControl::after,
    .recommendation-card::after {
        display: none !important;
    }

    /* Ensure mobile menu close button is visible */
    .menu-close-section,
    #mobile-menu-close-btn,
    .mobile-menu-close-btn {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* Product carousel - all text white */
    .menu-section:first-child * {
        color: #ffffff !important;
    }

    /* Product name text 14px */
    .carousel-item-name {
        font-size: 14px !important;
    }

    /* Menu close button - rectangular shape (8% wider) */
    .menu-close,
    .menu-header button {
        border-radius: 4px !important;
        min-width: 43px !important;
        width: 43px !important;
        height: 40px !important;
        padding: 0 !important;
    }
}

/* ============================================
       臾몄쓽?섍린 紐⑤떖 ?ㅽ???
       ============================================ */

/* 臾몄쓽?섍린 踰꾪듉 ?꾩씠肄??됱긽 */
.menu-action-btn.contact-inquiry .btn-icon {
    color: #FFD700;
}

/* 臾몄쓽 紐⑤떖 ?ㅻ쾭?덉씠 */
.mobile-contact-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100000;
    /* ?꾨쾭嫄?硫붾돱(10001)蹂대떎 ??*/
}

.mobile-contact-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 1;
    animation: modalFadeIn 0.2s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.contact-modal-content {
    position: relative;
    z-index: 2;
    background: #ffffff;
    border-radius: 16px;
    max-width: 90%;
    width: 400px;
    padding: 24px 20px 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideUp 0.3s ease;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-contact-modal {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: #f1f5f9;
    border-radius: 50%;
    font-size: 20px;
    color: #475569;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.close-contact-modal:active {
    background: #e2e8f0;
    transform: scale(0.9);
}

.contact-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    text-align: center;
    margin: 0 0 20px 0;
}

.contact-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-option {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.contact-option:active {
    background: #e2e8f0;
    transform: scale(0.98);
}

.option-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-right: 14px;
    flex-shrink: 0;
}

.option-icon.kakao-icon {
    color: #FEE500;
}

.option-text {
    flex: 1;
}

.option-text h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 4px 0;
}

.option-text p {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

/* ?좎뒪???뚮┝ (?대찓??蹂듭궗 ?뺤씤) */
.mobile-contact-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(30, 41, 59, 0.95);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    z-index: 100001;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.mobile-contact-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* 문의하기 버튼 (카카오톡 스타일) */
.menu-action-btn.inquiry {
    background: #fee500;
    color: #191919;
    border: none;
    margin-top: 0px;
}

/* 운반구 미선택 시 진동 애니메이션 */
@keyframes shake-fast {

    0%,
    100% {
        transform: translateX(0);
    }

    10% {
        transform: translateX(-8px);
    }

    20% {
        transform: translateX(8px);
    }

    30% {
        transform: translateX(-8px);
    }

    40% {
        transform: translateX(8px);
    }

    50% {
        transform: translateX(-6px);
    }

    60% {
        transform: translateX(6px);
    }

    70% {
        transform: translateX(-4px);
    }

    80% {
        transform: translateX(4px);
    }

    90% {
        transform: translateX(-2px);
    }
}

.menu-section-title.shake-alert {
    animation: shake-fast 0.6s ease-in-out;
    color: #ef4444 !important;
    font-weight: 800 !important;
    font-size: 120% !important;
}

/* ========== 문의하기 모달 팝업 ========== */
.mobile-contact-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
}

.mobile-contact-modal-overlay.active {
    opacity: 1;
}

.mobile-contact-modal-content {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 360px;
    padding: 28px 20px 20px;
    position: relative;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.mobile-contact-modal-overlay.active .mobile-contact-modal-content {
    transform: translateY(0) scale(1);
}

.mobile-contact-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 32px;
    height: 32px;
    border: none;
    background: #f3f4f6;
    border-radius: 50%;
    font-size: 16px;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.mobile-contact-modal-close:hover {
    background: #e5e7eb;
}

.mobile-contact-modal-title {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 20px 0;
    text-align: center;
}

.mobile-contact-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-contact-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.mobile-contact-option:active {
    background: #eef2ff;
    border-color: #c7d2fe;
    transform: scale(0.98);
}

.mobile-contact-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.mobile-contact-text h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
}

.mobile-contact-text p {
    margin: 2px 0 0;
    font-size: 13px;
    color: #6b7280;
}

/* 카카오톡 옵션 하이라이트 */
.mobile-contact-kakao {
    border-color: #FEE500;
    background: #FFFEF0;
}

/* 토스트 알림 */
.mobile-contact-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #1f2937;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    z-index: 100001;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
}

.mobile-contact-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}