/* ==========================================================
   HERO SECTION
========================================================== */
.main.is-sub { padding-top:0 !important; }
.main.is-home { padding-top:80px !important; }

.mh-hero {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.mh-hero-bg {
    position: absolute;
    inset: 0;
    background: url(/uploads/images/home_sign.jpg) center center no-repeat;
    background-size: cover;     /* 화면을 꽉 채우도록 확대/축소 */
}

.mh-hero-inner {
	position: relative;
    z-index: 5;
    width: 100%;
    max-width: 600px;
    padding: 0;
    margin: 0 auto;
}

.mh-hero-inner h1 {
    font-size: 46px;
    margin-bottom: 40px;
    font-weight: 700;
}

/* ==========================================================
   SEARCH BAR AREA
========================================================== */

/* 아래쪽 여백 주기 */
.mh-search-wrapper {
    margin-top: 20px;
    display: flex;
    justify-content: center;
	position: relative;
}

.mh-search-form {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 780px;         /* 검색창 전체 넓이 확장 */
}

.mh-search-select,
.mh-search-input {
    height: 54px;             /* ★ 검색창 높이 증가 */
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 0 14px;
    background: #fff;
    font-size: 16px;          /* ★ placeholder 포함 텍스트 크게 */
}

.mh-search-select {
    width: 180px;             /* 카테고리 셀렉트 크기 */
}

.mh-search-input {
    flex: 1;
    min-width: 280px;
}

.mh-search-input::placeholder {
    color: #666;
    font-size: 16px;
    opacity: .9;
}

.mh-search-btn {
    background: #f1692f;
    border: none;
    color: #fff;
    padding: 0 26px;
    height: 54px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: .25s;
}

.mh-search-btn:hover {
    background: #d9571e;
}



/* ==========================================================
   CATEGORY SWIPER
========================================================== */
.mh-cat-swiper-section {
    position: relative;
    padding: 24px 0;
    background: #f8f8f8;
    border-bottom: 1px solid #e5e5e5;
}

.mh-cat-swiper {
    width: 100%;
    padding: 10px 0;
}

.mh-cat-swiper .swiper-slide {
    width: 150px !important;
    display: flex;
    justify-content: center;
}

/* -------------------------------
   Category Item (기본: 완전 미니멀)
-------------------------------- */
.mh-cat-item {
    width: 150px;
    min-height: 150px;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 14px 10px;

    background: transparent;     /* ★ 기본 배경 없음 */
    border: none;                /* ★ 기본 border 없음 */
    box-shadow: none;            /* ★ 기본 shadow 없음 */

    border-radius: 14px;
    transition: all .25s ease;

    text-decoration: none;
    color: #333;
}

/* -------------------------------
   Hover 시 강조 효과
-------------------------------- */
.mh-cat-item:hover {
    background: #f5f7ff;         /* ★ hover 배경 */
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(0,0,0,0.12);   /* ★ hover shadow */
}

/* -------------------------------
   Icon (더 크게)
-------------------------------- */
.mh-cat-icon img {
    width: 56px;                 /* ★ 아이콘 확대 */
    height: 56px;
    object-fit: contain;
    background: transparent;     /* 배경 없음 */
}

/* -------------------------------
   Text (2줄까지 + ellipsis)
-------------------------------- */
.mh-cat-text b {
    font-size: 14px;
    font-weight: 400;            /* 기본 얇게 */
    text-align: center;

    display: -webkit-box;
    -webkit-line-clamp: 2;       /* 최대 2줄 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;

    max-width: 130px;
    line-height: 1.3;
}

.mh-cat-item:hover .mh-cat-text b {
    font-weight: 600;            /* hover 시 굵게 */
}

/* Navigation */
.mh-cat-prev,
.mh-cat-next {
    width: 34px;
    height: 34px;
    background: rgba(0,0,0,0.45);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    cursor: pointer;
}

.mh-cat-prev { left: 10px; }
.mh-cat-next { right: 10px; }

@media (max-width:768px){
	.main.is-home { padding-top:60px !important; }
    .mh-cat-prev, .mh-cat-next { display:none; }
}

/* ==========================================================
   FEATURED EQUIPMENT
========================================================== */
.mh-featured {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 16px;
}

.mh-featured h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.mh-featured-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* CARD */
.mh-card {
    background:#fff;
    border:1px solid #eee;
    border-radius:12px;
    text-decoration:none;
    color:#333;
    transition:.25s;
}

.mh-card:hover {
    transform:translateY(-4px);
    box-shadow:0 14px 30px rgba(0,0,0,0.12);
}

.mh-card-img-wrap {
    position:relative;
    width:100%;
    aspect-ratio:16/9 !important;
    overflow:hidden;
}

.mh-card-img-wrap img {
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:cover;
}

.mh-card-corner {
    position:absolute;
    right:0;
    width:0;
    height:0;
    border-top:38px solid #f1692f;
    border-left:38px solid transparent;
	z-index:999;
}
.mh-card-badge {
    position: absolute;
    color: #fff;
    font-weight: normal;
    left: 0;
	bottom:0;
    width: 100%;
    height: auto;
	text-align:center;
    background: rgba(244,129,2,0.85);
    z-index: 999;
    padding: 3px;
    display: inline-table;
    font-size: 12px;
}

.mh-card-body {
    padding:12px;
}

.mh-card-body h3 {
    margin:0 0 5px;
    font-size:14px;
}

.mh-card-body p {
    margin:0;
    color:#666;
	font-size:12px;
}
/* FEATURED SECTION HEADER */
.mh-featured-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.mh-featured-header h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
}

