/* Arama Modalı (assets/js/search-modal.js) */
.sm-open, .sm-open body { overflow: hidden; }

.sm-backdrop { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: flex-start; justify-content: center; padding: 10vh 16px 16px; background: rgba(15, 23, 42, .45); backdrop-filter: blur(2px); }
.sm-backdrop[hidden] { display: none; }

.sm-dialog { display: flex; flex-direction: column; width: 100%; max-width: 640px; max-height: 75vh; overflow: hidden; border-radius: 12px; background: #fff; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); animation: sm-in .14s ease-out; }
@keyframes sm-in { from { opacity: 0; transform: translateY(-8px) scale(.98); } to { opacity: 1; transform: none; } }

.sm-head { display: flex; align-items: center; gap: 10px; padding: 0 14px; border-bottom: 1px solid #edf0f3; }
.sm-icon { flex: 0 0 auto; color: #8a94a3; }
.sm-input { flex: 1 1 auto; min-width: 0; height: 56px; border: 0; outline: 0; background: transparent; font-size: 17px; color: #111827; }
.sm-input::-webkit-search-cancel-button { display: none; }
.sm-close { flex: 0 0 auto; padding: 0; border: 0; background: none; cursor: pointer; }

.sm-body { flex: 1 1 auto; overflow-y: auto; padding: 6px 8px 8px; overscroll-behavior: contain; }
.sm-section { padding: 6px 0; }
.sm-title { display: flex; justify-content: space-between; padding: 6px 8px; font-size: 12px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: #8a94a3; }
.sm-title-action { font-weight: 600; text-transform: none; color: #0d6efd; }

.sm-item { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 8px; color: #111827; text-decoration: none; }
.sm-item.is-active { background: #eef4ff; }
.sm-product img { flex: 0 0 44px; width: 44px; height: 44px; object-fit: contain; border: 1px solid #eef0f3; border-radius: 6px; background: #fff; }
.sm-text { display: flex; flex: 1 1 auto; flex-direction: column; min-width: 0; }
.sm-name { overflow: hidden; font-size: 14px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.sm-meta { overflow: hidden; font-size: 12px; color: #6b7280; text-overflow: ellipsis; white-space: nowrap; }
.sm-side { display: flex; flex: 0 0 auto; flex-direction: column; align-items: flex-end; gap: 3px; }
.sm-price { font-size: 14px; font-weight: 700; }
.sm-quote { padding: 2px 8px; border-radius: 999px; background: #33aa29; color: #fff; font-size: 11px; font-weight: 700; }
.sm-stock { font-size: 11px; }
.sm-stock.is-in { color: #1d7a1d; }
.sm-stock.is-out { color: #b45309; }
.sm-link { font-size: 14px; }
.sm-all { justify-content: center; margin-top: 4px; font-size: 14px; color: #0d6efd; }
.sm-item mark { padding: 0; background: #fff3b0; color: inherit; }

.sm-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 8px 6px; }
.sm-chip { padding: 5px 11px; border-radius: 999px; background: #f1f3f5; color: #111827; font-size: 13px; text-decoration: none; }
.sm-chip:hover { background: #e5e8eb; }
.sm-hint, .sm-empty { padding: 14px 10px; font-size: 13px; color: #6b7280; }
.sm-empty { text-align: center; line-height: 1.6; }

.sm-skeleton { display: flex; align-items: center; gap: 12px; padding: 8px; }
.sm-skeleton span { display: block; height: 12px; border-radius: 6px; background: linear-gradient(90deg, #f1f3f5 25%, #e7eaee 37%, #f1f3f5 63%); background-size: 400% 100%; animation: sm-shimmer 1.2s ease infinite; }
.sm-skeleton span:first-child { flex: 0 0 44px; height: 44px; }
.sm-skeleton span:last-child { flex: 1 1 auto; }
@keyframes sm-shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

.sm-foot { display: flex; gap: 16px; padding: 8px 14px; border-top: 1px solid #edf0f3; font-size: 12px; color: #8a94a3; }
.sm-backdrop kbd, .search-kbd { display: inline-block; min-width: 20px; padding: 1px 5px; margin: 0 2px; border: 1px solid #d9dde3; border-bottom-width: 2px; border-radius: 4px; background: #f8f9fa; color: #4b5563; font: 600 11px/1.4 system-ui, -apple-system, sans-serif; text-align: center; }

/* Navbar arama kutusunda kısayol ipucu */
.header-bottom .search form { position: relative; }
.search-kbd { position: absolute; top: 50%; right: 3.4rem; transform: translateY(-50%); pointer-events: none; }

@media (max-width: 767px) {
    .sm-backdrop { padding: 0; }
    .sm-dialog { max-width: none; height: 100%; max-height: none; border-radius: 0; }
    .sm-foot, .search-kbd { display: none; }
}
