/**
 * AutoFit AI Search - Shortcode Stylesheet
 * v2.1.0 - Extracted from inline PHP for better caching.
 */
.autofit-shortcode-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 20px auto;
    font-family: Tahoma, Arial, sans-serif;
    box-sizing: border-box;
    padding: 0 10px;
}
.autofit-shortcode-wrapper * { box-sizing: border-box; }

.autofit-search-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
}
.autofit-search-header-box {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}
.autofit-search-header-box h3 {
    margin: 0;
    font-size: 18px;
    color: #1e293b;
    font-weight: 700;
}
.autofit-badge {
    background: #eff6ff;
    color: #2563eb;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.autofit-shortcode-wrapper .autofit-search-input-group {
    display: flex;
    gap: 8px;
    align-items: center;
    background: #f8fafc;
    padding: 8px;
    border: 2px solid #cbd5e1;
    border-radius: 12px;
    transition: all 0.3s ease;
    margin-bottom: 12px;
}
.autofit-shortcode-wrapper .autofit-search-input-group:focus-within {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    background: #fff;
}
#autofit-sc-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 8px 10px;
    font-size: 15px;
    outline: none;
    color: #1e293b;
    font-family: Tahoma, Arial, sans-serif;
}
#autofit-sc-input::placeholder { color: #94a3b8; }

#autofit-sc-mic-btn,
#autofit-sc-clear-btn {
    background: #fff;
    border: 1px solid #cbd5e1;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    color: #64748b;
    padding: 0;
    flex-shrink: 0;
}
#autofit-sc-mic-btn:hover,
#autofit-sc-clear-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
}
.autofit-custom-icon-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: block;
    pointer-events: none;
}
.autofit-custom-icon-text {
    font-size: 18px;
    line-height: 1;
    pointer-events: none;
}
#autofit-sc-clear-btn.autofit-sc-clear-hidden { display: none; }

#autofit-sc-send-btn {
    width: 100%;
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: 0.2s;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
    font-family: Tahoma, Arial, sans-serif;
}
#autofit-sc-send-btn:hover { background: #1d4ed8; }

#autofit-sc-results-container {
    margin-top: 25px;
    display: grid;
    grid-template-columns: repeat(var(--autofit-columns, 4), 1fr);
    gap: 16px;
}
#autofit-sc-results-container.autofit-sc-hidden { display: none; }

.autofit-recent-searches {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.autofit-recent-item {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-size: 12px;
    padding: 5px 12px;
    border-radius: 20px;
    cursor: pointer;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: background 0.2s;
}
.autofit-recent-item:hover { background: #e2e8f0; }

/* Product Cards */
.autofit-product-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}
.autofit-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: #2563eb;
}
.autofit-product-card .autofit-product-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    background: #f8fafc;
}
.autofit-product-card .autofit-product-info {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.autofit-product-card .autofit-product-name {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 36px;
}
.autofit-product-card .autofit-product-price {
    font-size: 14px;
    font-weight: 700;
    color: #2563eb;
    margin-top: auto;
}
.autofit-product-card .autofit-product-view {
    display: block;
    text-align: center;
    background: #2563eb;
    color: #fff;
    padding: 8px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 10px;
    border-radius: 6px;
}
.autofit-product-card .autofit-product-view:hover { background: #1d4ed8; }

@media (max-width: 900px) {
    #autofit-sc-results-container {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}