/* =============================================
   Chico Search — chico-search.css v1.0.9
   ============================================= */

.cs-wrap { width: 100%; font-family: inherit; }

.cs-bar { margin-bottom: 16px; }
.cs-search-wrap { position: relative; }

.cs-search-box {
    display: flex; align-items: center; gap: 8px;
    background: #fff; border: 1px solid #ddd; border-radius: 10px;
    padding: 10px 14px; transition: border-color 0.15s;
}
.cs-search-box:focus-within { border-color: #b8982a; }
.cs-icon-search { width: 18px; height: 18px; color: #5d5d5d; flex-shrink: 0; }

.cs-input {
    border: none !important; background: transparent !important;
    outline: none !important; box-shadow: none !important;
    font-size: 15px; color: #222; flex: 1;
    padding: 0 !important; margin: 0 !important; min-width: 0;
}
.cs-input::placeholder { color: #bbb; }

.cs-clear {
    background: none; border: none; padding: 0; cursor: pointer;
    color: #bbb; display: flex; align-items: center; flex-shrink: 0;
}
.cs-clear svg { width: 16px; height: 16px; }
.cs-clear:hover { color: #888; }

.cs-autocomplete {
    position: absolute; top: calc(100% + 4px); left: 0; right: 0;
    background: #fff; border: 1px solid #ddd; border-radius: 10px;
    padding: 4px 0; z-index: 9999; display: none; overflow: hidden;
}
.cs-autocomplete.cs-ac--open { display: block; }
.cs-ac-item {
    display: flex; align-items: center; gap: 8px;
    padding: 9px 14px; font-size: 14px; color: #333; cursor: pointer;
}
.cs-ac-item:hover { background: #f5f5f5; }
.cs-ac-item svg { width: 14px; height: 14px; color: #ccc; flex-shrink: 0; }

.cs-results-header { margin-bottom: 14px; }
.cs-results-count { font-size: 13px; color: #888; }

/* --- Grid responsivo com largura máxima por card --- */
.cs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}

/* --- Card C: imagem 3:2 + rodapé com nome, categoria, seta --- */
.cs-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: border-color 0.18s, box-shadow 0.18s;
}
.cs-card:hover {
    border-color: #b8982a;
    box-shadow: 0 6px 20px rgba(184,152,42,0.15);
    text-decoration: none;
    color: inherit;
}

/* Imagem 3:2 preenchendo tudo */
.cs-card__img-wrap {
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    flex-shrink: 0;
    background: #f4f4f4;
}
.cs-card__img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    transition: transform 0.3s ease;
}
.cs-card:hover .cs-card__img { transform: scale(1.04); }

/* Rodapé */
.cs-card__body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 14px;
    flex: 1;
}

.cs-card__info { flex: 1; min-width: 0; }

.cs-card__cat {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #b8982a;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cs-card__name {
    font-size: 13px;
    font-weight: 500;
    color: #1a1a1a;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cs-card__price-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
    gap: 1px;
}

.cs-card__price-old {
    font-size: 10px;
    color: #bbb;
    text-decoration: line-through;
    line-height: 1;
}

.cs-card__price {
    font-size: 14px;
    font-weight: 700;
    color: #b8982a;
    line-height: 1;
    white-space: nowrap;
}

/* Seta dourada */
.cs-card__arrow {
    width: 28px; height: 28px; flex-shrink: 0;
    border-radius: 50%;
    border: 1.5px solid #e0c96a;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.15s;
}
.cs-card:hover .cs-card__arrow {
    background: #b8982a;
    border-color: #b8982a;
}
.cs-card__arrow svg { width: 13px; height: 13px; color: #b8982a; transition: color 0.15s; }
.cs-card:hover .cs-card__arrow svg { color: #fff; }

/* --- Estados --- */
.cs-empty, .cs-loading {
    text-align: center; padding: 40px 20px;
    color: #aaa; font-size: 14px; grid-column: 1 / -1;
}

@media (max-width: 420px) {
    .cs-grid { grid-template-columns: minmax(0, 1fr); }
}
