/* === FP global UX styles === */

/* Toastr fp restyle */
#toast-container > .toast {
    background-image: none !important;
    background-color: #fff !important;
    color: #111827 !important;
    border-radius: 12px !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: 0 12px 32px rgba(0,0,0,0.10) !important;
    padding: 14px 16px 14px 56px !important;
    opacity: 1 !important;
    font-size: 13px !important;
}
#toast-container > .toast::before {
    content: ''; position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    width: 32px; height: 32px; border-radius: 50%;
    background: #f3f4f6; color: #111827;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Font Awesome 5 Free'; font-weight: 900;
    font-size: 14px;
}
#toast-container > .toast-success::before { background: #dcfce7; color: #16a34a; content: '\f00c'; }
#toast-container > .toast-error::before { background: #fee2e2; color: #dc3545; content: '\f00d'; }
#toast-container > .toast-info::before { background: #dbeafe; color: #1e40af; content: '\f129'; }
#toast-container > .toast-warning::before { background: #fef3c7; color: #92400e; content: '\f12a'; }
#toast-container > .toast .toast-title { color: #111827 !important; font-weight: 700; font-size: 13px; }
#toast-container > .toast .toast-message { color: #374151 !important; font-size: 13px; }

/* Global API loading bar */
#fp-loading-bar {
    position: fixed; top: 0; left: 0; right: 0; height: 3px;
    background: transparent; z-index: 9999; pointer-events: none;
    overflow: hidden;
}
#fp-loading-bar.is-active::after {
    content: ''; position: absolute; top: 0; left: 0; width: 30%; height: 100%;
    background: linear-gradient(90deg, transparent, var(--cz-primary, #361FDB), transparent);
    animation: fpLoadingSlide 1s linear infinite;
}
@keyframes fpLoadingSlide {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(400%); }
}

/* Skeleton placeholders */
.fp-skeleton {
    background: linear-gradient(90deg, #f3f4f6 0%, #e5e7eb 50%, #f3f4f6 100%);
    background-size: 200% 100%;
    animation: fpSkeleton 1.4s ease-in-out infinite;
    border-radius: 8px;
}
@keyframes fpSkeleton {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.fp-skeleton-text { height: 14px; margin-bottom: 8px; }
.fp-skeleton-text.lg { height: 22px; }
.fp-skeleton-text.sm { height: 11px; }
.fp-skeleton-thumb { aspect-ratio: 1/1; border-radius: 14px; }
.fp-skeleton-circle { border-radius: 50%; }

/* Search autosuggest dropdown */
.fp-search { position: relative; }
.fp-search-suggest {
    position: absolute; top: calc(100% + 6px); left: 0; right: 0;
    background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.10);
    z-index: 1050; max-height: 420px; overflow-y: auto;
    display: none;
}
.fp-search-suggest.is-open { display: block; }
.fp-search-suggest-empty { padding: 18px; text-align: center; color: #6b7280; font-size: 13px; }
.fp-search-suggest-item {
    display: flex; gap: 12px; align-items: center;
    padding: 10px 14px; text-decoration: none;
    border-bottom: 1px solid #f1f3f5;
}
.fp-search-suggest-item:last-child { border-bottom: 0; }
.fp-search-suggest-item:hover { background: #f9fafb; }
.fp-search-suggest-item img {
    width: 44px; height: 44px; border-radius: 8px;
    object-fit: contain; background: #f9fafb; flex-shrink: 0;
}
.fp-search-suggest-item .body { flex: 1; min-width: 0; }
.fp-search-suggest-item .title { font-size: 13px; font-weight: 600; color: #111827; display: block; }
.fp-search-suggest-item .cat { font-size: 11px; color: #6b7280; text-transform: uppercase; letter-spacing: .4px; }
.fp-search-suggest-item .price { font-size: 13px; font-weight: 700; color: var(--cz-primary, #361FDB); white-space: nowrap; }
.fp-search-suggest-foot { padding: 10px 14px; text-align: center; border-top: 1px solid #f1f3f5; background: #f9fafb; }
.fp-search-suggest-foot a { font-size: 13px; color: var(--cz-primary, #361FDB); font-weight: 600; text-decoration: none; }

/* Price range slider (noUiSlider fp) */
.noUi-target { background: #e5e7eb !important; border-radius: 999px !important; border: 0 !important; box-shadow: none !important; }
.noUi-connect { background: var(--cz-primary, #361FDB) !important; border-radius: 999px !important; }
.noUi-handle { background: #fff !important; border: 2px solid var(--cz-primary, #361FDB) !important; border-radius: 50% !important; box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important; width: 22px !important; height: 22px !important; right: -11px !important; top: -7px !important; cursor: grab !important; }
.noUi-handle:hover, .noUi-handle:focus { background: var(--cz-primary, #361FDB) !important; }
.noUi-handle::before, .noUi-handle::after { display: none !important; }
.noUi-tooltip {
    background: #111827 !important; color: #fff !important; border: 0 !important;
    border-radius: 6px !important; font-size: 11px !important; padding: 3px 8px !important;
}
.noUi-pips { display: none !important; }
