/* Korea1700 Main Renovation Styles */

/* Header & GNB Pulldown */
#hd {
    background: #fff;
    overflow: visible;
}

/* Ensure overflow is visible for pulldown */

#tnb {
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

#tnb .inner {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 40px;
    padding: 0 20px;
}

#tnb .hd_login,
#tnb #hd_qnb {
    position: relative;
    top: 0;
    display: flex;
    align-items: center;
    margin: 0;
    gap: 15px;
    height: 100%;
}

#tnb .hd_login li,
#tnb #hd_qnb li {
    display: flex;
    align-items: center;
    height: 100%;
    margin: 0;
    padding: 0;
}

#tnb .hd_login li a,
#tnb #hd_qnb li a {
    color: #666;
    font-size: 0.8125rem;
    display: block;
}

#tnb .hd_login li a.btn_login_top {
    color: var(--conran-blue);
    font-weight: 700;
}

#hd #hd_menu .inner {
    display: flex;
    width: 100%;
    max-width: var(--c2-max-w);
    position: relative;
    justify-content: space-between;
}

#hd_menu .gnb_1depth {
    display: flex;
    /* width: 100%; */
    height: 3rem;
}

/* #hd_menu .gnb_li {
            display: flex;
    height: 100%;
    align-items: center;
    justify-content: center;
}
 */
.gnb_a {
    display: flex;
    align-items: center;
    padding: 0 15px;
    height: 100%;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    transition: all 0.2s;
    white-space: nowrap;
}

/* .gnb_li:hover .gnb_a {
    color: var(--conran-blue);
    background: #f8f9fa;
} */

.gnb_2depth_wrap {
    display: none;
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: 1200px;
    /* 고정 너비로 변경 (100vw -> 1200px) */
    max-width: 100vw;
    background: #fff;
    border-top: 1px solid var(--conran-blue);
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 30px 0;
}

#hd_menu .gnb_li:hover .gnb_2depth_wrap {
    display: block;
    opacity: 1;
    visibility: visible;
}

