html {
    font-size: 14px;
    position: relative;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

body {
    margin-bottom: 60px;
    min-height: 100vh;
}

html, body {
    height: 100%;
}

/* --------------------------------------- _layout --------------------------------------- */
:root {
    --ship-primary: #0f172a;
    --ship-orange: #e27624;
    --ship-border: #e2e8f0;
    --ship-text-muted: #64748b;
    --ship-bg-soft: #f8fafc;
}

body {
    font-family: "Public Sans", sans-serif;
    background: #f5f5f5;
    color: #0f172a;
}

.hidden {
    display: none !important;
}

.tablet-only{
    display: none;
}

.rotate-180 {
    transform: rotate(180deg);
}

.ship-header {
    background: #fff;
    border-bottom: 1px solid var(--ship-border);
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
}

.ship-brand {
    color: var(--ship-primary);
    font-weight: 800;
    letter-spacing: -0.01em;
    text-decoration: none;
    white-space: nowrap;
}

    .ship-brand:hover {
        color: black;
    }


.ship-muted {
    color: var(--ship-text-muted);
}

    .ship-muted:hover {
        color: var(--ship-primary);
        box-shadow: none;
    }

.ship-icon-btn {
    border: none;
    background-color: white;
    color: var(--ship-primary);
    border-radius: 0.5rem;
    font-size: x-large;
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .ship-icon-btn:hover {
        background: #f1f5f9;
        color: var(--ship-primary);
    }

.ship-search {
    border: 1px solid var(--ship-border);
    border-radius: 0.5rem;
    background: var(--ship-bg-soft);
    min-height: 44px;
    padding-right: 2.8rem;
}

    .ship-search:focus {
        box-shadow: 0 0 0 0.2rem rgba(0, 31, 63, 0.15);
        border-color: var(--ship-primary);
        background: #fff;
    }

.ship-cart-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #dc2626;
    color: #fff;
    border-radius: 999px;
    font-size: 10px;
    line-height: 1;
    font-weight: 700;
    padding: 2px 6px;
    border: 2px solid #fff;
}

.ship-lang-wrap {
    border: 1px solid var(--ship-border);
    border-radius: 0.45rem;
    overflow: hidden;
    display: inline-flex;
}

.userLangWrapper {
    border: 1px solid var(--ship-border);
    border-radius: 0.45rem;
    overflow: hidden;
    display: inline-flex;
}

.ship-lang-btn {
    border: 0;
    padding: 0.35rem 0.55rem;
    font-size: 12px;
    font-weight: 600;
    background: #f8fafc;
    color: #64748b;
}

    .ship-lang-btn.active {
        background: var(--ship-primary);
        color: #fff;
        font-weight: 700;
    }

.ship-user-btn {
    border: 0;
    background: transparent;
    border-radius: 0.5rem;
    padding: 0.3rem 0.45rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

    .ship-user-btn:hover {
        background: none;
    }

.ship-user-lang-btn {
    border: 0;
    background: transparent;
    border-radius: 0.5rem;
    padding: 0.3rem 0.45rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

    .ship-user-lang-btn:hover {
        background: none;
    }

.ship-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: #e2e8f0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ship-user-dropdown {
    width: 12rem;
    border: 1px solid var(--ship-border);
    border-radius: 0.5rem;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.1);
    z-index: 120;
}

    .ship-user-dropdown .dropdown-item {
        font-size: 0.9rem;
    }


.ship-user-lang-dropdown {
    width: 12rem;
    border: 1px solid var(--ship-border);
    border-radius: 0.5rem;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.1);
    z-index: 120;
}

    .ship-user-lang-dropdown .dropdown-item {
        font-size: 0.9rem;
    }

.dropdown-item:hover {
    background: var(--ship-primary);
    border-radius: 0.5rem;
    color: white;
}

.ship-mobile-panel {
    border-top: 1px solid var(--ship-border);
    background: #fff;
}

.ship-mobile-card {
    border: 1px solid var(--ship-border);
    border-radius: 0.6rem;
    padding: 0.7rem 0.9rem;
    color: #334155;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

    .ship-mobile-card:hover {
        background: #f8fafc;
    }

.ship-mobile-danger {
    border-color: #fecaca;
    background: #fef2f2;
    color: #dc2626;
}

.ship-category-panel {
    background: var(--ship-primary);
    position: relative;
    overflow: visible;
}

.ship-category-inline-toggle {
    border: none;
    background-color: white;
    width: 2rem;
    height: 2rem; 
    color: var(--ship-primary);
    font-size: xx-large;
    padding: 0.15rem 0.2rem;
    line-height: 1;
    border-radius: 0.4rem;
}

    .ship-category-inline-toggle:hover {
        color: #ffffff;
        background: rgba(15, 23, 42, 0.08);
    }

    .ship-category-inline-toggle[aria-expanded="true"] .mobile-category-toggle-icon {
        transform: rotate(180deg);
        color: var(--ship-primary);
    }

.ship-category-list a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.8rem;
    display: block;
    margin-bottom: 0.25rem;
}

    .ship-category-list a:hover {
        color: #fff;
    }

.ship-footer {
    background: #fff;
    border-top: 1px solid var(--ship-border);
}

.ship-footer-title {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.9rem;
}

.ship-footer a {
    color: #475569;
    text-decoration: none;
}

    .ship-footer a:hover {
        color: var(--ship-primary);
    }


.link {
    color: #486581;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
}

    .link:hover {
        color: var(--ship-primary);
    }
