/* ========================================
   shop-page
======================================== */


/* ========================================
   서브 네비게이션
======================================== */

.sub-nav {
    position: relative;
    width: 100%;
    height: 42px;
    border-top: 1px solid var(--color-line-light);
    border-bottom: 1px solid var(--color-line-light);
    background: #fff;
    box-sizing: border-box;
    z-index: 20;
}


.sub-nav>.inner {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
    overflow: visible;
}


.sub-nav__list {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    width: 0;
    min-width: 0;
    height: 100%;
    margin-left: -6px;
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    white-space: nowrap;
}

.sub-nav__list::-webkit-scrollbar {
    display: none;
}

.sub-nav__item {
    flex: 0 0 auto;
    height: 100%;
    padding: 0 6px;
    list-style: none;
}

.sub-nav__item a {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
    color: var(--color-text-tertiary);
    font-size: 13px;
    white-space: nowrap;
}

.sub-nav__item.is-active a {
    color: var(--color-primary);
    font-weight: 700;
}

.sub-nav__item.is-active a::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    background: var(--color-primary);
    content: "";
}









/* 오른쪽 화살표 - 고정 */
.sub-nav__toggle {

    display: flex;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;

    height: 100%;
    margin-right: -12px;
    border-left: 1px solid var(--color-bg-subtle);
    background: #fafafa;
    cursor: pointer;
    position: relative;

}



.sub-nav__arrow,
.sub-search__arrow {
    display: block;
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    margin: 0;
    box-sizing: border-box;
    border-right: 1px solid #333;
    border-bottom: 1px solid #333;
    position: absolute;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    transform-origin: center;
    transition: transform 0.2s ease;
}





.sub-nav__toggle[aria-expanded="true"] .sub-nav__arrow {
    transform: rotate(225deg);

}






/* 전체 카테고리 드롭다운 */
.sub-nav__dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 30;
    width: 100%;
    border-top: 1px solid var(--color-line-light);
    background: #fff;
    box-sizing: border-box;

}

.sub-nav__dropdown[hidden] {
    display: none;
}

.sub-nav__dropdown ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
}

.sub-nav__dropdown-item {
    min-width: 0;
    border-right: 1px solid var(--color-line-light);
    border-bottom: 1px solid var(--color-line-light);
}

.sub-nav__dropdown-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    padding: 8px;
    box-sizing: border-box;
    color: var(--color-text-tertiary);
    font-size: 13px;
    text-align: center;
}




/* ========================================
   검색창
======================================== */

.sub-search {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    gap:8px;
    width: 100%;
    height: 38px;
    margin-top: 16px;
    border: 1px solid #111;
    background: #fff;
    box-sizing: border-box;
    z-index: 10;
}

.sub-search__category {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    max-width: 150px;
    height: 100%;
    padding: 0 12px;
    border: 0;
    background: #fff;
    color: var(--color-text-muted);
    font-size: 12px;
    white-space: nowrap;
    position: relative;
}

.sub-search__arrow {
    width: 6px;
    height: 6px;
    border-color: #888;
    border-top: 0;
    border-left: 0;
    right: 0;
}

.sub-search__category[aria-expanded="true"] .sub-search__arrow {
    transform: rotate(225deg);

}

.sub-search__input {
    flex: 1;
    width: 0;
    min-width: 0;
    height: 100%;
    padding: 0;
    border: 0;
    outline: 0;
    font-size: 13px;
}

.sub-search__submit {
    display: flex;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    height: 100%;
    border: 0;
    background: #fff;
}

.sub-search__submit img {
    display: block;
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.sub-search__dropdown {
    position: absolute;
    top: calc(100% + 1px);
    right: -1px;
    left: -1px;
    overflow: hidden;
    border: 1px solid #111;
    border-top: none;
    background: #fff;
    max-height: 310px;
    overflow: auto;


}

.sub-search__dropdown[hidden] {
    display: none;
}


.sub-search__option a{
    display: block;
    width: 100%;
    padding: 8px 12px;
    border: 0;
    background: #fff;
    color: var(--color-text-tertiary);
    font-size: 12px;
    text-align: left;
}

.sub-search__option.is-active a {
    background: var(--color-bg-subtle);
    font-weight: 600;
    color: var(--color-text-tertiary);
}

/* ========================================
  베스트
======================================== */

.best-section {
    margin-top: 24px;
}

.shop-banner {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 6px;
    margin-bottom: 6px;
}

.shop-banner a {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;

}

.shop-banner a>img {
    display: block;
    width: 100%;
    height: auto;
}

.shop-banner .txt-box {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 20px;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 6px;

}

.shop-banner .txt-box p {
    font-size: 12px;
    line-height: 1.3;
    opacity: 0.8;
}


.rakuten-page .shop-banner a:first-child .txt-box,
.amazon_jp-page .shop-banner a:first-child .txt-box {
    color: var(--color-text-tertiary);
}




/* ========================================
  추천 상품
======================================== */
.recommend-section {
    margin-top: 48px;
}

.recommend-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.recommend-list li {
    min-width: 0;
}


.recommend-list a {
    position: relative;
    display: block;
    overflow: hidden;
}


.recommend-list img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.recommend-list p {
    position: absolute;
    bottom: 0;
    width: 100%;
    min-height: 50%;
    padding: 20px 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 100%);
    color: #fff;
    font-weight: 500;
}