.gnb_2depth {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.gnb_2li a {
    font-size: 0.9375rem;
    color: #555;
    font-weight: 500;
    transition: color 0.2s;
}

.gnb_2li a:hover {
    color: var(--conran-blue);
}

/* GNB Right Button Styles */
.gnb_li_right {
    margin-left: auto;
    /* 우측 끝으로 밀기 */
}

.btn_gnb_template {
    color: var(--conran-blue);
}

.btn_gnb_template i {
    margin-right: 6px;
    font-size: 1rem;
}

.btn_gnb_template:hover {
    background: var(--conran-blue);
    color: #fff;
}

/* Wide Card Slider Dots */
.main_slider_wrap {
    margin-top: 2rem;
    position: relative;
}

.main_slider_wrap .owl-dots {
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 100%;
    max-width: var(--container-width);
    display: flex;
    justify-content: flex-start;
    /* Align dots to the left of the container */
    padding: 0 45px;
    /* Offset to match logo/content start */
    z-index: 10;
}

.main_slider_wrap .owl-dot span {
    width: 12px;
    height: 12px;
    margin: 5px 7px;
    background: #ccc;
    display: block;
    border-radius: 50%;
    transition: background 0.3s;
}

.main_slider_wrap .owl-dot.active span {
    background: var(--conran-blue);
}

.main_slide_item {
    height: 340px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-color: #dfe8f1;
    justify-content: space-between;
    border-radius: 1rem;
}

.slide_inner {
    max-width: var(--container-width);
    margin: 0 auto;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    z-index: 2;
}

.slide_text_box {
    flex: 1;
}

.slide_text_box h2 {
    font-size: 3rem;
    font-weight: 900;
    color: #1a1a1a;
    line-height: 1.2;
    margin-bottom: 15px;
    letter-spacing: -0.15rem;
}

.slide_text_box p {
    font-size: 1.125rem;
    color: #4b5563;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Refined Slider Elements */
.tag_hot {
    display: inline-block;
    background: #e02e2e;
    color: #fff;
    padding: 2px 12px;
    border-radius: 4px;
    font-weight: 900;
    font-size: 0.875rem;
    margin-bottom: 15px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}

.slide_title {
    font-size: 3rem;
    font-weight: 900;
    color: #1a5cad;
    /* Legacy Blue */
    line-height: 1.2;
    margin-bottom: 20px;
}

.slide_price {
    font-size: 4rem;
    font-weight: 900;
    color: #e02e2e;
    line-height: 1;
    margin-bottom: 20px;
}

.slide_price span {
    font-size: 1.5rem;
    margin-left: 5px;
    color: #333;
}

.slide_desc p {
    margin: 5px 0;
}

.slide_desc .highlight_gray {
    color: #666;
    font-size: 0.9375rem;
}

.slide_benefit {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.slide_benefit .highlight {
    font-size: 1.25rem;
    font-weight: 800;
    color: #e02e2e;
}

.slide_benefit .note {
    font-size: 0.875rem;
    color: #e02e2e;
    font-weight: 500;
}

.btn_slide {
    display: inline-block;
    padding: 12px 35px;
    background: #1a1a1a;
    color: #fff;
    font-weight: 700;
    border-radius: 4px;
    transition: background 0.3s;
}

.btn_slide:hover {
    background: var(--conran-blue);
    color: #fff;
}

/* .slide_img_box {
    flex: 1;
    text-align: right;
} */

/* .slide_img_box img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.1);
} */
.owl-carousel .owl-item img {
    width: auto;
}

/* Banner Content Special Styles */
.tag_hot {
    display: inline-block;
    background: #e02e2e;
    color: #fff;
    padding: 4px 12px;
    font-size: 0.8125rem;
    font-weight: 800;
    border-radius: 4px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(224, 46, 46, 0.2);
}

.slide_title {
    font-size: 2.75rem;
    color: #1a5cad;
    /* Legacy Blue */
    margin-bottom: 20px;
}

.slide_desc {
    margin-bottom: 25px;
}

.slide_desc p {
    font-size: 1.125rem;
    color: #666;
    margin-bottom: 5px;
    line-height: 1.5;
}

.slide_price {
    font-size: 3.5rem;
    font-weight: 900;
    color: #e02e2e;
    /* Legacy Red */
    margin-bottom: 25px;
    letter-spacing: -0.15rem;
}

.slide_price span {
    font-size: 1.5rem;
    font-weight: 700;
    margin-left: 5px;
}

.slide_benefit {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.slide_benefit .highlight {
    font-size: 1.25rem;
    font-weight: 800;
    color: #e02e2e;
}

.slide_benefit .note {
    font-size: 0.875rem;
    color: #e02e2e;
    font-weight: 600;
}

.highlight_gray {
    color: #666;
    font-weight: 600;
}

/* Quick Service Section */
.quick_service_wrap {
    max-width: var(--container-width);
    margin: 50px auto 60px;
    padding: 0 20px;
}

.quick_service_wrap .section_title {
    margin-bottom: 25px;
}

.quick_service_wrap .section_title h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 10px;
}

.quick_service_wrap .section_title p {
    font-size: 1rem;
    color: #666;
    margin-top: 5px;
}

.quick_grid {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    /* 7 small + 1 large (span 2) = 9 columns */
    gap: 12px;
}

.q_item {
    background: #f1f5f9;
    /* Light gray background from mockup */
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    /* padding: 20px 10px; */
    transition: all 0.2s;
    text-decoration: none;
    min-height: 140px;
    border: 1px solid transparent;
}

.q_item:hover {
    background: #e2e8f0;
    transform: translateY(-3px);
}

.q_icon {
    font-size: 2.2rem;
    color: #475569;
    margin-bottom: 12px;
}

.q_text {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #334155;
    line-height: 1.3;
}

/* Bank Info Box */
.bank_info {
    grid-column: span 2;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    align-items: flex-start;
    text-align: left;
    padding: 20px;
}

.bank_title {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 8px;
    font-weight: 600;
}

.bank_account {
    font-size: 1.35rem;
    font-weight: 900;
    color: #1a1a1a;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
}

.bank_label {
    display: inline-block;
    padding: 4px 12px;
    background: #1a1a1a;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 4px;
}

/* GNB Submenu Fix */
.gnb_li:hover .gnb_2depth_wrap {
    display: block;
    opacity: 1;
    visibility: visible;
}


/* ==========================================================
   Responsive Refinement (Mobile & Tablet)
   ========================================================== */

@media (max-width: 1024px) {

    /* Header & GNB */
    .pc_only {
        display: none;
    }

    .mobile_only {
        display: block;
    }

    #tnb {
        display: none;
    }

    #hd_wrapper {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        padding: 15px 0;
        background: #fff;
        border-bottom: 1px solid #eaeaea;
        z-index: 100002;
    }

    body {
        padding-top: 60px;
    }

    #logo {
        display: inline-block;
        padding-left: 20px;
    }

    .hd_sch_wr {
        display: none;
    }

    /* Mobile Header Icons Override */
    .hd_right_icons {
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 100003;
    }

    /* Hamburger Animation */
    .btn_mobile_hamburger {
        width: 24px;
        height: 24px;
        justify-content: center;
    }

    .hamburger_inner {
        width: 24px;
        height: 18px;
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .hamburger_inner span {
        display: block;
        width: 100%;
        height: 2px;
        background-color: #1a1a1a;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        transform-origin: center;
    }

    .btn_mobile_hamburger.is_active .hamburger_inner span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .btn_mobile_hamburger.is_active .hamburger_inner span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

    .btn_mobile_hamburger.is_active .hamburger_inner span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Mobile Search Dropdown */
    #m_sch_wr {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        padding: 15px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        z-index: 100001;
        border-top: 1px solid #eee;
    }

    #m_sch_wr form {
        display: flex;
        gap: 10px;
    }

    .m_sch_input {
        flex: 1;
        height: 40px;
        padding: 0 15px;
        border: 2px solid var(--conran-blue);
        border-radius: 4px;
        font-size: 1rem;
    }

    .m_sch_submit {
        width: 40px;
        height: 40px;
        background: var(--conran-blue);
        color: #fff;
        border: none;
        border-radius: 4px;
        cursor: pointer;
    }

    /* Mobile Drawer */
    .mobile_drawer {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        max-width: 100%;
        height: 100vh;
        background: #fff;
        z-index: 99999;
        transition: left 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        overflow-y: auto;
        padding-top: 70px;
        /* Offset for fixed header */
        display: block;
    }

    .mobile_drawer.drawer_open {
        left: 0;
    }

    #mobile_drawer_bg {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(2px);
        z-index: 99998;
        display: none;
    }

    #mobile_drawer_bg.drawer_bg_show {
        display: block;
    }

    body.drawer_body_lock {
        overflow: hidden;
    }

    .drawer_header {
        display: none;
    }

    .drawer_body .cate {
        padding: 0;
        margin: 0;
        list-style: none;
    }

    .drawer_body .cate_li_1 {
        border-bottom: 1px solid #eaeaea;
        position: relative;
    }

    .drawer_body .cate_li_1_a {
        display: block;
        padding: 18px 20px;
        font-size: 1.125rem;
        font-weight: 700;
        color: #333;
        text-decoration: none;
    }

    .drawer_body .sub_cate {
        display: none;
        background: #fcfcfc;
        list-style: none;
        padding: 10px 0;
        margin: 0;
        border-top: 1px dashed #eee;
    }

    .drawer_body .cate_li_2 a {
        display: block;
        padding: 12px 30px;
        font-size: 1rem;
        color: #666;
        text-decoration: none;
    }

    .drawer_body .cate_li_2 a:hover {
        color: var(--conran-blue);
        background: #f0f4f8;
    }

    .drawer_body .toggle_arrow {
        position: absolute;
        top: 18px;
        right: 20px;
        width: 24px;
        height: 24px;
        background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23333333" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="9 18 15 12 9 6"></polyline></svg>') no-repeat center;
        background-size: contain;
        cursor: pointer;
        transition: transform 0.3s;
        z-index: 10;
        transform: rotate(0deg);
    }

    .drawer_body .toggle_arrow.arrow_open {
        transform: rotate(90deg);
    }

    .gnb_a {
        padding: 0 15px;
        font-size: 1rem;
    }

    /* Main Slider */
    .slide_text_box h2 {
        font-size: 2.25rem;
    }

    .slide_img_box {
        max-width: 50%;
    }

    /* 7-Grid Banner (4 cols, 2 rows + 1 full row for large) */
    .grid_7_wrap {
        grid-template-columns: repeat(4, 1fr);
    }

    .grid_item.large {
        grid-column: span 4;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        text-align: left;
    }

    .large .grid_icon {
        margin: 0 20px 0 0;
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {

    /* Header Utility */
    #tnb .inner {
        justify-content: center;
        padding: 0 10px;
    }

    #tnb .hd_login,
    #tnb #hd_qnb {
        gap: 10px;
    }

    #tnb .hd_login li a,
    #tnb #hd_qnb li a {
        font-size: 0.75rem;
    }

    /* GNB Pulldown (Deprecated on Mobile due to drawer menu) */
    #hd_menu {
        display: none;
    }

    .gnb_1depth {
        flex-wrap: wrap;
    }

    .gnb_li {
        height: 40px;
        width: 33.33%;
        text-align: center;
    }

    .gnb_a {
        justify-content: center;
        padding: 0 5px;
        height: 40px;
        font-size: 0.9rem;
    }

    .gnb_2depth_wrap {
        top: 40px;
        padding: 15px 0;
    }

    .gnb_2depth {
        gap: 10px 20px;
        padding: 0 10px;
    }

    /* Main Slider */
    .main_slider_wrap {
        margin-bottom: 30px;
    }

    .main_slide_item {
        height: auto;
        padding: 40px 0;
    }

    .slide_inner {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .slide_text_box h2 {
        font-size: 1.75rem;
        margin-bottom: 10px;
    }

    .slide_text_box p {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .slide_img_box {
        max-width: 80%;
        margin: 0 auto;
        text-align: center;
    }

    .main_slider_wrap .owl-dots {
        padding: 0;
        justify-content: center;
        bottom: 15px;
    }

    /* 7-Grid Banner */
    .grid_7_wrap {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-bottom: 40px;
    }

    .grid_item {
        min-height: 120px;
        padding: 15px 5px;
    }

    .grid_icon {
        font-size: 2rem;
        margin-bottom: 5px;
    }

    .grid_title {
        font-size: 1rem;
    }

    .grid_desc {
        font-size: 0.75rem;
    }

    .grid_item.large {
        grid-column: span 2;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
    }

    .large .grid_title {
        font-size: 1.5rem;
        margin-bottom: 5px;
    }

    .large .grid_desc {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }

    .grid_item.large div[style*="margin-top:30px"] {
        margin-top: 15px;
    }
}

/* ==========================================================
   Header Right Icons (PC & Mobile Common)
   ========================================================== */
.hd_right_icons {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: flex-end;
}

.hd_right_icons .hd_icon_link {
    font-size: 1.5rem;
    color: #1a1a1a;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    text-decoration: none;
    position: relative;
    transition: color 0.2s;
}

.hd_right_icons .hd_icon_link:hover {
    color: var(--conran-blue);
}

.cart_link .cart_badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--conran-blue);
    color: #fff;
    font-size: 0.75rem;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    border-radius: 9px;
    padding: 0 4px;
}

