@charset "UTF-8";

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    /*font-family: "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;*/
    font-family: 'Pretendard', 'Apple SD Gothic Neo', sans-serif;
    background: #f5f5f5;
    color: #222;
}

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

img {
    display: block;
    max-width: 100%;
}

#wrap {
    width: 100%;
    overflow-x: hidden;
}

.mobile-only {
    display: none;
}

.desktop-only {
    display: block;
}

/* top banner */
.top-banner {
    text-align: center;
    font-size: 14px;
    padding: 8px 12px;
    background: #f3f3f3;
    color: #111;
}

/* header */
.shop-header {
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 18px 24px;
}

.desktop-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gnb-left {
    display: flex;
    align-items: center;
    gap: 30px;
    flex: 1;
}

.menu-link {
    font-size: 16px;
    font-weight: 700;
    color: #222;
    text-align: center;
    line-height: 1.2;
}

.menu-link span {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: #333;
    margin-top: 2px;
}

.menu-link.active {
    color: #9f7b3b;
}

.logo-box {
    flex: 0 0 auto;
    text-align: center;
}

.logo-img {
    width: 80px;
    margin: 0 auto;
}
.pc-mypage {
    width: 43px;
}
.pc-cart {
    width: 43px;
}
.pc-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 4px;
}
.pc-mypage-txt{
    font-size: 10px;
    font-weight: 400;
    color: #111;
    text-align: center;
}
.pc-cart-txt{
    font-size: 10px;
    font-weight: 400;
    color: #111;
    text-align: center;
}

.header-icons {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 18px;
    flex: 1;
}

.icon-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    line-height: 1;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 20px;
    background: #5d738a;
    color: #fff;
    font-size: 11px;
    line-height: 18px;
    text-align: center;
}

/* mobile header */
.mobile-header {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 2px 14px;
}

.mobile-left,
.mobile-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 4px;
}


.mobile-logo {
    width: 64px;
}
.mobile-mypage {
    width: 35px;
    display: flex;
    align-items: center;
}
.mobile-cart {
    width: 35px;
    display: flex;
    align-items: center;
}
.mobile-icon {
    display: block;
    text-align: center;
}
.mobile-mypage-txt{
    font-size: 8px;
    font-weight: 400;
    color: #111;
    text-align: center;
}
.mobile-cart-txt{
    font-size: 8px;
    font-weight: 400;
    color: #111;
    text-align: center;
}


.mobile-menu-btn {
    border: none;
    background: none;
    font-size: 26px;
    cursor: pointer;
}

/* main visual */
.main-visual {
    background: #fff;
}

.main-visual-inner {
    position: relative;
    width: 100%;
}

.main-visual-img {
    width: 100%;
    height: auto;
    margin: 0 0 0;
}

.visual-overlay {
    position: absolute;
    z-index: 2;
}

.desktop-overlay {
    top: 12%;
    left: 27%;
    transform: translateX(-10%);
    text-align: center;
}

.desktop-overlay h2 {
    margin: 0 0 2px;
    font-size: 40px;
    font-weight: 800;
    color: #111;
}

.desktop-overlay p {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 800;
    color: #333;
}

.shop-now-btn {
    display: inline-block;
    min-width: 80px;
    padding: 4px 12px;
    border: 1px solid #777;
    border-radius: 20px;
    background: #f0f0f0;
    color: #222;
    font-size: 12px;
    font-weight: 700;
}



.mobile-overlay h2 {
    margin: 0 0 18px;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 600;
    color: #111;
}

.main-title {
    margin: 0;
    display: flex;
    flex-direction: column;
}

/* 윗줄 (얇고 작게) */
.title-sub {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    text-align:center;
}

/* 아랫줄 (크고 강조) */
.title-main {
    font-size: 16px;
    font-weight: 600;
    color: #111;
    text-align:center;
}



/* products */
.product-section {
    padding: 40px 0 20px;
    background: #f5f5f5;
}

.section-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 120px;
}

.desktop-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 80px;
}

.product-card {
    background: transparent;
}

.product-thumb-wrap {
    position: relative;
    border-radius: 26px;
    overflow: hidden;
    background: #fff;
    aspect-ratio: 1 / 1;
    border: 6px solid #e7d8c9;
}

