* {
    box-sizing: border-box;
    font-family: 'Noto Sans KR', sans-serif;
}

body {
    margin: 0;
    background: #f5f5f5;
    overflow-x: auto;
}



.header {
    background: linear-gradient(135deg, #ff6a00, #ff8a00);
    color: white;
}

.top {
    display: flex;
    justify-content: space-between;
    padding: 16px 32px;
    font-size: 14px;
}

.top span {
    margin-left: 16px;
    cursor: pointer;
}

.hero {
    text-align: center;
    padding: 40px 0 30px;
}

.tabs {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 20px;
}

.tabs span {
    margin: 0 20px;
    opacity: .7;
}

.tabs .active {
    opacity: 1;
    border-bottom: 4px solid white;
    padding-bottom: 6px;
}


.search-box {
    background: white;
    width: 900px;
    max-width: 90%;
    margin: 0 auto;
    padding: 16px;
    border-radius: 40px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.search-box input {
    flex: 1;
    border: none;
    font-size: 18px;
    outline: none;
}

.search-btn {
    background: linear-gradient(135deg, #ff6a00, #ff8a00);
    border: none;
    padding: 14px 28px;
    color: white;
    border-radius: 30px;
    cursor: pointer;
}


.main {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    max-width: 100vw;
    overflow: visible;
}


.category-box {
    width: 260px;
    background: #fff;
    border-radius: 12px;
    padding: 16px;

    height: 420px;
    overflow-y: auto;
}

.category-box h3 {
    margin: 0 0 12px;
    font-size: 16px;
}

#categoryList {
    list-style: none;
    padding: 0;
    margin: 0;

    max-height: 350px;
    overflow-y: auto;
    padding-right: 6px;
}


.category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 14px 10px;
    height: 52px;

    cursor: pointer;
    border-radius: 8px;
}

.category-item .left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-item .icon {
    font-size: 20px;
    width: 24px;
    text-align: center;
}

.category-item .text {
    font-size: 15px;
    color: #222;
    white-space: nowrap;
}

.category-item .arrow {
    font-size: 20px;
    color: #aaa;
}

.category-item:hover {
    background: #f5f5f5;
}

.category-item:hover .arrow {
    color: #ff6a00;
}


.all-category-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 5000;

    display: flex;
    justify-content: center;
    align-items: center;
}

.all-category-panel {
    width: 90vw;
    max-width: 1400px;
    height: 80vh;

    background: #fff;
    border-radius: 18px;
    padding: 32px;

    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
    overflow: hidden;
    position: relative;
}

.all-category-panel h3 {
    margin: 0 0 16px;
    font-size: 18px;
}

.all-category-wrap {
    display: flex;
    height: 100%;
}


.all-category-left {
    width: 340px;
    padding-right: 12px;
    border-right: 1px solid #eee;
}

#allCategoryList {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px 16px;

    list-style: none;
    padding: 0;
    margin: 0;

    max-height: 100%;
    overflow-y: auto;
    padding-right: 6px;
}

#allCategoryList .category-item:hover {
    background: #f7f7f7;
}

.all-category-right {
    flex: 1;
    padding-left: 32px;
    overflow-y: auto;
}

#allCategoryGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 28px 20px;
}

.category-preview-item {
    text-align: center;
    cursor: pointer;
}

.category-preview-thumb {
    width: 96px;
    height: 96px;
    margin: 0 auto 10px;

    border-radius: 50%;
    overflow: hidden;
    background: #f2f2f2;

    display: flex;
    align-items: center;
    justify-content: center;
}

.category-preview-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-preview-name {
    font-size: 14px;
    color: #222;
    line-height: 1.3;
    word-break: keep-all;
}

.category-preview-item:hover .category-preview-thumb {
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
    transform: translateY(-3px);
    transition: all 0.2s ease;
}


.category-close {
    position: absolute;
    top: 18px;
    right: 18px;

    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
    color: #333;
}


.biz {
    display: flex;
    gap: 24px;
    padding: 40px;
}

.banner {
    flex: 1;
    border-radius: 18px;
    padding: 24px;
    color: white;
}

.banner.left {
    background: linear-gradient(135deg, #6a2c2c, #8b3a3a);
}

.banner.right {
    background: linear-gradient(135deg, #4b2b7f, #5c3a9d);
}

.banner h2 span {
    color: #ff6a00;
}

.banner button {
    background: rgba(255,255,255,.25);
    border: none;
    padding: 10px 22px;
    border-radius: 20px;
    color: white;
    cursor: pointer;
}

.products {
    display: flex;
    gap: 14px;
    margin-top: 24px;
}

.card {
    background: white;
    color: black;
    border-radius: 12px;
    padding: 10px;
    width: 120px;
    text-align: center;
}

.card img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
}

.ship {
    color: red;
    font-size: 12px;
}

.hidden {
    display: none;
}

.all-category-wrap {
    display: flex;
    gap: 24px;
}

.all-category-right {
    flex: 1;
    overflow: hidden;
    height: auto;
}
.recommend-wrapper {
    width: 100%;
    overflow: visible;
    padding: 24px 0;
    min-width: 0;
}

.recommend-horizontal {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 24px 12px;
}

.recommend-horizontal::-webkit-scrollbar {
    height: 8px;
}
.recommend-horizontal::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 10px;
}
.recommend-horizontal::-webkit-scrollbar-track {
    background: transparent;
}

.recommend-block {
    flex: 0 0 360px;
    min-height: 380px;
    background: #fff;
    border-radius: 18px;
    padding: 16px;
    display: flex;
    flex-direction: column;
}

.recommend-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.recommend-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

.recommend-header span {
    font-size: 13px;
    color: #888;
}

.recommend-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    flex: 1;
}

.product-card {
    cursor: pointer;
}

.product-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.product-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 12px;
}

.product-card .price {
    display: inline-block;
    margin-top: 6px;
    padding: 4px 8px;
    font-size: 13px;
    background: #fff;
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
}



