.store-search-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 40px 0;
}

.store-search-title {
    font-size: 26px;
    text-align: center;
}

.store-search-top-section {
    gap: 20px;
    padding: 16px 45px 45px 45px;
}

.store-search-category-section {
    width: 100%;
}

.store-search-category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-bottom: 10px;
    justify-content: center;
    margin: 0 auto;
    width:80%;
}

.store-search-category-item {
    padding: 10px 20px;
    border: 1px solid #E0E0E0;
    background: #fff;
    border-radius: 20px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 500;
    color: #666;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.store-search-category-item:hover {
    border-color: #7800FF;
    color: #7800FF;
}

.store-search-category-item.active {
    background: #7800FF;
    color: #fff;
    border-color: #7800FF;
    /* font-weight: 700; */
}

.store-search-controls {
    display: flex;
    gap: 30px;
    /* justify-content: flex-start; */
    justify-content: center;
    align-items: center;
    margin-top:0; 
    margin-bottom: 80px;
}

.search-label {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    min-width: 60px;
}

.store-search-form-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    width:50%;
    margin: 0 auto;
    padding-bottom: 10px;
    border-bottom: 3px solid #000;
    /* flex: 1;
    max-width: 600px; */
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
}

.search-clear-btn {
    position: absolute;
    right: 50px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #7D7D7D;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.search-clear-btn:hover {
    color: #333;
}

.store-search-btn {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    width: 20px;
    height: 20px;
    font-size: 18px;
    color: #666;
}

.store-search-filter-section {
    margin: 50px 0 40px 0;
}

.store-search-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 20px;
    border-bottom: 1px solid #E0E0E0;
}

.store-search-count {
    font-size: 16px;
    color: #666;
    margin: 0;
    flex-shrink: 0;
}

.result-count {
    font-weight: 700;
    color: #303030;
}

.store-search-sort-list {
    display: flex;
    gap: 0;
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: center;
}

.store-search-sort-item {
    font-size: 16px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0 15px;
    font-weight: 500;
    position: relative;
}

.store-search-sort-item:not(:last-child)::after {
    content: "|";
    position: absolute;
    right: 0;
    color: #CCC;
    font-weight: 300;
}

.store-search-sort-item:hover {
    color: #303030;
}

.store-search-sort-item.active {
    color: #303030;
    font-weight: 700;
}

/* ===== 상품 리스트 (4x3 그리드) ===== */
.store-search-product-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 34px;
    margin: 40px 0;
    min-height: 600px;
}

/* 상품 카드 스타일 */
.product-card {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    display:block;
}

.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 {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.product-title h3 {
    font-size: 22px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin: 0;
    color: #000;
}

.product-title a {
    width: 100%;
    text-decoration: none;
    color: inherit;
}

.product-price {
    font-size: 22px;
    font-weight: 700;
    margin-top: 12px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.price-discount {
    color: #7800FF;
    font-size: 22px;
}

.price-current {
    color: #000;
    font-weight: 700;
}

.price-original {
    color: #999;
    text-decoration: line-through;
    font-size: 18px;
    font-weight: 600;
}

/* ===== 페이징 ===== */
.store-search-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin: 80px 0 150px;
    padding: 40px 0;
    border-top: 1px solid #E0E0E0;
    position: relative;
}

.page-info {
    font-size: 16px;
    color: #666;
    font-weight: 500;
    position: absolute;
    right: 0;
}

.page-number-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
}
.page-number-wrapper i{
    font-size:24px;
    color: #AFAFAF;
}
.page-current {
    /* font-weight: 700; */
    color: #000;
    padding: 6px 33px;
    font-size: 18px;
    border: 1px solid #AFAFAF;
    border-radius: 5px;
    width: 78px;
    text-align: center;
    background: #fff;
}

.page-current:focus {
    outline: none;
    border-color: #7800FF;
}

.page-separator {
    /* font-weight: 700; */
    color: #000;
}

.page-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-total{
    color: #000;
}

.page-btn {
    display: inline-block;
    padding: 10px 16px;
    border: 1px solid #E0E0E0;
    border-radius: 6px;
    background: #fff;
    color: #303030;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-btn.page-next {
    font-size: 20px;
    color: #fff;
    background: #303030;
    border-radius: 30px;
    padding: 20px 108px;
    border: none;
}

.page-btn:hover:not(.disabled) {
    background: #7800FF;
    color: #fff;
    border-color: #7800FF;
}

.page-btn.disabled {
    color: #ccc;
    cursor: not-allowed;
    opacity: 0.5;
}

.page-input {
    width: 50px;
    padding: 8px 10px;
    border: 1px solid #E0E0E0;
    border-radius: 6px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
}

.page-input:focus {
    outline: none;
    border-color: #7800FF;
}

/* ===== 반응형 ===== */
@media (max-width: 1200px) {
    .store-search-product-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .store-search-product-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .store-search-form-wrapper {
        width: 100%;
    }

    .store-search-input {
        width: 100%;
    }

    .store-search-sort-list {
        gap: 15px;
    }

    .store-search-sort-item {
        font-size: 16px;
    }
}

.store-search-btn {
    position: absolute;
    right: 3%;
    width: 22px;
    height: 22px;
    cursor: pointer;
    border: none;
    display: flex;
    background: none;
}

.store-search-btn i {
    font-size: 22px;
    color: #7800FF;

}

.store-search-results {
    width: 100%;
}

.store-search-reset-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.reset-box {
    display: flex;
    align-items: center;
    gap: 5px;
}

.reset-box i {
    font-size: 16px;
    /* color: #7800FF; */
}

.reset-box span {
    font-size: 16px;
    font-weight: 500;
}

.store-search-browse-btn {
    background: #7800FF;
    font-size: 20px;
    color: #fff;
    padding: 12px 90px;
    border-radius: 30px;
    cursor: pointer;
    border: none;
}
.store-search-input-section{
    width:100%;
}
.store-search-input {
    height: 100%;
    width: 100%;
    padding: 14px 20px 14px 12px;
    font-size: 18px;
    font-weight: 550;
    letter-spacing: -1px;
    padding-right: 50px;
    border: none;
}

.store-search-input ::placeholder {
    color: #d6d6d6;
    font-weight: 500;
}

.search-icon-btn {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #7D7D7D;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-icon-btn:hover {
    color: #333;
}