@charset "utf-8";

/* =========================================================
   [ 검색 결과 페이지 ]
   ========================================================= */

.jjdd-search-page {
    padding-bottom: 80px;
}

.jjdd-search-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* 기본 영카트 검색 UI 숨김 */
#ssch { display: none !important; }

/* Breadcrumb — .jjdd-category-breadcrumb 공용 클래스 사용 (myshop.css/product_list.css) */


/* Title */
@keyframes jjdd-search-drop-in {
    from { opacity: 0; transform: translateY(-18px); }
    to   { opacity: 1; transform: translateY(0); }
}
.jjdd-search-title {
    text-align: center;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #111;
    margin: 0 0 32px;
    animation: jjdd-search-drop-in 0.45s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

/* Search form */
.jjdd-search-form {
    display: flex;
    align-items: center;
    max-width: 540px;
    margin: 0 auto 20px;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 6px 16px;
    gap: 10px;
    outline: none !important;
    border: none;
}
.jjdd-search-form:focus,
.jjdd-search-form:focus-within { outline: none !important; border: none; box-shadow: none !important; }
.jjdd-search-input {
    flex: 1;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    font-size: 15px;
    color: #111;
    padding: 14px 0;
}
.jjdd-search-input::placeholder { color: #bbb; }
.jjdd-search-input:focus,
.jjdd-search-input:active { outline: none !important; border: none !important; box-shadow: none !important; }
.jjdd-search-btn {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #555;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    transition: color .15s;
}
.jjdd-search-btn:hover { color: #111; }

/* Popular searches */
.jjdd-search-popular {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    max-width: 700px;
    margin: 0 auto 30px;
}
.jjdd-search-popular-label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0;
    flex-shrink: 0;
    white-space: nowrap;
}
.jjdd-search-popular-chips {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.jjdd-search-chip {
    display: inline-block;
    padding: 7px 18px;
    border-radius: 999px;
    border: 1px solid #ddd;
    color: #333;
    font-size: 13px;
    text-decoration: none;
    transition: border-color .15s, color .15s;
}
.jjdd-search-chip:hover {
    border-color: #9f4ff0;
    color: #9f4ff0;
    text-decoration: none;
}

/* Divider */
.jjdd-search-hr {
    border: none;
    border-top: 1px solid #e8e8e8;
    margin: 0 0 24px;
}

/* Count bar */
.jjdd-search-topbar {
    margin-bottom: 24px;
}
.jjdd-search-count {
    font-size: 14px;
    color: #7f7f7f;
    margin: 0;
}
.jjdd-search-count strong {
    color: #0e0e0e;
    font-weight: 700;
}

/* Product section */
.jjdd-search-page .jjdd-product-section {
    padding: 0 !important;
}

/* Search product card: 정사각형 썸네일 + 하트 우상단 고정 */
.jjdd-search-page .product-card {
    position: relative;
}

.jjdd-search-page .product-card__thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.jjdd-search-page .product-card__thumb > a {
    display: block;
    width: 100%;
    height: 100%;
}

.jjdd-search-page .product-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.jjdd-search-page .product-card__thumb .product-card__wish {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 6;
}

/* Empty state */
.jjdd-search-empty {
    text-align: center;
    padding: 80px 20px 60px;
}
.jjdd-search-empty-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    color: #aaa;
    margin: 0 auto 24px;
}
.jjdd-search-empty-title {
    font-size: 17px;
    font-weight: 700;
    color: #111;
    margin: 0 0 10px;
}
.jjdd-search-empty-sub {
    font-size: 14px;
    color: #555;
    margin: 0 0 20px;
}
.jjdd-search-empty-hint {
    font-size: 13px;
    color: #aaa;
    margin: 0;
    line-height: 1.9;
}

/* Responsive */
@media (max-width: 767px) {
    .jjdd-search-inner { padding: 0 16px; }
    .jjdd-search-title { font-size: 20px; }
    .jjdd-search-popular { flex-direction: column; align-items: center; gap: 10px; }
}
