.bojagiMobileDock {
    --bojagi-mobile-dock-height: 60px;
    --bojagi-mobile-dock-ink: #242321;
    --bojagi-mobile-dock-muted: #77736d;
    --bojagi-mobile-dock-line: rgba(36, 35, 33, 0.1);
    --bojagi-mobile-dock-surface: rgba(255, 255, 255, 0.86);
    box-sizing: border-box;
    width: auto;
    max-width: 440px;
    height: var(--bojagi-mobile-dock-height);
    padding: 0;
    border: 1px solid var(--bojagi-mobile-dock-line);
    border-radius: 12px;
    background: var(--bojagi-mobile-dock-surface);
    -webkit-backdrop-filter: saturate(1.06) blur(18px);
    backdrop-filter: saturate(1.06) blur(18px);
    box-shadow: 0 2px 10px rgba(35, 31, 27, 0.05);
    color: var(--bojagi-mobile-dock-muted);
    font-family: Pretendard, "Noto Sans KR", sans-serif;
    overflow: visible;
    transition: transform 0.24s ease, opacity 0.24s ease;
}

.bojagiMobileDock--main {
    position: fixed;
    right: 10px;
    bottom: max(6px, env(safe-area-inset-bottom, 0px));
    left: 10px;
    margin-right: auto;
    margin-left: auto;
    z-index: 180;
}

/* Open sheets are application layers, never descendants of page content. */
[data-mobile-catalog-shell].active {
    position: fixed !important;
    z-index: 2147483647 !important;
    inset: 0 !important;
    pointer-events: none;
    isolation: isolate;
}

[data-mobile-catalog-shell].active .fixedLayer {
    position: fixed;
    z-index: 0;
    inset: 0;
    display: block;
    background: rgba(18, 21, 23, .36);
    pointer-events: auto;
}

[data-mobile-catalog-shell].active .bottomMenuSlideUp {
    z-index: 2 !important;
    pointer-events: auto;
}

[data-mobile-catalog-shell].active .bojagiMobileDock {
    z-index: 3;
    pointer-events: auto;
}

/*
 * Older mobile pages keep .bottomMenuListBox as a JavaScript hook for their
 * sheets. Neutralize that hook's legacy visual rules so every page renders the
 * exact same dock surface as the renewed home.
 */
.bottomMenuListBox.bojagiMobileDock--main {
    width: auto;
    max-width: 440px;
    height: var(--bojagi-mobile-dock-height);
    padding: 0;
    border: 1px solid var(--bojagi-mobile-dock-line);
    border-radius: 12px;
    background: var(--bojagi-mobile-dock-surface);
    -webkit-backdrop-filter: saturate(1.06) blur(18px);
    backdrop-filter: saturate(1.06) blur(18px);
    box-shadow: 0 2px 10px rgba(35, 31, 27, 0.05);
}

.bottomMenuListBox.bojagiMobileDock--main.isSafari,
.bottomMenuListBox.bojagiMobileDock--main.isChrome,
.bottomMenuListBox.bojagiMobileDock--main.isNaver,
.bottomMenuListBox.bojagiMobileDock--main.isKakaoTalk {
    position: fixed;
    background: var(--bojagi-mobile-dock-surface);
    box-shadow: 0 2px 10px rgba(35, 31, 27, 0.05);
    -webkit-backdrop-filter: saturate(1.06) blur(18px);
    backdrop-filter: saturate(1.06) blur(18px);
}

.bottomMenuListBox.bojagiMobileDock--main.isSafari::after {
    display: none;
}

.bojagiMobileDock.scrollDown,
.bojagiMobileDock.is-scroll-hidden {
    transform: translateY(calc(100% + 12px));
    opacity: 0;
}

.bojagiMobileDock[data-mobile-dock-reveal-after]:not(.is-dock-ready) {
    transform: translateY(calc(100% + 12px));
    opacity: 0;
    pointer-events: none;
}

