 * {
    box-sizing: border-box;
}



.resultados-header {
    width: 100%;
    padding: 1.5rem 1rem 0.5rem;
    text-align: center;
}

.resultados-title {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #fffdf8;
    color: #7b5a3e;
    border: 1px solid #f2d2bb;
    border-radius: 999px;
    padding: 10px 28px;
    font-size: 1.15rem;
    font-weight: 700;
    box-shadow: 0 8px 22px rgba(95, 64, 41, 0.08);
}

.catalogo-wrapper {
    width: 100%;
    padding: 1.5rem 1rem 2rem;
}

.productos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
    max-width: 1280px;
    margin: 0 auto;
}

.producto-link {
    text-decoration: none !important;
    color: inherit !important;
    display: block;
    height: 100%;
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
}

.producto-link:hover,
.producto-link:focus,
.producto-link:active,
.producto-link:visited {
    text-decoration: none !important;
    color: inherit !important;
    outline: none !important;
}

.producto-card {
    background: #fffdf8;
    border: 1px solid #f0d8c5;
    border-radius: 22px;
    overflow: hidden;
    height: 100%;
    position: relative;
    box-shadow: 0 8px 22px rgba(95, 64, 41, 0.08);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.producto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 34px rgba(95, 64, 41, 0.15);
    border-color: #feb793;
}

.producto-img-wrap {
    width: 100%;
    aspect-ratio: 3 / 4;
    background: #f8efe8;
    overflow: hidden;
    position: relative;
}

.producto-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.producto-card:hover .producto-img {
    transform: scale(1.045);
}

.producto-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255, 253, 248, 0.95);
    color: #d62828;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid #f2d2bb;
    box-shadow: 0 5px 15px rgba(95, 64, 41, 0.1);
    z-index: 2;
}

.producto-body {
    padding: 14px 14px 16px;
    text-align: center;
}

.producto-desc {
    color: #7b5a3e;
    font-size: 0.88rem;
    margin: 0 auto 10px;
    line-height: 1.35;
    min-height: 38px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.producto-label {
    color: #9b7556;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.producto-precio {
    color: #c98952;
    font-size: 1.45rem;
    font-weight: 900;
    margin: 0 0 5px;
    line-height: 1.2;
}

.producto-precio-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.producto-precio-anterior {
    color: #9c8b7c;
    font-size: 0.85rem;
    text-decoration: line-through;
    font-weight: 600;
}

.producto-descuento {
    background: #fff1f0;
    color: #d62828;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 999px;
}

.producto-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    border: none;
    text-decoration: none !important;
    background: linear-gradient(135deg, #feb793, #c98952);
    color: #fff !important;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 999px;
    padding: 10px 14px;
    box-shadow: 0 8px 18px rgba(201, 137, 82, 0.24);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.producto-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(201, 137, 82, 0.32);
    filter: brightness(1.02);
}

.alerta-busqueda {
    max-width: 520px;
    margin: 2rem auto;
    background: #fffdf8;
    color: #7b5a3e;
    border: 1px solid #f2d2bb;
    border-radius: 18px;
    padding: 18px 20px;
    box-shadow: 0 8px 22px rgba(95, 64, 41, 0.08);
    text-align: center;
    font-weight: 600;
}

.pagination {
    gap: 8px;
    flex-wrap: wrap;
}

.pagination .page-link {
    color: #7b5a3e;
    background: #fffdf8;
    border: 1px solid #f0d8c5;
    border-radius: 999px !important;
    padding: 8px 18px;
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(95, 64, 41, 0.08);
}

.pagination .page-link:hover {
    background: #feb793;
    color: white;
    border-color: #feb793;
}

@media (max-width: 1199px) {
    .productos-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .catalogo-wrapper {
        padding: 1rem 0.7rem 2rem;
    }

    .productos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.9rem;
    }

    .producto-card {
        border-radius: 18px;
    }

    .producto-body {
        padding: 11px;
    }

    .producto-precio {
        font-size: 1.18rem;
    }

    .producto-desc {
        font-size: 0.78rem;
        min-height: 34px;
    }

    .producto-btn {
        font-size: 0.78rem;
        padding: 9px 10px;
    }

    .resultados-title {
        font-size: 1rem;
        padding: 9px 22px;
    }

    .loader-dots span {
        width: 15px;
        height: 15px;
    }
}

@media (max-width: 390px) {
    .productos-grid {
        gap: 0.7rem;
    }

    .producto-precio {
        font-size: 1.05rem;
    }

    .producto-btn {
        font-size: 0.74rem;
    }
}