.sps-search-box { max-width: 900px; margin: 2em auto; }
#sps-form { display: flex; flex-direction: column; gap: 0.75em; }
.sps-input { width: 100%; padding: 0.85em 1.1em; border: 1.5px solid #ddd; border-radius: 0.7em; font-size: 1.13em; background: #fafbfc; box-shadow: 0 2px 8px rgba(0,0,0,0.03); transition: border 0.2s, box-shadow 0.2s; }
.sps-input:focus { border: 1.5px solid #6366f1; outline: none; box-shadow: 0 0 0 2px #6366f133; background: #fff; }
.sps-slider-row { display: flex; flex-direction: column; gap: 0.3em; margin: 0.5em 0 1.2em 0; }
.sps-slider-row label { font-size: 1em; color: #23272f; font-weight: 500; }
.sps-slider-wrap { position: relative; width: 100%; max-width: 420px; margin: 0.5em 0 0.2em 0; }
.sps-nouislider { margin: 1.2em 0 0.5em 0; }
.sps-slider { display: none; }
#sps-price-value-min, #sps-price-value-max { font-weight: 600; color: #6366f1; margin: 0 0.5em; }
.sps-color-row { margin-top: 1.5em; }
.sps-color-label { font-size: 1em; color: #23272f; font-weight: 500; margin-bottom: 0.5em; display: block; }
.sps-color-swatches { display: flex; flex-wrap: wrap; gap: 0.5em; margin-top: 0.3em; }
.sps-color-swatch { border: 2px solid #e5e7eb; border-radius: 50%; width: 2.2em; height: 2.2em; padding: 0; background: none; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: border 0.2s, box-shadow 0.2s; }
.sps-color-swatch:hover, .sps-color-swatch.selected { border: 2px solid #6366f1; box-shadow: 0 0 0 2px #6366f133; }
.sps-color-swatch-inner { background-color: #ccc !important; border-radius: 50%; width: 1.5em; height: 1.5em; border: 2px solid #e5e7eb; display: block; box-sizing: border-box; }
.sps-color-swatch-all .sps-color-swatch-inner { border: 1px solid #bbb; background: repeating-linear-gradient(45deg, #eee, #eee 6px, #fff 6px, #fff 12px); }
.sps-btn-row { display: flex; gap: 0.5em; margin-top: 0.5em; }
.sps-btn { padding: 0.6em 1.2em; border: none; border-radius: 0.5em; font-size: 1em; font-weight: 600; cursor: pointer; background: #6366f1; color: #fff; transition: background 0.2s; }
.sps-btn-clear { background: #e5e7eb; color: #23272f; }
.sps-btn:hover { background: #06b6d4; color: #fff; }
.sps-results { margin-top: 2em; background: #fff; border-radius: 0.5em; box-shadow: 0 2px 8px rgba(0,0,0,0.04); max-width: 900px; margin-left: auto; margin-right: auto; }
.sps-list { list-style: none; margin: 0; padding: 0; }
.sps-item { display: flex; align-items: center; gap: 1em; padding: 0.75em 1em; border-bottom: 1px solid #f0f0f0; }
.sps-item:last-child { border-bottom: none; }
.sps-thumb { width: 90px; height: 90px; object-fit: cover; border-radius: 0.5em; background: #f7f7fa; margin-bottom: 0.7em; }
.sps-price {
    display: none;
}
.sps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5em; padding: 1.5em; }
.sps-card { background: #fafbfc; border-radius: 0.7em; box-shadow: 0 2px 8px rgba(0,0,0,0.04); display: flex; flex-direction: column; align-items: center; padding: 1.2em 1em 1em 1em; transition: box-shadow 0.2s; border: 1.5px solid #f0f0f0; }
.sps-card:hover { box-shadow: 0 4px 16px rgba(99,102,241,0.10); border-color: #6366f1; }
.sps-card-info { text-align: center; width: 100%; }
.sps-card-title { font-size: 1.08em; font-weight: 600; color: #23272f; text-decoration: none; display: block; margin-bottom: 0.4em; transition: color 0.2s; }
.sps-card-title:hover { color: #6366f1; }
.sps-attr-group { display: flex; flex-wrap: wrap; gap: 0.7em; margin-bottom: 0.5em; overflow-x: auto; }
.sps-attr-row { display: flex; flex-direction: column; min-width: 140px; margin: 0; }
.sps-attr-select { padding: 0.45em 1.1em; border: 1.5px solid #ddd; border-radius: 0.7em; font-size: 1em; background: #fafbfc; min-width: 120px; max-width: 180px; margin-top: 0.2em; }
.sps-attr-row label { font-size: 0.97em; color: #23272f; font-weight: 500; margin-bottom: 0.1em; }
.sps-btn.sps-btn-select { background: #fff; color: #6366f1; border: 1.5px solid #6366f1; margin-top: 0.7em; font-size: 0.98em; padding: 0.45em 1.1em; border-radius: 0.5em; transition: background 0.2s, color 0.2s; }
.sps-btn.sps-btn-select.selected, .sps-btn.sps-btn-select:hover { background: #6366f1; color: #fff; }
.sps-selected-list { margin: 1.5em 0 1em 0; background: #f7f7fa; border-radius: 0.5em; padding: 1em; box-shadow: 0 2px 8px rgba(99,102,241,0.04); }
.sps-selected-list-title { font-weight: 600; margin-bottom: 0.7em; color: #23272f; }
.sps-selected-list-items { display: flex; flex-wrap: wrap; gap: 1em; }
.sps-selected-item { background: #fff; border: 1px solid #e5e7eb; border-radius: 0.5em; padding: 0.5em 1em; display: flex; align-items: center; gap: 0.7em; }
.sps-selected-remove { background: none; border: none; color: #ef4444; font-size: 1.1em; cursor: pointer; margin-left: 0.5em; }
.sps-btn.sps-btn-export { background: #06b6d4; color: #fff; margin-left: 1em; }
@media (max-width: 700px) { .sps-search-box, .sps-results { max-width: 98vw; } .sps-grid { grid-template-columns: repeat(2, 1fr); padding: 0.5em; gap: 0.7em; } .sps-card { padding: 0.7em 0.5em; } .sps-thumb { width: 60px; height: 60px; } .sps-attr-group { flex-direction: column; gap: 0.3em; } .sps-attr-row { min-width: 100px; } .sps-selected-list-items { flex-direction: column; gap: 0.5em; } }
.sps-section { background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; margin-bottom: 18px; box-shadow: 0 2px 8px rgba(99,102,241,0.04); padding: 0 0 10px 0; }
.sps-section-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px 6px 16px; border-bottom: 1px solid #f0f0f0; background: #fafbfc; border-radius: 8px 8px 0 0; }
.sps-section-name { font-size: 1.1em; font-weight: 600; border: none; background: transparent; width: 70%; }
.sps-section-products { min-height: 40px; padding: 10px 16px; list-style: none; margin: 0; }
.sps-selected-product { display: flex; align-items: center; gap: 12px; background: #f7f7fa; border-radius: 6px; margin-bottom: 8px; padding: 8px 12px; box-shadow: 0 1px 4px rgba(99,102,241,0.03); }
.sps-selected-product-image img { width: 48px; height: 48px; border-radius: 6px; background: #f7f7f7; }
.sps-product-qty { width: 50px; padding: 4px 8px; border-radius: 4px; border: 1px solid #e0e0e0; margin-right: 8px; }
.sps-remove-section { background: #f5f5f5; border: none; border-radius: 50%; width: 24px; height: 24px; line-height: 24px; text-align: center; font-size: 16px; cursor: pointer; color: #666; transition: background-color 0.3s; }
.sps-remove-section:hover { background: #e0e0e0; color: #333; }
.sps-sortable-placeholder { background: #e3e7fa; border: 2px dashed #6366f1; min-height: 40px; border-radius: 6px; margin-bottom: 8px; } 