/* META HINT Home — Grafen-style layout
   Pretendard 14px base · full-width hero · wide inner 1680px */

   :root {
    --mh-gf-ink: #111;
    --mh-gf-muted: #666;
    --mh-gf-faint: #999;
    --mh-gf-line: #e5e5e5;
    --mh-gf-brand: #2d2b70;
    --mh-gf-accent: #e85a1a;
    --mh-gf-inner: 1680px;
    --mh-gf-pad: clamp(16px, 3vw, 48px);
}

/* 메인: 컨테이너 제한 해제 */
#container.mh-container--home,
#container.mh-container--home > .mh-shop-content--home {
    max-width: none !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.mh-home-gf,
.mh-home-gf * {
    font-family: Pretendard, 'Pretendard Variable', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
}

.mh-home-gf {
    width: 100%;
    font-size: 14px;
    color: var(--mh-gf-ink);
    line-height: 1.6;
    letter-spacing: -0.02em;
}

.mh-home-gf .mh-inner-wide {
    width: 100%;
    max-width: var(--mh-gf-inner);
    margin: 0 auto;
    padding: 0 var(--mh-gf-pad);
}

/* ========== 풀폭 메인 비주얼 (2560×850 = 그라펜 동일 비율) ========== */
.mh-home-gf .mh-main-visual {
    position: relative;
    width: 100%;
    background: #f4f4f4;
    overflow: hidden;
}

.mh-home-gf .mh-main-visual-slider {
    position: relative;
}

.mh-home-gf .mh-main-visual-slider .owl-stage-outer,
.mh-home-gf .mh-main-visual-slider .owl-item,
.mh-home-gf .mh-visual-slide {
    height: 100%;
}

.mh-home-gf .mh-visual-link {
    display: block;
    position: relative;
    width: 100%;
    height: clamp(360px, 43.75vw, 840px);
    overflow: hidden;
    color: #fff;
}

.mh-home-gf .mh-visual-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transform: scale(1);
}

.mh-home-gf .owl-item.active .mh-visual-bg {
    animation: mh-hero-zoom 5.5s ease-out forwards;
}

@keyframes mh-hero-zoom {
    from { transform: scale(1); }
    to   { transform: scale(1.04); }
}

/* 홍보 슬라이드 — 중앙~우측 50% 박스, 박스 내 좌측 정렬 (그라펜 레이아웃) */
.mh-home-gf .mh-visual-slide--promo .mh-visual-copy-box {
    position: absolute;
    left: 50%;
    top: 0;
    width: 50%;
    height: 100%;
    z-index: 2;
    display: flex;
    align-items: center;
    padding: 0 clamp(24px, 4vw, 72px) 0 clamp(32px, 5vw, 80px);
    pointer-events: none;
}

.mh-home-gf .mh-visual-slide--promo .mh-visual-copy {
    width: 100%;
    max-width: 560px;
    text-align: left;
}

.mh-home-gf .mh-visual-tone--light .mh-visual-copy {
    color: #fff;
}

.mh-home-gf .mh-visual-tone--dark .mh-visual-copy {
    color: #111;
}

.mh-home-gf .mh-visual-tag {
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.1em;
    margin-bottom: 18px;
    opacity: 0.9;
}

.mh-home-gf .mh-visual-copy h2 {
    font-size: clamp(28px, 2.4vw, 42px);
    font-weight: 600;
    line-height: 1.28;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
    word-break: keep-all;
}

.mh-home-gf .mh-visual-copy p {
    font-size: clamp(16px, 1.35vw, 20px);
    font-weight: 400;
    line-height: 1.65;
    opacity: 0.9;
    margin-bottom: 28px;
    word-break: keep-all;
}

.mh-home-gf .mh-visual-cta {
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    padding-bottom: 4px;
    pointer-events: auto;
    letter-spacing: 0.02em;
}

.mh-home-gf .mh-visual-tone--light .mh-visual-cta {
    border-bottom: 1px solid rgba(255,255,255,0.75);
}

.mh-home-gf .mh-visual-tone--dark .mh-visual-cta {
    border-bottom: 1px solid rgba(17,17,17,0.55);
}

