@charset "UTF-8";
@import url("/fonts/pretendard.css");

/**
 * 만성코프레이션 모바일 전용 웹앱 스타일시트 (/m/assets/m_app.css)
 * - 최신 모바일 웹앱 트렌드 (네이티브 앱 같은 하단 탭바, 스티키 필터, 풀스크린 모달)
 * - 100% 라이트 모드 / 가로 넘침(overflow-x) 완벽 방지
 */

:root {
  --m-green: #0B5D3B;
  --m-green-dark: #063E27;
  --m-green-soft: #ECFDF5;
  --m-orange: #F58220;
  --m-bg: #F4F6F9;
  --m-surface: #FFFFFF;
  --m-border: #E2E8F0;
  --m-text: #0F172A;
  --m-sub: #475569;
  --m-muted: #64748B;
  --m-header-h: 58px;
  --m-tabbar-h: 68px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  background-color: var(--m-bg);
  color: var(--m-text);
  line-height: 1.5;
  font-size: 15px;
  top: 0 !important;
}

/* 구글 번역 기본 툴바 숨김 */
.goog-te-banner-frame.skiptranslate,
.goog-te-gadget-icon,
#goog-gt-tt,
.goog-te-balloon-frame,
body>.skiptranslate {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font-family: inherit;
}

/* ==========================================================================
   1. 모바일 앱 상단 헤더
   ========================================================================== */
.m-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--m-header-h);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--m-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  z-index: 1000;
}

.m-brand {
  display: flex;
  align-items: center;
  gap: 9px;
}

.m-brand__logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 6px;
}

.m-brand__text {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  width: max-content;
}

.m-brand__kr {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--m-text);
  line-height: 1.15;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.m-brand__en {
  font-size: 0.52rem;
  font-weight: 700;
  color: var(--m-green);
  letter-spacing: 0.06em;
  margin-top: 2px;
  line-height: 1.1;
  white-space: nowrap;
}

.m-header__right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.m-lang {
  position: relative;
}

.m-lang__btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--m-border);
  background: #F8FAFC;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--m-text);
  cursor: pointer;
}

.m-lang__menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 156px;
  background: #fff;
  border: 1px solid var(--m-border);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
  padding: 6px;
  display: none;
  z-index: 1100;
}

.m-lang.is-open .m-lang__menu {
  display: block;
}

.m-lang__option {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 10px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.m-lang__option.is-active {
  background: var(--m-green-soft);
  color: var(--m-green);
}

.m-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--m-border);
  background: #F8FAFC;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

/* ==========================================================================
   2. 메인 스크롤 영역 & 공통 앱 카드
   ========================================================================== */
.m-main {
  padding-top: var(--m-header-h);
  padding-bottom: calc(var(--m-tabbar-h) + 24px);
  min-height: 100vh;
}

.m-sec {
  padding: 16px 14px;
}

.m-card {
  background: var(--m-surface);
  border: 1px solid var(--m-border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.m-sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.m-sec-title {
  font-size: 1.08rem;
  font-weight: 900;
  color: var(--m-text);
  letter-spacing: -0.02em;
}

.m-sec-more {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--m-green);
}

/* 히어로 앱 배너 */
.m-hero {
  background: linear-gradient(135deg, #063E27 0%, #0B5D3B 100%);
  color: #fff;
  padding: 20px 16px;
}

.m-hero__badge {
  display: inline-block;
  background: var(--m-orange);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 900;
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.m-hero__title {
  font-size: 1.42rem;
  font-weight: 900;
  line-height: 1.28;
}

.m-hero__desc {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 8px;
}

.m-hero__video {
  margin-top: 14px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0F172A;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.m-hero__video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.m-hero__play {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 62, 39, 0.82), rgba(0, 0, 0, 0.15));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  color: #fff;
  cursor: pointer;
}

.m-hero__play-circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--m-orange);
  border: 3px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  padding-left: 3px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

/* Bento 2x2 빠른 메뉴 */
.m-bento {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.m-bento__item {
  background: #fff;
  border: 1px solid var(--m-border);
  border-radius: 16px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

.m-bento__icon {
  font-size: 1.45rem;
}

.m-bento__title {
  font-size: 0.94rem;
  font-weight: 800;
  color: var(--m-text);
}

.m-bento__sub {
  font-size: 0.74rem;
  color: var(--m-muted);
}

/* 가로 스크롤 칩 바 */
.m-chip-scroll {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 2px 14px 4px;
  scrollbar-width: none;
}

.m-chip-scroll::-webkit-scrollbar {
  display: none;
}

.m-chip {
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--m-border);
  background: #fff;
  color: var(--m-sub);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.m-chip.is-active {
  background: var(--chip-color, var(--m-green));
  border-color: var(--chip-color, var(--m-green));
  color: #fff;
}

/* 모바일 스티키 검색 헤더 (제품소개 / 카탈로그) */
.m-sticky-tools {
  position: sticky;
  top: var(--m-header-h);
  z-index: 900;
  background: rgba(244, 246, 249, 0.96);
  backdrop-filter: blur(10px);
  padding: 10px 0 8px;
  border-bottom: 1px solid var(--m-border);
}

.m-search-box {
  margin: 0 14px 10px;
  position: relative;
}

.m-search-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1.5px solid var(--m-green);
  border-radius: 12px;
  padding: 4px 4px 4px 12px;
}

.m-search-bar input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  font-size: 0.88rem;
  background: transparent;
}

.m-search-bar .m-search-submit-btn {
  flex-shrink: 0;
  border: none;
  background: var(--m-green);
  color: #fff;
  padding: 8px 13px;
  border-radius: 9px;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
}

.m-search-tool-btn {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--m-border);
  background: #F8FAFC;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
}