.product-card:nth-child(1) .product-thumb-wrap { border-color: #d3e7f3; }
.product-card:nth-child(2) .product-thumb-wrap { border-color: #d8ead7; }
.product-card:nth-child(3) .product-thumb-wrap { border-color: #ebdeaa; }
.product-card:nth-child(4) .product-thumb-wrap { border-color: #e8d1d1; }

.product-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 3;
    display: inline-block;
    padding: 7px 14px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    background: #d9eaf6;
    color: #203040;
}

.badge.best {
    background: #ecd998;
    color: #4d3a00;
}

.badge.new {
    background: #d3e8f6;
    color: #203040;
}

.product-info {
    text-align: center;
    padding: 16px 8px 0;
}

.product-name {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
}

.product-price {
    font-size: 14px;
    font-weight: 500;
}

/* mobile products */
.product-list-mobile {
    display: none;
}

.product-card-mobile {
    background: #f7f7f7;
    border: 1px solid #d8d8d8;
    border-radius: 18px;
    padding: 12px;
    margin-bottom: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.product-card-mobile-inner {
    display: flex;
    gap: 14px;
}

.mobile-thumb-wrap {
    position: relative;
    width: 130px;
    min-width: 130px;
    height: 130px;
    overflow: hidden;
    border-radius: 12px;
    border: 4px solid #cfe4f2;
    background: #fff;
}

.mobile-product-info {
    flex: 1;
    padding-top: 6px;
}

.text-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 10px;
    background: #d3e8f6;
}

.text-badge.best {
    background: #ecd998;
}

.text-badge.new {
    background: #d3e8f6;
}

.mobile-product-name {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 8px;
}

.mobile-product-price {
    text-align: left;
}

.quick-view-area {
    margin-top: 12px;
}

.quick-view-btn {
    display: block;
    width: 100%;
    border: 1px solid #777;
    border-radius: 6px;
    background: #fff;
    text-align: center;
    font-size: 16px;
    padding: 10px 12px;
}

/* footer */
.shop-footer {
    background: #f5f5f5;
    border-top: 1px solid #ddd;
    padding: 18px 0 24px;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
    font-size: 15px;
    color: #333;
}

.footer-inner span,
.footer-inner a {
    margin: 0 6px;
}

/* responsive */
@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: block !important;
    }

    .desktop-header {
        display: none;
    }

    .mobile-header {
        display: flex;
    }

    .product-section {
        padding: 18px 0 10px;
    }

    .section-inner {
        padding: 0 12px;
    }

    .desktop-grid {
        display: none;
    }

    .product-list-mobile {
        display: block;
    }

    .shop-footer {
        padding-bottom: 26px;
    }
    .shop-site-footer{
        text-align: right;
    }

    .footer-inner {
        font-size: 12px;
        line-height: 1.8;
    }



    @media (max-width: 768px) {
        .main-visual-inner.mobile-only {
            position: relative;
        }

        .main-visual-inner.mobile-only .visual-overlay.mobile-overlay {
            position: absolute;
            top: 4%;
            left: 5%;
            right: 5%;
            z-index: 2;
            padding: 0;
            background: none;
            text-align: center;
        }

        .main-visual-inner.mobile-only .main-visual-img {
            width: 100%;
            display: block;
        }


        .mobile-overlay h2 {
            margin: 0 0 2px;
            font-size: 26px;
            line-height: 1.25;
            font-weight: 700;
            color: #111;
            word-break: keep-all;
        }


    }

/*아래 지우면 1열에 하나의 이미지가 나옴 START */
    @media (max-width: 768px) {

        .product-list-mobile {
            display: grid !important;
            grid-template-columns: repeat(2, 1fr);
            gap: 12px;
        }

        .product-card-mobile {
            margin-bottom: 0;
            padding: 8px;
            border-radius: 14px;
        }

        /* 기존 flex 구조 제거 */
        .product-card-mobile-inner {
            display: block;
        }

        /* 이미지 크게 */
        .mobile-thumb-wrap {
            width: 100%;
            height: auto;
            aspect-ratio: 1 / 1;
            min-width: auto;
            margin-bottom: 8px;
        }

        /* 텍스트 정리 */
        .mobile-product-info {
            padding: 0;
        }

        .mobile-product-name {
            font-size: 12px;
            margin-bottom: 4px;
            line-height: 1.3;
        }


        /* Quick View 버튼 제거 (2열에서는 비추천) */
        .quick-view-area {
            display: none;
        }
    }
/*아래 지우면 1열에 하나의 이미지가 나옴 END*/   
    .price-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 6px;
    }

    .mobile-product-price {
        font-size: 10px;
        font-weight: 600;
        color: #111;
        text-align: left; /* 🔥 왼쪽 정렬 */
    }

    .quick-view-inline {
        font-size: 9px;
        font-weight: 500;
        color: #666;
        text-decoration: underline;
    }

    .hero-shop-btn {
        display: block;          /* 🔥 중요 */
        margin: 0 auto 0;     /* 🔥 핵심 */
        width: fit-content;      /* 🔥 버튼 크기만큼 */
    }
    .hero-shop-btn img {
        width: 60px;
        height: auto;
        
    }

    
}
.shop-logo { font-size: 22px; font-weight: 700; }
.shop-nav { display: flex; gap: 20px; font-size: 14px; }
.card-box {
    background: #fff;
    border: 1px solid #dfdfdf;
    border-radius: 10px;
    padding: 18px;
}
.primary-button, .line-button, .payment-tab, .thumb-button {
    cursor: pointer;
    border: 0;
    border-radius: 8px;
}
.primary-button {
    width: 100%;
    padding: 16px;
    font-size: 17px;
    font-weight: 700;
    background: #1536b8;
    color: #fff;
}
.line-button {
    background: #fff;
    border: 1px solid #222;
    padding: 0 14px;
    height: 44px;
}
.shop-input, .shop-select {
    width: 100%;
    height: 34px;
    border: 1px solid #d7d7d7;
    border-radius: 8px;
    padding: 0 14px;
    background: #fff;
}
.form-grid {
    display: grid;
    gap: 16px;
}
.two-column-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.full-width { grid-column: 1 / -1; }
.checkbox-row { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.address-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.image-fallback {
    display: flex; align-items: center; justify-content: center;
    width: 100%; min-height: 240px; background: #f0f0f0; color: #888;
}
.image-fallback.small { min-height: 96px; }
.empty-message { margin: 0; color: #666; }
.guide-section-content { white-space: pre-wrap; line-height: 1.7; color: #333; }
.guide-list { margin: 0; padding-left: 18px; line-height: 1.8; }
@media (max-width: 768px) {
    .shop-header-inner, .shop-nav { flex-direction: column; align-items: flex-start; }
    .two-column-grid { grid-template-columns: 1fr; }
    .card-box { padding: 18px; }
}

.guest-password-col {
    min-width: 0;
}

.guest-password-label-inline {
    margin-bottom: 12px;
    font-size: 22px;
    font-weight: 500;
    color: #222;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .password-inline-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .guest-password-label-inline {
        font-size: 18px;
        margin-bottom: 8px;
    }
}