/* ==========================================================
   Header Utility Buttons (PC)
   ========================================================== */
#hd .hd_pc_btn {
    display: none;
    /* 기본적으로 숨김 */
    align-items: center;
    justify-content: center;
    height: 2.25rem;
    padding: 0 16px;
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s;
    margin-left: 8px;
}

@media (min-width: 1025px) {
    #hd .hd_right_icons .pc_only {
        display: inline-flex;
    }
}

#hd .hd_pc_btn.btn_join,
#hd .hd_pc_btn.btn_info,
#hd .hd_pc_btn.btn_order {
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
}

#hd .hd_pc_btn.btn_login,
#hd .hd_pc_btn.btn_logout {
    background: #1b2d4f;
    /* 시안의 진한 남색 */
    color: #fff;
    border: 1px solid #1b2d4f;
}

#hd .hd_pc_btn:hover {
    opacity: 0.9;
    text-decoration: none;
}

/* Cart Link Round Box (PC) */
@media (min-width: 1025px) {
    #hd .hd_right_icons .cart_link {
        display: flex;
        /* PC에서도 보임 */
        width: 2.25rem;
        height: 2.25rem;
        border: 1px solid #ddd;
        border-radius: 4px;
        justify-content: center;
        background: #fff;
        font-size: 1.25rem;
        margin-left: 8px;
    }
}