.mh-viewall-btn {
    font-size: 15px;
    color: #033047;
    text-decoration: none;
    padding: 6px 14px;
    border: 1px solid #033047;
    border-radius: 6px;
    transition: .25s ease;
}

.mh-viewall-btn:hover {
    background: #033047;
    color: #fff;
}

/* ===============================================
   FIX: ICON CENTER ALIGN IN SWIPER SLIDE
=============================================== */
.mh-cat-swiper .swiper-slide {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}
/* ===============================================
   FIX: IMAGE GAP & UNEVEN HEIGHT
=============================================== */
.mh-card-img-wrap {
    position: relative !important;
    width: 100% !important;
    aspect-ratio: 16/9 !important;
    overflow: hidden !important;
}

.mh-card-img-wrap img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
}
.hero-slide img,
.mh-card-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}
/* ===============================================
   CATEGORY WRAPPER CENTER (데스크탑)
=============================================== */
@media (min-width: 992px) {
    .mh-cat-swiper .swiper-wrapper {
        display: flex;          /* Swiper 기본값이지만 안전하게 한 번 더 */
        justify-content: center;/* 슬라이드 그룹 전체를 가운데 정렬 */
    }
}
/* ============================================================
   SHORTCUT SECTION
============================================================== */
.mh-shortcut-section {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 16px;
}

.mh-shortcut-section h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 28px;
}

/* GRID */
.mh-shortcut-grid {
    display: grid;
    gap: 32px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* CARD */
.mh-shortcut-card {
    background: #fff;
    border: 1px solid #e7e7e7;
    padding: 32px 28px;
    border-radius: 18px;
    text-decoration: none;
    color: #111;
    box-shadow: 0 4px 10px rgba(0,0,0,0.04);
    transition: all .25s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Hover 효과 */
.mh-shortcut-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 35px rgba(0,0,0,0.12);
}

/* ICON WRAP (동그란 배경) */
.icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #f4f7ff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    border: 1px solid #dfe6ff;
}

.icon {
    font-size: 28px;
}

/* TEXTS */
.mh-shortcut-card h3 {
    font-size: 18px;
    margin: 6px 0 10px;
    font-weight: 600;
}

.mh-shortcut-card p {
    font-size: 14px;
    color: #555;
    line-height: 1.45;
}



/* ============================================================
   NOTICE SECTION
============================================================== */
.mh-notice-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 16px;
}

.mh-notice-section h2 {
    font-size: 28px;
    margin-bottom: 18px;
}

.mh-notice-list {
	display:block;
}

.mh-notice-item {
	display: flex;
    flex-direction: column;
    gap: 10px;
	padding: 16px 20px;
	border: 1px solid #eee;
	border-radius: 10px;
	background: #fafafa;
	text-decoration: none;
	color: #333;
	transition: .2s;
	-webkit-box-orient: vertical;
}
.mh-notice-item span{
	font-size:12px;
}
.mh-notice-item:hover {
    background: #fff;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}



/* ============================================================
   PARTNER SECTION
============================================================== */
.mh-partner-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 16px;
}

.mh-partner-section h2 {
    font-size: 28px;
    margin-bottom: 18px;
}

.mh-partner-row {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
}

.mh-partner-item img {
    height: 42px;
    width: auto;
    filter: grayscale(0.1);
    transition: .25s;
}

.mh-partner-item:hover img {
    filter: grayscale(0) brightness(1.1);
}
/* =======================================
   자동완성기능스타일
======================================= */