/* layout category panel */
.category-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
    width: 100%;
    position: relative;
}

.category-item {
    position: static;
/*    border-bottom: 1px solid rgba(255, 255, 255, 0.08);*/
}

.category-link {
    background: transparent;
    color: #e2e8f0;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    border: 0;
    border-radius: 0.4rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.55rem;
    transition: color 0.2s ease, background-color 0.2s ease;
}

    .category-link:hover,
    .category-item.is-open .category-link {
        color: #fff;
        background: rgba(255, 255, 255, 0.08);
    }

.category-link-icon {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.category-item.is-open .category-link-icon {
    transform: rotate(180deg);
}

.category-flyout {
    display: none;
    position: absolute;
    left: 0;
    right: auto;
    top: calc(100% + 0.55rem);
    max-width: calc(50vw - 2rem);
    background: #ffffff;
    border: 1px solid #dbe5f0;
    border-radius: 0.75rem;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.16);
    overflow: hidden;
    z-index: 60;
}

    .category-flyout.is-visible {
        display: block;
    }

.category-flyout-head {
    padding: 0.7rem 1rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.category-flyout-title {
    color: #0f172a;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.category-flyout-content {
    padding: 0.55rem 0.65rem;
}

.sub-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(10, minmax(0, auto));
    grid-auto-columns: minmax(150px, 1fr);
    gap: 0.2rem 0.5rem;
    align-items: start;
}

    .sub-list .bigCode-list {
        list-style: none;
        color: #1e293b;
        font-size: 0.9rem;
        line-height: 1.35;
        padding: 0.4rem 0.55rem;
        border-radius: 0.45rem;
        cursor: pointer;
    }

        .sub-list .bigCode-list:hover {
            background: #eef2ff;
        }

    .sub-list .state-item {
        color: #64748b;
        cursor: default;
        grid-column: 1 / -1;
    }



/* ÈÞ´ëÆù */
@media (max-width: 1449.98px) {
    .ship-category-panel {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        z-index: 110;
        box-shadow: 0 14px 24px rgba(15, 23, 42, 0.18);
        display: none;
    }

        .ship-category-panel .container-xl {
            max-height: min(68vh, calc(100vh - 78px));
            overflow-y: auto;
        }

        .ship-category-panel.mobile-category-open {
            display: block;
        }

    .ship-category-inline-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .category-wrapper {
        display: block;
    }

    .category-flyout {
        display: none !important;
    }

    .category-link {
        width: 100%;
        justify-content: space-between;
        padding: 0.75rem 0.15rem;
    }

    .sub-category {
        display: none;
        padding: 0.1rem 0 0.55rem 0.75rem;
    }

    .category-item.is-open .sub-category {
        display: block;
    }

    .sub-list .bigCode-list {
        color: #cbd5e1;
        padding: 0.42rem 0.1rem;
    }

    .sub-list {
        display: block;
    }

    .category-item.is-open .sub-list {
        max-height: 17rem; /* roughly 7 items on mobile */
        overflow-y: auto;
        padding-right: 0.2rem;
    }

    .sub-list .bigCode-list:hover {
        background: transparent;
        color: #ffffff;
    }

    .sub-list .state-item {
        color: #94a3b8;
    }

    .ship-logo{
        display: none !important;
    }

    .pagination .page-link {
        padding: 0.35rem 0.6rem;
        font-size: 0.85rem;
    }

    .footer-ship-logo {
        width: 25px;
        height: auto;
    }
}


/* Å×ºí¸´ CSS Ãß°¡ */
.pc-1450 {
    display: none !important;
}

.under-1450 {
    display: inherit;
}

.ship-tablet-iconbar {
    border-top: 1px solid #e2e8f0;
    background: #fff;
}

.ship-tablet-iconbtn {
    width: 40px;
    height: 40px;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    color: #475569;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

    .ship-tablet-iconbtn:hover {
        background: #f8fafc;
        color: #0f172a;
    }

.ship-tablet-search {
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    min-height: 42px;
    padding-right: 2.5rem;
    background: #fff;
}

@media (min-width: 768px) and (max-width: 1449.98px) {
    .tablet-only {
        display: block;
    }

    .ship-brand .fs-3 {
        font-size: 1.15rem !important;
    }
}

/* Force mobile menu panel visibility to be controlled only by `hidden` class */
#mobile-menu-panel {
    display: none;
}

#mobile-menu-panel:not(.hidden) {
    display: block !important;
}

@media (min-width: 1450px) {
    .pc-1450 {
        display: block !important;
    }

        .pc-1450.d-flex {
            display: flex !important;
        }

    .under-1450 {
        display: none !important;
    }

}

.ship-logo {
    display: inline-block;
}


/* css Ãß°¡ */
.ship-search-wrap {
    max-width: 800px;
    width: 100%;
}

@media (max-width: 1450px) {

    .ship-search-wrap {
        max-width: 100%;
    }

    .ship-search-box {
        font-size: 14px;
    }

    #globalSearchBtn {
        right: 8px;
    }
}


/* Ãß°¡ ·¹ÀÌ¾Æ¿ô css */
.box_footer {
    position: relative;
    margin: 0 auto;
}

.box_footer_util {
    padding-left: 0;
}

.list_footer {
    display: flex;
    list-style: none;
    padding: 10px 0;
    margin: 0;
}

.list_item-footer {
    padding: 0 12px;
    position: relative;
}

.list_footer li:first-child {
    padding-left: 0;
}

.list_footer li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 1px;
    height: 12px;
    background-color: #ccc;
}