.bojagiMobileDock.slideUp,
.bojagiMobileDock:focus-within {
    transform: translateY(0);
}

.bojagiMobileDock__list {
    width: 100%;
    height: var(--bojagi-mobile-dock-height);
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: stretch;
    margin: 0;
    padding: 0 5px;
    box-sizing: border-box;
    list-style: none;
}

.bojagiMobileDock .bojagiMobileDock__item {
    min-width: 0;
    height: var(--bojagi-mobile-dock-height);
    display: block;
    position: relative;
    margin: 0;
    padding: 0;
}

.bojagiMobileDock .bojagiMobileDock__action {
    width: 100%;
    height: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    position: relative;
    margin: 0;
    padding: 3px 2px 2px;
    border: 0;
    appearance: none;
    box-sizing: border-box;
    color: inherit;
    background: transparent;
    font: inherit;
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.18s ease, transform 0.18s ease;
}

.bojagiMobileDock .bojagiMobileDock__action:focus-visible {
    outline: 2px solid var(--bojagi-mobile-dock-ink);
    outline-offset: -3px;
}

.bojagiMobileDock__icon {
    width: 26px;
    height: 26px;
    display: block;
    flex: 0 0 26px;
    position: relative;
    z-index: 1;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.45;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bojagiMobileDock .bojagiMobileDock__label {
    display: block;
    color: inherit;
    font: 400 12px/1.15 Pretendard, "Noto Sans KR", sans-serif;
    letter-spacing: -0.01em;
    white-space: nowrap;
    position: relative;
    z-index: 1;
}

.bojagiMobileDock__item.is-current,
.bojagiMobileDock__item.active,
.bojagiMobileDock__action[aria-current="page"],
.bojagiMobileDock__action[aria-expanded="true"] {
    color: var(--bojagi-mobile-dock-muted);
}

.bojagiMobileDock__item.is-current .bojagiMobileDock__action::before,
.bojagiMobileDock__item.active .bojagiMobileDock__action::before,
.bojagiMobileDock__action[aria-current="page"]::before,
.bojagiMobileDock__action[aria-expanded="true"]::before {
    display: none;
}

.bojagiMobileDock__item.is-current .bojagiMobileDock__label,
.bojagiMobileDock__item.active .bojagiMobileDock__label,
.bojagiMobileDock__action[aria-current="page"] .bojagiMobileDock__label,
.bojagiMobileDock__action[aria-expanded="true"] .bojagiMobileDock__label {
    font-weight: 400;
    color: var(--bojagi-mobile-dock-muted);
}

.bojagiMobileDock .bojagiMobileDock__item[data-dock-key="free-sample"] .bojagiMobileDock__badge {
    width: 20px;
    min-width: 20px;
    height: 20px;
    display: block;
    position: absolute;
    top: 3px;
    left: 50%;
    margin: 0 0 0 8px;
    padding: 0;
    text-align: center;
    line-height: 16px;
    transform: none;
    border: 2px solid #fff;
    border-radius: 10px;
    box-sizing: border-box;
    color: #fff;
    background: var(--bj-sample-accent, var(--bj-charcoal, #1a1a18));
    font-family: Pretendard, "Noto Sans KR", sans-serif;
    font-size: 11px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.bojagiMobileDock .bojagiMobileDock__item[data-dock-key="free-sample"] .bojagiMobileDock__badge[hidden] {
    display: none;
}

.bojagiMobileDock.darkTheme {
    --bojagi-mobile-dock-ink: #fff;
    --bojagi-mobile-dock-muted: #d7d8d9;
    --bojagi-mobile-dock-line: rgba(255, 255, 255, 0.13);
    --bojagi-mobile-dock-surface: rgba(28, 30, 31, 0.95);
}

@media (min-width: 1040px) {
    .bojagiMobileDock--main {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bojagiMobileDock {
        transition: none;
    }
}