/* 슬라이드 전환 시 텍스트 순차 등장 */
@keyframes mh-hero-fade-up {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mh-home-gf .mh-visual-slide--promo .mh-visual-copy > * {
    opacity: 0;
    transform: translateY(28px);
}

.mh-home-gf .owl-item.active .mh-visual-slide--promo .mh-visual-copy > * {
    animation: mh-hero-fade-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.mh-home-gf .owl-item.active .mh-visual-slide--promo .mh-visual-copy > *:nth-child(1) { animation-delay: 0.1s; }
.mh-home-gf .owl-item.active .mh-visual-slide--promo .mh-visual-copy > *:nth-child(2) { animation-delay: 0.25s; }
.mh-home-gf .owl-item.active .mh-visual-slide--promo .mh-visual-copy > *:nth-child(3) { animation-delay: 0.4s; }
.mh-home-gf .owl-item.active .mh-visual-slide--promo .mh-visual-copy > *:nth-child(4) { animation-delay: 0.55s; }

/* 슬라이더 도트 — 그라펜 바형 */
.mh-home-gf .mh-main-visual-slider .owl-dots {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 20px;
    z-index: 5;
}

.mh-home-gf .mh-main-visual-slider .owl-dot span {
    width: 32px;
    height: 3px;
    margin: 0 3px;
    border-radius: 0;
    background: rgba(255,255,255,0.35);
    transition: all 0.25s;
}

.mh-home-gf .mh-main-visual-slider .owl-dot.active span {
    width: 48px;
    background: var(--mh-gf-accent);
}

/* ========== 카테고리 원형 ========== */
.mh-home-gf .mh-cate-circle {
    width: 100%;
    padding: 36px 0 28px;
    border-bottom: 1px solid var(--mh-gf-line);
}

.mh-home-gf .mh-cate-circle-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 28px 36px;
}

.mh-home-gf .mh-cate-circle-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 88px;
    text-align: center;
}

.mh-home-gf .mh-cate-circle-thumb {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    background: #f5f5f5;
    border: 1px solid var(--mh-gf-line);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, border-color 0.2s;
}

.mh-home-gf .mh-cate-circle-item:hover .mh-cate-circle-thumb {
    transform: translateY(-3px);
    border-color: #ccc;
}

.mh-home-gf .mh-cate-circle-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mh-home-gf .mh-cate-circle-thumb--all,
.mh-home-gf .mh-cate-circle-thumb--brand {
    font-size: 15px;
    font-weight: 600;
    color: var(--mh-gf-brand);
}

.mh-home-gf .mh-cate-circle-placeholder {
    font-size: 22px;
    font-weight: 600;
    color: var(--mh-gf-muted);
}

.mh-home-gf .mh-cate-circle-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--mh-gf-ink);
}

/* ========== 섹션 공통 (풀폭) ========== */
.mh-home-gf .mh-section-full {
    width: 100%;
    padding: clamp(48px, 6vw, 80px) 0;
}

.mh-home-gf .mh-section-best {
    background: #fff;
}

.mh-home-gf .mh-section-best .mh-sec-title {
    margin-bottom: clamp(36px, 4vw, 56px);
}

.mh-home-gf .mh-section-review {
    background: #fafafa;
}

.mh-home-gf .mh-section-category:nth-child(even) {
    background: #fff;
}

.mh-home-gf .mh-section-category:nth-child(odd) {
    background: #fafafa;
}

.mh-home-gf .mh-sec-title {
    font-size: clamp(28px, 2.6vw, 49px);
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
}

.mh-home-gf .mh-sec-badge {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--mh-gf-accent);
    margin-bottom: 6px;
}

.mh-home-gf .mh-sec-desc {
    text-align: center;
    font-size: 14px;
    color: var(--mh-gf-muted);
    margin-bottom: 32px;
}

.mh-home-gf .mh-sec-desc strong {
    color: var(--mh-gf-ink);
    font-weight: 600;
}

.mh-home-gf .mh-sec-more {
    text-align: center;
    margin-top: 40px;
}

.mh-home-gf .mh-btn-line {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    height: 44px;
    padding: 0 24px;
    border: 1px solid var(--mh-gf-ink);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}

.mh-home-gf .mh-btn-line:hover {
    background: var(--mh-gf-ink);
    color: #fff;
}

/* ========== 상품 카드 ========== */
.mh-home-gf .mh-product-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.mh-home-gf .mh-product-card-wrap {
    height: auto;
}