/* 자동완성 컨테이너 */
.autocomplete-box {
    position: absolute;
    top: 100%;              /* input 바로 아래 */
    left: 50%;
    width:530px;
	margin-left:-300px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow-y: auto;
    max-height: 180px;
    z-index: 9999;
    display: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* 자동완성 항목 */
.autocomplete-item {
    padding: 5px 12px;
    cursor: pointer;
    font-size: 13px;
	text-align:left;
    color: #999;
    border-bottom: 1px solid #f2f2f2;
}

.autocomplete-item:hover {
    background: #f5f5f5;
}
/* ==========================================================
   MOBILE OPTIMIZATION (≤ 768px)
========================================================== */
@media (max-width: 768px) {
	
    /* =======================================
       CATEGORY SWIPER
    ======================================= */
    .mh-cat-swiper .swiper-slide {
        width: 110px !important;     /* 모바일에서 적절한 아이콘 크기 */
    }

    .mh-cat-item {
        width: 100%;
        min-height: 120px;
        padding: 10px;
        gap: 6px;
    }

    .mh-cat-icon img {
        width: 40px;
        height: 40px;
    }

    .mh-cat-text b {
        font-size: 13px;
        max-width: 90px;
    }

    /* =======================================
       FEATURED EQUIPMENT
    ======================================= */
    .mh-featured {
        margin: 40px auto;
        padding: 0 14px;
    }
	.mh-featured-header h2,
	.mh-notice-section h2,
    .mh-partner-section h2 {
        font-size: 1.25rem;
    }

    .mh-viewall-btn {
        padding: 4px 10px;
        font-size: 13px;
    }

    .mh-featured-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 16px;
    }

    .mh-card-body h3 {
        font-size: 15px;
    }

    .mh-card-body p {
        font-size: 13px;
    }

    /* =======================================
       SHORTCUT SECTION
    ======================================= */
    .mh-shortcut-section {
        margin: 60px auto;
        padding: 0 14px;
    }

    .mh-shortcut-section h2 {
        font-size: 22px;
    }

    .mh-shortcut-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .mh-shortcut-card {
        padding: 24px 20px;
        border-radius: 14px;
    }

    .icon-wrap {
        width: 48px;
        height: 48px;
    }
    .icon {
        font-size: 22px;
    }

    /* =======================================
       NOTICE SECTION
    ======================================= */
    .mh-notice-section {
        margin: 50px auto;
        padding: 0 14px;
    }

    .mh-notice-item {
        padding: 14px 16px;
    }

    /* =======================================
       PARTNER SECTION
    ======================================= */
    .mh-partner-section {
        margin: 50px auto;
        padding: 0 14px;
    }

    .mh-partner-row {
        gap: 18px;
        justify-content: center;
    }

    .mh-partner-item img {
        height: 34px;
    }
	/* =======================================
	   자동완성기능스타일
	======================================= */

	/* 자동완성 컨테이너 */
	.autocomplete-box {
		position: absolute;
		top: 100%;              /* input 바로 아래 */
		left: 0;
		width:75%;
		margin-left:0;
		background: #fff;
		border: 1px solid #ddd;
		border-radius: 6px;
		overflow-y: scroll;
		max-height: 120px;
		z-index: 9999;
		display: none;
		box-shadow: 0 4px 12px rgba(0,0,0,0.15);
	}
	.autocomplete-box {
		overflow-y: scroll;
		-webkit-overflow-scrolling: auto !important;  /* 모멘텀 스크롤 비활성: 스크롤바 유지 */
	}

	/* 웹킷 스크롤바 강제 스타일 */
	.autocomplete-box::-webkit-scrollbar {
		width: 8px;                /* 스크롤바 폭 */
		display: block;            /* 강제 표시 */
	}

	.autocomplete-box::-webkit-scrollbar-track {
		background: #f1f1f1;
		border-radius: 6px;
	}

	.autocomplete-box::-webkit-scrollbar-thumb {
		background: #c1c1c1;
		border-radius: 6px;
	}

}
/* ==========================================================
   SEARCH BAR AREA
========================================================== */
@media (max-width: 768px) {
    .main.is-sub {
        margin-top: 60px;
        padding:0px;
        min-height: auto;
    }
}


:root{
  --search-bg: #ffffff;
  --search-border: #f1692f;
}
.mh-search-input{
  background: var(--search-bg);
}
/* 검색 UI는 무조건 상단 기준 */
.search-wrap{
  position:absolute;
  top: 0px; /* 헤더 바로 아래 */
  left: 50%;
  transform: translateX(-50%);
  width:100%;
  max-width:800px;
  z-index:100;           /* 🔥 swiper 위 */
  display:flex;
  flex-direction:column;
  align-items:center;
  pointer-events:auto;
}

/* 슬라이드되는 패널만 이동 */
.search-panel{
  width:100%;
  transform: translateY(calc(-100% - 5px));
  transition: transform .45s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}

.search-wrap.is-open .search-panel{
  transform: translateY(0);
}

:focus-visible {
    outline: -webkit-focus-ring-color auto 0px;
}

.mh-hero-inner h1 {
    font-size: 40px;
    font-weight: 700;
    text-align:center;
    margin: 5px 0 10px;
}

  .mh-hero-meta{
    font-size: 24px;
    line-height: 1.4;
    opacity: .9;
    margin-top: 2px;
  }