/* 모바일 아이콘 PC에서 숨기기 */
#hd .mobile_only {
    display: none;
}

/* 모바일 뷰 전용 설정 */
@media (max-width: 1024px) {
    #hd .pc_only {
        display: none;
    }

    #hd .mobile_only {
        display: flex;
    }

    /* 모바일에서는 장바구니 라운드 박스 해제 */
    #hd .hd_right_icons .cart_link {
        border: none;
        background: none;
        width: auto;
        height: auto;
    }
}

/* ==========================================================
   PC Layout Refinement (Buttons)
   ========================================================== */
@media (min-width: 1025px) {

    /* Clean up Top Utility Bar (Login, FAQ, Cart) */
    #tnb {
        background: #fff;
        border-bottom: 1px solid #f0f0f0;
    }

    #tnb .hd_login li a,
    #tnb #hd_qnb li a {
        background: transparent;
        padding: 5px 12px;
        font-size: 0.8125rem;
        font-weight: 500;
        color: #555;
        border-radius: 4px;
        transition: all 0.2s;
    }

    #tnb .hd_login li a:hover,
    #tnb #hd_qnb li a:hover {
        color: var(--conran-blue);
        background: #f8f9fa;
        text-decoration: none;
    }

    #tnb .hd_login li a.btn_login_top {
        color: var(--conran-blue);
        font-weight: 700;
    }

    /* PC Header Layout */
    #hd_wrapper {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    #logo,
    .hd_sch_wr {
        float: none;
        padding: 0;
        margin: 0;
    }

    /* Sleek Search Bar */
    .hd_sch_wr {
        flex: 1;
        max-width: 400px;
        margin: 0 40px;
    }

    html body #hd_sch {
        border: 2px solid #eaeaea;
        border-radius: 30px;
        background: #fff;
        overflow: hidden;
        display: flex;
        transition: border-color 0.3s;
    }

    html body #hd_sch:focus-within {
        border-color: var(--conran-blue);
    }

    html body #hd_sch #sch_str {
        background: transparent;
        color: #333;
        border: none;
        height: 44px;
        padding: 0 20px;
        font-size: 0.9375rem;
        flex: 1;
        outline: none;
    }

    html body #hd_sch #sch_submit {
        background: transparent;
        color: #1a1a1a;
        border: none;
        width: 50px;
        height: 44px;
        font-size: 1.25rem;
        cursor: pointer;
        transition: color 0.2s;
    }

    html body #hd_sch #sch_submit:hover {
        color: var(--conran-blue);
    }
}