/* WC Fast Product Search - Frontend Styles */

.wc-fast-search-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.wc-fast-search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.wc-fast-search-input-wrapper > input.wc-fast-search-input {
  border: none;
  border-bottom: 1px solid #d8a994;
  border-radius: 0;
}

.wc-fast-search-input {
    width: 100%;
    padding: 12px 45px 12px 45px;
    font-size: 15px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background-color: #fff;
    transition: all 0.2s ease;
    outline: none;
}

.wc-fast-search-input:focus {
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.wc-fast-search-input::placeholder {
    color: #9ca3af;
}

.wc-fast-search-icon {
  position: absolute;
  right: 0px;
  color: #d8a994;
  pointer-events: none;
  display: flex;
  align-items: center;
  border-left: 1px solid;
  padding-left: 6px;
}

.wc-fast-search-loader {
  position: absolute;
  left: -25px;
  color: #d7a892;
  display: flex;
  align-items: center;
  animation: wc-spin 1s linear infinite;
}

@keyframes wc-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.wc-fast-search-clear {
    position: absolute;
    right: 30px;
    background: none;
    border: none;
    font-size: 20px;
    color: #9ca3af;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    transition: color 0.2s;
}

.wc-fast-search-clear:hover {
    color: #374151;
}

.wc-fast-search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    max-height: 450px;
    overflow-y: auto;
    z-index: 9999;
}

.wc-fast-search-results::-webkit-scrollbar {
    width: 8px;
}

.wc-fast-search-results::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 0 12px 12px 0;
}

.wc-fast-search-results::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.wc-fast-search-results::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

.wc-fast-search-no-results {
    padding: 30px 20px;
    text-align: center;
    color: #6b7280;
}

.wc-fast-search-no-results svg {
    margin-bottom: 10px;
    opacity: 0.5;
}

.wc-fast-search-count {
    padding: 10px 16px;
    font-size: 12px;
    color: #6b7280;
    border-bottom: 1px solid #f3f4f6;
    background: #fafafa;
    border-radius: 12px 12px 0 0;
}

/* Product Item */
.wc-fast-search-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    gap: 14px;
    border-bottom: 1px solid #f3f4f6;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.15s ease;
}

.wc-fast-search-item:last-child {
    border-bottom: none;
}

.wc-fast-search-item:hover,
.wc-fast-search-item.active {
    background-color: #fff7ed;
}

.wc-fast-search-item-image {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
}

.wc-fast-search-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wc-fast-search-item-content {
    flex: 1;
    min-width: 0;
}

.wc-fast-search-item-name {
    font-weight: 600;
    color: #111827;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wc-fast-search-item-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #6b7280;
    flex-wrap: wrap;
}

.wc-fast-search-item-sku {
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
    font-size: 12px;
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
}

.wc-fast-search-item-category {
    font-size: 12px;
    color: #9ca3af;
}

.wc-fast-search-item-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}

.wc-fast-search-item-price {
    font-weight: 600;
    color: #111827;
}

.wc-fast-search-item-price del {
    color: #9ca3af;
    font-weight: 400;
    font-size: 0.9em;
}

.wc-fast-search-item-price ins {
    text-decoration: none;
    color: #dc2626;
}

.wc-fast-search-item-stock {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 500;
}

.wc-fast-search-item-stock.in-stock {
    background: #dcfce7;
    color: #166534;
}

.wc-fast-search-item-stock.out-of-stock {
    background: #fee2e2;
    color: #991b1b;
}

.wc-fast-search-item-stock.on-backorder {
    background: #fef3c7;
    color: #92400e;
}

/* Admin styles - loaded separately in admin-style.css */