.m-search-tool-btn:active {
  background: var(--m-green-soft);
  border-color: var(--m-green);
}

.m-photo-res-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--m-border);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.m-photo-res-item img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  background: #fff;
  border: 1px solid #EEF2F7;
  border-radius: 8px;
  flex-shrink: 0;
}

.m-search-select-wrap {
  margin-top: 6px;
  display: none;
}

.m-search-select-wrap.is-open {
  display: block;
}

.m-search-select {
  width: 100%;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid var(--m-green);
  background: #fff;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--m-text);
}

/* 모바일 전용 듀얼포토 제품 카드 (여백 크롭 + 고시인성) */
.m-prod-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 12px 14px;
}

.m-prod-card {
  background: #fff;
  border: 1px solid var(--m-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

.m-prod-card__photos {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2px;
  background: var(--m-border);
  height: 190px;
  position: relative;
}

.m-prod-card__photo {
  position: relative;
  overflow: hidden;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.m-prod-card__photo--prod {
  background: #FFFFFF;
  padding: 3px;
}

.m-prod-card__photo--prod img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  transform: none;
}

.m-prod-card__photo--inst {
  background: #F1F5F9;
}

.m-prod-card__photo--inst img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.m-prod-card__tag {
  position: absolute;
  bottom: 6px;
  left: 6px;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 800;
  color: #fff;
  background: rgba(11, 93, 59, 0.88);
}

.m-prod-card__tag--inst {
  background: rgba(30, 41, 59, 0.84);
}

.m-prod-card__body {
  padding: 14px;
}

.m-prod-card__meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--m-green);
  margin-bottom: 4px;
}

.m-prod-card__title {
  font-size: 1rem;
  font-weight: 900;
  color: var(--m-text);
  margin-bottom: 8px;
}

.m-prod-card__spec {
  background: #F8FAFC;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.78rem;
  color: var(--m-sub);
  margin-bottom: 10px;
}

.m-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: none;
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
}

.m-btn--primary {
  background: var(--m-green);
  color: #fff;
}

.m-btn--orange {
  background: var(--m-orange);
  color: #fff;
}

.m-btn--outline {
  background: #fff;
  color: var(--m-text);
  border: 1px solid var(--m-border);
}

/* ==========================================================================
   3. 모바일 하단 고정 앱 탭바 (5탭 네이티브 스타일)
   ========================================================================== */
.m-tabbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--m-tabbar-h);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--m-border);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  z-index: 1000;
  box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.06);
}

.m-tabbar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--m-sub);
  height: 100%;
  white-space: nowrap;
}

.m-tabbar__item .ico {
  font-size: 1.24rem;
  line-height: 1.1;
}

.m-tabbar__item.is-active {
  color: var(--m-green);
  font-weight: 900;
}

/* ==========================================================================
   4. 모바일 풀스크린 바텀시트 모달 (+30% 이상 시원한 시인성)
   ========================================================================== */
.m-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  display: none;
  align-items: flex-end;
  justify-content: center;
  z-index: 2000;
}

.m-modal-backdrop.is-open {
  display: flex;
}

.m-modal-sheet {
  background: #fff;
  width: 100%;
  max-height: 92vh;
  border-radius: 22px 22px 0 0;
  overflow-y: auto;
  padding: 20px 16px 28px;
}

.m-modal-thumbs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 6px 0;
}

.m-modal-thumb-btn {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border: 2px solid var(--m-border);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  padding: 0;
}

.m-modal-thumb-btn.is-active {
  border-color: var(--m-green);
}

.m-modal-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 모바일 푸터 카드 */
.m-footer {
  margin: 12px 14px 20px;
  background: #0B131E;
  color: #CBD5E1;
  border-radius: 18px;
  padding: 22px 18px;
  font-size: 0.78rem;
}

/* Google Translate 위젯 오프스크린 유지 (모바일 활성화 보장) */
.ms-gt-offscreen {
  position: fixed !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body {
  top: 0 !important;
}

.goog-te-banner-frame,
iframe.goog-te-banner-frame,
.VIpgJd-ZVi9od-ORHb-OEVmcd {
  display: none !important;
}

/* 모바일 1:1 문의 폼 스타일 */
.m-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 12px;
}

.m-label {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--m-text);
}

.m-label span {
  color: var(--m-orange);
}

.m-input,
.m-select,
.m-textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--m-border);
  border-radius: 10px;
  background: #fff;
  color: var(--m-text);
  font-size: 0.88rem;
  font-family: inherit;
}

.m-input:focus,
.m-select:focus,
.m-textarea:focus {
  outline: none;
  border-color: var(--m-green);
  box-shadow: 0 0 0 3px rgba(11, 93, 59, 0.12);
}