/* assets/css/searchmodal.css */

.search-modal-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 200;
    display: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.search-modal-backdrop.is-active {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}

.search-modal-container {
    width: 100%;
    max-width: 650px;
    margin: 4rem auto;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 80vh;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.2, 1, 0.2, 1);
}

.search-modal-backdrop.is-active .search-modal-container {
    transform: scale(1);
}

/* Mobile full screen */
@media (max-width: 768px) {
    .search-modal-container {
        margin: 0;
        max-width: none;
        height: 100%;
        max-height: none;
        border-radius: 0;
    }
}

/* Header Section */
.search-modal-header {
    padding: 1.25rem;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-modal-input-wrapper {
    flex-grow: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.search-modal-input {
    width: 100%;
    border: none;
    padding: 0.75rem 0.5rem;
    font-size: 1.25rem;
    font-weight: 500;
    color: #1e293b;
    outline: none;
}

.search-modal-input::placeholder {
    color: #94a3b8;
}

/* Body Section */
.search-modal-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.search-modal-section-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Tags Section */
.search-keywords-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.search-keyword-tag {
    background: #f1f5f9;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.search-keyword-tag:hover {
    background: #e2e8f0;
    color: var(--p);
}

/* Product Section */
.search-product-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.search-product-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: 0.75rem;
    background: #f8fafc;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.search-product-item:hover {
    background: white;
    border-color: #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transform: translateX(4px);
}

.search-product-img {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.5rem;
    object-fit: cover;
    background: #e2e8f0;
}

.search-product-info {
    flex-grow: 1;
}

.search-product-name {
    font-weight: 600;
    font-size: 0.9375rem;
    color: #1e293b;
    margin-bottom: 0.125rem;
}

.search-product-price {
    font-size: 0.8125rem;
    color: var(--p);
    font-weight: 700;
}

/* Footer Section */
.search-modal-footer {
    padding: 1rem 1.25rem;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: flex-end;
    gap: 1.5rem;
}

.search-shortcut-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #94a3b8;
}

.search-shortcut-key {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 1px 4px;
    border-radius: 3px;
    font-family: inherit;
    font-weight: 700;
}
