/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   Imtiaz Hussain Smart Search â€” Premium UI Stylesheet
   File: assets/css/smart-search.css
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* â”€â”€ CSS Variables â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
:root {
    --ss-accent:       #c5a059;
    --ss-accent-dark:  #8C6D58;
    --ss-accent-light: #F5EFEB;
    --ss-glass-bg:     rgba(255,255,255,0.98);
    --ss-shadow:       0 10px 30px rgba(0,0,0,0.06);
    --ss-radius:       8px;
    --ss-text:         #000000;
    --ss-muted:        #777777;
    --ss-border:       #E5E7EB;
    --ss-hover:        #F9F9F9;
    --ss-badge-new:    #c5a059;
    --ss-badge-hot:    #000000;
}

/* â”€â”€ Container Overrides for Header (Cleaned up, handled in header_style.css) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */


/* â”€â”€ Search Container â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.ss-wrapper {
    position: relative;
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
}

/* â”€â”€ Input Field â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.ss-input-group {
    position: relative;
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid var(--ss-border);
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    overflow: hidden;
}

.ss-input-group:focus-within {
    border-color: var(--ss-accent);
    box-shadow: 0 0 0 4px rgba(197, 160, 89, 0.12), 0 4px 20px rgba(0,0,0,0.05);
}

.ss-input-icon {
    padding: 0 16px 0 20px;
    color: var(--ss-muted);
    font-size: 16px;
    line-height: 1;
    pointer-events: none;
    transition: color 0.2s;
    flex-shrink: 0;
}

.ss-input-group:focus-within .ss-input-icon {
    color: var(--ss-accent);
}

.ss-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    padding: 13px 0;
    font-size: 15px;
    font-weight: 500;
    color: var(--ss-text);
    caret-color: var(--ss-accent);
    min-width: 0;
}

.ss-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.ss-clear-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f5f9;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    color: var(--ss-muted);
    margin-right: 8px;
    font-size: 13px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}
.ss-clear-btn:hover {
    background: #e2e8f0;
    color: var(--ss-text);
}
.ss-clear-btn.active { display: flex; }

.ss-submit-btn {
    height: 46px;
    padding: 0 22px;
    background: var(--ss-accent);
    border: none;
    border-radius: 0 50px 50px 0;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.3px;
}
.ss-submit-btn:hover {
    background: var(--ss-accent-dark);
    transform: translateX(1px);
}
.ss-submit-btn i { font-size: 14px; }

/* â”€â”€ Loading Spinner inside input â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.ss-spinner {
    width: 18px;
    height: 18px;
    border: 2.5px solid var(--ss-accent-light);
    border-top-color: var(--ss-accent);
    border-radius: 50%;
    animation: ss-spin 0.7s linear infinite;
    margin-right: 10px;
    display: none;
    flex-shrink: 0;
}
.ss-spinner.active { display: block; }
@keyframes ss-spin { to { transform: rotate(360deg); } }

/* â”€â”€ Dropdown Panel â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.ss-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: var(--ss-glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--ss-radius);
    box-shadow: var(--ss-shadow);
    border: 1px solid var(--ss-border);
    overflow: hidden;
    z-index: 9999;
    max-height: 520px;
    overflow-y: auto;
    display: none;
    animation: ss-slideDown 0.22s cubic-bezier(0.4,0,0.2,1);
    scrollbar-width: thin;
    scrollbar-color: var(--ss-accent-light) transparent;
}
.ss-dropdown::-webkit-scrollbar { width: 4px; }
.ss-dropdown::-webkit-scrollbar-track { background: transparent; }
.ss-dropdown::-webkit-scrollbar-thumb { background: var(--ss-accent-light); border-radius: 4px; }

.ss-dropdown.active { display: block; }
@keyframes ss-slideDown {
    from { opacity: 0; transform: translateY(-8px) scale(0.99); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* â”€â”€ Section Title â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.ss-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px 8px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--ss-muted);
    border-bottom: 1px solid var(--ss-border);
}
.ss-section-title i {
    color: var(--ss-accent);
    font-size: 13px;
}

/* â”€â”€ Product Result Row â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.ss-product-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    text-decoration: none;
    color: var(--ss-text);
    transition: all 0.18s ease;
    border-bottom: 1px solid rgba(226,232,240,0.5);
    position: relative;
    cursor: pointer;
}
.ss-product-item:last-child { border-bottom: none; }
.ss-product-item:hover,
.ss-product-item.ss-focused {
    background: var(--ss-hover);
    padding-left: 22px;
}

/* Product image thumbnail */
.ss-product-img {
    width: 58px;
    height: 58px;
    border-radius: 12px;
    object-fit: contain;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
    padding: 4px;
    transition: transform 0.2s ease;
}
.ss-product-item:hover .ss-product-img {
    transform: scale(1.05);
}

/* Product info block */
.ss-product-info { flex: 1; min-width: 0; }

.ss-product-badges {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-bottom: 3px;
}

.ss-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 7px;
    border-radius: 20px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.ss-badge-featured {
    background: #000000;
    color: white;
}
.ss-badge-discount {
    background: var(--ss-accent);
    color: white;
}
.ss-badge-cat {
    background: var(--ss-hover);
    color: var(--ss-text);
}

