/* Chollos Deluxe - Buscador predictivo V1.3 */

.cd-search-panel[hidden] {
    display: none !important;
}

.cd-search-panel {
    position: fixed;
    z-index: 1060;
    box-sizing: border-box;
    background: #fff;
    color: #25282c;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 12px 35px rgba(0,0,0,.18);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    font-size: 14px;
    text-align: left;
}

.cd-search-heading {
    padding: 13px 15px 9px;
    color: #737981;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.cd-search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    min-height: 84px;
    border-bottom: 1px solid #f0f1f3;
    text-decoration: none !important;
    color: #25282c !important;
    background: #fff;
    transition: background .12s ease;
}

.cd-search-item:hover,
.cd-search-item:focus-visible,
.cd-search-recent:hover,
.cd-search-recent:focus-visible {
    background: #f5f6f7;
    outline: none;
}

.cd-search-image {
    width: 66px;
    height: 66px;
    flex: 0 0 66px;
    object-fit: contain;
    background: #fff;
    border-radius: 7px;
}

.cd-search-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 66px;
    height: 66px;
    flex: 0 0 66px;
    border-radius: 7px;
    background: #f2f3f5;
    color: #777;
    font-weight: 600;
}

.cd-search-info {
    flex: 1;
    min-width: 0;
}

.cd-search-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 4px;
}

.cd-search-store {
    color: #737981;
    font-size: 11px;
    line-height: 1.4;
}

.cd-search-prices {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 5px;
}

.cd-search-price {
    color: #c34c10;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.1;
}

.cd-search-oldprice {
    color: #777;
    font-size: 11px;
    text-decoration: line-through;
}

.cd-search-discount {
    color: #b42318;
    font-size: 11px;
    font-weight: 700;
}

.cd-search-arrow {
    flex: 0 0 auto;
    font-size: 21px;
    color: #a0a5aa;
}

.cd-search-footer {
    padding: 12px;
    background: #fff;
}

.cd-search-all {
    display: block;
    width: 100%;
    padding: 12px;
    border: 0;
    border-radius: 8px;
    background: #c34c10;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.cd-search-all:hover,
.cd-search-all:focus-visible {
    background: #a93e0b;
    outline: 2px solid #a93e0b;
    outline-offset: 2px;
}

.cd-search-message {
    padding: 20px 15px;
    color: #737981;
    font-size: 13px;
    text-align: center;
}

.cd-search-recent {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 44px;
    padding: 10px 15px;
    border: 0;
    background: #fff;
    color: #30343a;
    text-align: left;
    cursor: pointer;
}

.cd-search-clear {
    display: block;
    margin: 8px 15px 12px auto;
    padding: 6px;
    border: 0;
    background: transparent;
    color: #626970;
    font-size: 12px;
    cursor: pointer;
}

@media (max-width: 767.98px) {
    .cd-search-panel {
        border-radius: 0 0 12px 12px;
    }

    .cd-search-item {
        gap: 10px;
        padding: 11px 12px;
    }

    .cd-search-image,
    .cd-search-placeholder {
        width: 58px;
        height: 58px;
        flex-basis: 58px;
    }

    .cd-search-title {
        font-size: 13px;
    }

    .cd-search-price {
        font-size: 17px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cd-search-panel * {
        transition: none !important;
    }
}

/* V1.3.1 - Identidad visual Chollos Deluxe */

.cd-search-price {
    color: #0864bd;
    font-size: 19px;
    font-weight: 700;
    order: 2;
}

.cd-search-oldprice {
    color: #92979e;
    font-size: 12px;
    font-weight: 400;
    order: 3;
}

.cd-search-discount {
    order: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #92979e;
    color: #fff;
    border-radius: 50px;
    padding: 3px 8px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.1;
}

.cd-search-prices {
    align-items: center;
    gap: 7px;
}

.cd-search-all {
    background: #0085ff;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
}

.cd-search-all:hover,
.cd-search-all:focus-visible {
    background: #006bd6;
    outline-color: #006bd6;
}

@media (max-width: 767.98px) {
    .cd-search-price {
        font-size: 18px;
    }

    .cd-search-oldprice {
        font-size: 11px;
    }

    .cd-search-discount {
        font-size: 11px;
        padding: 3px 7px;
    }
}

