/* ========================================
   shop-page
======================================== */

.shop-page {
    display: flex;
    flex-direction: column;
    gap: 30px;
}


/* ========================================
  전체카테고리 검색
======================================== */

.sub-search {
    width: 100%;
    margin-top: 20px;
}


.sub-search__box {
    position: relative;
    width: 100%;
    padding: 16px 20px 20px;
    box-sizing: border-box;

    background: var(--color-primary);
    border-radius: 8px;
}



/* 타이틀 */

.sub-search__title {
    margin-bottom: 14px;
}

.sub-search__title p {
    margin-bottom: 6px;
    color: #fff;
    font-size: 16px;
    font-weight: 800;

}

.sub-search__title span {
    color: #b4baec;
    font-size: 13px;
    font-weight: 600;

}



/* 검색 폼 */

.sub-search__form {
    position: relative;

    display: flex;
    align-items: center;
    gap: 16px;

    width: 100%;
    height: 36px;

    background: #fff;
    border-radius: 5px;
}



/* 전체카테고리 */

.category-select {
    position: relative;
    height: 100%;
}


.category-select__button {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 0 14px;
    color: #666;
    font-size: 12px;
    font-weight: 600;

}


.category-select__text {
    white-space: nowrap;
}


.category-select__arrow {
    position: absolute;
    top: 50%;
    right: -6px;
    width: 6px;
    height: 6px;
    margin-top: -4px;
    border-right: 1.5px solid #333;
    border-bottom: 1.5px solid #333;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}


.category-select.is-open .category-select__arrow {
    margin-top: -1px;
    transform: rotate(225deg);
}



/* 전체카테고리 드롭 */

.category-select__dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    z-index: 100;
    width: 100%;
    box-sizing: border-box;

    padding: 6px 0;
    border: 1px solid #ddd;
    border-radius: 5px;

    background: #fff;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}


.category-select__dropdown[hidden] {
    display: none;
}


.category-select__list li {
    width: 100%;
}


.category-select__list button {
    display: flex;
    align-items: center;

    width: 100%;
    min-height: 34px;

    padding: 7px 14px;

    border: 0;
    background: #fff;

    color: #555;
    font-size: 12px;
    font-weight: 500;

    text-align: left;

    cursor: pointer;
}


.category-select__list button:active,
.category-select__list button:hover {
    background: #f5f6fa;
}



/* 검색어 입력 */

.sub-search__input {
    width: 100%;

}

.sub-search__input input {
    width: 80%;

}


/* 검색 버튼 */

.sub-search__button {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    width: 40px;
    height: 100%;
    position: absolute;
    right: 0;
}



/* 카테고리 */

.category-menu {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    margin-top: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;

}


.category-menu__column {
    padding: 20px 0 20px 16px;
    box-sizing: border-box;
}

.category-menu__column+.category-menu__column {
    border-left: 1px solid #ddd;
}


.category-menu__column a {
    display: block;
    margin-bottom: 18px;
    color: #777;
    font-size: 12px;
    font-weight: 500;

}

.category-menu__column a:last-child {
    margin-bottom: 0;
}






/* ========================================
   상점 슬라이드
======================================== */

.shop-slide-section {
    width: 100%;
}



/* 타이틀 */

.shop-slide__title {
    margin-bottom: 24px;

    text-align: center;
}

.shop-slide__title h2 {
    display: inline-block;
    font-size: 24px;
    font-weight: 800;

}


.shop-slide__title h2 span {
    position: relative;
    z-index: 0;
}


.shop-slide__title h2 span::after {
    content: "";

    position: absolute;
    z-index: -1;

    left: 0;
    right: 0;
    bottom: 1px;

    height: 6px;

    background: #f2ff00;
}



/* 이미지 */

.shop-slide__images {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 10px;
    width: 100%;
}

.shop-slide__main {
    overflow: hidden;
    border-radius: 8px;
}

.shop-slide__main img {
    display: block;
    width: 100%;
    height: auto;
}

.shop-slide__sub {
    display: grid;
    grid-template-rows: repeat(2, 1fr);
    gap: 10px;
    min-width: 0;
}

.shop-slide__sub-item {
    min-width: 0;
    overflow: hidden;
    border-radius: 8px;
}

.shop-slide__sub-item img {
    display: block;
    width: 100%;
    height: 100%;
}



/* 텍스트 */

.shop-slide__info {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-top: 16px;
}



.shop-slide__text strong {
    display: block;
    margin-bottom: 5px;
    font-size: 18px;
    font-weight: 700;

}

.shop-slide__text p {
    font-size: 14px;
    font-weight: 500;

}


/* 좌우 화살표 */

.shop-slide__controls {
    position: absolute;
    right: 4px;
    bottom: 36px;

}



/* ========================================
    키워드
======================================== */


.keyword-section {
    position: relative;
}

.keyword-section::before {
    position: absolute;
    content: '';
    top: 50%;
    right: 0;
    width: 50px;
    height: 32px;
    transform: translateY(-50%);
    background: linear-gradient(to right, rgba(245, 245, 245, 0) 0, rgba(245, 245, 245, .7) 50%, #fff 90%);
    pointer-events: none;
    z-index: 1;
}



.keyword-section .inner {
    overflow-x: auto;
    scrollbar-width: none;

}

.keyword-section .inner::-webkit-scrollbar {
    display: none;
}




.keyword-list {
    display: flex;
    gap: 6px;
    width: max-content;
    min-width: 100%;

}



.keyword-list a {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 18px;
    border-radius: 100px;
    white-space: nowrap;
    font-weight: 600;
 /*   background: #f4f4f6;	
    color: #767676;	*/
}


/* ========================================
    카테고리 인기 상품
======================================== */
.popular-list {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;

}

.popular-list li {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 8px;
    height: 150px;
    background: #fff;
    position: relative;
    overflow: hidden;
}

.popular-list li::before {
    position: absolute;
    content: '';
    top: 50%;
    transform: translateY(-50%);
    right: 12px;

    width: 12px;
    height: 12px;

    border-top: 1px solid #999;
    border-right: 1px solid #999;
    transform: rotate(45deg);
    z-index: 1;


}

.popular-list li a {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
}

.popular-list p {
    padding-top: 14px;
    padding-left: 16px;

    color: #646363;
    font-size: 12px;
    font-weight: 700;

}


.popular-list img {
    position: absolute;
    bottom: 0;
    height: 96px;
    left: 50%;
    transform: translateX(-50%);
}