.mh-home-gf .mh-product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    /* border: 1px solid var(--mh-gf-line); */
    border-radius: 10px;
    overflow: hidden;
    padding: 18px 18px 20px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.mh-home-gf .mh-product-card:hover {
    opacity: 1;
    transform: none;
    border-color: #d8d8d8;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.mh-home-gf .mh-product-img {
    position: relative;
    aspect-ratio: 1;
    background: #fff;
    overflow: hidden;
    margin-bottom: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.mh-home-gf .mh-product-img-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.mh-home-gf .mh-product-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.35s ease;
}

.mh-home-gf .mh-product-card:hover .mh-product-img img {
    transform: scale(1.03);
}

.mh-home-gf .mh-product-info {
    padding: 0 2px 4px;
}

.mh-home-gf .mh-product-cat {
    font-size: 14px;
    color: var(--mh-gf-faint);
    margin-bottom: 8px;
}

.mh-home-gf .mh-product-info h3 {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mh-home-gf .mh-product-info h3 a {
    color: inherit;
    text-decoration: none;
}

.mh-home-gf .mh-product-info h3 a:hover {
    color: var(--mh-gf-ink);
}

/* 호버 시 장바구니 빠른 담기 */
.mh-home-gf .sct_btn.mh-product-card__cart {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    padding: 0;
    background: rgba(17, 17, 17, 0.82);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    z-index: 4;
}

.mh-home-gf .sct_li:hover .sct_btn.mh-product-card__cart,
.mh-home-gf .sct_li.overlay .sct_btn.mh-product-card__cart {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mh-home-gf .sct_btn.mh-product-card__cart .btn_cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 16px;
    border: none;
    background: transparent;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.mh-home-gf .sct_btn.mh-product-card__cart .btn_cart:hover {
    background: rgba(255, 255, 255, 0.08);
}

.mh-home-gf .cart-layer {
    position: absolute;
    inset: 0;
    z-index: 6;
    display: none;
    background: rgba(255, 255, 255, 0.96);
    padding: 16px;
    overflow-y: auto;
}

.mh-home-gf .cart-layer.sct_cartop {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.mh-home-gf .cart-layer form {
    width: 100%;
    font-size: 14px;
}

.mh-home-gf .cart-layer select {
    width: 100%;
    height: 40px;
    margin-bottom: 10px;
    font-size: 14px;
}

.mh-home-gf .cart-layer .cartopt_cart_btn,
.mh-home-gf .cart-layer .btn_submit {
    width: 100%;
    height: 44px;
    margin-top: 8px;
    background: var(--mh-gf-ink);
    color: #fff;
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.mh-home-gf .cart-layer .cartopt_close_btn {
    margin-top: 8px;
    width: 100%;
    height: 40px;
    background: #fff;
    border: 1px solid var(--mh-gf-line);
    font-size: 14px;
    cursor: pointer;
}

.mh-home-gf .mh-product-price {
    font-size: 16px;
    font-weight: 600;
}

/* ========== BEST ITEM (그라펜 스타일) ========== */
.mh-home-gf .mh-best-item {
    width: 100%;
}

.mh-home-gf .mh-best-link {
    display: block;
    color: inherit;
}

.mh-home-gf .mh-best-thumb {
    position: relative;
    aspect-ratio: 1;
    background: #f5f5f5;
    overflow: hidden;
    margin-bottom: 14px;
}

.mh-home-gf .mh-best-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.mh-home-gf .mh-best-link:hover .mh-best-thumb img {
    transform: scale(1.03);
}

.mh-home-gf .mh-best-discount {
    position: absolute;
    top: 10px;
    right: 10px;
    min-width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--mh-gf-accent);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.mh-home-gf .mh-best-discount em {
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
}

.mh-home-gf .mh-best-summary {
    font-size: 14px;
    color: #aaa;
    line-height: 1.4;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mh-home-gf .mh-best-name {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mh-home-gf .mh-best-price {
    font-size: 14px;
    line-height: 1.4;
}

.mh-home-gf .mh-best-price del {
    display: block;
    color: #bbb;
    font-size: 14px;
    margin-bottom: 2px;
}

.mh-home-gf .mh-best-price strong {
    font-size: 19px;
    font-weight: 600;
    color: #000;
}

.mh-home-gf .mh-best-row .owl-nav button {
    position: absolute;
    top: 32%;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff !important;
    border: 1px solid var(--mh-gf-line) !important;
    font-size: 22px;
    line-height: 1;
    color: var(--mh-gf-ink) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.mh-home-gf .mh-best-row .owl-nav .owl-prev { left: -12px; }
.mh-home-gf .mh-best-row .owl-nav .owl-next { right: -12px; }

/* ========== 중간 배너 ========== */
.mh-home-gf .mh-mid-banner {
    width: 100%;
    background: linear-gradient(90deg, #2d2b70 0%, #4a4794 50%, #2d2b70 100%);
}

.mh-home-gf .mh-mid-banner-link {
    display: block;
    max-width: var(--mh-gf-inner);
    margin: 0 auto;
    padding: clamp(36px, 5vw, 56px) var(--mh-gf-pad);
    color: #fff;
}

.mh-home-gf .mh-mid-banner-tag {
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
    opacity: 0.85;
}

.mh-home-gf .mh-mid-banner-copy strong {
    display: block;
    font-size: clamp(22px, 2.5vw, 32px);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.mh-home-gf .mh-mid-banner-copy p {
    font-size: 15px;
    opacity: 0.9;
    margin-bottom: 14px;
}

.mh-home-gf .mh-mid-banner-cta {
    font-size: 14px;
    font-weight: 600;
    border-bottom: 1px solid rgba(255,255,255,0.6);
    padding-bottom: 2px;
}

/* ========== 리뷰 ========== */
.mh-home-gf .mh-review-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.mh-home-gf .mh-review-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--mh-gf-line);
    border-radius: 8px;
    transition: border-color 0.2s;
    min-height: 180px;
}

.mh-home-gf .mh-review-card:hover {
    border-color: #ccc;
}

.mh-home-gf .mh-review-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.mh-home-gf .mh-star {
    color: #ddd;
    font-size: 14px;
}

.mh-home-gf .mh-star.is-on {
    color: var(--mh-gf-accent);
}

.mh-home-gf .mh-review-date {
    font-size: 14px;
    color: var(--mh-gf-faint);
}

.mh-home-gf .mh-review-product {
    font-size: 14px;
    font-weight: 500;
    color: var(--mh-gf-brand);
}

.mh-home-gf .mh-review-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--mh-gf-ink);
    flex: 1;
}

.mh-home-gf .mh-review-writer {
    font-size: 14px;
    color: var(--mh-gf-faint);
}

.mh-home-gf .mh-empty {
    text-align: center;
    padding: 48px 20px;
    color: var(--mh-gf-muted);
    font-size: 15px;
    border: 1px dashed var(--mh-gf-line);
}

/* 브랜드 */
.mh-home-gf .mh-section-brand {
    background: #111;
    color: #fff;
}

.mh-home-gf .mh-brand-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.mh-home-gf .mh-brand-banner p {
    font-size: clamp(18px, 2vw, 26px);
    font-weight: 600;
}

.mh-home-gf .mh-section-brand .mh-btn-line {
    border-color: #fff;
    color: #fff;
}

.mh-home-gf .mh-section-brand .mh-btn-line:hover {
    background: #fff;
    color: #111;
}

/* ========== Responsive ========== */
@media (max-width: 1400px) {
    .mh-home-gf .mh-product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .mh-home-gf .mh-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .mh-home-gf .mh-cate-circle-list {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 8px;
        scrollbar-width: none;
    }

    .mh-home-gf .mh-cate-circle-list::-webkit-scrollbar {
        display: none;
    }

    .mh-home-gf .mh-cate-circle-item {
        flex: 0 0 auto;
    }
}

@media (max-width: 768px) {
    .mh-home-gf .mh-visual-link {
        height: clamp(320px, 70vw, 520px);
    }

    .mh-home-gf .mh-visual-slide--promo .mh-visual-copy-box {
        left: 0;
        width: 100%;
        height: auto;
        top: auto;
        bottom: 0;
        align-items: flex-end;
        padding: 0;
        background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 100%);
    }

    .mh-home-gf .mh-visual-slide--promo .mh-visual-copy {
        max-width: none;
        padding: 20px 20px 52px;
        color: #fff !important;
    }

    .mh-home-gf .mh-visual-slide--promo .mh-visual-cta {
        border-bottom-color: rgba(255,255,255,0.75) !important;
    }

    .mh-home-gf .mh-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .mh-home-gf .mh-brand-banner {
        flex-direction: column;
        align-items: flex-start;
    }

    .mh-home-gf .mh-review-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .mh-home-gf .mh-review-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
