.sd-shop-search-page {
    max-width: 840px;
    margin: 0 auto;
    padding: 12px 12px 24px;
}

.sd-search-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.sd-search-topbtn {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #111827;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.sd-search-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
    background: #f3f4f6;
    border-radius: 999px;
    padding: 3px;
}

.sd-search-tab {
    flex: 1;
    text-align: center;
    color: #6b7280;
    text-decoration: none;
    font-size: 15px;
    border-radius: 999px;
    padding: 9px 6px;
}

.sd-search-tab.is-active {
    background: #111827;
    color: #fff;
    font-weight: 700;
}

.sd-shop-search-panel {
    /* background: #fff; */
    /* border: 1px solid #e5e7eb; */
    /* border-radius: 12px; */
    /* padding: 12px; */
}

.sd-shop-search-main {
    position: relative;
    display: block;
}

.sd-shop-search-main .ssch_input {
    width: 100%;
    height: 42px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 0 76px 0 14px;
    font-size: 14px;
    box-sizing: border-box;
    background: #f3f4f6;
    border-color: #e5e7eb;
}

.sd-shop-search-main .btn_clear {
    position: absolute;
    right: 36px;
    top: 6px;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #a3a3a3;
    font-size: 16px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sd-shop-search-main .btn_submit {
    position: absolute;
    right: 6px;
    top: 6px;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #6b7280;
    font-size: 18px;
    font-weight: 400;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sd-shop-search-main .btn_submit .material-icons,
.sd-shop-search-main .btn_clear .material-icons {
    font-size: 18px;
    line-height: 1;
}

.sd-search-block {
    margin-top: 14px;
    background: #fff;
    /* border: 1px solid #eceff3; */
    border-radius: 12px;
    /* padding: 12px; */
}

.sd-search-block-title {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 800;
    color: #111827;
}

.sd-search-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sd-search-list li + li {
    border-top: 1px solid #f1f5f9;
}

.sd-search-list a {
    display: block;
    padding: 10px 0;
    text-decoration: none;
}

.sd-search-list strong {
    display: block;
    color: #111827;
    font-size: 14px;
    margin-bottom: 4px;
}

.sd-search-list span {
    color: #6b7280;
    font-size: 13px;
}

.sd-search-empty {
    margin: 0;
    color: #6b7280;
    font-size: 13px;
}

.sd-material-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sd-material-item + .sd-material-item {
    border-top: 1px solid #eef2f7;
}

.sd-material-link {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    text-decoration: none;
}

.sd-material-thumb {
    width: 84px;
    height: 84px;
    border-radius: 8px;
    overflow: hidden;
    flex: 0 0 84px;
    background: #f8fafc;
}

.sd-material-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sd-material-body {
    min-width: 0;
    flex: 1;
}

.sd-material-name {
    display: block;
    color: #111827;
    font-size: 14px;
    line-height: 1.35;
    margin-bottom: 6px;
    word-break: keep-all;
}

.sd-material-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px;
}

.sd-material-price em {
    color: #ef4444;
    font-style: normal;
    font-weight: 800;
    font-size: 15px;
}

.sd-material-price b {
    color: #111827;
    font-size: 17px;
    line-height: 1;
}

.sd-material-price del {
    color: #9ca3af;
    font-size: 11px;
}

.sd-material-badges {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-top: 7px;
}

.sd-material-badges i {
    font-style: normal;
    font-size: 11px;
    line-height: 1;
    color: #fff;
    border-radius: 4px;
    padding: 4px 5px;
    background: #60a5fa;
}

.sd-material-badges i:nth-child(2) { background: #f59e0b; }
.sd-material-badges i:nth-child(3) { background: #10b981; }
.sd-material-badges i:nth-child(4) { background: #6366f1; }
.sd-material-badges i:nth-child(5) { background: #ec4899; }

.sd-search-rank {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 16px;
}

.sd-search-rank li a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.sd-search-rank em {
    width: 18px;
    font-style: normal;
    font-weight: 700;
    color: #7c3aed;
}

.sd-search-rank span {
    color: #111827;
    font-size: 14px;
}

.sd-search-pill-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sd-search-pill-list a {
    display: inline-flex;
    align-items: center;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 7px 11px;
    font-size: 13px;
    color: #374151;
    text-decoration: none;
    background: #fff;
}

.sd-search-brand-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.sd-search-brand-list a {
    text-decoration: none;
    color: #111827;
    display: block;
    text-align: center;
}

.sd-search-brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin: 0 auto 6px;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    background: #fff;
}

.sd-search-brand-logo img {
    max-width: 42px;
    max-height: 42px;
    object-fit: contain;
}

.sd-search-brand-name {
    display: block;
    font-size: 12px;
    color: #4b5563;
    line-height: 1.35;
}

@media (max-width: 767px) {
    .sd-search-brand-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
