.store-search-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 40px 0 80px;
}

.store-search-title {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 30px;
    color: #000;
}

.store-search-top-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 28px;
}

.store-search-controls {
    display: flex;
    align-items: center;
}

.store-search-input-section {
    width: 100%;
}

.store-search-form-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-input-wrapper {
    position: relative;
    flex: 1;
}

.store-search-input {
    width: 100%;
    height: 52px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0 44px 0 16px;
    font-size: 16px;
    box-sizing: border-box;
}

.store-search-input:focus {
    outline: none;
    border-color: #7800ff;
}

.search-clear-btn {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #999;
    cursor: pointer;
    padding: 0;
    font-size:18px;
}

.search-icon-btn {
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 8px;
    background: #7800ff;
    color: #fff;
    cursor: pointer;
    font-size: 18px;
}

.store-search-category-section {
    width: 100%;
}

.store-search-category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.store-search-category-item {
    border: 1px solid #ddd;
    background: #fff;
    color: #555;
    border-radius: 20px;
    padding: 8px 14px;
    font-size: 14px;
    cursor: pointer;
}

.store-search-category-item.active {
    background: #000;
    border-color: #000;
    color: #fff;
}

.store-search-results {
    margin-top: 30px;
}

.store-search-filter-section {
    margin-bottom: 16px;
}

.store-search-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.store-search-count {
    margin: 0;
    font-size: 18px;
}

.store-search-sort-list {
    list-style: none;
    display: flex;
    gap: 16px;
    margin: 0;
    padding: 0;
}

.store-search-sort-item {
    color: #888;
    cursor: pointer;
    font-size: 16px;
}

.store-search-sort-item.active {
    color: #303030;
    font-weight: 700;
}

.store-search-product-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 34px;
    margin: 40px 0;
    min-height: 600px;
}

/* 1페이지·4개 이하: 그리드 영역 고정 높이 해제 */
.integrated-search-section--compact .store-search-product-list {
    min-height: 0;
    margin: 24px 0;
}

.product-card {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    display: block;
    text-decoration: none;
}

.product-image {
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
}

.product-image::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, #00000000, #00000001, #000000B5);
}

.product-img {
    width: 100%;
    height: 330px;
    object-fit: cover;
    transition: transform 0.4s ease;
    will-change: transform;
    display: block;
}

.product-image:hover .product-img {
    transform: scale(1.05);
}

.product-tag {
    position: absolute;
    top: 15px;
    left: 10px;
}

.product-tag-badge {
    background: #000;
    color: #fff;
    border-radius: 20px;
    padding: 3px 13px;
    font-size: 14px;
    font-weight: 700;
    display: inline-block;
}

.product-wish-btn {
    position: absolute;
    top: 9px;
    right: 10px;
    background: #797979;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border: none;
}

.product-wish-btn img {
    position: absolute;
    top: 17%;
    right: 3px;
    width: 19px;
    opacity: 0.8;
}

.product-content {
    padding: 16px 0;
}

.product-title h3 {
    margin: 0 0 8px;
    font-size: 17px;
    line-height: 1.4;
    color: #111;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-desc {
    margin: 0 0 8px;
    font-size: 14px;
    line-height: 1.45;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: nowrap;
    overflow: hidden;
}

.price-discount {
    color: #e53935;
    font-weight: 700;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
}

.price-current {
    color: #111;
    font-weight: 700;
    font-size: 17px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 1;
    min-width: 0;
}

.price-original {
    color: #999;
    text-decoration: line-through;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 1;
    min-width: 0;
}

.store-search-pagination {
    display: flex;
    justify-content: center;
}

.page-controls {
    display: flex;
    gap: 10px;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 36px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    color: #444;
    text-decoration: none;
}

.page-btn.disabled {
    opacity: 0.5;
    cursor: default;
}

.integrated-search-section {
    grid-column: 1 / -1;
    width: 100%;
}

.integrated-search-section + .integrated-search-section {
    margin-top: 48px;
}

.integrated-search-section__title {
    margin: 0 0 18px;
    font-size: 22px;
    font-weight: 700;
}

.integrated-search-section__count {
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

.integrated-search-section__empty,
.integrated-search-message {
    text-align: center;
    padding: 48px 0;
    color: #999;
}

.integrated-search-section__empty {
    font-size: 20px;
    font-weight: 600;
    border-top: 1px solid #dcdcdc;
}

.integrated-search-message {
    grid-column: 1 / -1;
    font-size: 18px;
    padding: 100px 0;
    border-bottom: none;
}

.integrated-search-pagination {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.integrated-search-slider {
    position: relative;
    overflow: visible;
}

.integrated-search-list-viewport {
    position: relative;
    overflow: hidden;
    padding: 40px 0;
}

.integrated-search-list-track {
    display: flex;
    width: 200%;
    transform: translateX(0%);
}

.integrated-search-list-track.is-animating {
    transition: transform 1s ease;
}

.integrated-search-list-track .is-list-pane {
    width: 50%;
    flex-shrink: 0;
    margin: 0;
}

/* 카드가 4개 이하여도 2줄 영역 높이 유지 (컴팩트 모드 제외) */
.integrated-search-slider:not(.integrated-search-slider--compact) .store-search-product-list {
    min-height: 880px;
}

.integrated-search-slider--compact .integrated-search-list-viewport {
    padding: 24px 0;
    overflow: visible;
}

.integrated-search-list-viewport .store-search-product-list {
    margin: 0;
}

.integrated-search-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid #000;
    border-radius: 50%;
    background: #fff;
    color: #555;
    font-size: 18px;
    cursor: pointer;
    z-index: 2;
}

.integrated-search-arrow i {
    font-size: 14px;
    line-height: 1;
    display: block;
}

.integrated-search-arrow--prev {
    left: -56px;
}

.integrated-search-arrow--next {
    right: -56px;
}

.integrated-search-arrow.is-disabled {
    opacity: 0.45;
    cursor: default;
}

.integrated-search-arrow.is-prefetching,
.integrated-search-dot.is-prefetching,
.integrated-search-more-btn.is-prefetching {
    opacity: 0.5;
    pointer-events: none;
}


.integrated-search-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.integrated-search-dot {
    width: 7px;
    height: 7px;
    border: 0;
    border-radius: 50%;
    background: #d1d1d1;
    cursor: pointer;
    padding: 0;
}

.integrated-search-dot.is-active {
    background: #333;
}

.integrated-search-more-btn {
    min-width: 260px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    color: #555;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    box-sizing: border-box;
}

.integrated-search-more-btn.is-disabled {
    opacity: 0.5;
    cursor: default;
}

@media (max-width: 1024px) {
    .store-search-product-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }

    .integrated-search-slider:not(.integrated-search-slider--compact) .store-search-product-list {
        min-height: 760px;
    }
}

@media (max-width: 768px) {
    .store-search-product-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .store-search-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .integrated-search-slider:not(.integrated-search-slider--compact) .store-search-product-list {
        min-height: 620px;
    }
}