.ss-product-name {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--ss-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Stars */
.ss-stars {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-top: 2px;
}
.ss-stars i {
    font-size: 10px;
    color: #fbbf24;
}
.ss-stars-count {
    font-size: 10px;
    color: var(--ss-muted);
    margin-left: 1px;
}

/* Price block */
.ss-product-price-wrap {
    text-align: right;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}
.ss-price {
    font-size: 15px;
    font-weight: 800;
    color: var(--ss-accent-dark);
    white-space: nowrap;
}
.ss-price-original {
    font-size: 11px;
    color: #94a3b8;
    text-decoration: line-through;
    white-space: nowrap;
}

/* Quick View arrow */
.ss-arrow {
    color: var(--ss-accent);
    font-size: 14px;
    opacity: 0;
    transform: translateX(-6px);
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-left: 4px;
}
.ss-product-item:hover .ss-arrow,
.ss-product-item.ss-focused .ss-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* â”€â”€ Popular Searches / Tags â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.ss-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 16px 14px;
}
.ss-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--ss-hover);
    border: 1px solid var(--ss-border);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    color: var(--ss-text);
    cursor: pointer;
    transition: all 0.18s ease;
    text-decoration: none;
    white-space: nowrap;
}
.ss-tag:hover {
    background: var(--ss-accent-light);
    border-color: var(--ss-accent);
    color: var(--ss-accent-dark);
    transform: translateY(-1px);
}
.ss-tag i { font-size: 11px; color: var(--ss-accent); }
.ss-tag-history {
    background: #f1f5f9;
    color: #475569;
}
.ss-tag-history i {
    color: #94a3b8;
}

/* â”€â”€ Category Chips â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.ss-cat-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 16px 14px;
}
.ss-cat-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 13px;
    background: #F5EFEB;
    border: 1px solid rgba(197, 160, 89, 0.2);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    color: var(--ss-accent-dark);
    cursor: pointer;
    transition: all 0.18s ease;
    text-decoration: none;
}
.ss-cat-chip:hover {
    background: var(--ss-accent);
    color: white;
    border-color: transparent;
    transform: translateY(-1px);
}
.ss-cat-chip .ss-cat-count {
    font-size: 10px;
    opacity: 0.7;
    font-weight: 600;
}

/* â”€â”€ "View All" Footer â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.ss-view-all {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 18px;
    background: #F9F9F9;
    border-top: 1px solid var(--ss-border);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    color: var(--ss-accent-dark);
    transition: all 0.18s ease;
    cursor: pointer;
}
.ss-view-all:hover {
    background: #F5EFEB;
    padding-left: 22px;
}
.ss-view-all .ss-total {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--ss-accent);
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
}

/* â”€â”€ Empty State â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.ss-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 20px;
    text-align: center;
}
.ss-empty-icon {
    width: 60px;
    height: 60px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #94a3b8;
    margin-bottom: 12px;
}
.ss-empty h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--ss-text);
    margin: 0 0 5px;
}
.ss-empty p {
    font-size: 13px;
    color: var(--ss-muted);
    margin: 0;
}

/* â”€â”€ Did You Mean Suggestion â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.ss-dym {
    padding: 12px 18px;
    background: #fff9eb;
    border-bottom: 1px solid #fee2b3;
    font-size: 13px;
    color: #92400e;
    font-weight: 500;
}
.ss-dym-link {
    color: var(--ss-accent-dark);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    transition: color 0.15s;
}
.ss-dym-link:hover { color: #047857; text-decoration-thickness: 2px; }

/* â”€â”€ Highlight matched text â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.ss-highlight {
    background: linear-gradient(120deg,rgba(16,185,129,0.18) 0%,rgba(16,185,129,0.08) 100%);
    color: var(--ss-accent-dark);
    border-radius: 3px;
    padding: 0 2px;
    font-weight: 800;
}

/* â”€â”€ Animations for items â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.ss-product-item, .ss-tag, .ss-cat-chip {
    animation: ss-fadeInItem 0.3s cubic-bezier(0,0,0.2,1) forwards;
    opacity: 0;
}
@keyframes ss-fadeInItem {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Staggered animation */
.ss-product-item:nth-child(1) { animation-delay: 0.02s; }
.ss-product-item:nth-child(2) { animation-delay: 0.04s; }
.ss-product-item:nth-child(3) { animation-delay: 0.06s; }
.ss-product-item:nth-child(4) { animation-delay: 0.08s; }
.ss-product-item:nth-child(5) { animation-delay: 0.10s; }


/* â”€â”€ Mobile Adjustments â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (max-width: 768px) {
    .ss-dropdown {
        left: -10px;
        right: -10px;
        border-radius: 14px;
        max-height: 480px;
    }
    .ss-product-img { width: 50px; height: 50px; }
    .ss-product-name { font-size: 13px; }
    .ss-price { font-size: 14px; }
    .ss-submit-btn span { display: none; }
    .ss-submit-btn { padding: 0 16px; }
}

@media (max-width: 480px) {
    .ss-product-item { padding: 10px 14px; gap: 10px; }
    .ss-product-img { width: 44px; height: 44px; }
    .ss-section-title { padding-inline: 14px; font-size: 10px; }
}
