/* ============================================================
   HERO SMART SEARCH
   ============================================================ */

.exo-search-wrap {
    position: relative;
    width: 100%;
    max-width: 560px;
    margin-top: 32px;
    margin-bottom: 36px;
}

.exo-search-field {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.14);
    transition: border-color .22s ease, background .22s ease;
}

.exo-search-wrap:focus-within .exo-search-field {
    border-color: var(--gold);
    background: rgba(255,255,255,.07);
}

.exo-search-input {
    flex: 1;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 17px 20px;
    color: #f4f0e7 !important;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 300;
    letter-spacing: .3px;
    -webkit-appearance: none;
    appearance: none;
}

.exo-search-input::placeholder {
    color: rgba(255,255,255,.32) !important;
    opacity: 1;
}

/* Νίκη ενάντια στο XStore autofill styling */
.exo-search-input:-webkit-autofill,
.exo-search-input:-webkit-autofill:hover,
.exo-search-input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #0a0b0b inset !important;
    -webkit-text-fill-color: #f4f0e7 !important;
    caret-color: #f4f0e7;
}

.exo-search-btn {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    background: rgba(178,204,11,.12);
    border: none;
    border-left: 1px solid rgba(178,204,11,.3);
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background .22s ease;
}

.exo-search-btn:hover {
    background: rgba(178,204,11,.22);
}

.exo-search-btn svg {
    width: 18px;
    height: 18px;
    stroke: var(--gold);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* --- Dropdown --- */
.exo-search-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #0d0e0e;
    border: 1px solid rgba(178,204,11,.28);
    z-index: 9999;
    display: none;
    flex-direction: column;
    box-shadow: 0 24px 64px rgba(0,0,0,.6);
}

.exo-search-dropdown.is-open {
    display: flex;
}

/* Skeleton */
.exo-search-skeleton {
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.exo-skel-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.exo-skel-img {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    background: rgba(255,255,255,.07);
    animation: exoSkelPulse 1.2s ease infinite;
}

.exo-skel-lines {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.exo-skel-line {
    height: 10px;
    background: rgba(255,255,255,.07);
    animation: exoSkelPulse 1.2s ease infinite;
}

.exo-skel-line:last-child {
    width: 55%;
}

@keyframes exoSkelPulse {
    0%, 100% { opacity: .5; }
    50%       { opacity: 1; }
}

/* Result item */
.exo-search-item {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 10px 16px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid rgba(255,255,255,.05);
    transition: background .18s ease;
}

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

.exo-search-item:hover {
    background: rgba(178,204,11,.08);
}

.exo-search-item-img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    display: block;
    filter: brightness(.88) saturate(.8);
}

.exo-search-item-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.exo-search-item-title {
    color: #f4f0e7;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.exo-search-item-cat {
    color: #666;
    font-size: 10px;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    font-weight: 700;
}

.exo-search-item-price {
    color: var(--gold);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

/* No results */
.exo-search-empty {
    padding: 20px 16px;
    color: #555;
    font-size: 13px;
    text-align: center;
    letter-spacing: .3px;
}

/* Footer link */
.exo-search-footer {
    padding: 10px 16px;
    border-top: 1px solid rgba(255,255,255,.06);
    display: flex;
    justify-content: flex-end;
}

.exo-search-all {
    color: var(--gold);
    font-size: 10px;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    font-weight: 800;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.exo-search-all::after {
    content: "";
    width: 22px;
    height: 1px;
    background: var(--gold);
    transition: width .2s ease;
}

.exo-search-all:hover::after {
    width: 36px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .exo-search-wrap {
        max-width: 100%;
        margin-bottom: 28px;
    }
}

@media (max-width: 480px) {
    .exo-search-input {
        font-size: 13px;
        padding: 14px 14px;
    }
    .exo-search-btn {
        width: 46px;
        height: 46px;
    }
}