/* 아래쪽 여백 주기 */
.mh-search-wrapper {
    display: flex;
    justify-content: center;
	position: relative;
}

.mh-search-form {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 800px;         /* 검색창 전체 넓이 확장 */
}

.mh-search-select,
.mh-search-input {
    height: 54px;             /* ★ 검색창 높이 증가 */
    border-radius: 0px;
	border:none;
    border: 2px solid #f1692f;
	border-right:none;
    padding: 0 14px;
    background: #fff;
    font-size: 16px;          /* ★ placeholder 포함 텍스트 크게 */
}

.mh-search-select {
    width: 180px;             /* 카테고리 셀렉트 크기 */
}

.mh-search-input {
    flex: 1;
    min-width: 280px;
}

.mh-search-input::placeholder {
    color: #666;
    font-size: 16px;
    opacity: .9;
}

.mh-search-btn {
    background: #f1692f;
    border: none;
    color: #fff;
    padding: 0 26px;
    height: 54px;
    border-radius: 0px;
    font-size: 16px;
    cursor: pointer;
    transition: .25s;
}

.mh-search-btn:hover {
    background: #d9571e;
}

/* =========================
   HERO + SWIPER
========================= */
.mh-hero{
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  height: 520px;
  overflow: hidden;
}

.mh-hero-swiper,
.mh-hero-swiper .swiper-wrapper,
.mh-hero-swiper .swiper-slide{
  width: 100%;
  height: 100%;
}

.mh-hero-slide{
  position: relative;
  background-size: cover;
  background-position: center;
}

.mh-hero-slide::after{
  content:'';
  position:absolute;
  inset:0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.1),
    rgba(0,0,0,0.1)
  );
}

/* 슬라이드 안 텍스트 */
.mh-hero-slide .mh-hero-inner{
  position: relative;
  z-index: 2;
  height: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color:#fff;
}
/* ON SALE 배지 */
span.mh-hero-badge{
  font-size: 28px;
  margin-bottom: 10px;
  text-transform: uppercase; /* ✅ 대문자 */
  letter-spacing: .08em;   /* 대문자 가독성 ↑ */
  font-weight: 800;
  display:inline-flex;
  width: fit-content; 
  background:rgba(255,0,0,0.7);
  padding:10px;
  border-radius:10px;
  margin:0 auto;
}

/* CTA 버튼 */
.mh-hero-cta{
	margin:0 auto;
	padding: 12px 26px;
	font-size: 14px;
	border-radius: 4px;
	background:#f1692f;
	color:#fff;
	text-decoration:none;
}
/* 모바일 */
@media (max-width:768px){
  .mh-hero{
    height: 360px;
  }
}
/* =====================================
   HERO MOBILE CONTENT PATCH
===================================== */
@media (max-width: 768px) {
	:root {
		--swiper-navigation-size: 20px;
	}

  /* 타이틀 (2줄 제한) */
  .mh-hero-inner h1{
    font-size: 22px;
    line-height: 1.25;
    margin-bottom: 8px;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  span.mh-hero-badge{
	font-size: 16px;
  }

  /* 메타 정보 */
  .mh-hero-meta{
    font-size: 13px;
    line-height: 1.4;
    opacity: .9;
    margin-top: 2px;
  }

  /* 좌우 네비 버튼 크기/위치 */
.mh-hero .swiper-button-prev,
.mh-hero .swiper-button-next{
  width: 34px;
  height: 34px;
  margin-top: -17px;
  color: #fff;

  /* 🔥 진한 그림자 */
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.85))
          drop-shadow(0 0 2px rgba(0,0,0,.9));
}


  .mh-hero .swiper-button-prev{ left: 6px; }
  .mh-hero .swiper-button-next{ right: 6px; }

  /* pagination 위치 */
  .mh-hero .swiper-pagination{
    bottom: 8px;
  }
}
/* =====================================
   SLIDER BULLET
===================================== */
.swiper-pagination-bullet{
	background:#fff;
	height:15px;
	width:15px;
}
/* 말풍선 기본 */
.hero-float-bubble{
  position: absolute;   /* 🔥 fixed → absolute */
  top: 0;
  left: 0;

  max-width: 360px;
  padding: 14px 16px;

  background: rgba(241,105,47,.88);
  color: #fff;
  font-size: 13px;
  line-height: 1.55;

  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(241,105,47,.45);

  pointer-events: none;
  opacity: 0;
  transition: opacity .2s ease;

  z-index: 50;
}

/* 활성화 */
.hero-float-bubble.is-visible{
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* 모바일 비활성 */
@media (max-width:768px){
  .hero-float-bubble{
    display:none !important;
  }
}

